@antv/s2-vue 1.4.0-alpha.1 → 2.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +864 -674
- package/esm/index.js +463 -211
- package/esm/index.js.map +1 -1
- package/esm/style.css +80 -16
- package/lib/index.js +455 -210
- package/lib/index.js.map +1 -1
- package/lib/style.css +80 -16
- package/package.json +10 -9
package/esm/index.d.ts
CHANGED
|
@@ -1,49 +1,46 @@
|
|
|
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';
|
|
38
|
+
import { S2CellType } from '@antv/s2';
|
|
39
39
|
import { S2DataConfig } from '@antv/s2';
|
|
40
40
|
import { S2MountContainer } from '@antv/s2';
|
|
41
41
|
import { S2Options } from '@antv/s2';
|
|
42
42
|
import { S2RenderOptions } from '@antv/s2';
|
|
43
43
|
import { ShallowRef } from 'vue';
|
|
44
|
-
import { Shape } from '@antv/g-canvas';
|
|
45
|
-
import { ShapeAttrs } from '@antv/g-canvas';
|
|
46
|
-
import type { SimpleBBox } from '@antv/g-canvas';
|
|
47
44
|
import { SortParams } from '@antv/s2';
|
|
48
45
|
import { SpreadSheet } from '@antv/s2';
|
|
49
46
|
import { TargetCellInfo } from '@antv/s2';
|
|
@@ -51,8 +48,8 @@ import { ThemeCfg } from '@antv/s2';
|
|
|
51
48
|
import { Timer } from 'd3-timer';
|
|
52
49
|
import { TooltipContentType } from '@antv/s2';
|
|
53
50
|
import { ViewMeta } from '@antv/s2';
|
|
51
|
+
import { ViewMetaData } from '@antv/s2';
|
|
54
52
|
import { VNodeProps } from 'vue';
|
|
55
|
-
import { Wheel } from '@antv/g-gesture';
|
|
56
53
|
|
|
57
54
|
declare type Adaptive = boolean | {
|
|
58
55
|
width?: boolean;
|
|
@@ -102,16 +99,19 @@ declare abstract class BaseCell<T extends SimpleBBox> extends Group {
|
|
|
102
99
|
protected meta: T;
|
|
103
100
|
protected spreadsheet: SpreadSheet_2;
|
|
104
101
|
protected theme: S2Theme;
|
|
105
|
-
protected backgroundShape:
|
|
106
|
-
protected textShape:
|
|
107
|
-
protected linkFieldShape:
|
|
102
|
+
protected backgroundShape: DisplayObject;
|
|
103
|
+
protected textShape: DisplayObject;
|
|
104
|
+
protected linkFieldShape: DisplayObject;
|
|
108
105
|
protected actualText: string;
|
|
109
106
|
protected actualTextWidth: number;
|
|
110
|
-
protected
|
|
107
|
+
protected conditions: Conditions;
|
|
108
|
+
protected conditionIntervalShape: DisplayObject | undefined;
|
|
109
|
+
protected conditionIconShape: GuiIcon;
|
|
110
|
+
protected stateShapes: Map<StateShapeLayer, DisplayObject<any, any>>;
|
|
111
111
|
constructor(meta: T, spreadsheet: SpreadSheet_2, ...restOptions: unknown[]);
|
|
112
112
|
getMeta(): T;
|
|
113
113
|
setMeta(viewMeta: T): void;
|
|
114
|
-
getIconStyle(): IconTheme;
|
|
114
|
+
getIconStyle(): IconTheme | undefined;
|
|
115
115
|
getTextAndIconPosition(iconCount?: number): {
|
|
116
116
|
text: {
|
|
117
117
|
x: number;
|
|
@@ -141,33 +141,39 @@ declare abstract class BaseCell<T extends SimpleBBox> extends Group {
|
|
|
141
141
|
* Update cell's selected state
|
|
142
142
|
*/
|
|
143
143
|
abstract update(): void;
|
|
144
|
+
protected abstract getBorderPositions(): CellBorderPosition[];
|
|
144
145
|
protected abstract getTextStyle(): TextTheme;
|
|
145
146
|
protected abstract getFormattedFieldValue(): FormatResult;
|
|
146
147
|
protected abstract getMaxTextWidth(): number;
|
|
147
|
-
protected abstract getTextPosition():
|
|
148
|
+
protected abstract getTextPosition(): PointLike;
|
|
149
|
+
protected abstract findFieldCondition(conditions: Condition[] | undefined): Condition | undefined;
|
|
150
|
+
protected abstract mappingValue(condition: Condition): MappingResult | undefined;
|
|
148
151
|
getStyle<K extends keyof S2Theme = keyof CellThemes>(name?: K): DefaultCellTheme | S2Theme[K];
|
|
149
152
|
protected getResizeAreaStyle(): ResizeArea;
|
|
150
|
-
protected shouldDrawResizeAreaByType(type: keyof ResizeInteractionOptions, cell:
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
width: number;
|
|
161
|
-
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;
|
|
162
163
|
};
|
|
164
|
+
protected drawBackgroundShape(): void;
|
|
165
|
+
/**
|
|
166
|
+
* 交互使用的背景色
|
|
167
|
+
*/
|
|
168
|
+
protected drawInteractiveBgShape(): void;
|
|
163
169
|
protected getIconPosition(iconCount?: number): {
|
|
164
170
|
x: number;
|
|
165
171
|
y: number;
|
|
166
172
|
};
|
|
167
173
|
protected drawTextShape(): void;
|
|
168
174
|
protected drawLinkFieldShape(showLinkFieldShape: boolean, linkFillColor: string): void;
|
|
169
|
-
updateByState(stateName: InteractionStateName, cell:
|
|
170
|
-
protected getInteractiveBorderShapeStyle<T>(
|
|
175
|
+
updateByState(stateName: InteractionStateName, cell: S2CellType_2): void;
|
|
176
|
+
protected getInteractiveBorderShapeStyle<T>(borderSize: T & number): {
|
|
171
177
|
x: number;
|
|
172
178
|
y: number;
|
|
173
179
|
width: number;
|
|
@@ -175,18 +181,28 @@ declare abstract class BaseCell<T extends SimpleBBox> extends Group {
|
|
|
175
181
|
};
|
|
176
182
|
hideInteractionShape(): void;
|
|
177
183
|
clearUnselectedState(): void;
|
|
178
|
-
getTextShape():
|
|
184
|
+
getTextShape(): DisplayObject<any, any>;
|
|
185
|
+
get cellConditions(): Conditions;
|
|
186
|
+
drawConditionIconShapes(): void;
|
|
187
|
+
getTextConditionFill(textStyle: TextTheme): string | undefined;
|
|
179
188
|
}
|
|
180
189
|
|
|
181
190
|
declare interface BaseChartData {
|
|
182
191
|
type: MiniChartTypes;
|
|
183
|
-
data:
|
|
192
|
+
data: RawData_2[];
|
|
184
193
|
encode?: {
|
|
185
|
-
x: keyof
|
|
186
|
-
y: keyof
|
|
194
|
+
x: keyof RawData_2;
|
|
195
|
+
y: keyof RawData_2;
|
|
187
196
|
};
|
|
188
197
|
}
|
|
189
198
|
|
|
199
|
+
declare interface BaseCornerOptions {
|
|
200
|
+
seriesNumberWidth: number;
|
|
201
|
+
facetCfg: SpreadSheetFacetCfg;
|
|
202
|
+
layoutResult: LayoutResult_2;
|
|
203
|
+
spreadsheet: SpreadSheet_2;
|
|
204
|
+
}
|
|
205
|
+
|
|
190
206
|
declare interface BaseDataSet {
|
|
191
207
|
name: string;
|
|
192
208
|
value: string;
|
|
@@ -197,35 +213,45 @@ declare interface BaseDataSet {
|
|
|
197
213
|
declare abstract class BaseDataSet_2 {
|
|
198
214
|
fields: Fields;
|
|
199
215
|
meta: Meta[];
|
|
200
|
-
originData:
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
filterParams: FilterParam[];
|
|
216
|
+
originData: RawData_2[];
|
|
217
|
+
indexesData: RawData_2[][] | RawData_2[];
|
|
218
|
+
sortParams: SortParams_2 | undefined;
|
|
219
|
+
filterParams: FilterParam[] | undefined;
|
|
205
220
|
protected spreadsheet: SpreadSheet_2;
|
|
206
221
|
constructor(spreadsheet: SpreadSheet_2);
|
|
207
|
-
protected displayData:
|
|
222
|
+
protected displayData: RawData_2[];
|
|
223
|
+
private getField;
|
|
208
224
|
/**
|
|
209
|
-
*
|
|
225
|
+
* 获取字段信息
|
|
210
226
|
*/
|
|
211
|
-
getFieldMeta: ((field:
|
|
227
|
+
getFieldMeta: ((field: CustomHeaderField, meta?: Meta[]) => Meta | undefined) & MemoizedFunction;
|
|
212
228
|
/**
|
|
213
|
-
*
|
|
229
|
+
* 获取字段名称
|
|
214
230
|
* @param field
|
|
215
231
|
*/
|
|
216
|
-
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;
|
|
217
243
|
/**
|
|
218
244
|
* 获得字段格式方法
|
|
219
245
|
* @param field
|
|
220
246
|
*/
|
|
221
|
-
getFieldFormatter(field:
|
|
247
|
+
getFieldFormatter(field: CustomHeaderField): Formatter;
|
|
222
248
|
/**
|
|
223
249
|
* 获得字段描述
|
|
224
250
|
* @param field
|
|
225
251
|
*/
|
|
226
|
-
getFieldDescription(field:
|
|
252
|
+
getFieldDescription(field: CustomHeaderField): string | undefined;
|
|
227
253
|
setDataCfg(dataCfg: S2DataConfig_2): void;
|
|
228
|
-
getDisplayDataSet():
|
|
254
|
+
getDisplayDataSet(): RawData_2[];
|
|
229
255
|
getValueRangeByField(field: string): ValueRange;
|
|
230
256
|
/** ******************NEED IMPLEMENT BY USER CASE************************ */
|
|
231
257
|
/**
|
|
@@ -250,22 +276,21 @@ declare abstract class BaseDataSet_2 {
|
|
|
250
276
|
* @param field current dimensions
|
|
251
277
|
* @param query dimension value query
|
|
252
278
|
*/
|
|
253
|
-
abstract getDimensionValues(field: string, query?:
|
|
279
|
+
abstract getDimensionValues(field: string, query?: Query): string[];
|
|
254
280
|
/**
|
|
255
281
|
* In most cases, this function to get the specific
|
|
256
282
|
* cross data cell data
|
|
257
283
|
* @param params
|
|
258
284
|
*/
|
|
259
|
-
abstract getCellData(params: CellDataParams):
|
|
285
|
+
abstract getCellData(params: CellDataParams): ViewMetaData_2 | undefined;
|
|
260
286
|
/**
|
|
261
287
|
* To get a row or column cells data;
|
|
262
288
|
* if query is empty, return all data
|
|
263
289
|
* @param query
|
|
264
|
-
* @param
|
|
265
|
-
* @param isRow
|
|
290
|
+
* @param totals @TotalSelectionsOfMultiData
|
|
266
291
|
* @param drillDownFields
|
|
267
292
|
*/
|
|
268
|
-
abstract getMultiData(query:
|
|
293
|
+
abstract getMultiData(query: Query, totals?: TotalSelectionsOfMultiData, drillDownFields?: string[]): Data[] | CellData[];
|
|
269
294
|
moreThanOneValue(): boolean;
|
|
270
295
|
}
|
|
271
296
|
|
|
@@ -274,7 +299,7 @@ declare interface BaseDrillDownComponentProps<DataSet = BaseDataSet> {
|
|
|
274
299
|
titleText?: string;
|
|
275
300
|
searchText?: string;
|
|
276
301
|
clearButtonText?: string;
|
|
277
|
-
dataSet
|
|
302
|
+
dataSet?: DataSet[] | undefined;
|
|
278
303
|
drillFields?: string[];
|
|
279
304
|
disabledFields?: string[];
|
|
280
305
|
getDrillFields?: (drillFields: string[]) => void;
|
|
@@ -285,8 +310,8 @@ declare interface BaseDrillDownComponentProps<DataSet = BaseDataSet> {
|
|
|
285
310
|
declare abstract class BaseEvent {
|
|
286
311
|
spreadsheet: SpreadSheet_2;
|
|
287
312
|
constructor(spreadsheet: SpreadSheet_2);
|
|
288
|
-
getCellAppendInfo<T extends Record<string, any> = CellAppendInfo>(eventTarget:
|
|
289
|
-
isLinkFieldText: (eventTarget:
|
|
313
|
+
getCellAppendInfo<T extends Record<string, any> = CellAppendInfo>(eventTarget: FederatedPointerEvent['target']): T;
|
|
314
|
+
isLinkFieldText: (eventTarget: FederatedPointerEvent['target']) => boolean | undefined;
|
|
290
315
|
reset(): void;
|
|
291
316
|
abstract bindEvents(): void;
|
|
292
317
|
}
|
|
@@ -295,9 +320,16 @@ declare abstract class BaseFacet {
|
|
|
295
320
|
spreadsheet: SpreadSheet_2;
|
|
296
321
|
cornerBBox: CornerBBox;
|
|
297
322
|
panelBBox: PanelBBox;
|
|
298
|
-
backgroundGroup:
|
|
299
|
-
panelGroup:
|
|
300
|
-
|
|
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;
|
|
301
333
|
cfg: SpreadSheetFacetCfg;
|
|
302
334
|
layoutResult: LayoutResult_2;
|
|
303
335
|
viewCellWidths: number[];
|
|
@@ -307,21 +339,24 @@ declare abstract class BaseFacet {
|
|
|
307
339
|
hScrollBar: ScrollBar;
|
|
308
340
|
hRowScrollBar: ScrollBar;
|
|
309
341
|
vScrollBar: ScrollBar;
|
|
310
|
-
rowHeader: RowHeader;
|
|
342
|
+
rowHeader: RowHeader | null;
|
|
311
343
|
columnHeader: ColHeader;
|
|
312
344
|
cornerHeader: CornerHeader;
|
|
313
|
-
rowIndexHeader: SeriesNumberHeader;
|
|
345
|
+
rowIndexHeader: SeriesNumberHeader | null;
|
|
314
346
|
centerFrame: Frame;
|
|
315
347
|
gridInfo: GridInfo;
|
|
316
348
|
protected abstract doLayout(): LayoutResult_2;
|
|
317
349
|
abstract getViewCellHeights(layoutResult: LayoutResult_2): ViewCellHeights;
|
|
318
|
-
protected scrollFrameId: ReturnType<typeof requestAnimationFrame
|
|
319
|
-
get scrollBarTheme(): ScrollBarTheme;
|
|
350
|
+
protected scrollFrameId: ReturnType<typeof requestAnimationFrame> | null;
|
|
351
|
+
get scrollBarTheme(): ScrollBarTheme | undefined;
|
|
320
352
|
get scrollBarSize(): number;
|
|
321
|
-
protected preCellIndexes: PanelIndexes;
|
|
353
|
+
protected preCellIndexes: PanelIndexes | null;
|
|
322
354
|
constructor(cfg: SpreadSheetFacetCfg);
|
|
323
|
-
protected
|
|
324
|
-
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;
|
|
325
360
|
hideScrollBar: () => void;
|
|
326
361
|
delayHideScrollBar: DebouncedFunc<() => void>;
|
|
327
362
|
delayHideScrollbarOnMobile: () => void;
|
|
@@ -344,7 +379,7 @@ declare abstract class BaseFacet {
|
|
|
344
379
|
*/
|
|
345
380
|
protected adjustScrollOffset(): void;
|
|
346
381
|
getSeriesNumberWidth(): number;
|
|
347
|
-
|
|
382
|
+
getCanvasSize(): {
|
|
348
383
|
width: number;
|
|
349
384
|
height: number;
|
|
350
385
|
};
|
|
@@ -353,10 +388,9 @@ declare abstract class BaseFacet {
|
|
|
353
388
|
getPaginationScrollY(): number;
|
|
354
389
|
destroy(): void;
|
|
355
390
|
setScrollOffset: (scrollOffset: ScrollOffset) => void;
|
|
356
|
-
getScrollOffset: () => ScrollOffset
|
|
391
|
+
getScrollOffset: () => Required<ScrollOffset>;
|
|
357
392
|
emitPaginationEvent: () => void;
|
|
358
393
|
private unbindEvents;
|
|
359
|
-
clipPanelGroup: () => void;
|
|
360
394
|
calculateCellWidthHeight: () => void;
|
|
361
395
|
/**
|
|
362
396
|
* The purpose of this rewrite is to take into account that when rowHeader supports scrollbars
|
|
@@ -375,14 +409,14 @@ declare abstract class BaseFacet {
|
|
|
375
409
|
end: number;
|
|
376
410
|
};
|
|
377
411
|
getRealHeight: () => number;
|
|
378
|
-
clearAllGroup
|
|
412
|
+
clearAllGroup(): void;
|
|
379
413
|
scrollWithAnimation: (offsetConfig?: OffsetConfig, duration?: number, cb?: () => void) => void;
|
|
380
414
|
scrollImmediately: (offsetConfig?: OffsetConfig) => void;
|
|
381
415
|
/**
|
|
382
416
|
*
|
|
383
|
-
* @param
|
|
417
|
+
* @param skipScrollEvent 如为true则不触发S2Event.GLOBAL_SCROLL
|
|
384
418
|
*/
|
|
385
|
-
startScroll: (
|
|
419
|
+
startScroll: (skipScrollEvent?: boolean) => void;
|
|
386
420
|
getRendererHeight: () => number;
|
|
387
421
|
private getAdjustedScrollOffset;
|
|
388
422
|
renderRowScrollBar: (rowScrollX: number) => void;
|
|
@@ -422,7 +456,6 @@ declare abstract class BaseFacet {
|
|
|
422
456
|
private stopScrollChainingIfNeeded;
|
|
423
457
|
private stopScrollChaining;
|
|
424
458
|
onWheel: (event: WheelEvent) => void;
|
|
425
|
-
protected clip(scrollX: number, scrollY: number): void;
|
|
426
459
|
/**
|
|
427
460
|
* Translate panelGroup, rowHeader, cornerHeader, columnHeader ect
|
|
428
461
|
* according to new scroll offset
|
|
@@ -432,7 +465,7 @@ declare abstract class BaseFacet {
|
|
|
432
465
|
* @protected
|
|
433
466
|
*/
|
|
434
467
|
protected translateRelatedGroups(scrollX: number, scrollY: number, hRowScroll: number): void;
|
|
435
|
-
addCell: (cell:
|
|
468
|
+
addCell: (cell: S2CellType_2<ViewMeta_2>) => void;
|
|
436
469
|
realCellRender: (scrollX: number, scrollY: number) => void;
|
|
437
470
|
protected init(): void;
|
|
438
471
|
protected renderBackground(): void;
|
|
@@ -453,28 +486,35 @@ declare abstract class BaseFacet {
|
|
|
453
486
|
* 5. series number header
|
|
454
487
|
*/
|
|
455
488
|
protected renderHeaders(): void;
|
|
456
|
-
protected getRowHeader(): RowHeader;
|
|
489
|
+
protected getRowHeader(): RowHeader | null;
|
|
457
490
|
protected getColHeader(): ColHeader;
|
|
458
491
|
protected getCornerHeader(): CornerHeader;
|
|
459
|
-
protected getSeriesNumberHeader(): SeriesNumberHeader;
|
|
492
|
+
protected getSeriesNumberHeader(): SeriesNumberHeader | null;
|
|
460
493
|
protected getCenterFrame(): Frame;
|
|
461
494
|
protected getGridInfo: () => {
|
|
462
495
|
cols: number[];
|
|
463
|
-
rows:
|
|
496
|
+
rows: number[];
|
|
464
497
|
};
|
|
465
498
|
updatePanelScrollGroup(): void;
|
|
466
499
|
/**
|
|
467
500
|
*
|
|
468
|
-
* @param
|
|
501
|
+
* @param skipScrollEvent: 如true则不触发GLOBAL_SCROLL事件
|
|
469
502
|
* During scroll behavior, first call to this method fires immediately and then on interval.
|
|
470
503
|
* @protected
|
|
471
504
|
*/
|
|
472
|
-
protected dynamicRenderCell(
|
|
505
|
+
protected dynamicRenderCell(skipScrollEvent?: boolean): void;
|
|
473
506
|
private emitScrollEvent;
|
|
474
507
|
protected onAfterScroll: DebouncedFunc<() => void>;
|
|
475
508
|
protected saveInitColumnLeafNodes(columnNodes?: Node_2_2[]): void;
|
|
476
509
|
}
|
|
477
510
|
|
|
511
|
+
declare interface BaseFields {
|
|
512
|
+
rows?: CustomHeaderFields;
|
|
513
|
+
columns?: CustomHeaderFields;
|
|
514
|
+
values?: string[];
|
|
515
|
+
valueInCols?: boolean;
|
|
516
|
+
}
|
|
517
|
+
|
|
478
518
|
/**
|
|
479
519
|
* New Base Header for all headers(cornerHeader, rowHeader, colHeader)
|
|
480
520
|
* NOTE: Do not use this.cfg(which lays in group) to get header config,
|
|
@@ -483,6 +523,7 @@ declare abstract class BaseFacet {
|
|
|
483
523
|
declare abstract class BaseHeader<T extends BaseHeaderConfig> extends Group {
|
|
484
524
|
protected headerConfig: T;
|
|
485
525
|
protected constructor(cfg: T);
|
|
526
|
+
getHeaderConfig(): T;
|
|
486
527
|
/**
|
|
487
528
|
* 清空热区,为重绘做准备,防止热区重复渲染
|
|
488
529
|
* @param type 当前重绘的header类型
|
|
@@ -502,18 +543,19 @@ declare abstract class BaseHeader<T extends BaseHeaderConfig> extends Group {
|
|
|
502
543
|
* @param type
|
|
503
544
|
*/
|
|
504
545
|
onRowScrollX(rowScrollX: number, type: string): void;
|
|
505
|
-
protected abstract layout():
|
|
506
|
-
protected abstract offset():
|
|
507
|
-
protected abstract clip():
|
|
546
|
+
protected abstract layout(): void;
|
|
547
|
+
protected abstract offset(): void;
|
|
548
|
+
protected abstract clip(): void;
|
|
508
549
|
clear(): void;
|
|
509
550
|
/**
|
|
510
551
|
* Check whether header cell in viewPort
|
|
511
|
-
* @param gridPos
|
|
512
|
-
* @param gridSize
|
|
513
|
-
* @param viewportPos
|
|
514
|
-
* @param viewportSize
|
|
515
552
|
*/
|
|
516
|
-
protected isHeaderCellInViewport: (
|
|
553
|
+
protected isHeaderCellInViewport: ({ cellPosition, cellSize, viewportPosition, viewportSize, }: {
|
|
554
|
+
cellPosition: number;
|
|
555
|
+
cellSize: number;
|
|
556
|
+
viewportPosition: number;
|
|
557
|
+
viewportSize: number;
|
|
558
|
+
}) => boolean;
|
|
517
559
|
}
|
|
518
560
|
|
|
519
561
|
/**
|
|
@@ -528,7 +570,7 @@ declare interface BaseHeaderConfig {
|
|
|
528
570
|
originalHeight?: number;
|
|
529
571
|
viewportWidth: number;
|
|
530
572
|
viewportHeight: number;
|
|
531
|
-
position:
|
|
573
|
+
position: PointLike;
|
|
532
574
|
data: Node_2_2[];
|
|
533
575
|
spreadsheet: SpreadSheet_2;
|
|
534
576
|
sortParam?: SortParam;
|
|
@@ -553,7 +595,7 @@ declare interface BaseNodeConfig {
|
|
|
553
595
|
field?: string;
|
|
554
596
|
spreadsheet?: SpreadSheet_2;
|
|
555
597
|
query?: Record<string, any>;
|
|
556
|
-
belongsCell?:
|
|
598
|
+
belongsCell?: S2CellType_2;
|
|
557
599
|
isTotalMeasure?: boolean;
|
|
558
600
|
inCollapseNode?: boolean;
|
|
559
601
|
isLeaf?: boolean;
|
|
@@ -584,15 +626,16 @@ loading: BooleanConstructor;
|
|
|
584
626
|
partDrillDown: ObjectConstructor;
|
|
585
627
|
header: ObjectConstructor;
|
|
586
628
|
options: {
|
|
587
|
-
type: PropType<
|
|
588
|
-
default:
|
|
629
|
+
type: PropType<S2Options<TooltipContentType, Pagination>>;
|
|
630
|
+
default: S2Options<TooltipContentType, Pagination>;
|
|
589
631
|
};
|
|
590
632
|
adaptive: {
|
|
591
633
|
type: PropType<Adaptive>;
|
|
592
634
|
default: Adaptive;
|
|
593
635
|
};
|
|
594
|
-
onSpreadsheet: PropType<(container: S2MountContainer, dataCfg: S2DataConfig, options:
|
|
636
|
+
onSpreadsheet: PropType<(container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination>) => SpreadSheet>;
|
|
595
637
|
onGetSpreadSheet: PropType<(spreadsheet: SpreadSheet) => void>;
|
|
638
|
+
onMounted: PropType<(spreadsheet: SpreadSheet) => void>;
|
|
596
639
|
}, {
|
|
597
640
|
S2_PREFIX_CLS: string;
|
|
598
641
|
wrapperRef: Ref<HTMLDivElement>;
|
|
@@ -642,7 +685,7 @@ dataCellMouseUp: (data: TargetCellInfo) => void;
|
|
|
642
685
|
dataCellMouseMove: (data: TargetCellInfo) => void;
|
|
643
686
|
dataCellTrendIconClick: (meta: ViewMeta) => void;
|
|
644
687
|
dataCellBrushSelection: (brushRangeDataCells: DataCell[]) => void;
|
|
645
|
-
dataCellSelectMove: (metas:
|
|
688
|
+
dataCellSelectMove: (metas: ViewMetaData[]) => void;
|
|
646
689
|
cornerCellHover: (data: TargetCellInfo) => void;
|
|
647
690
|
cornerCellClick: (data: TargetCellInfo) => void;
|
|
648
691
|
cornerCellDoubleClick: (data: TargetCellInfo) => void;
|
|
@@ -658,20 +701,16 @@ mergedCellsMouseDown: (data: TargetCellInfo) => void;
|
|
|
658
701
|
mergedCellsMouseUp: (data: TargetCellInfo) => void;
|
|
659
702
|
mergedCellsMouseMove: (data: TargetCellInfo) => void;
|
|
660
703
|
rangeSort: (params: SortParams) => void;
|
|
661
|
-
rangeSorted: (event:
|
|
704
|
+
rangeSorted: (event: GEvent) => void;
|
|
662
705
|
rangeFilter: (data: {
|
|
663
706
|
filterKey: string;
|
|
664
707
|
filteredValues: string[];
|
|
665
708
|
}) => void;
|
|
666
|
-
rangeFiltered: (data:
|
|
709
|
+
rangeFiltered: (data: ViewMetaData[]) => void;
|
|
667
710
|
layoutAfterHeaderLayout: (layoutResult: LayoutResult) => void;
|
|
668
|
-
layoutPagination: (data:
|
|
669
|
-
pageSize: number;
|
|
670
|
-
pageCount: number;
|
|
671
|
-
total: number;
|
|
672
|
-
current: number;
|
|
673
|
-
}) => void;
|
|
711
|
+
layoutPagination: (data: LayoutPaginationParams) => void;
|
|
674
712
|
layoutCellScroll: (position: CellScrollPosition) => void;
|
|
713
|
+
layoutCellMounted: (cell: S2CellType<ViewMeta>) => void;
|
|
675
714
|
layoutCollapseRows: (data: CollapsedRowsType) => void;
|
|
676
715
|
layoutAfterCollapseRows: (data: CollapsedRowsType) => void;
|
|
677
716
|
collapseRowsAll: (hierarchyCollapse: boolean) => void;
|
|
@@ -682,6 +721,7 @@ hiddenColumnsDetail: HiddenColumnsInfo[];
|
|
|
682
721
|
}) => void;
|
|
683
722
|
beforeRender: () => void;
|
|
684
723
|
afterRender: () => void;
|
|
724
|
+
mounted: (spreadsheet: SpreadSheet) => void;
|
|
685
725
|
destroy: () => void;
|
|
686
726
|
layoutResize: (params: ResizeParams) => void;
|
|
687
727
|
layoutResizeSeriesWidth: (params: ResizeParams) => void;
|
|
@@ -705,26 +745,26 @@ resizeInfo?: ResizeInfo;
|
|
|
705
745
|
keyBoardDown: (event: KeyboardEvent) => void;
|
|
706
746
|
keyBoardUp: (event: KeyboardEvent) => void;
|
|
707
747
|
copied: (copyData: string) => void;
|
|
708
|
-
actionIconHover: (event:
|
|
709
|
-
actionIconHoverOff: (event:
|
|
710
|
-
actionIconClick: (event:
|
|
711
|
-
contextMenu: (event:
|
|
712
|
-
click: (event:
|
|
713
|
-
hover: (event:
|
|
714
|
-
doubleClick: (event:
|
|
715
|
-
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;
|
|
716
756
|
mouseUp: (event: MouseEvent) => void;
|
|
717
757
|
mouseDown: (event: MouseEvent) => void;
|
|
718
758
|
mouseMove: (event: MouseEvent) => void;
|
|
719
|
-
selected: (cells:
|
|
759
|
+
selected: (cells: S2CellType<ViewMeta>[]) => void;
|
|
720
760
|
reset: (event: KeyboardEvent) => void;
|
|
721
761
|
linkFieldJump: (data: {
|
|
722
762
|
key: string;
|
|
723
|
-
record:
|
|
763
|
+
record: RawData;
|
|
724
764
|
}) => void;
|
|
725
765
|
scroll: (position: CellScrollPosition) => void;
|
|
726
|
-
rowCellBrushSelection: (event:
|
|
727
|
-
colCellBrushSelection: (event:
|
|
766
|
+
rowCellBrushSelection: (event: GEvent) => void;
|
|
767
|
+
colCellBrushSelection: (event: GEvent) => void;
|
|
728
768
|
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
|
|
729
769
|
sheetType: PropType<SheetType>;
|
|
730
770
|
dataCfg: PropType<S2DataConfig>;
|
|
@@ -743,15 +783,16 @@ loading: BooleanConstructor;
|
|
|
743
783
|
partDrillDown: ObjectConstructor;
|
|
744
784
|
header: ObjectConstructor;
|
|
745
785
|
options: {
|
|
746
|
-
type: PropType<
|
|
747
|
-
default:
|
|
786
|
+
type: PropType<S2Options<TooltipContentType, Pagination>>;
|
|
787
|
+
default: S2Options<TooltipContentType, Pagination>;
|
|
748
788
|
};
|
|
749
789
|
adaptive: {
|
|
750
790
|
type: PropType<Adaptive>;
|
|
751
791
|
default: Adaptive;
|
|
752
792
|
};
|
|
753
|
-
onSpreadsheet: PropType<(container: S2MountContainer, dataCfg: S2DataConfig, options:
|
|
793
|
+
onSpreadsheet: PropType<(container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination>) => SpreadSheet>;
|
|
754
794
|
onGetSpreadSheet: PropType<(spreadsheet: SpreadSheet) => void>;
|
|
795
|
+
onMounted: PropType<(spreadsheet: SpreadSheet) => void>;
|
|
755
796
|
}>> & {
|
|
756
797
|
onSheetUpdate?: (params: S2RenderOptions) => any;
|
|
757
798
|
onRowCellHover?: (data: TargetCellInfo) => any;
|
|
@@ -783,7 +824,7 @@ onDataCellMouseUp?: (data: TargetCellInfo) => any;
|
|
|
783
824
|
onDataCellMouseMove?: (data: TargetCellInfo) => any;
|
|
784
825
|
onDataCellTrendIconClick?: (meta: ViewMeta) => any;
|
|
785
826
|
onDataCellBrushSelection?: (brushRangeDataCells: DataCell[]) => any;
|
|
786
|
-
onDataCellSelectMove?: (metas:
|
|
827
|
+
onDataCellSelectMove?: (metas: ViewMetaData[]) => any;
|
|
787
828
|
onCornerCellHover?: (data: TargetCellInfo) => any;
|
|
788
829
|
onCornerCellClick?: (data: TargetCellInfo) => any;
|
|
789
830
|
onCornerCellDoubleClick?: (data: TargetCellInfo) => any;
|
|
@@ -799,20 +840,16 @@ onMergedCellsMouseDown?: (data: TargetCellInfo) => any;
|
|
|
799
840
|
onMergedCellsMouseUp?: (data: TargetCellInfo) => any;
|
|
800
841
|
onMergedCellsMouseMove?: (data: TargetCellInfo) => any;
|
|
801
842
|
onRangeSort?: (params: SortParams) => any;
|
|
802
|
-
onRangeSorted?: (event:
|
|
843
|
+
onRangeSorted?: (event: GEvent) => any;
|
|
803
844
|
onRangeFilter?: (data: {
|
|
804
845
|
filterKey: string;
|
|
805
846
|
filteredValues: string[];
|
|
806
847
|
}) => any;
|
|
807
|
-
onRangeFiltered?: (data:
|
|
848
|
+
onRangeFiltered?: (data: ViewMetaData[]) => any;
|
|
808
849
|
onLayoutAfterHeaderLayout?: (layoutResult: LayoutResult) => any;
|
|
809
|
-
onLayoutPagination?: (data:
|
|
810
|
-
pageSize: number;
|
|
811
|
-
pageCount: number;
|
|
812
|
-
total: number;
|
|
813
|
-
current: number;
|
|
814
|
-
}) => any;
|
|
850
|
+
onLayoutPagination?: (data: LayoutPaginationParams) => any;
|
|
815
851
|
onLayoutCellScroll?: (position: CellScrollPosition) => any;
|
|
852
|
+
onLayoutCellMounted?: (cell: S2CellType<ViewMeta>) => any;
|
|
816
853
|
onLayoutCollapseRows?: (data: CollapsedRowsType) => any;
|
|
817
854
|
onLayoutAfterCollapseRows?: (data: CollapsedRowsType) => any;
|
|
818
855
|
onCollapseRowsAll?: (hierarchyCollapse: boolean) => any;
|
|
@@ -823,6 +860,7 @@ hiddenColumnsDetail: HiddenColumnsInfo[];
|
|
|
823
860
|
}) => any;
|
|
824
861
|
onBeforeRender?: () => any;
|
|
825
862
|
onAfterRender?: () => any;
|
|
863
|
+
onMounted?: (spreadsheet: SpreadSheet) => any;
|
|
826
864
|
onDestroy?: () => any;
|
|
827
865
|
onLayoutResize?: (params: ResizeParams) => any;
|
|
828
866
|
onLayoutResizeSeriesWidth?: (params: ResizeParams) => any;
|
|
@@ -846,30 +884,30 @@ resizeInfo?: ResizeInfo;
|
|
|
846
884
|
onKeyBoardDown?: (event: KeyboardEvent) => any;
|
|
847
885
|
onKeyBoardUp?: (event: KeyboardEvent) => any;
|
|
848
886
|
onCopied?: (copyData: string) => any;
|
|
849
|
-
onActionIconHover?: (event:
|
|
850
|
-
onActionIconHoverOff?: (event:
|
|
851
|
-
onActionIconClick?: (event:
|
|
852
|
-
onContextMenu?: (event:
|
|
853
|
-
onClick?: (event:
|
|
854
|
-
onHover?: (event:
|
|
855
|
-
onDoubleClick?: (event:
|
|
856
|
-
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;
|
|
857
895
|
onMouseUp?: (event: MouseEvent) => any;
|
|
858
896
|
onMouseDown?: (event: MouseEvent) => any;
|
|
859
897
|
onMouseMove?: (event: MouseEvent) => any;
|
|
860
|
-
onSelected?: (cells:
|
|
898
|
+
onSelected?: (cells: S2CellType<ViewMeta>[]) => any;
|
|
861
899
|
onReset?: (event: KeyboardEvent) => any;
|
|
862
900
|
onLinkFieldJump?: (data: {
|
|
863
901
|
key: string;
|
|
864
|
-
record:
|
|
902
|
+
record: RawData;
|
|
865
903
|
}) => any;
|
|
866
904
|
onScroll?: (position: CellScrollPosition) => any;
|
|
867
|
-
onRowCellBrushSelection?: (event:
|
|
868
|
-
onColCellBrushSelection?: (event:
|
|
905
|
+
onRowCellBrushSelection?: (event: GEvent) => any;
|
|
906
|
+
onColCellBrushSelection?: (event: GEvent) => any;
|
|
869
907
|
onSpreadsheet?: (container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination>) => any;
|
|
870
908
|
onGetSpreadSheet?: (spreadsheet: SpreadSheet) => any;
|
|
871
909
|
}, {
|
|
872
|
-
options:
|
|
910
|
+
options: S2Options<TooltipContentType, Pagination>;
|
|
873
911
|
loading: boolean;
|
|
874
912
|
adaptive: boolean | {
|
|
875
913
|
width?: boolean;
|
|
@@ -882,13 +920,14 @@ onChange?: (current: number) => void;
|
|
|
882
920
|
};
|
|
883
921
|
}>;
|
|
884
922
|
|
|
885
|
-
declare interface BaseSheetComponentProps<
|
|
923
|
+
declare interface BaseSheetComponentProps<RenderHandler = unknown, PartialDrillDown = PartDrillDown, Header = unknown, Options = S2Options<TooltipContentType, Pagination>> {
|
|
886
924
|
sheetType?: SheetType;
|
|
887
925
|
spreadsheet?: (container: S2MountContainer, dataCfg: S2DataConfig, options: Options) => SpreadSheet;
|
|
888
926
|
dataCfg: S2DataConfig;
|
|
889
927
|
options?: Options;
|
|
890
928
|
loading?: boolean;
|
|
891
929
|
partDrillDown?: PartialDrillDown;
|
|
930
|
+
renderConfig?: RenderHandler;
|
|
892
931
|
adaptive?: Adaptive;
|
|
893
932
|
showPagination?: boolean | {
|
|
894
933
|
onShowSizeChange?: (pageSize: number) => void;
|
|
@@ -896,6 +935,7 @@ declare interface BaseSheetComponentProps<PartialDrillDown = unknown, Header = u
|
|
|
896
935
|
};
|
|
897
936
|
themeCfg?: ThemeCfg;
|
|
898
937
|
header?: Header;
|
|
938
|
+
/** @deprecated 1.29.0 已废弃, 请使用 onMounted 代替 */
|
|
899
939
|
getSpreadSheet?: (spreadsheet: SpreadSheet) => void;
|
|
900
940
|
/** 底表 render callback */
|
|
901
941
|
onSheetUpdate?: SheetUpdateCallback;
|
|
@@ -928,7 +968,7 @@ declare interface BaseSheetComponentProps<PartialDrillDown = unknown, Header = u
|
|
|
928
968
|
onDataCellMouseMove?: (data: TargetCellInfo) => void;
|
|
929
969
|
onDataCellTrendIconClick?: (meta: ViewMeta) => void;
|
|
930
970
|
onDataCellBrushSelection?: (brushRangeDataCells: DataCell[]) => void;
|
|
931
|
-
onDataCellSelectMove?: (metas:
|
|
971
|
+
onDataCellSelectMove?: (metas: ViewMetaData[]) => void;
|
|
932
972
|
onCornerCellHover?: (data: TargetCellInfo) => void;
|
|
933
973
|
onCornerCellClick?: (data: TargetCellInfo) => void;
|
|
934
974
|
onCornerCellDoubleClick?: (data: TargetCellInfo) => void;
|
|
@@ -949,16 +989,12 @@ declare interface BaseSheetComponentProps<PartialDrillDown = unknown, Header = u
|
|
|
949
989
|
filterKey: string;
|
|
950
990
|
filteredValues: string[];
|
|
951
991
|
}) => void;
|
|
952
|
-
onRangeFiltered?: (data:
|
|
992
|
+
onRangeFiltered?: (data: ViewMetaData[]) => void;
|
|
953
993
|
onLayoutAfterHeaderLayout?: (layoutResult: LayoutResult) => void;
|
|
954
|
-
onLayoutPagination?: (data:
|
|
955
|
-
pageSize: number;
|
|
956
|
-
pageCount: number;
|
|
957
|
-
total: number;
|
|
958
|
-
current: number;
|
|
959
|
-
}) => void;
|
|
994
|
+
onLayoutPagination?: (data: LayoutPaginationParams) => void;
|
|
960
995
|
/** @deprecated 已废弃, 请使用 S2Event.GLOBAL_SCROLL 代替 */
|
|
961
996
|
onLayoutCellScroll?: (position: CellScrollPosition) => void;
|
|
997
|
+
onLayoutCellMounted?: (cell: S2CellType) => void;
|
|
962
998
|
onLayoutCollapseRows?: (data: CollapsedRowsType) => void;
|
|
963
999
|
onLayoutAfterCollapseRows?: (data: CollapsedRowsType) => void;
|
|
964
1000
|
onCollapseRowsAll?: (hierarchyCollapse: boolean) => void;
|
|
@@ -969,6 +1005,7 @@ declare interface BaseSheetComponentProps<PartialDrillDown = unknown, Header = u
|
|
|
969
1005
|
}) => void;
|
|
970
1006
|
onBeforeRender?: () => void;
|
|
971
1007
|
onAfterRender?: () => void;
|
|
1008
|
+
onMounted?: (spreadsheet: SpreadSheet) => void;
|
|
972
1009
|
onDestroy?: () => void;
|
|
973
1010
|
onLayoutResize?: (params: ResizeParams) => void;
|
|
974
1011
|
onLayoutResizeSeriesWidth?: (params: ResizeParams) => void;
|
|
@@ -1003,11 +1040,11 @@ declare interface BaseSheetComponentProps<PartialDrillDown = unknown, Header = u
|
|
|
1003
1040
|
onMouseUp?: (event: MouseEvent) => void;
|
|
1004
1041
|
onMouseDown?: (event: MouseEvent) => void;
|
|
1005
1042
|
onMouseMove?: (event: MouseEvent) => void;
|
|
1006
|
-
onSelected?: (cells:
|
|
1043
|
+
onSelected?: (cells: S2CellType[]) => void;
|
|
1007
1044
|
onReset?: (event: KeyboardEvent) => void;
|
|
1008
1045
|
onLinkFieldJump?: (data: {
|
|
1009
1046
|
key: string;
|
|
1010
|
-
record:
|
|
1047
|
+
record: RawData;
|
|
1011
1048
|
}) => void;
|
|
1012
1049
|
onScroll?: (position: CellScrollPosition) => void;
|
|
1013
1050
|
onRowCellBrushSelection?: (event: GEvent) => void;
|
|
@@ -1020,7 +1057,7 @@ declare interface BaseSheetComponentProps<PartialDrillDown = unknown, Header = u
|
|
|
1020
1057
|
declare class BaseTooltip_2 {
|
|
1021
1058
|
visible: boolean;
|
|
1022
1059
|
spreadsheet: SpreadSheet_2;
|
|
1023
|
-
container: HTMLElement;
|
|
1060
|
+
container: HTMLElement | null;
|
|
1024
1061
|
options: TooltipShowOptions;
|
|
1025
1062
|
position: TooltipPosition;
|
|
1026
1063
|
constructor(spreadsheet: SpreadSheet_2);
|
|
@@ -1046,6 +1083,17 @@ declare interface BaseTooltipConfig<T = TooltipContentType_2> {
|
|
|
1046
1083
|
style?: CSS_2.Properties;
|
|
1047
1084
|
}
|
|
1048
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
|
+
|
|
1049
1097
|
declare interface BrushSelection {
|
|
1050
1098
|
data?: boolean;
|
|
1051
1099
|
row?: boolean;
|
|
@@ -1061,6 +1109,7 @@ declare interface BulletTheme {
|
|
|
1061
1109
|
comparativeMeasure: {
|
|
1062
1110
|
width: number;
|
|
1063
1111
|
height: number;
|
|
1112
|
+
fill?: string;
|
|
1064
1113
|
color?: string;
|
|
1065
1114
|
opacity?: number;
|
|
1066
1115
|
};
|
|
@@ -1077,10 +1126,10 @@ declare interface BulletValue {
|
|
|
1077
1126
|
|
|
1078
1127
|
declare interface CalcTotals {
|
|
1079
1128
|
aggregation?: Aggregation;
|
|
1080
|
-
calcFunc?: (query:
|
|
1129
|
+
calcFunc?: (query: Query, arr: CellData[]) => number;
|
|
1081
1130
|
}
|
|
1082
1131
|
|
|
1083
|
-
declare type CanvasEventHandler = (event:
|
|
1132
|
+
declare type CanvasEventHandler = (event: FederatedPointerEvent) => void;
|
|
1084
1133
|
|
|
1085
1134
|
declare interface CellAppendInfo<T = Node_2_2> extends Partial<ResizeInfo_2> {
|
|
1086
1135
|
isLinkFieldText?: boolean;
|
|
@@ -1094,7 +1143,7 @@ declare enum CellBorderPosition {
|
|
|
1094
1143
|
RIGHT = "RIGHT"
|
|
1095
1144
|
}
|
|
1096
1145
|
|
|
1097
|
-
declare type CellCallback<T extends BaseHeaderConfig> = (node: Node_2_2, spreadsheet: SpreadSheet_2, headerConfig: T) =>
|
|
1146
|
+
declare type CellCallback<T extends BaseHeaderConfig> = (node: Node_2_2, spreadsheet: SpreadSheet_2, headerConfig: T) => S2CellType_2;
|
|
1098
1147
|
|
|
1099
1148
|
declare interface CellCfg {
|
|
1100
1149
|
width?: number;
|
|
@@ -1106,16 +1155,52 @@ declare interface CellCfg {
|
|
|
1106
1155
|
};
|
|
1107
1156
|
}
|
|
1108
1157
|
|
|
1109
|
-
|
|
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
|
+
}
|
|
1110
1193
|
|
|
1111
1194
|
declare interface CellDataParams {
|
|
1112
|
-
query:
|
|
1195
|
+
query: Query;
|
|
1113
1196
|
isTotals?: boolean;
|
|
1114
1197
|
rowNode?: Node_2_2;
|
|
1115
1198
|
isRow?: boolean;
|
|
1116
1199
|
}
|
|
1117
1200
|
|
|
1118
|
-
declare
|
|
1201
|
+
declare type CellEventTarget = FederatedPointerEvent['target'] | null | undefined;
|
|
1202
|
+
|
|
1203
|
+
declare interface CellMeta {
|
|
1119
1204
|
id: string;
|
|
1120
1205
|
colIndex: number;
|
|
1121
1206
|
rowIndex: number;
|
|
@@ -1168,22 +1253,17 @@ declare enum CellTypes {
|
|
|
1168
1253
|
declare class ColCell extends HeaderCell {
|
|
1169
1254
|
protected headerConfig: ColHeaderConfig;
|
|
1170
1255
|
/** 文字绘制起始坐标 */
|
|
1171
|
-
protected textPosition:
|
|
1256
|
+
protected textPosition: PointLike;
|
|
1172
1257
|
get cellType(): CellTypes;
|
|
1258
|
+
protected getBorderPositions(): CellBorderPosition[];
|
|
1173
1259
|
protected initCell(): void;
|
|
1174
|
-
protected drawBackgroundShape(): void;
|
|
1175
|
-
protected drawInteractiveBgShape(): void;
|
|
1176
|
-
/**
|
|
1177
|
-
* 绘制hover悬停,刷选的外框
|
|
1178
|
-
*/
|
|
1179
|
-
protected drawInteractiveBorderShape(): void;
|
|
1180
|
-
protected getTextStyle(): TextTheme;
|
|
1181
1260
|
protected getMaxTextWidth(): number;
|
|
1182
|
-
protected getIconPosition():
|
|
1183
|
-
protected
|
|
1261
|
+
protected getIconPosition(): PointLike;
|
|
1262
|
+
protected isBolderText(): boolean;
|
|
1263
|
+
protected getTextPosition(): PointLike;
|
|
1184
1264
|
protected getActionIconsWidth(): number;
|
|
1185
1265
|
protected getColResizeAreaKey(): string;
|
|
1186
|
-
protected getColResizeArea():
|
|
1266
|
+
protected getColResizeArea(): Group | undefined;
|
|
1187
1267
|
protected getHorizontalResizeAreaName(): string;
|
|
1188
1268
|
protected drawHorizontalResizeArea(): void;
|
|
1189
1269
|
protected shouldAddVerticalResizeArea(): boolean;
|
|
@@ -1193,9 +1273,6 @@ declare class ColCell extends HeaderCell {
|
|
|
1193
1273
|
};
|
|
1194
1274
|
protected drawVerticalResizeArea(): void;
|
|
1195
1275
|
protected drawResizeArea(): void;
|
|
1196
|
-
protected drawHorizontalBorder(): void;
|
|
1197
|
-
protected drawVerticalBorder(dir: CellBorderPosition): void;
|
|
1198
|
-
protected drawBorders(): void;
|
|
1199
1276
|
protected hasHiddenColumnCell(): boolean;
|
|
1200
1277
|
protected getExpandIconTheme(): IconTheme;
|
|
1201
1278
|
protected addExpandColumnSplitLine(): void;
|
|
@@ -1222,8 +1299,8 @@ declare interface ColCfg {
|
|
|
1222
1299
|
* Column Header for SpreadSheet
|
|
1223
1300
|
*/
|
|
1224
1301
|
declare class ColHeader extends BaseHeader<ColHeaderConfig> {
|
|
1225
|
-
protected scrollGroup:
|
|
1226
|
-
protected background:
|
|
1302
|
+
protected scrollGroup: Group;
|
|
1303
|
+
protected background: DisplayObject;
|
|
1227
1304
|
constructor(cfg: ColHeaderConfig);
|
|
1228
1305
|
/**
|
|
1229
1306
|
* Make colHeader scroll with hScrollBar
|
|
@@ -1234,8 +1311,8 @@ declare class ColHeader extends BaseHeader<ColHeaderConfig> {
|
|
|
1234
1311
|
onColScroll(scrollX: number, type: string): void;
|
|
1235
1312
|
protected clip(): void;
|
|
1236
1313
|
clear(): void;
|
|
1237
|
-
protected getCellInstance(item: Node_2_2, spreadsheet: SpreadSheet_2, headerConfig: ColHeaderConfig):
|
|
1238
|
-
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;
|
|
1239
1316
|
protected isColCellInRect(item: Node_2_2): boolean;
|
|
1240
1317
|
protected layout(): void;
|
|
1241
1318
|
protected offset(): void;
|
|
@@ -1276,32 +1353,32 @@ declare class CornerBBox extends BaseBBox {
|
|
|
1276
1353
|
}
|
|
1277
1354
|
|
|
1278
1355
|
declare class CornerCell extends HeaderCell {
|
|
1279
|
-
protected headerConfig: CornerHeaderConfig;
|
|
1280
|
-
protected textShapes: IShape[];
|
|
1281
1356
|
cornerType: CornerNodeType;
|
|
1357
|
+
protected headerConfig: CornerHeaderConfig;
|
|
1358
|
+
protected textShapes: DisplayObject[];
|
|
1359
|
+
protected isBolderText(): boolean;
|
|
1282
1360
|
get cellType(): CellTypes;
|
|
1361
|
+
protected getBorderPositions(): CellBorderPosition[];
|
|
1283
1362
|
update(): void;
|
|
1284
1363
|
protected initCell(): void;
|
|
1364
|
+
/**
|
|
1365
|
+
* @deprecated 已废弃, 请使用 drawTextShape
|
|
1366
|
+
*/
|
|
1285
1367
|
protected drawCellText(): void;
|
|
1368
|
+
protected drawTextShape(): void;
|
|
1286
1369
|
/**
|
|
1287
1370
|
* 绘制折叠展开的icon
|
|
1288
1371
|
*/
|
|
1289
1372
|
protected drawTreeIcon(): void;
|
|
1290
|
-
protected drawBackgroundShape(): void;
|
|
1291
|
-
/**
|
|
1292
|
-
* Render cell horizontalBorder border
|
|
1293
|
-
* @protected
|
|
1294
|
-
*/
|
|
1295
|
-
protected drawBorderShape(): void;
|
|
1296
1373
|
protected isLastRowCornerCell(): boolean;
|
|
1297
1374
|
protected getResizeAreaEffect(): ResizeAreaEffect.Field | ResizeAreaEffect.Tree | ResizeAreaEffect.Series;
|
|
1298
1375
|
protected drawResizeArea(): void;
|
|
1299
1376
|
protected showTreeIcon(): boolean;
|
|
1300
|
-
protected getIconPosition():
|
|
1377
|
+
protected getIconPosition(): PointLike;
|
|
1301
1378
|
protected getTreeIconWidth(): number;
|
|
1302
1379
|
protected getTextStyle(): TextTheme;
|
|
1303
1380
|
protected getMaxTextWidth(): number;
|
|
1304
|
-
protected getTextPosition():
|
|
1381
|
+
protected getTextPosition(): PointLike;
|
|
1305
1382
|
protected getFormattedFieldValue(): FormatResult;
|
|
1306
1383
|
protected getCornerText(): string;
|
|
1307
1384
|
}
|
|
@@ -1312,15 +1389,17 @@ declare class CornerCell extends HeaderCell {
|
|
|
1312
1389
|
declare class CornerHeader extends BaseHeader<CornerHeaderConfig> {
|
|
1313
1390
|
/**
|
|
1314
1391
|
* Get corner Header by config
|
|
1315
|
-
* @param panelBBox
|
|
1316
|
-
* @param cornerBBox
|
|
1317
|
-
* @param seriesNumberWidth
|
|
1318
|
-
* @param cfg
|
|
1319
|
-
* @param layoutResult
|
|
1320
|
-
* @param s2 spreadsheet
|
|
1321
1392
|
*/
|
|
1322
|
-
static getCornerHeader(
|
|
1323
|
-
|
|
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[];
|
|
1324
1403
|
constructor(cfg: CornerHeaderConfig);
|
|
1325
1404
|
/**
|
|
1326
1405
|
* Make cornerHeader scroll with hScrollBar
|
|
@@ -1334,13 +1413,13 @@ declare class CornerHeader extends BaseHeader<CornerHeaderConfig> {
|
|
|
1334
1413
|
protected clip(): void;
|
|
1335
1414
|
}
|
|
1336
1415
|
|
|
1337
|
-
declare type CornerHeaderCallback = (parent:
|
|
1416
|
+
declare type CornerHeaderCallback = (parent: S2CellType_2, spreadsheet: SpreadSheet_2, ...restOptions: unknown[]) => void;
|
|
1338
1417
|
|
|
1339
1418
|
declare interface CornerHeaderConfig extends BaseHeaderConfig {
|
|
1340
1419
|
hierarchyType: S2Options_2['hierarchyType'];
|
|
1341
1420
|
hierarchyCollapse: boolean;
|
|
1342
|
-
rows:
|
|
1343
|
-
columns:
|
|
1421
|
+
rows: SpreadSheetFacetCfg['rows'];
|
|
1422
|
+
columns: SpreadSheetFacetCfg['columns'];
|
|
1344
1423
|
seriesNumberWidth: number;
|
|
1345
1424
|
}
|
|
1346
1425
|
|
|
@@ -1350,6 +1429,19 @@ declare enum CornerNodeType {
|
|
|
1350
1429
|
Series = "series"
|
|
1351
1430
|
}
|
|
1352
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
|
+
|
|
1353
1445
|
declare interface CustomInteraction {
|
|
1354
1446
|
key: string;
|
|
1355
1447
|
interaction: InteractionConstructor;
|
|
@@ -1366,15 +1458,15 @@ export declare class CustomTooltip extends BaseTooltip {
|
|
|
1366
1458
|
destroy(): void;
|
|
1367
1459
|
}
|
|
1368
1460
|
|
|
1369
|
-
declare interface
|
|
1461
|
+
declare interface CustomTreeNode {
|
|
1370
1462
|
key: string;
|
|
1371
1463
|
title: string;
|
|
1372
1464
|
collapsed?: boolean;
|
|
1373
1465
|
description?: string;
|
|
1374
|
-
children?:
|
|
1466
|
+
children?: CustomTreeNode[];
|
|
1375
1467
|
}
|
|
1376
1468
|
|
|
1377
|
-
declare type
|
|
1469
|
+
declare type Data = (RawData_2 & ExtraData) | undefined;
|
|
1378
1470
|
|
|
1379
1471
|
/**
|
|
1380
1472
|
* DataCell for panelGroup area
|
|
@@ -1383,76 +1475,68 @@ declare type Data_2 = Record<string, DataItem>;
|
|
|
1383
1475
|
* |interval text| icon |
|
|
1384
1476
|
* | | |
|
|
1385
1477
|
* ----------------------------
|
|
1386
|
-
* There are four conditions(
|
|
1478
|
+
* There are four conditions({@see BaseCell.conditions}) to determine how to render
|
|
1387
1479
|
* 1、background color
|
|
1388
1480
|
* 2、icon align in right with size {@link ICON_SIZE}
|
|
1389
1481
|
* 3、left rect area is interval(in left) and text(in right)
|
|
1390
1482
|
*/
|
|
1391
1483
|
declare class DataCell_2 extends BaseCell<ViewMeta_2> {
|
|
1392
|
-
protected conditions: Conditions;
|
|
1393
|
-
protected conditionIntervalShape: IShape;
|
|
1394
|
-
protected conditionIconShape: GuiIcon;
|
|
1395
1484
|
get cellType(): CellTypes;
|
|
1396
|
-
protected
|
|
1397
|
-
|
|
1398
|
-
protected
|
|
1399
|
-
protected
|
|
1485
|
+
protected getBorderPositions(): CellBorderPosition[];
|
|
1486
|
+
get valueRangeByField(): ValueRange;
|
|
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;
|
|
1400
1491
|
update(): void;
|
|
1401
1492
|
setMeta(viewMeta: ViewMeta_2): void;
|
|
1402
1493
|
protected initCell(): void;
|
|
1494
|
+
/**
|
|
1495
|
+
* 获取默认字体颜色:根据字段标记背景颜色,设置字体颜色
|
|
1496
|
+
* @param textStyle
|
|
1497
|
+
* @private
|
|
1498
|
+
*/
|
|
1499
|
+
private getDefaultTextFill;
|
|
1403
1500
|
protected getTextStyle(): TextTheme;
|
|
1404
1501
|
getIconStyle(): IconCfg | undefined;
|
|
1502
|
+
protected drawConditionIntervalShape(): void;
|
|
1503
|
+
protected shouldHideRowSubtotalData(): boolean;
|
|
1405
1504
|
protected getFormattedFieldValue(): FormatResult;
|
|
1406
1505
|
protected getMaxTextWidth(): number;
|
|
1407
|
-
protected getTextPosition():
|
|
1408
|
-
protected drawConditionIconShapes(): void;
|
|
1409
|
-
/**
|
|
1410
|
-
* Draw interval condition shape
|
|
1411
|
-
* @protected
|
|
1412
|
-
*/
|
|
1413
|
-
protected drawConditionIntervalShape(): void;
|
|
1506
|
+
protected getTextPosition(): PointLike;
|
|
1414
1507
|
getBackgroundColor(): {
|
|
1415
|
-
backgroundColor: string;
|
|
1416
|
-
backgroundColorOpacity: number;
|
|
1508
|
+
backgroundColor: string | undefined;
|
|
1509
|
+
backgroundColorOpacity: number | undefined;
|
|
1510
|
+
intelligentReverseTextColor?: undefined;
|
|
1511
|
+
} | {
|
|
1512
|
+
backgroundColor: string | undefined;
|
|
1513
|
+
backgroundColorOpacity: number | undefined;
|
|
1514
|
+
intelligentReverseTextColor: boolean;
|
|
1417
1515
|
};
|
|
1418
|
-
/**
|
|
1419
|
-
* Draw cell background
|
|
1420
|
-
*/
|
|
1421
|
-
protected drawBackgroundShape(): void;
|
|
1422
|
-
/**
|
|
1423
|
-
* 绘制hover悬停,刷选的外框
|
|
1424
|
-
*/
|
|
1425
|
-
protected drawInteractiveBorderShape(): void;
|
|
1426
|
-
/**
|
|
1427
|
-
* Draw interactive color
|
|
1428
|
-
*/
|
|
1429
|
-
protected drawInteractiveBgShape(): void;
|
|
1430
1516
|
protected changeRowColSelectState(indexType: ViewMetaIndexType): void;
|
|
1431
1517
|
/**
|
|
1432
|
-
*
|
|
1433
|
-
* @protected
|
|
1518
|
+
* 预留给明细表使用,透视表数据格不需要绘制 border, 已经交由 grid 处理
|
|
1434
1519
|
*/
|
|
1435
|
-
|
|
1520
|
+
drawBorders(): void;
|
|
1436
1521
|
/**
|
|
1437
1522
|
* Find current field related condition
|
|
1438
1523
|
* @param conditions
|
|
1439
1524
|
*/
|
|
1440
|
-
|
|
1525
|
+
findFieldCondition(conditions: Condition[]): Condition | undefined;
|
|
1441
1526
|
/**
|
|
1442
1527
|
* Mapping value to get condition related attrs
|
|
1443
1528
|
* @param condition
|
|
1444
1529
|
*/
|
|
1445
|
-
|
|
1530
|
+
mappingValue(condition: Condition): MappingResult;
|
|
1446
1531
|
updateByState(stateName: InteractionStateName): void;
|
|
1447
1532
|
clearUnselectedState(): void;
|
|
1448
|
-
protected drawLeftBorder(): void;
|
|
1449
1533
|
}
|
|
1450
1534
|
|
|
1451
|
-
declare type DataCellCallback = (viewMeta: ViewMeta_2) =>
|
|
1535
|
+
declare type DataCellCallback = (viewMeta: ViewMeta_2) => S2CellType_2;
|
|
1452
1536
|
|
|
1453
|
-
declare type DataItem =
|
|
1537
|
+
declare type DataItem = SimpleData | MultiData | Record<string, unknown> | undefined | null;
|
|
1454
1538
|
|
|
1455
|
-
declare type
|
|
1539
|
+
declare type DataPath = (number | string)[];
|
|
1456
1540
|
|
|
1457
1541
|
declare interface DefaultCellTheme extends GridAnalysisCellTheme {
|
|
1458
1542
|
bolderText?: TextTheme;
|
|
@@ -1465,6 +1549,11 @@ declare interface DefaultCellTheme extends GridAnalysisCellTheme {
|
|
|
1465
1549
|
seriesNumberWidth?: number;
|
|
1466
1550
|
}
|
|
1467
1551
|
|
|
1552
|
+
declare enum DeviceType {
|
|
1553
|
+
PC = "pc",
|
|
1554
|
+
MOBILE = "mobile"
|
|
1555
|
+
}
|
|
1556
|
+
|
|
1468
1557
|
declare interface EmitterType {
|
|
1469
1558
|
/** ================ Global ================ */
|
|
1470
1559
|
[S2Event.GLOBAL_ACTION_ICON_CLICK]: CanvasEventHandler;
|
|
@@ -1490,11 +1579,11 @@ declare interface EmitterType {
|
|
|
1490
1579
|
[S2Event.RANGE_SORTED]: SortedHandler | CanvasEventHandler;
|
|
1491
1580
|
/** ================ Filter ================ */
|
|
1492
1581
|
[S2Event.RANGE_FILTER]: (info: FilterParam) => void;
|
|
1493
|
-
[S2Event.RANGE_FILTERED]: (data:
|
|
1582
|
+
[S2Event.RANGE_FILTERED]: (data: RawData_2[]) => any;
|
|
1494
1583
|
/** ================ Cell ================ */
|
|
1495
1584
|
[S2Event.GLOBAL_LINK_FIELD_JUMP]: (data: {
|
|
1496
1585
|
key: string;
|
|
1497
|
-
record:
|
|
1586
|
+
record: RawData_2;
|
|
1498
1587
|
}) => void;
|
|
1499
1588
|
/** ================ Date Cell ================ */
|
|
1500
1589
|
[S2Event.DATA_CELL_MOUSE_DOWN]: CanvasEventHandler;
|
|
@@ -1505,8 +1594,8 @@ declare interface EmitterType {
|
|
|
1505
1594
|
[S2Event.DATA_CELL_DOUBLE_CLICK]: CanvasEventHandler;
|
|
1506
1595
|
[S2Event.DATA_CELL_CONTEXT_MENU]: CanvasEventHandler;
|
|
1507
1596
|
[S2Event.DATA_CELL_TREND_ICON_CLICK]: (data: ViewMeta_2) => void;
|
|
1508
|
-
[S2Event.DATA_CELL_BRUSH_SELECTION]: (cells: DataCell_2[]) => void;
|
|
1509
|
-
[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;
|
|
1510
1599
|
/** ================ Row Cell ================ */
|
|
1511
1600
|
[S2Event.ROW_CELL_MOUSE_DOWN]: CanvasEventHandler;
|
|
1512
1601
|
[S2Event.ROW_CELL_MOUSE_MOVE]: CanvasEventHandler;
|
|
@@ -1556,6 +1645,7 @@ declare interface EmitterType {
|
|
|
1556
1645
|
[S2Event.LAYOUT_AFTER_HEADER_LAYOUT]: (data: LayoutResult_2) => void;
|
|
1557
1646
|
/** @deprecated 请使用 S2Event.GLOBAL_SCROLL 代替 */
|
|
1558
1647
|
[S2Event.LAYOUT_CELL_SCROLL]: (position: CellScrollPosition_2) => void;
|
|
1648
|
+
[S2Event.LAYOUT_CELL_MOUNTED]: (cell: S2CellType_2) => void;
|
|
1559
1649
|
[S2Event.LAYOUT_COLS_EXPANDED]: (expandedNode: Node_2_2) => void;
|
|
1560
1650
|
[S2Event.LAYOUT_COLS_HIDDEN]: (currentHiddenColumnsInfo: HiddenColumnsInfo_2, hiddenColumnsDetail: HiddenColumnsInfo_2[]) => void;
|
|
1561
1651
|
[S2Event.LAYOUT_BEFORE_RENDER]: () => void;
|
|
@@ -1580,7 +1670,7 @@ declare class EventController {
|
|
|
1580
1670
|
isCanvasEffect: boolean;
|
|
1581
1671
|
constructor(spreadsheet: SpreadSheet_2);
|
|
1582
1672
|
get canvasContainer(): Canvas;
|
|
1583
|
-
get isAutoResetSheetStyle(): boolean;
|
|
1673
|
+
get isAutoResetSheetStyle(): boolean | undefined;
|
|
1584
1674
|
bindEvents(): void;
|
|
1585
1675
|
private isGuiIconShape;
|
|
1586
1676
|
private onKeyboardCopy;
|
|
@@ -1610,16 +1700,16 @@ declare class EventController {
|
|
|
1610
1700
|
|
|
1611
1701
|
declare interface EventHandler {
|
|
1612
1702
|
type: string;
|
|
1613
|
-
handler: (event:
|
|
1703
|
+
handler: (event: FederatedPointerEvent) => void;
|
|
1614
1704
|
}
|
|
1615
1705
|
|
|
1616
1706
|
declare type EventHandler_2 = (event: Event) => void;
|
|
1617
1707
|
|
|
1618
|
-
declare
|
|
1619
|
-
target:
|
|
1708
|
+
declare type EventHandler_3 = {
|
|
1709
|
+
target: ICanvas;
|
|
1620
1710
|
type: keyof HTMLElementEventMap;
|
|
1621
|
-
handler: (e:
|
|
1622
|
-
}
|
|
1711
|
+
handler: (e: any) => void;
|
|
1712
|
+
};
|
|
1623
1713
|
|
|
1624
1714
|
declare interface EventListener_2 {
|
|
1625
1715
|
target: EventTarget;
|
|
@@ -1632,12 +1722,14 @@ declare interface EventListenerReturn {
|
|
|
1632
1722
|
remove: () => void;
|
|
1633
1723
|
}
|
|
1634
1724
|
|
|
1635
|
-
declare
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
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 {
|
|
1641
1733
|
customValueOrder?: number;
|
|
1642
1734
|
}
|
|
1643
1735
|
|
|
@@ -1646,7 +1738,7 @@ declare type FilterDataItemCallback = (valueField: string, data: DataItem) => Da
|
|
|
1646
1738
|
declare interface FilterParam {
|
|
1647
1739
|
filterKey: string;
|
|
1648
1740
|
filteredValues?: unknown[];
|
|
1649
|
-
customFilter?: (row:
|
|
1741
|
+
customFilter?: (row: Query) => boolean;
|
|
1650
1742
|
}
|
|
1651
1743
|
|
|
1652
1744
|
declare interface FormatResult {
|
|
@@ -1654,7 +1746,7 @@ declare interface FormatResult {
|
|
|
1654
1746
|
value: DataItem;
|
|
1655
1747
|
}
|
|
1656
1748
|
|
|
1657
|
-
declare type Formatter = (v: unknown, data?:
|
|
1749
|
+
declare type Formatter = (v: unknown, data?: ViewMetaData_2 | ViewMetaData_2[], meta?: Node_2_2 | ViewMeta_2) => string;
|
|
1658
1750
|
|
|
1659
1751
|
declare class Frame extends Group {
|
|
1660
1752
|
cfg: FrameConfig;
|
|
@@ -1664,6 +1756,8 @@ declare class Frame extends Group {
|
|
|
1664
1756
|
* 渲染
|
|
1665
1757
|
*/
|
|
1666
1758
|
render(): void;
|
|
1759
|
+
static getHorizontalBorderWidth(spreadsheet: SpreadSheet_2): number;
|
|
1760
|
+
static getVerticalBorderWidth(spreadsheet: SpreadSheet_2): number;
|
|
1667
1761
|
onBorderScroll(scrollX: number): void;
|
|
1668
1762
|
onChangeShadowVisibility(scrollX: number, maxScrollX: number): void;
|
|
1669
1763
|
private addCornerRightBorder;
|
|
@@ -1681,8 +1775,8 @@ declare interface FrameConfig {
|
|
|
1681
1775
|
y: number;
|
|
1682
1776
|
};
|
|
1683
1777
|
scrollX?: number;
|
|
1684
|
-
|
|
1685
|
-
|
|
1778
|
+
cornerWidth: number;
|
|
1779
|
+
cornerHeight: number;
|
|
1686
1780
|
viewportWidth: number;
|
|
1687
1781
|
viewportHeight: number;
|
|
1688
1782
|
showViewportLeftShadow: boolean;
|
|
@@ -1692,10 +1786,10 @@ declare interface FrameConfig {
|
|
|
1692
1786
|
spreadsheet: SpreadSheet_2;
|
|
1693
1787
|
}
|
|
1694
1788
|
|
|
1695
|
-
declare class
|
|
1789
|
+
declare class FrozenGroup extends GridGroup {
|
|
1696
1790
|
}
|
|
1697
1791
|
|
|
1698
|
-
declare type GetCellMeta = (rowIndex?: number, colIndex?: number) => ViewMeta_2;
|
|
1792
|
+
declare type GetCellMeta = (rowIndex?: number, colIndex?: number) => ViewMeta_2 | null;
|
|
1699
1793
|
|
|
1700
1794
|
declare type GetInitProps<T, OptionalKeys = GetOptionalKeys<T>> = {
|
|
1701
1795
|
[K in keyof T as IsEmitKey<T[K]> extends true ? never : K]-?: K extends OptionalKeys ? PropOption<NonNullable<T[K]>> : RequiredPropOption<NonNullable<T[K]>>;
|
|
@@ -1717,12 +1811,18 @@ declare interface GridAnalysisCellTheme {
|
|
|
1717
1811
|
|
|
1718
1812
|
declare class GridGroup extends Group {
|
|
1719
1813
|
protected s2: SpreadSheet_2;
|
|
1720
|
-
constructor(cfg:
|
|
1721
|
-
protected gridGroup:
|
|
1814
|
+
constructor(cfg: GridGroupConstructorParameters);
|
|
1815
|
+
protected gridGroup: Group;
|
|
1722
1816
|
protected gridInfo: GridInfo;
|
|
1723
1817
|
updateGrid: (gridInfo: GridInfo, id?: string) => void;
|
|
1724
1818
|
}
|
|
1725
1819
|
|
|
1820
|
+
declare type GridGroupConstructorParameters = {
|
|
1821
|
+
s2: SpreadSheet_2;
|
|
1822
|
+
name?: string;
|
|
1823
|
+
zIndex?: number;
|
|
1824
|
+
};
|
|
1825
|
+
|
|
1726
1826
|
declare interface GridInfo {
|
|
1727
1827
|
cols: number[];
|
|
1728
1828
|
rows: number[];
|
|
@@ -1733,15 +1833,17 @@ declare interface GridInfo {
|
|
|
1733
1833
|
*/
|
|
1734
1834
|
declare class GuiIcon extends Group {
|
|
1735
1835
|
static type: string;
|
|
1736
|
-
iconImageShape:
|
|
1836
|
+
iconImageShape: CustomImage;
|
|
1837
|
+
private cfg;
|
|
1737
1838
|
constructor(cfg: GuiIconCfg);
|
|
1738
1839
|
private getImage;
|
|
1739
1840
|
hasSupportSuffix: (image: string) => boolean;
|
|
1740
1841
|
private render;
|
|
1741
1842
|
}
|
|
1742
1843
|
|
|
1743
|
-
declare interface GuiIconCfg extends
|
|
1844
|
+
declare interface GuiIconCfg extends Omit<ImageStyleProps, 'fill'> {
|
|
1744
1845
|
readonly name: string;
|
|
1846
|
+
readonly fill?: string;
|
|
1745
1847
|
}
|
|
1746
1848
|
|
|
1747
1849
|
declare class HdAdapter {
|
|
@@ -1779,32 +1881,27 @@ declare interface HeaderActionIconOptions {
|
|
|
1779
1881
|
x: number;
|
|
1780
1882
|
y: number;
|
|
1781
1883
|
/** @deprecated 使用 onClick 代替 */
|
|
1782
|
-
action
|
|
1783
|
-
onClick
|
|
1784
|
-
onHover
|
|
1884
|
+
action?: (props: HeaderIconClickParams) => void;
|
|
1885
|
+
onClick?: (headerIconClickParams: HeaderIconClickParams) => void;
|
|
1886
|
+
onHover?: (headerIconHoverParams: HeaderIconHoverParams) => void;
|
|
1785
1887
|
defaultHide?: boolean;
|
|
1786
1888
|
}
|
|
1787
1889
|
|
|
1788
1890
|
declare abstract class HeaderCell extends BaseCell<Node_2_2> {
|
|
1789
1891
|
protected headerConfig: BaseHeaderConfig;
|
|
1790
1892
|
protected treeIcon: GuiIcon | undefined;
|
|
1791
|
-
protected treeLeafNodeAlignDot:
|
|
1893
|
+
protected treeLeafNodeAlignDot: DisplayObject | undefined;
|
|
1792
1894
|
protected actionIcons: GuiIcon[];
|
|
1793
1895
|
protected hasDefaultHiddenIcon: boolean;
|
|
1896
|
+
protected abstract isBolderText(): boolean;
|
|
1794
1897
|
protected handleRestOptions(...[headerConfig]: [BaseHeaderConfig]): void;
|
|
1795
1898
|
protected initCell(): void;
|
|
1796
|
-
protected getInteractiveBorderShapeStyle(border: number): {
|
|
1797
|
-
x: number;
|
|
1798
|
-
y: number;
|
|
1799
|
-
width: number;
|
|
1800
|
-
height: number;
|
|
1801
|
-
};
|
|
1802
1899
|
protected getFormattedFieldValue(): FormatResult;
|
|
1803
1900
|
/**
|
|
1804
1901
|
* 获取操作 icons
|
|
1805
1902
|
*/
|
|
1806
|
-
protected getActionIconCfg(): HeaderActionIcon;
|
|
1807
|
-
protected showSortIcon(): boolean;
|
|
1903
|
+
protected getActionIconCfg(): HeaderActionIcon | undefined;
|
|
1904
|
+
protected showSortIcon(): boolean | "" | undefined;
|
|
1808
1905
|
protected getActionIconsCount(): number;
|
|
1809
1906
|
protected getActionIconsWidth(): number;
|
|
1810
1907
|
protected drawSortIcons(): void;
|
|
@@ -1812,21 +1909,28 @@ declare abstract class HeaderCell extends BaseCell<Node_2_2> {
|
|
|
1812
1909
|
protected addActionIcon(options: HeaderActionIconOptions): void;
|
|
1813
1910
|
protected drawActionIcons(): void;
|
|
1814
1911
|
protected isSortCell(): boolean;
|
|
1815
|
-
protected handleByStateName(cells:
|
|
1816
|
-
protected handleSearchResult(cells:
|
|
1817
|
-
protected handleHover(cells:
|
|
1818
|
-
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;
|
|
1916
|
+
protected getTextStyle(): TextTheme;
|
|
1917
|
+
getBackgroundColor(): {
|
|
1918
|
+
backgroundColor: string | undefined;
|
|
1919
|
+
backgroundColorOpacity: number | undefined;
|
|
1920
|
+
};
|
|
1819
1921
|
toggleActionIcon(id: string): void;
|
|
1820
1922
|
update(): void;
|
|
1821
1923
|
updateByState(stateName: InteractionStateName): void;
|
|
1822
1924
|
hideInteractionShape(): void;
|
|
1823
1925
|
isMeasureField(): boolean;
|
|
1926
|
+
mappingValue(condition: Condition): MappingResult;
|
|
1927
|
+
findFieldCondition(conditions: Condition[]): Condition | undefined;
|
|
1824
1928
|
}
|
|
1825
1929
|
|
|
1826
1930
|
declare interface HeaderIconClickParams {
|
|
1827
1931
|
iconName: string;
|
|
1828
1932
|
meta: Node_2_2;
|
|
1829
|
-
event?:
|
|
1933
|
+
event?: FederatedPointerEvent;
|
|
1830
1934
|
}
|
|
1831
1935
|
|
|
1832
1936
|
declare interface HeaderIconHoverParams extends HeaderIconClickParams {
|
|
@@ -1836,8 +1940,8 @@ declare interface HeaderIconHoverParams extends HeaderIconClickParams {
|
|
|
1836
1940
|
declare interface HiddenColumnsInfo_2 {
|
|
1837
1941
|
hideColumnNodes: Node_2_2[];
|
|
1838
1942
|
displaySiblingNode: {
|
|
1839
|
-
prev: Node_2_2;
|
|
1840
|
-
next: Node_2_2;
|
|
1943
|
+
prev: Node_2_2 | null;
|
|
1944
|
+
next: Node_2_2 | null;
|
|
1841
1945
|
};
|
|
1842
1946
|
}
|
|
1843
1947
|
|
|
@@ -1849,8 +1953,8 @@ declare class Hierarchy {
|
|
|
1849
1953
|
width: number;
|
|
1850
1954
|
height: number;
|
|
1851
1955
|
maxLevel: number;
|
|
1852
|
-
sampleNodesForAllLevels
|
|
1853
|
-
sampleNodeForLastLevel
|
|
1956
|
+
sampleNodesForAllLevels: Node_2_2[];
|
|
1957
|
+
sampleNodeForLastLevel: Node_2_2 | null;
|
|
1854
1958
|
private allNodesWithoutRoot;
|
|
1855
1959
|
private indexNode;
|
|
1856
1960
|
getLeaves(): Node_2_2[];
|
|
@@ -1917,7 +2021,7 @@ declare interface InteractionOptions {
|
|
|
1917
2021
|
scrollbarPosition?: ScrollbarPositionType;
|
|
1918
2022
|
eventListenerOptions?: boolean | AddEventListenerOptions;
|
|
1919
2023
|
selectedCellHighlight?: boolean;
|
|
1920
|
-
overscrollBehavior?: 'auto' | 'none' | 'contain';
|
|
2024
|
+
overscrollBehavior?: 'auto' | 'none' | 'contain' | null;
|
|
1921
2025
|
/** ***********CUSTOM INTERACTION HOOKS**************** */
|
|
1922
2026
|
customInteractions?: CustomInteraction[];
|
|
1923
2027
|
}
|
|
@@ -1928,8 +2032,8 @@ declare type InteractionState = {
|
|
|
1928
2032
|
|
|
1929
2033
|
declare interface InteractionStateInfo {
|
|
1930
2034
|
stateName?: InteractionStateName;
|
|
1931
|
-
cells?:
|
|
1932
|
-
interactedCells?:
|
|
2035
|
+
cells?: CellMeta[];
|
|
2036
|
+
interactedCells?: S2CellType_2[];
|
|
1933
2037
|
nodes?: Node_2_2[];
|
|
1934
2038
|
force?: boolean;
|
|
1935
2039
|
/** 交互行为改变后,会被更新和重绘的单元格回调 */
|
|
@@ -1969,6 +2073,11 @@ declare enum InterceptType {
|
|
|
1969
2073
|
RESIZE = "resize"
|
|
1970
2074
|
}
|
|
1971
2075
|
|
|
2076
|
+
declare interface IntervalTheme {
|
|
2077
|
+
height: number;
|
|
2078
|
+
fill: string;
|
|
2079
|
+
}
|
|
2080
|
+
|
|
1972
2081
|
declare type IsEmitKey<Type> = Exclude<Type, undefined> extends (...args: any) => any ? true : false;
|
|
1973
2082
|
|
|
1974
2083
|
declare type KeyboardEventHandler = (event: KeyboardEvent) => void;
|
|
@@ -1981,7 +2090,7 @@ declare type LayoutArrange = (spreadsheet: SpreadSheet_2, parent: Node_2_2, fiel
|
|
|
1981
2090
|
/**
|
|
1982
2091
|
* determine the location(x,y,width,height eg..) of every node
|
|
1983
2092
|
*/
|
|
1984
|
-
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;
|
|
1985
2094
|
|
|
1986
2095
|
/**
|
|
1987
2096
|
* determine the data of cells in Cartesian coordinates
|
|
@@ -2000,6 +2109,13 @@ declare interface LayoutHierarchyReturnType {
|
|
|
2000
2109
|
delete?: boolean;
|
|
2001
2110
|
}
|
|
2002
2111
|
|
|
2112
|
+
declare type LayoutPaginationParams = {
|
|
2113
|
+
pageSize: number;
|
|
2114
|
+
pageCount: number;
|
|
2115
|
+
total: number;
|
|
2116
|
+
current: number;
|
|
2117
|
+
};
|
|
2118
|
+
|
|
2003
2119
|
declare interface LayoutResult_2 {
|
|
2004
2120
|
colNodes: Node_2_2[];
|
|
2005
2121
|
colsHierarchy: Hierarchy;
|
|
@@ -2032,20 +2148,19 @@ declare interface LineTheme {
|
|
|
2032
2148
|
};
|
|
2033
2149
|
}
|
|
2034
2150
|
|
|
2035
|
-
declare type ListItem = {
|
|
2036
|
-
name: string;
|
|
2037
|
-
value: string | number;
|
|
2038
|
-
icon?: Element | string;
|
|
2039
|
-
};
|
|
2040
|
-
|
|
2041
2151
|
declare type MappingDataItemCallback = (valueField: string, data: DataItem) => Record<string, string | number> | DataItem;
|
|
2042
2152
|
|
|
2043
|
-
declare type MappingFunction = (fieldValue: number | string, data: Record<string, any>) => MappingResult;
|
|
2153
|
+
declare type MappingFunction = (fieldValue: number | string, data: Record<string, any>) => MappingResult | undefined;
|
|
2044
2154
|
|
|
2045
2155
|
declare interface MappingResult extends ValueRange {
|
|
2046
2156
|
icon?: string;
|
|
2047
2157
|
fill: string;
|
|
2048
2158
|
isCompare?: boolean;
|
|
2159
|
+
/**
|
|
2160
|
+
* @description only used in background condition, when the background color is too light, the font color will be white
|
|
2161
|
+
* @version 1.34.0
|
|
2162
|
+
*/
|
|
2163
|
+
intelligentReverseTextColor?: boolean;
|
|
2049
2164
|
}
|
|
2050
2165
|
|
|
2051
2166
|
declare type Margin = Padding;
|
|
@@ -2054,9 +2169,9 @@ declare type Margin = Padding;
|
|
|
2054
2169
|
* Cell for panelGroup area
|
|
2055
2170
|
*/
|
|
2056
2171
|
declare class MergedCell extends DataCell_2 {
|
|
2057
|
-
cells:
|
|
2058
|
-
constructor(spreadsheet: SpreadSheet_2, cells:
|
|
2059
|
-
handleRestOptions(...[cells]: [
|
|
2172
|
+
cells: S2CellType_2[];
|
|
2173
|
+
constructor(spreadsheet: SpreadSheet_2, cells: S2CellType_2[], meta?: ViewMeta_2);
|
|
2174
|
+
handleRestOptions(...[cells]: [S2CellType_2[]]): void;
|
|
2060
2175
|
get cellType(): CellTypes;
|
|
2061
2176
|
update(): void;
|
|
2062
2177
|
protected initCell(): void;
|
|
@@ -2092,6 +2207,7 @@ declare interface MiniChartTheme {
|
|
|
2092
2207
|
line?: LineTheme;
|
|
2093
2208
|
bar?: BarTheme;
|
|
2094
2209
|
bullet?: BulletTheme;
|
|
2210
|
+
interval?: IntervalTheme;
|
|
2095
2211
|
}
|
|
2096
2212
|
|
|
2097
2213
|
/** mini 图类型 */
|
|
@@ -2113,7 +2229,7 @@ declare type MouseEventHandler = (event: MouseEvent) => void;
|
|
|
2113
2229
|
],
|
|
2114
2230
|
}
|
|
2115
2231
|
*/
|
|
2116
|
-
declare interface MultiData<T =
|
|
2232
|
+
declare interface MultiData<T = SimpleData[][] | MiniChartData> {
|
|
2117
2233
|
values: T;
|
|
2118
2234
|
originalValues?: T;
|
|
2119
2235
|
label?: string;
|
|
@@ -2184,7 +2300,7 @@ declare class Node_2_2 {
|
|
|
2184
2300
|
colIndex: number;
|
|
2185
2301
|
level: number;
|
|
2186
2302
|
rowIndex: number;
|
|
2187
|
-
parent: Node_2_2;
|
|
2303
|
+
parent: Node_2_2 | undefined;
|
|
2188
2304
|
isLeaf: boolean;
|
|
2189
2305
|
isTotals: boolean;
|
|
2190
2306
|
colId: string;
|
|
@@ -2198,14 +2314,15 @@ declare class Node_2_2 {
|
|
|
2198
2314
|
field: string;
|
|
2199
2315
|
spreadsheet: SpreadSheet_2;
|
|
2200
2316
|
query?: Record<string, any>;
|
|
2201
|
-
belongsCell?:
|
|
2317
|
+
belongsCell?: S2CellType_2 | null | undefined;
|
|
2202
2318
|
inCollapseNode?: boolean;
|
|
2203
2319
|
cornerType?: CornerNodeType;
|
|
2204
2320
|
isGrandTotals?: boolean;
|
|
2205
2321
|
isSubTotals?: boolean;
|
|
2206
2322
|
[key: string]: any;
|
|
2207
2323
|
static rootNode(): Node_2_2;
|
|
2208
|
-
toJSON(): Omit_2<this, "
|
|
2324
|
+
toJSON(): Omit_2<this, "config" | "parent" | "hierarchy" | "spreadsheet">;
|
|
2325
|
+
getHeadLeafChild(): Node_2_2 | undefined;
|
|
2209
2326
|
}
|
|
2210
2327
|
|
|
2211
2328
|
declare interface OffsetConfig {
|
|
@@ -2250,9 +2367,9 @@ declare interface PaletteMeta {
|
|
|
2250
2367
|
standardColorIndex: number;
|
|
2251
2368
|
}>;
|
|
2252
2369
|
semanticColors: {
|
|
2253
|
-
red
|
|
2254
|
-
green
|
|
2255
|
-
yellow
|
|
2370
|
+
red: string;
|
|
2371
|
+
green: string;
|
|
2372
|
+
yellow: string;
|
|
2256
2373
|
[key: string]: string;
|
|
2257
2374
|
};
|
|
2258
2375
|
others?: {
|
|
@@ -2273,16 +2390,16 @@ declare type PanelIndexes = {
|
|
|
2273
2390
|
};
|
|
2274
2391
|
|
|
2275
2392
|
declare class PanelScrollGroup extends GridGroup {
|
|
2276
|
-
protected mergedCellsGroup:
|
|
2277
|
-
constructor(cfg:
|
|
2393
|
+
protected mergedCellsGroup: Group;
|
|
2394
|
+
constructor(cfg: GridGroupConstructorParameters);
|
|
2278
2395
|
protected initMergedCellsGroup(): void;
|
|
2279
2396
|
updateMergedCells(): void;
|
|
2280
2397
|
addMergeCell(mergeCell: MergedCell): void;
|
|
2281
2398
|
update(gridInfo: GridInfo): void;
|
|
2282
2399
|
}
|
|
2283
2400
|
|
|
2284
|
-
declare interface PartDrillDown {
|
|
2285
|
-
drillConfig:
|
|
2401
|
+
declare interface PartDrillDown<T = BaseDrillDownComponentProps> {
|
|
2402
|
+
drillConfig: T;
|
|
2286
2403
|
drillItemsNum?: number;
|
|
2287
2404
|
fetchData: (meta: Node_2, drillFields: string[]) => Promise<PartDrillDownInfo>;
|
|
2288
2405
|
clearDrillDown?: {
|
|
@@ -2297,7 +2414,7 @@ declare interface PartDrillDownFieldInLevel {
|
|
|
2297
2414
|
}
|
|
2298
2415
|
|
|
2299
2416
|
declare interface PartDrillDownInfo {
|
|
2300
|
-
drillData:
|
|
2417
|
+
drillData: RawData[];
|
|
2301
2418
|
drillField: string;
|
|
2302
2419
|
}
|
|
2303
2420
|
|
|
@@ -2319,15 +2436,16 @@ loading: BooleanConstructor;
|
|
|
2319
2436
|
partDrillDown: ObjectConstructor;
|
|
2320
2437
|
header: ObjectConstructor;
|
|
2321
2438
|
options: {
|
|
2322
|
-
type: PropType<
|
|
2323
|
-
default:
|
|
2439
|
+
type: PropType<S2Options<TooltipContentType, Pagination>>;
|
|
2440
|
+
default: S2Options<TooltipContentType, Pagination>;
|
|
2324
2441
|
};
|
|
2325
2442
|
adaptive: {
|
|
2326
2443
|
type: PropType<Adaptive>;
|
|
2327
2444
|
default: Adaptive;
|
|
2328
2445
|
};
|
|
2329
|
-
onSpreadsheet: PropType<(container: S2MountContainer, dataCfg: S2DataConfig, options:
|
|
2446
|
+
onSpreadsheet: PropType<(container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination>) => SpreadSheet>;
|
|
2330
2447
|
onGetSpreadSheet: PropType<(spreadsheet: SpreadSheet) => void>;
|
|
2448
|
+
onMounted: PropType<(spreadsheet: SpreadSheet) => void>;
|
|
2331
2449
|
}, {
|
|
2332
2450
|
s2Ref: ShallowRef<SheetExpose>;
|
|
2333
2451
|
options: S2Options<TooltipContentType, Pagination>;
|
|
@@ -2364,7 +2482,7 @@ dataCellMouseUp: (data: TargetCellInfo) => void;
|
|
|
2364
2482
|
dataCellMouseMove: (data: TargetCellInfo) => void;
|
|
2365
2483
|
dataCellTrendIconClick: (meta: ViewMeta) => void;
|
|
2366
2484
|
dataCellBrushSelection: (brushRangeDataCells: DataCell[]) => void;
|
|
2367
|
-
dataCellSelectMove: (metas:
|
|
2485
|
+
dataCellSelectMove: (metas: ViewMetaData[]) => void;
|
|
2368
2486
|
cornerCellHover: (data: TargetCellInfo) => void;
|
|
2369
2487
|
cornerCellClick: (data: TargetCellInfo) => void;
|
|
2370
2488
|
cornerCellDoubleClick: (data: TargetCellInfo) => void;
|
|
@@ -2380,20 +2498,16 @@ mergedCellsMouseDown: (data: TargetCellInfo) => void;
|
|
|
2380
2498
|
mergedCellsMouseUp: (data: TargetCellInfo) => void;
|
|
2381
2499
|
mergedCellsMouseMove: (data: TargetCellInfo) => void;
|
|
2382
2500
|
rangeSort: (params: SortParams) => void;
|
|
2383
|
-
rangeSorted: (event:
|
|
2501
|
+
rangeSorted: (event: GEvent) => void;
|
|
2384
2502
|
rangeFilter: (data: {
|
|
2385
2503
|
filterKey: string;
|
|
2386
2504
|
filteredValues: string[];
|
|
2387
2505
|
}) => void;
|
|
2388
|
-
rangeFiltered: (data:
|
|
2506
|
+
rangeFiltered: (data: ViewMetaData[]) => void;
|
|
2389
2507
|
layoutAfterHeaderLayout: (layoutResult: LayoutResult) => void;
|
|
2390
|
-
layoutPagination: (data:
|
|
2391
|
-
pageSize: number;
|
|
2392
|
-
pageCount: number;
|
|
2393
|
-
total: number;
|
|
2394
|
-
current: number;
|
|
2395
|
-
}) => void;
|
|
2508
|
+
layoutPagination: (data: LayoutPaginationParams) => void;
|
|
2396
2509
|
layoutCellScroll: (position: CellScrollPosition) => void;
|
|
2510
|
+
layoutCellMounted: (cell: S2CellType<ViewMeta>) => void;
|
|
2397
2511
|
layoutCollapseRows: (data: CollapsedRowsType) => void;
|
|
2398
2512
|
layoutAfterCollapseRows: (data: CollapsedRowsType) => void;
|
|
2399
2513
|
collapseRowsAll: (hierarchyCollapse: boolean) => void;
|
|
@@ -2404,6 +2518,7 @@ hiddenColumnsDetail: HiddenColumnsInfo[];
|
|
|
2404
2518
|
}) => void;
|
|
2405
2519
|
beforeRender: () => void;
|
|
2406
2520
|
afterRender: () => void;
|
|
2521
|
+
mounted: (spreadsheet: SpreadSheet) => void;
|
|
2407
2522
|
destroy: () => void;
|
|
2408
2523
|
layoutResize: (params: ResizeParams) => void;
|
|
2409
2524
|
layoutResizeSeriesWidth: (params: ResizeParams) => void;
|
|
@@ -2427,26 +2542,26 @@ resizeInfo?: ResizeInfo;
|
|
|
2427
2542
|
keyBoardDown: (event: KeyboardEvent) => void;
|
|
2428
2543
|
keyBoardUp: (event: KeyboardEvent) => void;
|
|
2429
2544
|
copied: (copyData: string) => void;
|
|
2430
|
-
actionIconHover: (event:
|
|
2431
|
-
actionIconHoverOff: (event:
|
|
2432
|
-
actionIconClick: (event:
|
|
2433
|
-
contextMenu: (event:
|
|
2434
|
-
click: (event:
|
|
2435
|
-
hover: (event:
|
|
2436
|
-
doubleClick: (event:
|
|
2437
|
-
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;
|
|
2438
2553
|
mouseUp: (event: MouseEvent) => void;
|
|
2439
2554
|
mouseDown: (event: MouseEvent) => void;
|
|
2440
2555
|
mouseMove: (event: MouseEvent) => void;
|
|
2441
|
-
selected: (cells:
|
|
2556
|
+
selected: (cells: S2CellType<ViewMeta>[]) => void;
|
|
2442
2557
|
reset: (event: KeyboardEvent) => void;
|
|
2443
2558
|
linkFieldJump: (data: {
|
|
2444
2559
|
key: string;
|
|
2445
|
-
record:
|
|
2560
|
+
record: RawData;
|
|
2446
2561
|
}) => void;
|
|
2447
2562
|
scroll: (position: CellScrollPosition) => void;
|
|
2448
|
-
rowCellBrushSelection: (event:
|
|
2449
|
-
colCellBrushSelection: (event:
|
|
2563
|
+
rowCellBrushSelection: (event: GEvent) => void;
|
|
2564
|
+
colCellBrushSelection: (event: GEvent) => void;
|
|
2450
2565
|
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
|
|
2451
2566
|
sheetType: PropType<SheetType>;
|
|
2452
2567
|
dataCfg: PropType<S2DataConfig>;
|
|
@@ -2465,15 +2580,16 @@ loading: BooleanConstructor;
|
|
|
2465
2580
|
partDrillDown: ObjectConstructor;
|
|
2466
2581
|
header: ObjectConstructor;
|
|
2467
2582
|
options: {
|
|
2468
|
-
type: PropType<
|
|
2469
|
-
default:
|
|
2583
|
+
type: PropType<S2Options<TooltipContentType, Pagination>>;
|
|
2584
|
+
default: S2Options<TooltipContentType, Pagination>;
|
|
2470
2585
|
};
|
|
2471
2586
|
adaptive: {
|
|
2472
2587
|
type: PropType<Adaptive>;
|
|
2473
2588
|
default: Adaptive;
|
|
2474
2589
|
};
|
|
2475
|
-
onSpreadsheet: PropType<(container: S2MountContainer, dataCfg: S2DataConfig, options:
|
|
2590
|
+
onSpreadsheet: PropType<(container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination>) => SpreadSheet>;
|
|
2476
2591
|
onGetSpreadSheet: PropType<(spreadsheet: SpreadSheet) => void>;
|
|
2592
|
+
onMounted: PropType<(spreadsheet: SpreadSheet) => void>;
|
|
2477
2593
|
}>> & {
|
|
2478
2594
|
onSheetUpdate?: (params: S2RenderOptions) => any;
|
|
2479
2595
|
onRowCellHover?: (data: TargetCellInfo) => any;
|
|
@@ -2505,7 +2621,7 @@ onDataCellMouseUp?: (data: TargetCellInfo) => any;
|
|
|
2505
2621
|
onDataCellMouseMove?: (data: TargetCellInfo) => any;
|
|
2506
2622
|
onDataCellTrendIconClick?: (meta: ViewMeta) => any;
|
|
2507
2623
|
onDataCellBrushSelection?: (brushRangeDataCells: DataCell[]) => any;
|
|
2508
|
-
onDataCellSelectMove?: (metas:
|
|
2624
|
+
onDataCellSelectMove?: (metas: ViewMetaData[]) => any;
|
|
2509
2625
|
onCornerCellHover?: (data: TargetCellInfo) => any;
|
|
2510
2626
|
onCornerCellClick?: (data: TargetCellInfo) => any;
|
|
2511
2627
|
onCornerCellDoubleClick?: (data: TargetCellInfo) => any;
|
|
@@ -2521,20 +2637,16 @@ onMergedCellsMouseDown?: (data: TargetCellInfo) => any;
|
|
|
2521
2637
|
onMergedCellsMouseUp?: (data: TargetCellInfo) => any;
|
|
2522
2638
|
onMergedCellsMouseMove?: (data: TargetCellInfo) => any;
|
|
2523
2639
|
onRangeSort?: (params: SortParams) => any;
|
|
2524
|
-
onRangeSorted?: (event:
|
|
2640
|
+
onRangeSorted?: (event: GEvent) => any;
|
|
2525
2641
|
onRangeFilter?: (data: {
|
|
2526
2642
|
filterKey: string;
|
|
2527
2643
|
filteredValues: string[];
|
|
2528
2644
|
}) => any;
|
|
2529
|
-
onRangeFiltered?: (data:
|
|
2645
|
+
onRangeFiltered?: (data: ViewMetaData[]) => any;
|
|
2530
2646
|
onLayoutAfterHeaderLayout?: (layoutResult: LayoutResult) => any;
|
|
2531
|
-
onLayoutPagination?: (data:
|
|
2532
|
-
pageSize: number;
|
|
2533
|
-
pageCount: number;
|
|
2534
|
-
total: number;
|
|
2535
|
-
current: number;
|
|
2536
|
-
}) => any;
|
|
2647
|
+
onLayoutPagination?: (data: LayoutPaginationParams) => any;
|
|
2537
2648
|
onLayoutCellScroll?: (position: CellScrollPosition) => any;
|
|
2649
|
+
onLayoutCellMounted?: (cell: S2CellType<ViewMeta>) => any;
|
|
2538
2650
|
onLayoutCollapseRows?: (data: CollapsedRowsType) => any;
|
|
2539
2651
|
onLayoutAfterCollapseRows?: (data: CollapsedRowsType) => any;
|
|
2540
2652
|
onCollapseRowsAll?: (hierarchyCollapse: boolean) => any;
|
|
@@ -2545,6 +2657,7 @@ hiddenColumnsDetail: HiddenColumnsInfo[];
|
|
|
2545
2657
|
}) => any;
|
|
2546
2658
|
onBeforeRender?: () => any;
|
|
2547
2659
|
onAfterRender?: () => any;
|
|
2660
|
+
onMounted?: (spreadsheet: SpreadSheet) => any;
|
|
2548
2661
|
onDestroy?: () => any;
|
|
2549
2662
|
onLayoutResize?: (params: ResizeParams) => any;
|
|
2550
2663
|
onLayoutResizeSeriesWidth?: (params: ResizeParams) => any;
|
|
@@ -2568,30 +2681,30 @@ resizeInfo?: ResizeInfo;
|
|
|
2568
2681
|
onKeyBoardDown?: (event: KeyboardEvent) => any;
|
|
2569
2682
|
onKeyBoardUp?: (event: KeyboardEvent) => any;
|
|
2570
2683
|
onCopied?: (copyData: string) => any;
|
|
2571
|
-
onActionIconHover?: (event:
|
|
2572
|
-
onActionIconHoverOff?: (event:
|
|
2573
|
-
onActionIconClick?: (event:
|
|
2574
|
-
onContextMenu?: (event:
|
|
2575
|
-
onClick?: (event:
|
|
2576
|
-
onHover?: (event:
|
|
2577
|
-
onDoubleClick?: (event:
|
|
2578
|
-
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;
|
|
2579
2692
|
onMouseUp?: (event: MouseEvent) => any;
|
|
2580
2693
|
onMouseDown?: (event: MouseEvent) => any;
|
|
2581
2694
|
onMouseMove?: (event: MouseEvent) => any;
|
|
2582
|
-
onSelected?: (cells:
|
|
2695
|
+
onSelected?: (cells: S2CellType<ViewMeta>[]) => any;
|
|
2583
2696
|
onReset?: (event: KeyboardEvent) => any;
|
|
2584
2697
|
onLinkFieldJump?: (data: {
|
|
2585
2698
|
key: string;
|
|
2586
|
-
record:
|
|
2699
|
+
record: RawData;
|
|
2587
2700
|
}) => any;
|
|
2588
2701
|
onScroll?: (position: CellScrollPosition) => any;
|
|
2589
|
-
onRowCellBrushSelection?: (event:
|
|
2590
|
-
onColCellBrushSelection?: (event:
|
|
2702
|
+
onRowCellBrushSelection?: (event: GEvent) => any;
|
|
2703
|
+
onColCellBrushSelection?: (event: GEvent) => any;
|
|
2591
2704
|
onSpreadsheet?: (container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination>) => any;
|
|
2592
2705
|
onGetSpreadSheet?: (spreadsheet: SpreadSheet) => any;
|
|
2593
2706
|
}, {
|
|
2594
|
-
options:
|
|
2707
|
+
options: S2Options<TooltipContentType, Pagination>;
|
|
2595
2708
|
loading: boolean;
|
|
2596
2709
|
adaptive: boolean | {
|
|
2597
2710
|
width?: boolean;
|
|
@@ -2614,12 +2727,16 @@ declare interface PropOption<T = any> {
|
|
|
2614
2727
|
default?: T;
|
|
2615
2728
|
}
|
|
2616
2729
|
|
|
2730
|
+
declare type Query = Record<string, any>;
|
|
2731
|
+
|
|
2617
2732
|
declare interface RangeColors {
|
|
2618
2733
|
good: string;
|
|
2619
2734
|
satisfactory: string;
|
|
2620
2735
|
bad: string;
|
|
2621
2736
|
}
|
|
2622
2737
|
|
|
2738
|
+
declare type RawData_2 = Record<string, DataItem>;
|
|
2739
|
+
|
|
2623
2740
|
declare interface RequiredPropOption<T = any> {
|
|
2624
2741
|
type?: PropType<T>;
|
|
2625
2742
|
required: true;
|
|
@@ -2649,7 +2766,7 @@ declare enum ResizeDirectionType {
|
|
|
2649
2766
|
|
|
2650
2767
|
declare type ResizeHandler = (data: {
|
|
2651
2768
|
info: ResizeInfo_2;
|
|
2652
|
-
style?:
|
|
2769
|
+
style?: S2Style;
|
|
2653
2770
|
seriesNumberWidth?: number;
|
|
2654
2771
|
}) => void;
|
|
2655
2772
|
|
|
@@ -2664,8 +2781,9 @@ declare interface ResizeInfo_2 {
|
|
|
2664
2781
|
/** 改动影响区域 */
|
|
2665
2782
|
effect: ResizeAreaEffect;
|
|
2666
2783
|
isResizeArea?: boolean;
|
|
2784
|
+
isResizeMask?: boolean;
|
|
2667
2785
|
/** 字段id */
|
|
2668
|
-
id
|
|
2786
|
+
id: string;
|
|
2669
2787
|
/** 当前拖拽热区对应的节点信息 */
|
|
2670
2788
|
meta: Node_2_2 | ViewMeta_2;
|
|
2671
2789
|
/** 拖拽后的宽度 */
|
|
@@ -2681,12 +2799,12 @@ declare interface ResizeInteractionOptions {
|
|
|
2681
2799
|
colCellVertical?: boolean;
|
|
2682
2800
|
rowResizeType?: ResizeType;
|
|
2683
2801
|
disable?: (resizeInfo: ResizeInfo_2) => boolean;
|
|
2684
|
-
visible?: (cell:
|
|
2802
|
+
visible?: (cell: S2CellType_2) => boolean;
|
|
2685
2803
|
}
|
|
2686
2804
|
|
|
2687
2805
|
declare interface ResizeParams_2 {
|
|
2688
2806
|
info: ResizeInfo_2;
|
|
2689
|
-
style:
|
|
2807
|
+
style: S2Style | undefined;
|
|
2690
2808
|
}
|
|
2691
2809
|
|
|
2692
2810
|
declare enum ResizeType {
|
|
@@ -2707,30 +2825,30 @@ declare class RootInteraction {
|
|
|
2707
2825
|
private onTriggerInteractionsResetEffect;
|
|
2708
2826
|
setState(interactionStateInfo: InteractionStateInfo): void;
|
|
2709
2827
|
getState(): InteractionStateInfo;
|
|
2710
|
-
setInteractedCells(cell:
|
|
2711
|
-
getInteractedCells():
|
|
2828
|
+
setInteractedCells(cell: S2CellType_2): void;
|
|
2829
|
+
getInteractedCells(): S2CellType_2<ViewMeta_2>[];
|
|
2712
2830
|
resetState(): void;
|
|
2713
|
-
getCurrentStateName(): InteractionStateName;
|
|
2831
|
+
getCurrentStateName(): InteractionStateName | undefined;
|
|
2714
2832
|
isEqualStateName(stateName: InteractionStateName): boolean;
|
|
2715
2833
|
private isStateOf;
|
|
2716
2834
|
isSelectedState(): boolean;
|
|
2717
2835
|
isAllSelectedState(): boolean;
|
|
2718
2836
|
isHoverFocusState(): boolean;
|
|
2719
2837
|
isHoverState(): boolean;
|
|
2720
|
-
isActiveCell(cell:
|
|
2721
|
-
isSelectedCell(cell:
|
|
2722
|
-
getCells():
|
|
2723
|
-
getActiveCells():
|
|
2838
|
+
isActiveCell(cell: S2CellType_2): boolean;
|
|
2839
|
+
isSelectedCell(cell: S2CellType_2): boolean;
|
|
2840
|
+
getCells(): CellMeta[];
|
|
2841
|
+
getActiveCells(): S2CellType_2[];
|
|
2724
2842
|
clearStyleIndependent(): void;
|
|
2725
2843
|
getPanelGroupAllUnSelectedDataCells(): DataCell_2[];
|
|
2726
2844
|
getPanelGroupAllDataCells(): DataCell_2[];
|
|
2727
2845
|
getAllRowHeaderCells(): RowCell[];
|
|
2728
2846
|
getAllColHeaderCells(): ColCell[];
|
|
2729
|
-
getRowColActiveCells(ids: string[]):
|
|
2730
|
-
getAllCells():
|
|
2847
|
+
getRowColActiveCells(ids: string[]): S2CellType_2<ViewMeta_2>[];
|
|
2848
|
+
getAllCells(): S2CellType_2<ViewMeta_2>[];
|
|
2731
2849
|
selectAll: () => void;
|
|
2732
|
-
getCellChildrenNodes: (cell:
|
|
2733
|
-
selectHeaderCell: (selectHeaderCellInfo?: SelectHeaderCellInfo) =>
|
|
2850
|
+
getCellChildrenNodes: (cell: S2CellType_2) => Node_2_2[];
|
|
2851
|
+
selectHeaderCell: (selectHeaderCellInfo?: SelectHeaderCellInfo) => true | undefined;
|
|
2734
2852
|
highlightNodes: (nodes?: Node_2_2[]) => void;
|
|
2735
2853
|
mergeCells: (cellsInfo?: MergedCellInfo[], hideData?: boolean) => void;
|
|
2736
2854
|
unmergeCell: (removedCells: MergedCell) => void;
|
|
@@ -2743,44 +2861,35 @@ declare class RootInteraction {
|
|
|
2743
2861
|
clearState(): void;
|
|
2744
2862
|
changeState(interactionStateInfo: InteractionStateInfo): void;
|
|
2745
2863
|
updatePanelGroupAllDataCells(): void;
|
|
2746
|
-
updateCells(cells?:
|
|
2864
|
+
updateCells(cells?: S2CellType_2[]): void;
|
|
2747
2865
|
addIntercepts(interceptTypes?: InterceptType[]): void;
|
|
2748
2866
|
hasIntercepts(interceptTypes?: InterceptType[]): boolean;
|
|
2749
2867
|
removeIntercepts(interceptTypes?: InterceptType[]): void;
|
|
2750
2868
|
clearHoverTimer(): void;
|
|
2751
2869
|
setHoverTimer(timer: number): void;
|
|
2752
|
-
getHoverTimer(): number;
|
|
2870
|
+
getHoverTimer(): number | null;
|
|
2753
2871
|
}
|
|
2754
2872
|
|
|
2755
2873
|
declare class RowCell extends HeaderCell {
|
|
2756
2874
|
protected headerConfig: RowHeaderConfig;
|
|
2757
|
-
protected gm: GM;
|
|
2758
2875
|
get cellType(): CellTypes;
|
|
2759
|
-
|
|
2876
|
+
protected getBorderPositions(): CellBorderPosition[];
|
|
2760
2877
|
protected initCell(): void;
|
|
2761
|
-
protected drawBackgroundShape(): void;
|
|
2762
|
-
/**
|
|
2763
|
-
* 绘制hover悬停,刷选的外框
|
|
2764
|
-
*/
|
|
2765
|
-
protected drawInteractiveBorderShape(): void;
|
|
2766
|
-
protected drawInteractiveBgShape(): void;
|
|
2767
2878
|
protected showTreeIcon(): boolean;
|
|
2768
|
-
protected showTreeLeafNodeAlignDot(): boolean;
|
|
2879
|
+
protected showTreeLeafNodeAlignDot(): boolean | undefined;
|
|
2769
2880
|
protected getParentTreeIconCfg(): any;
|
|
2770
2881
|
protected drawTreeIcon(): void;
|
|
2771
2882
|
protected drawTreeLeafNodeAlignDot(): void;
|
|
2883
|
+
protected isBolderText(): boolean;
|
|
2772
2884
|
protected drawTextShape(): void;
|
|
2773
2885
|
protected drawLinkFieldShape(): void;
|
|
2774
|
-
protected drawRectBorder(): void;
|
|
2775
2886
|
protected drawResizeAreaInLeaf(): void;
|
|
2776
2887
|
protected getContentIndent(): number;
|
|
2777
2888
|
protected getTextIndent(): number;
|
|
2778
2889
|
protected isTreeLevel(): any;
|
|
2779
|
-
protected isBolderText(): boolean;
|
|
2780
|
-
protected getTextStyle(): TextTheme;
|
|
2781
2890
|
protected getIconPosition(): {
|
|
2782
|
-
x:
|
|
2783
|
-
y:
|
|
2891
|
+
x: number;
|
|
2892
|
+
y: number;
|
|
2784
2893
|
};
|
|
2785
2894
|
protected getMaxTextWidth(): number;
|
|
2786
2895
|
protected getTextArea(): {
|
|
@@ -2789,7 +2898,7 @@ declare class RowCell extends HeaderCell {
|
|
|
2789
2898
|
y: number;
|
|
2790
2899
|
height: number;
|
|
2791
2900
|
};
|
|
2792
|
-
protected getTextPosition():
|
|
2901
|
+
protected getTextPosition(): PointLike;
|
|
2793
2902
|
protected getIconYPosition(): number;
|
|
2794
2903
|
}
|
|
2795
2904
|
|
|
@@ -2813,9 +2922,7 @@ declare interface RowCfg {
|
|
|
2813
2922
|
* Row Header for SpreadSheet
|
|
2814
2923
|
*/
|
|
2815
2924
|
declare class RowHeader extends BaseHeader<RowHeaderConfig> {
|
|
2816
|
-
private gm;
|
|
2817
2925
|
constructor(cfg: RowHeaderConfig);
|
|
2818
|
-
destroy(): void;
|
|
2819
2926
|
protected layout(): void;
|
|
2820
2927
|
protected offset(): void;
|
|
2821
2928
|
protected clip(): void;
|
|
@@ -2831,18 +2938,19 @@ declare interface S2BasicOptions<T = TooltipContentType_2, P = Pagination_2> {
|
|
|
2831
2938
|
width?: number;
|
|
2832
2939
|
height?: number;
|
|
2833
2940
|
debug?: boolean;
|
|
2834
|
-
hierarchyType?: 'grid' | 'tree'
|
|
2941
|
+
hierarchyType?: 'grid' | 'tree';
|
|
2835
2942
|
conditions?: Conditions;
|
|
2836
|
-
totals?: Totals;
|
|
2943
|
+
totals?: Totals | null;
|
|
2837
2944
|
tooltip?: Tooltip<T>;
|
|
2838
2945
|
interaction?: InteractionOptions;
|
|
2839
2946
|
pagination?: P;
|
|
2840
2947
|
frozenRowHeader?: boolean;
|
|
2948
|
+
seriesNumberText?: string;
|
|
2841
2949
|
showSeriesNumber?: boolean;
|
|
2842
2950
|
showDefaultHeaderActionIcon?: boolean;
|
|
2843
2951
|
headerActionIcons?: HeaderActionIcon[];
|
|
2844
2952
|
customSVGIcons?: CustomSVGIcon[];
|
|
2845
|
-
style?:
|
|
2953
|
+
style?: S2Style;
|
|
2846
2954
|
hdAdapter?: boolean;
|
|
2847
2955
|
mergedCellsInfo?: MergedCellInfo[][];
|
|
2848
2956
|
placeholder?: ((meta: Record<string, any>) => string) | string;
|
|
@@ -2850,6 +2958,8 @@ declare interface S2BasicOptions<T = TooltipContentType_2, P = Pagination_2> {
|
|
|
2850
2958
|
cornerExtraFieldText?: string;
|
|
2851
2959
|
supportCSSTransform?: boolean;
|
|
2852
2960
|
devicePixelRatio?: number;
|
|
2961
|
+
/** ***********Mobile Options Config**************** */
|
|
2962
|
+
device?: DeviceType;
|
|
2853
2963
|
/** ***********CUSTOM CELL/HEADER HOOKS**************** */
|
|
2854
2964
|
dataCell?: DataCellCallback;
|
|
2855
2965
|
cornerCell?: CellCallback<CornerHeaderConfig>;
|
|
@@ -2867,11 +2977,10 @@ declare interface S2BasicOptions<T = TooltipContentType_2, P = Pagination_2> {
|
|
|
2867
2977
|
mappingDisplayDataItem?: MappingDataItemCallback;
|
|
2868
2978
|
}
|
|
2869
2979
|
|
|
2870
|
-
declare type
|
|
2980
|
+
declare type S2CellType_2<T extends SimpleBBox = ViewMeta_2> = DataCell_2 | HeaderCell | ColCell | CornerCell | RowCell | MergedCell | TableCornerCell | TableSeriesCell | BaseCell<T>;
|
|
2871
2981
|
|
|
2872
2982
|
declare interface S2DataConfig_2 {
|
|
2873
|
-
data:
|
|
2874
|
-
totalData?: Data_2[];
|
|
2983
|
+
data: RawData_2[];
|
|
2875
2984
|
fields: Fields;
|
|
2876
2985
|
meta?: Meta[];
|
|
2877
2986
|
sortParams?: SortParams_2;
|
|
@@ -2937,6 +3046,7 @@ declare enum S2Event {
|
|
|
2937
3046
|
LAYOUT_AFTER_HEADER_LAYOUT = "layout:after-header-layout",
|
|
2938
3047
|
/** @deprecated 已废弃, 请使用 S2Event.GLOBAL_SCROLL 代替 */
|
|
2939
3048
|
LAYOUT_CELL_SCROLL = "layout:cell-scroll",
|
|
3049
|
+
LAYOUT_CELL_MOUNTED = "layout:cell-mounted",
|
|
2940
3050
|
LAYOUT_PAGINATION = "layout:pagination",
|
|
2941
3051
|
LAYOUT_COLLAPSE_ROWS = "layout:collapsed-rows",
|
|
2942
3052
|
LAYOUT_AFTER_COLLAPSE_ROWS = "layout:after-collapsed-rows",
|
|
@@ -2996,6 +3106,23 @@ declare interface S2RenderOptions_2 {
|
|
|
2996
3106
|
reBuildHiddenColumnsDetail?: boolean;
|
|
2997
3107
|
}
|
|
2998
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
|
+
|
|
2999
3126
|
declare interface S2TableSheetOptions {
|
|
3000
3127
|
frozenRowCount?: number;
|
|
3001
3128
|
frozenColCount?: number;
|
|
@@ -3020,9 +3147,9 @@ declare class ScrollBar extends Group {
|
|
|
3020
3147
|
thumbOffset: number;
|
|
3021
3148
|
scrollTargetMaxOffset: number;
|
|
3022
3149
|
theme: ScrollBarTheme;
|
|
3023
|
-
scrollBarGroup:
|
|
3024
|
-
trackShape:
|
|
3025
|
-
thumbShape:
|
|
3150
|
+
scrollBarGroup: Group;
|
|
3151
|
+
trackShape: DisplayObject;
|
|
3152
|
+
thumbShape: DisplayObject;
|
|
3026
3153
|
private startPos;
|
|
3027
3154
|
private isMobile;
|
|
3028
3155
|
private clearEvents;
|
|
@@ -3055,7 +3182,7 @@ declare class ScrollBar extends Group {
|
|
|
3055
3182
|
*/
|
|
3056
3183
|
onlyUpdateThumbOffset: (offset: number) => void;
|
|
3057
3184
|
emitScrollChange: (offset: number, updateThumbOffset?: boolean) => void;
|
|
3058
|
-
protected
|
|
3185
|
+
protected bindEventListener: (target: EventTarget, eventType: keyof HTMLElementEventMap, callback: EventListenerOrEventListenerObject) => EventListenerReturn;
|
|
3059
3186
|
protected addEvent: (target: EventHandler_3['target'], type: EventHandler_3['type'], handler: EventHandler_3['handler']) => void;
|
|
3060
3187
|
private initScrollBar;
|
|
3061
3188
|
private createScrollBarGroup;
|
|
@@ -3095,7 +3222,7 @@ declare interface ScrollBarTheme {
|
|
|
3095
3222
|
size?: number;
|
|
3096
3223
|
hoverSize?: number;
|
|
3097
3224
|
/** 指定如何绘制每一条线段末端,lineCap?: 'butt' | 'round' | 'square'; */
|
|
3098
|
-
lineCap?:
|
|
3225
|
+
lineCap?: LineStyleProps['lineCap'];
|
|
3099
3226
|
}
|
|
3100
3227
|
|
|
3101
3228
|
declare interface ScrollOffset {
|
|
@@ -3109,10 +3236,10 @@ declare interface ScrollSpeedRatio {
|
|
|
3109
3236
|
vertical?: number;
|
|
3110
3237
|
}
|
|
3111
3238
|
|
|
3112
|
-
declare type SelectedHandler = (cells:
|
|
3239
|
+
declare type SelectedHandler = (cells: S2CellType_2[]) => void;
|
|
3113
3240
|
|
|
3114
3241
|
declare interface SelectHeaderCellInfo {
|
|
3115
|
-
cell:
|
|
3242
|
+
cell: S2CellType_2<ViewMeta_2>;
|
|
3116
3243
|
isMultiSelection?: boolean;
|
|
3117
3244
|
}
|
|
3118
3245
|
|
|
@@ -3121,13 +3248,14 @@ declare class SeriesNumberHeader extends BaseHeader<BaseHeaderConfig> {
|
|
|
3121
3248
|
private leftBorderShape;
|
|
3122
3249
|
/**
|
|
3123
3250
|
* Get seriesNumber header by config
|
|
3124
|
-
* @param viewportBBox
|
|
3125
|
-
* @param seriesNumberWidth
|
|
3126
|
-
* @param leafNodes
|
|
3127
|
-
* @param spreadsheet
|
|
3128
|
-
* @param cornerWidth
|
|
3129
3251
|
*/
|
|
3130
|
-
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;
|
|
3131
3259
|
constructor(cfg: BaseHeaderConfig);
|
|
3132
3260
|
clip(): void;
|
|
3133
3261
|
layout(): void;
|
|
@@ -3139,7 +3267,7 @@ declare class SeriesNumberHeader extends BaseHeader<BaseHeaderConfig> {
|
|
|
3139
3267
|
private getTextPadding;
|
|
3140
3268
|
}
|
|
3141
3269
|
|
|
3142
|
-
export declare const SheetComponent: DefineComponent<GetInitProps<SheetComponentProps, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "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" | "onLayoutCollapseRows" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "onBeforeRender" | "onAfterRender" | "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">, {
|
|
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">, {
|
|
3143
3271
|
s2Ref: ShallowRef<SheetExpose>;
|
|
3144
3272
|
sheetType: ComputedRef<DefineComponent< {
|
|
3145
3273
|
sheetType: PropType<SheetType>;
|
|
@@ -3159,15 +3287,16 @@ loading: BooleanConstructor;
|
|
|
3159
3287
|
partDrillDown: ObjectConstructor;
|
|
3160
3288
|
header: ObjectConstructor;
|
|
3161
3289
|
options: {
|
|
3162
|
-
type: PropType<
|
|
3163
|
-
default:
|
|
3290
|
+
type: PropType<S2Options_2<TooltipContentType_2, Pagination_2>>;
|
|
3291
|
+
default: S2Options_2<TooltipContentType_2, Pagination_2>;
|
|
3164
3292
|
};
|
|
3165
3293
|
adaptive: {
|
|
3166
3294
|
type: PropType<Adaptive>;
|
|
3167
3295
|
default: Adaptive;
|
|
3168
3296
|
};
|
|
3169
|
-
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>;
|
|
3170
3298
|
onGetSpreadSheet: PropType<(spreadsheet: SpreadSheet_2) => void>;
|
|
3299
|
+
onMounted: PropType<(spreadsheet: SpreadSheet_2) => void>;
|
|
3171
3300
|
}, {
|
|
3172
3301
|
s2Ref: ShallowRef<SheetExpose>;
|
|
3173
3302
|
options: S2Options_2<TooltipContentType_2, Pagination_2>;
|
|
@@ -3204,7 +3333,7 @@ dataCellMouseUp: (data: TargetCellInfo_2) => void;
|
|
|
3204
3333
|
dataCellMouseMove: (data: TargetCellInfo_2) => void;
|
|
3205
3334
|
dataCellTrendIconClick: (meta: ViewMeta_2) => void;
|
|
3206
3335
|
dataCellBrushSelection: (brushRangeDataCells: DataCell_2[]) => void;
|
|
3207
|
-
dataCellSelectMove: (metas:
|
|
3336
|
+
dataCellSelectMove: (metas: ViewMetaData_2[]) => void;
|
|
3208
3337
|
cornerCellHover: (data: TargetCellInfo_2) => void;
|
|
3209
3338
|
cornerCellClick: (data: TargetCellInfo_2) => void;
|
|
3210
3339
|
cornerCellDoubleClick: (data: TargetCellInfo_2) => void;
|
|
@@ -3220,20 +3349,16 @@ mergedCellsMouseDown: (data: TargetCellInfo_2) => void;
|
|
|
3220
3349
|
mergedCellsMouseUp: (data: TargetCellInfo_2) => void;
|
|
3221
3350
|
mergedCellsMouseMove: (data: TargetCellInfo_2) => void;
|
|
3222
3351
|
rangeSort: (params: SortParams_2) => void;
|
|
3223
|
-
rangeSorted: (event:
|
|
3352
|
+
rangeSorted: (event: FederatedPointerEvent_2) => void;
|
|
3224
3353
|
rangeFilter: (data: {
|
|
3225
3354
|
filterKey: string;
|
|
3226
3355
|
filteredValues: string[];
|
|
3227
3356
|
}) => void;
|
|
3228
|
-
rangeFiltered: (data:
|
|
3357
|
+
rangeFiltered: (data: ViewMetaData_2[]) => void;
|
|
3229
3358
|
layoutAfterHeaderLayout: (layoutResult: LayoutResult_2) => void;
|
|
3230
|
-
layoutPagination: (data:
|
|
3231
|
-
pageSize: number;
|
|
3232
|
-
pageCount: number;
|
|
3233
|
-
total: number;
|
|
3234
|
-
current: number;
|
|
3235
|
-
}) => void;
|
|
3359
|
+
layoutPagination: (data: LayoutPaginationParams) => void;
|
|
3236
3360
|
layoutCellScroll: (position: CellScrollPosition_2) => void;
|
|
3361
|
+
layoutCellMounted: (cell: S2CellType_2<ViewMeta_2>) => void;
|
|
3237
3362
|
layoutCollapseRows: (data: CollapsedRowsType_2) => void;
|
|
3238
3363
|
layoutAfterCollapseRows: (data: CollapsedRowsType_2) => void;
|
|
3239
3364
|
collapseRowsAll: (hierarchyCollapse: boolean) => void;
|
|
@@ -3244,6 +3369,7 @@ hiddenColumnsDetail: HiddenColumnsInfo_2[];
|
|
|
3244
3369
|
}) => void;
|
|
3245
3370
|
beforeRender: () => void;
|
|
3246
3371
|
afterRender: () => void;
|
|
3372
|
+
mounted: (spreadsheet: SpreadSheet_2) => void;
|
|
3247
3373
|
destroy: () => void;
|
|
3248
3374
|
layoutResize: (params: ResizeParams_2) => void;
|
|
3249
3375
|
layoutResizeSeriesWidth: (params: ResizeParams_2) => void;
|
|
@@ -3267,26 +3393,26 @@ resizeInfo?: ResizeInfo_2;
|
|
|
3267
3393
|
keyBoardDown: (event: KeyboardEvent) => void;
|
|
3268
3394
|
keyBoardUp: (event: KeyboardEvent) => void;
|
|
3269
3395
|
copied: (copyData: string) => void;
|
|
3270
|
-
actionIconHover: (event:
|
|
3271
|
-
actionIconHoverOff: (event:
|
|
3272
|
-
actionIconClick: (event:
|
|
3273
|
-
contextMenu: (event:
|
|
3274
|
-
click: (event:
|
|
3275
|
-
hover: (event:
|
|
3276
|
-
doubleClick: (event:
|
|
3277
|
-
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;
|
|
3278
3404
|
mouseUp: (event: MouseEvent) => void;
|
|
3279
3405
|
mouseDown: (event: MouseEvent) => void;
|
|
3280
3406
|
mouseMove: (event: MouseEvent) => void;
|
|
3281
|
-
selected: (cells:
|
|
3407
|
+
selected: (cells: S2CellType_2<ViewMeta_2>[]) => void;
|
|
3282
3408
|
reset: (event: KeyboardEvent) => void;
|
|
3283
3409
|
linkFieldJump: (data: {
|
|
3284
3410
|
key: string;
|
|
3285
|
-
record:
|
|
3411
|
+
record: RawData_2;
|
|
3286
3412
|
}) => void;
|
|
3287
3413
|
scroll: (position: CellScrollPosition_2) => void;
|
|
3288
|
-
rowCellBrushSelection: (event:
|
|
3289
|
-
colCellBrushSelection: (event:
|
|
3414
|
+
rowCellBrushSelection: (event: FederatedPointerEvent_2) => void;
|
|
3415
|
+
colCellBrushSelection: (event: FederatedPointerEvent_2) => void;
|
|
3290
3416
|
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
|
|
3291
3417
|
sheetType: PropType<SheetType>;
|
|
3292
3418
|
dataCfg: PropType<S2DataConfig_2>;
|
|
@@ -3305,15 +3431,16 @@ loading: BooleanConstructor;
|
|
|
3305
3431
|
partDrillDown: ObjectConstructor;
|
|
3306
3432
|
header: ObjectConstructor;
|
|
3307
3433
|
options: {
|
|
3308
|
-
type: PropType<
|
|
3309
|
-
default:
|
|
3434
|
+
type: PropType<S2Options_2<TooltipContentType_2, Pagination_2>>;
|
|
3435
|
+
default: S2Options_2<TooltipContentType_2, Pagination_2>;
|
|
3310
3436
|
};
|
|
3311
3437
|
adaptive: {
|
|
3312
3438
|
type: PropType<Adaptive>;
|
|
3313
3439
|
default: Adaptive;
|
|
3314
3440
|
};
|
|
3315
|
-
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>;
|
|
3316
3442
|
onGetSpreadSheet: PropType<(spreadsheet: SpreadSheet_2) => void>;
|
|
3443
|
+
onMounted: PropType<(spreadsheet: SpreadSheet_2) => void>;
|
|
3317
3444
|
}>> & {
|
|
3318
3445
|
onSheetUpdate?: (params: S2RenderOptions_2) => any;
|
|
3319
3446
|
onRowCellHover?: (data: TargetCellInfo_2) => any;
|
|
@@ -3345,7 +3472,7 @@ onDataCellMouseUp?: (data: TargetCellInfo_2) => any;
|
|
|
3345
3472
|
onDataCellMouseMove?: (data: TargetCellInfo_2) => any;
|
|
3346
3473
|
onDataCellTrendIconClick?: (meta: ViewMeta_2) => any;
|
|
3347
3474
|
onDataCellBrushSelection?: (brushRangeDataCells: DataCell_2[]) => any;
|
|
3348
|
-
onDataCellSelectMove?: (metas:
|
|
3475
|
+
onDataCellSelectMove?: (metas: ViewMetaData_2[]) => any;
|
|
3349
3476
|
onCornerCellHover?: (data: TargetCellInfo_2) => any;
|
|
3350
3477
|
onCornerCellClick?: (data: TargetCellInfo_2) => any;
|
|
3351
3478
|
onCornerCellDoubleClick?: (data: TargetCellInfo_2) => any;
|
|
@@ -3361,20 +3488,16 @@ onMergedCellsMouseDown?: (data: TargetCellInfo_2) => any;
|
|
|
3361
3488
|
onMergedCellsMouseUp?: (data: TargetCellInfo_2) => any;
|
|
3362
3489
|
onMergedCellsMouseMove?: (data: TargetCellInfo_2) => any;
|
|
3363
3490
|
onRangeSort?: (params: SortParams_2) => any;
|
|
3364
|
-
onRangeSorted?: (event:
|
|
3491
|
+
onRangeSorted?: (event: FederatedPointerEvent_2) => any;
|
|
3365
3492
|
onRangeFilter?: (data: {
|
|
3366
3493
|
filterKey: string;
|
|
3367
3494
|
filteredValues: string[];
|
|
3368
3495
|
}) => any;
|
|
3369
|
-
onRangeFiltered?: (data:
|
|
3496
|
+
onRangeFiltered?: (data: ViewMetaData_2[]) => any;
|
|
3370
3497
|
onLayoutAfterHeaderLayout?: (layoutResult: LayoutResult_2) => any;
|
|
3371
|
-
onLayoutPagination?: (data:
|
|
3372
|
-
pageSize: number;
|
|
3373
|
-
pageCount: number;
|
|
3374
|
-
total: number;
|
|
3375
|
-
current: number;
|
|
3376
|
-
}) => any;
|
|
3498
|
+
onLayoutPagination?: (data: LayoutPaginationParams) => any;
|
|
3377
3499
|
onLayoutCellScroll?: (position: CellScrollPosition_2) => any;
|
|
3500
|
+
onLayoutCellMounted?: (cell: S2CellType_2<ViewMeta_2>) => any;
|
|
3378
3501
|
onLayoutCollapseRows?: (data: CollapsedRowsType_2) => any;
|
|
3379
3502
|
onLayoutAfterCollapseRows?: (data: CollapsedRowsType_2) => any;
|
|
3380
3503
|
onCollapseRowsAll?: (hierarchyCollapse: boolean) => any;
|
|
@@ -3385,6 +3508,7 @@ hiddenColumnsDetail: HiddenColumnsInfo_2[];
|
|
|
3385
3508
|
}) => any;
|
|
3386
3509
|
onBeforeRender?: () => any;
|
|
3387
3510
|
onAfterRender?: () => any;
|
|
3511
|
+
onMounted?: (spreadsheet: SpreadSheet_2) => any;
|
|
3388
3512
|
onDestroy?: () => any;
|
|
3389
3513
|
onLayoutResize?: (params: ResizeParams_2) => any;
|
|
3390
3514
|
onLayoutResizeSeriesWidth?: (params: ResizeParams_2) => any;
|
|
@@ -3408,30 +3532,30 @@ resizeInfo?: ResizeInfo_2;
|
|
|
3408
3532
|
onKeyBoardDown?: (event: KeyboardEvent) => any;
|
|
3409
3533
|
onKeyBoardUp?: (event: KeyboardEvent) => any;
|
|
3410
3534
|
onCopied?: (copyData: string) => any;
|
|
3411
|
-
onActionIconHover?: (event:
|
|
3412
|
-
onActionIconHoverOff?: (event:
|
|
3413
|
-
onActionIconClick?: (event:
|
|
3414
|
-
onContextMenu?: (event:
|
|
3415
|
-
onClick?: (event:
|
|
3416
|
-
onHover?: (event:
|
|
3417
|
-
onDoubleClick?: (event:
|
|
3418
|
-
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;
|
|
3419
3543
|
onMouseUp?: (event: MouseEvent) => any;
|
|
3420
3544
|
onMouseDown?: (event: MouseEvent) => any;
|
|
3421
3545
|
onMouseMove?: (event: MouseEvent) => any;
|
|
3422
|
-
onSelected?: (cells:
|
|
3546
|
+
onSelected?: (cells: S2CellType_2<ViewMeta_2>[]) => any;
|
|
3423
3547
|
onReset?: (event: KeyboardEvent) => any;
|
|
3424
3548
|
onLinkFieldJump?: (data: {
|
|
3425
3549
|
key: string;
|
|
3426
|
-
record:
|
|
3550
|
+
record: RawData_2;
|
|
3427
3551
|
}) => any;
|
|
3428
3552
|
onScroll?: (position: CellScrollPosition_2) => any;
|
|
3429
|
-
onRowCellBrushSelection?: (event:
|
|
3430
|
-
onColCellBrushSelection?: (event:
|
|
3553
|
+
onRowCellBrushSelection?: (event: FederatedPointerEvent_2) => any;
|
|
3554
|
+
onColCellBrushSelection?: (event: FederatedPointerEvent_2) => any;
|
|
3431
3555
|
onSpreadsheet?: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2>) => any;
|
|
3432
3556
|
onGetSpreadSheet?: (spreadsheet: SpreadSheet_2) => any;
|
|
3433
3557
|
}, {
|
|
3434
|
-
options:
|
|
3558
|
+
options: S2Options_2<TooltipContentType_2, Pagination_2>;
|
|
3435
3559
|
loading: boolean;
|
|
3436
3560
|
adaptive: boolean | {
|
|
3437
3561
|
width?: boolean;
|
|
@@ -3442,7 +3566,7 @@ showPagination: boolean | {
|
|
|
3442
3566
|
onShowSizeChange?: (pageSize: number) => void;
|
|
3443
3567
|
onChange?: (current: number) => void;
|
|
3444
3568
|
};
|
|
3445
|
-
}> | DefineComponent<GetInitProps<SheetComponentProps, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "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" | "onLayoutCollapseRows" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "onBeforeRender" | "onAfterRender" | "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">, {
|
|
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">, {
|
|
3446
3570
|
s2Ref: ShallowRef<SheetExpose>;
|
|
3447
3571
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
3448
3572
|
spreadsheet: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2>) => SpreadSheet_2;
|
|
@@ -3477,7 +3601,7 @@ dataCellMouseUp: (data: TargetCellInfo_2) => void;
|
|
|
3477
3601
|
dataCellMouseMove: (data: TargetCellInfo_2) => void;
|
|
3478
3602
|
dataCellTrendIconClick: (meta: ViewMeta_2) => void;
|
|
3479
3603
|
dataCellBrushSelection: (brushRangeDataCells: DataCell_2[]) => void;
|
|
3480
|
-
dataCellSelectMove: (metas:
|
|
3604
|
+
dataCellSelectMove: (metas: ViewMetaData_2[]) => void;
|
|
3481
3605
|
cornerCellHover: (data: TargetCellInfo_2) => void;
|
|
3482
3606
|
cornerCellClick: (data: TargetCellInfo_2) => void;
|
|
3483
3607
|
cornerCellDoubleClick: (data: TargetCellInfo_2) => void;
|
|
@@ -3493,20 +3617,16 @@ mergedCellsMouseDown: (data: TargetCellInfo_2) => void;
|
|
|
3493
3617
|
mergedCellsMouseUp: (data: TargetCellInfo_2) => void;
|
|
3494
3618
|
mergedCellsMouseMove: (data: TargetCellInfo_2) => void;
|
|
3495
3619
|
rangeSort: (params: SortParams_2) => void;
|
|
3496
|
-
rangeSorted: (event:
|
|
3620
|
+
rangeSorted: (event: FederatedPointerEvent_2) => void;
|
|
3497
3621
|
rangeFilter: (data: {
|
|
3498
3622
|
filterKey: string;
|
|
3499
3623
|
filteredValues: string[];
|
|
3500
3624
|
}) => void;
|
|
3501
|
-
rangeFiltered: (data:
|
|
3625
|
+
rangeFiltered: (data: ViewMetaData_2[]) => void;
|
|
3502
3626
|
layoutAfterHeaderLayout: (layoutResult: LayoutResult_2) => void;
|
|
3503
|
-
layoutPagination: (data:
|
|
3504
|
-
pageSize: number;
|
|
3505
|
-
pageCount: number;
|
|
3506
|
-
total: number;
|
|
3507
|
-
current: number;
|
|
3508
|
-
}) => void;
|
|
3627
|
+
layoutPagination: (data: LayoutPaginationParams) => void;
|
|
3509
3628
|
layoutCellScroll: (position: CellScrollPosition_2) => void;
|
|
3629
|
+
layoutCellMounted: (cell: S2CellType_2<ViewMeta_2>) => void;
|
|
3510
3630
|
layoutCollapseRows: (data: CollapsedRowsType_2) => void;
|
|
3511
3631
|
layoutAfterCollapseRows: (data: CollapsedRowsType_2) => void;
|
|
3512
3632
|
collapseRowsAll: (hierarchyCollapse: boolean) => void;
|
|
@@ -3517,6 +3637,7 @@ hiddenColumnsDetail: HiddenColumnsInfo_2[];
|
|
|
3517
3637
|
}) => void;
|
|
3518
3638
|
beforeRender: () => void;
|
|
3519
3639
|
afterRender: () => void;
|
|
3640
|
+
mounted: (spreadsheet: SpreadSheet_2) => void;
|
|
3520
3641
|
destroy: () => void;
|
|
3521
3642
|
layoutResize: (params: ResizeParams_2) => void;
|
|
3522
3643
|
layoutResizeSeriesWidth: (params: ResizeParams_2) => void;
|
|
@@ -3540,27 +3661,27 @@ resizeInfo?: ResizeInfo_2;
|
|
|
3540
3661
|
keyBoardDown: (event: KeyboardEvent) => void;
|
|
3541
3662
|
keyBoardUp: (event: KeyboardEvent) => void;
|
|
3542
3663
|
copied: (copyData: string) => void;
|
|
3543
|
-
actionIconHover: (event:
|
|
3544
|
-
actionIconHoverOff: (event:
|
|
3545
|
-
actionIconClick: (event:
|
|
3546
|
-
contextMenu: (event:
|
|
3547
|
-
click: (event:
|
|
3548
|
-
hover: (event:
|
|
3549
|
-
doubleClick: (event:
|
|
3550
|
-
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;
|
|
3551
3672
|
mouseUp: (event: MouseEvent) => void;
|
|
3552
3673
|
mouseDown: (event: MouseEvent) => void;
|
|
3553
3674
|
mouseMove: (event: MouseEvent) => void;
|
|
3554
|
-
selected: (cells:
|
|
3675
|
+
selected: (cells: S2CellType_2<ViewMeta_2>[]) => void;
|
|
3555
3676
|
reset: (event: KeyboardEvent) => void;
|
|
3556
3677
|
linkFieldJump: (data: {
|
|
3557
3678
|
key: string;
|
|
3558
|
-
record:
|
|
3679
|
+
record: RawData_2;
|
|
3559
3680
|
}) => void;
|
|
3560
3681
|
scroll: (position: CellScrollPosition_2) => void;
|
|
3561
|
-
rowCellBrushSelection: (event:
|
|
3562
|
-
colCellBrushSelection: (event:
|
|
3563
|
-
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<GetInitProps<SheetComponentProps, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "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" | "onLayoutCollapseRows" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "onBeforeRender" | "onAfterRender" | "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">>> & {
|
|
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">>> & {
|
|
3564
3685
|
onSheetUpdate?: (params: S2RenderOptions_2) => any;
|
|
3565
3686
|
onRowCellHover?: (data: TargetCellInfo_2) => any;
|
|
3566
3687
|
onRowCellClick?: (data: TargetCellInfo_2) => any;
|
|
@@ -3591,7 +3712,7 @@ onDataCellMouseUp?: (data: TargetCellInfo_2) => any;
|
|
|
3591
3712
|
onDataCellMouseMove?: (data: TargetCellInfo_2) => any;
|
|
3592
3713
|
onDataCellTrendIconClick?: (meta: ViewMeta_2) => any;
|
|
3593
3714
|
onDataCellBrushSelection?: (brushRangeDataCells: DataCell_2[]) => any;
|
|
3594
|
-
onDataCellSelectMove?: (metas:
|
|
3715
|
+
onDataCellSelectMove?: (metas: ViewMetaData_2[]) => any;
|
|
3595
3716
|
onCornerCellHover?: (data: TargetCellInfo_2) => any;
|
|
3596
3717
|
onCornerCellClick?: (data: TargetCellInfo_2) => any;
|
|
3597
3718
|
onCornerCellDoubleClick?: (data: TargetCellInfo_2) => any;
|
|
@@ -3607,20 +3728,16 @@ onMergedCellsMouseDown?: (data: TargetCellInfo_2) => any;
|
|
|
3607
3728
|
onMergedCellsMouseUp?: (data: TargetCellInfo_2) => any;
|
|
3608
3729
|
onMergedCellsMouseMove?: (data: TargetCellInfo_2) => any;
|
|
3609
3730
|
onRangeSort?: (params: SortParams_2) => any;
|
|
3610
|
-
onRangeSorted?: (event:
|
|
3731
|
+
onRangeSorted?: (event: FederatedPointerEvent_2) => any;
|
|
3611
3732
|
onRangeFilter?: (data: {
|
|
3612
3733
|
filterKey: string;
|
|
3613
3734
|
filteredValues: string[];
|
|
3614
3735
|
}) => any;
|
|
3615
|
-
onRangeFiltered?: (data:
|
|
3736
|
+
onRangeFiltered?: (data: ViewMetaData_2[]) => any;
|
|
3616
3737
|
onLayoutAfterHeaderLayout?: (layoutResult: LayoutResult_2) => any;
|
|
3617
|
-
onLayoutPagination?: (data:
|
|
3618
|
-
pageSize: number;
|
|
3619
|
-
pageCount: number;
|
|
3620
|
-
total: number;
|
|
3621
|
-
current: number;
|
|
3622
|
-
}) => any;
|
|
3738
|
+
onLayoutPagination?: (data: LayoutPaginationParams) => any;
|
|
3623
3739
|
onLayoutCellScroll?: (position: CellScrollPosition_2) => any;
|
|
3740
|
+
onLayoutCellMounted?: (cell: S2CellType_2<ViewMeta_2>) => any;
|
|
3624
3741
|
onLayoutCollapseRows?: (data: CollapsedRowsType_2) => any;
|
|
3625
3742
|
onLayoutAfterCollapseRows?: (data: CollapsedRowsType_2) => any;
|
|
3626
3743
|
onCollapseRowsAll?: (hierarchyCollapse: boolean) => any;
|
|
@@ -3631,6 +3748,7 @@ hiddenColumnsDetail: HiddenColumnsInfo_2[];
|
|
|
3631
3748
|
}) => any;
|
|
3632
3749
|
onBeforeRender?: () => any;
|
|
3633
3750
|
onAfterRender?: () => any;
|
|
3751
|
+
onMounted?: (spreadsheet: SpreadSheet_2) => any;
|
|
3634
3752
|
onDestroy?: () => any;
|
|
3635
3753
|
onLayoutResize?: (params: ResizeParams_2) => any;
|
|
3636
3754
|
onLayoutResizeSeriesWidth?: (params: ResizeParams_2) => any;
|
|
@@ -3654,26 +3772,26 @@ resizeInfo?: ResizeInfo_2;
|
|
|
3654
3772
|
onKeyBoardDown?: (event: KeyboardEvent) => any;
|
|
3655
3773
|
onKeyBoardUp?: (event: KeyboardEvent) => any;
|
|
3656
3774
|
onCopied?: (copyData: string) => any;
|
|
3657
|
-
onActionIconHover?: (event:
|
|
3658
|
-
onActionIconHoverOff?: (event:
|
|
3659
|
-
onActionIconClick?: (event:
|
|
3660
|
-
onContextMenu?: (event:
|
|
3661
|
-
onClick?: (event:
|
|
3662
|
-
onHover?: (event:
|
|
3663
|
-
onDoubleClick?: (event:
|
|
3664
|
-
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;
|
|
3665
3783
|
onMouseUp?: (event: MouseEvent) => any;
|
|
3666
3784
|
onMouseDown?: (event: MouseEvent) => any;
|
|
3667
3785
|
onMouseMove?: (event: MouseEvent) => any;
|
|
3668
|
-
onSelected?: (cells:
|
|
3786
|
+
onSelected?: (cells: S2CellType_2<ViewMeta_2>[]) => any;
|
|
3669
3787
|
onReset?: (event: KeyboardEvent) => any;
|
|
3670
3788
|
onLinkFieldJump?: (data: {
|
|
3671
3789
|
key: string;
|
|
3672
|
-
record:
|
|
3790
|
+
record: RawData_2;
|
|
3673
3791
|
}) => any;
|
|
3674
3792
|
onScroll?: (position: CellScrollPosition_2) => any;
|
|
3675
|
-
onRowCellBrushSelection?: (event:
|
|
3676
|
-
onColCellBrushSelection?: (event:
|
|
3793
|
+
onRowCellBrushSelection?: (event: FederatedPointerEvent_2) => any;
|
|
3794
|
+
onColCellBrushSelection?: (event: FederatedPointerEvent_2) => any;
|
|
3677
3795
|
onSpreadsheet?: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2>) => any;
|
|
3678
3796
|
onGetSpreadSheet?: (spreadsheet: SpreadSheet_2) => any;
|
|
3679
3797
|
}, {}>>;
|
|
@@ -3710,7 +3828,7 @@ dataCellMouseUp: (data: TargetCellInfo_2) => void;
|
|
|
3710
3828
|
dataCellMouseMove: (data: TargetCellInfo_2) => void;
|
|
3711
3829
|
dataCellTrendIconClick: (meta: ViewMeta_2) => void;
|
|
3712
3830
|
dataCellBrushSelection: (brushRangeDataCells: DataCell_2[]) => void;
|
|
3713
|
-
dataCellSelectMove: (metas:
|
|
3831
|
+
dataCellSelectMove: (metas: ViewMetaData_2[]) => void;
|
|
3714
3832
|
cornerCellHover: (data: TargetCellInfo_2) => void;
|
|
3715
3833
|
cornerCellClick: (data: TargetCellInfo_2) => void;
|
|
3716
3834
|
cornerCellDoubleClick: (data: TargetCellInfo_2) => void;
|
|
@@ -3726,20 +3844,16 @@ mergedCellsMouseDown: (data: TargetCellInfo_2) => void;
|
|
|
3726
3844
|
mergedCellsMouseUp: (data: TargetCellInfo_2) => void;
|
|
3727
3845
|
mergedCellsMouseMove: (data: TargetCellInfo_2) => void;
|
|
3728
3846
|
rangeSort: (params: SortParams_2) => void;
|
|
3729
|
-
rangeSorted: (event:
|
|
3847
|
+
rangeSorted: (event: FederatedPointerEvent_2) => void;
|
|
3730
3848
|
rangeFilter: (data: {
|
|
3731
3849
|
filterKey: string;
|
|
3732
3850
|
filteredValues: string[];
|
|
3733
3851
|
}) => void;
|
|
3734
|
-
rangeFiltered: (data:
|
|
3852
|
+
rangeFiltered: (data: ViewMetaData_2[]) => void;
|
|
3735
3853
|
layoutAfterHeaderLayout: (layoutResult: LayoutResult_2) => void;
|
|
3736
|
-
layoutPagination: (data:
|
|
3737
|
-
pageSize: number;
|
|
3738
|
-
pageCount: number;
|
|
3739
|
-
total: number;
|
|
3740
|
-
current: number;
|
|
3741
|
-
}) => void;
|
|
3854
|
+
layoutPagination: (data: LayoutPaginationParams) => void;
|
|
3742
3855
|
layoutCellScroll: (position: CellScrollPosition_2) => void;
|
|
3856
|
+
layoutCellMounted: (cell: S2CellType_2<ViewMeta_2>) => void;
|
|
3743
3857
|
layoutCollapseRows: (data: CollapsedRowsType_2) => void;
|
|
3744
3858
|
layoutAfterCollapseRows: (data: CollapsedRowsType_2) => void;
|
|
3745
3859
|
collapseRowsAll: (hierarchyCollapse: boolean) => void;
|
|
@@ -3750,6 +3864,7 @@ hiddenColumnsDetail: HiddenColumnsInfo_2[];
|
|
|
3750
3864
|
}) => void;
|
|
3751
3865
|
beforeRender: () => void;
|
|
3752
3866
|
afterRender: () => void;
|
|
3867
|
+
mounted: (spreadsheet: SpreadSheet_2) => void;
|
|
3753
3868
|
destroy: () => void;
|
|
3754
3869
|
layoutResize: (params: ResizeParams_2) => void;
|
|
3755
3870
|
layoutResizeSeriesWidth: (params: ResizeParams_2) => void;
|
|
@@ -3773,27 +3888,27 @@ resizeInfo?: ResizeInfo_2;
|
|
|
3773
3888
|
keyBoardDown: (event: KeyboardEvent) => void;
|
|
3774
3889
|
keyBoardUp: (event: KeyboardEvent) => void;
|
|
3775
3890
|
copied: (copyData: string) => void;
|
|
3776
|
-
actionIconHover: (event:
|
|
3777
|
-
actionIconHoverOff: (event:
|
|
3778
|
-
actionIconClick: (event:
|
|
3779
|
-
contextMenu: (event:
|
|
3780
|
-
click: (event:
|
|
3781
|
-
hover: (event:
|
|
3782
|
-
doubleClick: (event:
|
|
3783
|
-
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;
|
|
3784
3899
|
mouseUp: (event: MouseEvent) => void;
|
|
3785
3900
|
mouseDown: (event: MouseEvent) => void;
|
|
3786
3901
|
mouseMove: (event: MouseEvent) => void;
|
|
3787
|
-
selected: (cells:
|
|
3902
|
+
selected: (cells: S2CellType_2<ViewMeta_2>[]) => void;
|
|
3788
3903
|
reset: (event: KeyboardEvent) => void;
|
|
3789
3904
|
linkFieldJump: (data: {
|
|
3790
3905
|
key: string;
|
|
3791
|
-
record:
|
|
3906
|
+
record: RawData_2;
|
|
3792
3907
|
}) => void;
|
|
3793
3908
|
scroll: (position: CellScrollPosition_2) => void;
|
|
3794
|
-
rowCellBrushSelection: (event:
|
|
3795
|
-
colCellBrushSelection: (event:
|
|
3796
|
-
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<GetInitProps<SheetComponentProps, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "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" | "onLayoutCollapseRows" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "onBeforeRender" | "onAfterRender" | "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">>> & {
|
|
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">>> & {
|
|
3797
3912
|
onSheetUpdate?: (params: S2RenderOptions_2) => any;
|
|
3798
3913
|
onRowCellHover?: (data: TargetCellInfo_2) => any;
|
|
3799
3914
|
onRowCellClick?: (data: TargetCellInfo_2) => any;
|
|
@@ -3824,7 +3939,7 @@ onDataCellMouseUp?: (data: TargetCellInfo_2) => any;
|
|
|
3824
3939
|
onDataCellMouseMove?: (data: TargetCellInfo_2) => any;
|
|
3825
3940
|
onDataCellTrendIconClick?: (meta: ViewMeta_2) => any;
|
|
3826
3941
|
onDataCellBrushSelection?: (brushRangeDataCells: DataCell_2[]) => any;
|
|
3827
|
-
onDataCellSelectMove?: (metas:
|
|
3942
|
+
onDataCellSelectMove?: (metas: ViewMetaData_2[]) => any;
|
|
3828
3943
|
onCornerCellHover?: (data: TargetCellInfo_2) => any;
|
|
3829
3944
|
onCornerCellClick?: (data: TargetCellInfo_2) => any;
|
|
3830
3945
|
onCornerCellDoubleClick?: (data: TargetCellInfo_2) => any;
|
|
@@ -3840,20 +3955,16 @@ onMergedCellsMouseDown?: (data: TargetCellInfo_2) => any;
|
|
|
3840
3955
|
onMergedCellsMouseUp?: (data: TargetCellInfo_2) => any;
|
|
3841
3956
|
onMergedCellsMouseMove?: (data: TargetCellInfo_2) => any;
|
|
3842
3957
|
onRangeSort?: (params: SortParams_2) => any;
|
|
3843
|
-
onRangeSorted?: (event:
|
|
3958
|
+
onRangeSorted?: (event: FederatedPointerEvent_2) => any;
|
|
3844
3959
|
onRangeFilter?: (data: {
|
|
3845
3960
|
filterKey: string;
|
|
3846
3961
|
filteredValues: string[];
|
|
3847
3962
|
}) => any;
|
|
3848
|
-
onRangeFiltered?: (data:
|
|
3963
|
+
onRangeFiltered?: (data: ViewMetaData_2[]) => any;
|
|
3849
3964
|
onLayoutAfterHeaderLayout?: (layoutResult: LayoutResult_2) => any;
|
|
3850
|
-
onLayoutPagination?: (data:
|
|
3851
|
-
pageSize: number;
|
|
3852
|
-
pageCount: number;
|
|
3853
|
-
total: number;
|
|
3854
|
-
current: number;
|
|
3855
|
-
}) => any;
|
|
3965
|
+
onLayoutPagination?: (data: LayoutPaginationParams) => any;
|
|
3856
3966
|
onLayoutCellScroll?: (position: CellScrollPosition_2) => any;
|
|
3967
|
+
onLayoutCellMounted?: (cell: S2CellType_2<ViewMeta_2>) => any;
|
|
3857
3968
|
onLayoutCollapseRows?: (data: CollapsedRowsType_2) => any;
|
|
3858
3969
|
onLayoutAfterCollapseRows?: (data: CollapsedRowsType_2) => any;
|
|
3859
3970
|
onCollapseRowsAll?: (hierarchyCollapse: boolean) => any;
|
|
@@ -3864,6 +3975,7 @@ hiddenColumnsDetail: HiddenColumnsInfo_2[];
|
|
|
3864
3975
|
}) => any;
|
|
3865
3976
|
onBeforeRender?: () => any;
|
|
3866
3977
|
onAfterRender?: () => any;
|
|
3978
|
+
onMounted?: (spreadsheet: SpreadSheet_2) => any;
|
|
3867
3979
|
onDestroy?: () => any;
|
|
3868
3980
|
onLayoutResize?: (params: ResizeParams_2) => any;
|
|
3869
3981
|
onLayoutResizeSeriesWidth?: (params: ResizeParams_2) => any;
|
|
@@ -3887,26 +3999,26 @@ resizeInfo?: ResizeInfo_2;
|
|
|
3887
3999
|
onKeyBoardDown?: (event: KeyboardEvent) => any;
|
|
3888
4000
|
onKeyBoardUp?: (event: KeyboardEvent) => any;
|
|
3889
4001
|
onCopied?: (copyData: string) => any;
|
|
3890
|
-
onActionIconHover?: (event:
|
|
3891
|
-
onActionIconHoverOff?: (event:
|
|
3892
|
-
onActionIconClick?: (event:
|
|
3893
|
-
onContextMenu?: (event:
|
|
3894
|
-
onClick?: (event:
|
|
3895
|
-
onHover?: (event:
|
|
3896
|
-
onDoubleClick?: (event:
|
|
3897
|
-
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;
|
|
3898
4010
|
onMouseUp?: (event: MouseEvent) => any;
|
|
3899
4011
|
onMouseDown?: (event: MouseEvent) => any;
|
|
3900
4012
|
onMouseMove?: (event: MouseEvent) => any;
|
|
3901
|
-
onSelected?: (cells:
|
|
4013
|
+
onSelected?: (cells: S2CellType_2<ViewMeta_2>[]) => any;
|
|
3902
4014
|
onReset?: (event: KeyboardEvent) => any;
|
|
3903
4015
|
onLinkFieldJump?: (data: {
|
|
3904
4016
|
key: string;
|
|
3905
|
-
record:
|
|
4017
|
+
record: RawData_2;
|
|
3906
4018
|
}) => any;
|
|
3907
4019
|
onScroll?: (position: CellScrollPosition_2) => any;
|
|
3908
|
-
onRowCellBrushSelection?: (event:
|
|
3909
|
-
onColCellBrushSelection?: (event:
|
|
4020
|
+
onRowCellBrushSelection?: (event: FederatedPointerEvent_2) => any;
|
|
4021
|
+
onColCellBrushSelection?: (event: FederatedPointerEvent_2) => any;
|
|
3910
4022
|
onSpreadsheet?: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2>) => any;
|
|
3911
4023
|
onGetSpreadSheet?: (spreadsheet: SpreadSheet_2) => any;
|
|
3912
4024
|
}, {}>;
|
|
@@ -3919,12 +4031,19 @@ export declare interface SheetExpose {
|
|
|
3919
4031
|
instance: SpreadSheet | undefined;
|
|
3920
4032
|
}
|
|
3921
4033
|
|
|
3922
|
-
declare type SheetType = 'pivot' | 'table' | 'gridAnalysis' | 'strategy';
|
|
4034
|
+
declare type SheetType = 'pivot' | 'table' | 'chart' | 'gridAnalysis' | 'strategy' | 'editable';
|
|
3923
4035
|
|
|
3924
4036
|
/** render callback */
|
|
3925
4037
|
declare type SheetUpdateCallback = (params: S2RenderOptions) => S2RenderOptions;
|
|
3926
4038
|
|
|
3927
|
-
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;
|
|
3928
4047
|
|
|
3929
4048
|
declare interface Sort {
|
|
3930
4049
|
/** 字段id,业务中一般是displayId */
|
|
@@ -3940,17 +4059,17 @@ declare interface Sort {
|
|
|
3940
4059
|
type?: string;
|
|
3941
4060
|
}
|
|
3942
4061
|
|
|
3943
|
-
declare type SortedHandler = (rangeData:
|
|
4062
|
+
declare type SortedHandler = (rangeData: RawData_2[]) => any;
|
|
3944
4063
|
|
|
3945
4064
|
declare interface SortFuncParam extends Sort {
|
|
3946
|
-
data: Array<string | Record<string, any
|
|
4065
|
+
data: Array<string | Record<string, any>> | undefined;
|
|
3947
4066
|
}
|
|
3948
4067
|
|
|
3949
4068
|
declare type SortMethod = 'ASC' | 'DESC' | 'asc' | 'desc';
|
|
3950
4069
|
|
|
3951
4070
|
declare interface SortParam extends Sort {
|
|
3952
4071
|
/** 自定义func */
|
|
3953
|
-
sortFunc?: (
|
|
4072
|
+
sortFunc?: (param: SortFuncParam) => Array<string | Record<string, any>>;
|
|
3954
4073
|
}
|
|
3955
4074
|
|
|
3956
4075
|
declare type SortParams_2 = SortParam[];
|
|
@@ -3975,10 +4094,6 @@ declare abstract class SpreadSheet_2 extends EE {
|
|
|
3975
4094
|
store: Store;
|
|
3976
4095
|
dataCfg: S2DataConfig_2;
|
|
3977
4096
|
options: S2Options_2;
|
|
3978
|
-
/**
|
|
3979
|
-
* processed data structure, include {@link Fields}, {@link Meta}
|
|
3980
|
-
* {@link Data}, {@link SortParams}
|
|
3981
|
-
*/
|
|
3982
4097
|
dataSet: BaseDataSet_2;
|
|
3983
4098
|
/**
|
|
3984
4099
|
* Facet: determine how to render headers/cell
|
|
@@ -3986,23 +4101,13 @@ declare abstract class SpreadSheet_2 extends EE {
|
|
|
3986
4101
|
facet: BaseFacet;
|
|
3987
4102
|
tooltip: BaseTooltip_2;
|
|
3988
4103
|
container: Canvas;
|
|
3989
|
-
backgroundGroup: IGroup;
|
|
3990
|
-
panelGroup: IGroup;
|
|
3991
|
-
panelScrollGroup: PanelScrollGroup;
|
|
3992
|
-
frozenRowGroup: FrozenGroup_2;
|
|
3993
|
-
frozenColGroup: FrozenGroup_2;
|
|
3994
|
-
frozenTrailingRowGroup: FrozenGroup_2;
|
|
3995
|
-
frozenTrailingColGroup: FrozenGroup_2;
|
|
3996
|
-
frozenTopGroup: FrozenGroup_2;
|
|
3997
|
-
frozenBottomGroup: FrozenGroup_2;
|
|
3998
|
-
foregroundGroup: IGroup;
|
|
3999
4104
|
interaction: RootInteraction;
|
|
4000
4105
|
hdAdapter: HdAdapter;
|
|
4001
4106
|
private untypedOn;
|
|
4002
4107
|
private untypedEmit;
|
|
4003
4108
|
on: <K extends keyof EmitterType>(event: K, listener: EmitterType[K]) => this;
|
|
4004
4109
|
emit: <K extends keyof EmitterType>(event: K, ...args: Parameters<EmitterType[K]>) => boolean;
|
|
4005
|
-
constructor(dom: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2);
|
|
4110
|
+
constructor(dom: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2 | null);
|
|
4006
4111
|
private setOverscrollBehavior;
|
|
4007
4112
|
private restoreOverscrollBehavior;
|
|
4008
4113
|
private setDebug;
|
|
@@ -4013,11 +4118,18 @@ declare abstract class SpreadSheet_2 extends EE {
|
|
|
4013
4118
|
private initTooltip;
|
|
4014
4119
|
private renderTooltip;
|
|
4015
4120
|
protected abstract bindEvents(): void;
|
|
4016
|
-
abstract getDataSet(
|
|
4121
|
+
abstract getDataSet(): BaseDataSet_2;
|
|
4122
|
+
/**
|
|
4123
|
+
* 是否开启冻结行列头效果
|
|
4124
|
+
*/
|
|
4125
|
+
abstract enableFrozenHeaders(): boolean;
|
|
4017
4126
|
/**
|
|
4018
4127
|
* Check if is pivot mode
|
|
4019
4128
|
*/
|
|
4020
4129
|
abstract isPivotMode(): boolean;
|
|
4130
|
+
abstract isCustomHeaderFields(fieldType?: keyof Pick<Fields, 'columns' | 'rows'>): boolean;
|
|
4131
|
+
abstract isCustomRowFields(): boolean;
|
|
4132
|
+
abstract isCustomColumnFields(): boolean;
|
|
4021
4133
|
/**
|
|
4022
4134
|
* tree type must be in strategy mode
|
|
4023
4135
|
*/
|
|
@@ -4046,9 +4158,9 @@ declare abstract class SpreadSheet_2 extends EE {
|
|
|
4046
4158
|
protected abstract getFacetCfgFromDataSetAndOptions(): SpreadSheetFacetCfg;
|
|
4047
4159
|
protected abstract buildFacet(): void;
|
|
4048
4160
|
abstract clearDrillDownData(rowNodeId?: string, preventRender?: boolean): void;
|
|
4049
|
-
abstract handleGroupSort(event:
|
|
4161
|
+
abstract handleGroupSort(event: FederatedPointerEvent, meta: Node_2_2): void;
|
|
4050
4162
|
showTooltip<T = TooltipContentType_2>(showOptions: TooltipShowOptions<T>): void;
|
|
4051
|
-
showTooltipWithInfo(event:
|
|
4163
|
+
showTooltipWithInfo(event: FederatedPointerEvent | MouseEvent, data: TooltipData[], options?: TooltipOptions): void;
|
|
4052
4164
|
hideTooltip(): void;
|
|
4053
4165
|
destroyTooltip(): void;
|
|
4054
4166
|
registerIcons(): void;
|
|
@@ -4057,9 +4169,10 @@ declare abstract class SpreadSheet_2 extends EE {
|
|
|
4057
4169
|
* Group sort params kept in {@see store} and
|
|
4058
4170
|
* Priority: group sort > advanced sort
|
|
4059
4171
|
* @param dataCfg
|
|
4172
|
+
* @param reset reset: true, 直接使用用户传入的 DataCfg ,不再与上次数据进行合并
|
|
4060
4173
|
*/
|
|
4061
|
-
setDataCfg(dataCfg: S2DataConfig_2): void;
|
|
4062
|
-
setOptions(options: Partial<S2Options_2
|
|
4174
|
+
setDataCfg(dataCfg: S2DataConfig_2, reset?: boolean): void;
|
|
4175
|
+
setOptions(options: Partial<S2Options_2>, reset?: boolean): void;
|
|
4063
4176
|
render(reloadData?: boolean, options?: S2RenderOptions_2): void;
|
|
4064
4177
|
destroy(): void;
|
|
4065
4178
|
setThemeCfg(themeCfg?: ThemeCfg_2): void;
|
|
@@ -4106,9 +4219,9 @@ declare abstract class SpreadSheet_2 extends EE {
|
|
|
4106
4219
|
* but offsetY(vertical scroll don't need animation)
|
|
4107
4220
|
*/
|
|
4108
4221
|
updateScrollOffset(offsetConfig: OffsetConfig): void;
|
|
4109
|
-
getTooltipDataItemMappingCallback(): MappingDataItemCallback;
|
|
4110
|
-
getCell<T extends
|
|
4111
|
-
getCellType(target:
|
|
4222
|
+
getTooltipDataItemMappingCallback(): MappingDataItemCallback | undefined;
|
|
4223
|
+
getCell<T extends S2CellType_2 = S2CellType_2>(target: CellEventTarget): T | null;
|
|
4224
|
+
getCellType(target: CellEventTarget): CellTypes | undefined;
|
|
4112
4225
|
/**
|
|
4113
4226
|
* get total's config by dimension id
|
|
4114
4227
|
* @param dimension unique dimension id
|
|
@@ -4123,20 +4236,33 @@ declare abstract class SpreadSheet_2 extends EE {
|
|
|
4123
4236
|
* @param dom
|
|
4124
4237
|
* @private
|
|
4125
4238
|
*/
|
|
4126
|
-
protected
|
|
4239
|
+
protected initContainer(dom: S2MountContainer_2): void;
|
|
4127
4240
|
protected updateContainerStyle(): void;
|
|
4128
|
-
protected initPanelGroupChildren(): void;
|
|
4129
4241
|
getInitColumnLeafNodes(): Node_2_2[];
|
|
4130
4242
|
clearColumnLeafNodes(): void;
|
|
4131
4243
|
private initHiddenColumnsDetail;
|
|
4132
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;
|
|
4133
4252
|
/**
|
|
4134
4253
|
* 计算文本在画布中的宽度
|
|
4135
4254
|
* @param text 待计算的文本
|
|
4136
4255
|
* @param font 文本 css 样式
|
|
4137
4256
|
* @returns 文本宽度
|
|
4138
4257
|
*/
|
|
4139
|
-
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;
|
|
4140
4266
|
/**
|
|
4141
4267
|
* 粗略计算文本在画布中的宽度
|
|
4142
4268
|
* @param text 待计算的文本
|
|
@@ -4144,12 +4270,11 @@ declare abstract class SpreadSheet_2 extends EE {
|
|
|
4144
4270
|
* @returns 文本宽度
|
|
4145
4271
|
*/
|
|
4146
4272
|
measureTextWidthRoughly: (text: any, font?: any) => number;
|
|
4273
|
+
updateSortMethodMap(nodeId: string, sortMethod: SortMethod, replace?: boolean): void;
|
|
4274
|
+
getMenuDefaultSelectedKeys(nodeId: string): string[];
|
|
4147
4275
|
}
|
|
4148
4276
|
|
|
4149
|
-
|
|
4150
|
-
* Spreadsheet facet config
|
|
4151
|
-
*/
|
|
4152
|
-
declare interface SpreadSheetFacetCfg extends Fields, S2BasicOptions, S2TableSheetOptions, Style {
|
|
4277
|
+
declare interface SpreadSheetFacetCfg extends Fields, S2BasicOptions, S2TableSheetOptions, S2Style {
|
|
4153
4278
|
spreadsheet: SpreadSheet_2;
|
|
4154
4279
|
dataSet: BaseDataSet_2;
|
|
4155
4280
|
meta?: Meta[];
|
|
@@ -4177,7 +4302,7 @@ declare interface StoreKey {
|
|
|
4177
4302
|
scrollY: number;
|
|
4178
4303
|
hRowScrollX: number;
|
|
4179
4304
|
sortParam: SortParam;
|
|
4180
|
-
drillDownIdPathMap: Map<string,
|
|
4305
|
+
drillDownIdPathMap: Map<string, DataPath[]>;
|
|
4181
4306
|
drillDownNode: Node_2_2;
|
|
4182
4307
|
drillItemsNum: number;
|
|
4183
4308
|
drillDownFieldInLevel: PartDrillDownFieldInLevel[];
|
|
@@ -4186,7 +4311,7 @@ declare interface StoreKey {
|
|
|
4186
4311
|
panelBBox: BBox;
|
|
4187
4312
|
activeResizeArea: Group;
|
|
4188
4313
|
valueRanges: ValueRanges;
|
|
4189
|
-
initColumnLeafNodes: Node_2_2[];
|
|
4314
|
+
initColumnLeafNodes: Node_2_2[] | undefined;
|
|
4190
4315
|
/**
|
|
4191
4316
|
* 隐藏列详情
|
|
4192
4317
|
* | a, b, [c,d 隐藏] [icon e ] , [f 隐藏], [icon g] |
|
|
@@ -4195,26 +4320,48 @@ declare interface StoreKey {
|
|
|
4195
4320
|
lastRenderedColumnFields: string[];
|
|
4196
4321
|
resized: boolean;
|
|
4197
4322
|
visibleActionIcons: GuiIcon[];
|
|
4198
|
-
lastClickedCell:
|
|
4323
|
+
lastClickedCell: S2CellType_2<ViewMeta_2> | null;
|
|
4199
4324
|
initOverscrollBehavior: InteractionOptions['overscrollBehavior'];
|
|
4325
|
+
sortMethodMap: Record<string, SortMethod> | null;
|
|
4200
4326
|
[key: string]: unknown;
|
|
4201
4327
|
}
|
|
4202
4328
|
|
|
4203
|
-
declare
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
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;
|
|
4344
|
+
}
|
|
4345
|
+
|
|
4346
|
+
declare class TableCornerCell extends TableColCell {
|
|
4347
|
+
getStyle(name?: string): any;
|
|
4348
|
+
protected showSortIcon(): boolean;
|
|
4215
4349
|
}
|
|
4216
4350
|
|
|
4217
|
-
|
|
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">, {
|
|
4218
4365
|
s2Ref: ShallowRef<SheetExpose>;
|
|
4219
4366
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
4220
4367
|
spreadsheet: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2>) => SpreadSheet_2;
|
|
@@ -4249,7 +4396,7 @@ dataCellMouseUp: (data: TargetCellInfo_2) => void;
|
|
|
4249
4396
|
dataCellMouseMove: (data: TargetCellInfo_2) => void;
|
|
4250
4397
|
dataCellTrendIconClick: (meta: ViewMeta_2) => void;
|
|
4251
4398
|
dataCellBrushSelection: (brushRangeDataCells: DataCell_2[]) => void;
|
|
4252
|
-
dataCellSelectMove: (metas:
|
|
4399
|
+
dataCellSelectMove: (metas: ViewMetaData_2[]) => void;
|
|
4253
4400
|
cornerCellHover: (data: TargetCellInfo_2) => void;
|
|
4254
4401
|
cornerCellClick: (data: TargetCellInfo_2) => void;
|
|
4255
4402
|
cornerCellDoubleClick: (data: TargetCellInfo_2) => void;
|
|
@@ -4265,20 +4412,16 @@ mergedCellsMouseDown: (data: TargetCellInfo_2) => void;
|
|
|
4265
4412
|
mergedCellsMouseUp: (data: TargetCellInfo_2) => void;
|
|
4266
4413
|
mergedCellsMouseMove: (data: TargetCellInfo_2) => void;
|
|
4267
4414
|
rangeSort: (params: SortParams_2) => void;
|
|
4268
|
-
rangeSorted: (event:
|
|
4415
|
+
rangeSorted: (event: FederatedPointerEvent_2) => void;
|
|
4269
4416
|
rangeFilter: (data: {
|
|
4270
4417
|
filterKey: string;
|
|
4271
4418
|
filteredValues: string[];
|
|
4272
4419
|
}) => void;
|
|
4273
|
-
rangeFiltered: (data:
|
|
4420
|
+
rangeFiltered: (data: ViewMetaData_2[]) => void;
|
|
4274
4421
|
layoutAfterHeaderLayout: (layoutResult: LayoutResult_2) => void;
|
|
4275
|
-
layoutPagination: (data:
|
|
4276
|
-
pageSize: number;
|
|
4277
|
-
pageCount: number;
|
|
4278
|
-
total: number;
|
|
4279
|
-
current: number;
|
|
4280
|
-
}) => void;
|
|
4422
|
+
layoutPagination: (data: LayoutPaginationParams) => void;
|
|
4281
4423
|
layoutCellScroll: (position: CellScrollPosition_2) => void;
|
|
4424
|
+
layoutCellMounted: (cell: S2CellType_2<ViewMeta_2>) => void;
|
|
4282
4425
|
layoutCollapseRows: (data: CollapsedRowsType_2) => void;
|
|
4283
4426
|
layoutAfterCollapseRows: (data: CollapsedRowsType_2) => void;
|
|
4284
4427
|
collapseRowsAll: (hierarchyCollapse: boolean) => void;
|
|
@@ -4289,6 +4432,7 @@ hiddenColumnsDetail: HiddenColumnsInfo_2[];
|
|
|
4289
4432
|
}) => void;
|
|
4290
4433
|
beforeRender: () => void;
|
|
4291
4434
|
afterRender: () => void;
|
|
4435
|
+
mounted: (spreadsheet: SpreadSheet_2) => void;
|
|
4292
4436
|
destroy: () => void;
|
|
4293
4437
|
layoutResize: (params: ResizeParams_2) => void;
|
|
4294
4438
|
layoutResizeSeriesWidth: (params: ResizeParams_2) => void;
|
|
@@ -4312,27 +4456,27 @@ resizeInfo?: ResizeInfo_2;
|
|
|
4312
4456
|
keyBoardDown: (event: KeyboardEvent) => void;
|
|
4313
4457
|
keyBoardUp: (event: KeyboardEvent) => void;
|
|
4314
4458
|
copied: (copyData: string) => void;
|
|
4315
|
-
actionIconHover: (event:
|
|
4316
|
-
actionIconHoverOff: (event:
|
|
4317
|
-
actionIconClick: (event:
|
|
4318
|
-
contextMenu: (event:
|
|
4319
|
-
click: (event:
|
|
4320
|
-
hover: (event:
|
|
4321
|
-
doubleClick: (event:
|
|
4322
|
-
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;
|
|
4323
4467
|
mouseUp: (event: MouseEvent) => void;
|
|
4324
4468
|
mouseDown: (event: MouseEvent) => void;
|
|
4325
4469
|
mouseMove: (event: MouseEvent) => void;
|
|
4326
|
-
selected: (cells:
|
|
4470
|
+
selected: (cells: S2CellType_2<ViewMeta_2>[]) => void;
|
|
4327
4471
|
reset: (event: KeyboardEvent) => void;
|
|
4328
4472
|
linkFieldJump: (data: {
|
|
4329
4473
|
key: string;
|
|
4330
|
-
record:
|
|
4474
|
+
record: RawData_2;
|
|
4331
4475
|
}) => void;
|
|
4332
4476
|
scroll: (position: CellScrollPosition_2) => void;
|
|
4333
|
-
rowCellBrushSelection: (event:
|
|
4334
|
-
colCellBrushSelection: (event:
|
|
4335
|
-
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<GetInitProps<SheetComponentProps, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "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" | "onLayoutCollapseRows" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "onBeforeRender" | "onAfterRender" | "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">>> & {
|
|
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">>> & {
|
|
4336
4480
|
onSheetUpdate?: (params: S2RenderOptions_2) => any;
|
|
4337
4481
|
onRowCellHover?: (data: TargetCellInfo_2) => any;
|
|
4338
4482
|
onRowCellClick?: (data: TargetCellInfo_2) => any;
|
|
@@ -4363,7 +4507,7 @@ onDataCellMouseUp?: (data: TargetCellInfo_2) => any;
|
|
|
4363
4507
|
onDataCellMouseMove?: (data: TargetCellInfo_2) => any;
|
|
4364
4508
|
onDataCellTrendIconClick?: (meta: ViewMeta_2) => any;
|
|
4365
4509
|
onDataCellBrushSelection?: (brushRangeDataCells: DataCell_2[]) => any;
|
|
4366
|
-
onDataCellSelectMove?: (metas:
|
|
4510
|
+
onDataCellSelectMove?: (metas: ViewMetaData_2[]) => any;
|
|
4367
4511
|
onCornerCellHover?: (data: TargetCellInfo_2) => any;
|
|
4368
4512
|
onCornerCellClick?: (data: TargetCellInfo_2) => any;
|
|
4369
4513
|
onCornerCellDoubleClick?: (data: TargetCellInfo_2) => any;
|
|
@@ -4379,20 +4523,16 @@ onMergedCellsMouseDown?: (data: TargetCellInfo_2) => any;
|
|
|
4379
4523
|
onMergedCellsMouseUp?: (data: TargetCellInfo_2) => any;
|
|
4380
4524
|
onMergedCellsMouseMove?: (data: TargetCellInfo_2) => any;
|
|
4381
4525
|
onRangeSort?: (params: SortParams_2) => any;
|
|
4382
|
-
onRangeSorted?: (event:
|
|
4526
|
+
onRangeSorted?: (event: FederatedPointerEvent_2) => any;
|
|
4383
4527
|
onRangeFilter?: (data: {
|
|
4384
4528
|
filterKey: string;
|
|
4385
4529
|
filteredValues: string[];
|
|
4386
4530
|
}) => any;
|
|
4387
|
-
onRangeFiltered?: (data:
|
|
4531
|
+
onRangeFiltered?: (data: ViewMetaData_2[]) => any;
|
|
4388
4532
|
onLayoutAfterHeaderLayout?: (layoutResult: LayoutResult_2) => any;
|
|
4389
|
-
onLayoutPagination?: (data:
|
|
4390
|
-
pageSize: number;
|
|
4391
|
-
pageCount: number;
|
|
4392
|
-
total: number;
|
|
4393
|
-
current: number;
|
|
4394
|
-
}) => any;
|
|
4533
|
+
onLayoutPagination?: (data: LayoutPaginationParams) => any;
|
|
4395
4534
|
onLayoutCellScroll?: (position: CellScrollPosition_2) => any;
|
|
4535
|
+
onLayoutCellMounted?: (cell: S2CellType_2<ViewMeta_2>) => any;
|
|
4396
4536
|
onLayoutCollapseRows?: (data: CollapsedRowsType_2) => any;
|
|
4397
4537
|
onLayoutAfterCollapseRows?: (data: CollapsedRowsType_2) => any;
|
|
4398
4538
|
onCollapseRowsAll?: (hierarchyCollapse: boolean) => any;
|
|
@@ -4403,6 +4543,7 @@ hiddenColumnsDetail: HiddenColumnsInfo_2[];
|
|
|
4403
4543
|
}) => any;
|
|
4404
4544
|
onBeforeRender?: () => any;
|
|
4405
4545
|
onAfterRender?: () => any;
|
|
4546
|
+
onMounted?: (spreadsheet: SpreadSheet_2) => any;
|
|
4406
4547
|
onDestroy?: () => any;
|
|
4407
4548
|
onLayoutResize?: (params: ResizeParams_2) => any;
|
|
4408
4549
|
onLayoutResizeSeriesWidth?: (params: ResizeParams_2) => any;
|
|
@@ -4426,33 +4567,33 @@ resizeInfo?: ResizeInfo_2;
|
|
|
4426
4567
|
onKeyBoardDown?: (event: KeyboardEvent) => any;
|
|
4427
4568
|
onKeyBoardUp?: (event: KeyboardEvent) => any;
|
|
4428
4569
|
onCopied?: (copyData: string) => any;
|
|
4429
|
-
onActionIconHover?: (event:
|
|
4430
|
-
onActionIconHoverOff?: (event:
|
|
4431
|
-
onActionIconClick?: (event:
|
|
4432
|
-
onContextMenu?: (event:
|
|
4433
|
-
onClick?: (event:
|
|
4434
|
-
onHover?: (event:
|
|
4435
|
-
onDoubleClick?: (event:
|
|
4436
|
-
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;
|
|
4437
4578
|
onMouseUp?: (event: MouseEvent) => any;
|
|
4438
4579
|
onMouseDown?: (event: MouseEvent) => any;
|
|
4439
4580
|
onMouseMove?: (event: MouseEvent) => any;
|
|
4440
|
-
onSelected?: (cells:
|
|
4581
|
+
onSelected?: (cells: S2CellType_2<ViewMeta_2>[]) => any;
|
|
4441
4582
|
onReset?: (event: KeyboardEvent) => any;
|
|
4442
4583
|
onLinkFieldJump?: (data: {
|
|
4443
4584
|
key: string;
|
|
4444
|
-
record:
|
|
4585
|
+
record: RawData_2;
|
|
4445
4586
|
}) => any;
|
|
4446
4587
|
onScroll?: (position: CellScrollPosition_2) => any;
|
|
4447
|
-
onRowCellBrushSelection?: (event:
|
|
4448
|
-
onColCellBrushSelection?: (event:
|
|
4588
|
+
onRowCellBrushSelection?: (event: FederatedPointerEvent_2) => any;
|
|
4589
|
+
onColCellBrushSelection?: (event: FederatedPointerEvent_2) => any;
|
|
4449
4590
|
onSpreadsheet?: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2>) => any;
|
|
4450
4591
|
onGetSpreadSheet?: (spreadsheet: SpreadSheet_2) => any;
|
|
4451
4592
|
}, {}>;
|
|
4452
4593
|
|
|
4453
4594
|
declare interface TargetCellInfo_2 {
|
|
4454
|
-
target:
|
|
4455
|
-
event:
|
|
4595
|
+
target: S2CellType_2;
|
|
4596
|
+
event: FederatedPointerEvent;
|
|
4456
4597
|
viewMeta: Node_2_2;
|
|
4457
4598
|
}
|
|
4458
4599
|
|
|
@@ -4489,28 +4630,34 @@ declare interface Tooltip<T = TooltipContentType_2> extends BaseTooltipConfig<T>
|
|
|
4489
4630
|
data?: BaseTooltipConfig<T>;
|
|
4490
4631
|
}
|
|
4491
4632
|
|
|
4492
|
-
declare type TooltipAutoAdjustBoundary = 'body' | 'container';
|
|
4633
|
+
declare type TooltipAutoAdjustBoundary = 'body' | 'container' | null | undefined;
|
|
4493
4634
|
|
|
4494
|
-
declare type TooltipContentType_2 = Element | string;
|
|
4635
|
+
declare type TooltipContentType_2 = Element | string | undefined | null;
|
|
4495
4636
|
|
|
4496
4637
|
declare type TooltipData = {
|
|
4497
4638
|
summaries?: TooltipSummaryOptions[];
|
|
4498
|
-
details?:
|
|
4499
|
-
headInfo?: TooltipHeadInfo;
|
|
4500
|
-
name?: string;
|
|
4639
|
+
details?: TooltipDetailListItem[] | null | undefined;
|
|
4640
|
+
headInfo?: TooltipHeadInfo | null | undefined;
|
|
4641
|
+
name?: string | null | undefined;
|
|
4501
4642
|
tips?: string;
|
|
4502
4643
|
infos?: string;
|
|
4503
4644
|
interpretation?: TooltipInterpretationOptions;
|
|
4504
|
-
colIndex?: number;
|
|
4505
|
-
rowIndex?: number;
|
|
4645
|
+
colIndex?: number | null;
|
|
4646
|
+
rowIndex?: number | null;
|
|
4506
4647
|
description?: string;
|
|
4507
4648
|
};
|
|
4508
4649
|
|
|
4509
|
-
declare type TooltipDataItem =
|
|
4650
|
+
declare type TooltipDataItem = Data;
|
|
4651
|
+
|
|
4652
|
+
declare type TooltipDetailListItem = {
|
|
4653
|
+
name: string;
|
|
4654
|
+
value: string | number;
|
|
4655
|
+
icon?: Element | string;
|
|
4656
|
+
};
|
|
4510
4657
|
|
|
4511
4658
|
declare type TooltipHeadInfo = {
|
|
4512
|
-
rows:
|
|
4513
|
-
cols:
|
|
4659
|
+
rows: TooltipDetailListItem[];
|
|
4660
|
+
cols: TooltipDetailListItem[];
|
|
4514
4661
|
};
|
|
4515
4662
|
|
|
4516
4663
|
declare type TooltipInterpretationOptions = {
|
|
@@ -4527,18 +4674,24 @@ declare interface TooltipOperation extends TooltipOperatorOptions {
|
|
|
4527
4674
|
tableSort?: boolean;
|
|
4528
4675
|
}
|
|
4529
4676
|
|
|
4677
|
+
declare type TooltipOperatorClickHandler = (params: {
|
|
4678
|
+
key: SortMethod;
|
|
4679
|
+
[key: string]: unknown;
|
|
4680
|
+
}) => void;
|
|
4681
|
+
|
|
4530
4682
|
declare interface TooltipOperatorMenu {
|
|
4531
4683
|
key: string;
|
|
4532
4684
|
icon?: Element | string;
|
|
4533
4685
|
text?: string;
|
|
4534
|
-
onClick?: (cell:
|
|
4535
|
-
visible?: boolean | ((cell:
|
|
4686
|
+
onClick?: (cell: S2CellType_2) => void;
|
|
4687
|
+
visible?: boolean | ((cell: S2CellType_2) => boolean);
|
|
4536
4688
|
children?: TooltipOperatorMenu[];
|
|
4537
4689
|
}
|
|
4538
4690
|
|
|
4539
4691
|
declare interface TooltipOperatorOptions {
|
|
4540
|
-
onClick?:
|
|
4692
|
+
onClick?: TooltipOperatorClickHandler;
|
|
4541
4693
|
menus?: TooltipOperatorMenu[];
|
|
4694
|
+
defaultSelectedKeys?: string[];
|
|
4542
4695
|
}
|
|
4543
4696
|
|
|
4544
4697
|
declare interface TooltipOptions {
|
|
@@ -4549,6 +4702,7 @@ declare interface TooltipOptions {
|
|
|
4549
4702
|
showSingleTips?: boolean;
|
|
4550
4703
|
onlyMenu?: boolean;
|
|
4551
4704
|
enableFormat?: boolean;
|
|
4705
|
+
forceRender?: boolean;
|
|
4552
4706
|
}
|
|
4553
4707
|
|
|
4554
4708
|
declare interface TooltipPosition {
|
|
@@ -4558,7 +4712,7 @@ declare interface TooltipPosition {
|
|
|
4558
4712
|
|
|
4559
4713
|
declare interface TooltipPositionInfo {
|
|
4560
4714
|
position: TooltipPosition;
|
|
4561
|
-
event:
|
|
4715
|
+
event: FederatedPointerEvent | MouseEvent;
|
|
4562
4716
|
}
|
|
4563
4717
|
|
|
4564
4718
|
declare type TooltipShowOptions<T = TooltipContentType_2> = {
|
|
@@ -4566,14 +4720,14 @@ declare type TooltipShowOptions<T = TooltipContentType_2> = {
|
|
|
4566
4720
|
data?: TooltipData;
|
|
4567
4721
|
cellInfos?: TooltipDataItem[];
|
|
4568
4722
|
options?: TooltipOptions;
|
|
4569
|
-
content?: ((cell:
|
|
4570
|
-
event?:
|
|
4723
|
+
content?: ((cell: S2CellType_2, defaultTooltipShowOptions: TooltipShowOptions<T>) => T) | T;
|
|
4724
|
+
event?: FederatedPointerEvent | MouseEvent;
|
|
4571
4725
|
};
|
|
4572
4726
|
|
|
4573
4727
|
declare interface TooltipSummaryOptions {
|
|
4574
|
-
name: string;
|
|
4575
|
-
value: number | string;
|
|
4576
|
-
selectedData:
|
|
4728
|
+
name: string | null;
|
|
4729
|
+
value: number | string | undefined | null;
|
|
4730
|
+
selectedData: Data[] | CellData[];
|
|
4577
4731
|
}
|
|
4578
4732
|
|
|
4579
4733
|
declare interface Total {
|
|
@@ -4606,8 +4760,21 @@ declare interface Totals {
|
|
|
4606
4760
|
col?: Partial<Total>;
|
|
4607
4761
|
}
|
|
4608
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
|
+
|
|
4609
4774
|
export declare const useExpose: (expose: (exposed?: Record<string, any>) => void) => ShallowRef<SheetExpose>;
|
|
4610
4775
|
|
|
4776
|
+
declare const VALUE_FIELD = "$$value$$";
|
|
4777
|
+
|
|
4611
4778
|
declare interface ValueRange {
|
|
4612
4779
|
minValue?: number;
|
|
4613
4780
|
maxValue?: number;
|
|
@@ -4632,24 +4799,47 @@ declare interface ViewMeta_2 {
|
|
|
4632
4799
|
y: number;
|
|
4633
4800
|
width: number;
|
|
4634
4801
|
height: number;
|
|
4635
|
-
data:
|
|
4802
|
+
data: ViewMetaData_2;
|
|
4636
4803
|
rowIndex: number;
|
|
4637
4804
|
colIndex: number;
|
|
4638
4805
|
valueField: string;
|
|
4639
4806
|
fieldValue: DataItem;
|
|
4640
4807
|
isTotals?: boolean;
|
|
4641
|
-
rowQuery?:
|
|
4642
|
-
colQuery?:
|
|
4808
|
+
rowQuery?: Query;
|
|
4809
|
+
colQuery?: Query;
|
|
4643
4810
|
rowId?: string;
|
|
4644
4811
|
colId?: string;
|
|
4645
4812
|
field?: string;
|
|
4646
4813
|
isFrozenCorner?: boolean;
|
|
4647
4814
|
label?: string;
|
|
4648
4815
|
value?: string | number;
|
|
4649
|
-
query?:
|
|
4816
|
+
query?: Query;
|
|
4650
4817
|
[key: string]: unknown;
|
|
4651
4818
|
}
|
|
4652
4819
|
|
|
4820
|
+
declare type ViewMetaData_2 = Data | CellData;
|
|
4821
|
+
|
|
4653
4822
|
declare type ViewMetaIndexType = keyof Pick<ViewMeta_2, 'colIndex' | 'rowIndex'>;
|
|
4654
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
|
+
|
|
4655
4845
|
export { }
|