realreport 1.4.1 → 1.4.2

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.
@@ -1,7 +1,7 @@
1
1
  /// <reference types="node" />
2
2
  /**
3
- * RealReport v1.4.1
4
- * commit cfce98e
3
+ * RealReport v1.4.2
4
+ * commit 642bc5d
5
5
 
6
6
  * Copyright (C) 2013-2022 WooriTech Inc.
7
7
  https://real-report.com
@@ -9,10 +9,10 @@
9
9
  */
10
10
 
11
11
  /**
12
- * RealReport Core v1.4.1
12
+ * RealReport Core v1.4.2
13
13
  * Copyright (C) 2013-2022 WooriTech Inc.
14
14
  * All Rights Reserved.
15
- * commit e90b28d0b4dcc8900f90b18868af46c321368e38
15
+ * commit c40fc49cbf656d9483a0fd72852cb2ba6efb8454
16
16
  */
17
17
 
18
18
 
@@ -1144,6 +1144,7 @@ declare class PageItemContainer extends BoundedContainer {
1144
1144
  get outlineLabel(): string;
1145
1145
  get isArray(): boolean;
1146
1146
  canResize(dir: ResizeDirection): boolean;
1147
+ getMoveType(item: ReportItem): ItemMoveType;
1147
1148
  protected _doLoad(loader: IReportLoader, src: any): void;
1148
1149
  protected _doSave(target: object): void;
1149
1150
  }
@@ -3573,9 +3574,13 @@ declare class CrosstabRowFieldCollection extends CrosstabFieldCollection<Crossta
3573
3574
  protected _createField(src: any): CrosstabRowField;
3574
3575
  }
3575
3576
  declare class CrosstabColumnField extends CrosstabField {
3577
+ static readonly PROPINFOS: IPropInfo[];
3578
+ private _prefix;
3579
+ private _suffix;
3576
3580
  constructor(collection: CrosstabColumnFieldCollection, source: any);
3577
3581
  get itemType(): string;
3578
3582
  getCollectionLabel(): string;
3583
+ getEditProps(): IPropInfo[];
3579
3584
  protected _doLoad(src: any): void;
3580
3585
  protected _doSave(target: any): any;
3581
3586
  }
@@ -3584,13 +3589,35 @@ declare class CrosstabColumnFieldCollection extends CrosstabFieldCollection<Cros
3584
3589
  protected _createField(src: any): CrosstabColumnField;
3585
3590
  }
3586
3591
  declare class CrosstabValueField extends CrosstabField {
3592
+ static readonly DEF_FORMAT = "#,##0";
3587
3593
  static readonly PROP_VALUE = "value";
3594
+ static readonly PROP_PREFIX = "prefix";
3595
+ static readonly PROP_SUFFIX = "suffix";
3596
+ static readonly PROP_FORMAT = "format";
3588
3597
  static readonly PROPINFOS: IPropInfo[];
3589
3598
  private _value;
3599
+ private _prefix;
3600
+ private _suffix;
3601
+ private _format;
3590
3602
  constructor(collection: CrosstabFieldCollection<any>, source: any);
3591
3603
  /** value */
3592
3604
  get value(): CrosstabSummary;
3593
3605
  set value(value: CrosstabSummary);
3606
+ /**
3607
+ * 접두어.
3608
+ */
3609
+ get prefix(): string;
3610
+ set prefix(value: string);
3611
+ /**
3612
+ * 접미어.
3613
+ */
3614
+ get suffix(): string;
3615
+ set suffix(value: string);
3616
+ /**
3617
+ * format
3618
+ */
3619
+ get format(): string;
3620
+ set format(value: string);
3594
3621
  get itemType(): string;
3595
3622
  getCollectionLabel(): string;
3596
3623
  getEditProps(): IPropInfo[];
@@ -3601,7 +3628,7 @@ declare class CrosstabValueFieldCollection extends CrosstabFieldCollection<Cross
3601
3628
  constructor(owner: CrosstabBand);
3602
3629
  protected _createField(src: any): CrosstabValueField;
3603
3630
  }
