@antv/s2-vue 1.4.0 → 2.0.0-alpha.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/LICENSE +21 -0
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/style.min.css +1 -1
- package/esm/index.d.ts +760 -627
- package/esm/index.js +457 -209
- package/esm/index.js.map +1 -1
- package/esm/style.css +61 -14
- package/lib/index.js +449 -208
- package/lib/index.js.map +1 -1
- package/lib/style.css +61 -14
- package/package.json +10 -9
package/esm/index.d.ts
CHANGED
|
@@ -1,38 +1,37 @@
|
|
|
1
1
|
import { AllowedComponentProps } from 'vue';
|
|
2
2
|
import { BaseTooltip } from '@antv/s2';
|
|
3
|
-
import
|
|
4
|
-
import { Canvas } from '@antv/g-canvas';
|
|
5
|
-
import { CellMeta } from '@antv/s2';
|
|
3
|
+
import { Canvas } from '@antv/g';
|
|
6
4
|
import { CellScrollPosition } from '@antv/s2';
|
|
7
5
|
import { CollapsedRowsType } from '@antv/s2';
|
|
8
6
|
import { ComponentCustomProps } from 'vue';
|
|
9
7
|
import { ComponentOptionsMixin } from 'vue';
|
|
10
8
|
import { ComputedRef } from 'vue';
|
|
11
9
|
import type * as CSS_2 from 'csstype';
|
|
12
|
-
import { Data } from '@antv/s2';
|
|
13
10
|
import { DataCell } from '@antv/s2';
|
|
14
|
-
import { DataType } from '@antv/s2';
|
|
15
11
|
import { DebouncedFunc } from 'lodash';
|
|
16
|
-
import { default as default_2 } from '@antv/g-base/lib/event/graph-event';
|
|
17
12
|
import { DefineComponent } from 'vue';
|
|
13
|
+
import { DisplayObject } from '@antv/g';
|
|
14
|
+
import { DisplayObjectConfig } from '@antv/g';
|
|
18
15
|
import EE from '@antv/event-emitter';
|
|
19
|
-
import { Event as Event_2 } from '@antv/g-canvas';
|
|
20
16
|
import { ExtractPropTypes } from 'vue';
|
|
21
|
-
import
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
17
|
+
import { FederatedPointerEvent } from '@antv/g';
|
|
18
|
+
import { FederatedPointerEvent as FederatedPointerEvent_2 } from '@antv/g-lite';
|
|
19
|
+
import { GEvent } from '@antv/s2';
|
|
20
|
+
import { Group } from '@antv/g';
|
|
24
21
|
import { HiddenColumnsInfo } from '@antv/s2';
|
|
25
|
-
import
|
|
26
|
-
import {
|
|
27
|
-
import
|
|
22
|
+
import { ICanvas } from '@antv/g';
|
|
23
|
+
import { Image as Image_2 } from '@antv/g';
|
|
24
|
+
import { ImageStyleProps } from '@antv/g';
|
|
28
25
|
import { LayoutResult } from '@antv/s2';
|
|
26
|
+
import { LineStyleProps } from '@antv/g';
|
|
29
27
|
import { MemoizedFunction } from 'lodash';
|
|
30
28
|
import { Node as Node_2 } from '@antv/s2';
|
|
31
29
|
import { Omit as Omit_2 } from 'lodash';
|
|
32
30
|
import { Pagination } from '@antv/s2';
|
|
33
31
|
import type { PaginationProps } from 'ant-design-vue';
|
|
34
|
-
import {
|
|
32
|
+
import { PointLike } from '@antv/g';
|
|
35
33
|
import { PropType } from 'vue';
|
|
34
|
+
import { RawData } from '@antv/s2';
|
|
36
35
|
import { Ref } from 'vue';
|
|
37
36
|
import { ResizeInfo } from '@antv/s2';
|
|
38
37
|
import { ResizeParams } from '@antv/s2';
|
|
@@ -42,9 +41,6 @@ import { S2MountContainer } from '@antv/s2';
|
|
|
42
41
|
import { S2Options } from '@antv/s2';
|
|
43
42
|
import { S2RenderOptions } from '@antv/s2';
|
|
44
43
|
import { ShallowRef } from 'vue';
|
|
45
|
-
import { Shape } from '@antv/g-canvas';
|
|
46
|
-
import { ShapeAttrs } from '@antv/g-canvas';
|
|
47
|
-
import type { SimpleBBox } from '@antv/g-canvas';
|
|
48
44
|
import { SortParams } from '@antv/s2';
|
|
49
45
|
import { SpreadSheet } from '@antv/s2';
|
|
50
46
|
import { TargetCellInfo } from '@antv/s2';
|
|
@@ -52,8 +48,8 @@ import { ThemeCfg } from '@antv/s2';
|
|
|
52
48
|
import { Timer } from 'd3-timer';
|
|
53
49
|
import { TooltipContentType } from '@antv/s2';
|
|
54
50
|
import { ViewMeta } from '@antv/s2';
|
|
51
|
+
import { ViewMetaData } from '@antv/s2';
|
|
55
52
|
import { VNodeProps } from 'vue';
|
|
56
|
-
import { Wheel } from '@antv/g-gesture';
|
|
57
53
|
|
|
58
54
|
declare type Adaptive = boolean | {
|
|
59
55
|
width?: boolean;
|
|
@@ -103,19 +99,19 @@ declare abstract class BaseCell<T extends SimpleBBox> extends Group {
|
|
|
103
99
|
protected meta: T;
|
|
104
100
|
protected spreadsheet: SpreadSheet_2;
|
|
105
101
|
protected theme: S2Theme;
|
|
106
|
-
protected backgroundShape:
|
|
107
|
-
protected textShape:
|
|
108
|
-
protected linkFieldShape:
|
|
102
|
+
protected backgroundShape: DisplayObject;
|
|
103
|
+
protected textShape: DisplayObject;
|
|
104
|
+
protected linkFieldShape: DisplayObject;
|
|
109
105
|
protected actualText: string;
|
|
110
106
|
protected actualTextWidth: number;
|
|
111
107
|
protected conditions: Conditions;
|
|
112
|
-
protected conditionIntervalShape:
|
|
108
|
+
protected conditionIntervalShape: DisplayObject | undefined;
|
|
113
109
|
protected conditionIconShape: GuiIcon;
|
|
114
|
-
protected stateShapes: Map<StateShapeLayer,
|
|
110
|
+
protected stateShapes: Map<StateShapeLayer, DisplayObject<any, any>>;
|
|
115
111
|
constructor(meta: T, spreadsheet: SpreadSheet_2, ...restOptions: unknown[]);
|
|
116
112
|
getMeta(): T;
|
|
117
113
|
setMeta(viewMeta: T): void;
|
|
118
|
-
getIconStyle(): IconTheme;
|
|
114
|
+
getIconStyle(): IconTheme | undefined;
|
|
119
115
|
getTextAndIconPosition(iconCount?: number): {
|
|
120
116
|
text: {
|
|
121
117
|
x: number;
|
|
@@ -145,27 +141,31 @@ declare abstract class BaseCell<T extends SimpleBBox> extends Group {
|
|
|
145
141
|
* Update cell's selected state
|
|
146
142
|
*/
|
|
147
143
|
abstract update(): void;
|
|
144
|
+
protected abstract getBorderPositions(): CellBorderPosition[];
|
|
148
145
|
protected abstract getTextStyle(): TextTheme;
|
|
149
146
|
protected abstract getFormattedFieldValue(): FormatResult;
|
|
150
147
|
protected abstract getMaxTextWidth(): number;
|
|
151
|
-
protected abstract getTextPosition():
|
|
152
|
-
protected abstract findFieldCondition(conditions: Condition[]): Condition;
|
|
153
|
-
protected abstract mappingValue(condition: Condition): MappingResult;
|
|
148
|
+
protected abstract getTextPosition(): PointLike;
|
|
149
|
+
protected abstract findFieldCondition(conditions: Condition[] | undefined): Condition | undefined;
|
|
150
|
+
protected abstract mappingValue(condition: Condition): MappingResult | undefined;
|
|
154
151
|
getStyle<K extends keyof S2Theme = keyof CellThemes>(name?: K): DefaultCellTheme | S2Theme[K];
|
|
155
152
|
protected getResizeAreaStyle(): ResizeArea;
|
|
156
|
-
protected shouldDrawResizeAreaByType(type: keyof ResizeInteractionOptions, cell: S2CellType_2): boolean | ((cell: S2CellType_2<ViewMeta_2>) => boolean) | ResizeType | ((resizeInfo: ResizeInfo_2) => boolean);
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
width: number;
|
|
167
|
-
height: number;
|
|
153
|
+
protected shouldDrawResizeAreaByType(type: keyof ResizeInteractionOptions, cell: S2CellType_2): boolean | ((cell: S2CellType_2<ViewMeta_2>) => boolean) | ResizeType | ((resizeInfo: ResizeInfo_2) => boolean) | undefined;
|
|
154
|
+
getBBoxByType(type?: CellClipBox): SimpleBBox;
|
|
155
|
+
drawBorders(): void;
|
|
156
|
+
/**
|
|
157
|
+
* 绘制hover悬停,刷选的外框
|
|
158
|
+
*/
|
|
159
|
+
protected drawInteractiveBorderShape(): void;
|
|
160
|
+
protected abstract getBackgroundColor(): {
|
|
161
|
+
backgroundColor: string | undefined;
|
|
162
|
+
backgroundColorOpacity: number | undefined;
|
|
168
163
|
};
|
|
164
|
+
protected drawBackgroundShape(): void;
|
|
165
|
+
/**
|
|
166
|
+
* 交互使用的背景色
|
|
167
|
+
*/
|
|
168
|
+
protected drawInteractiveBgShape(): void;
|
|
169
169
|
protected getIconPosition(iconCount?: number): {
|
|
170
170
|
x: number;
|
|
171
171
|
y: number;
|
|
@@ -173,7 +173,7 @@ declare abstract class BaseCell<T extends SimpleBBox> extends Group {
|
|
|
173
173
|
protected drawTextShape(): void;
|
|
174
174
|
protected drawLinkFieldShape(showLinkFieldShape: boolean, linkFillColor: string): void;
|
|
175
175
|
updateByState(stateName: InteractionStateName, cell: S2CellType_2): void;
|
|
176
|
-
protected getInteractiveBorderShapeStyle<T>(
|
|
176
|
+
protected getInteractiveBorderShapeStyle<T>(borderSize: T & number): {
|
|
177
177
|
x: number;
|
|
178
178
|
y: number;
|
|
179
179
|
width: number;
|
|
@@ -181,21 +181,28 @@ declare abstract class BaseCell<T extends SimpleBBox> extends Group {
|
|
|
181
181
|
};
|
|
182
182
|
hideInteractionShape(): void;
|
|
183
183
|
clearUnselectedState(): void;
|
|
184
|
-
getTextShape():
|
|
184
|
+
getTextShape(): DisplayObject<any, any>;
|
|
185
185
|
get cellConditions(): Conditions;
|
|
186
186
|
drawConditionIconShapes(): void;
|
|
187
|
-
getTextConditionFill(textStyle: TextTheme): string;
|
|
187
|
+
getTextConditionFill(textStyle: TextTheme): string | undefined;
|
|
188
188
|
}
|
|
189
189
|
|
|
190
190
|
declare interface BaseChartData {
|
|
191
191
|
type: MiniChartTypes;
|
|
192
|
-
data:
|
|
192
|
+
data: RawData_2[];
|
|
193
193
|
encode?: {
|
|
194
|
-
x: keyof
|
|
195
|
-
y: keyof
|
|
194
|
+
x: keyof RawData_2;
|
|
195
|
+
y: keyof RawData_2;
|
|
196
196
|
};
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
+
declare interface BaseCornerOptions {
|
|
200
|
+
seriesNumberWidth: number;
|
|
201
|
+
facetCfg: SpreadSheetFacetCfg;
|
|
202
|
+
layoutResult: LayoutResult_2;
|
|
203
|
+
spreadsheet: SpreadSheet_2;
|
|
204
|
+
}
|
|
205
|
+
|
|
199
206
|
declare interface BaseDataSet {
|
|
200
207
|
name: string;
|
|
201
208
|
value: string;
|
|
@@ -206,35 +213,45 @@ declare interface BaseDataSet {
|
|
|
206
213
|
declare abstract class BaseDataSet_2 {
|
|
207
214
|
fields: Fields;
|
|
208
215
|
meta: Meta[];
|
|
209
|
-
originData:
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
filterParams: FilterParam[];
|
|
216
|
+
originData: RawData_2[];
|
|
217
|
+
indexesData: RawData_2[][] | RawData_2[];
|
|
218
|
+
sortParams: SortParams_2 | undefined;
|
|
219
|
+
filterParams: FilterParam[] | undefined;
|
|
214
220
|
protected spreadsheet: SpreadSheet_2;
|
|
215
221
|
constructor(spreadsheet: SpreadSheet_2);
|
|
216
|
-
protected displayData:
|
|
222
|
+
protected displayData: RawData_2[];
|
|
223
|
+
private getField;
|
|
217
224
|
/**
|
|
218
|
-
*
|
|
225
|
+
* 获取字段信息
|
|
219
226
|
*/
|
|
220
|
-
getFieldMeta: ((field:
|
|
227
|
+
getFieldMeta: ((field: CustomHeaderField, meta?: Meta[]) => Meta | undefined) & MemoizedFunction;
|
|
221
228
|
/**
|
|
222
|
-
*
|
|
229
|
+
* 获取字段名称
|
|
223
230
|
* @param field
|
|
224
231
|
*/
|
|
225
|
-
getFieldName(field: string): string;
|
|
232
|
+
getFieldName(field: CustomHeaderField, defaultValue?: string): string;
|
|
233
|
+
/**
|
|
234
|
+
* 获取自定义单元格字段名称
|
|
235
|
+
* @param cell
|
|
236
|
+
*/
|
|
237
|
+
getCustomRowFieldName(cell: S2CellType_2<ViewMeta_2 | Node_2_2>): string | undefined;
|
|
238
|
+
/**
|
|
239
|
+
* 获取自定义单元格字段描述
|
|
240
|
+
* @param cell
|
|
241
|
+
*/
|
|
242
|
+
getCustomFieldDescription: (cell: S2CellType_2<ViewMeta_2 | Node_2_2>) => string | undefined;
|
|
226
243
|
/**
|
|
227
244
|
* 获得字段格式方法
|
|
228
245
|
* @param field
|
|
229
246
|
*/
|
|
230
|
-
getFieldFormatter(field:
|
|
247
|
+
getFieldFormatter(field: CustomHeaderField): Formatter;
|
|
231
248
|
/**
|
|
232
249
|
* 获得字段描述
|
|
233
250
|
* @param field
|
|
234
251
|
*/
|
|
235
|
-
getFieldDescription(field:
|
|
252
|
+
getFieldDescription(field: CustomHeaderField): string | undefined;
|
|
236
253
|
setDataCfg(dataCfg: S2DataConfig_2): void;
|
|
237
|
-
getDisplayDataSet():
|
|
254
|
+
getDisplayDataSet(): RawData_2[];
|
|
238
255
|
getValueRangeByField(field: string): ValueRange;
|
|
239
256
|
/** ******************NEED IMPLEMENT BY USER CASE************************ */
|
|
240
257
|
/**
|
|
@@ -259,22 +276,21 @@ declare abstract class BaseDataSet_2 {
|
|
|
259
276
|
* @param field current dimensions
|
|
260
277
|
* @param query dimension value query
|
|
261
278
|
*/
|
|
262
|
-
abstract getDimensionValues(field: string, query?:
|
|
279
|
+
abstract getDimensionValues(field: string, query?: Query): string[];
|
|
263
280
|
/**
|
|
264
281
|
* In most cases, this function to get the specific
|
|
265
282
|
* cross data cell data
|
|
266
283
|
* @param params
|
|
267
284
|
*/
|
|
268
|
-
abstract getCellData(params: CellDataParams):
|
|
285
|
+
abstract getCellData(params: CellDataParams): ViewMetaData_2 | undefined;
|
|
269
286
|
/**
|
|
270
287
|
* To get a row or column cells data;
|
|
271
288
|
* if query is empty, return all data
|
|
272
289
|
* @param query
|
|
273
|
-
* @param
|
|
274
|
-
* @param isRow
|
|
290
|
+
* @param totals @TotalSelectionsOfMultiData
|
|
275
291
|
* @param drillDownFields
|
|
276
292
|
*/
|
|
277
|
-
abstract getMultiData(query:
|
|
293
|
+
abstract getMultiData(query: Query, totals?: TotalSelectionsOfMultiData, drillDownFields?: string[]): Data[] | CellData[];
|
|
278
294
|
moreThanOneValue(): boolean;
|
|
279
295
|
}
|
|
280
296
|
|
|
@@ -283,7 +299,7 @@ declare interface BaseDrillDownComponentProps<DataSet = BaseDataSet> {
|
|
|
283
299
|
titleText?: string;
|
|
284
300
|
searchText?: string;
|
|
285
301
|
clearButtonText?: string;
|
|
286
|
-
dataSet
|
|
302
|
+
dataSet?: DataSet[] | undefined;
|
|
287
303
|
drillFields?: string[];
|
|
288
304
|
disabledFields?: string[];
|
|
289
305
|
getDrillFields?: (drillFields: string[]) => void;
|
|
@@ -294,8 +310,8 @@ declare interface BaseDrillDownComponentProps<DataSet = BaseDataSet> {
|
|
|
294
310
|
declare abstract class BaseEvent {
|
|
295
311
|
spreadsheet: SpreadSheet_2;
|
|
296
312
|
constructor(spreadsheet: SpreadSheet_2);
|
|
297
|
-
getCellAppendInfo<T extends Record<string, any> = CellAppendInfo>(eventTarget:
|
|
298
|
-
isLinkFieldText: (eventTarget:
|
|
313
|
+
getCellAppendInfo<T extends Record<string, any> = CellAppendInfo>(eventTarget: FederatedPointerEvent['target']): T;
|
|
314
|
+
isLinkFieldText: (eventTarget: FederatedPointerEvent['target']) => boolean | undefined;
|
|
299
315
|
reset(): void;
|
|
300
316
|
abstract bindEvents(): void;
|
|
301
317
|
}
|
|
@@ -304,9 +320,16 @@ declare abstract class BaseFacet {
|
|
|
304
320
|
spreadsheet: SpreadSheet_2;
|
|
305
321
|
cornerBBox: CornerBBox;
|
|
306
322
|
panelBBox: PanelBBox;
|
|
307
|
-
backgroundGroup:
|
|
308
|
-
panelGroup:
|
|
309
|
-
|
|
323
|
+
backgroundGroup: Group;
|
|
324
|
+
panelGroup: Group;
|
|
325
|
+
panelScrollGroup: PanelScrollGroup;
|
|
326
|
+
frozenRowGroup: FrozenGroup;
|
|
327
|
+
frozenColGroup: FrozenGroup;
|
|
328
|
+
frozenTrailingRowGroup: FrozenGroup;
|
|
329
|
+
frozenTrailingColGroup: FrozenGroup;
|
|
330
|
+
frozenTopGroup: FrozenGroup;
|
|
331
|
+
frozenBottomGroup: FrozenGroup;
|
|
332
|
+
foregroundGroup: Group;
|
|
310
333
|
cfg: SpreadSheetFacetCfg;
|
|
311
334
|
layoutResult: LayoutResult_2;
|
|
312
335
|
viewCellWidths: number[];
|
|
@@ -316,21 +339,24 @@ declare abstract class BaseFacet {
|
|
|
316
339
|
hScrollBar: ScrollBar;
|
|
317
340
|
hRowScrollBar: ScrollBar;
|
|
318
341
|
vScrollBar: ScrollBar;
|
|
319
|
-
rowHeader: RowHeader;
|
|
342
|
+
rowHeader: RowHeader | null;
|
|
320
343
|
columnHeader: ColHeader;
|
|
321
344
|
cornerHeader: CornerHeader;
|
|
322
|
-
rowIndexHeader: SeriesNumberHeader;
|
|
345
|
+
rowIndexHeader: SeriesNumberHeader | null;
|
|
323
346
|
centerFrame: Frame;
|
|
324
347
|
gridInfo: GridInfo;
|
|
325
348
|
protected abstract doLayout(): LayoutResult_2;
|
|
326
349
|
abstract getViewCellHeights(layoutResult: LayoutResult_2): ViewCellHeights;
|
|
327
|
-
protected scrollFrameId: ReturnType<typeof requestAnimationFrame
|
|
328
|
-
get scrollBarTheme(): ScrollBarTheme;
|
|
350
|
+
protected scrollFrameId: ReturnType<typeof requestAnimationFrame> | null;
|
|
351
|
+
get scrollBarTheme(): ScrollBarTheme | undefined;
|
|
329
352
|
get scrollBarSize(): number;
|
|
330
|
-
protected preCellIndexes: PanelIndexes;
|
|
353
|
+
protected preCellIndexes: PanelIndexes | null;
|
|
331
354
|
constructor(cfg: SpreadSheetFacetCfg);
|
|
332
|
-
protected
|
|
333
|
-
protected
|
|
355
|
+
protected initGroups(): void;
|
|
356
|
+
protected initPanelGroups(): void;
|
|
357
|
+
protected getCellCustomWidth(node: Node_2_2 | null, width: CellCustomWidth): number | null;
|
|
358
|
+
protected getRowCellDraggedWidth(node: Node_2_2): number;
|
|
359
|
+
protected getColCellDraggedWidth(node: Node_2_2): number;
|
|
334
360
|
hideScrollBar: () => void;
|
|
335
361
|
delayHideScrollBar: DebouncedFunc<() => void>;
|
|
336
362
|
delayHideScrollbarOnMobile: () => void;
|
|
@@ -353,7 +379,7 @@ declare abstract class BaseFacet {
|
|
|
353
379
|
*/
|
|
354
380
|
protected adjustScrollOffset(): void;
|
|
355
381
|
getSeriesNumberWidth(): number;
|
|
356
|
-
|
|
382
|
+
getCanvasSize(): {
|
|
357
383
|
width: number;
|
|
358
384
|
height: number;
|
|
359
385
|
};
|
|
@@ -362,10 +388,9 @@ declare abstract class BaseFacet {
|
|
|
362
388
|
getPaginationScrollY(): number;
|
|
363
389
|
destroy(): void;
|
|
364
390
|
setScrollOffset: (scrollOffset: ScrollOffset) => void;
|
|
365
|
-
getScrollOffset: () => ScrollOffset
|
|
391
|
+
getScrollOffset: () => Required<ScrollOffset>;
|
|
366
392
|
emitPaginationEvent: () => void;
|
|
367
393
|
private unbindEvents;
|
|
368
|
-
clipPanelGroup: () => void;
|
|
369
394
|
calculateCellWidthHeight: () => void;
|
|
370
395
|
/**
|
|
371
396
|
* The purpose of this rewrite is to take into account that when rowHeader supports scrollbars
|
|
@@ -384,14 +409,14 @@ declare abstract class BaseFacet {
|
|
|
384
409
|
end: number;
|
|
385
410
|
};
|
|
386
411
|
getRealHeight: () => number;
|
|
387
|
-
clearAllGroup
|
|
412
|
+
clearAllGroup(): void;
|
|
388
413
|
scrollWithAnimation: (offsetConfig?: OffsetConfig, duration?: number, cb?: () => void) => void;
|
|
389
414
|
scrollImmediately: (offsetConfig?: OffsetConfig) => void;
|
|
390
415
|
/**
|
|
391
416
|
*
|
|
392
|
-
* @param
|
|
417
|
+
* @param skipScrollEvent 如为true则不触发S2Event.GLOBAL_SCROLL
|
|
393
418
|
*/
|
|
394
|
-
startScroll: (
|
|
419
|
+
startScroll: (skipScrollEvent?: boolean) => void;
|
|
395
420
|
getRendererHeight: () => number;
|
|
396
421
|
private getAdjustedScrollOffset;
|
|
397
422
|
renderRowScrollBar: (rowScrollX: number) => void;
|
|
@@ -431,7 +456,6 @@ declare abstract class BaseFacet {
|
|
|
431
456
|
private stopScrollChainingIfNeeded;
|
|
432
457
|
private stopScrollChaining;
|
|
433
458
|
onWheel: (event: WheelEvent) => void;
|
|
434
|
-
protected clip(scrollX: number, scrollY: number): void;
|
|
435
459
|
/**
|
|
436
460
|
* Translate panelGroup, rowHeader, cornerHeader, columnHeader ect
|
|
437
461
|
* according to new scroll offset
|
|
@@ -462,28 +486,35 @@ declare abstract class BaseFacet {
|
|
|
462
486
|
* 5. series number header
|
|
463
487
|
*/
|
|
464
488
|
protected renderHeaders(): void;
|
|
465
|
-
protected getRowHeader(): RowHeader;
|
|
489
|
+
protected getRowHeader(): RowHeader | null;
|
|
466
490
|
protected getColHeader(): ColHeader;
|
|
467
491
|
protected getCornerHeader(): CornerHeader;
|
|
468
|
-
protected getSeriesNumberHeader(): SeriesNumberHeader;
|
|
492
|
+
protected getSeriesNumberHeader(): SeriesNumberHeader | null;
|
|
469
493
|
protected getCenterFrame(): Frame;
|
|
470
494
|
protected getGridInfo: () => {
|
|
471
495
|
cols: number[];
|
|
472
|
-
rows:
|
|
496
|
+
rows: number[];
|
|
473
497
|
};
|
|
474
498
|
updatePanelScrollGroup(): void;
|
|
475
499
|
/**
|
|
476
500
|
*
|
|
477
|
-
* @param
|
|
501
|
+
* @param skipScrollEvent: 如true则不触发GLOBAL_SCROLL事件
|
|
478
502
|
* During scroll behavior, first call to this method fires immediately and then on interval.
|
|
479
503
|
* @protected
|
|
480
504
|
*/
|
|
481
|
-
protected dynamicRenderCell(
|
|
505
|
+
protected dynamicRenderCell(skipScrollEvent?: boolean): void;
|
|
482
506
|
private emitScrollEvent;
|
|
483
507
|
protected onAfterScroll: DebouncedFunc<() => void>;
|
|
484
508
|
protected saveInitColumnLeafNodes(columnNodes?: Node_2_2[]): void;
|
|
485
509
|
}
|
|
486
510
|
|
|
511
|
+
declare interface BaseFields {
|
|
512
|
+
rows?: CustomHeaderFields;
|
|
513
|
+
columns?: CustomHeaderFields;
|
|
514
|
+
values?: string[];
|
|
515
|
+
valueInCols?: boolean;
|
|
516
|
+
}
|
|
517
|
+
|
|
487
518
|
/**
|
|
488
519
|
* New Base Header for all headers(cornerHeader, rowHeader, colHeader)
|
|
489
520
|
* NOTE: Do not use this.cfg(which lays in group) to get header config,
|
|
@@ -492,6 +523,7 @@ declare abstract class BaseFacet {
|
|
|
492
523
|
declare abstract class BaseHeader<T extends BaseHeaderConfig> extends Group {
|
|
493
524
|
protected headerConfig: T;
|
|
494
525
|
protected constructor(cfg: T);
|
|
526
|
+
getHeaderConfig(): T;
|
|
495
527
|
/**
|
|
496
528
|
* 清空热区,为重绘做准备,防止热区重复渲染
|
|
497
529
|
* @param type 当前重绘的header类型
|
|
@@ -511,18 +543,19 @@ declare abstract class BaseHeader<T extends BaseHeaderConfig> extends Group {
|
|
|
511
543
|
* @param type
|
|
512
544
|
*/
|
|
513
545
|
onRowScrollX(rowScrollX: number, type: string): void;
|
|
514
|
-
protected abstract layout():
|
|
515
|
-
protected abstract offset():
|
|
516
|
-
protected abstract clip():
|
|
546
|
+
protected abstract layout(): void;
|
|
547
|
+
protected abstract offset(): void;
|
|
548
|
+
protected abstract clip(): void;
|
|
517
549
|
clear(): void;
|
|
518
550
|
/**
|
|
519
551
|
* Check whether header cell in viewPort
|
|
520
|
-
* @param gridPos
|
|
521
|
-
* @param gridSize
|
|
522
|
-
* @param viewportPos
|
|
523
|
-
* @param viewportSize
|
|
524
552
|
*/
|
|
525
|
-
protected isHeaderCellInViewport: (
|
|
553
|
+
protected isHeaderCellInViewport: ({ cellPosition, cellSize, viewportPosition, viewportSize, }: {
|
|
554
|
+
cellPosition: number;
|
|
555
|
+
cellSize: number;
|
|
556
|
+
viewportPosition: number;
|
|
557
|
+
viewportSize: number;
|
|
558
|
+
}) => boolean;
|
|
526
559
|
}
|
|
527
560
|
|
|
528
561
|
/**
|
|
@@ -537,7 +570,7 @@ declare interface BaseHeaderConfig {
|
|
|
537
570
|
originalHeight?: number;
|
|
538
571
|
viewportWidth: number;
|
|
539
572
|
viewportHeight: number;
|
|
540
|
-
position:
|
|
573
|
+
position: PointLike;
|
|
541
574
|
data: Node_2_2[];
|
|
542
575
|
spreadsheet: SpreadSheet_2;
|
|
543
576
|
sortParam?: SortParam;
|
|
@@ -593,14 +626,14 @@ loading: BooleanConstructor;
|
|
|
593
626
|
partDrillDown: ObjectConstructor;
|
|
594
627
|
header: ObjectConstructor;
|
|
595
628
|
options: {
|
|
596
|
-
type: PropType<
|
|
597
|
-
default:
|
|
629
|
+
type: PropType<S2Options<TooltipContentType, Pagination>>;
|
|
630
|
+
default: S2Options<TooltipContentType, Pagination>;
|
|
598
631
|
};
|
|
599
632
|
adaptive: {
|
|
600
633
|
type: PropType<Adaptive>;
|
|
601
634
|
default: Adaptive;
|
|
602
635
|
};
|
|
603
|
-
onSpreadsheet: PropType<(container: S2MountContainer, dataCfg: S2DataConfig, options:
|
|
636
|
+
onSpreadsheet: PropType<(container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination>) => SpreadSheet>;
|
|
604
637
|
onGetSpreadSheet: PropType<(spreadsheet: SpreadSheet) => void>;
|
|
605
638
|
onMounted: PropType<(spreadsheet: SpreadSheet) => void>;
|
|
606
639
|
}, {
|
|
@@ -652,7 +685,7 @@ dataCellMouseUp: (data: TargetCellInfo) => void;
|
|
|
652
685
|
dataCellMouseMove: (data: TargetCellInfo) => void;
|
|
653
686
|
dataCellTrendIconClick: (meta: ViewMeta) => void;
|
|
654
687
|
dataCellBrushSelection: (brushRangeDataCells: DataCell[]) => void;
|
|
655
|
-
dataCellSelectMove: (metas:
|
|
688
|
+
dataCellSelectMove: (metas: ViewMetaData[]) => void;
|
|
656
689
|
cornerCellHover: (data: TargetCellInfo) => void;
|
|
657
690
|
cornerCellClick: (data: TargetCellInfo) => void;
|
|
658
691
|
cornerCellDoubleClick: (data: TargetCellInfo) => void;
|
|
@@ -668,20 +701,16 @@ mergedCellsMouseDown: (data: TargetCellInfo) => void;
|
|
|
668
701
|
mergedCellsMouseUp: (data: TargetCellInfo) => void;
|
|
669
702
|
mergedCellsMouseMove: (data: TargetCellInfo) => void;
|
|
670
703
|
rangeSort: (params: SortParams) => void;
|
|
671
|
-
rangeSorted: (event:
|
|
704
|
+
rangeSorted: (event: GEvent) => void;
|
|
672
705
|
rangeFilter: (data: {
|
|
673
706
|
filterKey: string;
|
|
674
707
|
filteredValues: string[];
|
|
675
708
|
}) => void;
|
|
676
|
-
rangeFiltered: (data:
|
|
709
|
+
rangeFiltered: (data: ViewMetaData[]) => void;
|
|
677
710
|
layoutAfterHeaderLayout: (layoutResult: LayoutResult) => void;
|
|
678
|
-
layoutPagination: (data:
|
|
679
|
-
pageSize: number;
|
|
680
|
-
pageCount: number;
|
|
681
|
-
total: number;
|
|
682
|
-
current: number;
|
|
683
|
-
}) => void;
|
|
711
|
+
layoutPagination: (data: LayoutPaginationParams) => void;
|
|
684
712
|
layoutCellScroll: (position: CellScrollPosition) => void;
|
|
713
|
+
layoutCellMounted: (cell: S2CellType<ViewMeta>) => void;
|
|
685
714
|
layoutCollapseRows: (data: CollapsedRowsType) => void;
|
|
686
715
|
layoutAfterCollapseRows: (data: CollapsedRowsType) => void;
|
|
687
716
|
collapseRowsAll: (hierarchyCollapse: boolean) => void;
|
|
@@ -716,14 +745,14 @@ resizeInfo?: ResizeInfo;
|
|
|
716
745
|
keyBoardDown: (event: KeyboardEvent) => void;
|
|
717
746
|
keyBoardUp: (event: KeyboardEvent) => void;
|
|
718
747
|
copied: (copyData: string) => void;
|
|
719
|
-
actionIconHover: (event:
|
|
720
|
-
actionIconHoverOff: (event:
|
|
721
|
-
actionIconClick: (event:
|
|
722
|
-
contextMenu: (event:
|
|
723
|
-
click: (event:
|
|
724
|
-
hover: (event:
|
|
725
|
-
doubleClick: (event:
|
|
726
|
-
mouseHover: (event:
|
|
748
|
+
actionIconHover: (event: GEvent) => void;
|
|
749
|
+
actionIconHoverOff: (event: GEvent) => void;
|
|
750
|
+
actionIconClick: (event: GEvent) => void;
|
|
751
|
+
contextMenu: (event: GEvent) => void;
|
|
752
|
+
click: (event: GEvent) => void;
|
|
753
|
+
hover: (event: GEvent) => void;
|
|
754
|
+
doubleClick: (event: GEvent) => void;
|
|
755
|
+
mouseHover: (event: GEvent) => void;
|
|
727
756
|
mouseUp: (event: MouseEvent) => void;
|
|
728
757
|
mouseDown: (event: MouseEvent) => void;
|
|
729
758
|
mouseMove: (event: MouseEvent) => void;
|
|
@@ -731,11 +760,11 @@ selected: (cells: S2CellType<ViewMeta>[]) => void;
|
|
|
731
760
|
reset: (event: KeyboardEvent) => void;
|
|
732
761
|
linkFieldJump: (data: {
|
|
733
762
|
key: string;
|
|
734
|
-
record:
|
|
763
|
+
record: RawData;
|
|
735
764
|
}) => void;
|
|
736
765
|
scroll: (position: CellScrollPosition) => void;
|
|
737
|
-
rowCellBrushSelection: (event:
|
|
738
|
-
colCellBrushSelection: (event:
|
|
766
|
+
rowCellBrushSelection: (event: GEvent) => void;
|
|
767
|
+
colCellBrushSelection: (event: GEvent) => void;
|
|
739
768
|
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
|
|
740
769
|
sheetType: PropType<SheetType>;
|
|
741
770
|
dataCfg: PropType<S2DataConfig>;
|
|
@@ -754,18 +783,17 @@ loading: BooleanConstructor;
|
|
|
754
783
|
partDrillDown: ObjectConstructor;
|
|
755
784
|
header: ObjectConstructor;
|
|
756
785
|
options: {
|
|
757
|
-
type: PropType<
|
|
758
|
-
default:
|
|
786
|
+
type: PropType<S2Options<TooltipContentType, Pagination>>;
|
|
787
|
+
default: S2Options<TooltipContentType, Pagination>;
|
|
759
788
|
};
|
|
760
789
|
adaptive: {
|
|
761
790
|
type: PropType<Adaptive>;
|
|
762
791
|
default: Adaptive;
|
|
763
792
|
};
|
|
764
|
-
onSpreadsheet: PropType<(container: S2MountContainer, dataCfg: S2DataConfig, options:
|
|
793
|
+
onSpreadsheet: PropType<(container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination>) => SpreadSheet>;
|
|
765
794
|
onGetSpreadSheet: PropType<(spreadsheet: SpreadSheet) => void>;
|
|
766
795
|
onMounted: PropType<(spreadsheet: SpreadSheet) => void>;
|
|
767
796
|
}>> & {
|
|
768
|
-
onMounted?: (spreadsheet: SpreadSheet) => any;
|
|
769
797
|
onSheetUpdate?: (params: S2RenderOptions) => any;
|
|
770
798
|
onRowCellHover?: (data: TargetCellInfo) => any;
|
|
771
799
|
onRowCellClick?: (data: TargetCellInfo) => any;
|
|
@@ -796,7 +824,7 @@ onDataCellMouseUp?: (data: TargetCellInfo) => any;
|
|
|
796
824
|
onDataCellMouseMove?: (data: TargetCellInfo) => any;
|
|
797
825
|
onDataCellTrendIconClick?: (meta: ViewMeta) => any;
|
|
798
826
|
onDataCellBrushSelection?: (brushRangeDataCells: DataCell[]) => any;
|
|
799
|
-
onDataCellSelectMove?: (metas:
|
|
827
|
+
onDataCellSelectMove?: (metas: ViewMetaData[]) => any;
|
|
800
828
|
onCornerCellHover?: (data: TargetCellInfo) => any;
|
|
801
829
|
onCornerCellClick?: (data: TargetCellInfo) => any;
|
|
802
830
|
onCornerCellDoubleClick?: (data: TargetCellInfo) => any;
|
|
@@ -812,20 +840,16 @@ onMergedCellsMouseDown?: (data: TargetCellInfo) => any;
|
|
|
812
840
|
onMergedCellsMouseUp?: (data: TargetCellInfo) => any;
|
|
813
841
|
onMergedCellsMouseMove?: (data: TargetCellInfo) => any;
|
|
814
842
|
onRangeSort?: (params: SortParams) => any;
|
|
815
|
-
onRangeSorted?: (event:
|
|
843
|
+
onRangeSorted?: (event: GEvent) => any;
|
|
816
844
|
onRangeFilter?: (data: {
|
|
817
845
|
filterKey: string;
|
|
818
846
|
filteredValues: string[];
|
|
819
847
|
}) => any;
|
|
820
|
-
onRangeFiltered?: (data:
|
|
848
|
+
onRangeFiltered?: (data: ViewMetaData[]) => any;
|
|
821
849
|
onLayoutAfterHeaderLayout?: (layoutResult: LayoutResult) => any;
|
|
822
|
-
onLayoutPagination?: (data:
|
|
823
|
-
pageSize: number;
|
|
824
|
-
pageCount: number;
|
|
825
|
-
total: number;
|
|
826
|
-
current: number;
|
|
827
|
-
}) => any;
|
|
850
|
+
onLayoutPagination?: (data: LayoutPaginationParams) => any;
|
|
828
851
|
onLayoutCellScroll?: (position: CellScrollPosition) => any;
|
|
852
|
+
onLayoutCellMounted?: (cell: S2CellType<ViewMeta>) => any;
|
|
829
853
|
onLayoutCollapseRows?: (data: CollapsedRowsType) => any;
|
|
830
854
|
onLayoutAfterCollapseRows?: (data: CollapsedRowsType) => any;
|
|
831
855
|
onCollapseRowsAll?: (hierarchyCollapse: boolean) => any;
|
|
@@ -836,6 +860,7 @@ hiddenColumnsDetail: HiddenColumnsInfo[];
|
|
|
836
860
|
}) => any;
|
|
837
861
|
onBeforeRender?: () => any;
|
|
838
862
|
onAfterRender?: () => any;
|
|
863
|
+
onMounted?: (spreadsheet: SpreadSheet) => any;
|
|
839
864
|
onDestroy?: () => any;
|
|
840
865
|
onLayoutResize?: (params: ResizeParams) => any;
|
|
841
866
|
onLayoutResizeSeriesWidth?: (params: ResizeParams) => any;
|
|
@@ -859,14 +884,14 @@ resizeInfo?: ResizeInfo;
|
|
|
859
884
|
onKeyBoardDown?: (event: KeyboardEvent) => any;
|
|
860
885
|
onKeyBoardUp?: (event: KeyboardEvent) => any;
|
|
861
886
|
onCopied?: (copyData: string) => any;
|
|
862
|
-
onActionIconHover?: (event:
|
|
863
|
-
onActionIconHoverOff?: (event:
|
|
864
|
-
onActionIconClick?: (event:
|
|
865
|
-
onContextMenu?: (event:
|
|
866
|
-
onClick?: (event:
|
|
867
|
-
onHover?: (event:
|
|
868
|
-
onDoubleClick?: (event:
|
|
869
|
-
onMouseHover?: (event:
|
|
887
|
+
onActionIconHover?: (event: GEvent) => any;
|
|
888
|
+
onActionIconHoverOff?: (event: GEvent) => any;
|
|
889
|
+
onActionIconClick?: (event: GEvent) => any;
|
|
890
|
+
onContextMenu?: (event: GEvent) => any;
|
|
891
|
+
onClick?: (event: GEvent) => any;
|
|
892
|
+
onHover?: (event: GEvent) => any;
|
|
893
|
+
onDoubleClick?: (event: GEvent) => any;
|
|
894
|
+
onMouseHover?: (event: GEvent) => any;
|
|
870
895
|
onMouseUp?: (event: MouseEvent) => any;
|
|
871
896
|
onMouseDown?: (event: MouseEvent) => any;
|
|
872
897
|
onMouseMove?: (event: MouseEvent) => any;
|
|
@@ -874,15 +899,15 @@ onSelected?: (cells: S2CellType<ViewMeta>[]) => any;
|
|
|
874
899
|
onReset?: (event: KeyboardEvent) => any;
|
|
875
900
|
onLinkFieldJump?: (data: {
|
|
876
901
|
key: string;
|
|
877
|
-
record:
|
|
902
|
+
record: RawData;
|
|
878
903
|
}) => any;
|
|
879
904
|
onScroll?: (position: CellScrollPosition) => any;
|
|
880
|
-
onRowCellBrushSelection?: (event:
|
|
881
|
-
onColCellBrushSelection?: (event:
|
|
905
|
+
onRowCellBrushSelection?: (event: GEvent) => any;
|
|
906
|
+
onColCellBrushSelection?: (event: GEvent) => any;
|
|
882
907
|
onSpreadsheet?: (container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination>) => any;
|
|
883
908
|
onGetSpreadSheet?: (spreadsheet: SpreadSheet) => any;
|
|
884
909
|
}, {
|
|
885
|
-
options:
|
|
910
|
+
options: S2Options<TooltipContentType, Pagination>;
|
|
886
911
|
loading: boolean;
|
|
887
912
|
adaptive: boolean | {
|
|
888
913
|
width?: boolean;
|
|
@@ -895,13 +920,14 @@ onChange?: (current: number) => void;
|
|
|
895
920
|
};
|
|
896
921
|
}>;
|
|
897
922
|
|
|
898
|
-
declare interface BaseSheetComponentProps<
|
|
923
|
+
declare interface BaseSheetComponentProps<RenderHandler = unknown, PartialDrillDown = PartDrillDown, Header = unknown, Options = S2Options<TooltipContentType, Pagination>> {
|
|
899
924
|
sheetType?: SheetType;
|
|
900
925
|
spreadsheet?: (container: S2MountContainer, dataCfg: S2DataConfig, options: Options) => SpreadSheet;
|
|
901
926
|
dataCfg: S2DataConfig;
|
|
902
927
|
options?: Options;
|
|
903
928
|
loading?: boolean;
|
|
904
929
|
partDrillDown?: PartialDrillDown;
|
|
930
|
+
renderConfig?: RenderHandler;
|
|
905
931
|
adaptive?: Adaptive;
|
|
906
932
|
showPagination?: boolean | {
|
|
907
933
|
onShowSizeChange?: (pageSize: number) => void;
|
|
@@ -942,7 +968,7 @@ declare interface BaseSheetComponentProps<PartialDrillDown = unknown, Header = u
|
|
|
942
968
|
onDataCellMouseMove?: (data: TargetCellInfo) => void;
|
|
943
969
|
onDataCellTrendIconClick?: (meta: ViewMeta) => void;
|
|
944
970
|
onDataCellBrushSelection?: (brushRangeDataCells: DataCell[]) => void;
|
|
945
|
-
onDataCellSelectMove?: (metas:
|
|
971
|
+
onDataCellSelectMove?: (metas: ViewMetaData[]) => void;
|
|
946
972
|
onCornerCellHover?: (data: TargetCellInfo) => void;
|
|
947
973
|
onCornerCellClick?: (data: TargetCellInfo) => void;
|
|
948
974
|
onCornerCellDoubleClick?: (data: TargetCellInfo) => void;
|
|
@@ -963,16 +989,12 @@ declare interface BaseSheetComponentProps<PartialDrillDown = unknown, Header = u
|
|
|
963
989
|
filterKey: string;
|
|
964
990
|
filteredValues: string[];
|
|
965
991
|
}) => void;
|
|
966
|
-
onRangeFiltered?: (data:
|
|
992
|
+
onRangeFiltered?: (data: ViewMetaData[]) => void;
|
|
967
993
|
onLayoutAfterHeaderLayout?: (layoutResult: LayoutResult) => void;
|
|
968
|
-
onLayoutPagination?: (data:
|
|
969
|
-
pageSize: number;
|
|
970
|
-
pageCount: number;
|
|
971
|
-
total: number;
|
|
972
|
-
current: number;
|
|
973
|
-
}) => void;
|
|
994
|
+
onLayoutPagination?: (data: LayoutPaginationParams) => void;
|
|
974
995
|
/** @deprecated 已废弃, 请使用 S2Event.GLOBAL_SCROLL 代替 */
|
|
975
996
|
onLayoutCellScroll?: (position: CellScrollPosition) => void;
|
|
997
|
+
onLayoutCellMounted?: (cell: S2CellType) => void;
|
|
976
998
|
onLayoutCollapseRows?: (data: CollapsedRowsType) => void;
|
|
977
999
|
onLayoutAfterCollapseRows?: (data: CollapsedRowsType) => void;
|
|
978
1000
|
onCollapseRowsAll?: (hierarchyCollapse: boolean) => void;
|
|
@@ -1022,7 +1044,7 @@ declare interface BaseSheetComponentProps<PartialDrillDown = unknown, Header = u
|
|
|
1022
1044
|
onReset?: (event: KeyboardEvent) => void;
|
|
1023
1045
|
onLinkFieldJump?: (data: {
|
|
1024
1046
|
key: string;
|
|
1025
|
-
record:
|
|
1047
|
+
record: RawData;
|
|
1026
1048
|
}) => void;
|
|
1027
1049
|
onScroll?: (position: CellScrollPosition) => void;
|
|
1028
1050
|
onRowCellBrushSelection?: (event: GEvent) => void;
|
|
@@ -1035,7 +1057,7 @@ declare interface BaseSheetComponentProps<PartialDrillDown = unknown, Header = u
|
|
|
1035
1057
|
declare class BaseTooltip_2 {
|
|
1036
1058
|
visible: boolean;
|
|
1037
1059
|
spreadsheet: SpreadSheet_2;
|
|
1038
|
-
container: HTMLElement;
|
|
1060
|
+
container: HTMLElement | null;
|
|
1039
1061
|
options: TooltipShowOptions;
|
|
1040
1062
|
position: TooltipPosition;
|
|
1041
1063
|
constructor(spreadsheet: SpreadSheet_2);
|
|
@@ -1061,6 +1083,17 @@ declare interface BaseTooltipConfig<T = TooltipContentType_2> {
|
|
|
1061
1083
|
style?: CSS_2.Properties;
|
|
1062
1084
|
}
|
|
1063
1085
|
|
|
1086
|
+
declare interface BBox {
|
|
1087
|
+
x: number;
|
|
1088
|
+
y: number;
|
|
1089
|
+
minX: number;
|
|
1090
|
+
minY: number;
|
|
1091
|
+
maxX: number;
|
|
1092
|
+
maxY: number;
|
|
1093
|
+
width: number;
|
|
1094
|
+
height: number;
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1064
1097
|
declare interface BrushSelection {
|
|
1065
1098
|
data?: boolean;
|
|
1066
1099
|
row?: boolean;
|
|
@@ -1093,10 +1126,10 @@ declare interface BulletValue {
|
|
|
1093
1126
|
|
|
1094
1127
|
declare interface CalcTotals {
|
|
1095
1128
|
aggregation?: Aggregation;
|
|
1096
|
-
calcFunc?: (query:
|
|
1129
|
+
calcFunc?: (query: Query, arr: CellData[]) => number;
|
|
1097
1130
|
}
|
|
1098
1131
|
|
|
1099
|
-
declare type CanvasEventHandler = (event:
|
|
1132
|
+
declare type CanvasEventHandler = (event: FederatedPointerEvent) => void;
|
|
1100
1133
|
|
|
1101
1134
|
declare interface CellAppendInfo<T = Node_2_2> extends Partial<ResizeInfo_2> {
|
|
1102
1135
|
isLinkFieldText?: boolean;
|
|
@@ -1122,16 +1155,52 @@ declare interface CellCfg {
|
|
|
1122
1155
|
};
|
|
1123
1156
|
}
|
|
1124
1157
|
|
|
1125
|
-
|
|
1158
|
+
/**
|
|
1159
|
+
* 类似 background-clip 属性: https://developer.mozilla.org/en-US/docs/Web/CSS/background-clip
|
|
1160
|
+
* 分为三种类型:
|
|
1161
|
+
* borderBox: 整个 cell 的范围
|
|
1162
|
+
* paddingBox: cell 去除 border 的范围
|
|
1163
|
+
* contentBox: cell 去除 (border + padding) 的范围
|
|
1164
|
+
* -------------------------------
|
|
1165
|
+
* |b| padding |
|
|
1166
|
+
* |o| |---------------------| |
|
|
1167
|
+
* |r| | | |
|
|
1168
|
+
* |d| | | |
|
|
1169
|
+
* |e| |---------------------| |
|
|
1170
|
+
* |r| padding |
|
|
1171
|
+
* -------------------------------
|
|
1172
|
+
* -------border-bottom-----------
|
|
1173
|
+
* -------------------------------
|
|
1174
|
+
*/
|
|
1175
|
+
declare enum CellClipBox {
|
|
1176
|
+
BORDER_BOX = "borderBox",
|
|
1177
|
+
PADDING_BOX = "paddingBox",
|
|
1178
|
+
CONTENT_BOX = "contentBox"
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
declare type CellCustomWidth = null | number | ((node: Node_2_2 | null) => number);
|
|
1182
|
+
|
|
1183
|
+
declare class CellData {
|
|
1184
|
+
private raw;
|
|
1185
|
+
private extraField;
|
|
1186
|
+
constructor(raw: RawData_2, extraField: string);
|
|
1187
|
+
static getCellDataList(raw: RawData_2, extraFields: string[]): CellData[];
|
|
1188
|
+
getOrigin(): RawData_2;
|
|
1189
|
+
getValueByKey(key: string): DataItem;
|
|
1190
|
+
get [EXTRA_FIELD](): string;
|
|
1191
|
+
get [VALUE_FIELD](): DataItem;
|
|
1192
|
+
}
|
|
1126
1193
|
|
|
1127
1194
|
declare interface CellDataParams {
|
|
1128
|
-
query:
|
|
1195
|
+
query: Query;
|
|
1129
1196
|
isTotals?: boolean;
|
|
1130
1197
|
rowNode?: Node_2_2;
|
|
1131
1198
|
isRow?: boolean;
|
|
1132
1199
|
}
|
|
1133
1200
|
|
|
1134
|
-
declare
|
|
1201
|
+
declare type CellEventTarget = FederatedPointerEvent['target'] | null | undefined;
|
|
1202
|
+
|
|
1203
|
+
declare interface CellMeta {
|
|
1135
1204
|
id: string;
|
|
1136
1205
|
colIndex: number;
|
|
1137
1206
|
rowIndex: number;
|
|
@@ -1184,21 +1253,17 @@ declare enum CellTypes {
|
|
|
1184
1253
|
declare class ColCell extends HeaderCell {
|
|
1185
1254
|
protected headerConfig: ColHeaderConfig;
|
|
1186
1255
|
/** 文字绘制起始坐标 */
|
|
1187
|
-
protected textPosition:
|
|
1256
|
+
protected textPosition: PointLike;
|
|
1188
1257
|
get cellType(): CellTypes;
|
|
1258
|
+
protected getBorderPositions(): CellBorderPosition[];
|
|
1189
1259
|
protected initCell(): void;
|
|
1190
|
-
protected drawInteractiveBgShape(): void;
|
|
1191
|
-
/**
|
|
1192
|
-
* 绘制hover悬停,刷选的外框
|
|
1193
|
-
*/
|
|
1194
|
-
protected drawInteractiveBorderShape(): void;
|
|
1195
1260
|
protected getMaxTextWidth(): number;
|
|
1196
|
-
protected getIconPosition():
|
|
1261
|
+
protected getIconPosition(): PointLike;
|
|
1197
1262
|
protected isBolderText(): boolean;
|
|
1198
|
-
protected getTextPosition():
|
|
1263
|
+
protected getTextPosition(): PointLike;
|
|
1199
1264
|
protected getActionIconsWidth(): number;
|
|
1200
1265
|
protected getColResizeAreaKey(): string;
|
|
1201
|
-
protected getColResizeArea():
|
|
1266
|
+
protected getColResizeArea(): Group | undefined;
|
|
1202
1267
|
protected getHorizontalResizeAreaName(): string;
|
|
1203
1268
|
protected drawHorizontalResizeArea(): void;
|
|
1204
1269
|
protected shouldAddVerticalResizeArea(): boolean;
|
|
@@ -1208,9 +1273,6 @@ declare class ColCell extends HeaderCell {
|
|
|
1208
1273
|
};
|
|
1209
1274
|
protected drawVerticalResizeArea(): void;
|
|
1210
1275
|
protected drawResizeArea(): void;
|
|
1211
|
-
protected drawHorizontalBorder(): void;
|
|
1212
|
-
protected drawVerticalBorder(dir: CellBorderPosition): void;
|
|
1213
|
-
protected drawBorders(): void;
|
|
1214
1276
|
protected hasHiddenColumnCell(): boolean;
|
|
1215
1277
|
protected getExpandIconTheme(): IconTheme;
|
|
1216
1278
|
protected addExpandColumnSplitLine(): void;
|
|
@@ -1237,8 +1299,8 @@ declare interface ColCfg {
|
|
|
1237
1299
|
* Column Header for SpreadSheet
|
|
1238
1300
|
*/
|
|
1239
1301
|
declare class ColHeader extends BaseHeader<ColHeaderConfig> {
|
|
1240
|
-
protected scrollGroup:
|
|
1241
|
-
protected background:
|
|
1302
|
+
protected scrollGroup: Group;
|
|
1303
|
+
protected background: DisplayObject;
|
|
1242
1304
|
constructor(cfg: ColHeaderConfig);
|
|
1243
1305
|
/**
|
|
1244
1306
|
* Make colHeader scroll with hScrollBar
|
|
@@ -1249,8 +1311,8 @@ declare class ColHeader extends BaseHeader<ColHeaderConfig> {
|
|
|
1249
1311
|
onColScroll(scrollX: number, type: string): void;
|
|
1250
1312
|
protected clip(): void;
|
|
1251
1313
|
clear(): void;
|
|
1252
|
-
protected getCellInstance(item: Node_2_2, spreadsheet: SpreadSheet_2, headerConfig: ColHeaderConfig):
|
|
1253
|
-
protected getCellGroup(node: Node_2_2):
|
|
1314
|
+
protected getCellInstance(item: Node_2_2, spreadsheet: SpreadSheet_2, headerConfig: ColHeaderConfig): S2CellType_2;
|
|
1315
|
+
protected getCellGroup(node: Node_2_2): Group;
|
|
1254
1316
|
protected isColCellInRect(item: Node_2_2): boolean;
|
|
1255
1317
|
protected layout(): void;
|
|
1256
1318
|
protected offset(): void;
|
|
@@ -1291,32 +1353,32 @@ declare class CornerBBox extends BaseBBox {
|
|
|
1291
1353
|
}
|
|
1292
1354
|
|
|
1293
1355
|
declare class CornerCell extends HeaderCell {
|
|
1356
|
+
cornerType: CornerNodeType;
|
|
1294
1357
|
protected headerConfig: CornerHeaderConfig;
|
|
1295
|
-
protected textShapes:
|
|
1358
|
+
protected textShapes: DisplayObject[];
|
|
1296
1359
|
protected isBolderText(): boolean;
|
|
1297
|
-
cornerType: CornerNodeType;
|
|
1298
1360
|
get cellType(): CellTypes;
|
|
1361
|
+
protected getBorderPositions(): CellBorderPosition[];
|
|
1299
1362
|
update(): void;
|
|
1300
1363
|
protected initCell(): void;
|
|
1364
|
+
/**
|
|
1365
|
+
* @deprecated 已废弃, 请使用 drawTextShape
|
|
1366
|
+
*/
|
|
1301
1367
|
protected drawCellText(): void;
|
|
1368
|
+
protected drawTextShape(): void;
|
|
1302
1369
|
/**
|
|
1303
1370
|
* 绘制折叠展开的icon
|
|
1304
1371
|
*/
|
|
1305
1372
|
protected drawTreeIcon(): void;
|
|
1306
|
-
/**
|
|
1307
|
-
* Render cell horizontalBorder border
|
|
1308
|
-
* @protected
|
|
1309
|
-
*/
|
|
1310
|
-
protected drawBorderShape(): void;
|
|
1311
1373
|
protected isLastRowCornerCell(): boolean;
|
|
1312
1374
|
protected getResizeAreaEffect(): ResizeAreaEffect.Field | ResizeAreaEffect.Tree | ResizeAreaEffect.Series;
|
|
1313
1375
|
protected drawResizeArea(): void;
|
|
1314
1376
|
protected showTreeIcon(): boolean;
|
|
1315
|
-
protected getIconPosition():
|
|
1377
|
+
protected getIconPosition(): PointLike;
|
|
1316
1378
|
protected getTreeIconWidth(): number;
|
|
1317
1379
|
protected getTextStyle(): TextTheme;
|
|
1318
1380
|
protected getMaxTextWidth(): number;
|
|
1319
|
-
protected getTextPosition():
|
|
1381
|
+
protected getTextPosition(): PointLike;
|
|
1320
1382
|
protected getFormattedFieldValue(): FormatResult;
|
|
1321
1383
|
protected getCornerText(): string;
|
|
1322
1384
|
}
|
|
@@ -1327,15 +1389,17 @@ declare class CornerCell extends HeaderCell {
|
|
|
1327
1389
|
declare class CornerHeader extends BaseHeader<CornerHeaderConfig> {
|
|
1328
1390
|
/**
|
|
1329
1391
|
* Get corner Header by config
|
|
1330
|
-
* @param panelBBox
|
|
1331
|
-
* @param cornerBBox
|
|
1332
|
-
* @param seriesNumberWidth
|
|
1333
|
-
* @param cfg
|
|
1334
|
-
* @param layoutResult
|
|
1335
|
-
* @param s2 spreadsheet
|
|
1336
1392
|
*/
|
|
1337
|
-
static getCornerHeader(
|
|
1338
|
-
|
|
1393
|
+
static getCornerHeader(options: BaseCornerOptions & {
|
|
1394
|
+
panelBBox: PanelBBox;
|
|
1395
|
+
cornerBBox: CornerBBox;
|
|
1396
|
+
}): CornerHeader;
|
|
1397
|
+
static getTreeCornerText(options: BaseCornerOptions): string;
|
|
1398
|
+
static getCornerNodes(options: BaseCornerOptions & {
|
|
1399
|
+
position: PointLike;
|
|
1400
|
+
width: number;
|
|
1401
|
+
height: number;
|
|
1402
|
+
}): Node_2_2[];
|
|
1339
1403
|
constructor(cfg: CornerHeaderConfig);
|
|
1340
1404
|
/**
|
|
1341
1405
|
* Make cornerHeader scroll with hScrollBar
|
|
@@ -1354,8 +1418,8 @@ declare type CornerHeaderCallback = (parent: S2CellType_2, spreadsheet: SpreadSh
|
|
|
1354
1418
|
declare interface CornerHeaderConfig extends BaseHeaderConfig {
|
|
1355
1419
|
hierarchyType: S2Options_2['hierarchyType'];
|
|
1356
1420
|
hierarchyCollapse: boolean;
|
|
1357
|
-
rows:
|
|
1358
|
-
columns:
|
|
1421
|
+
rows: SpreadSheetFacetCfg['rows'];
|
|
1422
|
+
columns: SpreadSheetFacetCfg['columns'];
|
|
1359
1423
|
seriesNumberWidth: number;
|
|
1360
1424
|
}
|
|
1361
1425
|
|
|
@@ -1365,6 +1429,19 @@ declare enum CornerNodeType {
|
|
|
1365
1429
|
Series = "series"
|
|
1366
1430
|
}
|
|
1367
1431
|
|
|
1432
|
+
declare type CustomHeaderField = string | CustomTreeNode;
|
|
1433
|
+
|
|
1434
|
+
declare type CustomHeaderFields = CustomHeaderField[];
|
|
1435
|
+
|
|
1436
|
+
/**
|
|
1437
|
+
* 自定义 g Image 图形
|
|
1438
|
+
*/
|
|
1439
|
+
declare class CustomImage extends Image_2 {
|
|
1440
|
+
/** 自定义 imgType (不能命名为 type,影响 g5.0 渲染) */
|
|
1441
|
+
imgType: string;
|
|
1442
|
+
constructor(imgType: string, options?: DisplayObjectConfig<ImageStyleProps>);
|
|
1443
|
+
}
|
|
1444
|
+
|
|
1368
1445
|
declare interface CustomInteraction {
|
|
1369
1446
|
key: string;
|
|
1370
1447
|
interaction: InteractionConstructor;
|
|
@@ -1381,15 +1458,15 @@ export declare class CustomTooltip extends BaseTooltip {
|
|
|
1381
1458
|
destroy(): void;
|
|
1382
1459
|
}
|
|
1383
1460
|
|
|
1384
|
-
declare interface
|
|
1461
|
+
declare interface CustomTreeNode {
|
|
1385
1462
|
key: string;
|
|
1386
1463
|
title: string;
|
|
1387
1464
|
collapsed?: boolean;
|
|
1388
1465
|
description?: string;
|
|
1389
|
-
children?:
|
|
1466
|
+
children?: CustomTreeNode[];
|
|
1390
1467
|
}
|
|
1391
1468
|
|
|
1392
|
-
declare type
|
|
1469
|
+
declare type Data = (RawData_2 & ExtraData) | undefined;
|
|
1393
1470
|
|
|
1394
1471
|
/**
|
|
1395
1472
|
* DataCell for panelGroup area
|
|
@@ -1405,11 +1482,12 @@ declare type Data_2 = Record<string, DataItem>;
|
|
|
1405
1482
|
*/
|
|
1406
1483
|
declare class DataCell_2 extends BaseCell<ViewMeta_2> {
|
|
1407
1484
|
get cellType(): CellTypes;
|
|
1485
|
+
protected getBorderPositions(): CellBorderPosition[];
|
|
1408
1486
|
get valueRangeByField(): ValueRange;
|
|
1409
|
-
protected handleByStateName(cells:
|
|
1410
|
-
protected handleSearchResult(cells:
|
|
1411
|
-
protected handleSelect(cells:
|
|
1412
|
-
protected handleHover(cells:
|
|
1487
|
+
protected handleByStateName(cells: CellMeta[], stateName: InteractionStateName): void;
|
|
1488
|
+
protected handleSearchResult(cells: CellMeta[]): void;
|
|
1489
|
+
protected handleSelect(cells: CellMeta[]): void;
|
|
1490
|
+
protected handleHover(cells: CellMeta[]): void;
|
|
1413
1491
|
update(): void;
|
|
1414
1492
|
setMeta(viewMeta: ViewMeta_2): void;
|
|
1415
1493
|
protected initCell(): void;
|
|
@@ -1425,39 +1503,26 @@ declare class DataCell_2 extends BaseCell<ViewMeta_2> {
|
|
|
1425
1503
|
protected shouldHideRowSubtotalData(): boolean;
|
|
1426
1504
|
protected getFormattedFieldValue(): FormatResult;
|
|
1427
1505
|
protected getMaxTextWidth(): number;
|
|
1428
|
-
protected getTextPosition():
|
|
1506
|
+
protected getTextPosition(): PointLike;
|
|
1429
1507
|
getBackgroundColor(): {
|
|
1430
|
-
backgroundColor: string;
|
|
1431
|
-
backgroundColorOpacity: number;
|
|
1508
|
+
backgroundColor: string | undefined;
|
|
1509
|
+
backgroundColorOpacity: number | undefined;
|
|
1432
1510
|
intelligentReverseTextColor?: undefined;
|
|
1433
1511
|
} | {
|
|
1434
|
-
backgroundColor: string;
|
|
1435
|
-
backgroundColorOpacity: number;
|
|
1512
|
+
backgroundColor: string | undefined;
|
|
1513
|
+
backgroundColorOpacity: number | undefined;
|
|
1436
1514
|
intelligentReverseTextColor: boolean;
|
|
1437
1515
|
};
|
|
1438
|
-
/**
|
|
1439
|
-
* Draw cell background
|
|
1440
|
-
*/
|
|
1441
|
-
protected drawBackgroundShape(): void;
|
|
1442
|
-
/**
|
|
1443
|
-
* 绘制hover悬停,刷选的外框
|
|
1444
|
-
*/
|
|
1445
|
-
protected drawInteractiveBorderShape(): void;
|
|
1446
|
-
/**
|
|
1447
|
-
* Draw interactive color
|
|
1448
|
-
*/
|
|
1449
|
-
protected drawInteractiveBgShape(): void;
|
|
1450
1516
|
protected changeRowColSelectState(indexType: ViewMetaIndexType): void;
|
|
1451
1517
|
/**
|
|
1452
|
-
*
|
|
1453
|
-
* @protected
|
|
1518
|
+
* 预留给明细表使用,透视表数据格不需要绘制 border, 已经交由 grid 处理
|
|
1454
1519
|
*/
|
|
1455
|
-
|
|
1520
|
+
drawBorders(): void;
|
|
1456
1521
|
/**
|
|
1457
1522
|
* Find current field related condition
|
|
1458
1523
|
* @param conditions
|
|
1459
1524
|
*/
|
|
1460
|
-
findFieldCondition(conditions: Condition[]): Condition;
|
|
1525
|
+
findFieldCondition(conditions: Condition[]): Condition | undefined;
|
|
1461
1526
|
/**
|
|
1462
1527
|
* Mapping value to get condition related attrs
|
|
1463
1528
|
* @param condition
|
|
@@ -1465,14 +1530,13 @@ declare class DataCell_2 extends BaseCell<ViewMeta_2> {
|
|
|
1465
1530
|
mappingValue(condition: Condition): MappingResult;
|
|
1466
1531
|
updateByState(stateName: InteractionStateName): void;
|
|
1467
1532
|
clearUnselectedState(): void;
|
|
1468
|
-
protected drawLeftBorder(): void;
|
|
1469
1533
|
}
|
|
1470
1534
|
|
|
1471
1535
|
declare type DataCellCallback = (viewMeta: ViewMeta_2) => S2CellType_2;
|
|
1472
1536
|
|
|
1473
|
-
declare type DataItem =
|
|
1537
|
+
declare type DataItem = SimpleData | MultiData | Record<string, unknown> | undefined | null;
|
|
1474
1538
|
|
|
1475
|
-
declare type
|
|
1539
|
+
declare type DataPath = (number | string)[];
|
|
1476
1540
|
|
|
1477
1541
|
declare interface DefaultCellTheme extends GridAnalysisCellTheme {
|
|
1478
1542
|
bolderText?: TextTheme;
|
|
@@ -1485,6 +1549,11 @@ declare interface DefaultCellTheme extends GridAnalysisCellTheme {
|
|
|
1485
1549
|
seriesNumberWidth?: number;
|
|
1486
1550
|
}
|
|
1487
1551
|
|
|
1552
|
+
declare enum DeviceType {
|
|
1553
|
+
PC = "pc",
|
|
1554
|
+
MOBILE = "mobile"
|
|
1555
|
+
}
|
|
1556
|
+
|
|
1488
1557
|
declare interface EmitterType {
|
|
1489
1558
|
/** ================ Global ================ */
|
|
1490
1559
|
[S2Event.GLOBAL_ACTION_ICON_CLICK]: CanvasEventHandler;
|
|
@@ -1510,11 +1579,11 @@ declare interface EmitterType {
|
|
|
1510
1579
|
[S2Event.RANGE_SORTED]: SortedHandler | CanvasEventHandler;
|
|
1511
1580
|
/** ================ Filter ================ */
|
|
1512
1581
|
[S2Event.RANGE_FILTER]: (info: FilterParam) => void;
|
|
1513
|
-
[S2Event.RANGE_FILTERED]: (data:
|
|
1582
|
+
[S2Event.RANGE_FILTERED]: (data: RawData_2[]) => any;
|
|
1514
1583
|
/** ================ Cell ================ */
|
|
1515
1584
|
[S2Event.GLOBAL_LINK_FIELD_JUMP]: (data: {
|
|
1516
1585
|
key: string;
|
|
1517
|
-
record:
|
|
1586
|
+
record: RawData_2;
|
|
1518
1587
|
}) => void;
|
|
1519
1588
|
/** ================ Date Cell ================ */
|
|
1520
1589
|
[S2Event.DATA_CELL_MOUSE_DOWN]: CanvasEventHandler;
|
|
@@ -1525,8 +1594,8 @@ declare interface EmitterType {
|
|
|
1525
1594
|
[S2Event.DATA_CELL_DOUBLE_CLICK]: CanvasEventHandler;
|
|
1526
1595
|
[S2Event.DATA_CELL_CONTEXT_MENU]: CanvasEventHandler;
|
|
1527
1596
|
[S2Event.DATA_CELL_TREND_ICON_CLICK]: (data: ViewMeta_2) => void;
|
|
1528
|
-
[S2Event.DATA_CELL_BRUSH_SELECTION]: (cells: (DataCell_2 |
|
|
1529
|
-
[S2Event.DATA_CELL_SELECT_MOVE]: (metas:
|
|
1597
|
+
[S2Event.DATA_CELL_BRUSH_SELECTION]: (cells: (DataCell_2 | CellMeta)[]) => void;
|
|
1598
|
+
[S2Event.DATA_CELL_SELECT_MOVE]: (metas: CellMeta[]) => void;
|
|
1530
1599
|
/** ================ Row Cell ================ */
|
|
1531
1600
|
[S2Event.ROW_CELL_MOUSE_DOWN]: CanvasEventHandler;
|
|
1532
1601
|
[S2Event.ROW_CELL_MOUSE_MOVE]: CanvasEventHandler;
|
|
@@ -1576,6 +1645,7 @@ declare interface EmitterType {
|
|
|
1576
1645
|
[S2Event.LAYOUT_AFTER_HEADER_LAYOUT]: (data: LayoutResult_2) => void;
|
|
1577
1646
|
/** @deprecated 请使用 S2Event.GLOBAL_SCROLL 代替 */
|
|
1578
1647
|
[S2Event.LAYOUT_CELL_SCROLL]: (position: CellScrollPosition_2) => void;
|
|
1648
|
+
[S2Event.LAYOUT_CELL_MOUNTED]: (cell: S2CellType_2) => void;
|
|
1579
1649
|
[S2Event.LAYOUT_COLS_EXPANDED]: (expandedNode: Node_2_2) => void;
|
|
1580
1650
|
[S2Event.LAYOUT_COLS_HIDDEN]: (currentHiddenColumnsInfo: HiddenColumnsInfo_2, hiddenColumnsDetail: HiddenColumnsInfo_2[]) => void;
|
|
1581
1651
|
[S2Event.LAYOUT_BEFORE_RENDER]: () => void;
|
|
@@ -1600,7 +1670,7 @@ declare class EventController {
|
|
|
1600
1670
|
isCanvasEffect: boolean;
|
|
1601
1671
|
constructor(spreadsheet: SpreadSheet_2);
|
|
1602
1672
|
get canvasContainer(): Canvas;
|
|
1603
|
-
get isAutoResetSheetStyle(): boolean;
|
|
1673
|
+
get isAutoResetSheetStyle(): boolean | undefined;
|
|
1604
1674
|
bindEvents(): void;
|
|
1605
1675
|
private isGuiIconShape;
|
|
1606
1676
|
private onKeyboardCopy;
|
|
@@ -1630,16 +1700,16 @@ declare class EventController {
|
|
|
1630
1700
|
|
|
1631
1701
|
declare interface EventHandler {
|
|
1632
1702
|
type: string;
|
|
1633
|
-
handler: (event:
|
|
1703
|
+
handler: (event: FederatedPointerEvent) => void;
|
|
1634
1704
|
}
|
|
1635
1705
|
|
|
1636
1706
|
declare type EventHandler_2 = (event: Event) => void;
|
|
1637
1707
|
|
|
1638
|
-
declare
|
|
1639
|
-
target:
|
|
1708
|
+
declare type EventHandler_3 = {
|
|
1709
|
+
target: ICanvas;
|
|
1640
1710
|
type: keyof HTMLElementEventMap;
|
|
1641
|
-
handler: (e:
|
|
1642
|
-
}
|
|
1711
|
+
handler: (e: any) => void;
|
|
1712
|
+
};
|
|
1643
1713
|
|
|
1644
1714
|
declare interface EventListener_2 {
|
|
1645
1715
|
target: EventTarget;
|
|
@@ -1652,12 +1722,14 @@ declare interface EventListenerReturn {
|
|
|
1652
1722
|
remove: () => void;
|
|
1653
1723
|
}
|
|
1654
1724
|
|
|
1655
|
-
declare
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1725
|
+
declare const EXTRA_FIELD = "$$extra$$";
|
|
1726
|
+
|
|
1727
|
+
declare type ExtraData = {
|
|
1728
|
+
[EXTRA_FIELD]: string;
|
|
1729
|
+
[VALUE_FIELD]: string | DataItem;
|
|
1730
|
+
};
|
|
1731
|
+
|
|
1732
|
+
declare interface Fields extends BaseFields {
|
|
1661
1733
|
customValueOrder?: number;
|
|
1662
1734
|
}
|
|
1663
1735
|
|
|
@@ -1666,7 +1738,7 @@ declare type FilterDataItemCallback = (valueField: string, data: DataItem) => Da
|
|
|
1666
1738
|
declare interface FilterParam {
|
|
1667
1739
|
filterKey: string;
|
|
1668
1740
|
filteredValues?: unknown[];
|
|
1669
|
-
customFilter?: (row:
|
|
1741
|
+
customFilter?: (row: Query) => boolean;
|
|
1670
1742
|
}
|
|
1671
1743
|
|
|
1672
1744
|
declare interface FormatResult {
|
|
@@ -1674,7 +1746,7 @@ declare interface FormatResult {
|
|
|
1674
1746
|
value: DataItem;
|
|
1675
1747
|
}
|
|
1676
1748
|
|
|
1677
|
-
declare type Formatter = (v: unknown, data?:
|
|
1749
|
+
declare type Formatter = (v: unknown, data?: ViewMetaData_2 | ViewMetaData_2[], meta?: Node_2_2 | ViewMeta_2) => string;
|
|
1678
1750
|
|
|
1679
1751
|
declare class Frame extends Group {
|
|
1680
1752
|
cfg: FrameConfig;
|
|
@@ -1684,6 +1756,8 @@ declare class Frame extends Group {
|
|
|
1684
1756
|
* 渲染
|
|
1685
1757
|
*/
|
|
1686
1758
|
render(): void;
|
|
1759
|
+
static getHorizontalBorderWidth(spreadsheet: SpreadSheet_2): number;
|
|
1760
|
+
static getVerticalBorderWidth(spreadsheet: SpreadSheet_2): number;
|
|
1687
1761
|
onBorderScroll(scrollX: number): void;
|
|
1688
1762
|
onChangeShadowVisibility(scrollX: number, maxScrollX: number): void;
|
|
1689
1763
|
private addCornerRightBorder;
|
|
@@ -1701,8 +1775,8 @@ declare interface FrameConfig {
|
|
|
1701
1775
|
y: number;
|
|
1702
1776
|
};
|
|
1703
1777
|
scrollX?: number;
|
|
1704
|
-
|
|
1705
|
-
|
|
1778
|
+
cornerWidth: number;
|
|
1779
|
+
cornerHeight: number;
|
|
1706
1780
|
viewportWidth: number;
|
|
1707
1781
|
viewportHeight: number;
|
|
1708
1782
|
showViewportLeftShadow: boolean;
|
|
@@ -1712,10 +1786,10 @@ declare interface FrameConfig {
|
|
|
1712
1786
|
spreadsheet: SpreadSheet_2;
|
|
1713
1787
|
}
|
|
1714
1788
|
|
|
1715
|
-
declare class
|
|
1789
|
+
declare class FrozenGroup extends GridGroup {
|
|
1716
1790
|
}
|
|
1717
1791
|
|
|
1718
|
-
declare type GetCellMeta = (rowIndex?: number, colIndex?: number) => ViewMeta_2;
|
|
1792
|
+
declare type GetCellMeta = (rowIndex?: number, colIndex?: number) => ViewMeta_2 | null;
|
|
1719
1793
|
|
|
1720
1794
|
declare type GetInitProps<T, OptionalKeys = GetOptionalKeys<T>> = {
|
|
1721
1795
|
[K in keyof T as IsEmitKey<T[K]> extends true ? never : K]-?: K extends OptionalKeys ? PropOption<NonNullable<T[K]>> : RequiredPropOption<NonNullable<T[K]>>;
|
|
@@ -1737,12 +1811,18 @@ declare interface GridAnalysisCellTheme {
|
|
|
1737
1811
|
|
|
1738
1812
|
declare class GridGroup extends Group {
|
|
1739
1813
|
protected s2: SpreadSheet_2;
|
|
1740
|
-
constructor(cfg:
|
|
1741
|
-
protected gridGroup:
|
|
1814
|
+
constructor(cfg: GridGroupConstructorParameters);
|
|
1815
|
+
protected gridGroup: Group;
|
|
1742
1816
|
protected gridInfo: GridInfo;
|
|
1743
1817
|
updateGrid: (gridInfo: GridInfo, id?: string) => void;
|
|
1744
1818
|
}
|
|
1745
1819
|
|
|
1820
|
+
declare type GridGroupConstructorParameters = {
|
|
1821
|
+
s2: SpreadSheet_2;
|
|
1822
|
+
name?: string;
|
|
1823
|
+
zIndex?: number;
|
|
1824
|
+
};
|
|
1825
|
+
|
|
1746
1826
|
declare interface GridInfo {
|
|
1747
1827
|
cols: number[];
|
|
1748
1828
|
rows: number[];
|
|
@@ -1753,15 +1833,17 @@ declare interface GridInfo {
|
|
|
1753
1833
|
*/
|
|
1754
1834
|
declare class GuiIcon extends Group {
|
|
1755
1835
|
static type: string;
|
|
1756
|
-
iconImageShape:
|
|
1836
|
+
iconImageShape: CustomImage;
|
|
1837
|
+
private cfg;
|
|
1757
1838
|
constructor(cfg: GuiIconCfg);
|
|
1758
1839
|
private getImage;
|
|
1759
1840
|
hasSupportSuffix: (image: string) => boolean;
|
|
1760
1841
|
private render;
|
|
1761
1842
|
}
|
|
1762
1843
|
|
|
1763
|
-
declare interface GuiIconCfg extends
|
|
1844
|
+
declare interface GuiIconCfg extends Omit<ImageStyleProps, 'fill'> {
|
|
1764
1845
|
readonly name: string;
|
|
1846
|
+
readonly fill?: string;
|
|
1765
1847
|
}
|
|
1766
1848
|
|
|
1767
1849
|
declare class HdAdapter {
|
|
@@ -1799,49 +1881,42 @@ declare interface HeaderActionIconOptions {
|
|
|
1799
1881
|
x: number;
|
|
1800
1882
|
y: number;
|
|
1801
1883
|
/** @deprecated 使用 onClick 代替 */
|
|
1802
|
-
action
|
|
1803
|
-
onClick
|
|
1804
|
-
onHover
|
|
1884
|
+
action?: (props: HeaderIconClickParams) => void;
|
|
1885
|
+
onClick?: (headerIconClickParams: HeaderIconClickParams) => void;
|
|
1886
|
+
onHover?: (headerIconHoverParams: HeaderIconHoverParams) => void;
|
|
1805
1887
|
defaultHide?: boolean;
|
|
1806
1888
|
}
|
|
1807
1889
|
|
|
1808
1890
|
declare abstract class HeaderCell extends BaseCell<Node_2_2> {
|
|
1809
1891
|
protected headerConfig: BaseHeaderConfig;
|
|
1810
1892
|
protected treeIcon: GuiIcon | undefined;
|
|
1811
|
-
protected treeLeafNodeAlignDot:
|
|
1893
|
+
protected treeLeafNodeAlignDot: DisplayObject | undefined;
|
|
1812
1894
|
protected actionIcons: GuiIcon[];
|
|
1813
1895
|
protected hasDefaultHiddenIcon: boolean;
|
|
1814
1896
|
protected abstract isBolderText(): boolean;
|
|
1815
1897
|
protected handleRestOptions(...[headerConfig]: [BaseHeaderConfig]): void;
|
|
1816
1898
|
protected initCell(): void;
|
|
1817
|
-
protected getInteractiveBorderShapeStyle(border: number): {
|
|
1818
|
-
x: number;
|
|
1819
|
-
y: number;
|
|
1820
|
-
width: number;
|
|
1821
|
-
height: number;
|
|
1822
|
-
};
|
|
1823
1899
|
protected getFormattedFieldValue(): FormatResult;
|
|
1824
1900
|
/**
|
|
1825
1901
|
* 获取操作 icons
|
|
1826
1902
|
*/
|
|
1827
|
-
protected getActionIconCfg(): HeaderActionIcon;
|
|
1828
|
-
protected showSortIcon(): boolean;
|
|
1903
|
+
protected getActionIconCfg(): HeaderActionIcon | undefined;
|
|
1904
|
+
protected showSortIcon(): boolean | "" | undefined;
|
|
1829
1905
|
protected getActionIconsCount(): number;
|
|
1830
1906
|
protected getActionIconsWidth(): number;
|
|
1831
1907
|
protected drawSortIcons(): void;
|
|
1832
1908
|
protected hasDefaultHideActionIcon(): boolean;
|
|
1833
1909
|
protected addActionIcon(options: HeaderActionIconOptions): void;
|
|
1834
1910
|
protected drawActionIcons(): void;
|
|
1835
|
-
protected drawBackgroundShape(): void;
|
|
1836
1911
|
protected isSortCell(): boolean;
|
|
1837
|
-
protected handleByStateName(cells:
|
|
1838
|
-
protected handleSearchResult(cells:
|
|
1839
|
-
protected handleHover(cells:
|
|
1840
|
-
protected handleSelect(cells:
|
|
1912
|
+
protected handleByStateName(cells: CellMeta[], stateName: InteractionStateName): void;
|
|
1913
|
+
protected handleSearchResult(cells: CellMeta[]): void;
|
|
1914
|
+
protected handleHover(cells: CellMeta[]): void;
|
|
1915
|
+
protected handleSelect(cells: CellMeta[], nodes?: Node_2_2[]): void;
|
|
1841
1916
|
protected getTextStyle(): TextTheme;
|
|
1842
1917
|
getBackgroundColor(): {
|
|
1843
|
-
backgroundColor: string;
|
|
1844
|
-
backgroundColorOpacity: number;
|
|
1918
|
+
backgroundColor: string | undefined;
|
|
1919
|
+
backgroundColorOpacity: number | undefined;
|
|
1845
1920
|
};
|
|
1846
1921
|
toggleActionIcon(id: string): void;
|
|
1847
1922
|
update(): void;
|
|
@@ -1849,13 +1924,13 @@ declare abstract class HeaderCell extends BaseCell<Node_2_2> {
|
|
|
1849
1924
|
hideInteractionShape(): void;
|
|
1850
1925
|
isMeasureField(): boolean;
|
|
1851
1926
|
mappingValue(condition: Condition): MappingResult;
|
|
1852
|
-
findFieldCondition(conditions: Condition[]): Condition;
|
|
1927
|
+
findFieldCondition(conditions: Condition[]): Condition | undefined;
|
|
1853
1928
|
}
|
|
1854
1929
|
|
|
1855
1930
|
declare interface HeaderIconClickParams {
|
|
1856
1931
|
iconName: string;
|
|
1857
1932
|
meta: Node_2_2;
|
|
1858
|
-
event?:
|
|
1933
|
+
event?: FederatedPointerEvent;
|
|
1859
1934
|
}
|
|
1860
1935
|
|
|
1861
1936
|
declare interface HeaderIconHoverParams extends HeaderIconClickParams {
|
|
@@ -1865,8 +1940,8 @@ declare interface HeaderIconHoverParams extends HeaderIconClickParams {
|
|
|
1865
1940
|
declare interface HiddenColumnsInfo_2 {
|
|
1866
1941
|
hideColumnNodes: Node_2_2[];
|
|
1867
1942
|
displaySiblingNode: {
|
|
1868
|
-
prev: Node_2_2;
|
|
1869
|
-
next: Node_2_2;
|
|
1943
|
+
prev: Node_2_2 | null;
|
|
1944
|
+
next: Node_2_2 | null;
|
|
1870
1945
|
};
|
|
1871
1946
|
}
|
|
1872
1947
|
|
|
@@ -1878,8 +1953,8 @@ declare class Hierarchy {
|
|
|
1878
1953
|
width: number;
|
|
1879
1954
|
height: number;
|
|
1880
1955
|
maxLevel: number;
|
|
1881
|
-
sampleNodesForAllLevels
|
|
1882
|
-
sampleNodeForLastLevel
|
|
1956
|
+
sampleNodesForAllLevels: Node_2_2[];
|
|
1957
|
+
sampleNodeForLastLevel: Node_2_2 | null;
|
|
1883
1958
|
private allNodesWithoutRoot;
|
|
1884
1959
|
private indexNode;
|
|
1885
1960
|
getLeaves(): Node_2_2[];
|
|
@@ -1946,7 +2021,7 @@ declare interface InteractionOptions {
|
|
|
1946
2021
|
scrollbarPosition?: ScrollbarPositionType;
|
|
1947
2022
|
eventListenerOptions?: boolean | AddEventListenerOptions;
|
|
1948
2023
|
selectedCellHighlight?: boolean;
|
|
1949
|
-
overscrollBehavior?: 'auto' | 'none' | 'contain';
|
|
2024
|
+
overscrollBehavior?: 'auto' | 'none' | 'contain' | null;
|
|
1950
2025
|
/** ***********CUSTOM INTERACTION HOOKS**************** */
|
|
1951
2026
|
customInteractions?: CustomInteraction[];
|
|
1952
2027
|
}
|
|
@@ -1957,7 +2032,7 @@ declare type InteractionState = {
|
|
|
1957
2032
|
|
|
1958
2033
|
declare interface InteractionStateInfo {
|
|
1959
2034
|
stateName?: InteractionStateName;
|
|
1960
|
-
cells?:
|
|
2035
|
+
cells?: CellMeta[];
|
|
1961
2036
|
interactedCells?: S2CellType_2[];
|
|
1962
2037
|
nodes?: Node_2_2[];
|
|
1963
2038
|
force?: boolean;
|
|
@@ -2015,7 +2090,7 @@ declare type LayoutArrange = (spreadsheet: SpreadSheet_2, parent: Node_2_2, fiel
|
|
|
2015
2090
|
/**
|
|
2016
2091
|
* determine the location(x,y,width,height eg..) of every node
|
|
2017
2092
|
*/
|
|
2018
|
-
declare type LayoutCoordinate = (spreadsheet: SpreadSheet_2, rowNode: Node_2_2, colNode: Node_2_2) => void;
|
|
2093
|
+
declare type LayoutCoordinate = (spreadsheet: SpreadSheet_2, rowNode: Node_2_2 | null, colNode: Node_2_2 | null) => void;
|
|
2019
2094
|
|
|
2020
2095
|
/**
|
|
2021
2096
|
* determine the data of cells in Cartesian coordinates
|
|
@@ -2034,6 +2109,13 @@ declare interface LayoutHierarchyReturnType {
|
|
|
2034
2109
|
delete?: boolean;
|
|
2035
2110
|
}
|
|
2036
2111
|
|
|
2112
|
+
declare type LayoutPaginationParams = {
|
|
2113
|
+
pageSize: number;
|
|
2114
|
+
pageCount: number;
|
|
2115
|
+
total: number;
|
|
2116
|
+
current: number;
|
|
2117
|
+
};
|
|
2118
|
+
|
|
2037
2119
|
declare interface LayoutResult_2 {
|
|
2038
2120
|
colNodes: Node_2_2[];
|
|
2039
2121
|
colsHierarchy: Hierarchy;
|
|
@@ -2068,7 +2150,7 @@ declare interface LineTheme {
|
|
|
2068
2150
|
|
|
2069
2151
|
declare type MappingDataItemCallback = (valueField: string, data: DataItem) => Record<string, string | number> | DataItem;
|
|
2070
2152
|
|
|
2071
|
-
declare type MappingFunction = (fieldValue: number | string, data: Record<string, any>) => MappingResult;
|
|
2153
|
+
declare type MappingFunction = (fieldValue: number | string, data: Record<string, any>) => MappingResult | undefined;
|
|
2072
2154
|
|
|
2073
2155
|
declare interface MappingResult extends ValueRange {
|
|
2074
2156
|
icon?: string;
|
|
@@ -2147,7 +2229,7 @@ declare type MouseEventHandler = (event: MouseEvent) => void;
|
|
|
2147
2229
|
],
|
|
2148
2230
|
}
|
|
2149
2231
|
*/
|
|
2150
|
-
declare interface MultiData<T =
|
|
2232
|
+
declare interface MultiData<T = SimpleData[][] | MiniChartData> {
|
|
2151
2233
|
values: T;
|
|
2152
2234
|
originalValues?: T;
|
|
2153
2235
|
label?: string;
|
|
@@ -2218,7 +2300,7 @@ declare class Node_2_2 {
|
|
|
2218
2300
|
colIndex: number;
|
|
2219
2301
|
level: number;
|
|
2220
2302
|
rowIndex: number;
|
|
2221
|
-
parent: Node_2_2;
|
|
2303
|
+
parent: Node_2_2 | undefined;
|
|
2222
2304
|
isLeaf: boolean;
|
|
2223
2305
|
isTotals: boolean;
|
|
2224
2306
|
colId: string;
|
|
@@ -2232,14 +2314,15 @@ declare class Node_2_2 {
|
|
|
2232
2314
|
field: string;
|
|
2233
2315
|
spreadsheet: SpreadSheet_2;
|
|
2234
2316
|
query?: Record<string, any>;
|
|
2235
|
-
belongsCell?: S2CellType_2;
|
|
2317
|
+
belongsCell?: S2CellType_2 | null | undefined;
|
|
2236
2318
|
inCollapseNode?: boolean;
|
|
2237
2319
|
cornerType?: CornerNodeType;
|
|
2238
2320
|
isGrandTotals?: boolean;
|
|
2239
2321
|
isSubTotals?: boolean;
|
|
2240
2322
|
[key: string]: any;
|
|
2241
2323
|
static rootNode(): Node_2_2;
|
|
2242
|
-
toJSON(): Omit_2<this, "
|
|
2324
|
+
toJSON(): Omit_2<this, "config" | "parent" | "hierarchy" | "spreadsheet">;
|
|
2325
|
+
getHeadLeafChild(): Node_2_2 | undefined;
|
|
2243
2326
|
}
|
|
2244
2327
|
|
|
2245
2328
|
declare interface OffsetConfig {
|
|
@@ -2284,9 +2367,9 @@ declare interface PaletteMeta {
|
|
|
2284
2367
|
standardColorIndex: number;
|
|
2285
2368
|
}>;
|
|
2286
2369
|
semanticColors: {
|
|
2287
|
-
red
|
|
2288
|
-
green
|
|
2289
|
-
yellow
|
|
2370
|
+
red: string;
|
|
2371
|
+
green: string;
|
|
2372
|
+
yellow: string;
|
|
2290
2373
|
[key: string]: string;
|
|
2291
2374
|
};
|
|
2292
2375
|
others?: {
|
|
@@ -2307,16 +2390,16 @@ declare type PanelIndexes = {
|
|
|
2307
2390
|
};
|
|
2308
2391
|
|
|
2309
2392
|
declare class PanelScrollGroup extends GridGroup {
|
|
2310
|
-
protected mergedCellsGroup:
|
|
2311
|
-
constructor(cfg:
|
|
2393
|
+
protected mergedCellsGroup: Group;
|
|
2394
|
+
constructor(cfg: GridGroupConstructorParameters);
|
|
2312
2395
|
protected initMergedCellsGroup(): void;
|
|
2313
2396
|
updateMergedCells(): void;
|
|
2314
2397
|
addMergeCell(mergeCell: MergedCell): void;
|
|
2315
2398
|
update(gridInfo: GridInfo): void;
|
|
2316
2399
|
}
|
|
2317
2400
|
|
|
2318
|
-
declare interface PartDrillDown {
|
|
2319
|
-
drillConfig:
|
|
2401
|
+
declare interface PartDrillDown<T = BaseDrillDownComponentProps> {
|
|
2402
|
+
drillConfig: T;
|
|
2320
2403
|
drillItemsNum?: number;
|
|
2321
2404
|
fetchData: (meta: Node_2, drillFields: string[]) => Promise<PartDrillDownInfo>;
|
|
2322
2405
|
clearDrillDown?: {
|
|
@@ -2331,7 +2414,7 @@ declare interface PartDrillDownFieldInLevel {
|
|
|
2331
2414
|
}
|
|
2332
2415
|
|
|
2333
2416
|
declare interface PartDrillDownInfo {
|
|
2334
|
-
drillData:
|
|
2417
|
+
drillData: RawData[];
|
|
2335
2418
|
drillField: string;
|
|
2336
2419
|
}
|
|
2337
2420
|
|
|
@@ -2353,14 +2436,14 @@ loading: BooleanConstructor;
|
|
|
2353
2436
|
partDrillDown: ObjectConstructor;
|
|
2354
2437
|
header: ObjectConstructor;
|
|
2355
2438
|
options: {
|
|
2356
|
-
type: PropType<
|
|
2357
|
-
default:
|
|
2439
|
+
type: PropType<S2Options<TooltipContentType, Pagination>>;
|
|
2440
|
+
default: S2Options<TooltipContentType, Pagination>;
|
|
2358
2441
|
};
|
|
2359
2442
|
adaptive: {
|
|
2360
2443
|
type: PropType<Adaptive>;
|
|
2361
2444
|
default: Adaptive;
|
|
2362
2445
|
};
|
|
2363
|
-
onSpreadsheet: PropType<(container: S2MountContainer, dataCfg: S2DataConfig, options:
|
|
2446
|
+
onSpreadsheet: PropType<(container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination>) => SpreadSheet>;
|
|
2364
2447
|
onGetSpreadSheet: PropType<(spreadsheet: SpreadSheet) => void>;
|
|
2365
2448
|
onMounted: PropType<(spreadsheet: SpreadSheet) => void>;
|
|
2366
2449
|
}, {
|
|
@@ -2399,7 +2482,7 @@ dataCellMouseUp: (data: TargetCellInfo) => void;
|
|
|
2399
2482
|
dataCellMouseMove: (data: TargetCellInfo) => void;
|
|
2400
2483
|
dataCellTrendIconClick: (meta: ViewMeta) => void;
|
|
2401
2484
|
dataCellBrushSelection: (brushRangeDataCells: DataCell[]) => void;
|
|
2402
|
-
dataCellSelectMove: (metas:
|
|
2485
|
+
dataCellSelectMove: (metas: ViewMetaData[]) => void;
|
|
2403
2486
|
cornerCellHover: (data: TargetCellInfo) => void;
|
|
2404
2487
|
cornerCellClick: (data: TargetCellInfo) => void;
|
|
2405
2488
|
cornerCellDoubleClick: (data: TargetCellInfo) => void;
|
|
@@ -2415,20 +2498,16 @@ mergedCellsMouseDown: (data: TargetCellInfo) => void;
|
|
|
2415
2498
|
mergedCellsMouseUp: (data: TargetCellInfo) => void;
|
|
2416
2499
|
mergedCellsMouseMove: (data: TargetCellInfo) => void;
|
|
2417
2500
|
rangeSort: (params: SortParams) => void;
|
|
2418
|
-
rangeSorted: (event:
|
|
2501
|
+
rangeSorted: (event: GEvent) => void;
|
|
2419
2502
|
rangeFilter: (data: {
|
|
2420
2503
|
filterKey: string;
|
|
2421
2504
|
filteredValues: string[];
|
|
2422
2505
|
}) => void;
|
|
2423
|
-
rangeFiltered: (data:
|
|
2506
|
+
rangeFiltered: (data: ViewMetaData[]) => void;
|
|
2424
2507
|
layoutAfterHeaderLayout: (layoutResult: LayoutResult) => void;
|
|
2425
|
-
layoutPagination: (data:
|
|
2426
|
-
pageSize: number;
|
|
2427
|
-
pageCount: number;
|
|
2428
|
-
total: number;
|
|
2429
|
-
current: number;
|
|
2430
|
-
}) => void;
|
|
2508
|
+
layoutPagination: (data: LayoutPaginationParams) => void;
|
|
2431
2509
|
layoutCellScroll: (position: CellScrollPosition) => void;
|
|
2510
|
+
layoutCellMounted: (cell: S2CellType<ViewMeta>) => void;
|
|
2432
2511
|
layoutCollapseRows: (data: CollapsedRowsType) => void;
|
|
2433
2512
|
layoutAfterCollapseRows: (data: CollapsedRowsType) => void;
|
|
2434
2513
|
collapseRowsAll: (hierarchyCollapse: boolean) => void;
|
|
@@ -2463,14 +2542,14 @@ resizeInfo?: ResizeInfo;
|
|
|
2463
2542
|
keyBoardDown: (event: KeyboardEvent) => void;
|
|
2464
2543
|
keyBoardUp: (event: KeyboardEvent) => void;
|
|
2465
2544
|
copied: (copyData: string) => void;
|
|
2466
|
-
actionIconHover: (event:
|
|
2467
|
-
actionIconHoverOff: (event:
|
|
2468
|
-
actionIconClick: (event:
|
|
2469
|
-
contextMenu: (event:
|
|
2470
|
-
click: (event:
|
|
2471
|
-
hover: (event:
|
|
2472
|
-
doubleClick: (event:
|
|
2473
|
-
mouseHover: (event:
|
|
2545
|
+
actionIconHover: (event: GEvent) => void;
|
|
2546
|
+
actionIconHoverOff: (event: GEvent) => void;
|
|
2547
|
+
actionIconClick: (event: GEvent) => void;
|
|
2548
|
+
contextMenu: (event: GEvent) => void;
|
|
2549
|
+
click: (event: GEvent) => void;
|
|
2550
|
+
hover: (event: GEvent) => void;
|
|
2551
|
+
doubleClick: (event: GEvent) => void;
|
|
2552
|
+
mouseHover: (event: GEvent) => void;
|
|
2474
2553
|
mouseUp: (event: MouseEvent) => void;
|
|
2475
2554
|
mouseDown: (event: MouseEvent) => void;
|
|
2476
2555
|
mouseMove: (event: MouseEvent) => void;
|
|
@@ -2478,11 +2557,11 @@ selected: (cells: S2CellType<ViewMeta>[]) => void;
|
|
|
2478
2557
|
reset: (event: KeyboardEvent) => void;
|
|
2479
2558
|
linkFieldJump: (data: {
|
|
2480
2559
|
key: string;
|
|
2481
|
-
record:
|
|
2560
|
+
record: RawData;
|
|
2482
2561
|
}) => void;
|
|
2483
2562
|
scroll: (position: CellScrollPosition) => void;
|
|
2484
|
-
rowCellBrushSelection: (event:
|
|
2485
|
-
colCellBrushSelection: (event:
|
|
2563
|
+
rowCellBrushSelection: (event: GEvent) => void;
|
|
2564
|
+
colCellBrushSelection: (event: GEvent) => void;
|
|
2486
2565
|
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
|
|
2487
2566
|
sheetType: PropType<SheetType>;
|
|
2488
2567
|
dataCfg: PropType<S2DataConfig>;
|
|
@@ -2501,18 +2580,17 @@ loading: BooleanConstructor;
|
|
|
2501
2580
|
partDrillDown: ObjectConstructor;
|
|
2502
2581
|
header: ObjectConstructor;
|
|
2503
2582
|
options: {
|
|
2504
|
-
type: PropType<
|
|
2505
|
-
default:
|
|
2583
|
+
type: PropType<S2Options<TooltipContentType, Pagination>>;
|
|
2584
|
+
default: S2Options<TooltipContentType, Pagination>;
|
|
2506
2585
|
};
|
|
2507
2586
|
adaptive: {
|
|
2508
2587
|
type: PropType<Adaptive>;
|
|
2509
2588
|
default: Adaptive;
|
|
2510
2589
|
};
|
|
2511
|
-
onSpreadsheet: PropType<(container: S2MountContainer, dataCfg: S2DataConfig, options:
|
|
2590
|
+
onSpreadsheet: PropType<(container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination>) => SpreadSheet>;
|
|
2512
2591
|
onGetSpreadSheet: PropType<(spreadsheet: SpreadSheet) => void>;
|
|
2513
2592
|
onMounted: PropType<(spreadsheet: SpreadSheet) => void>;
|
|
2514
2593
|
}>> & {
|
|
2515
|
-
onMounted?: (spreadsheet: SpreadSheet) => any;
|
|
2516
2594
|
onSheetUpdate?: (params: S2RenderOptions) => any;
|
|
2517
2595
|
onRowCellHover?: (data: TargetCellInfo) => any;
|
|
2518
2596
|
onRowCellClick?: (data: TargetCellInfo) => any;
|
|
@@ -2543,7 +2621,7 @@ onDataCellMouseUp?: (data: TargetCellInfo) => any;
|
|
|
2543
2621
|
onDataCellMouseMove?: (data: TargetCellInfo) => any;
|
|
2544
2622
|
onDataCellTrendIconClick?: (meta: ViewMeta) => any;
|
|
2545
2623
|
onDataCellBrushSelection?: (brushRangeDataCells: DataCell[]) => any;
|
|
2546
|
-
onDataCellSelectMove?: (metas:
|
|
2624
|
+
onDataCellSelectMove?: (metas: ViewMetaData[]) => any;
|
|
2547
2625
|
onCornerCellHover?: (data: TargetCellInfo) => any;
|
|
2548
2626
|
onCornerCellClick?: (data: TargetCellInfo) => any;
|
|
2549
2627
|
onCornerCellDoubleClick?: (data: TargetCellInfo) => any;
|
|
@@ -2559,20 +2637,16 @@ onMergedCellsMouseDown?: (data: TargetCellInfo) => any;
|
|
|
2559
2637
|
onMergedCellsMouseUp?: (data: TargetCellInfo) => any;
|
|
2560
2638
|
onMergedCellsMouseMove?: (data: TargetCellInfo) => any;
|
|
2561
2639
|
onRangeSort?: (params: SortParams) => any;
|
|
2562
|
-
onRangeSorted?: (event:
|
|
2640
|
+
onRangeSorted?: (event: GEvent) => any;
|
|
2563
2641
|
onRangeFilter?: (data: {
|
|
2564
2642
|
filterKey: string;
|
|
2565
2643
|
filteredValues: string[];
|
|
2566
2644
|
}) => any;
|
|
2567
|
-
onRangeFiltered?: (data:
|
|
2645
|
+
onRangeFiltered?: (data: ViewMetaData[]) => any;
|
|
2568
2646
|
onLayoutAfterHeaderLayout?: (layoutResult: LayoutResult) => any;
|
|
2569
|
-
onLayoutPagination?: (data:
|
|
2570
|
-
pageSize: number;
|
|
2571
|
-
pageCount: number;
|
|
2572
|
-
total: number;
|
|
2573
|
-
current: number;
|
|
2574
|
-
}) => any;
|
|
2647
|
+
onLayoutPagination?: (data: LayoutPaginationParams) => any;
|
|
2575
2648
|
onLayoutCellScroll?: (position: CellScrollPosition) => any;
|
|
2649
|
+
onLayoutCellMounted?: (cell: S2CellType<ViewMeta>) => any;
|
|
2576
2650
|
onLayoutCollapseRows?: (data: CollapsedRowsType) => any;
|
|
2577
2651
|
onLayoutAfterCollapseRows?: (data: CollapsedRowsType) => any;
|
|
2578
2652
|
onCollapseRowsAll?: (hierarchyCollapse: boolean) => any;
|
|
@@ -2583,6 +2657,7 @@ hiddenColumnsDetail: HiddenColumnsInfo[];
|
|
|
2583
2657
|
}) => any;
|
|
2584
2658
|
onBeforeRender?: () => any;
|
|
2585
2659
|
onAfterRender?: () => any;
|
|
2660
|
+
onMounted?: (spreadsheet: SpreadSheet) => any;
|
|
2586
2661
|
onDestroy?: () => any;
|
|
2587
2662
|
onLayoutResize?: (params: ResizeParams) => any;
|
|
2588
2663
|
onLayoutResizeSeriesWidth?: (params: ResizeParams) => any;
|
|
@@ -2606,14 +2681,14 @@ resizeInfo?: ResizeInfo;
|
|
|
2606
2681
|
onKeyBoardDown?: (event: KeyboardEvent) => any;
|
|
2607
2682
|
onKeyBoardUp?: (event: KeyboardEvent) => any;
|
|
2608
2683
|
onCopied?: (copyData: string) => any;
|
|
2609
|
-
onActionIconHover?: (event:
|
|
2610
|
-
onActionIconHoverOff?: (event:
|
|
2611
|
-
onActionIconClick?: (event:
|
|
2612
|
-
onContextMenu?: (event:
|
|
2613
|
-
onClick?: (event:
|
|
2614
|
-
onHover?: (event:
|
|
2615
|
-
onDoubleClick?: (event:
|
|
2616
|
-
onMouseHover?: (event:
|
|
2684
|
+
onActionIconHover?: (event: GEvent) => any;
|
|
2685
|
+
onActionIconHoverOff?: (event: GEvent) => any;
|
|
2686
|
+
onActionIconClick?: (event: GEvent) => any;
|
|
2687
|
+
onContextMenu?: (event: GEvent) => any;
|
|
2688
|
+
onClick?: (event: GEvent) => any;
|
|
2689
|
+
onHover?: (event: GEvent) => any;
|
|
2690
|
+
onDoubleClick?: (event: GEvent) => any;
|
|
2691
|
+
onMouseHover?: (event: GEvent) => any;
|
|
2617
2692
|
onMouseUp?: (event: MouseEvent) => any;
|
|
2618
2693
|
onMouseDown?: (event: MouseEvent) => any;
|
|
2619
2694
|
onMouseMove?: (event: MouseEvent) => any;
|
|
@@ -2621,15 +2696,15 @@ onSelected?: (cells: S2CellType<ViewMeta>[]) => any;
|
|
|
2621
2696
|
onReset?: (event: KeyboardEvent) => any;
|
|
2622
2697
|
onLinkFieldJump?: (data: {
|
|
2623
2698
|
key: string;
|
|
2624
|
-
record:
|
|
2699
|
+
record: RawData;
|
|
2625
2700
|
}) => any;
|
|
2626
2701
|
onScroll?: (position: CellScrollPosition) => any;
|
|
2627
|
-
onRowCellBrushSelection?: (event:
|
|
2628
|
-
onColCellBrushSelection?: (event:
|
|
2702
|
+
onRowCellBrushSelection?: (event: GEvent) => any;
|
|
2703
|
+
onColCellBrushSelection?: (event: GEvent) => any;
|
|
2629
2704
|
onSpreadsheet?: (container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination>) => any;
|
|
2630
2705
|
onGetSpreadSheet?: (spreadsheet: SpreadSheet) => any;
|
|
2631
2706
|
}, {
|
|
2632
|
-
options:
|
|
2707
|
+
options: S2Options<TooltipContentType, Pagination>;
|
|
2633
2708
|
loading: boolean;
|
|
2634
2709
|
adaptive: boolean | {
|
|
2635
2710
|
width?: boolean;
|
|
@@ -2652,12 +2727,16 @@ declare interface PropOption<T = any> {
|
|
|
2652
2727
|
default?: T;
|
|
2653
2728
|
}
|
|
2654
2729
|
|
|
2730
|
+
declare type Query = Record<string, any>;
|
|
2731
|
+
|
|
2655
2732
|
declare interface RangeColors {
|
|
2656
2733
|
good: string;
|
|
2657
2734
|
satisfactory: string;
|
|
2658
2735
|
bad: string;
|
|
2659
2736
|
}
|
|
2660
2737
|
|
|
2738
|
+
declare type RawData_2 = Record<string, DataItem>;
|
|
2739
|
+
|
|
2661
2740
|
declare interface RequiredPropOption<T = any> {
|
|
2662
2741
|
type?: PropType<T>;
|
|
2663
2742
|
required: true;
|
|
@@ -2687,7 +2766,7 @@ declare enum ResizeDirectionType {
|
|
|
2687
2766
|
|
|
2688
2767
|
declare type ResizeHandler = (data: {
|
|
2689
2768
|
info: ResizeInfo_2;
|
|
2690
|
-
style?:
|
|
2769
|
+
style?: S2Style;
|
|
2691
2770
|
seriesNumberWidth?: number;
|
|
2692
2771
|
}) => void;
|
|
2693
2772
|
|
|
@@ -2702,8 +2781,9 @@ declare interface ResizeInfo_2 {
|
|
|
2702
2781
|
/** 改动影响区域 */
|
|
2703
2782
|
effect: ResizeAreaEffect;
|
|
2704
2783
|
isResizeArea?: boolean;
|
|
2784
|
+
isResizeMask?: boolean;
|
|
2705
2785
|
/** 字段id */
|
|
2706
|
-
id
|
|
2786
|
+
id: string;
|
|
2707
2787
|
/** 当前拖拽热区对应的节点信息 */
|
|
2708
2788
|
meta: Node_2_2 | ViewMeta_2;
|
|
2709
2789
|
/** 拖拽后的宽度 */
|
|
@@ -2724,7 +2804,7 @@ declare interface ResizeInteractionOptions {
|
|
|
2724
2804
|
|
|
2725
2805
|
declare interface ResizeParams_2 {
|
|
2726
2806
|
info: ResizeInfo_2;
|
|
2727
|
-
style:
|
|
2807
|
+
style: S2Style | undefined;
|
|
2728
2808
|
}
|
|
2729
2809
|
|
|
2730
2810
|
declare enum ResizeType {
|
|
@@ -2748,7 +2828,7 @@ declare class RootInteraction {
|
|
|
2748
2828
|
setInteractedCells(cell: S2CellType_2): void;
|
|
2749
2829
|
getInteractedCells(): S2CellType_2<ViewMeta_2>[];
|
|
2750
2830
|
resetState(): void;
|
|
2751
|
-
getCurrentStateName(): InteractionStateName;
|
|
2831
|
+
getCurrentStateName(): InteractionStateName | undefined;
|
|
2752
2832
|
isEqualStateName(stateName: InteractionStateName): boolean;
|
|
2753
2833
|
private isStateOf;
|
|
2754
2834
|
isSelectedState(): boolean;
|
|
@@ -2757,7 +2837,7 @@ declare class RootInteraction {
|
|
|
2757
2837
|
isHoverState(): boolean;
|
|
2758
2838
|
isActiveCell(cell: S2CellType_2): boolean;
|
|
2759
2839
|
isSelectedCell(cell: S2CellType_2): boolean;
|
|
2760
|
-
getCells():
|
|
2840
|
+
getCells(): CellMeta[];
|
|
2761
2841
|
getActiveCells(): S2CellType_2[];
|
|
2762
2842
|
clearStyleIndependent(): void;
|
|
2763
2843
|
getPanelGroupAllUnSelectedDataCells(): DataCell_2[];
|
|
@@ -2768,7 +2848,7 @@ declare class RootInteraction {
|
|
|
2768
2848
|
getAllCells(): S2CellType_2<ViewMeta_2>[];
|
|
2769
2849
|
selectAll: () => void;
|
|
2770
2850
|
getCellChildrenNodes: (cell: S2CellType_2) => Node_2_2[];
|
|
2771
|
-
selectHeaderCell: (selectHeaderCellInfo?: SelectHeaderCellInfo) =>
|
|
2851
|
+
selectHeaderCell: (selectHeaderCellInfo?: SelectHeaderCellInfo) => true | undefined;
|
|
2772
2852
|
highlightNodes: (nodes?: Node_2_2[]) => void;
|
|
2773
2853
|
mergeCells: (cellsInfo?: MergedCellInfo[], hideData?: boolean) => void;
|
|
2774
2854
|
unmergeCell: (removedCells: MergedCell) => void;
|
|
@@ -2787,36 +2867,29 @@ declare class RootInteraction {
|
|
|
2787
2867
|
removeIntercepts(interceptTypes?: InterceptType[]): void;
|
|
2788
2868
|
clearHoverTimer(): void;
|
|
2789
2869
|
setHoverTimer(timer: number): void;
|
|
2790
|
-
getHoverTimer(): number;
|
|
2870
|
+
getHoverTimer(): number | null;
|
|
2791
2871
|
}
|
|
2792
2872
|
|
|
2793
2873
|
declare class RowCell extends HeaderCell {
|
|
2794
2874
|
protected headerConfig: RowHeaderConfig;
|
|
2795
|
-
protected gm: GM;
|
|
2796
2875
|
get cellType(): CellTypes;
|
|
2797
|
-
|
|
2876
|
+
protected getBorderPositions(): CellBorderPosition[];
|
|
2798
2877
|
protected initCell(): void;
|
|
2799
|
-
/**
|
|
2800
|
-
* 绘制hover悬停,刷选的外框
|
|
2801
|
-
*/
|
|
2802
|
-
protected drawInteractiveBorderShape(): void;
|
|
2803
|
-
protected drawInteractiveBgShape(): void;
|
|
2804
2878
|
protected showTreeIcon(): boolean;
|
|
2805
|
-
protected showTreeLeafNodeAlignDot(): boolean;
|
|
2879
|
+
protected showTreeLeafNodeAlignDot(): boolean | undefined;
|
|
2806
2880
|
protected getParentTreeIconCfg(): any;
|
|
2807
2881
|
protected drawTreeIcon(): void;
|
|
2808
2882
|
protected drawTreeLeafNodeAlignDot(): void;
|
|
2809
2883
|
protected isBolderText(): boolean;
|
|
2810
2884
|
protected drawTextShape(): void;
|
|
2811
2885
|
protected drawLinkFieldShape(): void;
|
|
2812
|
-
protected drawRectBorder(): void;
|
|
2813
2886
|
protected drawResizeAreaInLeaf(): void;
|
|
2814
2887
|
protected getContentIndent(): number;
|
|
2815
2888
|
protected getTextIndent(): number;
|
|
2816
2889
|
protected isTreeLevel(): any;
|
|
2817
2890
|
protected getIconPosition(): {
|
|
2818
|
-
x:
|
|
2819
|
-
y:
|
|
2891
|
+
x: number;
|
|
2892
|
+
y: number;
|
|
2820
2893
|
};
|
|
2821
2894
|
protected getMaxTextWidth(): number;
|
|
2822
2895
|
protected getTextArea(): {
|
|
@@ -2825,7 +2898,7 @@ declare class RowCell extends HeaderCell {
|
|
|
2825
2898
|
y: number;
|
|
2826
2899
|
height: number;
|
|
2827
2900
|
};
|
|
2828
|
-
protected getTextPosition():
|
|
2901
|
+
protected getTextPosition(): PointLike;
|
|
2829
2902
|
protected getIconYPosition(): number;
|
|
2830
2903
|
}
|
|
2831
2904
|
|
|
@@ -2849,9 +2922,7 @@ declare interface RowCfg {
|
|
|
2849
2922
|
* Row Header for SpreadSheet
|
|
2850
2923
|
*/
|
|
2851
2924
|
declare class RowHeader extends BaseHeader<RowHeaderConfig> {
|
|
2852
|
-
private gm;
|
|
2853
2925
|
constructor(cfg: RowHeaderConfig);
|
|
2854
|
-
destroy(): void;
|
|
2855
2926
|
protected layout(): void;
|
|
2856
2927
|
protected offset(): void;
|
|
2857
2928
|
protected clip(): void;
|
|
@@ -2867,18 +2938,19 @@ declare interface S2BasicOptions<T = TooltipContentType_2, P = Pagination_2> {
|
|
|
2867
2938
|
width?: number;
|
|
2868
2939
|
height?: number;
|
|
2869
2940
|
debug?: boolean;
|
|
2870
|
-
hierarchyType?: 'grid' | 'tree'
|
|
2941
|
+
hierarchyType?: 'grid' | 'tree';
|
|
2871
2942
|
conditions?: Conditions;
|
|
2872
|
-
totals?: Totals;
|
|
2943
|
+
totals?: Totals | null;
|
|
2873
2944
|
tooltip?: Tooltip<T>;
|
|
2874
2945
|
interaction?: InteractionOptions;
|
|
2875
2946
|
pagination?: P;
|
|
2876
2947
|
frozenRowHeader?: boolean;
|
|
2948
|
+
seriesNumberText?: string;
|
|
2877
2949
|
showSeriesNumber?: boolean;
|
|
2878
2950
|
showDefaultHeaderActionIcon?: boolean;
|
|
2879
2951
|
headerActionIcons?: HeaderActionIcon[];
|
|
2880
2952
|
customSVGIcons?: CustomSVGIcon[];
|
|
2881
|
-
style?:
|
|
2953
|
+
style?: S2Style;
|
|
2882
2954
|
hdAdapter?: boolean;
|
|
2883
2955
|
mergedCellsInfo?: MergedCellInfo[][];
|
|
2884
2956
|
placeholder?: ((meta: Record<string, any>) => string) | string;
|
|
@@ -2886,6 +2958,8 @@ declare interface S2BasicOptions<T = TooltipContentType_2, P = Pagination_2> {
|
|
|
2886
2958
|
cornerExtraFieldText?: string;
|
|
2887
2959
|
supportCSSTransform?: boolean;
|
|
2888
2960
|
devicePixelRatio?: number;
|
|
2961
|
+
/** ***********Mobile Options Config**************** */
|
|
2962
|
+
device?: DeviceType;
|
|
2889
2963
|
/** ***********CUSTOM CELL/HEADER HOOKS**************** */
|
|
2890
2964
|
dataCell?: DataCellCallback;
|
|
2891
2965
|
cornerCell?: CellCallback<CornerHeaderConfig>;
|
|
@@ -2903,11 +2977,10 @@ declare interface S2BasicOptions<T = TooltipContentType_2, P = Pagination_2> {
|
|
|
2903
2977
|
mappingDisplayDataItem?: MappingDataItemCallback;
|
|
2904
2978
|
}
|
|
2905
2979
|
|
|
2906
|
-
declare type S2CellType_2<T extends SimpleBBox = ViewMeta_2> = DataCell_2 | HeaderCell | ColCell | CornerCell | RowCell | MergedCell | BaseCell<T>;
|
|
2980
|
+
declare type S2CellType_2<T extends SimpleBBox = ViewMeta_2> = DataCell_2 | HeaderCell | ColCell | CornerCell | RowCell | MergedCell | TableCornerCell | TableSeriesCell | BaseCell<T>;
|
|
2907
2981
|
|
|
2908
2982
|
declare interface S2DataConfig_2 {
|
|
2909
|
-
data:
|
|
2910
|
-
totalData?: Data_2[];
|
|
2983
|
+
data: RawData_2[];
|
|
2911
2984
|
fields: Fields;
|
|
2912
2985
|
meta?: Meta[];
|
|
2913
2986
|
sortParams?: SortParams_2;
|
|
@@ -2973,6 +3046,7 @@ declare enum S2Event {
|
|
|
2973
3046
|
LAYOUT_AFTER_HEADER_LAYOUT = "layout:after-header-layout",
|
|
2974
3047
|
/** @deprecated 已废弃, 请使用 S2Event.GLOBAL_SCROLL 代替 */
|
|
2975
3048
|
LAYOUT_CELL_SCROLL = "layout:cell-scroll",
|
|
3049
|
+
LAYOUT_CELL_MOUNTED = "layout:cell-mounted",
|
|
2976
3050
|
LAYOUT_PAGINATION = "layout:pagination",
|
|
2977
3051
|
LAYOUT_COLLAPSE_ROWS = "layout:collapsed-rows",
|
|
2978
3052
|
LAYOUT_AFTER_COLLAPSE_ROWS = "layout:after-collapsed-rows",
|
|
@@ -3032,6 +3106,23 @@ declare interface S2RenderOptions_2 {
|
|
|
3032
3106
|
reBuildHiddenColumnsDetail?: boolean;
|
|
3033
3107
|
}
|
|
3034
3108
|
|
|
3109
|
+
declare interface S2Style {
|
|
3110
|
+
layoutWidthType?: LayoutWidthType;
|
|
3111
|
+
showTreeLeafNodeAlignDot?: boolean;
|
|
3112
|
+
treeRowsWidth?: number;
|
|
3113
|
+
hierarchyCollapse?: boolean;
|
|
3114
|
+
rowExpandDepth?: number | null;
|
|
3115
|
+
collapsedRows?: Record<string, boolean> | null;
|
|
3116
|
+
collapsedCols?: Record<string, boolean>;
|
|
3117
|
+
cellCfg?: CellCfg;
|
|
3118
|
+
colCfg?: ColCfg;
|
|
3119
|
+
rowCfg?: RowCfg;
|
|
3120
|
+
/**
|
|
3121
|
+
* @deprecated use options.deviceType instead
|
|
3122
|
+
*/
|
|
3123
|
+
device?: DeviceType;
|
|
3124
|
+
}
|
|
3125
|
+
|
|
3035
3126
|
declare interface S2TableSheetOptions {
|
|
3036
3127
|
frozenRowCount?: number;
|
|
3037
3128
|
frozenColCount?: number;
|
|
@@ -3056,9 +3147,9 @@ declare class ScrollBar extends Group {
|
|
|
3056
3147
|
thumbOffset: number;
|
|
3057
3148
|
scrollTargetMaxOffset: number;
|
|
3058
3149
|
theme: ScrollBarTheme;
|
|
3059
|
-
scrollBarGroup:
|
|
3060
|
-
trackShape:
|
|
3061
|
-
thumbShape:
|
|
3150
|
+
scrollBarGroup: Group;
|
|
3151
|
+
trackShape: DisplayObject;
|
|
3152
|
+
thumbShape: DisplayObject;
|
|
3062
3153
|
private startPos;
|
|
3063
3154
|
private isMobile;
|
|
3064
3155
|
private clearEvents;
|
|
@@ -3091,7 +3182,7 @@ declare class ScrollBar extends Group {
|
|
|
3091
3182
|
*/
|
|
3092
3183
|
onlyUpdateThumbOffset: (offset: number) => void;
|
|
3093
3184
|
emitScrollChange: (offset: number, updateThumbOffset?: boolean) => void;
|
|
3094
|
-
protected
|
|
3185
|
+
protected bindEventListener: (target: EventTarget, eventType: keyof HTMLElementEventMap, callback: EventListenerOrEventListenerObject) => EventListenerReturn;
|
|
3095
3186
|
protected addEvent: (target: EventHandler_3['target'], type: EventHandler_3['type'], handler: EventHandler_3['handler']) => void;
|
|
3096
3187
|
private initScrollBar;
|
|
3097
3188
|
private createScrollBarGroup;
|
|
@@ -3131,7 +3222,7 @@ declare interface ScrollBarTheme {
|
|
|
3131
3222
|
size?: number;
|
|
3132
3223
|
hoverSize?: number;
|
|
3133
3224
|
/** 指定如何绘制每一条线段末端,lineCap?: 'butt' | 'round' | 'square'; */
|
|
3134
|
-
lineCap?:
|
|
3225
|
+
lineCap?: LineStyleProps['lineCap'];
|
|
3135
3226
|
}
|
|
3136
3227
|
|
|
3137
3228
|
declare interface ScrollOffset {
|
|
@@ -3157,13 +3248,14 @@ declare class SeriesNumberHeader extends BaseHeader<BaseHeaderConfig> {
|
|
|
3157
3248
|
private leftBorderShape;
|
|
3158
3249
|
/**
|
|
3159
3250
|
* Get seriesNumber header by config
|
|
3160
|
-
* @param viewportBBox
|
|
3161
|
-
* @param seriesNumberWidth
|
|
3162
|
-
* @param leafNodes
|
|
3163
|
-
* @param spreadsheet
|
|
3164
|
-
* @param cornerWidth
|
|
3165
3251
|
*/
|
|
3166
|
-
static getSeriesNumberHeader(
|
|
3252
|
+
static getSeriesNumberHeader(options: {
|
|
3253
|
+
panelBBox: PanelBBox;
|
|
3254
|
+
seriesNumberWidth: number;
|
|
3255
|
+
leafNodes: Node_2_2[];
|
|
3256
|
+
spreadsheet: SpreadSheet_2;
|
|
3257
|
+
cornerWidth: number;
|
|
3258
|
+
}): SeriesNumberHeader;
|
|
3167
3259
|
constructor(cfg: BaseHeaderConfig);
|
|
3168
3260
|
clip(): void;
|
|
3169
3261
|
layout(): void;
|
|
@@ -3175,7 +3267,7 @@ declare class SeriesNumberHeader extends BaseHeader<BaseHeaderConfig> {
|
|
|
3175
3267
|
private getTextPadding;
|
|
3176
3268
|
}
|
|
3177
3269
|
|
|
3178
|
-
export declare const SheetComponent: DefineComponent<GetInitProps<SheetComponentProps, "
|
|
3270
|
+
export declare const SheetComponent: DefineComponent<GetInitProps<SheetComponentProps, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "renderConfig" | "adaptive" | "showPagination" | "themeCfg" | "header" | "getSpreadSheet" | "onSheetUpdate" | "onRowCellHover" | "onRowCellClick" | "onRowCellDoubleClick" | "onRowCellContextMenu" | "onRowCellMouseDown" | "onRowCellMouseUp" | "onRowCellMouseMove" | "onRowCellCollapseTreeRows" | "onRowCellScroll" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellTrendIconClick" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutCellMounted" | "onLayoutCollapseRows" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "onBeforeRender" | "onAfterRender" | "onMounted" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconHoverOff" | "onActionIconClick" | "onContextMenu" | "onClick" | "onHover" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onMouseDown" | "onMouseMove" | "onSelected" | "onReset" | "onLinkFieldJump" | "onScroll" | "onRowCellBrushSelection" | "onColCellBrushSelection">, {
|
|
3179
3271
|
s2Ref: ShallowRef<SheetExpose>;
|
|
3180
3272
|
sheetType: ComputedRef<DefineComponent< {
|
|
3181
3273
|
sheetType: PropType<SheetType>;
|
|
@@ -3195,14 +3287,14 @@ loading: BooleanConstructor;
|
|
|
3195
3287
|
partDrillDown: ObjectConstructor;
|
|
3196
3288
|
header: ObjectConstructor;
|
|
3197
3289
|
options: {
|
|
3198
|
-
type: PropType<
|
|
3199
|
-
default:
|
|
3290
|
+
type: PropType<S2Options_2<TooltipContentType_2, Pagination_2>>;
|
|
3291
|
+
default: S2Options_2<TooltipContentType_2, Pagination_2>;
|
|
3200
3292
|
};
|
|
3201
3293
|
adaptive: {
|
|
3202
3294
|
type: PropType<Adaptive>;
|
|
3203
3295
|
default: Adaptive;
|
|
3204
3296
|
};
|
|
3205
|
-
onSpreadsheet: PropType<(container: S2MountContainer_2, dataCfg: S2DataConfig_2, options:
|
|
3297
|
+
onSpreadsheet: PropType<(container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2>) => SpreadSheet_2>;
|
|
3206
3298
|
onGetSpreadSheet: PropType<(spreadsheet: SpreadSheet_2) => void>;
|
|
3207
3299
|
onMounted: PropType<(spreadsheet: SpreadSheet_2) => void>;
|
|
3208
3300
|
}, {
|
|
@@ -3241,7 +3333,7 @@ dataCellMouseUp: (data: TargetCellInfo_2) => void;
|
|
|
3241
3333
|
dataCellMouseMove: (data: TargetCellInfo_2) => void;
|
|
3242
3334
|
dataCellTrendIconClick: (meta: ViewMeta_2) => void;
|
|
3243
3335
|
dataCellBrushSelection: (brushRangeDataCells: DataCell_2[]) => void;
|
|
3244
|
-
dataCellSelectMove: (metas:
|
|
3336
|
+
dataCellSelectMove: (metas: ViewMetaData_2[]) => void;
|
|
3245
3337
|
cornerCellHover: (data: TargetCellInfo_2) => void;
|
|
3246
3338
|
cornerCellClick: (data: TargetCellInfo_2) => void;
|
|
3247
3339
|
cornerCellDoubleClick: (data: TargetCellInfo_2) => void;
|
|
@@ -3257,20 +3349,16 @@ mergedCellsMouseDown: (data: TargetCellInfo_2) => void;
|
|
|
3257
3349
|
mergedCellsMouseUp: (data: TargetCellInfo_2) => void;
|
|
3258
3350
|
mergedCellsMouseMove: (data: TargetCellInfo_2) => void;
|
|
3259
3351
|
rangeSort: (params: SortParams_2) => void;
|
|
3260
|
-
rangeSorted: (event:
|
|
3352
|
+
rangeSorted: (event: FederatedPointerEvent_2) => void;
|
|
3261
3353
|
rangeFilter: (data: {
|
|
3262
3354
|
filterKey: string;
|
|
3263
3355
|
filteredValues: string[];
|
|
3264
3356
|
}) => void;
|
|
3265
|
-
rangeFiltered: (data:
|
|
3357
|
+
rangeFiltered: (data: ViewMetaData_2[]) => void;
|
|
3266
3358
|
layoutAfterHeaderLayout: (layoutResult: LayoutResult_2) => void;
|
|
3267
|
-
layoutPagination: (data:
|
|
3268
|
-
pageSize: number;
|
|
3269
|
-
pageCount: number;
|
|
3270
|
-
total: number;
|
|
3271
|
-
current: number;
|
|
3272
|
-
}) => void;
|
|
3359
|
+
layoutPagination: (data: LayoutPaginationParams) => void;
|
|
3273
3360
|
layoutCellScroll: (position: CellScrollPosition_2) => void;
|
|
3361
|
+
layoutCellMounted: (cell: S2CellType_2<ViewMeta_2>) => void;
|
|
3274
3362
|
layoutCollapseRows: (data: CollapsedRowsType_2) => void;
|
|
3275
3363
|
layoutAfterCollapseRows: (data: CollapsedRowsType_2) => void;
|
|
3276
3364
|
collapseRowsAll: (hierarchyCollapse: boolean) => void;
|
|
@@ -3305,14 +3393,14 @@ resizeInfo?: ResizeInfo_2;
|
|
|
3305
3393
|
keyBoardDown: (event: KeyboardEvent) => void;
|
|
3306
3394
|
keyBoardUp: (event: KeyboardEvent) => void;
|
|
3307
3395
|
copied: (copyData: string) => void;
|
|
3308
|
-
actionIconHover: (event:
|
|
3309
|
-
actionIconHoverOff: (event:
|
|
3310
|
-
actionIconClick: (event:
|
|
3311
|
-
contextMenu: (event:
|
|
3312
|
-
click: (event:
|
|
3313
|
-
hover: (event:
|
|
3314
|
-
doubleClick: (event:
|
|
3315
|
-
mouseHover: (event:
|
|
3396
|
+
actionIconHover: (event: FederatedPointerEvent_2) => void;
|
|
3397
|
+
actionIconHoverOff: (event: FederatedPointerEvent_2) => void;
|
|
3398
|
+
actionIconClick: (event: FederatedPointerEvent_2) => void;
|
|
3399
|
+
contextMenu: (event: FederatedPointerEvent_2) => void;
|
|
3400
|
+
click: (event: FederatedPointerEvent_2) => void;
|
|
3401
|
+
hover: (event: FederatedPointerEvent_2) => void;
|
|
3402
|
+
doubleClick: (event: FederatedPointerEvent_2) => void;
|
|
3403
|
+
mouseHover: (event: FederatedPointerEvent_2) => void;
|
|
3316
3404
|
mouseUp: (event: MouseEvent) => void;
|
|
3317
3405
|
mouseDown: (event: MouseEvent) => void;
|
|
3318
3406
|
mouseMove: (event: MouseEvent) => void;
|
|
@@ -3320,11 +3408,11 @@ selected: (cells: S2CellType_2<ViewMeta_2>[]) => void;
|
|
|
3320
3408
|
reset: (event: KeyboardEvent) => void;
|
|
3321
3409
|
linkFieldJump: (data: {
|
|
3322
3410
|
key: string;
|
|
3323
|
-
record:
|
|
3411
|
+
record: RawData_2;
|
|
3324
3412
|
}) => void;
|
|
3325
3413
|
scroll: (position: CellScrollPosition_2) => void;
|
|
3326
|
-
rowCellBrushSelection: (event:
|
|
3327
|
-
colCellBrushSelection: (event:
|
|
3414
|
+
rowCellBrushSelection: (event: FederatedPointerEvent_2) => void;
|
|
3415
|
+
colCellBrushSelection: (event: FederatedPointerEvent_2) => void;
|
|
3328
3416
|
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
|
|
3329
3417
|
sheetType: PropType<SheetType>;
|
|
3330
3418
|
dataCfg: PropType<S2DataConfig_2>;
|
|
@@ -3343,18 +3431,17 @@ loading: BooleanConstructor;
|
|
|
3343
3431
|
partDrillDown: ObjectConstructor;
|
|
3344
3432
|
header: ObjectConstructor;
|
|
3345
3433
|
options: {
|
|
3346
|
-
type: PropType<
|
|
3347
|
-
default:
|
|
3434
|
+
type: PropType<S2Options_2<TooltipContentType_2, Pagination_2>>;
|
|
3435
|
+
default: S2Options_2<TooltipContentType_2, Pagination_2>;
|
|
3348
3436
|
};
|
|
3349
3437
|
adaptive: {
|
|
3350
3438
|
type: PropType<Adaptive>;
|
|
3351
3439
|
default: Adaptive;
|
|
3352
3440
|
};
|
|
3353
|
-
onSpreadsheet: PropType<(container: S2MountContainer_2, dataCfg: S2DataConfig_2, options:
|
|
3441
|
+
onSpreadsheet: PropType<(container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2>) => SpreadSheet_2>;
|
|
3354
3442
|
onGetSpreadSheet: PropType<(spreadsheet: SpreadSheet_2) => void>;
|
|
3355
3443
|
onMounted: PropType<(spreadsheet: SpreadSheet_2) => void>;
|
|
3356
3444
|
}>> & {
|
|
3357
|
-
onMounted?: (spreadsheet: SpreadSheet_2) => any;
|
|
3358
3445
|
onSheetUpdate?: (params: S2RenderOptions_2) => any;
|
|
3359
3446
|
onRowCellHover?: (data: TargetCellInfo_2) => any;
|
|
3360
3447
|
onRowCellClick?: (data: TargetCellInfo_2) => any;
|
|
@@ -3385,7 +3472,7 @@ onDataCellMouseUp?: (data: TargetCellInfo_2) => any;
|
|
|
3385
3472
|
onDataCellMouseMove?: (data: TargetCellInfo_2) => any;
|
|
3386
3473
|
onDataCellTrendIconClick?: (meta: ViewMeta_2) => any;
|
|
3387
3474
|
onDataCellBrushSelection?: (brushRangeDataCells: DataCell_2[]) => any;
|
|
3388
|
-
onDataCellSelectMove?: (metas:
|
|
3475
|
+
onDataCellSelectMove?: (metas: ViewMetaData_2[]) => any;
|
|
3389
3476
|
onCornerCellHover?: (data: TargetCellInfo_2) => any;
|
|
3390
3477
|
onCornerCellClick?: (data: TargetCellInfo_2) => any;
|
|
3391
3478
|
onCornerCellDoubleClick?: (data: TargetCellInfo_2) => any;
|
|
@@ -3401,20 +3488,16 @@ onMergedCellsMouseDown?: (data: TargetCellInfo_2) => any;
|
|
|
3401
3488
|
onMergedCellsMouseUp?: (data: TargetCellInfo_2) => any;
|
|
3402
3489
|
onMergedCellsMouseMove?: (data: TargetCellInfo_2) => any;
|
|
3403
3490
|
onRangeSort?: (params: SortParams_2) => any;
|
|
3404
|
-
onRangeSorted?: (event:
|
|
3491
|
+
onRangeSorted?: (event: FederatedPointerEvent_2) => any;
|
|
3405
3492
|
onRangeFilter?: (data: {
|
|
3406
3493
|
filterKey: string;
|
|
3407
3494
|
filteredValues: string[];
|
|
3408
3495
|
}) => any;
|
|
3409
|
-
onRangeFiltered?: (data:
|
|
3496
|
+
onRangeFiltered?: (data: ViewMetaData_2[]) => any;
|
|
3410
3497
|
onLayoutAfterHeaderLayout?: (layoutResult: LayoutResult_2) => any;
|
|
3411
|
-
onLayoutPagination?: (data:
|
|
3412
|
-
pageSize: number;
|
|
3413
|
-
pageCount: number;
|
|
3414
|
-
total: number;
|
|
3415
|
-
current: number;
|
|
3416
|
-
}) => any;
|
|
3498
|
+
onLayoutPagination?: (data: LayoutPaginationParams) => any;
|
|
3417
3499
|
onLayoutCellScroll?: (position: CellScrollPosition_2) => any;
|
|
3500
|
+
onLayoutCellMounted?: (cell: S2CellType_2<ViewMeta_2>) => any;
|
|
3418
3501
|
onLayoutCollapseRows?: (data: CollapsedRowsType_2) => any;
|
|
3419
3502
|
onLayoutAfterCollapseRows?: (data: CollapsedRowsType_2) => any;
|
|
3420
3503
|
onCollapseRowsAll?: (hierarchyCollapse: boolean) => any;
|
|
@@ -3425,6 +3508,7 @@ hiddenColumnsDetail: HiddenColumnsInfo_2[];
|
|
|
3425
3508
|
}) => any;
|
|
3426
3509
|
onBeforeRender?: () => any;
|
|
3427
3510
|
onAfterRender?: () => any;
|
|
3511
|
+
onMounted?: (spreadsheet: SpreadSheet_2) => any;
|
|
3428
3512
|
onDestroy?: () => any;
|
|
3429
3513
|
onLayoutResize?: (params: ResizeParams_2) => any;
|
|
3430
3514
|
onLayoutResizeSeriesWidth?: (params: ResizeParams_2) => any;
|
|
@@ -3448,14 +3532,14 @@ resizeInfo?: ResizeInfo_2;
|
|
|
3448
3532
|
onKeyBoardDown?: (event: KeyboardEvent) => any;
|
|
3449
3533
|
onKeyBoardUp?: (event: KeyboardEvent) => any;
|
|
3450
3534
|
onCopied?: (copyData: string) => any;
|
|
3451
|
-
onActionIconHover?: (event:
|
|
3452
|
-
onActionIconHoverOff?: (event:
|
|
3453
|
-
onActionIconClick?: (event:
|
|
3454
|
-
onContextMenu?: (event:
|
|
3455
|
-
onClick?: (event:
|
|
3456
|
-
onHover?: (event:
|
|
3457
|
-
onDoubleClick?: (event:
|
|
3458
|
-
onMouseHover?: (event:
|
|
3535
|
+
onActionIconHover?: (event: FederatedPointerEvent_2) => any;
|
|
3536
|
+
onActionIconHoverOff?: (event: FederatedPointerEvent_2) => any;
|
|
3537
|
+
onActionIconClick?: (event: FederatedPointerEvent_2) => any;
|
|
3538
|
+
onContextMenu?: (event: FederatedPointerEvent_2) => any;
|
|
3539
|
+
onClick?: (event: FederatedPointerEvent_2) => any;
|
|
3540
|
+
onHover?: (event: FederatedPointerEvent_2) => any;
|
|
3541
|
+
onDoubleClick?: (event: FederatedPointerEvent_2) => any;
|
|
3542
|
+
onMouseHover?: (event: FederatedPointerEvent_2) => any;
|
|
3459
3543
|
onMouseUp?: (event: MouseEvent) => any;
|
|
3460
3544
|
onMouseDown?: (event: MouseEvent) => any;
|
|
3461
3545
|
onMouseMove?: (event: MouseEvent) => any;
|
|
@@ -3463,15 +3547,15 @@ onSelected?: (cells: S2CellType_2<ViewMeta_2>[]) => any;
|
|
|
3463
3547
|
onReset?: (event: KeyboardEvent) => any;
|
|
3464
3548
|
onLinkFieldJump?: (data: {
|
|
3465
3549
|
key: string;
|
|
3466
|
-
record:
|
|
3550
|
+
record: RawData_2;
|
|
3467
3551
|
}) => any;
|
|
3468
3552
|
onScroll?: (position: CellScrollPosition_2) => any;
|
|
3469
|
-
onRowCellBrushSelection?: (event:
|
|
3470
|
-
onColCellBrushSelection?: (event:
|
|
3553
|
+
onRowCellBrushSelection?: (event: FederatedPointerEvent_2) => any;
|
|
3554
|
+
onColCellBrushSelection?: (event: FederatedPointerEvent_2) => any;
|
|
3471
3555
|
onSpreadsheet?: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2>) => any;
|
|
3472
3556
|
onGetSpreadSheet?: (spreadsheet: SpreadSheet_2) => any;
|
|
3473
3557
|
}, {
|
|
3474
|
-
options:
|
|
3558
|
+
options: S2Options_2<TooltipContentType_2, Pagination_2>;
|
|
3475
3559
|
loading: boolean;
|
|
3476
3560
|
adaptive: boolean | {
|
|
3477
3561
|
width?: boolean;
|
|
@@ -3482,7 +3566,7 @@ showPagination: boolean | {
|
|
|
3482
3566
|
onShowSizeChange?: (pageSize: number) => void;
|
|
3483
3567
|
onChange?: (current: number) => void;
|
|
3484
3568
|
};
|
|
3485
|
-
}> | DefineComponent<GetInitProps<SheetComponentProps, "
|
|
3569
|
+
}> | DefineComponent<GetInitProps<SheetComponentProps, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "renderConfig" | "adaptive" | "showPagination" | "themeCfg" | "header" | "getSpreadSheet" | "onSheetUpdate" | "onRowCellHover" | "onRowCellClick" | "onRowCellDoubleClick" | "onRowCellContextMenu" | "onRowCellMouseDown" | "onRowCellMouseUp" | "onRowCellMouseMove" | "onRowCellCollapseTreeRows" | "onRowCellScroll" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellTrendIconClick" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutCellMounted" | "onLayoutCollapseRows" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "onBeforeRender" | "onAfterRender" | "onMounted" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconHoverOff" | "onActionIconClick" | "onContextMenu" | "onClick" | "onHover" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onMouseDown" | "onMouseMove" | "onSelected" | "onReset" | "onLinkFieldJump" | "onScroll" | "onRowCellBrushSelection" | "onColCellBrushSelection">, {
|
|
3486
3570
|
s2Ref: ShallowRef<SheetExpose>;
|
|
3487
3571
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
3488
3572
|
spreadsheet: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2>) => SpreadSheet_2;
|
|
@@ -3517,7 +3601,7 @@ dataCellMouseUp: (data: TargetCellInfo_2) => void;
|
|
|
3517
3601
|
dataCellMouseMove: (data: TargetCellInfo_2) => void;
|
|
3518
3602
|
dataCellTrendIconClick: (meta: ViewMeta_2) => void;
|
|
3519
3603
|
dataCellBrushSelection: (brushRangeDataCells: DataCell_2[]) => void;
|
|
3520
|
-
dataCellSelectMove: (metas:
|
|
3604
|
+
dataCellSelectMove: (metas: ViewMetaData_2[]) => void;
|
|
3521
3605
|
cornerCellHover: (data: TargetCellInfo_2) => void;
|
|
3522
3606
|
cornerCellClick: (data: TargetCellInfo_2) => void;
|
|
3523
3607
|
cornerCellDoubleClick: (data: TargetCellInfo_2) => void;
|
|
@@ -3533,20 +3617,16 @@ mergedCellsMouseDown: (data: TargetCellInfo_2) => void;
|
|
|
3533
3617
|
mergedCellsMouseUp: (data: TargetCellInfo_2) => void;
|
|
3534
3618
|
mergedCellsMouseMove: (data: TargetCellInfo_2) => void;
|
|
3535
3619
|
rangeSort: (params: SortParams_2) => void;
|
|
3536
|
-
rangeSorted: (event:
|
|
3620
|
+
rangeSorted: (event: FederatedPointerEvent_2) => void;
|
|
3537
3621
|
rangeFilter: (data: {
|
|
3538
3622
|
filterKey: string;
|
|
3539
3623
|
filteredValues: string[];
|
|
3540
3624
|
}) => void;
|
|
3541
|
-
rangeFiltered: (data:
|
|
3625
|
+
rangeFiltered: (data: ViewMetaData_2[]) => void;
|
|
3542
3626
|
layoutAfterHeaderLayout: (layoutResult: LayoutResult_2) => void;
|
|
3543
|
-
layoutPagination: (data:
|
|
3544
|
-
pageSize: number;
|
|
3545
|
-
pageCount: number;
|
|
3546
|
-
total: number;
|
|
3547
|
-
current: number;
|
|
3548
|
-
}) => void;
|
|
3627
|
+
layoutPagination: (data: LayoutPaginationParams) => void;
|
|
3549
3628
|
layoutCellScroll: (position: CellScrollPosition_2) => void;
|
|
3629
|
+
layoutCellMounted: (cell: S2CellType_2<ViewMeta_2>) => void;
|
|
3550
3630
|
layoutCollapseRows: (data: CollapsedRowsType_2) => void;
|
|
3551
3631
|
layoutAfterCollapseRows: (data: CollapsedRowsType_2) => void;
|
|
3552
3632
|
collapseRowsAll: (hierarchyCollapse: boolean) => void;
|
|
@@ -3581,14 +3661,14 @@ resizeInfo?: ResizeInfo_2;
|
|
|
3581
3661
|
keyBoardDown: (event: KeyboardEvent) => void;
|
|
3582
3662
|
keyBoardUp: (event: KeyboardEvent) => void;
|
|
3583
3663
|
copied: (copyData: string) => void;
|
|
3584
|
-
actionIconHover: (event:
|
|
3585
|
-
actionIconHoverOff: (event:
|
|
3586
|
-
actionIconClick: (event:
|
|
3587
|
-
contextMenu: (event:
|
|
3588
|
-
click: (event:
|
|
3589
|
-
hover: (event:
|
|
3590
|
-
doubleClick: (event:
|
|
3591
|
-
mouseHover: (event:
|
|
3664
|
+
actionIconHover: (event: FederatedPointerEvent_2) => void;
|
|
3665
|
+
actionIconHoverOff: (event: FederatedPointerEvent_2) => void;
|
|
3666
|
+
actionIconClick: (event: FederatedPointerEvent_2) => void;
|
|
3667
|
+
contextMenu: (event: FederatedPointerEvent_2) => void;
|
|
3668
|
+
click: (event: FederatedPointerEvent_2) => void;
|
|
3669
|
+
hover: (event: FederatedPointerEvent_2) => void;
|
|
3670
|
+
doubleClick: (event: FederatedPointerEvent_2) => void;
|
|
3671
|
+
mouseHover: (event: FederatedPointerEvent_2) => void;
|
|
3592
3672
|
mouseUp: (event: MouseEvent) => void;
|
|
3593
3673
|
mouseDown: (event: MouseEvent) => void;
|
|
3594
3674
|
mouseMove: (event: MouseEvent) => void;
|
|
@@ -3596,13 +3676,12 @@ selected: (cells: S2CellType_2<ViewMeta_2>[]) => void;
|
|
|
3596
3676
|
reset: (event: KeyboardEvent) => void;
|
|
3597
3677
|
linkFieldJump: (data: {
|
|
3598
3678
|
key: string;
|
|
3599
|
-
record:
|
|
3679
|
+
record: RawData_2;
|
|
3600
3680
|
}) => void;
|
|
3601
3681
|
scroll: (position: CellScrollPosition_2) => void;
|
|
3602
|
-
rowCellBrushSelection: (event:
|
|
3603
|
-
colCellBrushSelection: (event:
|
|
3604
|
-
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<GetInitProps<SheetComponentProps, "
|
|
3605
|
-
onMounted?: (spreadsheet: SpreadSheet_2) => any;
|
|
3682
|
+
rowCellBrushSelection: (event: FederatedPointerEvent_2) => void;
|
|
3683
|
+
colCellBrushSelection: (event: FederatedPointerEvent_2) => void;
|
|
3684
|
+
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<GetInitProps<SheetComponentProps, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "renderConfig" | "adaptive" | "showPagination" | "themeCfg" | "header" | "getSpreadSheet" | "onSheetUpdate" | "onRowCellHover" | "onRowCellClick" | "onRowCellDoubleClick" | "onRowCellContextMenu" | "onRowCellMouseDown" | "onRowCellMouseUp" | "onRowCellMouseMove" | "onRowCellCollapseTreeRows" | "onRowCellScroll" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellTrendIconClick" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutCellMounted" | "onLayoutCollapseRows" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "onBeforeRender" | "onAfterRender" | "onMounted" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconHoverOff" | "onActionIconClick" | "onContextMenu" | "onClick" | "onHover" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onMouseDown" | "onMouseMove" | "onSelected" | "onReset" | "onLinkFieldJump" | "onScroll" | "onRowCellBrushSelection" | "onColCellBrushSelection">>> & {
|
|
3606
3685
|
onSheetUpdate?: (params: S2RenderOptions_2) => any;
|
|
3607
3686
|
onRowCellHover?: (data: TargetCellInfo_2) => any;
|
|
3608
3687
|
onRowCellClick?: (data: TargetCellInfo_2) => any;
|
|
@@ -3633,7 +3712,7 @@ onDataCellMouseUp?: (data: TargetCellInfo_2) => any;
|
|
|
3633
3712
|
onDataCellMouseMove?: (data: TargetCellInfo_2) => any;
|
|
3634
3713
|
onDataCellTrendIconClick?: (meta: ViewMeta_2) => any;
|
|
3635
3714
|
onDataCellBrushSelection?: (brushRangeDataCells: DataCell_2[]) => any;
|
|
3636
|
-
onDataCellSelectMove?: (metas:
|
|
3715
|
+
onDataCellSelectMove?: (metas: ViewMetaData_2[]) => any;
|
|
3637
3716
|
onCornerCellHover?: (data: TargetCellInfo_2) => any;
|
|
3638
3717
|
onCornerCellClick?: (data: TargetCellInfo_2) => any;
|
|
3639
3718
|
onCornerCellDoubleClick?: (data: TargetCellInfo_2) => any;
|
|
@@ -3649,20 +3728,16 @@ onMergedCellsMouseDown?: (data: TargetCellInfo_2) => any;
|
|
|
3649
3728
|
onMergedCellsMouseUp?: (data: TargetCellInfo_2) => any;
|
|
3650
3729
|
onMergedCellsMouseMove?: (data: TargetCellInfo_2) => any;
|
|
3651
3730
|
onRangeSort?: (params: SortParams_2) => any;
|
|
3652
|
-
onRangeSorted?: (event:
|
|
3731
|
+
onRangeSorted?: (event: FederatedPointerEvent_2) => any;
|
|
3653
3732
|
onRangeFilter?: (data: {
|
|
3654
3733
|
filterKey: string;
|
|
3655
3734
|
filteredValues: string[];
|
|
3656
3735
|
}) => any;
|
|
3657
|
-
onRangeFiltered?: (data:
|
|
3736
|
+
onRangeFiltered?: (data: ViewMetaData_2[]) => any;
|
|
3658
3737
|
onLayoutAfterHeaderLayout?: (layoutResult: LayoutResult_2) => any;
|
|
3659
|
-
onLayoutPagination?: (data:
|
|
3660
|
-
pageSize: number;
|
|
3661
|
-
pageCount: number;
|
|
3662
|
-
total: number;
|
|
3663
|
-
current: number;
|
|
3664
|
-
}) => any;
|
|
3738
|
+
onLayoutPagination?: (data: LayoutPaginationParams) => any;
|
|
3665
3739
|
onLayoutCellScroll?: (position: CellScrollPosition_2) => any;
|
|
3740
|
+
onLayoutCellMounted?: (cell: S2CellType_2<ViewMeta_2>) => any;
|
|
3666
3741
|
onLayoutCollapseRows?: (data: CollapsedRowsType_2) => any;
|
|
3667
3742
|
onLayoutAfterCollapseRows?: (data: CollapsedRowsType_2) => any;
|
|
3668
3743
|
onCollapseRowsAll?: (hierarchyCollapse: boolean) => any;
|
|
@@ -3673,6 +3748,7 @@ hiddenColumnsDetail: HiddenColumnsInfo_2[];
|
|
|
3673
3748
|
}) => any;
|
|
3674
3749
|
onBeforeRender?: () => any;
|
|
3675
3750
|
onAfterRender?: () => any;
|
|
3751
|
+
onMounted?: (spreadsheet: SpreadSheet_2) => any;
|
|
3676
3752
|
onDestroy?: () => any;
|
|
3677
3753
|
onLayoutResize?: (params: ResizeParams_2) => any;
|
|
3678
3754
|
onLayoutResizeSeriesWidth?: (params: ResizeParams_2) => any;
|
|
@@ -3696,14 +3772,14 @@ resizeInfo?: ResizeInfo_2;
|
|
|
3696
3772
|
onKeyBoardDown?: (event: KeyboardEvent) => any;
|
|
3697
3773
|
onKeyBoardUp?: (event: KeyboardEvent) => any;
|
|
3698
3774
|
onCopied?: (copyData: string) => any;
|
|
3699
|
-
onActionIconHover?: (event:
|
|
3700
|
-
onActionIconHoverOff?: (event:
|
|
3701
|
-
onActionIconClick?: (event:
|
|
3702
|
-
onContextMenu?: (event:
|
|
3703
|
-
onClick?: (event:
|
|
3704
|
-
onHover?: (event:
|
|
3705
|
-
onDoubleClick?: (event:
|
|
3706
|
-
onMouseHover?: (event:
|
|
3775
|
+
onActionIconHover?: (event: FederatedPointerEvent_2) => any;
|
|
3776
|
+
onActionIconHoverOff?: (event: FederatedPointerEvent_2) => any;
|
|
3777
|
+
onActionIconClick?: (event: FederatedPointerEvent_2) => any;
|
|
3778
|
+
onContextMenu?: (event: FederatedPointerEvent_2) => any;
|
|
3779
|
+
onClick?: (event: FederatedPointerEvent_2) => any;
|
|
3780
|
+
onHover?: (event: FederatedPointerEvent_2) => any;
|
|
3781
|
+
onDoubleClick?: (event: FederatedPointerEvent_2) => any;
|
|
3782
|
+
onMouseHover?: (event: FederatedPointerEvent_2) => any;
|
|
3707
3783
|
onMouseUp?: (event: MouseEvent) => any;
|
|
3708
3784
|
onMouseDown?: (event: MouseEvent) => any;
|
|
3709
3785
|
onMouseMove?: (event: MouseEvent) => any;
|
|
@@ -3711,11 +3787,11 @@ onSelected?: (cells: S2CellType_2<ViewMeta_2>[]) => any;
|
|
|
3711
3787
|
onReset?: (event: KeyboardEvent) => any;
|
|
3712
3788
|
onLinkFieldJump?: (data: {
|
|
3713
3789
|
key: string;
|
|
3714
|
-
record:
|
|
3790
|
+
record: RawData_2;
|
|
3715
3791
|
}) => any;
|
|
3716
3792
|
onScroll?: (position: CellScrollPosition_2) => any;
|
|
3717
|
-
onRowCellBrushSelection?: (event:
|
|
3718
|
-
onColCellBrushSelection?: (event:
|
|
3793
|
+
onRowCellBrushSelection?: (event: FederatedPointerEvent_2) => any;
|
|
3794
|
+
onColCellBrushSelection?: (event: FederatedPointerEvent_2) => any;
|
|
3719
3795
|
onSpreadsheet?: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2>) => any;
|
|
3720
3796
|
onGetSpreadSheet?: (spreadsheet: SpreadSheet_2) => any;
|
|
3721
3797
|
}, {}>>;
|
|
@@ -3752,7 +3828,7 @@ dataCellMouseUp: (data: TargetCellInfo_2) => void;
|
|
|
3752
3828
|
dataCellMouseMove: (data: TargetCellInfo_2) => void;
|
|
3753
3829
|
dataCellTrendIconClick: (meta: ViewMeta_2) => void;
|
|
3754
3830
|
dataCellBrushSelection: (brushRangeDataCells: DataCell_2[]) => void;
|
|
3755
|
-
dataCellSelectMove: (metas:
|
|
3831
|
+
dataCellSelectMove: (metas: ViewMetaData_2[]) => void;
|
|
3756
3832
|
cornerCellHover: (data: TargetCellInfo_2) => void;
|
|
3757
3833
|
cornerCellClick: (data: TargetCellInfo_2) => void;
|
|
3758
3834
|
cornerCellDoubleClick: (data: TargetCellInfo_2) => void;
|
|
@@ -3768,20 +3844,16 @@ mergedCellsMouseDown: (data: TargetCellInfo_2) => void;
|
|
|
3768
3844
|
mergedCellsMouseUp: (data: TargetCellInfo_2) => void;
|
|
3769
3845
|
mergedCellsMouseMove: (data: TargetCellInfo_2) => void;
|
|
3770
3846
|
rangeSort: (params: SortParams_2) => void;
|
|
3771
|
-
rangeSorted: (event:
|
|
3847
|
+
rangeSorted: (event: FederatedPointerEvent_2) => void;
|
|
3772
3848
|
rangeFilter: (data: {
|
|
3773
3849
|
filterKey: string;
|
|
3774
3850
|
filteredValues: string[];
|
|
3775
3851
|
}) => void;
|
|
3776
|
-
rangeFiltered: (data:
|
|
3852
|
+
rangeFiltered: (data: ViewMetaData_2[]) => void;
|
|
3777
3853
|
layoutAfterHeaderLayout: (layoutResult: LayoutResult_2) => void;
|
|
3778
|
-
layoutPagination: (data:
|
|
3779
|
-
pageSize: number;
|
|
3780
|
-
pageCount: number;
|
|
3781
|
-
total: number;
|
|
3782
|
-
current: number;
|
|
3783
|
-
}) => void;
|
|
3854
|
+
layoutPagination: (data: LayoutPaginationParams) => void;
|
|
3784
3855
|
layoutCellScroll: (position: CellScrollPosition_2) => void;
|
|
3856
|
+
layoutCellMounted: (cell: S2CellType_2<ViewMeta_2>) => void;
|
|
3785
3857
|
layoutCollapseRows: (data: CollapsedRowsType_2) => void;
|
|
3786
3858
|
layoutAfterCollapseRows: (data: CollapsedRowsType_2) => void;
|
|
3787
3859
|
collapseRowsAll: (hierarchyCollapse: boolean) => void;
|
|
@@ -3816,14 +3888,14 @@ resizeInfo?: ResizeInfo_2;
|
|
|
3816
3888
|
keyBoardDown: (event: KeyboardEvent) => void;
|
|
3817
3889
|
keyBoardUp: (event: KeyboardEvent) => void;
|
|
3818
3890
|
copied: (copyData: string) => void;
|
|
3819
|
-
actionIconHover: (event:
|
|
3820
|
-
actionIconHoverOff: (event:
|
|
3821
|
-
actionIconClick: (event:
|
|
3822
|
-
contextMenu: (event:
|
|
3823
|
-
click: (event:
|
|
3824
|
-
hover: (event:
|
|
3825
|
-
doubleClick: (event:
|
|
3826
|
-
mouseHover: (event:
|
|
3891
|
+
actionIconHover: (event: FederatedPointerEvent_2) => void;
|
|
3892
|
+
actionIconHoverOff: (event: FederatedPointerEvent_2) => void;
|
|
3893
|
+
actionIconClick: (event: FederatedPointerEvent_2) => void;
|
|
3894
|
+
contextMenu: (event: FederatedPointerEvent_2) => void;
|
|
3895
|
+
click: (event: FederatedPointerEvent_2) => void;
|
|
3896
|
+
hover: (event: FederatedPointerEvent_2) => void;
|
|
3897
|
+
doubleClick: (event: FederatedPointerEvent_2) => void;
|
|
3898
|
+
mouseHover: (event: FederatedPointerEvent_2) => void;
|
|
3827
3899
|
mouseUp: (event: MouseEvent) => void;
|
|
3828
3900
|
mouseDown: (event: MouseEvent) => void;
|
|
3829
3901
|
mouseMove: (event: MouseEvent) => void;
|
|
@@ -3831,13 +3903,12 @@ selected: (cells: S2CellType_2<ViewMeta_2>[]) => void;
|
|
|
3831
3903
|
reset: (event: KeyboardEvent) => void;
|
|
3832
3904
|
linkFieldJump: (data: {
|
|
3833
3905
|
key: string;
|
|
3834
|
-
record:
|
|
3906
|
+
record: RawData_2;
|
|
3835
3907
|
}) => void;
|
|
3836
3908
|
scroll: (position: CellScrollPosition_2) => void;
|
|
3837
|
-
rowCellBrushSelection: (event:
|
|
3838
|
-
colCellBrushSelection: (event:
|
|
3839
|
-
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<GetInitProps<SheetComponentProps, "
|
|
3840
|
-
onMounted?: (spreadsheet: SpreadSheet_2) => any;
|
|
3909
|
+
rowCellBrushSelection: (event: FederatedPointerEvent_2) => void;
|
|
3910
|
+
colCellBrushSelection: (event: FederatedPointerEvent_2) => void;
|
|
3911
|
+
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<GetInitProps<SheetComponentProps, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "renderConfig" | "adaptive" | "showPagination" | "themeCfg" | "header" | "getSpreadSheet" | "onSheetUpdate" | "onRowCellHover" | "onRowCellClick" | "onRowCellDoubleClick" | "onRowCellContextMenu" | "onRowCellMouseDown" | "onRowCellMouseUp" | "onRowCellMouseMove" | "onRowCellCollapseTreeRows" | "onRowCellScroll" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellTrendIconClick" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutCellMounted" | "onLayoutCollapseRows" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "onBeforeRender" | "onAfterRender" | "onMounted" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconHoverOff" | "onActionIconClick" | "onContextMenu" | "onClick" | "onHover" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onMouseDown" | "onMouseMove" | "onSelected" | "onReset" | "onLinkFieldJump" | "onScroll" | "onRowCellBrushSelection" | "onColCellBrushSelection">>> & {
|
|
3841
3912
|
onSheetUpdate?: (params: S2RenderOptions_2) => any;
|
|
3842
3913
|
onRowCellHover?: (data: TargetCellInfo_2) => any;
|
|
3843
3914
|
onRowCellClick?: (data: TargetCellInfo_2) => any;
|
|
@@ -3868,7 +3939,7 @@ onDataCellMouseUp?: (data: TargetCellInfo_2) => any;
|
|
|
3868
3939
|
onDataCellMouseMove?: (data: TargetCellInfo_2) => any;
|
|
3869
3940
|
onDataCellTrendIconClick?: (meta: ViewMeta_2) => any;
|
|
3870
3941
|
onDataCellBrushSelection?: (brushRangeDataCells: DataCell_2[]) => any;
|
|
3871
|
-
onDataCellSelectMove?: (metas:
|
|
3942
|
+
onDataCellSelectMove?: (metas: ViewMetaData_2[]) => any;
|
|
3872
3943
|
onCornerCellHover?: (data: TargetCellInfo_2) => any;
|
|
3873
3944
|
onCornerCellClick?: (data: TargetCellInfo_2) => any;
|
|
3874
3945
|
onCornerCellDoubleClick?: (data: TargetCellInfo_2) => any;
|
|
@@ -3884,20 +3955,16 @@ onMergedCellsMouseDown?: (data: TargetCellInfo_2) => any;
|
|
|
3884
3955
|
onMergedCellsMouseUp?: (data: TargetCellInfo_2) => any;
|
|
3885
3956
|
onMergedCellsMouseMove?: (data: TargetCellInfo_2) => any;
|
|
3886
3957
|
onRangeSort?: (params: SortParams_2) => any;
|
|
3887
|
-
onRangeSorted?: (event:
|
|
3958
|
+
onRangeSorted?: (event: FederatedPointerEvent_2) => any;
|
|
3888
3959
|
onRangeFilter?: (data: {
|
|
3889
3960
|
filterKey: string;
|
|
3890
3961
|
filteredValues: string[];
|
|
3891
3962
|
}) => any;
|
|
3892
|
-
onRangeFiltered?: (data:
|
|
3963
|
+
onRangeFiltered?: (data: ViewMetaData_2[]) => any;
|
|
3893
3964
|
onLayoutAfterHeaderLayout?: (layoutResult: LayoutResult_2) => any;
|
|
3894
|
-
onLayoutPagination?: (data:
|
|
3895
|
-
pageSize: number;
|
|
3896
|
-
pageCount: number;
|
|
3897
|
-
total: number;
|
|
3898
|
-
current: number;
|
|
3899
|
-
}) => any;
|
|
3965
|
+
onLayoutPagination?: (data: LayoutPaginationParams) => any;
|
|
3900
3966
|
onLayoutCellScroll?: (position: CellScrollPosition_2) => any;
|
|
3967
|
+
onLayoutCellMounted?: (cell: S2CellType_2<ViewMeta_2>) => any;
|
|
3901
3968
|
onLayoutCollapseRows?: (data: CollapsedRowsType_2) => any;
|
|
3902
3969
|
onLayoutAfterCollapseRows?: (data: CollapsedRowsType_2) => any;
|
|
3903
3970
|
onCollapseRowsAll?: (hierarchyCollapse: boolean) => any;
|
|
@@ -3908,6 +3975,7 @@ hiddenColumnsDetail: HiddenColumnsInfo_2[];
|
|
|
3908
3975
|
}) => any;
|
|
3909
3976
|
onBeforeRender?: () => any;
|
|
3910
3977
|
onAfterRender?: () => any;
|
|
3978
|
+
onMounted?: (spreadsheet: SpreadSheet_2) => any;
|
|
3911
3979
|
onDestroy?: () => any;
|
|
3912
3980
|
onLayoutResize?: (params: ResizeParams_2) => any;
|
|
3913
3981
|
onLayoutResizeSeriesWidth?: (params: ResizeParams_2) => any;
|
|
@@ -3931,14 +3999,14 @@ resizeInfo?: ResizeInfo_2;
|
|
|
3931
3999
|
onKeyBoardDown?: (event: KeyboardEvent) => any;
|
|
3932
4000
|
onKeyBoardUp?: (event: KeyboardEvent) => any;
|
|
3933
4001
|
onCopied?: (copyData: string) => any;
|
|
3934
|
-
onActionIconHover?: (event:
|
|
3935
|
-
onActionIconHoverOff?: (event:
|
|
3936
|
-
onActionIconClick?: (event:
|
|
3937
|
-
onContextMenu?: (event:
|
|
3938
|
-
onClick?: (event:
|
|
3939
|
-
onHover?: (event:
|
|
3940
|
-
onDoubleClick?: (event:
|
|
3941
|
-
onMouseHover?: (event:
|
|
4002
|
+
onActionIconHover?: (event: FederatedPointerEvent_2) => any;
|
|
4003
|
+
onActionIconHoverOff?: (event: FederatedPointerEvent_2) => any;
|
|
4004
|
+
onActionIconClick?: (event: FederatedPointerEvent_2) => any;
|
|
4005
|
+
onContextMenu?: (event: FederatedPointerEvent_2) => any;
|
|
4006
|
+
onClick?: (event: FederatedPointerEvent_2) => any;
|
|
4007
|
+
onHover?: (event: FederatedPointerEvent_2) => any;
|
|
4008
|
+
onDoubleClick?: (event: FederatedPointerEvent_2) => any;
|
|
4009
|
+
onMouseHover?: (event: FederatedPointerEvent_2) => any;
|
|
3942
4010
|
onMouseUp?: (event: MouseEvent) => any;
|
|
3943
4011
|
onMouseDown?: (event: MouseEvent) => any;
|
|
3944
4012
|
onMouseMove?: (event: MouseEvent) => any;
|
|
@@ -3946,11 +4014,11 @@ onSelected?: (cells: S2CellType_2<ViewMeta_2>[]) => any;
|
|
|
3946
4014
|
onReset?: (event: KeyboardEvent) => any;
|
|
3947
4015
|
onLinkFieldJump?: (data: {
|
|
3948
4016
|
key: string;
|
|
3949
|
-
record:
|
|
4017
|
+
record: RawData_2;
|
|
3950
4018
|
}) => any;
|
|
3951
4019
|
onScroll?: (position: CellScrollPosition_2) => any;
|
|
3952
|
-
onRowCellBrushSelection?: (event:
|
|
3953
|
-
onColCellBrushSelection?: (event:
|
|
4020
|
+
onRowCellBrushSelection?: (event: FederatedPointerEvent_2) => any;
|
|
4021
|
+
onColCellBrushSelection?: (event: FederatedPointerEvent_2) => any;
|
|
3954
4022
|
onSpreadsheet?: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2>) => any;
|
|
3955
4023
|
onGetSpreadSheet?: (spreadsheet: SpreadSheet_2) => any;
|
|
3956
4024
|
}, {}>;
|
|
@@ -3963,12 +4031,19 @@ export declare interface SheetExpose {
|
|
|
3963
4031
|
instance: SpreadSheet | undefined;
|
|
3964
4032
|
}
|
|
3965
4033
|
|
|
3966
|
-
declare type SheetType = 'pivot' | 'table' | 'gridAnalysis' | 'strategy' | 'editable';
|
|
4034
|
+
declare type SheetType = 'pivot' | 'table' | 'chart' | 'gridAnalysis' | 'strategy' | 'editable';
|
|
3967
4035
|
|
|
3968
4036
|
/** render callback */
|
|
3969
4037
|
declare type SheetUpdateCallback = (params: S2RenderOptions) => S2RenderOptions;
|
|
3970
4038
|
|
|
3971
|
-
declare
|
|
4039
|
+
declare interface SimpleBBox {
|
|
4040
|
+
x: number;
|
|
4041
|
+
y: number;
|
|
4042
|
+
width: number;
|
|
4043
|
+
height: number;
|
|
4044
|
+
}
|
|
4045
|
+
|
|
4046
|
+
declare type SimpleData = string | number | null;
|
|
3972
4047
|
|
|
3973
4048
|
declare interface Sort {
|
|
3974
4049
|
/** 字段id,业务中一般是displayId */
|
|
@@ -3984,17 +4059,17 @@ declare interface Sort {
|
|
|
3984
4059
|
type?: string;
|
|
3985
4060
|
}
|
|
3986
4061
|
|
|
3987
|
-
declare type SortedHandler = (rangeData:
|
|
4062
|
+
declare type SortedHandler = (rangeData: RawData_2[]) => any;
|
|
3988
4063
|
|
|
3989
4064
|
declare interface SortFuncParam extends Sort {
|
|
3990
|
-
data: Array<string | Record<string, any
|
|
4065
|
+
data: Array<string | Record<string, any>> | undefined;
|
|
3991
4066
|
}
|
|
3992
4067
|
|
|
3993
4068
|
declare type SortMethod = 'ASC' | 'DESC' | 'asc' | 'desc';
|
|
3994
4069
|
|
|
3995
4070
|
declare interface SortParam extends Sort {
|
|
3996
4071
|
/** 自定义func */
|
|
3997
|
-
sortFunc?: (
|
|
4072
|
+
sortFunc?: (param: SortFuncParam) => Array<string | Record<string, any>>;
|
|
3998
4073
|
}
|
|
3999
4074
|
|
|
4000
4075
|
declare type SortParams_2 = SortParam[];
|
|
@@ -4019,10 +4094,6 @@ declare abstract class SpreadSheet_2 extends EE {
|
|
|
4019
4094
|
store: Store;
|
|
4020
4095
|
dataCfg: S2DataConfig_2;
|
|
4021
4096
|
options: S2Options_2;
|
|
4022
|
-
/**
|
|
4023
|
-
* processed data structure, include {@link Fields}, {@link Meta}
|
|
4024
|
-
* {@link Data}, {@link SortParams}
|
|
4025
|
-
*/
|
|
4026
4097
|
dataSet: BaseDataSet_2;
|
|
4027
4098
|
/**
|
|
4028
4099
|
* Facet: determine how to render headers/cell
|
|
@@ -4030,23 +4101,13 @@ declare abstract class SpreadSheet_2 extends EE {
|
|
|
4030
4101
|
facet: BaseFacet;
|
|
4031
4102
|
tooltip: BaseTooltip_2;
|
|
4032
4103
|
container: Canvas;
|
|
4033
|
-
backgroundGroup: IGroup;
|
|
4034
|
-
panelGroup: IGroup;
|
|
4035
|
-
panelScrollGroup: PanelScrollGroup;
|
|
4036
|
-
frozenRowGroup: FrozenGroup_2;
|
|
4037
|
-
frozenColGroup: FrozenGroup_2;
|
|
4038
|
-
frozenTrailingRowGroup: FrozenGroup_2;
|
|
4039
|
-
frozenTrailingColGroup: FrozenGroup_2;
|
|
4040
|
-
frozenTopGroup: FrozenGroup_2;
|
|
4041
|
-
frozenBottomGroup: FrozenGroup_2;
|
|
4042
|
-
foregroundGroup: IGroup;
|
|
4043
4104
|
interaction: RootInteraction;
|
|
4044
4105
|
hdAdapter: HdAdapter;
|
|
4045
4106
|
private untypedOn;
|
|
4046
4107
|
private untypedEmit;
|
|
4047
4108
|
on: <K extends keyof EmitterType>(event: K, listener: EmitterType[K]) => this;
|
|
4048
4109
|
emit: <K extends keyof EmitterType>(event: K, ...args: Parameters<EmitterType[K]>) => boolean;
|
|
4049
|
-
constructor(dom: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2);
|
|
4110
|
+
constructor(dom: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2 | null);
|
|
4050
4111
|
private setOverscrollBehavior;
|
|
4051
4112
|
private restoreOverscrollBehavior;
|
|
4052
4113
|
private setDebug;
|
|
@@ -4057,11 +4118,18 @@ declare abstract class SpreadSheet_2 extends EE {
|
|
|
4057
4118
|
private initTooltip;
|
|
4058
4119
|
private renderTooltip;
|
|
4059
4120
|
protected abstract bindEvents(): void;
|
|
4060
|
-
abstract getDataSet(
|
|
4121
|
+
abstract getDataSet(): BaseDataSet_2;
|
|
4122
|
+
/**
|
|
4123
|
+
* 是否开启冻结行列头效果
|
|
4124
|
+
*/
|
|
4125
|
+
abstract enableFrozenHeaders(): boolean;
|
|
4061
4126
|
/**
|
|
4062
4127
|
* Check if is pivot mode
|
|
4063
4128
|
*/
|
|
4064
4129
|
abstract isPivotMode(): boolean;
|
|
4130
|
+
abstract isCustomHeaderFields(fieldType?: keyof Pick<Fields, 'columns' | 'rows'>): boolean;
|
|
4131
|
+
abstract isCustomRowFields(): boolean;
|
|
4132
|
+
abstract isCustomColumnFields(): boolean;
|
|
4065
4133
|
/**
|
|
4066
4134
|
* tree type must be in strategy mode
|
|
4067
4135
|
*/
|
|
@@ -4090,9 +4158,9 @@ declare abstract class SpreadSheet_2 extends EE {
|
|
|
4090
4158
|
protected abstract getFacetCfgFromDataSetAndOptions(): SpreadSheetFacetCfg;
|
|
4091
4159
|
protected abstract buildFacet(): void;
|
|
4092
4160
|
abstract clearDrillDownData(rowNodeId?: string, preventRender?: boolean): void;
|
|
4093
|
-
abstract handleGroupSort(event:
|
|
4161
|
+
abstract handleGroupSort(event: FederatedPointerEvent, meta: Node_2_2): void;
|
|
4094
4162
|
showTooltip<T = TooltipContentType_2>(showOptions: TooltipShowOptions<T>): void;
|
|
4095
|
-
showTooltipWithInfo(event:
|
|
4163
|
+
showTooltipWithInfo(event: FederatedPointerEvent | MouseEvent, data: TooltipData[], options?: TooltipOptions): void;
|
|
4096
4164
|
hideTooltip(): void;
|
|
4097
4165
|
destroyTooltip(): void;
|
|
4098
4166
|
registerIcons(): void;
|
|
@@ -4101,9 +4169,10 @@ declare abstract class SpreadSheet_2 extends EE {
|
|
|
4101
4169
|
* Group sort params kept in {@see store} and
|
|
4102
4170
|
* Priority: group sort > advanced sort
|
|
4103
4171
|
* @param dataCfg
|
|
4172
|
+
* @param reset reset: true, 直接使用用户传入的 DataCfg ,不再与上次数据进行合并
|
|
4104
4173
|
*/
|
|
4105
|
-
setDataCfg(dataCfg: S2DataConfig_2): void;
|
|
4106
|
-
setOptions(options: Partial<S2Options_2
|
|
4174
|
+
setDataCfg(dataCfg: S2DataConfig_2, reset?: boolean): void;
|
|
4175
|
+
setOptions(options: Partial<S2Options_2>, reset?: boolean): void;
|
|
4107
4176
|
render(reloadData?: boolean, options?: S2RenderOptions_2): void;
|
|
4108
4177
|
destroy(): void;
|
|
4109
4178
|
setThemeCfg(themeCfg?: ThemeCfg_2): void;
|
|
@@ -4150,9 +4219,9 @@ declare abstract class SpreadSheet_2 extends EE {
|
|
|
4150
4219
|
* but offsetY(vertical scroll don't need animation)
|
|
4151
4220
|
*/
|
|
4152
4221
|
updateScrollOffset(offsetConfig: OffsetConfig): void;
|
|
4153
|
-
getTooltipDataItemMappingCallback(): MappingDataItemCallback;
|
|
4154
|
-
getCell<T extends S2CellType_2 = S2CellType_2>(target:
|
|
4155
|
-
getCellType(target:
|
|
4222
|
+
getTooltipDataItemMappingCallback(): MappingDataItemCallback | undefined;
|
|
4223
|
+
getCell<T extends S2CellType_2 = S2CellType_2>(target: CellEventTarget): T | null;
|
|
4224
|
+
getCellType(target: CellEventTarget): CellTypes | undefined;
|
|
4156
4225
|
/**
|
|
4157
4226
|
* get total's config by dimension id
|
|
4158
4227
|
* @param dimension unique dimension id
|
|
@@ -4167,20 +4236,33 @@ declare abstract class SpreadSheet_2 extends EE {
|
|
|
4167
4236
|
* @param dom
|
|
4168
4237
|
* @private
|
|
4169
4238
|
*/
|
|
4170
|
-
protected
|
|
4239
|
+
protected initContainer(dom: S2MountContainer_2): void;
|
|
4171
4240
|
protected updateContainerStyle(): void;
|
|
4172
|
-
protected initPanelGroupChildren(): void;
|
|
4173
4241
|
getInitColumnLeafNodes(): Node_2_2[];
|
|
4174
4242
|
clearColumnLeafNodes(): void;
|
|
4175
4243
|
private initHiddenColumnsDetail;
|
|
4176
4244
|
private clearCanvasEvent;
|
|
4245
|
+
/**
|
|
4246
|
+
* 获取文本在画布中的测量信息
|
|
4247
|
+
* @param text 待计算的文本
|
|
4248
|
+
* @param font 文本 css 样式
|
|
4249
|
+
* @returns 文本测量信息 TextMetrics
|
|
4250
|
+
*/
|
|
4251
|
+
measureText: ((text: string | number | undefined, font: unknown) => TextMetrics | null) & MemoizedFunction;
|
|
4177
4252
|
/**
|
|
4178
4253
|
* 计算文本在画布中的宽度
|
|
4179
4254
|
* @param text 待计算的文本
|
|
4180
4255
|
* @param font 文本 css 样式
|
|
4181
4256
|
* @returns 文本宽度
|
|
4182
4257
|
*/
|
|
4183
|
-
measureTextWidth: (
|
|
4258
|
+
measureTextWidth: (text: string | number | undefined, font: unknown) => number;
|
|
4259
|
+
/**
|
|
4260
|
+
* 计算文本在画布中的宽度 https://developer.mozilla.org/zh-CN/docs/Web/API/TextMetrics
|
|
4261
|
+
* @param text 待计算的文本
|
|
4262
|
+
* @param font 文本 css 样式
|
|
4263
|
+
* @returns 文本高度
|
|
4264
|
+
*/
|
|
4265
|
+
measureTextHeight: (text: string | number | undefined, font: unknown) => number;
|
|
4184
4266
|
/**
|
|
4185
4267
|
* 粗略计算文本在画布中的宽度
|
|
4186
4268
|
* @param text 待计算的文本
|
|
@@ -4192,10 +4274,7 @@ declare abstract class SpreadSheet_2 extends EE {
|
|
|
4192
4274
|
getMenuDefaultSelectedKeys(nodeId: string): string[];
|
|
4193
4275
|
}
|
|
4194
4276
|
|
|
4195
|
-
|
|
4196
|
-
* Spreadsheet facet config
|
|
4197
|
-
*/
|
|
4198
|
-
declare interface SpreadSheetFacetCfg extends Fields, S2BasicOptions, S2TableSheetOptions, Style {
|
|
4277
|
+
declare interface SpreadSheetFacetCfg extends Fields, S2BasicOptions, S2TableSheetOptions, S2Style {
|
|
4199
4278
|
spreadsheet: SpreadSheet_2;
|
|
4200
4279
|
dataSet: BaseDataSet_2;
|
|
4201
4280
|
meta?: Meta[];
|
|
@@ -4223,7 +4302,7 @@ declare interface StoreKey {
|
|
|
4223
4302
|
scrollY: number;
|
|
4224
4303
|
hRowScrollX: number;
|
|
4225
4304
|
sortParam: SortParam;
|
|
4226
|
-
drillDownIdPathMap: Map<string,
|
|
4305
|
+
drillDownIdPathMap: Map<string, DataPath[]>;
|
|
4227
4306
|
drillDownNode: Node_2_2;
|
|
4228
4307
|
drillItemsNum: number;
|
|
4229
4308
|
drillDownFieldInLevel: PartDrillDownFieldInLevel[];
|
|
@@ -4232,7 +4311,7 @@ declare interface StoreKey {
|
|
|
4232
4311
|
panelBBox: BBox;
|
|
4233
4312
|
activeResizeArea: Group;
|
|
4234
4313
|
valueRanges: ValueRanges;
|
|
4235
|
-
initColumnLeafNodes: Node_2_2[];
|
|
4314
|
+
initColumnLeafNodes: Node_2_2[] | undefined;
|
|
4236
4315
|
/**
|
|
4237
4316
|
* 隐藏列详情
|
|
4238
4317
|
* | a, b, [c,d 隐藏] [icon e ] , [f 隐藏], [icon g] |
|
|
@@ -4241,27 +4320,48 @@ declare interface StoreKey {
|
|
|
4241
4320
|
lastRenderedColumnFields: string[];
|
|
4242
4321
|
resized: boolean;
|
|
4243
4322
|
visibleActionIcons: GuiIcon[];
|
|
4244
|
-
lastClickedCell: S2CellType_2<ViewMeta_2
|
|
4323
|
+
lastClickedCell: S2CellType_2<ViewMeta_2> | null;
|
|
4245
4324
|
initOverscrollBehavior: InteractionOptions['overscrollBehavior'];
|
|
4246
|
-
sortMethodMap: Record<string, SortMethod
|
|
4325
|
+
sortMethodMap: Record<string, SortMethod> | null;
|
|
4247
4326
|
[key: string]: unknown;
|
|
4248
4327
|
}
|
|
4249
4328
|
|
|
4250
|
-
declare
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4329
|
+
declare class TableColCell extends ColCell {
|
|
4330
|
+
protected handleRestOptions(...[headerConfig]: [BaseHeaderConfig]): void;
|
|
4331
|
+
protected isFrozenCell(): boolean;
|
|
4332
|
+
protected getFormattedFieldValue(): FormatResult;
|
|
4333
|
+
protected shouldAddVerticalResizeArea(): boolean;
|
|
4334
|
+
protected getVerticalResizeAreaOffset(): {
|
|
4335
|
+
x: number;
|
|
4336
|
+
y: number;
|
|
4337
|
+
};
|
|
4338
|
+
protected getColResizeArea(): Group | undefined;
|
|
4339
|
+
protected isSortCell(): boolean;
|
|
4340
|
+
protected showSortIcon(): boolean | undefined;
|
|
4341
|
+
protected getTextStyle(): TextTheme;
|
|
4342
|
+
protected getHorizontalResizeAreaName(): string;
|
|
4343
|
+
protected drawBackgroundShape(): void;
|
|
4262
4344
|
}
|
|
4263
4345
|
|
|
4264
|
-
|
|
4346
|
+
declare class TableCornerCell extends TableColCell {
|
|
4347
|
+
getStyle(name?: string): any;
|
|
4348
|
+
protected showSortIcon(): boolean;
|
|
4349
|
+
}
|
|
4350
|
+
|
|
4351
|
+
declare class TableDataCell extends DataCell_2 {
|
|
4352
|
+
protected drawTextShape(): void;
|
|
4353
|
+
protected drawLinkFieldShape(): void;
|
|
4354
|
+
drawBorders(): void;
|
|
4355
|
+
protected shouldDrawResizeArea(): boolean;
|
|
4356
|
+
drawResizeArea(): void;
|
|
4357
|
+
}
|
|
4358
|
+
|
|
4359
|
+
declare class TableSeriesCell extends TableDataCell {
|
|
4360
|
+
get cellType(): CellTypes;
|
|
4361
|
+
protected getTextStyle(): TextTheme;
|
|
4362
|
+
}
|
|
4363
|
+
|
|
4364
|
+
export declare const TableSheet: DefineComponent<GetInitProps<SheetComponentProps, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "renderConfig" | "adaptive" | "showPagination" | "themeCfg" | "header" | "getSpreadSheet" | "onSheetUpdate" | "onRowCellHover" | "onRowCellClick" | "onRowCellDoubleClick" | "onRowCellContextMenu" | "onRowCellMouseDown" | "onRowCellMouseUp" | "onRowCellMouseMove" | "onRowCellCollapseTreeRows" | "onRowCellScroll" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellTrendIconClick" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutCellMounted" | "onLayoutCollapseRows" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "onBeforeRender" | "onAfterRender" | "onMounted" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconHoverOff" | "onActionIconClick" | "onContextMenu" | "onClick" | "onHover" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onMouseDown" | "onMouseMove" | "onSelected" | "onReset" | "onLinkFieldJump" | "onScroll" | "onRowCellBrushSelection" | "onColCellBrushSelection">, {
|
|
4265
4365
|
s2Ref: ShallowRef<SheetExpose>;
|
|
4266
4366
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
4267
4367
|
spreadsheet: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2>) => SpreadSheet_2;
|
|
@@ -4296,7 +4396,7 @@ dataCellMouseUp: (data: TargetCellInfo_2) => void;
|
|
|
4296
4396
|
dataCellMouseMove: (data: TargetCellInfo_2) => void;
|
|
4297
4397
|
dataCellTrendIconClick: (meta: ViewMeta_2) => void;
|
|
4298
4398
|
dataCellBrushSelection: (brushRangeDataCells: DataCell_2[]) => void;
|
|
4299
|
-
dataCellSelectMove: (metas:
|
|
4399
|
+
dataCellSelectMove: (metas: ViewMetaData_2[]) => void;
|
|
4300
4400
|
cornerCellHover: (data: TargetCellInfo_2) => void;
|
|
4301
4401
|
cornerCellClick: (data: TargetCellInfo_2) => void;
|
|
4302
4402
|
cornerCellDoubleClick: (data: TargetCellInfo_2) => void;
|
|
@@ -4312,20 +4412,16 @@ mergedCellsMouseDown: (data: TargetCellInfo_2) => void;
|
|
|
4312
4412
|
mergedCellsMouseUp: (data: TargetCellInfo_2) => void;
|
|
4313
4413
|
mergedCellsMouseMove: (data: TargetCellInfo_2) => void;
|
|
4314
4414
|
rangeSort: (params: SortParams_2) => void;
|
|
4315
|
-
rangeSorted: (event:
|
|
4415
|
+
rangeSorted: (event: FederatedPointerEvent_2) => void;
|
|
4316
4416
|
rangeFilter: (data: {
|
|
4317
4417
|
filterKey: string;
|
|
4318
4418
|
filteredValues: string[];
|
|
4319
4419
|
}) => void;
|
|
4320
|
-
rangeFiltered: (data:
|
|
4420
|
+
rangeFiltered: (data: ViewMetaData_2[]) => void;
|
|
4321
4421
|
layoutAfterHeaderLayout: (layoutResult: LayoutResult_2) => void;
|
|
4322
|
-
layoutPagination: (data:
|
|
4323
|
-
pageSize: number;
|
|
4324
|
-
pageCount: number;
|
|
4325
|
-
total: number;
|
|
4326
|
-
current: number;
|
|
4327
|
-
}) => void;
|
|
4422
|
+
layoutPagination: (data: LayoutPaginationParams) => void;
|
|
4328
4423
|
layoutCellScroll: (position: CellScrollPosition_2) => void;
|
|
4424
|
+
layoutCellMounted: (cell: S2CellType_2<ViewMeta_2>) => void;
|
|
4329
4425
|
layoutCollapseRows: (data: CollapsedRowsType_2) => void;
|
|
4330
4426
|
layoutAfterCollapseRows: (data: CollapsedRowsType_2) => void;
|
|
4331
4427
|
collapseRowsAll: (hierarchyCollapse: boolean) => void;
|
|
@@ -4360,14 +4456,14 @@ resizeInfo?: ResizeInfo_2;
|
|
|
4360
4456
|
keyBoardDown: (event: KeyboardEvent) => void;
|
|
4361
4457
|
keyBoardUp: (event: KeyboardEvent) => void;
|
|
4362
4458
|
copied: (copyData: string) => void;
|
|
4363
|
-
actionIconHover: (event:
|
|
4364
|
-
actionIconHoverOff: (event:
|
|
4365
|
-
actionIconClick: (event:
|
|
4366
|
-
contextMenu: (event:
|
|
4367
|
-
click: (event:
|
|
4368
|
-
hover: (event:
|
|
4369
|
-
doubleClick: (event:
|
|
4370
|
-
mouseHover: (event:
|
|
4459
|
+
actionIconHover: (event: FederatedPointerEvent_2) => void;
|
|
4460
|
+
actionIconHoverOff: (event: FederatedPointerEvent_2) => void;
|
|
4461
|
+
actionIconClick: (event: FederatedPointerEvent_2) => void;
|
|
4462
|
+
contextMenu: (event: FederatedPointerEvent_2) => void;
|
|
4463
|
+
click: (event: FederatedPointerEvent_2) => void;
|
|
4464
|
+
hover: (event: FederatedPointerEvent_2) => void;
|
|
4465
|
+
doubleClick: (event: FederatedPointerEvent_2) => void;
|
|
4466
|
+
mouseHover: (event: FederatedPointerEvent_2) => void;
|
|
4371
4467
|
mouseUp: (event: MouseEvent) => void;
|
|
4372
4468
|
mouseDown: (event: MouseEvent) => void;
|
|
4373
4469
|
mouseMove: (event: MouseEvent) => void;
|
|
@@ -4375,13 +4471,12 @@ selected: (cells: S2CellType_2<ViewMeta_2>[]) => void;
|
|
|
4375
4471
|
reset: (event: KeyboardEvent) => void;
|
|
4376
4472
|
linkFieldJump: (data: {
|
|
4377
4473
|
key: string;
|
|
4378
|
-
record:
|
|
4474
|
+
record: RawData_2;
|
|
4379
4475
|
}) => void;
|
|
4380
4476
|
scroll: (position: CellScrollPosition_2) => void;
|
|
4381
|
-
rowCellBrushSelection: (event:
|
|
4382
|
-
colCellBrushSelection: (event:
|
|
4383
|
-
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<GetInitProps<SheetComponentProps, "
|
|
4384
|
-
onMounted?: (spreadsheet: SpreadSheet_2) => any;
|
|
4477
|
+
rowCellBrushSelection: (event: FederatedPointerEvent_2) => void;
|
|
4478
|
+
colCellBrushSelection: (event: FederatedPointerEvent_2) => void;
|
|
4479
|
+
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<GetInitProps<SheetComponentProps, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "renderConfig" | "adaptive" | "showPagination" | "themeCfg" | "header" | "getSpreadSheet" | "onSheetUpdate" | "onRowCellHover" | "onRowCellClick" | "onRowCellDoubleClick" | "onRowCellContextMenu" | "onRowCellMouseDown" | "onRowCellMouseUp" | "onRowCellMouseMove" | "onRowCellCollapseTreeRows" | "onRowCellScroll" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellTrendIconClick" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutCellMounted" | "onLayoutCollapseRows" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "onBeforeRender" | "onAfterRender" | "onMounted" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconHoverOff" | "onActionIconClick" | "onContextMenu" | "onClick" | "onHover" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onMouseDown" | "onMouseMove" | "onSelected" | "onReset" | "onLinkFieldJump" | "onScroll" | "onRowCellBrushSelection" | "onColCellBrushSelection">>> & {
|
|
4385
4480
|
onSheetUpdate?: (params: S2RenderOptions_2) => any;
|
|
4386
4481
|
onRowCellHover?: (data: TargetCellInfo_2) => any;
|
|
4387
4482
|
onRowCellClick?: (data: TargetCellInfo_2) => any;
|
|
@@ -4412,7 +4507,7 @@ onDataCellMouseUp?: (data: TargetCellInfo_2) => any;
|
|
|
4412
4507
|
onDataCellMouseMove?: (data: TargetCellInfo_2) => any;
|
|
4413
4508
|
onDataCellTrendIconClick?: (meta: ViewMeta_2) => any;
|
|
4414
4509
|
onDataCellBrushSelection?: (brushRangeDataCells: DataCell_2[]) => any;
|
|
4415
|
-
onDataCellSelectMove?: (metas:
|
|
4510
|
+
onDataCellSelectMove?: (metas: ViewMetaData_2[]) => any;
|
|
4416
4511
|
onCornerCellHover?: (data: TargetCellInfo_2) => any;
|
|
4417
4512
|
onCornerCellClick?: (data: TargetCellInfo_2) => any;
|
|
4418
4513
|
onCornerCellDoubleClick?: (data: TargetCellInfo_2) => any;
|
|
@@ -4428,20 +4523,16 @@ onMergedCellsMouseDown?: (data: TargetCellInfo_2) => any;
|
|
|
4428
4523
|
onMergedCellsMouseUp?: (data: TargetCellInfo_2) => any;
|
|
4429
4524
|
onMergedCellsMouseMove?: (data: TargetCellInfo_2) => any;
|
|
4430
4525
|
onRangeSort?: (params: SortParams_2) => any;
|
|
4431
|
-
onRangeSorted?: (event:
|
|
4526
|
+
onRangeSorted?: (event: FederatedPointerEvent_2) => any;
|
|
4432
4527
|
onRangeFilter?: (data: {
|
|
4433
4528
|
filterKey: string;
|
|
4434
4529
|
filteredValues: string[];
|
|
4435
4530
|
}) => any;
|
|
4436
|
-
onRangeFiltered?: (data:
|
|
4531
|
+
onRangeFiltered?: (data: ViewMetaData_2[]) => any;
|
|
4437
4532
|
onLayoutAfterHeaderLayout?: (layoutResult: LayoutResult_2) => any;
|
|
4438
|
-
onLayoutPagination?: (data:
|
|
4439
|
-
pageSize: number;
|
|
4440
|
-
pageCount: number;
|
|
4441
|
-
total: number;
|
|
4442
|
-
current: number;
|
|
4443
|
-
}) => any;
|
|
4533
|
+
onLayoutPagination?: (data: LayoutPaginationParams) => any;
|
|
4444
4534
|
onLayoutCellScroll?: (position: CellScrollPosition_2) => any;
|
|
4535
|
+
onLayoutCellMounted?: (cell: S2CellType_2<ViewMeta_2>) => any;
|
|
4445
4536
|
onLayoutCollapseRows?: (data: CollapsedRowsType_2) => any;
|
|
4446
4537
|
onLayoutAfterCollapseRows?: (data: CollapsedRowsType_2) => any;
|
|
4447
4538
|
onCollapseRowsAll?: (hierarchyCollapse: boolean) => any;
|
|
@@ -4452,6 +4543,7 @@ hiddenColumnsDetail: HiddenColumnsInfo_2[];
|
|
|
4452
4543
|
}) => any;
|
|
4453
4544
|
onBeforeRender?: () => any;
|
|
4454
4545
|
onAfterRender?: () => any;
|
|
4546
|
+
onMounted?: (spreadsheet: SpreadSheet_2) => any;
|
|
4455
4547
|
onDestroy?: () => any;
|
|
4456
4548
|
onLayoutResize?: (params: ResizeParams_2) => any;
|
|
4457
4549
|
onLayoutResizeSeriesWidth?: (params: ResizeParams_2) => any;
|
|
@@ -4475,14 +4567,14 @@ resizeInfo?: ResizeInfo_2;
|
|
|
4475
4567
|
onKeyBoardDown?: (event: KeyboardEvent) => any;
|
|
4476
4568
|
onKeyBoardUp?: (event: KeyboardEvent) => any;
|
|
4477
4569
|
onCopied?: (copyData: string) => any;
|
|
4478
|
-
onActionIconHover?: (event:
|
|
4479
|
-
onActionIconHoverOff?: (event:
|
|
4480
|
-
onActionIconClick?: (event:
|
|
4481
|
-
onContextMenu?: (event:
|
|
4482
|
-
onClick?: (event:
|
|
4483
|
-
onHover?: (event:
|
|
4484
|
-
onDoubleClick?: (event:
|
|
4485
|
-
onMouseHover?: (event:
|
|
4570
|
+
onActionIconHover?: (event: FederatedPointerEvent_2) => any;
|
|
4571
|
+
onActionIconHoverOff?: (event: FederatedPointerEvent_2) => any;
|
|
4572
|
+
onActionIconClick?: (event: FederatedPointerEvent_2) => any;
|
|
4573
|
+
onContextMenu?: (event: FederatedPointerEvent_2) => any;
|
|
4574
|
+
onClick?: (event: FederatedPointerEvent_2) => any;
|
|
4575
|
+
onHover?: (event: FederatedPointerEvent_2) => any;
|
|
4576
|
+
onDoubleClick?: (event: FederatedPointerEvent_2) => any;
|
|
4577
|
+
onMouseHover?: (event: FederatedPointerEvent_2) => any;
|
|
4486
4578
|
onMouseUp?: (event: MouseEvent) => any;
|
|
4487
4579
|
onMouseDown?: (event: MouseEvent) => any;
|
|
4488
4580
|
onMouseMove?: (event: MouseEvent) => any;
|
|
@@ -4490,18 +4582,18 @@ onSelected?: (cells: S2CellType_2<ViewMeta_2>[]) => any;
|
|
|
4490
4582
|
onReset?: (event: KeyboardEvent) => any;
|
|
4491
4583
|
onLinkFieldJump?: (data: {
|
|
4492
4584
|
key: string;
|
|
4493
|
-
record:
|
|
4585
|
+
record: RawData_2;
|
|
4494
4586
|
}) => any;
|
|
4495
4587
|
onScroll?: (position: CellScrollPosition_2) => any;
|
|
4496
|
-
onRowCellBrushSelection?: (event:
|
|
4497
|
-
onColCellBrushSelection?: (event:
|
|
4588
|
+
onRowCellBrushSelection?: (event: FederatedPointerEvent_2) => any;
|
|
4589
|
+
onColCellBrushSelection?: (event: FederatedPointerEvent_2) => any;
|
|
4498
4590
|
onSpreadsheet?: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2>) => any;
|
|
4499
4591
|
onGetSpreadSheet?: (spreadsheet: SpreadSheet_2) => any;
|
|
4500
4592
|
}, {}>;
|
|
4501
4593
|
|
|
4502
4594
|
declare interface TargetCellInfo_2 {
|
|
4503
4595
|
target: S2CellType_2;
|
|
4504
|
-
event:
|
|
4596
|
+
event: FederatedPointerEvent;
|
|
4505
4597
|
viewMeta: Node_2_2;
|
|
4506
4598
|
}
|
|
4507
4599
|
|
|
@@ -4538,24 +4630,24 @@ declare interface Tooltip<T = TooltipContentType_2> extends BaseTooltipConfig<T>
|
|
|
4538
4630
|
data?: BaseTooltipConfig<T>;
|
|
4539
4631
|
}
|
|
4540
4632
|
|
|
4541
|
-
declare type TooltipAutoAdjustBoundary = 'body' | 'container';
|
|
4633
|
+
declare type TooltipAutoAdjustBoundary = 'body' | 'container' | null | undefined;
|
|
4542
4634
|
|
|
4543
|
-
declare type TooltipContentType_2 = Element | string;
|
|
4635
|
+
declare type TooltipContentType_2 = Element | string | undefined | null;
|
|
4544
4636
|
|
|
4545
4637
|
declare type TooltipData = {
|
|
4546
4638
|
summaries?: TooltipSummaryOptions[];
|
|
4547
|
-
details?: TooltipDetailListItem[];
|
|
4548
|
-
headInfo?: TooltipHeadInfo;
|
|
4549
|
-
name?: string;
|
|
4639
|
+
details?: TooltipDetailListItem[] | null | undefined;
|
|
4640
|
+
headInfo?: TooltipHeadInfo | null | undefined;
|
|
4641
|
+
name?: string | null | undefined;
|
|
4550
4642
|
tips?: string;
|
|
4551
4643
|
infos?: string;
|
|
4552
4644
|
interpretation?: TooltipInterpretationOptions;
|
|
4553
|
-
colIndex?: number;
|
|
4554
|
-
rowIndex?: number;
|
|
4645
|
+
colIndex?: number | null;
|
|
4646
|
+
rowIndex?: number | null;
|
|
4555
4647
|
description?: string;
|
|
4556
4648
|
};
|
|
4557
4649
|
|
|
4558
|
-
declare type TooltipDataItem =
|
|
4650
|
+
declare type TooltipDataItem = Data;
|
|
4559
4651
|
|
|
4560
4652
|
declare type TooltipDetailListItem = {
|
|
4561
4653
|
name: string;
|
|
@@ -4582,6 +4674,11 @@ declare interface TooltipOperation extends TooltipOperatorOptions {
|
|
|
4582
4674
|
tableSort?: boolean;
|
|
4583
4675
|
}
|
|
4584
4676
|
|
|
4677
|
+
declare type TooltipOperatorClickHandler = (params: {
|
|
4678
|
+
key: SortMethod;
|
|
4679
|
+
[key: string]: unknown;
|
|
4680
|
+
}) => void;
|
|
4681
|
+
|
|
4585
4682
|
declare interface TooltipOperatorMenu {
|
|
4586
4683
|
key: string;
|
|
4587
4684
|
icon?: Element | string;
|
|
@@ -4592,7 +4689,7 @@ declare interface TooltipOperatorMenu {
|
|
|
4592
4689
|
}
|
|
4593
4690
|
|
|
4594
4691
|
declare interface TooltipOperatorOptions {
|
|
4595
|
-
onClick?:
|
|
4692
|
+
onClick?: TooltipOperatorClickHandler;
|
|
4596
4693
|
menus?: TooltipOperatorMenu[];
|
|
4597
4694
|
defaultSelectedKeys?: string[];
|
|
4598
4695
|
}
|
|
@@ -4615,7 +4712,7 @@ declare interface TooltipPosition {
|
|
|
4615
4712
|
|
|
4616
4713
|
declare interface TooltipPositionInfo {
|
|
4617
4714
|
position: TooltipPosition;
|
|
4618
|
-
event:
|
|
4715
|
+
event: FederatedPointerEvent | MouseEvent;
|
|
4619
4716
|
}
|
|
4620
4717
|
|
|
4621
4718
|
declare type TooltipShowOptions<T = TooltipContentType_2> = {
|
|
@@ -4624,13 +4721,13 @@ declare type TooltipShowOptions<T = TooltipContentType_2> = {
|
|
|
4624
4721
|
cellInfos?: TooltipDataItem[];
|
|
4625
4722
|
options?: TooltipOptions;
|
|
4626
4723
|
content?: ((cell: S2CellType_2, defaultTooltipShowOptions: TooltipShowOptions<T>) => T) | T;
|
|
4627
|
-
event?:
|
|
4724
|
+
event?: FederatedPointerEvent | MouseEvent;
|
|
4628
4725
|
};
|
|
4629
4726
|
|
|
4630
4727
|
declare interface TooltipSummaryOptions {
|
|
4631
|
-
name: string;
|
|
4632
|
-
value: number | string;
|
|
4633
|
-
selectedData:
|
|
4728
|
+
name: string | null;
|
|
4729
|
+
value: number | string | undefined | null;
|
|
4730
|
+
selectedData: Data[] | CellData[];
|
|
4634
4731
|
}
|
|
4635
4732
|
|
|
4636
4733
|
declare interface Total {
|
|
@@ -4663,8 +4760,21 @@ declare interface Totals {
|
|
|
4663
4760
|
col?: Partial<Total>;
|
|
4664
4761
|
}
|
|
4665
4762
|
|
|
4763
|
+
declare type TotalSelection = {
|
|
4764
|
+
grandTotalOnly?: boolean;
|
|
4765
|
+
subTotalOnly?: boolean;
|
|
4766
|
+
totalDimensions?: boolean | string[];
|
|
4767
|
+
};
|
|
4768
|
+
|
|
4769
|
+
declare type TotalSelectionsOfMultiData = {
|
|
4770
|
+
row?: TotalSelection;
|
|
4771
|
+
column?: TotalSelection;
|
|
4772
|
+
};
|
|
4773
|
+
|
|
4666
4774
|
export declare const useExpose: (expose: (exposed?: Record<string, any>) => void) => ShallowRef<SheetExpose>;
|
|
4667
4775
|
|
|
4776
|
+
declare const VALUE_FIELD = "$$value$$";
|
|
4777
|
+
|
|
4668
4778
|
declare interface ValueRange {
|
|
4669
4779
|
minValue?: number;
|
|
4670
4780
|
maxValue?: number;
|
|
@@ -4689,24 +4799,47 @@ declare interface ViewMeta_2 {
|
|
|
4689
4799
|
y: number;
|
|
4690
4800
|
width: number;
|
|
4691
4801
|
height: number;
|
|
4692
|
-
data:
|
|
4802
|
+
data: ViewMetaData_2;
|
|
4693
4803
|
rowIndex: number;
|
|
4694
4804
|
colIndex: number;
|
|
4695
4805
|
valueField: string;
|
|
4696
4806
|
fieldValue: DataItem;
|
|
4697
4807
|
isTotals?: boolean;
|
|
4698
|
-
rowQuery?:
|
|
4699
|
-
colQuery?:
|
|
4808
|
+
rowQuery?: Query;
|
|
4809
|
+
colQuery?: Query;
|
|
4700
4810
|
rowId?: string;
|
|
4701
4811
|
colId?: string;
|
|
4702
4812
|
field?: string;
|
|
4703
4813
|
isFrozenCorner?: boolean;
|
|
4704
4814
|
label?: string;
|
|
4705
4815
|
value?: string | number;
|
|
4706
|
-
query?:
|
|
4816
|
+
query?: Query;
|
|
4707
4817
|
[key: string]: unknown;
|
|
4708
4818
|
}
|
|
4709
4819
|
|
|
4820
|
+
declare type ViewMetaData_2 = Data | CellData;
|
|
4821
|
+
|
|
4710
4822
|
declare type ViewMetaIndexType = keyof Pick<ViewMeta_2, 'colIndex' | 'rowIndex'>;
|
|
4711
4823
|
|
|
4824
|
+
/**
|
|
4825
|
+
* 移动端滚动事件
|
|
4826
|
+
* @see https://github.com/antvis/g-gesture/blob/master/src/event/wheel.ts
|
|
4827
|
+
*/
|
|
4828
|
+
declare class Wheel extends EE {
|
|
4829
|
+
private canvas;
|
|
4830
|
+
private panning;
|
|
4831
|
+
private preX;
|
|
4832
|
+
private speedX;
|
|
4833
|
+
private preY;
|
|
4834
|
+
private speedY;
|
|
4835
|
+
private lastMoveMS;
|
|
4836
|
+
private raf;
|
|
4837
|
+
constructor(canvas: Canvas);
|
|
4838
|
+
private init;
|
|
4839
|
+
private bindPointerDown;
|
|
4840
|
+
private bindPointerMove;
|
|
4841
|
+
private bindPointerUp;
|
|
4842
|
+
destroy(): void;
|
|
4843
|
+
}
|
|
4844
|
+
|
|
4712
4845
|
export { }
|