realreport-designer 1.9.3 → 1.9.5
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 +260 -234
- package/dist/realreport-designer.d.ts +100 -9
- package/dist/realreport-designer.js +46314 -42218
- package/dist/realreport-designer.umd.js +260 -234
- package/dist/styles/realreport-designer.css +161 -73
- package/package.json +1 -1
|
@@ -145,6 +145,14 @@ declare class BandArrayData extends BandData implements IBandData {
|
|
|
145
145
|
protected _prepareCalcField(fields: IBandDataField[], fieldMap: any, calcField: IBandDataField, index: number, node: ExpressionNode): void;
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
+
declare interface BandBorders {
|
|
149
|
+
border: string;
|
|
150
|
+
borderLeft: string;
|
|
151
|
+
borderRight: string;
|
|
152
|
+
borderTop: string;
|
|
153
|
+
borderBottom: string;
|
|
154
|
+
}
|
|
155
|
+
|
|
148
156
|
declare class BandCollectionElement extends ReportGroupItemElement<DataBandCollection> {
|
|
149
157
|
constructor(doc: Document, model: DataBandCollection);
|
|
150
158
|
protected _doDispose(): void;
|
|
@@ -211,6 +219,7 @@ declare class BandDataView extends Base implements IBandDataView {
|
|
|
211
219
|
declare abstract class BandElement<T extends DataBand> extends ReportGroupItemElement<T> {
|
|
212
220
|
static readonly END_ROW_MESSAGE_CLASS = "rr-end-row-message";
|
|
213
221
|
static readonly END_ROW_CLASS = "rr-end-row";
|
|
222
|
+
static readonly BORDER_CONTAINER = "rr-band-border-container";
|
|
214
223
|
abstract get rowView(): ReportGroupItemView;
|
|
215
224
|
private _needFooterView;
|
|
216
225
|
get needFooterView(): boolean;
|
|
@@ -342,6 +351,10 @@ declare abstract class BandPrintInfo<T extends ReportItem> {
|
|
|
342
351
|
*/
|
|
343
352
|
setBandBoundPosition(ctx: PrintContext, model: BandModel, div: HTMLDivElement): void;
|
|
344
353
|
setBandPrevIndex(index: number): void;
|
|
354
|
+
createBorderContaienr(doc: Document, y: number, w: number, name: string, tModel: string): HTMLDivElement;
|
|
355
|
+
setBorderContainerStyle(borderContainer: HTMLDivElement, styles: {
|
|
356
|
+
[x: string]: string;
|
|
357
|
+
}): void;
|
|
345
358
|
protected _setX(dom: HTMLElement, x: number): void;
|
|
346
359
|
protected _setY(dom: HTMLElement, y: number): void;
|
|
347
360
|
protected _setPos(dom: HTMLElement, x: number, y: number): void;
|
|
@@ -408,6 +421,13 @@ declare class BodyItemAddSection extends ItemAddSection<PageBody> {
|
|
|
408
421
|
|
|
409
422
|
/* Excluded from this release type: BodyItemAddSectionElement */
|
|
410
423
|
|
|
424
|
+
declare interface BorderWidths {
|
|
425
|
+
left: number;
|
|
426
|
+
right: number;
|
|
427
|
+
top: number;
|
|
428
|
+
bottom: number;
|
|
429
|
+
}
|
|
430
|
+
|
|
411
431
|
/**
|
|
412
432
|
* 자식들의 위치를 지정할 수 있는 container.
|
|
413
433
|
* 위치 설정이 안된 item은 중앙에 정렬 시킨다.
|
|
@@ -1029,6 +1049,7 @@ declare class CrosstabBandTitle extends ReportItem {
|
|
|
1029
1049
|
/** text */
|
|
1030
1050
|
get text(): string;
|
|
1031
1051
|
set text(value: string);
|
|
1052
|
+
get page(): ReportPage;
|
|
1032
1053
|
protected _getEditProps(): any[];
|
|
1033
1054
|
protected _getStyleProps(): string[];
|
|
1034
1055
|
protected _doLoad(loader: IReportLoader, src: any): void;
|
|
@@ -1250,6 +1271,7 @@ declare class CrosstabNullValue extends ReportItem {
|
|
|
1250
1271
|
/** text */
|
|
1251
1272
|
get text(): string;
|
|
1252
1273
|
set text(value: string);
|
|
1274
|
+
get page(): ReportPage;
|
|
1253
1275
|
protected _getEditProps(): any[];
|
|
1254
1276
|
protected _getStyleProps(): string[];
|
|
1255
1277
|
protected _doLoad(loader: IReportLoader, src: any): void;
|
|
@@ -1654,6 +1676,9 @@ declare abstract class DataBand extends ReportGroupItem {
|
|
|
1654
1676
|
getMin(field: string, count: number, rows?: number[]): number;
|
|
1655
1677
|
getMax(field: string, count: number, rows?: number[]): number;
|
|
1656
1678
|
getAvg(field: string, count: number, rows?: number[]): number;
|
|
1679
|
+
getBandBorders(): BandBorders;
|
|
1680
|
+
getBandBorderWidths(): BorderWidths;
|
|
1681
|
+
hasBorder(): boolean;
|
|
1657
1682
|
getPropDomain(prop: IPropInfo): any[];
|
|
1658
1683
|
/**
|
|
1659
1684
|
* 출력시 사용되는 밴드의 정보를 초기값으로 초기화
|
|
@@ -2726,7 +2751,7 @@ declare interface IBandData extends IReportData {
|
|
|
2726
2751
|
|
|
2727
2752
|
declare interface IBandDataField {
|
|
2728
2753
|
fieldName: string;
|
|
2729
|
-
dataType?: "text" | "number" | "bool" | "datetime";
|
|
2754
|
+
dataType?: "text" | "number" | "bool" | "array" | "datetime";
|
|
2730
2755
|
source?: string;
|
|
2731
2756
|
expression?: string;
|
|
2732
2757
|
format?: string;
|
|
@@ -3024,7 +3049,7 @@ declare interface IReportDesignerOptions {
|
|
|
3024
3049
|
/** callbacks */
|
|
3025
3050
|
getReportListCallback?: () => Promise<ReportListSource>;
|
|
3026
3051
|
getReportCallback?: (reportId: string) => Promise<IReportSource>;
|
|
3027
|
-
saveReportCallback?: (report: Record<string, any>, reportId: string) => Promise<SaveCallbackResponse | null>;
|
|
3052
|
+
saveReportCallback?: (report: Record<string, any>, reportId: string, reportContext: ReportContext) => Promise<SaveCallbackResponse | null>;
|
|
3028
3053
|
getOptionsCallback?: () => Promise<Partial<IReportDesignerOptions>>;
|
|
3029
3054
|
saveOptionsCallback?: (options: IReportDesignerOptions) => Promise<string | null>;
|
|
3030
3055
|
}
|
|
@@ -3049,7 +3074,7 @@ declare interface IReportResponse {
|
|
|
3049
3074
|
declare interface IReportServer {
|
|
3050
3075
|
getReportList(): Promise<ReportListSource>;
|
|
3051
3076
|
getReport(id: string): Promise<IReportSource>;
|
|
3052
|
-
saveReport?(report: Record<string, any>, id
|
|
3077
|
+
saveReport?(report: Record<string, any>, id: string, reportContext: ReportContext): Promise<IReportResponse | null>;
|
|
3053
3078
|
getDataGroups(parent?: string): Promise<string[]>;
|
|
3054
3079
|
getDataList(group: string): Promise<IReportDataInfo[]>;
|
|
3055
3080
|
getData?(id: string): Promise<IReportDataInfo>;
|
|
@@ -3956,6 +3981,7 @@ declare enum PropCategory {
|
|
|
3956
3981
|
TOOLTIP = "tooltip",
|
|
3957
3982
|
CROSSHAIR = "crosshair",
|
|
3958
3983
|
OPTIONS = "options",
|
|
3984
|
+
BODY = "body",
|
|
3959
3985
|
CREDITS = "credits",
|
|
3960
3986
|
STYLES = "Styles",
|
|
3961
3987
|
EMAIL_FORM_INFO = "email form info",
|
|
@@ -4036,6 +4062,7 @@ declare abstract class RCAxis<C = RCAxisConfig> extends ChartAxis<RealChartItem,
|
|
|
4036
4062
|
static readonly PROP_MIN_VALUE = "minValue";
|
|
4037
4063
|
static readonly PROP_STRICT_MAX = "strictMax";
|
|
4038
4064
|
static readonly PROP_STRICT_MIN = "strictMin";
|
|
4065
|
+
static readonly PROP_START_ANGLE = "startAngle";
|
|
4039
4066
|
static readonly PROP_TITLE = "title";
|
|
4040
4067
|
static readonly PROP_LABEL = "label";
|
|
4041
4068
|
static readonly PROP_GRID = "grid";
|
|
@@ -4047,6 +4074,7 @@ declare abstract class RCAxis<C = RCAxisConfig> extends ChartAxis<RealChartItem,
|
|
|
4047
4074
|
private _minValue;
|
|
4048
4075
|
private _strictMax;
|
|
4049
4076
|
private _strictMin;
|
|
4077
|
+
private _startAngle;
|
|
4050
4078
|
private _title;
|
|
4051
4079
|
private _label;
|
|
4052
4080
|
private _grid;
|
|
@@ -4064,6 +4092,8 @@ declare abstract class RCAxis<C = RCAxisConfig> extends ChartAxis<RealChartItem,
|
|
|
4064
4092
|
set maxValue(value: number);
|
|
4065
4093
|
get minValue(): number;
|
|
4066
4094
|
set minValue(value: number);
|
|
4095
|
+
get startAngle(): number;
|
|
4096
|
+
set startAngle(value: number);
|
|
4067
4097
|
get strictMax(): number;
|
|
4068
4098
|
set strictMax(value: number);
|
|
4069
4099
|
get strictMin(): number;
|
|
@@ -4094,6 +4124,7 @@ declare interface RCAxisConfigBase {
|
|
|
4094
4124
|
name?: string;
|
|
4095
4125
|
maxValue?: number;
|
|
4096
4126
|
minValue?: number;
|
|
4127
|
+
startAngle?: number;
|
|
4097
4128
|
marginFar?: number;
|
|
4098
4129
|
marginNear?: number;
|
|
4099
4130
|
maxPadding?: number;
|
|
@@ -4101,7 +4132,7 @@ declare interface RCAxisConfigBase {
|
|
|
4101
4132
|
label?: RCAxisLabelConfig;
|
|
4102
4133
|
grid?: RCAxisGridConfig;
|
|
4103
4134
|
line?: RCAxisLineConfig;
|
|
4104
|
-
tick?:
|
|
4135
|
+
tick?: RCAxisTickConfig;
|
|
4105
4136
|
crosshair?: RCAxisCorssHairConfig;
|
|
4106
4137
|
}
|
|
4107
4138
|
|
|
@@ -4169,6 +4200,7 @@ declare class RCAxisLabel extends RCAxisTextObject<RCAxisLabelConfig> {
|
|
|
4169
4200
|
protected _getStyleProps(): string[];
|
|
4170
4201
|
protected _doLoad(loader: IReportLoader, source: ReportSource$1): void;
|
|
4171
4202
|
protected _doSave(target: ReportTarget): void;
|
|
4203
|
+
getPropDomain(prop: IPropInfo): any[];
|
|
4172
4204
|
}
|
|
4173
4205
|
|
|
4174
4206
|
declare enum RCAxisLabelAutoArrange {
|
|
@@ -4267,14 +4299,22 @@ declare class RCAxisTitle extends RCAxisTextObject<RCAxisTitleConfig> {
|
|
|
4267
4299
|
declare interface RCAxisTitleConfig {
|
|
4268
4300
|
text: string;
|
|
4269
4301
|
visible?: boolean;
|
|
4270
|
-
align?:
|
|
4302
|
+
align?: RCAxisTitleConfigAlign;
|
|
4271
4303
|
gap?: number;
|
|
4272
4304
|
offset?: number;
|
|
4273
|
-
rotation?:
|
|
4305
|
+
rotation?: RCAxisTitleConfigRotation;
|
|
4274
4306
|
backgroundStyle?: RCSvgStyles;
|
|
4275
4307
|
style?: RCSvgStyles;
|
|
4276
4308
|
}
|
|
4277
4309
|
|
|
4310
|
+
declare enum RCAxisTitleConfigAlign {
|
|
4311
|
+
MIDDLE = "middle",
|
|
4312
|
+
START = "start",
|
|
4313
|
+
END = "end"
|
|
4314
|
+
}
|
|
4315
|
+
|
|
4316
|
+
declare type RCAxisTitleConfigRotation = 0 | 90 | 270 | -90 | -270;
|
|
4317
|
+
|
|
4278
4318
|
declare type RCAxisType = 'category' | 'linear' | 'log' | 'time';
|
|
4279
4319
|
|
|
4280
4320
|
declare type RCBarSeriesConfig = {
|
|
@@ -4289,6 +4329,28 @@ declare type RCBarSeriesConfig = {
|
|
|
4289
4329
|
belowStyle?: RCSvgStyles;
|
|
4290
4330
|
} & RCSeriesPointConfig & RCSeriesConfigBase;
|
|
4291
4331
|
|
|
4332
|
+
declare class RCBody extends ChartObject<RealChartItem, RCBodyConfig> {
|
|
4333
|
+
static readonly PROP_CIRCULAR = "circular";
|
|
4334
|
+
static readonly PROPINFOS: IPropInfo[];
|
|
4335
|
+
private _circular;
|
|
4336
|
+
constructor(chart: RealChartItem);
|
|
4337
|
+
get circular(): boolean;
|
|
4338
|
+
set circular(value: boolean);
|
|
4339
|
+
getChartConfig(context: PrintContext): RCBodyConfig;
|
|
4340
|
+
getSaveLabel(): string;
|
|
4341
|
+
protected _doDefaultInit(): void;
|
|
4342
|
+
protected _getEditProps(): IPropInfo[];
|
|
4343
|
+
protected _doLoad(loader: IReportLoader, source: ReportSource$1): void;
|
|
4344
|
+
protected _doSave(target: ReportTarget): void;
|
|
4345
|
+
}
|
|
4346
|
+
|
|
4347
|
+
/**
|
|
4348
|
+
* Body
|
|
4349
|
+
*/
|
|
4350
|
+
declare type RCBodyConfig = {
|
|
4351
|
+
circular?: boolean;
|
|
4352
|
+
};
|
|
4353
|
+
|
|
4292
4354
|
declare interface RCCategoryAxisConfig extends RCAxisConfigBase {
|
|
4293
4355
|
type: 'category';
|
|
4294
4356
|
categories: string[];
|
|
@@ -4299,6 +4361,7 @@ declare interface RCCategoryAxisConfig extends RCAxisConfigBase {
|
|
|
4299
4361
|
* RealChart
|
|
4300
4362
|
*/
|
|
4301
4363
|
declare type RCConfig = {
|
|
4364
|
+
polar: boolean;
|
|
4302
4365
|
inverted?: boolean;
|
|
4303
4366
|
title?: RCTitleConfig;
|
|
4304
4367
|
subtitle?: RCSubtitleConfig;
|
|
@@ -4307,6 +4370,7 @@ declare type RCConfig = {
|
|
|
4307
4370
|
xAxis: RCAxisConfig[];
|
|
4308
4371
|
yAxis: RCAxisConfig[];
|
|
4309
4372
|
series: RCSeriesConfig[];
|
|
4373
|
+
body?: RCBodyConfig;
|
|
4310
4374
|
};
|
|
4311
4375
|
|
|
4312
4376
|
declare type RCCreditsConfig = {
|
|
@@ -4323,7 +4387,7 @@ declare type RCCreditsConfig = {
|
|
|
4323
4387
|
|
|
4324
4388
|
declare class RCLegend extends ChartObject<RealChartItem, RCLegendConfig> {
|
|
4325
4389
|
static readonly PROP_ALIGN_BASE = "alignBase";
|
|
4326
|
-
static readonly PROP_ALIGN_BASE_DEFAULT_VALUE = RCLegendAlignBase.
|
|
4390
|
+
static readonly PROP_ALIGN_BASE_DEFAULT_VALUE = RCLegendAlignBase.BODY;
|
|
4327
4391
|
static readonly PROP_GAP = "gap";
|
|
4328
4392
|
static readonly PROP_GAP_DEFAULT_VALUE = 6;
|
|
4329
4393
|
static readonly PROP_ITEM_GAP = "itemGap";
|
|
@@ -4395,12 +4459,13 @@ declare class RCLegend extends ChartObject<RealChartItem, RCLegendConfig> {
|
|
|
4395
4459
|
protected _setSubStyle(prop: string, style: string, value: any): void;
|
|
4396
4460
|
protected _doLoad(loader: IReportLoader, source: ReportSource$1): void;
|
|
4397
4461
|
protected _doSave(target: ReportTarget): void;
|
|
4462
|
+
getPropDomain(prop: IPropInfo): any[];
|
|
4398
4463
|
}
|
|
4399
4464
|
|
|
4400
4465
|
declare enum RCLegendAlignBase {
|
|
4401
4466
|
CHART = "chart",
|
|
4402
4467
|
PARENT = "parent",
|
|
4403
|
-
|
|
4468
|
+
BODY = "body"
|
|
4404
4469
|
}
|
|
4405
4470
|
|
|
4406
4471
|
declare type RCLegendConfig = {
|
|
@@ -4438,7 +4503,7 @@ declare enum RCLegendLocation {
|
|
|
4438
4503
|
BOTTOM = "bottom",
|
|
4439
4504
|
LEFT = "left",
|
|
4440
4505
|
RIGHT = "right",
|
|
4441
|
-
|
|
4506
|
+
BODY = "body"
|
|
4442
4507
|
}
|
|
4443
4508
|
|
|
4444
4509
|
declare interface RCLinearAxisConfig extends RCAxisConfigBase {
|
|
@@ -4571,6 +4636,18 @@ declare interface RCSeriesPointLabelConfig {
|
|
|
4571
4636
|
visible?: boolean;
|
|
4572
4637
|
text?: string;
|
|
4573
4638
|
style?: RCSvgStyles;
|
|
4639
|
+
offset?: number;
|
|
4640
|
+
position?: RCSeriesPointLabelPosition;
|
|
4641
|
+
}
|
|
4642
|
+
|
|
4643
|
+
declare enum RCSeriesPointLabelPosition {
|
|
4644
|
+
AUTO = "auto",
|
|
4645
|
+
FOOT = "foot",
|
|
4646
|
+
HEAD = "head",
|
|
4647
|
+
INSIDE = "inside",
|
|
4648
|
+
INSIDEFIRST = "insideFirst",
|
|
4649
|
+
OUTSIDE = "outside",
|
|
4650
|
+
OUTSIDEFIRST = "outsideFirst"
|
|
4574
4651
|
}
|
|
4575
4652
|
|
|
4576
4653
|
declare interface RCSeriesTooltipConfig {
|
|
@@ -4670,6 +4747,8 @@ declare class RealChartItem extends ChartItem<RCConfig> {
|
|
|
4670
4747
|
static readonly PROP_SUBTITLE = "subtitle";
|
|
4671
4748
|
static readonly PROP_LEGEND = "legend";
|
|
4672
4749
|
static readonly PROP_OPTIONS = "options";
|
|
4750
|
+
static readonly PROP_POLAR = "polar";
|
|
4751
|
+
static readonly PROP_BODY = "body";
|
|
4673
4752
|
static readonly PROPINFOS: IPropInfo[];
|
|
4674
4753
|
static readonly STYLE_PROPS: string[];
|
|
4675
4754
|
static readonly $_ctor: string;
|
|
@@ -4682,6 +4761,8 @@ declare class RealChartItem extends ChartItem<RCConfig> {
|
|
|
4682
4761
|
private _subtitle;
|
|
4683
4762
|
private _legend;
|
|
4684
4763
|
private _options;
|
|
4764
|
+
private _body;
|
|
4765
|
+
private _polar;
|
|
4685
4766
|
constructor(name: string);
|
|
4686
4767
|
get outlineLabel(): string;
|
|
4687
4768
|
get outlineItems(): IOutlineSource[];
|
|
@@ -4695,6 +4776,9 @@ declare class RealChartItem extends ChartItem<RCConfig> {
|
|
|
4695
4776
|
get subtitle(): RCSubtitle;
|
|
4696
4777
|
get legend(): RCLegend;
|
|
4697
4778
|
get options(): RCOptions;
|
|
4779
|
+
get polar(): boolean;
|
|
4780
|
+
set polar(value: boolean);
|
|
4781
|
+
get body(): RCBody;
|
|
4698
4782
|
addNewXAxis(type: RCAxisType): RCAxis;
|
|
4699
4783
|
addNewYAxis(type: RCAxisType): RCAxis;
|
|
4700
4784
|
addAxis(axis: RCAxis): void;
|
|
@@ -5014,6 +5098,11 @@ declare class Report_2 extends EventAware implements IEditCommandStackOwner, IPr
|
|
|
5014
5098
|
protected _fireAlert(item: ReportItem, message: string): void;
|
|
5015
5099
|
}
|
|
5016
5100
|
|
|
5101
|
+
declare type ReportContext = {
|
|
5102
|
+
name: string;
|
|
5103
|
+
isModified: boolean;
|
|
5104
|
+
};
|
|
5105
|
+
|
|
5017
5106
|
declare abstract class ReportData extends Base {
|
|
5018
5107
|
private _name;
|
|
5019
5108
|
private _dp;
|
|
@@ -6471,6 +6560,7 @@ declare class SimpleBand extends DataBand {
|
|
|
6471
6560
|
protected _ignoreItems(): boolean;
|
|
6472
6561
|
canFold(): boolean;
|
|
6473
6562
|
protected _getEditProps(): IPropInfo[];
|
|
6563
|
+
protected _getStyleProps(): string[];
|
|
6474
6564
|
isAncestorOf(item: ReportPageItem): boolean;
|
|
6475
6565
|
protected _doLoad(loader: IReportLoader, src: any): void;
|
|
6476
6566
|
protected _doSave(target: object): void;
|
|
@@ -6902,6 +6992,7 @@ declare class TableBand extends DataBand {
|
|
|
6902
6992
|
getSaveType(): string;
|
|
6903
6993
|
get outlineLabel(): string;
|
|
6904
6994
|
canFold(): boolean;
|
|
6995
|
+
protected _getStyleProps(): string[];
|
|
6905
6996
|
get isBand(): boolean;
|
|
6906
6997
|
protected _ignoreItems(): boolean;
|
|
6907
6998
|
protected _getEditProps(): IPropInfo[];
|