3604
- declare class CrosstabRec {
3631
+ declare class CrosstabCell {
3605
3632
  private _keys;
3606
3633
  private _rows;
3607
3634
  private sum;
@@ -3612,25 +3639,25 @@ declare class CrosstabRec {
3612
3639
  constructor(keys: any[], rows: number[]);
3613
3640
  get rowCount(): number;
3614
3641
  getKey(field: number): any;
3615
- getSummary(data: IBandData, field: number, exp: string): number;
3642
+ getValue(data: IBandData, field: number, exp: string): number;
3616
3643
  }
3617
3644
  interface IFilter {
3618
3645
  select(data: IBandData, row: number): boolean;
3619
3646
  }
3620
- declare class RecCollection {
3647
+ declare class CellCollection {
3621
3648
  private _band;
3622
3649
  private _filters;
3623
- private _recs;
3650
+ private _cells;
3624
3651
  constructor(band: CrosstabBand);
3625
3652
  get count(): number;
3626
- getKey(rec: number, field: number): any;
3627
- getRec(index: number): CrosstabRec;
3628
- getRecs(start?: number, end?: number): CrosstabRec[];
3653
+ getKey(index: number, field: number): any;
3654
+ getCell(index: number): CrosstabCell;
3655
+ getCells(start?: number, end?: number): CrosstabCell[];
3629
3656
  setFilters(filters: IFilter[]): void;
3630
3657
  build(data: BandArrayData): void;
3631
3658
  private $_collectRows;
3632
3659
  private $_sortRows;
3633
- private $_buildRecs;
3660
+ private $_buildCells;
3634
3661
  }
3635
3662
  declare class CrosstabColumn {
3636
3663
  hash: number;
@@ -3658,6 +3685,8 @@ declare class CrosstabLeafColumn extends CrosstabColumn {
3658
3685
  constructor(field: CrosstabColumnField, valueField: CrosstabValueField, value: any);
3659
3686
  get valueField(): CrosstabValueField;
3660
3687
  get leafCount(): number;
3688
+ contains(leaf: CrosstabLeafColumn): boolean;
3689
+ includes(band: CrosstabBand, cell: CrosstabCell): boolean;
3661
3690
  getHeader(): string;
3662
3691
  }
3663
3692
  declare class CrosstabSummaryColumn extends CrosstabColumn {
@@ -3666,6 +3695,13 @@ declare class CrosstabSummaryColumn extends CrosstabColumn {
3666
3695
  get summary(): CrosstabFieldSummary;
3667
3696
  getHeader(): string;
3668
3697
  }
3698
+ /**
3699
+ * @internal
3700
+ *
3701
+ * 컬럼 layer 셋을 구성한다.
3702
+ * layer 마다 앞쪽에 summary 컬럼이 추가된다.
3703
+ * row 컬럼들 + 마지막 leaf 목록을 기준으로 table 컬럼들이 구성된다.
3704
+ */
3669
3705
  declare class ColumnCollection$1 {
3670
3706
  private _band;
3671
3707
  private _root;
@@ -3675,7 +3711,7 @@ declare class ColumnCollection$1 {
3675
3711
  get count(): number;
3676
3712
  get leafCount(): number;
3677
3713
  get levels(): number;
3678
- build(recs: RecCollection): void;
3714
+ build(cells: CellCollection): void;
3679
3715
  get(index: number): CrosstabColumn;
3680
3716
  getLeaf(index: number): CrosstabLeafColumn;
3681
3717
  getColumns(parent: CrosstabColumn, columns: CrosstabColumn[][]): void;
@@ -3684,7 +3720,7 @@ declare class ColumnCollection$1 {
3684
3720
  declare abstract class CrosstabRowBase {
3685
3721
  abstract slice(count: number): any[];
3686
3722
  abstract getValue(index: number): any;
3687
- abstract getColumnRec(column: CrosstabColumn): CrosstabRec;
3723
+ abstract getColumnCell(column: CrosstabColumn): CrosstabCell;
3688
3724
  }
3689
3725
  declare class RowCollection {
3690
3726
  private _band;
@@ -3692,7 +3728,7 @@ declare class RowCollection {
3692
3728
  constructor(band: CrosstabBand);
3693
3729
  get rowCount(): number;
3694
3730
  getRow(index: number): CrosstabRowBase;
3695
- build(data: BandArrayData, recs: RecCollection): void;
3731
+ build(data: BandArrayData, cells: CellCollection): void;
3696
3732
  private $_collectRows;
3697
3733
  private $_collectSummaryRows;
3698
3734
  }
@@ -3730,7 +3766,9 @@ declare class CrosstabNullValue extends ReportItem {
3730
3766
  protected _doSave(target: object): void;
3731
3767
  }
3732
3768
  /**
3733
- * Crosstab band
3769
+ * Crosstab band.
3770
+ *
3771
+ * 1. rowFields + columnFields 로 정렬하고 그룹핑해서 cellCollection에 저장한다.
3734
3772
  */
3735
3773
  declare class CrosstabBand extends ReportGroupItem {
3736
3774
  static readonly PROP_TITLE = "title";
@@ -3747,8 +3785,8 @@ declare class CrosstabBand extends ReportGroupItem {
3747
3785
  private _rowFields;
3748
3786
  private _columnFields;
3749
3787
  private _valueFields;
3750
- private _recs;
3751
- _columns: ColumnCollection$1;
3788
+ private _cells;
3789
+ private _columns;
3752
3790
  private _rows;
3753
3791
  pageNo: number;
3754
3792
  rowIndex: number;
@@ -3768,13 +3806,14 @@ declare class CrosstabBand extends ReportGroupItem {
3768
3806
  get nullValue(): CrosstabNullValue;
3769
3807
  /** rowFields */
3770
3808
  get rowFields(): CrosstabRowFieldCollection;
3809
+ get rowFieldCount(): number;
3771
3810
  /** columnFields */
3772
3811
  get columnFields(): CrosstabColumnFieldCollection;
3773
3812
  /** valueFields */
3774
3813
  get valueFields(): CrosstabValueFieldCollection;
3775
3814
  get rows(): RowCollection;
3776
3815
  get bandData(): BandArrayData;
3777
- get columnLevels(): number;
3816
+ get columns(): ColumnCollection$1;
3778
3817
  containsField(field: string): boolean;
3779
3818
  getRowField(index: number): CrosstabField;
3780
3819
  getColumnField(index: number): CrosstabColumnField;
@@ -5484,6 +5523,7 @@ declare abstract class ReportItemCollectionItem extends ReportPageItem {
5484
5523
  private _collection;
5485
5524
  private _styles;
5486
5525
  constructor(collection: ReportItemCollection<any>, src?: any);
5526
+ protected _doInitDefaults(): void;
5487
5527
  get outlineParent(): IOutlineSource;
5488
5528
  get outlineExpandable(): boolean;
5489
5529
  get outlineLabel(): string;
@@ -5760,6 +5800,7 @@ declare class StackContainer extends BoundedContainer {
5760
5800
  protected _datable(): boolean;
5761
5801
  protected _doDefaultInit(loader: IReportLoader, parent: ReportGroupItem, hintWidth: number, hintHeight: number): void;
5762
5802
  protected _getStyleProps(): string[];
5803
+ protected _getEditProps(): IPropInfo[];
5763
5804
  canAlign(child: ReportItem): boolean;
5764
5805
  canAdoptDragSource(source: any): boolean;
5765
5806
  getMoveType(item: ReportItem): ItemMoveType;
@@ -5894,7 +5935,7 @@ declare class ReportHeaderElement extends SectionElement<ReportHeader> {
5894
5935
  }
5895
5936
  /** @internal */
5896
5937
  declare class ReportFooterElement extends SectionElement<ReportFooter> {
5897
- static readonly STYLE_NAME = "rr-page-header rr-group-element";
5938
+ static readonly STYLE_NAME = "rr-report-footer rr-group-element";
5898
5939
  static isFooter: (div: HTMLElement) => boolean;
5899
5940
  constructor(doc: Document, model?: ReportFooter);
5900
5941
  protected _doDispose(): void;
@@ -5988,7 +6029,6 @@ declare class PageBodyElement extends ReportElement {
5988
6029
  */
5989
6030
  getLine(index: number): ReportItemView;
5990
6031
  getLines(): ReportItemView[];
5991
- printAll(doc: Document, ctx: PrintContext): PageBodyOutput;
5992
6032
  prepareAsync(doc: Document, ctx: PrintContext): PrintLine[];
5993
6033
  itemOfDom(dom: Element): ReportItem;
5994
6034
  protected _getCssSelector(): string;
@@ -6000,12 +6040,8 @@ declare class PageBodyElement extends ReportElement {
6000
6040
  protected _doMeasure(ctx: PrintContext, dom: HTMLElement, hintWidth: number, hintHeight: number): Size$1;
6001
6041
  protected _doLayoutContent(ctx: PrintContext): void;
6002
6042
  layoutFloating(ctx: PrintContext): void;
6003
- private $_buildPages;
6004
6043
  private $_prepareAsync;
6005
6044
  }
6006
- interface PageBodyOutput {
6007
- pages: HTMLDivElement[][];
6008
- }
6009
6045
 
6010
6046
  /** @internal */
6011
6047
  declare class PageItemContainerElement extends BoundedContainerElement<PageItemContainer> {
@@ -6562,6 +6598,9 @@ declare class PrintContainer extends VisualContainer$1 {
6562
6598
  static readonly CLASS_NAME = "rr-report-container";
6563
6599
  static readonly PREVIEW_CLASS = "rr-report-preview";
6564
6600
  private static readonly CONFIRM_CLASS;
6601
+ private static readonly MARKER_CLASS;
6602
+ private static readonly PRINT_INDICATOR_CLASS;
6603
+ private static readonly PRINT_BACK_CLASS;
6565
6604
  private _pageGap;
6566
6605
  private _zoom;
6567
6606
  private _align;
@@ -40659,6 +40698,12 @@ declare class GridReportViewer extends ReportViewer {
40659
40698
  * @returns
40660
40699
  */
40661
40700
  private _addPageHeader;
40701
+ /**
40702
+ * 페이지 푸터 추가
40703
+ * @param footer PageFooter 객체
40704
+ * @returns
40705
+ */
40706
+ private _addPageFooter;
40662
40707
  /**
40663
40708
  * Layout 정보
40664
40709
  * - visibleCount: number