realreport-designer 1.9.2 → 1.9.3
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/dist/realreport-designer.cjs +767 -725
- package/dist/realreport-designer.d.ts +125 -58
- package/dist/realreport-designer.js +21488 -21029
- package/dist/realreport-designer.umd.js +768 -726
- package/dist/styles/realreport-designer.css +2351 -2326
- package/package.json +1 -1
|
@@ -131,6 +131,7 @@ declare class BandArrayData extends BandData implements IBandData {
|
|
|
131
131
|
get sample(): any[];
|
|
132
132
|
getValues(): any[];
|
|
133
133
|
setValues(vals: any[]): void;
|
|
134
|
+
getFieldSample(): any[];
|
|
134
135
|
setSource(source: any[]): void;
|
|
135
136
|
/**
|
|
136
137
|
* 특정 모드의 데이터를 일회성으로 조작하기 위한 편의성 메서드 (callback 실행 후 모드는 원복됨)
|
|
@@ -139,6 +140,7 @@ declare class BandArrayData extends BandData implements IBandData {
|
|
|
139
140
|
getSaveType(): string;
|
|
140
141
|
protected _doDataFetched(fetchedData: unknown): void;
|
|
141
142
|
private $_cloneRow;
|
|
143
|
+
protected _getSampleValues(): any[];
|
|
142
144
|
protected _readRows(): void;
|
|
143
145
|
protected _prepareCalcField(fields: IBandDataField[], fieldMap: any, calcField: IBandDataField, index: number, node: ExpressionNode): void;
|
|
144
146
|
}
|
|
@@ -171,6 +173,7 @@ declare abstract class BandData extends LinkableReportData {
|
|
|
171
173
|
indexOfField(field: IBandDataField): number;
|
|
172
174
|
setField(index: number, field: IBandDataField): void;
|
|
173
175
|
getSaveFields(): IBandDataField[];
|
|
176
|
+
getSaveValues(): any[];
|
|
174
177
|
getNextFieldName(prefix?: string): string;
|
|
175
178
|
getFieldNames(): string[];
|
|
176
179
|
addField(index: number, field: IBandDataField): boolean;
|
|
@@ -183,6 +186,7 @@ declare abstract class BandData extends LinkableReportData {
|
|
|
183
186
|
abstract getFieldValues(field: string | number, rows?: number[]): any[];
|
|
184
187
|
get isBand(): boolean;
|
|
185
188
|
preparePrint(ctx: PrintContext, design: boolean): void;
|
|
189
|
+
protected _getSampleValues(): any[];
|
|
186
190
|
protected _readRows(): void;
|
|
187
191
|
protected _prepareCalcField(fields: IBandDataField[], fieldMap: any, calcField: IBandDataField, index: number, node: ExpressionNode): void;
|
|
188
192
|
}
|
|
@@ -214,6 +218,8 @@ declare abstract class BandElement<T extends DataBand> extends ReportGroupItemEl
|
|
|
214
218
|
abstract getLines(): ReportItemView[];
|
|
215
219
|
abstract printRow(ctx: PrintContext, row: number): any;
|
|
216
220
|
getSibling(item: ReportItemView, delta: number): ReportItemView;
|
|
221
|
+
findMasterBand(band: DataBand): DataBand;
|
|
222
|
+
getBandLevel(masterBand: DataBand, band: DataBand): string;
|
|
217
223
|
abstract addMasterRow(page: HTMLDivElement, headerView: any, rowView: any, x: number, y: number): number;
|
|
218
224
|
abstract prepareAsync(doc: Document, ctx: PrintContext, width: number, subRows: number[], masterRow: number): BandPrintInfo<any>;
|
|
219
225
|
abstract prepareSubBand(doc: Document, ctx: PrintContext, width: number, dataRows: number[]): BandPrintInfo<any>;
|
|
@@ -222,6 +228,7 @@ declare abstract class BandElement<T extends DataBand> extends ReportGroupItemEl
|
|
|
222
228
|
protected _getPrev(item: ReportItemView): ReportItemView;
|
|
223
229
|
private $_prepareDetailDataBand;
|
|
224
230
|
private $_prepareDetailBandGroup;
|
|
231
|
+
private $_setBandLevel;
|
|
225
232
|
}
|
|
226
233
|
|
|
227
234
|
declare class BandFooterPrintInfo {
|
|
@@ -388,6 +395,19 @@ declare interface BandTemplate {
|
|
|
388
395
|
|
|
389
396
|
/* Excluded from this release type: Base */
|
|
390
397
|
|
|
398
|
+
/**
|
|
399
|
+
* BodyItemAddSection
|
|
400
|
+
*/
|
|
401
|
+
declare class BodyItemAddSection extends ItemAddSection<PageBody> {
|
|
402
|
+
static readonly $_ctor: string;
|
|
403
|
+
constructor(target: PageBody);
|
|
404
|
+
get pathLabel(): string;
|
|
405
|
+
get outlineLabel(): string;
|
|
406
|
+
protected _doItemAdded(item: ReportItem, index: number): void;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
/* Excluded from this release type: BodyItemAddSectionElement */
|
|
410
|
+
|
|
391
411
|
/**
|
|
392
412
|
* 자식들의 위치를 지정할 수 있는 container.
|
|
393
413
|
* 위치 설정이 안된 item은 중앙에 정렬 시킨다.
|
|
@@ -532,7 +552,7 @@ declare abstract class ChartAxisCollection<T extends ChartItem, C = unknown> ext
|
|
|
532
552
|
abstract getChartConfig(context: PrintContext): C[];
|
|
533
553
|
abstract getSaveLabel(): string;
|
|
534
554
|
defaultInit(): void;
|
|
535
|
-
load(loader: IReportLoader, source: ReportSource): void;
|
|
555
|
+
load(loader: IReportLoader, source: ReportSource$1): void;
|
|
536
556
|
save(target: ReportTarget): boolean;
|
|
537
557
|
get(index: number): ChartAxis<T, C>;
|
|
538
558
|
indexOf(axis: ChartAxis<T, C>): number;
|
|
@@ -548,7 +568,7 @@ declare abstract class ChartAxisCollection<T extends ChartItem, C = unknown> ext
|
|
|
548
568
|
isAncestorOf(item: ReportPageItem): boolean;
|
|
549
569
|
getCollectionLabel(): string;
|
|
550
570
|
protected _doMoveItem(from: number, to: number): boolean;
|
|
551
|
-
protected abstract _createAxis(loader: IReportLoader, src: ReportSource): ChartAxis<T, C>;
|
|
571
|
+
protected abstract _createAxis(loader: IReportLoader, src: ReportSource$1): ChartAxis<T, C>;
|
|
552
572
|
protected abstract _axesChanged(): void;
|
|
553
573
|
protected _doDefaultInit(): void;
|
|
554
574
|
private $_invalidateAxes;
|
|
@@ -567,7 +587,7 @@ declare abstract class ChartDataObject<T extends ChartItem, C = unknown> extends
|
|
|
567
587
|
protected _getEditProps(): IPropInfo[];
|
|
568
588
|
getPropDomain(prop: IPropInfo): any[];
|
|
569
589
|
getPlaceHolder(prop: IPropInfo): string;
|
|
570
|
-
protected _doLoad(loader: IReportLoader, source: ReportSource): void;
|
|
590
|
+
protected _doLoad(loader: IReportLoader, source: ReportSource$1): void;
|
|
571
591
|
protected _doSave(target: ReportTarget): void;
|
|
572
592
|
}
|
|
573
593
|
|
|
@@ -648,14 +668,14 @@ declare abstract class ChartObject<T extends ChartItem, C = unknown> extends Rep
|
|
|
648
668
|
get styles(): Styles;
|
|
649
669
|
set styles(value: Styles);
|
|
650
670
|
defaultInit(): void;
|
|
651
|
-
load(loader: IReportLoader, source: ReportSource): void;
|
|
671
|
+
load(loader: IReportLoader, source: ReportSource$1): void;
|
|
652
672
|
save(target: ReportTarget): boolean;
|
|
653
673
|
abstract getChartConfig(context: PrintContext): C;
|
|
654
674
|
get dataParent(): ReportGroupItem;
|
|
655
675
|
get marqueeParent(): ReportItem;
|
|
656
676
|
isCollection(): boolean;
|
|
657
677
|
protected _doDefaultInit(): void;
|
|
658
|
-
protected _doLoad(loader: IReportLoader, source: ReportSource): void;
|
|
678
|
+
protected _doLoad(loader: IReportLoader, source: ReportSource$1): void;
|
|
659
679
|
protected _doSave(target: ReportTarget): void;
|
|
660
680
|
protected _getEditProps(): IPropInfo[];
|
|
661
681
|
protected _getStyleProps(): string[];
|
|
@@ -797,7 +817,7 @@ declare abstract class ChartSeriesCollection<T extends ChartItem, C = unknown> e
|
|
|
797
817
|
abstract getChartConfig(context: PrintContext): C[];
|
|
798
818
|
getSaveLabel(): string;
|
|
799
819
|
defaultInit(): void;
|
|
800
|
-
load(loader: IReportLoader, source: ReportSource): void;
|
|
820
|
+
load(loader: IReportLoader, source: ReportSource$1): void;
|
|
801
821
|
save(target: ReportTarget): boolean;
|
|
802
822
|
get(index: number): ChartSeries<T, C>;
|
|
803
823
|
indexOf(series: ChartSeries<T, C>): number;
|
|
@@ -814,7 +834,7 @@ declare abstract class ChartSeriesCollection<T extends ChartItem, C = unknown> e
|
|
|
814
834
|
isAncestorOf(item: ReportPageItem): boolean;
|
|
815
835
|
getCollectionLabel(): string;
|
|
816
836
|
protected _doMoveItem(from: number, to: number): boolean;
|
|
817
|
-
protected abstract _createSeries(loader: IReportLoader, src: ReportSource): ChartSeries<T, C>;
|
|
837
|
+
protected abstract _createSeries(loader: IReportLoader, src: ReportSource$1): ChartSeries<T, C>;
|
|
818
838
|
protected abstract _seriesChanged(): void;
|
|
819
839
|
protected _doDefaultInit(): void;
|
|
820
840
|
private $_invalidateSeriesList;
|
|
@@ -845,7 +865,7 @@ declare abstract class ChartTextObject<T extends ChartItem, C = unknown> extends
|
|
|
845
865
|
set text(value: string);
|
|
846
866
|
protected _getEditProps(): IPropInfo[];
|
|
847
867
|
protected _getStyleProps(): string[];
|
|
848
|
-
protected _doLoad(loader: IReportLoader, source: ReportSource): void;
|
|
868
|
+
protected _doLoad(loader: IReportLoader, source: ReportSource$1): void;
|
|
849
869
|
protected _doSave(target: ReportTarget): void;
|
|
850
870
|
}
|
|
851
871
|
|
|
@@ -1678,6 +1698,7 @@ declare class DataBandCollection extends ReportGroupItem {
|
|
|
1678
1698
|
get owner(): DataBand;
|
|
1679
1699
|
protected _getChildPropInfos(item: ReportItem): IPropInfo[];
|
|
1680
1700
|
getSaveType(): string;
|
|
1701
|
+
canFold(): boolean;
|
|
1681
1702
|
get outlineLabel(): string;
|
|
1682
1703
|
get designLevel(): number;
|
|
1683
1704
|
get marqueeParent(): ReportItem;
|
|
@@ -2822,6 +2843,7 @@ declare abstract class InheritableSectionElement<T extends InheritableSection> e
|
|
|
2822
2843
|
}
|
|
2823
2844
|
|
|
2824
2845
|
declare interface IOutlineSource {
|
|
2846
|
+
hash: number;
|
|
2825
2847
|
outlineParent: IOutlineSource;
|
|
2826
2848
|
outlineExpandable: boolean;
|
|
2827
2849
|
outlineItems?: IOutlineSource[];
|
|
@@ -2918,11 +2940,6 @@ declare interface IReportAssetItem {
|
|
|
2918
2940
|
data: string;
|
|
2919
2941
|
}
|
|
2920
2942
|
|
|
2921
|
-
declare interface IReportBody {
|
|
2922
|
-
id?: string;
|
|
2923
|
-
body?: Record<string, any>;
|
|
2924
|
-
}
|
|
2925
|
-
|
|
2926
2943
|
declare interface IReportData {
|
|
2927
2944
|
name: string;
|
|
2928
2945
|
isBand: boolean;
|
|
@@ -3005,30 +3022,21 @@ declare interface IReportDesignerOptions {
|
|
|
3005
3022
|
/** action bar에서 클릭 대신 아이템 아이콘을 drag해서 생성 */
|
|
3006
3023
|
dragInsert?: boolean;
|
|
3007
3024
|
/** callbacks */
|
|
3008
|
-
getReportListCallback?: () => Promise<
|
|
3009
|
-
getReportCallback?: (reportId: string) => Promise<
|
|
3010
|
-
saveReportCallback?: (report:
|
|
3025
|
+
getReportListCallback?: () => Promise<ReportListSource>;
|
|
3026
|
+
getReportCallback?: (reportId: string) => Promise<IReportSource>;
|
|
3027
|
+
saveReportCallback?: (report: Record<string, any>, reportId: string) => Promise<SaveCallbackResponse | null>;
|
|
3011
3028
|
getOptionsCallback?: () => Promise<Partial<IReportDesignerOptions>>;
|
|
3012
3029
|
saveOptionsCallback?: (options: IReportDesignerOptions) => Promise<string | null>;
|
|
3013
3030
|
}
|
|
3014
3031
|
|
|
3015
|
-
declare interface IReportInfo {
|
|
3016
|
-
id: string;
|
|
3017
|
-
group?: string;
|
|
3018
|
-
name: string;
|
|
3019
|
-
author?: string;
|
|
3020
|
-
description?: string;
|
|
3021
|
-
thumbnail?: string;
|
|
3022
|
-
}
|
|
3023
|
-
|
|
3024
3032
|
/**
|
|
3025
3033
|
* Report loader spec.
|
|
3026
3034
|
*/
|
|
3027
3035
|
declare interface IReportLoader {
|
|
3028
3036
|
getCreator(type: string): (name: string) => ReportItem;
|
|
3029
3037
|
createItem(type: any): ReportItem;
|
|
3030
|
-
createRealChartAxis(collection: RCAxisCollection, src: ReportSource): RCAxis;
|
|
3031
|
-
createRealChartSeries(collection: RCSeriesCollection, src: ReportSource): RCSeries;
|
|
3038
|
+
createRealChartAxis(collection: RCAxisCollection, src: ReportSource$1): RCAxis;
|
|
3039
|
+
createRealChartSeries(collection: RCSeriesCollection, src: ReportSource$1): RCSeries;
|
|
3032
3040
|
createHichartSeries(chart: HichartItem, src: any): HichartSeries;
|
|
3033
3041
|
}
|
|
3034
3042
|
|
|
@@ -3039,9 +3047,9 @@ declare interface IReportResponse {
|
|
|
3039
3047
|
}
|
|
3040
3048
|
|
|
3041
3049
|
declare interface IReportServer {
|
|
3042
|
-
getReportList(): Promise<
|
|
3043
|
-
getReport(id: string): Promise<
|
|
3044
|
-
saveReport?(report:
|
|
3050
|
+
getReportList(): Promise<ReportListSource>;
|
|
3051
|
+
getReport(id: string): Promise<IReportSource>;
|
|
3052
|
+
saveReport?(report: Record<string, any>, id?: string): Promise<IReportResponse | null>;
|
|
3045
3053
|
getDataGroups(parent?: string): Promise<string[]>;
|
|
3046
3054
|
getDataList(group: string): Promise<IReportDataInfo[]>;
|
|
3047
3055
|
getData?(id: string): Promise<IReportDataInfo>;
|
|
@@ -3051,6 +3059,11 @@ declare interface IReportServer {
|
|
|
3051
3059
|
saveOptions?: (options: IReportDesignerOptions) => Promise<string>;
|
|
3052
3060
|
}
|
|
3053
3061
|
|
|
3062
|
+
declare interface IReportSource {
|
|
3063
|
+
id?: string;
|
|
3064
|
+
source?: Record<string, any>;
|
|
3065
|
+
}
|
|
3066
|
+
|
|
3054
3067
|
declare interface ISelectionSource {
|
|
3055
3068
|
selectItem: ReportPageItem;
|
|
3056
3069
|
canSelectedWith(other: ISelectionSource): boolean;
|
|
@@ -3392,6 +3405,24 @@ declare interface ITableGroupPrintInfo extends IGroupPrintInfo {
|
|
|
3392
3405
|
needNextPage: boolean;
|
|
3393
3406
|
}
|
|
3394
3407
|
|
|
3408
|
+
/**
|
|
3409
|
+
* ItemAddSection
|
|
3410
|
+
*/
|
|
3411
|
+
declare class ItemAddSection<S extends PageSection> extends PageSection {
|
|
3412
|
+
static readonly $_ctor: string;
|
|
3413
|
+
static readonly PROPINFOS: IPropInfo[];
|
|
3414
|
+
private _targetSection;
|
|
3415
|
+
constructor(target: S);
|
|
3416
|
+
get targetSection(): S;
|
|
3417
|
+
get pathLabel(): string;
|
|
3418
|
+
canResize(dir: ResizeDirection): boolean;
|
|
3419
|
+
canFold(): boolean;
|
|
3420
|
+
protected _getStyleProps(): string[];
|
|
3421
|
+
protected _getEditProps(): IPropInfo[];
|
|
3422
|
+
canContainsBand(): boolean;
|
|
3423
|
+
canContainsBandGroup(): boolean;
|
|
3424
|
+
}
|
|
3425
|
+
|
|
3395
3426
|
declare enum ItemMoveType {
|
|
3396
3427
|
INNER = "inner",
|
|
3397
3428
|
OUTER = "outer"
|
|
@@ -3581,6 +3612,7 @@ declare interface PageViewOptions {
|
|
|
3581
3612
|
reportFooterEnabled?: boolean;
|
|
3582
3613
|
pageHeaderEnabled?: boolean;
|
|
3583
3614
|
pageFooterEnabled?: boolean;
|
|
3615
|
+
addBodyItemSectionEnabled?: boolean;
|
|
3584
3616
|
}
|
|
3585
3617
|
|
|
3586
3618
|
/**
|
|
@@ -3981,8 +4013,8 @@ export declare class R2Server implements IReportServer {
|
|
|
3981
4013
|
getDataList(group: string): Promise<IReportDataInfo[]>;
|
|
3982
4014
|
getData(id: string): Promise<IReportDataInfo>;
|
|
3983
4015
|
getReportGroups(): Promise<string[]>;
|
|
3984
|
-
getReportList(group?: string): Promise<
|
|
3985
|
-
getReport(id: string): Promise<
|
|
4016
|
+
getReportList(group?: string): Promise<ReportListSource>;
|
|
4017
|
+
getReport(id: string): Promise<IReportSource>;
|
|
3986
4018
|
getOptions(): Promise<Partial<IReportDesignerOptions>>;
|
|
3987
4019
|
saveOptions(options: IReportDesignerOptions): Promise<string>;
|
|
3988
4020
|
saveReport(report: Report_2, id?: string): Promise<IReportResponse | null>;
|
|
@@ -4106,7 +4138,7 @@ declare class RCAxisGrid extends RCAxisObject<RCAxisGridConfig> {
|
|
|
4106
4138
|
getSaveLabel(): string;
|
|
4107
4139
|
protected _getEditProps(): IPropInfo[];
|
|
4108
4140
|
protected _getStyleProps(): string[];
|
|
4109
|
-
protected _doLoad(loader: IReportLoader, source: ReportSource): void;
|
|
4141
|
+
protected _doLoad(loader: IReportLoader, source: ReportSource$1): void;
|
|
4110
4142
|
protected _doSave(target: ReportTarget): void;
|
|
4111
4143
|
}
|
|
4112
4144
|
|
|
@@ -4135,7 +4167,7 @@ declare class RCAxisLabel extends RCAxisTextObject<RCAxisLabelConfig> {
|
|
|
4135
4167
|
getCollapsedPropCategories(): string[];
|
|
4136
4168
|
protected _getEditProps(): IPropInfo[];
|
|
4137
4169
|
protected _getStyleProps(): string[];
|
|
4138
|
-
protected _doLoad(loader: IReportLoader, source: ReportSource): void;
|
|
4170
|
+
protected _doLoad(loader: IReportLoader, source: ReportSource$1): void;
|
|
4139
4171
|
protected _doSave(target: ReportTarget): void;
|
|
4140
4172
|
}
|
|
4141
4173
|
|
|
@@ -4211,7 +4243,7 @@ declare class RCAxisTick extends RCAxisObject<RCAxisTickConfig> {
|
|
|
4211
4243
|
getSaveLabel(): string;
|
|
4212
4244
|
protected _getEditProps(): IPropInfo[];
|
|
4213
4245
|
protected _getStyleProps(): string[];
|
|
4214
|
-
protected _doLoad(loader: IReportLoader, source: ReportSource): void;
|
|
4246
|
+
protected _doLoad(loader: IReportLoader, source: ReportSource$1): void;
|
|
4215
4247
|
protected _doSave(target: ReportTarget): void;
|
|
4216
4248
|
}
|
|
4217
4249
|
|
|
@@ -4361,7 +4393,7 @@ declare class RCLegend extends ChartObject<RealChartItem, RCLegendConfig> {
|
|
|
4361
4393
|
getSubStyleProps(prop: string): IPropInfo[];
|
|
4362
4394
|
protected _getSubStyle(prop: string, style: string): any;
|
|
4363
4395
|
protected _setSubStyle(prop: string, style: string, value: any): void;
|
|
4364
|
-
protected _doLoad(loader: IReportLoader, source: ReportSource): void;
|
|
4396
|
+
protected _doLoad(loader: IReportLoader, source: ReportSource$1): void;
|
|
4365
4397
|
protected _doSave(target: ReportTarget): void;
|
|
4366
4398
|
}
|
|
4367
4399
|
|
|
@@ -4446,7 +4478,7 @@ declare class RCOptions extends ChartObject<RealChartItem, RCOptionsConfig> {
|
|
|
4446
4478
|
getSaveLabel(): string;
|
|
4447
4479
|
protected _doDefaultInit(): void;
|
|
4448
4480
|
protected _getEditProps(): IPropInfo[];
|
|
4449
|
-
protected _doLoad(loader: IReportLoader, source: ReportSource): void;
|
|
4481
|
+
protected _doLoad(loader: IReportLoader, source: ReportSource$1): void;
|
|
4450
4482
|
protected _doSave(target: ReportTarget): void;
|
|
4451
4483
|
}
|
|
4452
4484
|
|
|
@@ -4498,7 +4530,7 @@ declare abstract class RCSeries<C = RCSeriesConfig> extends ChartSeries<RealChar
|
|
|
4498
4530
|
|
|
4499
4531
|
declare class RCSeriesCollection extends ChartSeriesCollection<RealChartItem, RCSeriesConfig> {
|
|
4500
4532
|
getChartConfig(context: PrintContext): RCSeriesConfig[];
|
|
4501
|
-
protected _createSeries(loader: IReportLoader, src: ReportSource): RCSeries;
|
|
4533
|
+
protected _createSeries(loader: IReportLoader, src: ReportSource$1): RCSeries;
|
|
4502
4534
|
protected _seriesChanged(): void;
|
|
4503
4535
|
}
|
|
4504
4536
|
|
|
@@ -4612,7 +4644,7 @@ declare class RCXAxisCollection extends RCAxisCollection {
|
|
|
4612
4644
|
get direction(): RCAxisDirection;
|
|
4613
4645
|
get displayPath(): string;
|
|
4614
4646
|
getSaveLabel(): string;
|
|
4615
|
-
protected _createAxis(loader: IReportLoader, src: ReportSource): RCAxis;
|
|
4647
|
+
protected _createAxis(loader: IReportLoader, src: ReportSource$1): RCAxis;
|
|
4616
4648
|
protected _axesChanged(): void;
|
|
4617
4649
|
}
|
|
4618
4650
|
|
|
@@ -4621,7 +4653,7 @@ declare class RCYAxisCollection extends RCAxisCollection {
|
|
|
4621
4653
|
get direction(): RCAxisDirection;
|
|
4622
4654
|
get displayPath(): string;
|
|
4623
4655
|
getSaveLabel(): string;
|
|
4624
|
-
protected _createAxis(loader: IReportLoader, src: ReportSource): RCAxis;
|
|
4656
|
+
protected _createAxis(loader: IReportLoader, src: ReportSource$1): RCAxis;
|
|
4625
4657
|
protected _axesChanged(): void;
|
|
4626
4658
|
}
|
|
4627
4659
|
|
|
@@ -4682,7 +4714,7 @@ declare class RealChartItem extends ChartItem<RCConfig> {
|
|
|
4682
4714
|
protected _getEditProps(): IPropInfo[];
|
|
4683
4715
|
protected _getStyleProps(): string[];
|
|
4684
4716
|
protected _doDefaultInit(loader: IReportLoader, parent: ReportGroupItem, hintWidth: number, hintHeight: number): void;
|
|
4685
|
-
protected _doLoad(loader: IReportLoader, src: ReportSource): void;
|
|
4717
|
+
protected _doLoad(loader: IReportLoader, src: ReportSource$1): void;
|
|
4686
4718
|
protected _doSave(target: ReportTarget): void;
|
|
4687
4719
|
canAddTo(group: ReportGroupItem): boolean;
|
|
4688
4720
|
}
|
|
@@ -5014,17 +5046,30 @@ export declare class ReportDesigner {
|
|
|
5014
5046
|
}
|
|
5015
5047
|
|
|
5016
5048
|
declare interface ReportDesignerOptions {
|
|
5049
|
+
/**
|
|
5050
|
+
* asset panel 표시 여부
|
|
5051
|
+
* @default true
|
|
5052
|
+
*/
|
|
5017
5053
|
showAssetPanel?: boolean;
|
|
5054
|
+
/**
|
|
5055
|
+
* data panel 표시 여부
|
|
5056
|
+
* @default true
|
|
5057
|
+
*/
|
|
5018
5058
|
showDataPanel?: boolean;
|
|
5059
|
+
/**
|
|
5060
|
+
* script panel 표시 여부
|
|
5061
|
+
* @default true
|
|
5062
|
+
*/
|
|
5019
5063
|
showScriptPanel?: boolean;
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5064
|
+
/**
|
|
5065
|
+
* 왼쪽 아이템바에서 클릭 대신 아이템 아이콘을 drag해서 생성할지 여부
|
|
5066
|
+
* @default true
|
|
5067
|
+
*/
|
|
5024
5068
|
dragInsert?: boolean;
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5069
|
+
/** callbacks */
|
|
5070
|
+
getReportListCallback?: () => Promise<ReportListSource>;
|
|
5071
|
+
getReportCallback?: (reportId: string) => Promise<IReportSource>;
|
|
5072
|
+
saveReportCallback?: (report: Record<string, any>, reportId?: string) => Promise<{
|
|
5028
5073
|
reportId: string;
|
|
5029
5074
|
message: any;
|
|
5030
5075
|
} | null>;
|
|
@@ -5045,7 +5090,7 @@ declare class ReportEditableObject<T extends ReportItem> extends ReportItemObjec
|
|
|
5045
5090
|
get level(): number;
|
|
5046
5091
|
constructor(item: T);
|
|
5047
5092
|
getSaveLabel(): string;
|
|
5048
|
-
protected _doLoad(loader: IReportLoader, source: ReportSource): void;
|
|
5093
|
+
protected _doLoad(loader: IReportLoader, source: ReportSource$1): void;
|
|
5049
5094
|
protected _doSave(target: ReportTarget): void;
|
|
5050
5095
|
getEditProps(): IPropInfo[];
|
|
5051
5096
|
getPropDomain(prop: IPropInfo): any[];
|
|
@@ -5187,6 +5232,12 @@ declare abstract class ReportGroupItem extends ReportItem {
|
|
|
5187
5232
|
|
|
5188
5233
|
declare type ReportGroupItemView = ReportGroupItemElement<ReportGroupItem>;
|
|
5189
5234
|
|
|
5235
|
+
declare type ReportGroupSource = {
|
|
5236
|
+
type: 'group';
|
|
5237
|
+
name: string;
|
|
5238
|
+
children: ReportListSource;
|
|
5239
|
+
};
|
|
5240
|
+
|
|
5190
5241
|
/**
|
|
5191
5242
|
* Report header model.
|
|
5192
5243
|
*/
|
|
@@ -5761,7 +5812,7 @@ declare abstract class ReportItemCollectionItem extends ReportPageItem {
|
|
|
5761
5812
|
get collection(): ReportItemCollection<any>;
|
|
5762
5813
|
get level(): number;
|
|
5763
5814
|
protected _doLoad(src: any): void;
|
|
5764
|
-
protected _doAfterLoad(src: ReportSource): void;
|
|
5815
|
+
protected _doAfterLoad(src: ReportSource$1): void;
|
|
5765
5816
|
protected _doSave(target: any): void;
|
|
5766
5817
|
protected _doAfterSave(target: ReportTarget): void;
|
|
5767
5818
|
protected abstract _getStyleProps(): string[];
|
|
@@ -5819,11 +5870,11 @@ declare abstract class ReportItemObject<T extends ReportItem> extends ReportPage
|
|
|
5819
5870
|
get styles(): Styles;
|
|
5820
5871
|
set styles(value: Styles);
|
|
5821
5872
|
defaultInit(): void;
|
|
5822
|
-
load(loader: IReportLoader, source: ReportSource): void;
|
|
5873
|
+
load(loader: IReportLoader, source: ReportSource$1): void;
|
|
5823
5874
|
save(target: ReportTarget): boolean;
|
|
5824
5875
|
isCollection(): boolean;
|
|
5825
5876
|
protected _doDefaultInit(): void;
|
|
5826
|
-
protected _doLoad(loader: IReportLoader, source: ReportSource): void;
|
|
5877
|
+
protected _doLoad(loader: IReportLoader, source: ReportSource$1): void;
|
|
5827
5878
|
protected _doSave(target: ReportTarget): void;
|
|
5828
5879
|
protected _getEditProps(): IPropInfo[];
|
|
5829
5880
|
protected _getStyleProps(): string[];
|
|
@@ -5896,13 +5947,15 @@ declare type ReportItemView = ReportItemElement<ReportItem>;
|
|
|
5896
5947
|
|
|
5897
5948
|
declare type ReportItemVisibleCallback = (ctx: PrintContext, item: ReportItem, row: number, value: any) => boolean;
|
|
5898
5949
|
|
|
5950
|
+
declare type ReportListSource = (ReportGroupSource | ReportSource)[];
|
|
5951
|
+
|
|
5899
5952
|
declare interface ReportObject {
|
|
5900
5953
|
/**
|
|
5901
5954
|
* 속성 불러오기
|
|
5902
5955
|
* @param loader 리포트 속성 로더
|
|
5903
5956
|
* @param source 리포트 속성을 불러올 소스
|
|
5904
5957
|
*/
|
|
5905
|
-
load(loader: IReportLoader, source: ReportSource): void;
|
|
5958
|
+
load(loader: IReportLoader, source: ReportSource$1): void;
|
|
5906
5959
|
/**
|
|
5907
5960
|
* 속성 저장하기
|
|
5908
5961
|
* @param target 리포트 속성을 저장할 타겟
|
|
@@ -5971,6 +6024,7 @@ declare class ReportPage extends ReportGroupItem implements IEventAware {
|
|
|
5971
6024
|
saveTag: string;
|
|
5972
6025
|
private _loading;
|
|
5973
6026
|
private _removing;
|
|
6027
|
+
private _addItemSection;
|
|
5974
6028
|
constructor(report: Report_2, name?: string);
|
|
5975
6029
|
addListener(listener: object): IEventAware;
|
|
5976
6030
|
removeListener(listener: object): IEventAware;
|
|
@@ -6008,6 +6062,11 @@ declare class ReportPage extends ReportGroupItem implements IEventAware {
|
|
|
6008
6062
|
*/
|
|
6009
6063
|
get body(): PageBody;
|
|
6010
6064
|
set body(section: PageBody);
|
|
6065
|
+
/**
|
|
6066
|
+
* addItemSection
|
|
6067
|
+
*/
|
|
6068
|
+
get addItemSection(): ItemAddSection<PageBody>;
|
|
6069
|
+
set addItemSection(section: ItemAddSection<PageBody>);
|
|
6011
6070
|
get backContainer(): PageItemContainer;
|
|
6012
6071
|
set backContainer(section: PageItemContainer);
|
|
6013
6072
|
/**
|
|
@@ -6296,9 +6355,9 @@ declare class ReportRootItem extends ReportGroupItem {
|
|
|
6296
6355
|
}
|
|
6297
6356
|
|
|
6298
6357
|
declare interface ReportServer {
|
|
6299
|
-
getReportList(): Promise<
|
|
6300
|
-
getReport(id: string): Promise<
|
|
6301
|
-
saveReport?(report:
|
|
6358
|
+
getReportList(): Promise<ReportListSource>;
|
|
6359
|
+
getReport(id: string): Promise<IReportSource>;
|
|
6360
|
+
saveReport?(report: Record<string, any>, id?: string): Promise<IReportResponse | null>;
|
|
6302
6361
|
getDataGroups(parent?: string): Promise<string[]>;
|
|
6303
6362
|
getDataList(group: string): Promise<IReportDataInfo[]>;
|
|
6304
6363
|
getData?(id: string): Promise<IReportDataInfo>;
|
|
@@ -6306,7 +6365,13 @@ declare interface ReportServer {
|
|
|
6306
6365
|
getAssetList(group: string): Promise<IReportAssetItem[]>;
|
|
6307
6366
|
}
|
|
6308
6367
|
|
|
6309
|
-
declare type ReportSource = Record<string, unknown> | Record<string, unknown>[];
|
|
6368
|
+
declare type ReportSource$1 = Record<string, unknown> | Record<string, unknown>[];
|
|
6369
|
+
|
|
6370
|
+
declare type ReportSource = {
|
|
6371
|
+
type: 'report';
|
|
6372
|
+
id: string;
|
|
6373
|
+
name: string;
|
|
6374
|
+
};
|
|
6310
6375
|
|
|
6311
6376
|
declare type ReportTarget = Record<string, unknown> | Record<string, unknown>[];
|
|
6312
6377
|
|
|
@@ -6404,6 +6469,7 @@ declare class SimpleBand extends DataBand {
|
|
|
6404
6469
|
get outlineLabel(): string;
|
|
6405
6470
|
get isBand(): boolean;
|
|
6406
6471
|
protected _ignoreItems(): boolean;
|
|
6472
|
+
canFold(): boolean;
|
|
6407
6473
|
protected _getEditProps(): IPropInfo[];
|
|
6408
6474
|
isAncestorOf(item: ReportPageItem): boolean;
|
|
6409
6475
|
protected _doLoad(loader: IReportLoader, src: any): void;
|
|
@@ -6835,6 +6901,7 @@ declare class TableBand extends DataBand {
|
|
|
6835
6901
|
setPrinting(ctx: PrintContext, pr: number, trows?: number): void;
|
|
6836
6902
|
getSaveType(): string;
|
|
6837
6903
|
get outlineLabel(): string;
|
|
6904
|
+
canFold(): boolean;
|
|
6838
6905
|
get isBand(): boolean;
|
|
6839
6906
|
protected _ignoreItems(): boolean;
|
|
6840
6907
|
protected _getEditProps(): IPropInfo[];
|
|
@@ -7696,7 +7763,7 @@ declare abstract class TextItemBase extends ReportItem {
|
|
|
7696
7763
|
|
|
7697
7764
|
/* Excluded from this release type: TextItemElementBase */
|
|
7698
7765
|
|
|
7699
|
-
declare type TreeItemIconType = 'group' | 'report' | 'asset' | 'favorite' | 'bandData' | 'simpleData' | 'language';
|
|
7766
|
+
declare type TreeItemIconType = 'group' | 'report' | 'reportFolder' | 'asset' | 'favorite' | 'bandData' | 'simpleData' | 'language';
|
|
7700
7767
|
|
|
7701
7768
|
declare type TreeItemSource = {
|
|
7702
7769
|
name: string;
|