realreport 1.8.2 → 1.8.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.css +1 -1
- package/dist/realreport.d.ts +324 -9
- package/dist/realreport.es.js +1 -1
- package/dist/realreport.js +1 -1
- package/package.json +1 -1
package/dist/realreport.css
CHANGED
package/dist/realreport.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="pdfkit" />
|
|
2
2
|
/**
|
|
3
|
-
* RealReport v1.8.
|
|
4
|
-
* commit
|
|
3
|
+
* RealReport v1.8.3
|
|
4
|
+
* commit 14f0316
|
|
5
5
|
|
|
6
6
|
* Copyright (C) 2013-2024 WooriTech Inc.
|
|
7
7
|
https://real-report.com
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* RealReport Core v1.8.
|
|
12
|
+
* RealReport Core v1.8.3
|
|
13
13
|
* Copyright (C) 2013-2024 WooriTech Inc.
|
|
14
14
|
* All Rights Reserved.
|
|
15
|
-
* commit
|
|
15
|
+
* commit 6185f3910212c822e985b530dac2452edcb86bd8
|
|
16
16
|
*/
|
|
17
17
|
type ConfigObject$1 = {
|
|
18
18
|
[key: string]: any;
|
|
@@ -630,7 +630,6 @@ declare abstract class VisualContainer$1 extends EventAware$1 implements VisualT
|
|
|
630
630
|
private _offsetY;
|
|
631
631
|
private _rootElement;
|
|
632
632
|
private _feedbackElement;
|
|
633
|
-
private _printRoot;
|
|
634
633
|
private _eventHandlers;
|
|
635
634
|
private _eventNodes;
|
|
636
635
|
private _contextMenu;
|
|
@@ -1074,6 +1073,7 @@ declare enum PropCategory {
|
|
|
1074
1073
|
BAND = "band",
|
|
1075
1074
|
BAND_GROUP = "band group",
|
|
1076
1075
|
BAND_CELL = "band cell",
|
|
1076
|
+
SUB_BAND = "sub band",
|
|
1077
1077
|
FIELD = "field",
|
|
1078
1078
|
COLUMN = "column",
|
|
1079
1079
|
ROW = "row",
|
|
@@ -2406,6 +2406,9 @@ declare abstract class DataBand extends ReportGroupItem {
|
|
|
2406
2406
|
static readonly PROP_DATA_BAND_NO_SPLIT = "noSplit";
|
|
2407
2407
|
static readonly PROP_DATA_BAND_SORT_FIELD = "sortField";
|
|
2408
2408
|
static readonly PROP_DATA_BAND_SORT_DIRECTION = "sortDirection";
|
|
2409
|
+
static readonly PROP_DATA_BAND_MASTER_BAND_NAME = "masterBandName";
|
|
2410
|
+
static readonly PROP_DATA_BAND_MASTER_BAND_KEY_FIELDS = "masterBandKeyFields";
|
|
2411
|
+
static readonly PROP_DATA_BAND_SUB_BAND_KEY_FIELDS = "subBandKeyFields";
|
|
2409
2412
|
static readonly PROPINFOS: IPropInfo[];
|
|
2410
2413
|
private _sectionCount;
|
|
2411
2414
|
private _sectionLayout;
|
|
@@ -2427,10 +2430,15 @@ declare abstract class DataBand extends ReportGroupItem {
|
|
|
2427
2430
|
private _noSplit;
|
|
2428
2431
|
private _sortField;
|
|
2429
2432
|
private _sortDirection;
|
|
2433
|
+
private _masterBandName;
|
|
2434
|
+
private _masterBandKeyFields;
|
|
2435
|
+
private _subBandKeyFields;
|
|
2430
2436
|
private _detail;
|
|
2431
2437
|
private _master;
|
|
2432
2438
|
private _keyFlds;
|
|
2433
2439
|
private _masterFlds;
|
|
2440
|
+
private _subBandKeyFieldValues;
|
|
2441
|
+
private _subBandMasterKeyFieldValues;
|
|
2434
2442
|
pageNo: number;
|
|
2435
2443
|
prevHead: boolean;
|
|
2436
2444
|
prevIndex: number;
|
|
@@ -2438,6 +2446,7 @@ declare abstract class DataBand extends ReportGroupItem {
|
|
|
2438
2446
|
detailRows: number;
|
|
2439
2447
|
masterValues: any;
|
|
2440
2448
|
isNextPagePrintRow: boolean;
|
|
2449
|
+
hasSubBand: boolean;
|
|
2441
2450
|
_pr: number;
|
|
2442
2451
|
_currentPrintRow: number;
|
|
2443
2452
|
private _dataObj;
|
|
@@ -2601,6 +2610,12 @@ declare abstract class DataBand extends ReportGroupItem {
|
|
|
2601
2610
|
set sortField(value: string);
|
|
2602
2611
|
get sortDirection(): DataDirection;
|
|
2603
2612
|
set sortDirection(value: DataDirection);
|
|
2613
|
+
get masterBandName(): string;
|
|
2614
|
+
set masterBandName(value: string);
|
|
2615
|
+
get masterBandKeyFields(): string;
|
|
2616
|
+
set masterBandKeyFields(value: string);
|
|
2617
|
+
get subBandKeyFields(): string;
|
|
2618
|
+
set subBandKeyFields(value: string);
|
|
2604
2619
|
/**
|
|
2605
2620
|
* summary runtime
|
|
2606
2621
|
*/
|
|
@@ -2614,14 +2629,24 @@ declare abstract class DataBand extends ReportGroupItem {
|
|
|
2614
2629
|
*/
|
|
2615
2630
|
get currentPrintRow(): number;
|
|
2616
2631
|
set currentPrintRow(value: number);
|
|
2632
|
+
/**
|
|
2633
|
+
* band, master detail key values
|
|
2634
|
+
*/
|
|
2635
|
+
get masterFlds(): string[];
|
|
2636
|
+
get keyFlds(): string[];
|
|
2637
|
+
get subBandMasterKeyFieldValues(): string[];
|
|
2638
|
+
get subBandKeyFieldValues(): string[];
|
|
2617
2639
|
prepareIndices(ctx: PrintContext): void;
|
|
2618
2640
|
protected abstract _doPrepareIndices(ctx: PrintContext): void;
|
|
2619
2641
|
getColPoints(w: number, x?: number): number[];
|
|
2620
2642
|
getColWidth(w: number): number;
|
|
2621
2643
|
getValues(dataView: BandDataView, row: number, fields: string[]): any[];
|
|
2644
|
+
getNextSubBandDetailRows(dataView: BandDataView, from: number): number[];
|
|
2622
2645
|
protected _selectRow(dataView: BandDataView, row: number, idx: number): boolean;
|
|
2646
|
+
protected _selectSubBandRow(dataView: BandDataView, row: number, idx: number): boolean;
|
|
2623
2647
|
abstract getNextDetailRows(dataView: BandDataView, from?: number): number[];
|
|
2624
2648
|
protected _getNextDetailRows(dataView: BandDataView, from: number): number[];
|
|
2649
|
+
protected _getNextSubBandDetailRows(dataView: BandDataView, from: number): number[];
|
|
2625
2650
|
getRowsPerPage(): {
|
|
2626
2651
|
rowsPerPage: number;
|
|
2627
2652
|
breakRowsPerPage: boolean;
|
|
@@ -2637,6 +2662,7 @@ declare abstract class DataBand extends ReportGroupItem {
|
|
|
2637
2662
|
getMin(field: string, count: number, rows?: number[]): number;
|
|
2638
2663
|
getMax(field: string, count: number, rows?: number[]): number;
|
|
2639
2664
|
getAvg(field: string, count: number, rows?: number[]): number;
|
|
2665
|
+
getPropDomain(prop: IPropInfo): any[];
|
|
2640
2666
|
abstract containsInSection(item: ReportItem): boolean;
|
|
2641
2667
|
get designLevel(): number;
|
|
2642
2668
|
get dataDominant(): boolean;
|
|
@@ -3365,9 +3391,35 @@ declare class ReportElement extends VisualElement$1 {
|
|
|
3365
3391
|
protected _doPrint(doc: Document, ctx: PrintContext): void;
|
|
3366
3392
|
}
|
|
3367
3393
|
|
|
3394
|
+
/**
|
|
3395
|
+
*/
|
|
3396
|
+
declare class BandCollectionElement extends ReportGroupItemElement<DataBandCollection> {
|
|
3397
|
+
constructor(doc: Document, model: DataBandCollection);
|
|
3398
|
+
protected _doDispose(): void;
|
|
3399
|
+
get debugLabel(): string;
|
|
3400
|
+
protected _getCssSelector(): string;
|
|
3401
|
+
protected _needDesignBox(): boolean;
|
|
3402
|
+
protected _initDom(doc: Document, dom: HTMLElement): void;
|
|
3403
|
+
protected _doMeasure(ctx: PrintContext, dom: HTMLElement, hintWidth: number, hintHeight: number): Size$1;
|
|
3404
|
+
protected _doAfterMeasure(ctx: PrintContext, dom: HTMLElement, hintWidth: number, hintHeight: number, sz: Size$1): void;
|
|
3405
|
+
protected _doLayoutContent(ctx: PrintContext): void;
|
|
3406
|
+
}
|
|
3407
|
+
|
|
3368
3408
|
/** @internal */
|
|
3369
3409
|
declare abstract class ReportItemElement<T extends ReportItem> extends ReportElement {
|
|
3370
3410
|
static readonly FOLDED_HEIGHT = 22;
|
|
3411
|
+
/**
|
|
3412
|
+
* 리포트 아이템 표시 여부 확인하기
|
|
3413
|
+
*
|
|
3414
|
+
* - 디자인 시점: `model.printable`
|
|
3415
|
+
* - 프리뷰 시점: `visibleCallback(ctx, model, row, printValue)` (콜백 실행 오류 시, `model.printable`)
|
|
3416
|
+
*
|
|
3417
|
+
* @param context 출력 컨텍스트
|
|
3418
|
+
* @param model 리포트 아이템 모델
|
|
3419
|
+
* @param printValue 미리보기 시, 리포트 아이템에 적용할 value 값 (디자인 시점에서는 사용 안됨)
|
|
3420
|
+
* @returns 리포트 아이템 표시 여부
|
|
3421
|
+
*/
|
|
3422
|
+
static isReportItemPrintable(context: PrintContext, model: ReportItem, printValue: unknown): boolean;
|
|
3371
3423
|
protected _designView: HTMLDivElement;
|
|
3372
3424
|
protected _bindMarker: HTMLSpanElement;
|
|
3373
3425
|
private _a;
|
|
@@ -3497,12 +3549,134 @@ declare abstract class ReportGroupItemElement<T extends ReportGroupItem> extends
|
|
|
3497
3549
|
protected _doPrint(doc: Document, ctx: PrintContext): void;
|
|
3498
3550
|
}
|
|
3499
3551
|
type ReportGroupItemView = ReportGroupItemElement<ReportGroupItem>;
|
|
3552
|
+
declare abstract class BandElement<T extends DataBand> extends ReportGroupItemElement<T> {
|
|
3553
|
+
static readonly END_ROW_MESSAGE_CLASS = "rr-end-row-message";
|
|
3554
|
+
static readonly END_ROW_CLASS = "rr-end-row";
|
|
3555
|
+
abstract get rowView(): ReportGroupItemView;
|
|
3556
|
+
private _needFooterView;
|
|
3557
|
+
get needFooterView(): boolean;
|
|
3558
|
+
set needFooterView(value: boolean);
|
|
3559
|
+
abstract getLines(): ReportItemView[];
|
|
3560
|
+
abstract printRow(ctx: PrintContext, row: number): any;
|
|
3561
|
+
getSibling(item: ReportItemView, delta: number): ReportItemView;
|
|
3562
|
+
abstract addMasterRow(page: HTMLDivElement, headerView: any, rowView: any, x: number, y: number): number;
|
|
3563
|
+
abstract prepareAsync(doc: Document, ctx: PrintContext, width: number, subRows: number[], masterRow: number): BandPrintInfo<any>;
|
|
3564
|
+
abstract prepareSubBand(doc: Document, ctx: PrintContext, width: number, dataRows: number[]): BandPrintInfo<any>;
|
|
3565
|
+
protected _prepareDetail(doc: Document, ctx: PrintContext, band: DataBand, details: DataBandCollection, detailViews: BandCollectionElement, r: number, rows: BandPrintRow[], width: number): void;
|
|
3566
|
+
protected _getNext(item: ReportItemView): ReportItemView;
|
|
3567
|
+
protected _getPrev(item: ReportItemView): ReportItemView;
|
|
3568
|
+
}
|
|
3569
|
+
|
|
3570
|
+
/**
|
|
3571
|
+
* @internal
|
|
3572
|
+
* Table element의 child가 아니다.
|
|
3573
|
+
* Td cell에 표시되는 element의 부모 conatiner 역할을 한다.
|
|
3574
|
+
*/
|
|
3575
|
+
declare class TableCellElementBase extends ReportGroupItemElement<TableCellItem> {
|
|
3576
|
+
static readonly STYLE = "rr-table-cell";
|
|
3577
|
+
private _table;
|
|
3578
|
+
private _row;
|
|
3579
|
+
private _col;
|
|
3580
|
+
constructor(doc: Document, table: TableElement<TableBase>, model: TableCellItem, name: string);
|
|
3581
|
+
protected _doDispose(): void;
|
|
3582
|
+
get table(): TableElement<TableBase>;
|
|
3583
|
+
get container(): VisualContainer$1;
|
|
3584
|
+
get debugLabel(): string;
|
|
3585
|
+
get designable(): boolean;
|
|
3586
|
+
get navigable(): boolean;
|
|
3587
|
+
get navigableParent(): ReportGroupItemView;
|
|
3588
|
+
protected _getCssSelector(): string;
|
|
3589
|
+
protected _needContentBox(): boolean;
|
|
3590
|
+
protected _initDom(doc: Document, dom: HTMLElement): void;
|
|
3591
|
+
protected _prepareChild(child: ReportItemView): void;
|
|
3592
|
+
protected _doLayoutContent(ctx: PrintContext): void;
|
|
3593
|
+
}
|
|
3500
3594
|
interface ITable {
|
|
3501
3595
|
colCount: number;
|
|
3502
3596
|
columns: TableColumnCollectionBase<ReportGroupItem, TableColumnBase>;
|
|
3503
3597
|
getColumn(index: number): TableColumnBase;
|
|
3504
3598
|
getColPoints(): number[];
|
|
3505
3599
|
}
|
|
3600
|
+
/** @internal */
|
|
3601
|
+
declare abstract class TableElement<T extends TableBase> extends ReportGroupItemElement<T> {
|
|
3602
|
+
static setTableStyle(table: HTMLTableElement, fill?: boolean): void;
|
|
3603
|
+
static getTable(elt: VisualElement$1): TableElement<any>;
|
|
3604
|
+
private _masterView;
|
|
3605
|
+
private _table;
|
|
3606
|
+
private _colgroup;
|
|
3607
|
+
private _tbody;
|
|
3608
|
+
private _tcells;
|
|
3609
|
+
private _ecells;
|
|
3610
|
+
private _spans;
|
|
3611
|
+
private _colPts;
|
|
3612
|
+
private _cellWidths;
|
|
3613
|
+
private _rowHeights;
|
|
3614
|
+
constructor(doc: Document, model: T, name: string);
|
|
3615
|
+
protected _doDispose(): void;
|
|
3616
|
+
get rowCount(): number;
|
|
3617
|
+
get cellCount(): number;
|
|
3618
|
+
get cellViews(): TableCellElementBase[];
|
|
3619
|
+
get hasCells(): boolean;
|
|
3620
|
+
/**
|
|
3621
|
+
* designer에서 호출한다.
|
|
3622
|
+
*/
|
|
3623
|
+
getColPoints(): number[];
|
|
3624
|
+
getColWidth(col: number): number;
|
|
3625
|
+
getRowPoints(): number[];
|
|
3626
|
+
getRowRect(row: number, count?: number): IRect;
|
|
3627
|
+
getColRect(col: number, count?: number): IRect;
|
|
3628
|
+
get blockable(): boolean;
|
|
3629
|
+
get debugLabel(): string;
|
|
3630
|
+
protected _needContentBox(): boolean;
|
|
3631
|
+
getCellOf(target: Element, deep: boolean): TableCell$1;
|
|
3632
|
+
findChildAt(x: number, y: number, hitTesting: boolean): VisualElement$1;
|
|
3633
|
+
findChildOf(dom: HTMLElement): VisualElement$1;
|
|
3634
|
+
findElement(modelName: string): ReportItemElement<ReportItem>;
|
|
3635
|
+
findElementOf(dom: HTMLElement): ReportItemElement<ReportItem>;
|
|
3636
|
+
getElementOf(model: ReportItem): ReportElement;
|
|
3637
|
+
setCellDoms(to: HTMLTableRowElement, from: HTMLTableRowElement): void;
|
|
3638
|
+
unsetCellDoms(to: HTMLTableRowElement, from: HTMLTableRowElement): void;
|
|
3639
|
+
replaceCellDoms(to: HTMLTableRowElement, from: HTMLTableRowElement): void;
|
|
3640
|
+
protected _setTableStyles(table: HTMLTableElement): void;
|
|
3641
|
+
protected _createDom(doc: Document): HTMLElement;
|
|
3642
|
+
protected _doModelChanged(oldModel: TableBase): void;
|
|
3643
|
+
$_refreshRowCells(ctx: PrintContext, hintWidth: number, hintHeight: number, force?: boolean): void;
|
|
3644
|
+
protected _isEmpty(): boolean;
|
|
3645
|
+
protected _doMeasure(ctx: PrintContext, dom: HTMLElement, hintWidth: number, hintHeight: number): Size$1;
|
|
3646
|
+
protected _doLayoutContent(ctx: PrintContext): void;
|
|
3647
|
+
protected abstract _createCellElement(doc: Document, cell: TableCellItem): TableCellElementBase;
|
|
3648
|
+
clear(): boolean;
|
|
3649
|
+
protected _buildItems(ctx: PrintContext, report: ReportView, model: T): void;
|
|
3650
|
+
protected _prepareCellStyles(ctx: PrintContext, table: TableBase, row: number, col: number, td: HTMLTableCellElement): void;
|
|
3651
|
+
protected _prepareChild(child: ReportElement): void;
|
|
3652
|
+
/**
|
|
3653
|
+
* 테이블 내에서 첫번째 item.
|
|
3654
|
+
*/
|
|
3655
|
+
getFirst(): ReportItemView;
|
|
3656
|
+
getLast(): ReportItemView;
|
|
3657
|
+
protected _getPrev(item: ReportItemView): ReportItemView;
|
|
3658
|
+
protected _getNext(item: ReportItemView): ReportItemView;
|
|
3659
|
+
getUpper(item: ReportItemView): ReportItemView;
|
|
3660
|
+
getLower(item: ReportItemView): ReportItemView;
|
|
3661
|
+
get $_trows(): HTMLCollectionOf<HTMLTableRowElement>;
|
|
3662
|
+
get $_trowsCopy(): HTMLTableRowElement[];
|
|
3663
|
+
$_cloneRow(tr: HTMLTableRowElement): HTMLTableRowElement;
|
|
3664
|
+
$_td(row: number, col: number): HTMLTableCellElement;
|
|
3665
|
+
private $_cellChanged;
|
|
3666
|
+
private $_prepareTable;
|
|
3667
|
+
protected _setRowStyles(tr: HTMLTableRowElement, row: number): void;
|
|
3668
|
+
private $_prepareColGroup;
|
|
3669
|
+
private $_prepareTableRow;
|
|
3670
|
+
private $_prepareTableRowCells;
|
|
3671
|
+
private $_calcCellWidths;
|
|
3672
|
+
private $_measureCellWidths;
|
|
3673
|
+
private $_calcRowHeights;
|
|
3674
|
+
private $_measureRowHeights;
|
|
3675
|
+
getCellBoundingRect(col: number, row: number, width: number, height: number): IRect;
|
|
3676
|
+
private $_layoutViewInCell;
|
|
3677
|
+
protected _findCell(model: TableCellItem): TableCellElementBase;
|
|
3678
|
+
createColGroup(doc: Document, width: number): HTMLTableColElement;
|
|
3679
|
+
}
|
|
3506
3680
|
|
|
3507
3681
|
declare class CrosstabFieldHeader extends ReportItem {
|
|
3508
3682
|
static readonly PROP_SUFFIX = "suffix";
|
|
@@ -4335,6 +4509,7 @@ declare abstract class ChartAxisCollection<T extends ChartItem, C = unknown> ext
|
|
|
4335
4509
|
get count(): number;
|
|
4336
4510
|
get items(): ChartAxis<T, C>[];
|
|
4337
4511
|
get visibleCount(): number;
|
|
4512
|
+
abstract getChartConfig(context: PrintContext): C[];
|
|
4338
4513
|
abstract getSaveLabel(): string;
|
|
4339
4514
|
defaultInit(): void;
|
|
4340
4515
|
load(loader: IReportLoader, source: ReportSource): void;
|
|
@@ -4506,7 +4681,7 @@ declare abstract class RCAxis<C = RCAxisConfig> extends ChartAxis<RealChartItem,
|
|
|
4506
4681
|
}
|
|
4507
4682
|
declare abstract class RCAxisCollection extends ChartAxisCollection<RealChartItem, RCAxisConfig> {
|
|
4508
4683
|
abstract get direction(): RCAxisDirection;
|
|
4509
|
-
|
|
4684
|
+
getChartConfig(context: PrintContext): RCAxisConfig[];
|
|
4510
4685
|
}
|
|
4511
4686
|
declare class RCXAxisCollection extends RCAxisCollection {
|
|
4512
4687
|
get outlineLabel(): string;
|
|
@@ -4539,6 +4714,7 @@ declare abstract class ChartSeriesCollection$1<T extends ChartItem, C = unknown>
|
|
|
4539
4714
|
get count(): number;
|
|
4540
4715
|
get items(): ChartSeries$1<T, C>[];
|
|
4541
4716
|
get visibleCount(): number;
|
|
4717
|
+
abstract getChartConfig(context: PrintContext): C[];
|
|
4542
4718
|
getSaveLabel(): string;
|
|
4543
4719
|
defaultInit(): void;
|
|
4544
4720
|
load(loader: IReportLoader, source: ReportSource): void;
|
|
@@ -4588,6 +4764,7 @@ declare abstract class ChartSeries$1<T extends ChartItem, C = unknown> extends C
|
|
|
4588
4764
|
set index(value: number);
|
|
4589
4765
|
get designVisible(): boolean;
|
|
4590
4766
|
set designVisible(value: boolean);
|
|
4767
|
+
hasSeriesData(context: PrintContext): boolean;
|
|
4591
4768
|
protected getVisible(context: PrintContext): boolean;
|
|
4592
4769
|
protected getSeriesData(context: PrintContext): number[];
|
|
4593
4770
|
get displayPath(): string;
|
|
@@ -4625,7 +4802,7 @@ declare abstract class RCSeries<C = RCSeriesConfig> extends ChartSeries$1<RealCh
|
|
|
4625
4802
|
protected _doSave(target: ReportTarget): void;
|
|
4626
4803
|
}
|
|
4627
4804
|
declare class RCSeriesCollection extends ChartSeriesCollection$1<RealChartItem, RCSeriesConfig> {
|
|
4628
|
-
|
|
4805
|
+
getChartConfig(context: PrintContext): RCSeriesConfig[];
|
|
4629
4806
|
protected _createSeries(loader: IReportLoader, src: ReportSource): RCSeries;
|
|
4630
4807
|
protected _seriesChanged(): void;
|
|
4631
4808
|
}
|
|
@@ -4841,10 +5018,30 @@ declare enum ReportItemType {
|
|
|
4841
5018
|
* Report Item들에 대한 정보를 한곳에 모아서 등록해놓고 용이하게 꺼내쓰기 위해 작성
|
|
4842
5019
|
*/
|
|
4843
5020
|
declare class ReportItemRegistry extends Base$1 {
|
|
5021
|
+
private readonly _masterBandItemTypes;
|
|
4844
5022
|
private _reportItemFlatMap;
|
|
4845
5023
|
constructor();
|
|
4846
|
-
add(
|
|
5024
|
+
add(item: ReportItem): void;
|
|
5025
|
+
remove(item: ReportItem | ReportPageItem): void;
|
|
4847
5026
|
getItemCount(type: ReportItemType): number;
|
|
5027
|
+
/**
|
|
5028
|
+
* 가장 최상위에 있는 밴드의 이름들을 반환해주기 위해 작성
|
|
5029
|
+
* @returns 가장 최상위 위치에 있는 밴드의 이름들을 모아서 반환
|
|
5030
|
+
*/
|
|
5031
|
+
getRootBandItemNames(): string[];
|
|
5032
|
+
getSubBandsByMasterName(masterName: string): DataBand[];
|
|
5033
|
+
getItemType(item: ReportItem): ReportItemType | undefined;
|
|
5034
|
+
private $_removeChildItems;
|
|
5035
|
+
}
|
|
5036
|
+
|
|
5037
|
+
declare class SubBandPage extends ReportPage {
|
|
5038
|
+
constructor(report: Report, name?: string);
|
|
5039
|
+
static readonly $_ctor: string;
|
|
5040
|
+
get outlineLabel(): string;
|
|
5041
|
+
protected _addSectionModel(): void;
|
|
5042
|
+
protected _doLoad(loader: IReportLoader, src: any): void;
|
|
5043
|
+
protected _ignoreItems(): boolean;
|
|
5044
|
+
protected _doSave(target: object): void;
|
|
4848
5045
|
}
|
|
4849
5046
|
|
|
4850
5047
|
declare enum PaperSize {
|
|
@@ -5111,9 +5308,11 @@ declare class Report extends EventAware$1 implements IEditCommandStackOwner, IPr
|
|
|
5111
5308
|
save(pageOnly?: boolean): object;
|
|
5112
5309
|
getPage(index: number): ReportPage;
|
|
5113
5310
|
addPage(): ReportPage;
|
|
5311
|
+
addSubBandPage(): SubBandPage;
|
|
5114
5312
|
removePage(index: number): boolean;
|
|
5115
5313
|
movePage(index: number, newIndex: number): void;
|
|
5116
5314
|
internalAddPage(page?: ReportPage): ReportPage;
|
|
5315
|
+
internalAddSubBandPage(page?: SubBandPage): SubBandPage;
|
|
5117
5316
|
internalRemovePage(page: ReportPage): boolean;
|
|
5118
5317
|
internalMovePage(index: number, newIndex: number): void;
|
|
5119
5318
|
getMaxPageCount(): number;
|
|
@@ -5250,8 +5449,12 @@ declare class Report extends EventAware$1 implements IEditCommandStackOwner, IPr
|
|
|
5250
5449
|
protected _createReportInfo(report: Report): ReportInfo;
|
|
5251
5450
|
protected _createReportLoader(): IReportLoader;
|
|
5252
5451
|
protected _createReportPage(report: Report): ReportPage;
|
|
5452
|
+
protected _createSubBandPage(report: Report): SubBandPage;
|
|
5453
|
+
private $_loadPages;
|
|
5253
5454
|
private $_addPage;
|
|
5455
|
+
private $_addSubBandPage;
|
|
5254
5456
|
private $_refreshInvalids;
|
|
5457
|
+
private $_refereshPages;
|
|
5255
5458
|
private $_resetPages;
|
|
5256
5459
|
protected onPageItemAdded(source: IEventAware, item: ReportPageItem, index: number, silent: boolean): void;
|
|
5257
5460
|
protected onPageItemsAdded(source: IEventAware, items: ReportPageItem[], index: number): void;
|
|
@@ -5274,6 +5477,7 @@ declare class Report extends EventAware$1 implements IEditCommandStackOwner, IPr
|
|
|
5274
5477
|
* 1. band는 body의 최상위 항목으로만 추가될 수 있다. 즉, 다른 항목의 자식이 될 수 없다.
|
|
5275
5478
|
*/
|
|
5276
5479
|
declare class ReportPage extends ReportGroupItem implements IEventAware {
|
|
5480
|
+
static readonly PROP_PAGE_TYPE = "type";
|
|
5277
5481
|
static readonly PROP_ORIENTATION = "orientation";
|
|
5278
5482
|
static readonly PROP_MARGIN_LEFT = "marginLeft";
|
|
5279
5483
|
static readonly PROP_MARGIN_RIGHT = "marginRight";
|
|
@@ -5287,6 +5491,7 @@ declare class ReportPage extends ReportGroupItem implements IEventAware {
|
|
|
5287
5491
|
static readonly COLLECTION_CHANGED = "onPageCollectionChanged";
|
|
5288
5492
|
static readonly $_ctor: string;
|
|
5289
5493
|
static readonly PROPINFOS: IPropInfo[];
|
|
5494
|
+
private _type;
|
|
5290
5495
|
private _orientation;
|
|
5291
5496
|
private _marginLeft;
|
|
5292
5497
|
private _marginRight;
|
|
@@ -5318,40 +5523,63 @@ declare class ReportPage extends ReportGroupItem implements IEventAware {
|
|
|
5318
5523
|
* report
|
|
5319
5524
|
*/
|
|
5320
5525
|
get report(): Report;
|
|
5526
|
+
/**
|
|
5527
|
+
* pageIndex
|
|
5528
|
+
*/
|
|
5529
|
+
get pageIndex(): number;
|
|
5530
|
+
set pageIndex(index: number);
|
|
5321
5531
|
/**
|
|
5322
5532
|
* reportHeader
|
|
5323
5533
|
*/
|
|
5324
5534
|
get reportHeader(): ReportHeader;
|
|
5535
|
+
set reportHeader(section: ReportHeader);
|
|
5325
5536
|
/**
|
|
5326
5537
|
* reportFooter
|
|
5327
5538
|
*/
|
|
5328
5539
|
get reportFooter(): ReportFooter;
|
|
5540
|
+
set reportFooter(section: ReportFooter);
|
|
5329
5541
|
/**
|
|
5330
5542
|
* pageHeader
|
|
5331
5543
|
*/
|
|
5332
5544
|
get pageHeader(): PageHeader;
|
|
5545
|
+
set pageHeader(section: PageHeader);
|
|
5333
5546
|
/**
|
|
5334
5547
|
* pageFooter
|
|
5335
5548
|
*/
|
|
5336
5549
|
get pageFooter(): PageFooter;
|
|
5550
|
+
set pageFooter(section: PageFooter);
|
|
5337
5551
|
/**
|
|
5338
5552
|
* body
|
|
5339
5553
|
*/
|
|
5340
5554
|
get body(): PageBody;
|
|
5555
|
+
set body(section: PageBody);
|
|
5341
5556
|
get backContainer(): PageItemContainer;
|
|
5557
|
+
set backContainer(section: PageItemContainer);
|
|
5342
5558
|
/**
|
|
5343
5559
|
* backItems
|
|
5344
5560
|
*/
|
|
5345
5561
|
get backItems(): ReportItem[];
|
|
5346
5562
|
get frontContainer(): PageItemContainer;
|
|
5563
|
+
set frontContainer(section: PageItemContainer);
|
|
5347
5564
|
/**
|
|
5348
5565
|
* frontItems
|
|
5349
5566
|
*/
|
|
5350
5567
|
get frontItems(): ReportItem[];
|
|
5568
|
+
/**
|
|
5569
|
+
* sections
|
|
5570
|
+
*/
|
|
5571
|
+
get sections(): ReportGroupItem[];
|
|
5572
|
+
set sections(groupItems: ReportGroupItem[]);
|
|
5351
5573
|
/**
|
|
5352
5574
|
* loading
|
|
5353
5575
|
*/
|
|
5354
5576
|
get loading(): boolean;
|
|
5577
|
+
set loading(value: boolean);
|
|
5578
|
+
/**
|
|
5579
|
+
* type
|
|
5580
|
+
*/
|
|
5581
|
+
get type(): ReportPageType;
|
|
5582
|
+
set type(type: ReportPageType);
|
|
5355
5583
|
/**
|
|
5356
5584
|
* orientation
|
|
5357
5585
|
*/
|
|
@@ -5401,6 +5629,7 @@ declare class ReportPage extends ReportGroupItem implements IEventAware {
|
|
|
5401
5629
|
item: ReportItem;
|
|
5402
5630
|
reason: string;
|
|
5403
5631
|
}[]): void;
|
|
5632
|
+
protected _addSectionModel(): void;
|
|
5404
5633
|
protected _createPageBody(): PageBody;
|
|
5405
5634
|
protected _createReportFooter(): ReportFooter;
|
|
5406
5635
|
/**
|
|
@@ -5752,6 +5981,33 @@ declare class PageBodyElement extends ReportElement {
|
|
|
5752
5981
|
protected _doLayoutContent(ctx: PrintContext): void;
|
|
5753
5982
|
layoutFloating(ctx: PrintContext): void;
|
|
5754
5983
|
private $_prepareAsync;
|
|
5984
|
+
/**
|
|
5985
|
+
* Normal Band일 경우 사용
|
|
5986
|
+
*/
|
|
5987
|
+
private $_prepareBandElement;
|
|
5988
|
+
/**
|
|
5989
|
+
* TODO: BandElement 쪽으로 로직을 옮기는게 좋아보임.
|
|
5990
|
+
* SubBandElement 연결되어있다면 해당 내용으로 준비
|
|
5991
|
+
*/
|
|
5992
|
+
private $_prepareSubBandElement;
|
|
5993
|
+
/**
|
|
5994
|
+
* 아래처럼 데이터 예시로 생성되는 PrintRows 모양 예시
|
|
5995
|
+
* masterData: [{ key: 1, key: 2, key: 3, key: 4}]
|
|
5996
|
+
* subData: [{ key:1, name: a }, {key: 1, name: b}, {key: 4, name: a}]
|
|
5997
|
+
* [
|
|
5998
|
+
* {
|
|
5999
|
+
* masterBandPrintRows: [0],
|
|
6000
|
+
* subBandPrintInfos: [{ subBandElement: BandElement, subBandPrintRows: [0, 1] }]
|
|
6001
|
+
* },
|
|
6002
|
+
* {
|
|
6003
|
+
* masterBandPrintRows: [1, 2, 3],
|
|
6004
|
+
* subBandPrintInfos: [{ subBandElement: BandElement, subBandPrintRows: [2] }]
|
|
6005
|
+
* }
|
|
6006
|
+
* ]
|
|
6007
|
+
*/
|
|
6008
|
+
private $_createSubBandPrintRows;
|
|
6009
|
+
private $_createSubBandPrintLines;
|
|
6010
|
+
private $_isLastChild;
|
|
5755
6011
|
}
|
|
5756
6012
|
|
|
5757
6013
|
/** @internal */
|
|
@@ -5854,6 +6110,7 @@ declare class PageView extends LayerElement$1 {
|
|
|
5854
6110
|
getUpper(elt: ReportItemView): ReportItemView;
|
|
5855
6111
|
getLower(elt: ReportItemView): ReportItemView;
|
|
5856
6112
|
itemOfDom(dom: Element): ReportItem;
|
|
6113
|
+
setSectionEnabled(options: PageViewOptions): void;
|
|
5857
6114
|
protected _getCssSelector(): string;
|
|
5858
6115
|
protected _createPageHeaderElement(doc: Document): PageHeaderElement;
|
|
5859
6116
|
protected _createPageFooterElement(doc: Document): PageFooterElement;
|
|
@@ -6168,6 +6425,41 @@ declare class HtmlItemElement extends ReportItemElement<HtmlItem> {
|
|
|
6168
6425
|
private $_validateHtmlTags;
|
|
6169
6426
|
}
|
|
6170
6427
|
|
|
6428
|
+
/**
|
|
6429
|
+
* Report Item Element들에 대한 정보를 한곳에 모아서 등록해놓고 용이하게 꺼내쓰기 위해 작성
|
|
6430
|
+
*/
|
|
6431
|
+
declare class ReportItemElementMap extends Base$1 {
|
|
6432
|
+
private _reportItemElements;
|
|
6433
|
+
constructor();
|
|
6434
|
+
add<T extends ReportItem>(itemElement: ReportItemElement<T>): void;
|
|
6435
|
+
getItemElementByModel<T extends ReportItem>(model: ReportItem): ReportItemElement<T> | undefined;
|
|
6436
|
+
getBandElementByModel<T extends DataBand>(model: DataBand): BandElement<T> | undefined;
|
|
6437
|
+
}
|
|
6438
|
+
declare class TableBandGroupSectionElement<T extends TableBandRowGroupSection> extends TableElement<T> {
|
|
6439
|
+
constructor(doc: Document, model: T, name: string);
|
|
6440
|
+
applyGroupStyles(tr: HTMLTableRowElement): void;
|
|
6441
|
+
protected _needDesignBox(): boolean;
|
|
6442
|
+
protected _createCellElement(doc: Document, cell: TableCellItem): TableCellElementBase;
|
|
6443
|
+
protected _doMeasure(ctx: PrintContext, dom: HTMLElement, hintWidth: number, hintHeight: number): Size$1;
|
|
6444
|
+
protected _doAfterMeasure(ctx: PrintContext, dom: HTMLElement, hintWidth: number, hintHeight: number, sz: Size$1): void;
|
|
6445
|
+
}
|
|
6446
|
+
interface ITableGroupPrintInfo extends IGroupPrintInfo {
|
|
6447
|
+
view: TableBandGroupSectionElement<TableBandRowGroupHeader | TableBandRowGroupFooter>;
|
|
6448
|
+
}
|
|
6449
|
+
type TableBandPrintRow = BandPrintRow | ITableGroupPrintInfo;
|
|
6450
|
+
|
|
6451
|
+
declare class SimpleBandGroupSectionElement<T extends SimpleBandRowGroupSection> extends StackContainerElement<T> {
|
|
6452
|
+
constructor(doc: Document, model: T, name: string);
|
|
6453
|
+
applyGroupStyles(elt: HTMLElement): void;
|
|
6454
|
+
protected _needDesignBox(): boolean;
|
|
6455
|
+
protected _doMeasure(ctx: PrintContext, dom: HTMLElement, hintWidth: number, hintHeight: number): Size$1;
|
|
6456
|
+
protected _doAfterMeasure(ctx: PrintContext, dom: HTMLElement, hintWidth: number, hintHeight: number, sz: Size$1): void;
|
|
6457
|
+
}
|
|
6458
|
+
interface ISimpleGroupPrintInfo extends IGroupPrintInfo {
|
|
6459
|
+
view: SimpleBandGroupSectionElement<SimpleBandRowGroupHeader | SimpleBandRowGroupFooter>;
|
|
6460
|
+
}
|
|
6461
|
+
type SimpleBandPrintRow = BandPrintRow | ISimpleGroupPrintInfo;
|
|
6462
|
+
|
|
6171
6463
|
interface AsyncLoadable {
|
|
6172
6464
|
loadAsync(ctx: PrintContext): Promise<void>;
|
|
6173
6465
|
}
|
|
@@ -6230,6 +6522,7 @@ declare class PrintContext extends Base$1 {
|
|
|
6230
6522
|
contextElements: {
|
|
6231
6523
|
[hash: string]: TextItemElementBase<any>;
|
|
6232
6524
|
};
|
|
6525
|
+
private _reportItemElementMap;
|
|
6233
6526
|
private _asyncLoadableElements;
|
|
6234
6527
|
constructor(printing?: boolean, compositePrinting?: boolean);
|
|
6235
6528
|
/**
|
|
@@ -6298,6 +6591,7 @@ declare class PrintContext extends Base$1 {
|
|
|
6298
6591
|
* compositePage index.
|
|
6299
6592
|
*/
|
|
6300
6593
|
get compositePage(): number;
|
|
6594
|
+
get reportItemElementMap(): ReportItemElementMap;
|
|
6301
6595
|
preparePrint(report?: Report): void;
|
|
6302
6596
|
preparePage(page: number, allPage: number): void;
|
|
6303
6597
|
setDetailPage(count: number, page: number): void;
|
|
@@ -6332,6 +6626,7 @@ declare class PrintContext extends Base$1 {
|
|
|
6332
6626
|
* @param itemElement 로드가 필요한 reportItemElement
|
|
6333
6627
|
*/
|
|
6334
6628
|
addAsyncLoadableElement(itemElement: AsyncLoadable): void;
|
|
6629
|
+
addReportItemElement(itemElement: ReportItemElement<any>): void;
|
|
6335
6630
|
/**
|
|
6336
6631
|
* 로드가 필요한 Elements에 대한 비동기 처리
|
|
6337
6632
|
*/
|
|
@@ -6349,6 +6644,11 @@ declare class EndRowMarker {
|
|
|
6349
6644
|
maxCount: number;
|
|
6350
6645
|
constructor(count: number, maxCount: number);
|
|
6351
6646
|
}
|
|
6647
|
+
interface IGroupPrintInfo {
|
|
6648
|
+
row: number;
|
|
6649
|
+
rowType: string;
|
|
6650
|
+
group: IBandRowGroup;
|
|
6651
|
+
}
|
|
6352
6652
|
type BandPrintRow = number | BandFooterPrintInfo | BandPrintInfo<any> | EndRowMarker;
|
|
6353
6653
|
declare abstract class BandPrintInfo<T extends ReportItem> {
|
|
6354
6654
|
band: T;
|
|
@@ -6382,6 +6682,10 @@ declare abstract class BandPrintInfo<T extends ReportItem> {
|
|
|
6382
6682
|
isBand(row: any): row is BandPrintInfo<any>;
|
|
6383
6683
|
isGroupHeader(row: any): boolean;
|
|
6384
6684
|
isGroupFooter(row: any): boolean;
|
|
6685
|
+
/**
|
|
6686
|
+
* 밴드아이템 출력중 가장 마지막 행이 포함되어서 출력중인지 판단
|
|
6687
|
+
*/
|
|
6688
|
+
isLastRowIncluded(lastRow: number, rows: TableBandPrintRow[] | SimpleBandPrintRow[]): boolean;
|
|
6385
6689
|
protected _setX(dom: HTMLElement, x: number): void;
|
|
6386
6690
|
protected _setY(dom: HTMLElement, y: number): void;
|
|
6387
6691
|
protected _setPos(dom: HTMLElement, x: number, y: number): void;
|
|
@@ -6416,7 +6720,10 @@ declare abstract class BandPrintInfo<T extends ReportItem> {
|
|
|
6416
6720
|
protected _resetRowIndex(row: BandPrintInfo<SimpleBand | TableBand>): void;
|
|
6417
6721
|
protected _prepareDetailBandPrintNext(ctx: PrintContext, band: DataBand, row: BandPrintInfo<SimpleBand | TableBand>, rows: BandPrintRow[], rowsPerPage: number): void;
|
|
6418
6722
|
}
|
|
6419
|
-
type PrintLine =
|
|
6723
|
+
type PrintLine = {
|
|
6724
|
+
line: HTMLElement | BandPrintInfo<any> | ReportFooterPrintInfo | PageBreaker;
|
|
6725
|
+
pageIndex: number;
|
|
6726
|
+
};
|
|
6420
6727
|
|
|
6421
6728
|
interface ISelectionSource {
|
|
6422
6729
|
selectItem: ReportPageItem;
|
|
@@ -8107,6 +8414,10 @@ declare enum ReportType {
|
|
|
8107
8414
|
REPORT = "report",
|
|
8108
8415
|
EMAIL = "email"
|
|
8109
8416
|
}
|
|
8417
|
+
declare enum ReportPageType {
|
|
8418
|
+
REPORT = "report",
|
|
8419
|
+
SUB_BAND = "subBand"
|
|
8420
|
+
}
|
|
8110
8421
|
declare enum BoxItemsAlign {
|
|
8111
8422
|
START = "start",
|
|
8112
8423
|
MIDDLE = "middle",
|
|
@@ -8277,6 +8588,10 @@ declare class PrintContainer extends VisualContainer$1 {
|
|
|
8277
8588
|
private $_buildOutput;
|
|
8278
8589
|
private $_buildNoPagingOutput;
|
|
8279
8590
|
private $_setFrontBackLayer;
|
|
8591
|
+
/**
|
|
8592
|
+
* 서브 밴드 페이지들은 다른 페이지들에 연결해서 사용되기 때문에 우선적으로 뷰를 준비한다.
|
|
8593
|
+
*/
|
|
8594
|
+
private $_prepareSubPageViews;
|
|
8280
8595
|
/**
|
|
8281
8596
|
* unitpost 한장 요약 HTML 요청으로 singlePage 별도 메서드로 분리
|
|
8282
8597
|
*/
|