realreport-designer 1.9.1 → 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 +787 -721
- package/dist/realreport-designer.d.ts +214 -57
- package/dist/realreport-designer.js +27189 -25967
- package/dist/realreport-designer.umd.js +793 -727
- package/dist/styles/realreport-designer.css +2364 -2315
- 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
|
/**
|
|
@@ -3688,6 +3720,7 @@ declare class PrintContext extends Base {
|
|
|
3688
3720
|
private _compositePageCount;
|
|
3689
3721
|
private _compositePage;
|
|
3690
3722
|
private _language;
|
|
3723
|
+
private _editable;
|
|
3691
3724
|
detailRows: number[];
|
|
3692
3725
|
noValueCallback: boolean;
|
|
3693
3726
|
preview: boolean;
|
|
@@ -3802,6 +3835,15 @@ declare class PrintContext extends Base {
|
|
|
3802
3835
|
*/
|
|
3803
3836
|
get language(): string;
|
|
3804
3837
|
set language(value: string);
|
|
3838
|
+
/**
|
|
3839
|
+
* editable
|
|
3840
|
+
*/
|
|
3841
|
+
get editable(): boolean;
|
|
3842
|
+
set editable(value: boolean);
|
|
3843
|
+
/**
|
|
3844
|
+
* 편집 가능한 리포트인지 판별하기 위해 선언
|
|
3845
|
+
*/
|
|
3846
|
+
get isEditable(): boolean;
|
|
3805
3847
|
preparePrint(report?: Report_2): void;
|
|
3806
3848
|
preparePage(page: number, allPage: number): void;
|
|
3807
3849
|
setDetailPage(count: number, page: number): void;
|
|
@@ -3878,6 +3920,7 @@ declare enum PropCategory {
|
|
|
3878
3920
|
LINK = "link",
|
|
3879
3921
|
EVENT = "event",
|
|
3880
3922
|
I18N = "internationalization",
|
|
3923
|
+
EDITING = "editing",
|
|
3881
3924
|
SECTION = "section",
|
|
3882
3925
|
EDITOR = "editor",
|
|
3883
3926
|
REPORT = "report",
|
|
@@ -3970,8 +4013,8 @@ export declare class R2Server implements IReportServer {
|
|
|
3970
4013
|
getDataList(group: string): Promise<IReportDataInfo[]>;
|
|
3971
4014
|
getData(id: string): Promise<IReportDataInfo>;
|
|
3972
4015
|
getReportGroups(): Promise<string[]>;
|
|
3973
|
-
getReportList(group?: string): Promise<
|
|
3974
|
-
getReport(id: string): Promise<
|
|
4016
|
+
getReportList(group?: string): Promise<ReportListSource>;
|
|
4017
|
+
getReport(id: string): Promise<IReportSource>;
|
|
3975
4018
|
getOptions(): Promise<Partial<IReportDesignerOptions>>;
|
|
3976
4019
|
saveOptions(options: IReportDesignerOptions): Promise<string>;
|
|
3977
4020
|
saveReport(report: Report_2, id?: string): Promise<IReportResponse | null>;
|
|
@@ -4095,7 +4138,7 @@ declare class RCAxisGrid extends RCAxisObject<RCAxisGridConfig> {
|
|
|
4095
4138
|
getSaveLabel(): string;
|
|
4096
4139
|
protected _getEditProps(): IPropInfo[];
|
|
4097
4140
|
protected _getStyleProps(): string[];
|
|
4098
|
-
protected _doLoad(loader: IReportLoader, source: ReportSource): void;
|
|
4141
|
+
protected _doLoad(loader: IReportLoader, source: ReportSource$1): void;
|
|
4099
4142
|
protected _doSave(target: ReportTarget): void;
|
|
4100
4143
|
}
|
|
4101
4144
|
|
|
@@ -4124,7 +4167,7 @@ declare class RCAxisLabel extends RCAxisTextObject<RCAxisLabelConfig> {
|
|
|
4124
4167
|
getCollapsedPropCategories(): string[];
|
|
4125
4168
|
protected _getEditProps(): IPropInfo[];
|
|
4126
4169
|
protected _getStyleProps(): string[];
|
|
4127
|
-
protected _doLoad(loader: IReportLoader, source: ReportSource): void;
|
|
4170
|
+
protected _doLoad(loader: IReportLoader, source: ReportSource$1): void;
|
|
4128
4171
|
protected _doSave(target: ReportTarget): void;
|
|
4129
4172
|
}
|
|
4130
4173
|
|
|
@@ -4200,7 +4243,7 @@ declare class RCAxisTick extends RCAxisObject<RCAxisTickConfig> {
|
|
|
4200
4243
|
getSaveLabel(): string;
|
|
4201
4244
|
protected _getEditProps(): IPropInfo[];
|
|
4202
4245
|
protected _getStyleProps(): string[];
|
|
4203
|
-
protected _doLoad(loader: IReportLoader, source: ReportSource): void;
|
|
4246
|
+
protected _doLoad(loader: IReportLoader, source: ReportSource$1): void;
|
|
4204
4247
|
protected _doSave(target: ReportTarget): void;
|
|
4205
4248
|
}
|
|
4206
4249
|
|
|
@@ -4350,7 +4393,7 @@ declare class RCLegend extends ChartObject<RealChartItem, RCLegendConfig> {
|
|
|
4350
4393
|
getSubStyleProps(prop: string): IPropInfo[];
|
|
4351
4394
|
protected _getSubStyle(prop: string, style: string): any;
|
|
4352
4395
|
protected _setSubStyle(prop: string, style: string, value: any): void;
|
|
4353
|
-
protected _doLoad(loader: IReportLoader, source: ReportSource): void;
|
|
4396
|
+
protected _doLoad(loader: IReportLoader, source: ReportSource$1): void;
|
|
4354
4397
|
protected _doSave(target: ReportTarget): void;
|
|
4355
4398
|
}
|
|
4356
4399
|
|
|
@@ -4435,7 +4478,7 @@ declare class RCOptions extends ChartObject<RealChartItem, RCOptionsConfig> {
|
|
|
4435
4478
|
getSaveLabel(): string;
|
|
4436
4479
|
protected _doDefaultInit(): void;
|
|
4437
4480
|
protected _getEditProps(): IPropInfo[];
|
|
4438
|
-
protected _doLoad(loader: IReportLoader, source: ReportSource): void;
|
|
4481
|
+
protected _doLoad(loader: IReportLoader, source: ReportSource$1): void;
|
|
4439
4482
|
protected _doSave(target: ReportTarget): void;
|
|
4440
4483
|
}
|
|
4441
4484
|
|
|
@@ -4487,7 +4530,7 @@ declare abstract class RCSeries<C = RCSeriesConfig> extends ChartSeries<RealChar
|
|
|
4487
4530
|
|
|
4488
4531
|
declare class RCSeriesCollection extends ChartSeriesCollection<RealChartItem, RCSeriesConfig> {
|
|
4489
4532
|
getChartConfig(context: PrintContext): RCSeriesConfig[];
|
|
4490
|
-
protected _createSeries(loader: IReportLoader, src: ReportSource): RCSeries;
|
|
4533
|
+
protected _createSeries(loader: IReportLoader, src: ReportSource$1): RCSeries;
|
|
4491
4534
|
protected _seriesChanged(): void;
|
|
4492
4535
|
}
|
|
4493
4536
|
|
|
@@ -4601,7 +4644,7 @@ declare class RCXAxisCollection extends RCAxisCollection {
|
|
|
4601
4644
|
get direction(): RCAxisDirection;
|
|
4602
4645
|
get displayPath(): string;
|
|
4603
4646
|
getSaveLabel(): string;
|
|
4604
|
-
protected _createAxis(loader: IReportLoader, src: ReportSource): RCAxis;
|
|
4647
|
+
protected _createAxis(loader: IReportLoader, src: ReportSource$1): RCAxis;
|
|
4605
4648
|
protected _axesChanged(): void;
|
|
4606
4649
|
}
|
|
4607
4650
|
|
|
@@ -4610,7 +4653,7 @@ declare class RCYAxisCollection extends RCAxisCollection {
|
|
|
4610
4653
|
get direction(): RCAxisDirection;
|
|
4611
4654
|
get displayPath(): string;
|
|
4612
4655
|
getSaveLabel(): string;
|
|
4613
|
-
protected _createAxis(loader: IReportLoader, src: ReportSource): RCAxis;
|
|
4656
|
+
protected _createAxis(loader: IReportLoader, src: ReportSource$1): RCAxis;
|
|
4614
4657
|
protected _axesChanged(): void;
|
|
4615
4658
|
}
|
|
4616
4659
|
|
|
@@ -4671,7 +4714,7 @@ declare class RealChartItem extends ChartItem<RCConfig> {
|
|
|
4671
4714
|
protected _getEditProps(): IPropInfo[];
|
|
4672
4715
|
protected _getStyleProps(): string[];
|
|
4673
4716
|
protected _doDefaultInit(loader: IReportLoader, parent: ReportGroupItem, hintWidth: number, hintHeight: number): void;
|
|
4674
|
-
protected _doLoad(loader: IReportLoader, src: ReportSource): void;
|
|
4717
|
+
protected _doLoad(loader: IReportLoader, src: ReportSource$1): void;
|
|
4675
4718
|
protected _doSave(target: ReportTarget): void;
|
|
4676
4719
|
canAddTo(group: ReportGroupItem): boolean;
|
|
4677
4720
|
}
|
|
@@ -4785,6 +4828,8 @@ declare class Report_2 extends EventAware implements IEditCommandStackOwner, IPr
|
|
|
4785
4828
|
get dirty(): boolean;
|
|
4786
4829
|
/** reportItemRegistry */
|
|
4787
4830
|
get reportItemRegistry(): ReportItemRegistry;
|
|
4831
|
+
/** editing */
|
|
4832
|
+
get editing(): ReportEditableObject<ReportRootItem>;
|
|
4788
4833
|
load(src: any): Report_2;
|
|
4789
4834
|
setSaveTagging(tag: string): Report_2;
|
|
4790
4835
|
save(pageOnly?: boolean): object;
|
|
@@ -5001,22 +5046,56 @@ export declare class ReportDesigner {
|
|
|
5001
5046
|
}
|
|
5002
5047
|
|
|
5003
5048
|
declare interface ReportDesignerOptions {
|
|
5049
|
+
/**
|
|
5050
|
+
* asset panel 표시 여부
|
|
5051
|
+
* @default true
|
|
5052
|
+
*/
|
|
5004
5053
|
showAssetPanel?: boolean;
|
|
5054
|
+
/**
|
|
5055
|
+
* data panel 표시 여부
|
|
5056
|
+
* @default true
|
|
5057
|
+
*/
|
|
5005
5058
|
showDataPanel?: boolean;
|
|
5059
|
+
/**
|
|
5060
|
+
* script panel 표시 여부
|
|
5061
|
+
* @default true
|
|
5062
|
+
*/
|
|
5006
5063
|
showScriptPanel?: boolean;
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5064
|
+
/**
|
|
5065
|
+
* 왼쪽 아이템바에서 클릭 대신 아이템 아이콘을 drag해서 생성할지 여부
|
|
5066
|
+
* @default true
|
|
5067
|
+
*/
|
|
5011
5068
|
dragInsert?: boolean;
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5069
|
+
/** callbacks */
|
|
5070
|
+
getReportListCallback?: () => Promise<ReportListSource>;
|
|
5071
|
+
getReportCallback?: (reportId: string) => Promise<IReportSource>;
|
|
5072
|
+
saveReportCallback?: (report: Record<string, any>, reportId?: string) => Promise<{
|
|
5015
5073
|
reportId: string;
|
|
5016
5074
|
message: any;
|
|
5017
5075
|
} | null>;
|
|
5018
5076
|
}
|
|
5019
5077
|
|
|
5078
|
+
/**
|
|
5079
|
+
* 리포트 최상단에서 편집가능 객체 속성 구현
|
|
5080
|
+
*/
|
|
5081
|
+
declare class ReportEditableObject<T extends ReportItem> extends ReportItemObject<T> {
|
|
5082
|
+
static readonly PROP_EDITABLE = "editable";
|
|
5083
|
+
static readonly PROP_TYPE = "type";
|
|
5084
|
+
static readonly PROPINFOS: IPropInfo[];
|
|
5085
|
+
private _editable;
|
|
5086
|
+
get editable(): boolean;
|
|
5087
|
+
set editable(value: boolean);
|
|
5088
|
+
get pathLabel(): string;
|
|
5089
|
+
get displayPath(): string;
|
|
5090
|
+
get level(): number;
|
|
5091
|
+
constructor(item: T);
|
|
5092
|
+
getSaveLabel(): string;
|
|
5093
|
+
protected _doLoad(loader: IReportLoader, source: ReportSource$1): void;
|
|
5094
|
+
protected _doSave(target: ReportTarget): void;
|
|
5095
|
+
getEditProps(): IPropInfo[];
|
|
5096
|
+
getPropDomain(prop: IPropInfo): any[];
|
|
5097
|
+
}
|
|
5098
|
+
|
|
5020
5099
|
/* Excluded from this release type: ReportElement */
|
|
5021
5100
|
|
|
5022
5101
|
/**
|
|
@@ -5153,6 +5232,12 @@ declare abstract class ReportGroupItem extends ReportItem {
|
|
|
5153
5232
|
|
|
5154
5233
|
declare type ReportGroupItemView = ReportGroupItemElement<ReportGroupItem>;
|
|
5155
5234
|
|
|
5235
|
+
declare type ReportGroupSource = {
|
|
5236
|
+
type: 'group';
|
|
5237
|
+
name: string;
|
|
5238
|
+
children: ReportListSource;
|
|
5239
|
+
};
|
|
5240
|
+
|
|
5156
5241
|
/**
|
|
5157
5242
|
* Report header model.
|
|
5158
5243
|
*/
|
|
@@ -5604,12 +5689,12 @@ declare abstract class ReportItem extends ReportPageItem {
|
|
|
5604
5689
|
unfold(): boolean;
|
|
5605
5690
|
isI18nFieldValid(): boolean;
|
|
5606
5691
|
getLanguageFieldValue(language: string, field: string): string;
|
|
5607
|
-
protected _foldedChanged(): void;
|
|
5608
5692
|
get marqueeParent(): ReportItem;
|
|
5609
5693
|
get printable(): boolean;
|
|
5610
5694
|
isReadOnlyProperty(prop: IPropInfo): boolean;
|
|
5611
5695
|
protected _sizable(): boolean;
|
|
5612
5696
|
protected _boundable(): boolean;
|
|
5697
|
+
protected _foldedChanged(): void;
|
|
5613
5698
|
/**
|
|
5614
5699
|
* 리포트 아이템 생성 시, 수행할 초기화 작업을 정의한다.
|
|
5615
5700
|
*
|
|
@@ -5727,7 +5812,7 @@ declare abstract class ReportItemCollectionItem extends ReportPageItem {
|
|
|
5727
5812
|
get collection(): ReportItemCollection<any>;
|
|
5728
5813
|
get level(): number;
|
|
5729
5814
|
protected _doLoad(src: any): void;
|
|
5730
|
-
protected _doAfterLoad(src: ReportSource): void;
|
|
5815
|
+
protected _doAfterLoad(src: ReportSource$1): void;
|
|
5731
5816
|
protected _doSave(target: any): void;
|
|
5732
5817
|
protected _doAfterSave(target: ReportTarget): void;
|
|
5733
5818
|
protected abstract _getStyleProps(): string[];
|
|
@@ -5743,10 +5828,61 @@ declare class ReportItemElementMap extends Base {
|
|
|
5743
5828
|
private _reportItemElements;
|
|
5744
5829
|
constructor();
|
|
5745
5830
|
add<T extends ReportItem>(itemElement: ReportItemElement<T>): void;
|
|
5746
|
-
|
|
5831
|
+
getItemElements(): ReportItemElement<ReportItem>[];
|
|
5832
|
+
getItemElementByModelHash<T extends ReportItem>(hash: string): ReportItemElement<T> | undefined;
|
|
5747
5833
|
getBandElementByModel<T extends DataBand>(model: DataBand): BandElement<T> | undefined;
|
|
5748
5834
|
}
|
|
5749
5835
|
|
|
5836
|
+
/**
|
|
5837
|
+
* 특정 속성 카테고리에서 자식 스타일 정보를 하위로 생성해야할 때 사용
|
|
5838
|
+
*/
|
|
5839
|
+
declare abstract class ReportItemObject<T extends ReportItem> extends ReportPageItem implements ReportObject {
|
|
5840
|
+
static readonly PROPINFOS: IPropInfo[];
|
|
5841
|
+
static readonly STYLE_PROPS: any[];
|
|
5842
|
+
private _item;
|
|
5843
|
+
private _styles;
|
|
5844
|
+
constructor(item: T);
|
|
5845
|
+
get outlineParent(): IOutlineSource | undefined;
|
|
5846
|
+
get outlineExpandable(): boolean;
|
|
5847
|
+
get outlineLabel(): string;
|
|
5848
|
+
getSaveType(): string;
|
|
5849
|
+
canRemoveFrom(): boolean;
|
|
5850
|
+
abstract getSaveLabel(): string;
|
|
5851
|
+
getEditProps(): IPropInfo[];
|
|
5852
|
+
getStyleProps(): IPropInfo[];
|
|
5853
|
+
getSubStyleProps(prop: string): IPropInfo[];
|
|
5854
|
+
getPlaceHolder(prop: IPropInfo): string;
|
|
5855
|
+
getPropDomain(prop: IPropInfo): any[];
|
|
5856
|
+
setItemsProperty(sources: IPropertySource[], prop: string, value: any): void;
|
|
5857
|
+
getStyle(style: string): string;
|
|
5858
|
+
setStyle(style: string, value: string): void;
|
|
5859
|
+
getStyleProperty(prop: string): any;
|
|
5860
|
+
setStyleProperty(prop: string, value: any): void;
|
|
5861
|
+
isChildProp(prop: string): boolean;
|
|
5862
|
+
getSubStyleProperty(prop: string, style: string): any;
|
|
5863
|
+
setSubStyleProperty(prop: string, style: string, value: any): void;
|
|
5864
|
+
setItemsSubStyleProperty(sources: IPropertySource[], prop: string, style: string, value: any): void;
|
|
5865
|
+
canPropAdoptDragSource(prop: IPropInfo, source: any): boolean;
|
|
5866
|
+
adoptPropDragSource(prop: IPropInfo, source: any): IDropResult;
|
|
5867
|
+
get item(): T;
|
|
5868
|
+
get page(): ReportPage;
|
|
5869
|
+
get report(): Report_2;
|
|
5870
|
+
get styles(): Styles;
|
|
5871
|
+
set styles(value: Styles);
|
|
5872
|
+
defaultInit(): void;
|
|
5873
|
+
load(loader: IReportLoader, source: ReportSource$1): void;
|
|
5874
|
+
save(target: ReportTarget): boolean;
|
|
5875
|
+
isCollection(): boolean;
|
|
5876
|
+
protected _doDefaultInit(): void;
|
|
5877
|
+
protected _doLoad(loader: IReportLoader, source: ReportSource$1): void;
|
|
5878
|
+
protected _doSave(target: ReportTarget): void;
|
|
5879
|
+
protected _getEditProps(): IPropInfo[];
|
|
5880
|
+
protected _getStyleProps(): string[];
|
|
5881
|
+
protected _getSubStyle(prop: string, style: string): any;
|
|
5882
|
+
protected _setSubStyle(prop: string, style: string, value: any): void;
|
|
5883
|
+
protected _changed(prop: string, newValue: unknown, oldValue: unknown): void;
|
|
5884
|
+
}
|
|
5885
|
+
|
|
5750
5886
|
/**
|
|
5751
5887
|
* Report Item들에 대한 정보를 한곳에 모아서 등록해놓고 용이하게 꺼내쓰기 위해 작성
|
|
5752
5888
|
*/
|
|
@@ -5811,13 +5947,15 @@ declare type ReportItemView = ReportItemElement<ReportItem>;
|
|
|
5811
5947
|
|
|
5812
5948
|
declare type ReportItemVisibleCallback = (ctx: PrintContext, item: ReportItem, row: number, value: any) => boolean;
|
|
5813
5949
|
|
|
5950
|
+
declare type ReportListSource = (ReportGroupSource | ReportSource)[];
|
|
5951
|
+
|
|
5814
5952
|
declare interface ReportObject {
|
|
5815
5953
|
/**
|
|
5816
5954
|
* 속성 불러오기
|
|
5817
5955
|
* @param loader 리포트 속성 로더
|
|
5818
5956
|
* @param source 리포트 속성을 불러올 소스
|
|
5819
5957
|
*/
|
|
5820
|
-
load(loader: IReportLoader, source: ReportSource): void;
|
|
5958
|
+
load(loader: IReportLoader, source: ReportSource$1): void;
|
|
5821
5959
|
/**
|
|
5822
5960
|
* 속성 저장하기
|
|
5823
5961
|
* @param target 리포트 속성을 저장할 타겟
|
|
@@ -5886,6 +6024,7 @@ declare class ReportPage extends ReportGroupItem implements IEventAware {
|
|
|
5886
6024
|
saveTag: string;
|
|
5887
6025
|
private _loading;
|
|
5888
6026
|
private _removing;
|
|
6027
|
+
private _addItemSection;
|
|
5889
6028
|
constructor(report: Report_2, name?: string);
|
|
5890
6029
|
addListener(listener: object): IEventAware;
|
|
5891
6030
|
removeListener(listener: object): IEventAware;
|
|
@@ -5923,6 +6062,11 @@ declare class ReportPage extends ReportGroupItem implements IEventAware {
|
|
|
5923
6062
|
*/
|
|
5924
6063
|
get body(): PageBody;
|
|
5925
6064
|
set body(section: PageBody);
|
|
6065
|
+
/**
|
|
6066
|
+
* addItemSection
|
|
6067
|
+
*/
|
|
6068
|
+
get addItemSection(): ItemAddSection<PageBody>;
|
|
6069
|
+
set addItemSection(section: ItemAddSection<PageBody>);
|
|
5926
6070
|
get backContainer(): PageItemContainer;
|
|
5927
6071
|
set backContainer(section: PageItemContainer);
|
|
5928
6072
|
/**
|
|
@@ -6095,6 +6239,7 @@ declare abstract class ReportPageItem extends Base implements ISelectionSource,
|
|
|
6095
6239
|
*/
|
|
6096
6240
|
get marqueeParent(): ReportItem;
|
|
6097
6241
|
get printable(): boolean;
|
|
6242
|
+
get printEditable(): boolean;
|
|
6098
6243
|
isAncestorOf(item: ReportPageItem): boolean;
|
|
6099
6244
|
getProps(): any;
|
|
6100
6245
|
setProps(src: any): void;
|
|
@@ -6142,11 +6287,13 @@ declare class ReportRootItem extends ReportGroupItem {
|
|
|
6142
6287
|
static readonly PROP_MARGIN_RIGHT = "marginRight";
|
|
6143
6288
|
static readonly PROP_MARGIN_TOP = "marginTop";
|
|
6144
6289
|
static readonly PROP_MARGIN_BOTTOM = "marginBottom";
|
|
6290
|
+
static readonly PROP_EDITING = "editing";
|
|
6145
6291
|
static readonly PROPINFOS: IPropInfo[];
|
|
6146
6292
|
static readonly $_ctor: string;
|
|
6147
6293
|
private _report;
|
|
6148
6294
|
private _type;
|
|
6149
6295
|
private _maxPageCount;
|
|
6296
|
+
private _editing;
|
|
6150
6297
|
constructor(report: Report_2, name?: string);
|
|
6151
6298
|
get report(): Report_2;
|
|
6152
6299
|
/** type */
|
|
@@ -6194,6 +6341,8 @@ declare class ReportRootItem extends ReportGroupItem {
|
|
|
6194
6341
|
/** marginBottom */
|
|
6195
6342
|
get marginBottom(): ValueString;
|
|
6196
6343
|
set marginBottom(value: ValueString);
|
|
6344
|
+
/** editing */
|
|
6345
|
+
get editing(): ReportEditableObject<ReportRootItem>;
|
|
6197
6346
|
get outlineLabel(): string;
|
|
6198
6347
|
get pathLabel(): string;
|
|
6199
6348
|
get displayPath(): string;
|
|
@@ -6206,9 +6355,9 @@ declare class ReportRootItem extends ReportGroupItem {
|
|
|
6206
6355
|
}
|
|
6207
6356
|
|
|
6208
6357
|
declare interface ReportServer {
|
|
6209
|
-
getReportList(): Promise<
|
|
6210
|
-
getReport(id: string): Promise<
|
|
6211
|
-
saveReport?(report:
|
|
6358
|
+
getReportList(): Promise<ReportListSource>;
|
|
6359
|
+
getReport(id: string): Promise<IReportSource>;
|
|
6360
|
+
saveReport?(report: Record<string, any>, id?: string): Promise<IReportResponse | null>;
|
|
6212
6361
|
getDataGroups(parent?: string): Promise<string[]>;
|
|
6213
6362
|
getDataList(group: string): Promise<IReportDataInfo[]>;
|
|
6214
6363
|
getData?(id: string): Promise<IReportDataInfo>;
|
|
@@ -6216,7 +6365,13 @@ declare interface ReportServer {
|
|
|
6216
6365
|
getAssetList(group: string): Promise<IReportAssetItem[]>;
|
|
6217
6366
|
}
|
|
6218
6367
|
|
|
6219
|
-
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
|
+
};
|
|
6220
6375
|
|
|
6221
6376
|
declare type ReportTarget = Record<string, unknown> | Record<string, unknown>[];
|
|
6222
6377
|
|
|
@@ -6314,6 +6469,7 @@ declare class SimpleBand extends DataBand {
|
|
|
6314
6469
|
get outlineLabel(): string;
|
|
6315
6470
|
get isBand(): boolean;
|
|
6316
6471
|
protected _ignoreItems(): boolean;
|
|
6472
|
+
canFold(): boolean;
|
|
6317
6473
|
protected _getEditProps(): IPropInfo[];
|
|
6318
6474
|
isAncestorOf(item: ReportPageItem): boolean;
|
|
6319
6475
|
protected _doLoad(loader: IReportLoader, src: any): void;
|
|
@@ -6745,6 +6901,7 @@ declare class TableBand extends DataBand {
|
|
|
6745
6901
|
setPrinting(ctx: PrintContext, pr: number, trows?: number): void;
|
|
6746
6902
|
getSaveType(): string;
|
|
6747
6903
|
get outlineLabel(): string;
|
|
6904
|
+
canFold(): boolean;
|
|
6748
6905
|
get isBand(): boolean;
|
|
6749
6906
|
protected _ignoreItems(): boolean;
|
|
6750
6907
|
protected _getEditProps(): IPropInfo[];
|
|
@@ -7606,7 +7763,7 @@ declare abstract class TextItemBase extends ReportItem {
|
|
|
7606
7763
|
|
|
7607
7764
|
/* Excluded from this release type: TextItemElementBase */
|
|
7608
7765
|
|
|
7609
|
-
declare type TreeItemIconType = 'group' | 'report' | 'asset' | 'favorite' | 'bandData' | 'simpleData' | 'language';
|
|
7766
|
+
declare type TreeItemIconType = 'group' | 'report' | 'reportFolder' | 'asset' | 'favorite' | 'bandData' | 'simpleData' | 'language';
|
|
7610
7767
|
|
|
7611
7768
|
declare type TreeItemSource = {
|
|
7612
7769
|
name: string;
|