realpivot2 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/realpivot2-style.css +59 -38
- package/realpivot2.d.ts +248 -72
- package/realpivot2.min.js +2 -2
- package/realpivot2.mjs +6 -6
package/realpivot2.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ declare class AddTablePage extends UIFlexElement {
|
|
|
36
36
|
open(book: PivotBook): void;
|
|
37
37
|
close(): void;
|
|
38
38
|
layout(): void;
|
|
39
|
-
click(target: Element,
|
|
39
|
+
click(target: Element, ev: PointerEvent): boolean;
|
|
40
40
|
setPromptHeight(height: number): void;
|
|
41
41
|
protected _doInitDom(doc: Document, dom: HTMLElement): void;
|
|
42
42
|
private $_setCommand;
|
|
@@ -1641,6 +1641,7 @@ declare class AggTable extends DataSource {
|
|
|
1641
1641
|
*/
|
|
1642
1642
|
declare class AIPrompter extends ROptionable<AIPrompterOptions> {
|
|
1643
1643
|
private _book;
|
|
1644
|
+
/** @private */
|
|
1644
1645
|
static defaults: AIPrompterOptions;
|
|
1645
1646
|
private _listeners;
|
|
1646
1647
|
private _greetings;
|
|
@@ -1750,7 +1751,7 @@ declare class AggTable extends DataSource {
|
|
|
1750
1751
|
};
|
|
1751
1752
|
layout(): void;
|
|
1752
1753
|
private $_submitParams;
|
|
1753
|
-
click(target: Element,
|
|
1754
|
+
click(target: Element, ev: PointerEvent): boolean;
|
|
1754
1755
|
copyAll(): void;
|
|
1755
1756
|
copyLast(): void;
|
|
1756
1757
|
private $_writeClipboard;
|
|
@@ -2647,7 +2648,7 @@ declare class AggTable extends DataSource {
|
|
|
2647
2648
|
|
|
2648
2649
|
/**
|
|
2649
2650
|
* 데이터 막대 축 옵션.<br/>
|
|
2650
|
-
* {@page
|
|
2651
|
+
* {@page it.PivotDataBarOptions#axis PivotDataBarOptions.axis} 속성에 설정하는 옵션 모델이다.
|
|
2651
2652
|
*/
|
|
2652
2653
|
declare interface DataBarAxisOptions extends PivotItemOptions {
|
|
2653
2654
|
/**
|
|
@@ -5689,13 +5690,14 @@ declare class AggTable extends DataSource {
|
|
|
5689
5690
|
/**
|
|
5690
5691
|
* 'value' 정렬 시: 반대편 축의 대상 위치.
|
|
5691
5692
|
* - 행 차원 정렬일 땐 열 위치, 열 차원 정렬일 땐 행 위치를 의미한다.
|
|
5692
|
-
* - number: 반대편 축의 리프 인덱스 (= 전체 차원 길이 string[]로 동일 leaf 경로를 지정한 것과 동치).
|
|
5693
|
-
* - string[]: dimension label 배열로 그룹 위치 지정 (예: ['Q1', '01'], ['Q1']).
|
|
5693
|
+
* - number: 반대편 축의 리프 인덱스 (= 전체 차원 길이 (string | number)[]로 동일 leaf 경로를 지정한 것과 동치).
|
|
5694
|
+
* - (string | number)[]: dimension label 배열로 그룹 위치 지정 (예: ['Q1', '01'], [2024], ['Q1']).
|
|
5694
5695
|
* 해당 그룹의 값 기준으로 정렬. 마지막 라벨이 leaf가 아니면 해당 레벨의 소계 기준으로 정렬.
|
|
5696
|
+
* 라벨과 loose(`==`) 비교하므로 숫자 라벨은 number/string 어느 쪽으로 지정해도 매칭된다.
|
|
5695
5697
|
* - 'total': Grand Total.
|
|
5696
5698
|
* - 미지정 또는 []: 'total' 과 동일하게 처리됨.
|
|
5697
5699
|
*/
|
|
5698
|
-
target?: number | string[] | 'total';
|
|
5700
|
+
target?: number | (string | number)[] | 'total';
|
|
5699
5701
|
/** 'custom' 정렬 시: 사용자 정의 값 순서 */
|
|
5700
5702
|
values?: (string | number | null)[];
|
|
5701
5703
|
/** 'callback' 정렬 시: 비교 함수 */
|
|
@@ -5834,7 +5836,92 @@ declare class AggTable extends DataSource {
|
|
|
5834
5836
|
ROW = "row"
|
|
5835
5837
|
}
|
|
5836
5838
|
|
|
5837
|
-
|
|
5839
|
+
/**
|
|
5840
|
+
* @private
|
|
5841
|
+
* 컨트롤 좌우에 고정하거나 floating 모드로 전환 가능한 인스펙터와 AI 컨테이너의 공통 부모 클래스.<br/>
|
|
5842
|
+
*/
|
|
5843
|
+
declare abstract class DockableView extends UIFlexElement {
|
|
5844
|
+
private _splitter;
|
|
5845
|
+
/** Docked 모드의 width. float 모드에서는 수정되지 않는다. */
|
|
5846
|
+
private _dockedWidth;
|
|
5847
|
+
private _isGhostResizing;
|
|
5848
|
+
private _ghost;
|
|
5849
|
+
/** Floating frame resize handles (8방향) — float 모드일 때만 표시 */
|
|
5850
|
+
private _resizeHandles;
|
|
5851
|
+
/** 현재 floating 드래그/리사이즈 세션 정리 함수 */
|
|
5852
|
+
private _floatPointerCleanup;
|
|
5853
|
+
constructor(doc: Document, className: string);
|
|
5854
|
+
protected _doInit(doc: Document): void;
|
|
5855
|
+
abstract get headerView(): UIElement;
|
|
5856
|
+
abstract get position(): GhostPosition;
|
|
5857
|
+
get dockedWidth(): number;
|
|
5858
|
+
protected abstract _setPosition(position: GhostPosition): void;
|
|
5859
|
+
/**
|
|
5860
|
+
* Inspector 배치 위치 설정. 'left' | 'right' (docked) | 'float' (자유 이동/리사이즈).
|
|
5861
|
+
*/
|
|
5862
|
+
setPosition(position: GhostPosition): this;
|
|
5863
|
+
/**
|
|
5864
|
+
* Floating 모드일 때 위치/크기 적용. control 좌표계 기준.
|
|
5865
|
+
* 도킹 폭(view.width)을 손상시키지 않도록 dom style만 조작한다.
|
|
5866
|
+
*/
|
|
5867
|
+
setFloatBounds(bounds: IRect): this;
|
|
5868
|
+
/**
|
|
5869
|
+
* 스플리터 고스트 리사이즈 시작
|
|
5870
|
+
*/
|
|
5871
|
+
startSplitGhostResize(startWidth: number): void;
|
|
5872
|
+
/**
|
|
5873
|
+
* 스플리터 고스트 리사이즈 갱신
|
|
5874
|
+
*/
|
|
5875
|
+
updateSplitGhostResize(previewWidth: number): void;
|
|
5876
|
+
completeSplitGhostResize(newWidth: number): void;
|
|
5877
|
+
/**
|
|
5878
|
+
* 스플리터 고스트 리사이즈 종료
|
|
5879
|
+
*/
|
|
5880
|
+
clearSplitGhostResize(): void;
|
|
5881
|
+
protected _doInitDom(doc: Document, dom: HTMLElement): void;
|
|
5882
|
+
setWidth(width: number): this;
|
|
5883
|
+
setHeight(height: number): this;
|
|
5884
|
+
private $_createResizeHandles;
|
|
5885
|
+
/** Resize handle 드래그 → floating 크기 조정 */
|
|
5886
|
+
private $_attachResizeHandle;
|
|
5887
|
+
/**
|
|
5888
|
+
* Floating 드래그/리사이즈 공통 세션. compute(dx, dy, startBounds)가 새 bounds를 반환한다.
|
|
5889
|
+
* onCommit이 true를 반환하면 setFloatBounds 적용을 생략한다 (예: 모서리 dock).
|
|
5890
|
+
* onPreview는 move 중 매번 호출되어 dock target 등의 preview를 그릴 수 있다.
|
|
5891
|
+
*/
|
|
5892
|
+
private $_beginPointerSession;
|
|
5893
|
+
private $_endPointerSession;
|
|
5894
|
+
abstract get model(): {
|
|
5895
|
+
book: PivotBook;
|
|
5896
|
+
autoDock: boolean;
|
|
5897
|
+
floatBounds: IRect;
|
|
5898
|
+
setFloatBounds: (bounds: IRect) => void;
|
|
5899
|
+
canUndock: () => boolean;
|
|
5900
|
+
setPosition: (pos: GhostPosition) => void;
|
|
5901
|
+
num: (prop: string) => number;
|
|
5902
|
+
};
|
|
5903
|
+
protected abstract _getDockView(): UIElement;
|
|
5904
|
+
protected abstract _getDragView(): HTMLElement;
|
|
5905
|
+
/** Title bar 드래그 → floating 위치 이동 (모서리에 가까이 가져가면 dock) */
|
|
5906
|
+
protected _attachTitleBarDrag(doc: Document): void;
|
|
5907
|
+
canUndock(elt: Element): boolean;
|
|
5908
|
+
canDrag(elt: Element): boolean;
|
|
5909
|
+
/**
|
|
5910
|
+
* bounds가 좌/우 모서리에 닿으면 해당 side, 아니면 null.
|
|
5911
|
+
* UndockTracker 등 외부 드래그 트래커가 dock 전환을 판정할 때 재사용한다.
|
|
5912
|
+
*/
|
|
5913
|
+
computeDockSide(b: IRect, parentW: number): 'left' | 'right' | null;
|
|
5914
|
+
/** dock preview ghost를 side에 맞춰 갱신/제거하고 현재 ghost를 반환한다. */
|
|
5915
|
+
updateDockPreview(doc: Document, ghost: HTMLDivElement | null, side: 'left' | 'right' | null, parentW: number, parentH: number): HTMLDivElement | null;
|
|
5916
|
+
/** dock preview ghost 제거. */
|
|
5917
|
+
removeDockPreview(ghost: HTMLDivElement | null): void;
|
|
5918
|
+
/** Float 패널이 모서리 근처에서 release되면 해당 사이드로 dock. */
|
|
5919
|
+
private $_tryDockFromFloat;
|
|
5920
|
+
protected _getLeftSiblingWidth(): number;
|
|
5921
|
+
protected _getRightSiblingWidth(): number;
|
|
5922
|
+
private $_computeDockSide;
|
|
5923
|
+
private $_updateDockPreview;
|
|
5924
|
+
}
|
|
5838
5925
|
|
|
5839
5926
|
/**
|
|
5840
5927
|
* 드롭다운 selector 옵션.<br/>
|
|
@@ -6055,11 +6142,12 @@ declare class AggTable extends DataSource {
|
|
|
6055
6142
|
/**
|
|
6056
6143
|
* 반대 축의 대상 위치.
|
|
6057
6144
|
* - `number`: 반대 축 리프 인덱스.
|
|
6058
|
-
* - `string[]` (전체 차원 수): 특정 리프 셀.
|
|
6059
|
-
* - `string[]` (부분 차원): 해당 prefix 의 그룹 소계.
|
|
6145
|
+
* - `(string | number)[]` (전체 차원 수): 특정 리프 셀.
|
|
6146
|
+
* - `(string | number)[]` (부분 차원): 해당 prefix 의 그룹 소계.
|
|
6147
|
+
* (라벨과 loose(`==`) 비교하므로 숫자 라벨은 number/string 어느 쪽으로 지정해도 매칭된다.)
|
|
6060
6148
|
* - `'total'` 또는 [], 미지정: Grand Total.
|
|
6061
6149
|
*/
|
|
6062
|
-
target?: number | string[] | 'total';
|
|
6150
|
+
target?: number | (string | number)[] | 'total';
|
|
6063
6151
|
/**
|
|
6064
6152
|
* 적용 범위.
|
|
6065
6153
|
* - `'unset'` (기본): `setFieldSort` 가 전혀 없는 차원에만 적용.
|
|
@@ -6108,7 +6196,7 @@ declare class AggTable extends DataSource {
|
|
|
6108
6196
|
findFieldView(fieldName: string): FV | undefined;
|
|
6109
6197
|
getFieldView(elt: Element): FV | undefined;
|
|
6110
6198
|
setIndicatorManager(manager: DropIndicatorManager | undefined): void;
|
|
6111
|
-
click(dom: Element): boolean;
|
|
6199
|
+
click(dom: Element, ev: PointerEvent): boolean;
|
|
6112
6200
|
getPopupMenu(target: Element): PopupMenu | undefined;
|
|
6113
6201
|
render(doc: Document): void;
|
|
6114
6202
|
protected _doRender(model: M, views: FV[]): void;
|
|
@@ -6540,7 +6628,7 @@ declare class AggTable extends DataSource {
|
|
|
6540
6628
|
protected _doInit(doc: Document, initData: any): void;
|
|
6541
6629
|
protected _doDispose(): void;
|
|
6542
6630
|
render(model: PivotInspector): void;
|
|
6543
|
-
click(element: Element): boolean;
|
|
6631
|
+
click(element: Element, ev: PointerEvent): boolean;
|
|
6544
6632
|
getPopupMenu(target: Element): PopupMenu | undefined;
|
|
6545
6633
|
}
|
|
6546
6634
|
|
|
@@ -6695,7 +6783,7 @@ declare class AggTable extends DataSource {
|
|
|
6695
6783
|
* - `string[]` (부분 차원): 해당 prefix 의 그룹 소계.
|
|
6696
6784
|
* - `'total'` 또는 미지정: Grand Total.
|
|
6697
6785
|
*/
|
|
6698
|
-
target?: string[] | 'total';
|
|
6786
|
+
target?: (string | number)[] | 'total';
|
|
6699
6787
|
/**
|
|
6700
6788
|
* 적용 범위.
|
|
6701
6789
|
* - `'unset'` (기본): `setFieldSort` 가 전혀 없는 차원에만 적용.
|
|
@@ -6919,7 +7007,7 @@ declare class AggTable extends DataSource {
|
|
|
6919
7007
|
constructor(doc: Document, className: string, _model: T);
|
|
6920
7008
|
get model(): T;
|
|
6921
7009
|
abstract render(doc: Document, force: boolean): void;
|
|
6922
|
-
abstract click(dom: Element,
|
|
7010
|
+
abstract click(dom: Element, ev: PointerEvent): boolean;
|
|
6923
7011
|
abstract getPopupMenu(target: Element): PopupMenu | undefined;
|
|
6924
7012
|
}
|
|
6925
7013
|
|
|
@@ -7605,7 +7693,7 @@ declare class AggTable extends DataSource {
|
|
|
7605
7693
|
/**
|
|
7606
7694
|
* 정규화 시 사용할 로그 베이스. 0이면 선형. 기본 0.
|
|
7607
7695
|
*/
|
|
7608
|
-
protected
|
|
7696
|
+
protected _getLogBase(): number;
|
|
7609
7697
|
/**
|
|
7610
7698
|
* 하위 클래스가 sorted 통계가 필요하면 true를 반환. 기본 false.
|
|
7611
7699
|
*/
|
|
@@ -7814,6 +7902,7 @@ declare class AggTable extends DataSource {
|
|
|
7814
7902
|
*/
|
|
7815
7903
|
declare class PivotAI extends ROptionable<PivotAIOptions> {
|
|
7816
7904
|
private _book;
|
|
7905
|
+
/** @private */
|
|
7817
7906
|
static defaults: PivotAIOptions;
|
|
7818
7907
|
private _res;
|
|
7819
7908
|
private _models;
|
|
@@ -7991,7 +8080,7 @@ declare class AggTable extends DataSource {
|
|
|
7991
8080
|
render(doc: Document, table: PivotBookPage, force: boolean): void;
|
|
7992
8081
|
open(): void;
|
|
7993
8082
|
close(): void;
|
|
7994
|
-
click(target: Element,
|
|
8083
|
+
click(target: Element, ev: PointerEvent): boolean;
|
|
7995
8084
|
getPopupMenu(target: Element): PopupMenu | undefined;
|
|
7996
8085
|
getContextMenu(target: Element): PopupMenu | undefined;
|
|
7997
8086
|
protected _getDockView(): UIElement;
|
|
@@ -8253,12 +8342,13 @@ declare class AggTable extends DataSource {
|
|
|
8253
8342
|
setModel(model: PivotAiPanel): this;
|
|
8254
8343
|
protected _doInitDom(doc: Document, dom: HTMLElement): void;
|
|
8255
8344
|
render(doc: Document, force: boolean): void;
|
|
8256
|
-
click(element: Element,
|
|
8345
|
+
click(element: Element, ev: PointerEvent): boolean;
|
|
8257
8346
|
getPopupMenu(target: Element): undefined;
|
|
8258
8347
|
}
|
|
8259
8348
|
|
|
8260
8349
|
declare class PivotAIResources extends ROptionable<PivotAIResourcesOptions> {
|
|
8261
8350
|
private _book;
|
|
8351
|
+
/** @private */
|
|
8262
8352
|
static defaults: PivotAIResourcesOptions;
|
|
8263
8353
|
private _systemContext?;
|
|
8264
8354
|
private _developerContext?;
|
|
@@ -8490,6 +8580,7 @@ declare class AggTable extends DataSource {
|
|
|
8490
8580
|
}
|
|
8491
8581
|
|
|
8492
8582
|
/**
|
|
8583
|
+
* @private
|
|
8493
8584
|
* Pivot body view.<br/>
|
|
8494
8585
|
* Value cell들이 표시되는 영역.
|
|
8495
8586
|
*/
|
|
@@ -8923,7 +9014,7 @@ declare class AggTable extends DataSource {
|
|
|
8923
9014
|
/**
|
|
8924
9015
|
* Pivot footer model.<br/>
|
|
8925
9016
|
*/
|
|
8926
|
-
declare class PivotBookFooter extends PivotBookItem<PivotBookFooterOptions> {
|
|
9017
|
+
export declare class PivotBookFooter extends PivotBookItem<PivotBookFooterOptions> {
|
|
8927
9018
|
static defaults: PivotBookFooterOptions;
|
|
8928
9019
|
private _tabBar;
|
|
8929
9020
|
protected _doInit(op: PivotBookFooterOptions): void;
|
|
@@ -8931,8 +9022,8 @@ declare class AggTable extends DataSource {
|
|
|
8931
9022
|
}
|
|
8932
9023
|
|
|
8933
9024
|
/**
|
|
8934
|
-
* 북 푸터 옵션.<br/>
|
|
8935
|
-
* 북
|
|
9025
|
+
* 피벗 컨트롤의 최하단에 표시되는 {@page PivotBookFooter 북 푸터} 설정 옵션.<br/>
|
|
9026
|
+
* {@page PivotBookConfiguration 북 설정}의 {@page PivotBookConfiguration.#footer} 속성으로 지정한다.
|
|
8936
9027
|
*/
|
|
8937
9028
|
export declare interface PivotBookFooterOptions extends PivotBookItemOptions {
|
|
8938
9029
|
tabBar?: PivotTabBarOptions | boolean;
|
|
@@ -8952,7 +9043,7 @@ declare class AggTable extends DataSource {
|
|
|
8952
9043
|
protected _doPrepare(doc: Document, model: PivotBookFooter): void;
|
|
8953
9044
|
protected _doMeasure(hintWidth: number, hintHeight: number): ISize;
|
|
8954
9045
|
protected _doLayout(): void;
|
|
8955
|
-
protected _doClick(dom: HTMLElement): boolean;
|
|
9046
|
+
protected _doClick(dom: HTMLElement, ev: PointerEvent): boolean;
|
|
8956
9047
|
protected _doGetContextMenu(target: Element): PopupMenu | undefined;
|
|
8957
9048
|
}
|
|
8958
9049
|
|
|
@@ -8963,7 +9054,7 @@ declare class AggTable extends DataSource {
|
|
|
8963
9054
|
|
|
8964
9055
|
/**
|
|
8965
9056
|
* 북 전체에 적용되는 일반 옵션.<br/>
|
|
8966
|
-
* 북
|
|
9057
|
+
* {@page PivotBookConfiguration 북 설정}의 {@page PivotBookConfiguration.#general} 속성으로 지정한다.
|
|
8967
9058
|
*/
|
|
8968
9059
|
export declare interface PivotBookGeneralOptions extends PivotBookItemOptions {
|
|
8969
9060
|
/**
|
|
@@ -9087,7 +9178,11 @@ declare class AggTable extends DataSource {
|
|
|
9087
9178
|
interactive?: boolean;
|
|
9088
9179
|
}
|
|
9089
9180
|
|
|
9090
|
-
|
|
9181
|
+
/**
|
|
9182
|
+
* 피벗 컨트롤의 최상단에 표시되는 북 헤더 모델.<br/>
|
|
9183
|
+
* 설정 모델은 {@page PivotBookHeaderOptions}이다.
|
|
9184
|
+
*/
|
|
9185
|
+
export declare class PivotBookHeader extends PivotBookItem<PivotBookHeaderOptions> {
|
|
9091
9186
|
static defaults: PivotBookHeaderOptions;
|
|
9092
9187
|
private _menuBar;
|
|
9093
9188
|
private _filterBar;
|
|
@@ -9101,20 +9196,23 @@ declare class AggTable extends DataSource {
|
|
|
9101
9196
|
}
|
|
9102
9197
|
|
|
9103
9198
|
/**
|
|
9104
|
-
* 북 헤더 옵션.<br/>
|
|
9105
|
-
* 북
|
|
9199
|
+
* 피벗 컨트롤의 최상단에 표시되는 {@page PivotBookHeader 북 헤더} 설정 옵션.<br/>
|
|
9200
|
+
* {@page PivotBookConfiguration 북 설정}의 {@page PivotBookConfiguration.#header} 속성으로 지정한다.
|
|
9106
9201
|
*/
|
|
9107
9202
|
export declare interface PivotBookHeaderOptions extends PivotBookItemOptions {
|
|
9108
9203
|
/**
|
|
9109
9204
|
* 북 헤더에 표시되는 메뉴바 옵션.<br/>
|
|
9205
|
+
* `boolean` 축약형으로 지정하면 메뉴바의 표시 여부만 토글한다.<br/>
|
|
9110
9206
|
*/
|
|
9111
9207
|
menuBar?: PivotMenuBarOptions | boolean;
|
|
9112
9208
|
/**
|
|
9113
9209
|
* 북 헤더에 표시되는 필터바 옵션.<br/>
|
|
9210
|
+
* `boolean` 축약형으로 지정하면 필터바의 표시 여부만 토글한다.<br/>
|
|
9114
9211
|
*/
|
|
9115
9212
|
filterBar?: PivotFilterBarOptions | boolean;
|
|
9116
9213
|
/**
|
|
9117
9214
|
* 북 헤더에 표시되는 레이아웃바 옵션.<br/>
|
|
9215
|
+
* `boolean` 축약형으로 지정하면 레이아웃바의 표시 여부만 토글한다.<br/>
|
|
9118
9216
|
*/
|
|
9119
9217
|
layoutBar?: PivotLayoutBarOptions | boolean;
|
|
9120
9218
|
/**
|
|
@@ -9134,7 +9232,7 @@ declare class AggTable extends DataSource {
|
|
|
9134
9232
|
protected _doPrepare(doc: Document, model: PivotBookHeader): void;
|
|
9135
9233
|
protected _doMeasure(hintWidth: number, hintHeight: number): ISize;
|
|
9136
9234
|
protected _doLayout(): void;
|
|
9137
|
-
protected _doClick(dom: HTMLElement): boolean;
|
|
9235
|
+
protected _doClick(dom: HTMLElement, ev: PointerEvent): boolean;
|
|
9138
9236
|
getPopupMenu(target: Element): PopupMenu | undefined;
|
|
9139
9237
|
}
|
|
9140
9238
|
|
|
@@ -9151,7 +9249,11 @@ declare class AggTable extends DataSource {
|
|
|
9151
9249
|
export declare interface PivotBookItemOptions extends PivotItemOptions {
|
|
9152
9250
|
}
|
|
9153
9251
|
|
|
9154
|
-
|
|
9252
|
+
/**
|
|
9253
|
+
* 피벗 북(PivotBook) 내의 피벗 테이블 구성 요소를 나타내는 모델.<br/>
|
|
9254
|
+
*/
|
|
9255
|
+
export declare class PivotBookPage extends PivotTable<PivotBookPageOptions> implements IPivotBookPage {
|
|
9256
|
+
/** @private */
|
|
9155
9257
|
protected static defaults: PivotBookPageOptions;
|
|
9156
9258
|
private _detail;
|
|
9157
9259
|
private _chart;
|
|
@@ -9426,6 +9528,7 @@ declare class AggTable extends DataSource {
|
|
|
9426
9528
|
}
|
|
9427
9529
|
|
|
9428
9530
|
declare abstract class PivotCellOverlay<OP extends CellOverlayOptions = CellOverlayOptions> extends ROptionable<OP> {
|
|
9531
|
+
/** @private */
|
|
9429
9532
|
static defaults: CellOverlayOptions;
|
|
9430
9533
|
private _table;
|
|
9431
9534
|
private _visible;
|
|
@@ -9443,7 +9546,7 @@ declare class AggTable extends DataSource {
|
|
|
9443
9546
|
|
|
9444
9547
|
/**
|
|
9445
9548
|
* 북 전체에 적용되는 셀 선택(영역 선택) 동작 옵션.<br/>
|
|
9446
|
-
* 북
|
|
9549
|
+
* {@page PivotBookConfiguration 북 설정}의 {@page PivotBookConfiguration.#cellSelect} 속성으로 지정한다.
|
|
9447
9550
|
*/
|
|
9448
9551
|
export declare interface PivotCellSelectOptions extends PivotBookItemOptions {
|
|
9449
9552
|
}
|
|
@@ -9509,6 +9612,7 @@ declare class AggTable extends DataSource {
|
|
|
9509
9612
|
};
|
|
9510
9613
|
|
|
9511
9614
|
/**
|
|
9615
|
+
* @private
|
|
9512
9616
|
* 피벗 셀 뷰.
|
|
9513
9617
|
*/
|
|
9514
9618
|
declare abstract class PivotCellView extends UIElement {
|
|
@@ -9530,6 +9634,7 @@ declare class AggTable extends DataSource {
|
|
|
9530
9634
|
}
|
|
9531
9635
|
|
|
9532
9636
|
declare class PivotChart extends ROptionable<PivotChartOptions> {
|
|
9637
|
+
/** @private */
|
|
9533
9638
|
static defaults: PivotChartOptions;
|
|
9534
9639
|
private _table;
|
|
9535
9640
|
private _xPath;
|
|
@@ -9618,6 +9723,7 @@ declare class AggTable extends DataSource {
|
|
|
9618
9723
|
* Represents a column bar in a pivot table.
|
|
9619
9724
|
*/
|
|
9620
9725
|
declare class PivotColumnBar extends PivotFieldBar<PivotColumnBarOptions> {
|
|
9726
|
+
private static readonly BUILD_PROPS;
|
|
9621
9727
|
static defaults: PivotColumnBarOptions;
|
|
9622
9728
|
private _columns;
|
|
9623
9729
|
private _values;
|
|
@@ -10314,6 +10420,7 @@ declare class AggTable extends DataSource {
|
|
|
10314
10420
|
}
|
|
10315
10421
|
|
|
10316
10422
|
/**
|
|
10423
|
+
* @private
|
|
10317
10424
|
* 피벗뷰 구성 요소 뷰 기반 클래스.<br/>
|
|
10318
10425
|
*/
|
|
10319
10426
|
declare class PivotElement<T extends any = any> extends UIElement {
|
|
@@ -10324,14 +10431,14 @@ declare class AggTable extends DataSource {
|
|
|
10324
10431
|
prepare(doc: Document, model: T): void;
|
|
10325
10432
|
measure(hintWidth: number, hintHeight: number): ISize;
|
|
10326
10433
|
layout(): void;
|
|
10327
|
-
click(dom: Element): boolean;
|
|
10434
|
+
click(dom: Element, ev: PointerEvent): boolean;
|
|
10328
10435
|
getPopupMenu(target: Element): PopupMenu | undefined;
|
|
10329
10436
|
protected _isAbsolute(): boolean;
|
|
10330
10437
|
protected _doInitDom(doc: Document, dom: HTMLElement): void;
|
|
10331
10438
|
protected _doPrepare(doc: Document, model: T): void;
|
|
10332
10439
|
protected _doMeasure(hintWidth: number, hintHeight: number): ISize;
|
|
10333
10440
|
protected _doLayout(): void;
|
|
10334
|
-
protected _doClick(dom: HTMLElement): boolean;
|
|
10441
|
+
protected _doClick(dom: HTMLElement, ev?: PointerEvent): boolean;
|
|
10335
10442
|
}
|
|
10336
10443
|
|
|
10337
10444
|
/**
|
|
@@ -10346,19 +10453,22 @@ declare class AggTable extends DataSource {
|
|
|
10346
10453
|
fileExt?: string;
|
|
10347
10454
|
}
|
|
10348
10455
|
|
|
10349
|
-
|
|
10456
|
+
/**
|
|
10457
|
+
* 피벗 북(PivotBook) 내의 탐색기 구성 요소를 나타내는 모델.<br/>
|
|
10458
|
+
*/
|
|
10459
|
+
export declare class PivotExplorer extends PivotBookItem<PivotExplorerOptions> implements IPivotExplorer {
|
|
10350
10460
|
static defaults: PivotExplorerOptions;
|
|
10351
10461
|
private _detailPanel;
|
|
10352
10462
|
private _chartPanel;
|
|
10353
10463
|
private _mapPanel;
|
|
10354
10464
|
private _panels;
|
|
10355
|
-
private
|
|
10465
|
+
private _firstVisible;
|
|
10356
10466
|
protected _doInit(op: PivotExplorerOptions): void;
|
|
10357
10467
|
get detailPanel(): PivotDetailPanel;
|
|
10358
10468
|
get chartPanel(): PivotChartPanel;
|
|
10359
10469
|
get mapPanel(): PivotMapPanel;
|
|
10360
10470
|
get aiPanel(): PivotAiPanel | undefined;
|
|
10361
|
-
get
|
|
10471
|
+
get firstVisible(): ExplorerMode | undefined;
|
|
10362
10472
|
prepareRender(): void;
|
|
10363
10473
|
isEnabled(mode: ExplorerMode): boolean;
|
|
10364
10474
|
protected _isVisible(): boolean;
|
|
@@ -10643,7 +10753,11 @@ declare class AggTable extends DataSource {
|
|
|
10643
10753
|
addValueField(name: string, measure: string, aggregate: PivotAggregationType): PivotValueField;
|
|
10644
10754
|
removeField(field: PivotField): boolean;
|
|
10645
10755
|
removeFields(fields: PivotField[]): boolean;
|
|
10646
|
-
|
|
10756
|
+
/**
|
|
10757
|
+
* removeFields로 제거된 필드들을 복원한다.<br/>
|
|
10758
|
+
* 최대한 기존 위치로 복원해야 한다. #303
|
|
10759
|
+
*/
|
|
10760
|
+
restoreFields(fields: PivotField[], sections: PivotSection[], saveIndices: number[]): boolean;
|
|
10647
10761
|
_internalSetAggregate(measure: string, aggregate: PivotAggregationType): boolean;
|
|
10648
10762
|
getAggregates(data: DataCube): Record<string, PivotAggregationType>;
|
|
10649
10763
|
_optionChanged(tag?: string | string[]): void;
|
|
@@ -10803,7 +10917,7 @@ declare class AggTable extends DataSource {
|
|
|
10803
10917
|
protected _doInitDom(doc: Document, dom: HTMLElement): void;
|
|
10804
10918
|
protected _registerEvents(): void;
|
|
10805
10919
|
protected _unregisterEvents(): void;
|
|
10806
|
-
click(dom: Element): boolean;
|
|
10920
|
+
click(dom: Element, ev: PointerEvent): boolean;
|
|
10807
10921
|
render(doc: Document, force: boolean): void;
|
|
10808
10922
|
getPopupMenu(target: Element): PopupMenu | undefined;
|
|
10809
10923
|
private _dragStartHandler;
|
|
@@ -10847,7 +10961,7 @@ declare class AggTable extends DataSource {
|
|
|
10847
10961
|
* Pivot filter bar model.<br/>
|
|
10848
10962
|
* Represents a filter bar in a pivot table.
|
|
10849
10963
|
*/
|
|
10850
|
-
declare class PivotFilterBar extends PivotBookItem<PivotFilterBarOptions> {
|
|
10964
|
+
export declare class PivotFilterBar extends PivotBookItem<PivotFilterBarOptions> {
|
|
10851
10965
|
static defaults: PivotFilterBarOptions;
|
|
10852
10966
|
private _visibles;
|
|
10853
10967
|
get visibleSelectors(): FilterSelector[];
|
|
@@ -10909,7 +11023,7 @@ declare class AggTable extends DataSource {
|
|
|
10909
11023
|
getContextMenu(target: Element): PopupMenu | undefined;
|
|
10910
11024
|
protected _doInitDom(doc: Document, dom: HTMLElement): void;
|
|
10911
11025
|
render(doc: Document, force: boolean): void;
|
|
10912
|
-
click(element: Element): boolean;
|
|
11026
|
+
click(element: Element, ev: PointerEvent): boolean;
|
|
10913
11027
|
getPopupMenu(target: Element): PopupMenu | undefined;
|
|
10914
11028
|
private $_prepareViews;
|
|
10915
11029
|
}
|
|
@@ -10941,6 +11055,9 @@ declare class AggTable extends DataSource {
|
|
|
10941
11055
|
fixed?: boolean;
|
|
10942
11056
|
}
|
|
10943
11057
|
|
|
11058
|
+
/**
|
|
11059
|
+
* 피벗 테이블의 헤더 구성 요소 base class.<br/>
|
|
11060
|
+
*/
|
|
10944
11061
|
declare abstract class PivotHeader<OP extends PivotHeaderOptions = PivotHeaderOptions> extends PivotTableItem<OP> {
|
|
10945
11062
|
protected _fields: PivotDimensionField[];
|
|
10946
11063
|
protected _colWidths: number[];
|
|
@@ -11085,7 +11202,7 @@ declare class AggTable extends DataSource {
|
|
|
11085
11202
|
getTooltip(table: IPivotTable): string;
|
|
11086
11203
|
toggle(): void;
|
|
11087
11204
|
setCollapsed(collapsed: boolean): void;
|
|
11088
|
-
isFallbackTarget(target: string[]): boolean;
|
|
11205
|
+
isFallbackTarget(target: (string | number)[]): boolean;
|
|
11089
11206
|
}
|
|
11090
11207
|
|
|
11091
11208
|
declare abstract class PivotHeaderCellView extends HeaderCellView {
|
|
@@ -11104,7 +11221,7 @@ declare class AggTable extends DataSource {
|
|
|
11104
11221
|
declare abstract class PivotHeaderGrandValueCell implements IPivotHeaderGrandValueCellInfo {
|
|
11105
11222
|
measure: string;
|
|
11106
11223
|
sort?: 'asc' | 'desc';
|
|
11107
|
-
isFallbackTarget(target: string[]): boolean;
|
|
11224
|
+
isFallbackTarget(target: (string | number)[]): boolean;
|
|
11108
11225
|
getPath(table: IPivotTable): string[];
|
|
11109
11226
|
}
|
|
11110
11227
|
|
|
@@ -11403,6 +11520,7 @@ declare class AggTable extends DataSource {
|
|
|
11403
11520
|
* expression은 통계 기반 조건과 달리 prepare 단계에서 임계값 계산이 필요 없으므로, PivotHighlightRule과 별도 클래스로 구현하는 것도 고려할 수 있다.
|
|
11404
11521
|
*/
|
|
11405
11522
|
declare class PivotHighlightRule<OP extends PivotHighlightRuleOptions = PivotHighlightRuleOptions> extends ROptionable<OP> {
|
|
11523
|
+
/** @private */
|
|
11406
11524
|
static defaults: PivotHighlightRuleOptions;
|
|
11407
11525
|
static ruleToString(op: Partial<PivotHighlightRuleOptions>): string;
|
|
11408
11526
|
type: HighlightType_2;
|
|
@@ -11686,10 +11804,9 @@ declare class AggTable extends DataSource {
|
|
|
11686
11804
|
declare type PivotIconSet = 'arrows-3' | 'arrows-5' | 'triangles-3' | 'traffic-3' | 'flags-3' | 'stars-3' | 'bars-5' | 'checks-3';
|
|
11687
11805
|
|
|
11688
11806
|
/**
|
|
11689
|
-
*
|
|
11690
|
-
* UI 의존성 없이 섹션 Model들을 소유하고 설정 상태를 관리.
|
|
11807
|
+
* 피벗 북(PivotBook) 내의 인스펙터 구성 요소를 나타내는 모델.<br/>
|
|
11691
11808
|
*/
|
|
11692
|
-
declare class PivotInspector extends PivotBookItem<PivotInspectorOptions> {
|
|
11809
|
+
export declare class PivotInspector extends PivotBookItem<PivotInspectorOptions> {
|
|
11693
11810
|
static defaults: PivotInspectorOptions;
|
|
11694
11811
|
private _table;
|
|
11695
11812
|
private _fieldPanel;
|
|
@@ -11801,6 +11918,7 @@ declare class AggTable extends DataSource {
|
|
|
11801
11918
|
}
|
|
11802
11919
|
|
|
11803
11920
|
/**
|
|
11921
|
+
* @private
|
|
11804
11922
|
* Pivot inspector view.
|
|
11805
11923
|
*/
|
|
11806
11924
|
export declare class PivotInspectorViewImpl extends DockableView {
|
|
@@ -11835,7 +11953,7 @@ declare class AggTable extends DataSource {
|
|
|
11835
11953
|
* 모달 인스펙터 닫기
|
|
11836
11954
|
*/
|
|
11837
11955
|
close(): void;
|
|
11838
|
-
click(element: Element): boolean;
|
|
11956
|
+
click(element: Element, ev: PointerEvent): boolean;
|
|
11839
11957
|
getPopupMenu(target: Element): PopupMenu | undefined;
|
|
11840
11958
|
setPage(pageView: PivotPageView): this;
|
|
11841
11959
|
render(doc: Document, leftSibling: number, rightSibling: number, force: boolean): void;
|
|
@@ -11851,6 +11969,7 @@ declare class AggTable extends DataSource {
|
|
|
11851
11969
|
* Represents a single item in a pivot table.
|
|
11852
11970
|
*/
|
|
11853
11971
|
declare abstract class PivotItem<OP extends PivotItemOptions = PivotItemOptions> extends ROptionable<OP> {
|
|
11972
|
+
/** @private */
|
|
11854
11973
|
static defaults: PivotItemOptions;
|
|
11855
11974
|
/**
|
|
11856
11975
|
* 표시 여부.
|
|
@@ -11883,7 +12002,7 @@ declare class AggTable extends DataSource {
|
|
|
11883
12002
|
* Pivot layout bar model.<br/>
|
|
11884
12003
|
* 인스펙터, 탐색기 등의 위치를 지정하는 버튼 등이 표시된다.
|
|
11885
12004
|
*/
|
|
11886
|
-
declare class PivotLayoutBar extends PivotBookItem<PivotLayoutBarOptions> {
|
|
12005
|
+
export declare class PivotLayoutBar extends PivotBookItem<PivotLayoutBarOptions> {
|
|
11887
12006
|
static defaults: PivotLayoutBarOptions;
|
|
11888
12007
|
constructor(book: IPivotBook);
|
|
11889
12008
|
prepareRender(): void;
|
|
@@ -11942,6 +12061,7 @@ declare class AggTable extends DataSource {
|
|
|
11942
12061
|
}
|
|
11943
12062
|
|
|
11944
12063
|
declare class PivotMapChart extends ROptionable<PivotMapChartOptions> {
|
|
12064
|
+
/** @private */
|
|
11945
12065
|
static defaults: PivotMapChartOptions;
|
|
11946
12066
|
private _table;
|
|
11947
12067
|
private _areaPath;
|
|
@@ -13109,8 +13229,8 @@ declare class AggTable extends DataSource {
|
|
|
13109
13229
|
/**
|
|
13110
13230
|
* value 정렬의 target 을 열 인덱스 배열로 해석한다.
|
|
13111
13231
|
* - number : [target] (범위 밖이면 null)
|
|
13112
|
-
* - 전체 차원 string[] : 리프 열 1개
|
|
13113
|
-
* - 부분 차원 string[] : prefix 매칭되는 모든 리프 열
|
|
13232
|
+
* - 전체 차원 (string | number)[] : 리프 열 1개
|
|
13233
|
+
* - 부분 차원 (string | number)[] : prefix 매칭되는 모든 리프 열
|
|
13114
13234
|
*/
|
|
13115
13235
|
private $_resolveValueTargetCols;
|
|
13116
13236
|
/**
|
|
@@ -13765,7 +13885,7 @@ declare class AggTable extends DataSource {
|
|
|
13765
13885
|
*/
|
|
13766
13886
|
private $_findLabelIndex;
|
|
13767
13887
|
/**
|
|
13768
|
-
* FieldSort.target 처럼 외부에서 들어온 `string[]` 을 라벨과 매칭하기 위한 변형.<br/>
|
|
13888
|
+
* FieldSort.target 처럼 외부에서 들어온 `(string | number)[]` 을 라벨과 매칭하기 위한 변형.<br/>
|
|
13769
13889
|
* 라벨 셀이 number/Date 등일 수 있어 loose(`==`) 비교를 사용한다.<br/>
|
|
13770
13890
|
* 핫패스(셀/AggRow 단위 매핑)에서는 strict 버전 `$_findLabelIndex` 를 쓰고,
|
|
13771
13891
|
* 이 함수는 정렬 설정 해석 같은 저빈도 경로에서만 사용한다.
|
|
@@ -13972,7 +14092,7 @@ declare class AggTable extends DataSource {
|
|
|
13972
14092
|
* Pivot menu bar model.<br/>
|
|
13973
14093
|
* 피벗 헤더에 메뉴 버튼들을 표시한다.
|
|
13974
14094
|
*/
|
|
13975
|
-
declare class PivotMenuBar extends PivotBookItem<PivotMenuBarOptions> {
|
|
14095
|
+
export declare class PivotMenuBar extends PivotBookItem<PivotMenuBarOptions> {
|
|
13976
14096
|
static defaults: PivotMenuBarOptions;
|
|
13977
14097
|
constructor(book: IPivotBook);
|
|
13978
14098
|
private _items;
|
|
@@ -14030,7 +14150,7 @@ declare class AggTable extends DataSource {
|
|
|
14030
14150
|
layout(): void;
|
|
14031
14151
|
openDetail(cell: IPivotBodyCellInfo, force?: boolean): void;
|
|
14032
14152
|
openSelection(selection: PivotSelection, force?: boolean): void;
|
|
14033
|
-
click(element: Element): boolean;
|
|
14153
|
+
click(element: Element, ev: PointerEvent): boolean;
|
|
14034
14154
|
drillThrough(info: IPivotBodyCellInfo, type: ExplorerMode): void;
|
|
14035
14155
|
getPopupMenu(target: Element): PopupMenu | undefined;
|
|
14036
14156
|
getContextMenu(target: Element): PopupMenu | undefined;
|
|
@@ -14160,6 +14280,7 @@ declare class AggTable extends DataSource {
|
|
|
14160
14280
|
* Pivot row bar model.<br/>
|
|
14161
14281
|
*/
|
|
14162
14282
|
declare class PivotRowBar extends PivotFieldBar<PivotRowBarOptions> {
|
|
14283
|
+
private static readonly BUILD_PROPS;
|
|
14163
14284
|
static defaults: PivotRowBarOptions;
|
|
14164
14285
|
private _rows;
|
|
14165
14286
|
private _values;
|
|
@@ -14664,6 +14785,7 @@ declare class AggTable extends DataSource {
|
|
|
14664
14785
|
declare type PivotSortDirection = 'asc' | 'desc' | 'none';
|
|
14665
14786
|
|
|
14666
14787
|
/**
|
|
14788
|
+
* @private
|
|
14667
14789
|
* 셀 영역을 흐르는(animated) 테두리 상자로 강조하는 transient 요소.<br/>
|
|
14668
14790
|
*
|
|
14669
14791
|
* annotation은 옵션에 저장되어 유지되는 반면, spotlight는 옵션 트리에 포함되지 않는
|
|
@@ -14850,17 +14972,18 @@ declare class AggTable extends DataSource {
|
|
|
14850
14972
|
protected _doMeasure(hintWidth: number, hintHeight: number): ISize;
|
|
14851
14973
|
protected _doLayout(): void;
|
|
14852
14974
|
pointerDown(dom: Element, ev: PointerEvent): boolean;
|
|
14853
|
-
protected _doClick(dom: HTMLElement): boolean;
|
|
14975
|
+
protected _doClick(dom: HTMLElement, ev: PointerEvent): boolean;
|
|
14854
14976
|
protected _doGetContextMenu(target: Element): PopupMenu | undefined;
|
|
14855
14977
|
}
|
|
14856
14978
|
|
|
14857
14979
|
/**
|
|
14858
|
-
*
|
|
14859
|
-
*
|
|
14980
|
+
* 피벗 테이블 모델.<br/>
|
|
14981
|
+
* 피벗 테이블의 구조와 데이터를 나타낸다.
|
|
14860
14982
|
*/
|
|
14861
14983
|
declare class PivotTable<OP extends PivotTableOptions = PivotTableOptions> extends ROptionable<OP> implements IPivotTable, IPivotAnnotationOwner {
|
|
14862
14984
|
static readonly EMPTY_TEXT = "-";
|
|
14863
14985
|
private static readonly DATE_LABEL_PROPS;
|
|
14986
|
+
/** @private */
|
|
14864
14987
|
protected static defaults: PivotTableOptions;
|
|
14865
14988
|
private _colorPalette;
|
|
14866
14989
|
private _events;
|
|
@@ -15101,7 +15224,10 @@ declare class AggTable extends DataSource {
|
|
|
15101
15224
|
removeField(field: PivotField): void;
|
|
15102
15225
|
moveField(field: PivotField, targetSection: PivotSection, index?: number): PivotField | undefined;
|
|
15103
15226
|
removeFields(fields: PivotField[]): void;
|
|
15104
|
-
|
|
15227
|
+
/**
|
|
15228
|
+
* removeFields로 제거된 필드들을 복원한다.
|
|
15229
|
+
*/
|
|
15230
|
+
restoreFields(fields: PivotField[], sections: PivotSection[], indices: number[]): void;
|
|
15105
15231
|
getFieldSection(field: PivotField): PivotSection;
|
|
15106
15232
|
isFieldUsed(field: string): boolean;
|
|
15107
15233
|
getMeasureName(index: number): string;
|
|
@@ -15110,7 +15236,7 @@ declare class AggTable extends DataSource {
|
|
|
15110
15236
|
_internalSetAggregate(measure: string, aggregate: PivotAggregationType): boolean;
|
|
15111
15237
|
setAggregate(measure: string, aggregate: PivotAggregationType): boolean;
|
|
15112
15238
|
getFallbackSort(axis: 'row' | 'column'): IFallbackFieldSort | null;
|
|
15113
|
-
getFallbackSortTarget(axis: 'row' | 'column'): string[] | undefined;
|
|
15239
|
+
getFallbackSortTarget(axis: 'row' | 'column'): (string | number | null)[] | undefined;
|
|
15114
15240
|
setFallbackSort(axis: 'row' | 'column', path: string[], dir?: 'asc' | 'desc' | 'none'): void;
|
|
15115
15241
|
getFieldSort(dimension: string): IPivotFieldSort;
|
|
15116
15242
|
setFieldSort(dimension: string, sort: IPivotFieldSort | null): void;
|
|
@@ -15177,7 +15303,7 @@ declare class AggTable extends DataSource {
|
|
|
15177
15303
|
isAggFiltered(field: PivotField): boolean;
|
|
15178
15304
|
protected _hasAggFilter(field: PivotFilterField): boolean;
|
|
15179
15305
|
getAggFilter(field: PivotFilterField): CubeFilter;
|
|
15180
|
-
_internalSetAggFilter(
|
|
15306
|
+
_internalSetAggFilter(dimension: string, values: any[]): void;
|
|
15181
15307
|
setAggFilter(field: PivotFilterField, values: any[]): void;
|
|
15182
15308
|
cellsFromSelection(sel: PivotSelection): IPivotBodyCellInfo[][];
|
|
15183
15309
|
sourceRowsFromSelection(sel: PivotSelection): number[] | null;
|
|
@@ -15261,7 +15387,7 @@ declare class AggTable extends DataSource {
|
|
|
15261
15387
|
/**
|
|
15262
15388
|
* 피벗 테이블 데이터 본문(body) 옵션.<br/>
|
|
15263
15389
|
* 데이터셀 교차 선택(crosshair), 행 단위 스크롤 등 본문 표시 동작을 설정한다.<br/>
|
|
15264
|
-
* 설정 옵션 모델은 {@page
|
|
15390
|
+
* 설정 옵션 모델은 {@page PivotTableBodyOptions}이다.
|
|
15265
15391
|
*/
|
|
15266
15392
|
body?: PivotTableBodyOptions;
|
|
15267
15393
|
}
|
|
@@ -15316,12 +15442,14 @@ declare class AggTable extends DataSource {
|
|
|
15316
15442
|
*/
|
|
15317
15443
|
valuesAsRows?: boolean;
|
|
15318
15444
|
/**
|
|
15319
|
-
* 명시적 정렬이 설정되지 않은
|
|
15320
|
-
*
|
|
15445
|
+
* 명시적 row 정렬이 설정되지 않은 경우,
|
|
15446
|
+
* 컬럼 축 특정 셀/그룹 소계/Grand Total 을 기준으로 행 축의 모든 차원을 정렬한다.
|
|
15447
|
+
* row 정렬이 명시적으로 설정된 경우 해당 설정이 우선한다.
|
|
15321
15448
|
*/
|
|
15322
15449
|
rowFallbackSort?: IFallbackFieldSort;
|
|
15323
15450
|
/**
|
|
15324
|
-
* 명시적 정렬이 설정되지 않은
|
|
15451
|
+
* 명시적 column 정렬이 설정되지 않은 경우,
|
|
15452
|
+
* row 축 특정 셀/그룹 소계/Grand Total 을 기준으로 열 축의 모든 차원을 정렬한다.
|
|
15325
15453
|
* column 필드에 sort가 명시적으로 설정된 경우 해당 설정이 우선한다.
|
|
15326
15454
|
*/
|
|
15327
15455
|
columnFallbackSort?: IFallbackFieldSort;
|
|
@@ -15409,7 +15537,7 @@ declare class AggTable extends DataSource {
|
|
|
15409
15537
|
annotations?: PivotAnnotationManagerOptions;
|
|
15410
15538
|
/**
|
|
15411
15539
|
* 피벗 어노테이션에 적용할 미리 정의된 스타일 배열.<br/>
|
|
15412
|
-
* 설정 모델은 {@page
|
|
15540
|
+
* 설정 모델은 {@page PivotAnnotationStyleDef}이다.
|
|
15413
15541
|
*/
|
|
15414
15542
|
annotationsStyles?: PivotAnnotationStyleDef[];
|
|
15415
15543
|
/**
|
|
@@ -15628,7 +15756,7 @@ declare class AggTable extends DataSource {
|
|
|
15628
15756
|
protected _doPrepare(doc: Document, model: PivotRowHeader): void;
|
|
15629
15757
|
protected _doMeasure(hintWidth: number, hintHeight: number): ISize;
|
|
15630
15758
|
protected _doLayout(): void;
|
|
15631
|
-
protected _doClick(
|
|
15759
|
+
protected _doClick(dom: HTMLElement, ev: PointerEvent): boolean;
|
|
15632
15760
|
private $_prepareGrandTotal;
|
|
15633
15761
|
private $_renderViewport;
|
|
15634
15762
|
/**
|
|
@@ -15948,7 +16076,7 @@ declare class AggTable extends DataSource {
|
|
|
15948
16076
|
*
|
|
15949
16077
|
* 빌트인 {@link ValueShowAs} 항목으로 표현이 어려운 경우 콜백 함수를 직접 지정할 수 있다.
|
|
15950
16078
|
* 콜백은 raw 집계 값을 가진 `cell`을 받아 변환된 표시값을 반환한다.
|
|
15951
|
-
* 콜백 내부에서 빌트인 showAs와 유사한 계산이 필요하면 `cell.field
|
|
16079
|
+
* 콜백 내부에서 빌트인 showAs와 유사한 계산이 필요하면 `cell.field`(`PivotValueField` 타입)에
|
|
15952
16080
|
* 노출된 헬퍼 API(`rowTotal`/`colTotal`/`grandTotal`/`parentRowTotal`/`parentColTotal`/
|
|
15953
16081
|
* `cellValue`/`siblingsAlong`/`indexOfSelf`/`baseValue`)를 사용할 수 있다.
|
|
15954
16082
|
*
|
|
@@ -15956,18 +16084,18 @@ declare class AggTable extends DataSource {
|
|
|
15956
16084
|
* // 행 합계 대비 비율을 직접 계산 (rowPercent와 동일)
|
|
15957
16085
|
* showAs: (cell) => {
|
|
15958
16086
|
* if (cell.value == null) return null;
|
|
15959
|
-
* const total = cell.field.
|
|
16087
|
+
* const total = cell.field.rowTotal(cell);
|
|
15960
16088
|
* return total ? cell.value / total : null;
|
|
15961
16089
|
* }
|
|
15962
16090
|
*
|
|
15963
16091
|
* @example
|
|
15964
16092
|
* // 같은 행에서 첫 셀 대비 차이
|
|
15965
16093
|
* showAs: (cell) => {
|
|
15966
|
-
* const
|
|
15967
|
-
* const sibs =
|
|
16094
|
+
* const field = cell.field;
|
|
16095
|
+
* const sibs = field.siblingsAlong(cell, 'row');
|
|
15968
16096
|
* if (!sibs.positions.length) return null;
|
|
15969
16097
|
* const first = sibs.positions[0];
|
|
15970
|
-
* const baseVal =
|
|
16098
|
+
* const baseVal = field.cellValue(first.row, first.col);
|
|
15971
16099
|
* return baseVal == null || cell.value == null ? null : cell.value - baseVal;
|
|
15972
16100
|
* }
|
|
15973
16101
|
*/
|
|
@@ -16022,6 +16150,7 @@ declare class AggTable extends DataSource {
|
|
|
16022
16150
|
}
|
|
16023
16151
|
|
|
16024
16152
|
/**
|
|
16153
|
+
* @private
|
|
16025
16154
|
* Pivot view.<br/>
|
|
16026
16155
|
* - PivotControl에서 사용되는 뷰로, PivotTable 모델과 연동하여 피벗 테이블을 렌더링한다.
|
|
16027
16156
|
* - columnHeader, rowHeader, body, title 등으로 구성된다.
|
|
@@ -16078,7 +16207,7 @@ declare class AggTable extends DataSource {
|
|
|
16078
16207
|
measure(width: number, height: number): void;
|
|
16079
16208
|
layout(w: number, h: number): void;
|
|
16080
16209
|
afterRender(): void;
|
|
16081
|
-
click(element: Element): boolean;
|
|
16210
|
+
click(element: Element, ev: PointerEvent): boolean;
|
|
16082
16211
|
drillDown(info: IPivotBodyCellInfo): void;
|
|
16083
16212
|
drillUp(info: IPivotBodyCellInfo): void;
|
|
16084
16213
|
getPopupMenu(target: Element): PopupMenu | undefined;
|
|
@@ -16412,6 +16541,10 @@ declare class AggTable extends DataSource {
|
|
|
16412
16541
|
addSource(source?: any, render?: boolean): T;
|
|
16413
16542
|
/** `index` 위치에 새 항목을 삽입하고 반환한다. */
|
|
16414
16543
|
insertSource(source: any, index: number, render?: boolean): T;
|
|
16544
|
+
/** 끝에 새 항목들을 추가하고 반환한다. */
|
|
16545
|
+
addSources(sources?: any[], render?: boolean): T[];
|
|
16546
|
+
/** `index` 위치에 새 항목들을 삽입하고 반환한다. */
|
|
16547
|
+
insertSources(sources: any[], index: number, render?: boolean): T[];
|
|
16415
16548
|
add(item: T, render?: boolean): boolean;
|
|
16416
16549
|
insert(item: T, index: number, render?: boolean): boolean;
|
|
16417
16550
|
addAll(items: T[], render?: boolean): number;
|
|
@@ -16486,8 +16619,10 @@ declare class AggTable extends DataSource {
|
|
|
16486
16619
|
*/
|
|
16487
16620
|
saveTo(_target: any, props?: any, recursive?: boolean, includeDefs?: boolean, force?: boolean): any;
|
|
16488
16621
|
/**
|
|
16489
|
-
* source를 **키 매칭 동기화(merge)**로 적용한다(base ROptionable의 부분 merge를 배열로 확장)
|
|
16490
|
-
* source는 배열 `[ ...item ]`이거나 객체 `{ items?: [...], updateMode?: {...} }`다.
|
|
16622
|
+
* source를 **키 매칭 동기화(merge)**로 적용한다(base ROptionable의 부분 merge를 배열로 확장).<br/>
|
|
16623
|
+
* source는 배열 `[ ...item ]`이거나 객체 `{ items?: [...], updateMode?: {...} }`다.
|
|
16624
|
+
* {@link updateOptions}를 통해 정규화된다.
|
|
16625
|
+
* 단순 값은 무시된다.
|
|
16491
16626
|
* `updateMode`는 **이 호출에만 적용**되는 transient 정책이고(저장 안 됨), `items`가 있으면 동기화한다.
|
|
16492
16627
|
*
|
|
16493
16628
|
* 각 원소를 키로 기존 항목과 매칭한다. 키는 {@link keyProp}이며, 미지정이면 **인덱스**다.
|
|
@@ -16520,10 +16655,23 @@ declare class AggTable extends DataSource {
|
|
|
16520
16655
|
*/
|
|
16521
16656
|
invertOptions(source?: any): RCollectionOptions;
|
|
16522
16657
|
/**
|
|
16523
|
-
* 항목들을 생성하기 전에 source를
|
|
16658
|
+
* 항목들을 생성하기 전에 source를 정규화한다.<br/>
|
|
16524
16659
|
* 기본은 그대로 반환. override로 항목 생성 전 source를 변형할 수 있다.
|
|
16525
16660
|
*/
|
|
16526
|
-
protected _normalizeOptions(items: any): any[];
|
|
16661
|
+
protected _normalizeOptions(items: any): any[] | undefined;
|
|
16662
|
+
/**
|
|
16663
|
+
* 단일 항목을 배열로 감싸는 규칙을 정의한다.<br/>
|
|
16664
|
+
* {@link _normalizeOptions}에서 단일 항목을 배열로 감싸야 할 때 호출된다.
|
|
16665
|
+
* 기본 구현은 항상 undefined를 반환하며, override하여 단일 항목을 배열로 감싸는 로직을 제공할 수 있다.
|
|
16666
|
+
*
|
|
16667
|
+
* @param value 단일 항목으로 간주할 값
|
|
16668
|
+
* @returns 단일 항목을 배열로 감싼 결과 또는 undefined
|
|
16669
|
+
*/
|
|
16670
|
+
protected _normalizeSimple(value: any): any[] | undefined;
|
|
16671
|
+
/**
|
|
16672
|
+
* 항목들을 로드할 때 호출된다.<br/>
|
|
16673
|
+
* 기본 구현은 source를 {@link _normalizeOptions}로 정규화한 후 컬렉션의 항목을 교체한다.
|
|
16674
|
+
*/
|
|
16527
16675
|
protected _doLoad(_op: OP, source: any): void;
|
|
16528
16676
|
clearOptions(recursive?: boolean, render?: boolean): this;
|
|
16529
16677
|
/**
|
|
@@ -17149,6 +17297,13 @@ declare class AggTable extends DataSource {
|
|
|
17149
17297
|
*/
|
|
17150
17298
|
preset(preset: ROptionable<OP>, recursive?: boolean): this;
|
|
17151
17299
|
protected _doDispose(): void;
|
|
17300
|
+
/**
|
|
17301
|
+
* 지정한 옵션 항목이 명시적으로 설정되어 있는지 확인한다.
|
|
17302
|
+
*
|
|
17303
|
+
* @param prop 확인할 옵션 항목 이름
|
|
17304
|
+
* @returns
|
|
17305
|
+
*/
|
|
17306
|
+
isSet<K extends keyof OP>(prop: K): boolean;
|
|
17152
17307
|
/**
|
|
17153
17308
|
* 옵션의 효과 값(effective value)을 반환한다.<br/>
|
|
17154
17309
|
* 해석 순서는 `명시값(_op)` → `preset` → 클래스 `defaults`이다. 이 인스턴스에 명시적으로 설정된
|
|
@@ -17185,6 +17340,14 @@ declare class AggTable extends DataSource {
|
|
|
17185
17340
|
* @returns boolean 타입의 옵션 값.
|
|
17186
17341
|
*/
|
|
17187
17342
|
bool<K extends keyof OP>(prop: K): boolean;
|
|
17343
|
+
/**
|
|
17344
|
+
* 배열 타입의 옵션 값에 특화된 `prop()` 메서드. `prop()`과 달리 배열로 변환해서 반환한다.<br/>
|
|
17345
|
+
* 해석 순서는 `prop()`과 동일하다(`명시값(_op)` → `preset` → 클래스 `defaults`).
|
|
17346
|
+
*
|
|
17347
|
+
* @param prop 설정 항목 이름
|
|
17348
|
+
* @returns 배열로 변환한 옵션 값. 어디에서도 값을 얻지 못하면 빈 배열(`[]`)을 반환한다.
|
|
17349
|
+
*/
|
|
17350
|
+
array<T = any>(prop: keyof OP): T[];
|
|
17188
17351
|
/**
|
|
17189
17352
|
* 점(dot) 표기법으로 경로를 지정해서 옵션의 효과 값(effective value)을 반환한다.<br/>
|
|
17190
17353
|
*
|
|
@@ -17214,6 +17377,14 @@ declare class AggTable extends DataSource {
|
|
|
17214
17377
|
* @returns 경로에 해당하는 boolean 타입의 옵션 값 또는 `false`
|
|
17215
17378
|
*/
|
|
17216
17379
|
boolAt(path: string): boolean;
|
|
17380
|
+
/**
|
|
17381
|
+
* 점(dot) 표기법으로 경로를 지정해서 배열 타입의 옵션 값을 반환한다.<br/>
|
|
17382
|
+
* 해석 순서는 `prop()`과 동일하다(`명시값(_op)` → `preset` → 클래스 `defaults`).
|
|
17383
|
+
*
|
|
17384
|
+
* @param path 경로 문자열
|
|
17385
|
+
* @returns 경로에 해당하는 배열 옵션 값 또는 빈 배열(`[]`)
|
|
17386
|
+
*/
|
|
17387
|
+
arrayAt<T = any>(path: string): T[];
|
|
17217
17388
|
/**
|
|
17218
17389
|
* 지정한 옵션들의 효과 값(effective value)을 묶어서 반환한다.<br/>
|
|
17219
17390
|
* 여러 옵션을 destructuring으로 한꺼번에 읽을 때 사용한다.
|
|
@@ -19181,10 +19352,15 @@ declare class AggTable extends DataSource {
|
|
|
19181
19352
|
*/
|
|
19182
19353
|
declare abstract class ValueRangeOverlay<OP extends ValueRangeOverlayOptions = ValueRangeOverlayOptions> extends NormalizedCellOverlay<OP> {
|
|
19183
19354
|
static defaults: ValueRangeOverlayOptions;
|
|
19355
|
+
private _logBase;
|
|
19356
|
+
private _minValue?;
|
|
19357
|
+
private _maxValue?;
|
|
19358
|
+
private _outOfRange;
|
|
19184
19359
|
/** 현재 prepare 시점의 boundsBy 모드 */
|
|
19185
19360
|
protected _boundsMode: ValueBoundsMode;
|
|
19361
|
+
protected _doApply(op: OP): void;
|
|
19186
19362
|
protected _beforeCollectStats(): void;
|
|
19187
|
-
protected
|
|
19363
|
+
protected _getLogBase(): number;
|
|
19188
19364
|
protected _needsSortedStats(): boolean;
|
|
19189
19365
|
protected _outOfRangeMode(): 'clamp' | 'hide';
|
|
19190
19366
|
protected _resolveRange(gs: GroupStats): {
|