realreport 1.7.6 → 1.7.8

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,8 +1,8 @@
1
1
  /// <reference types="pdfkit" />
2
2
  /// <reference types="node" />
3
3
  /**
4
- * RealReport v1.7.6
5
- * commit 23162c5
4
+ * RealReport v1.7.8
5
+ * commit 9252471
6
6
 
7
7
  * Copyright (C) 2013-2023 WooriTech Inc.
8
8
  https://real-report.com
@@ -10,10 +10,10 @@
10
10
  */
11
11
 
12
12
  /**
13
- * RealReport Core v1.7.6
13
+ * RealReport Core v1.7.8
14
14
  * Copyright (C) 2013-2023 WooriTech Inc.
15
15
  * All Rights Reserved.
16
- * commit a20880d1793a0e472bbb513c81005e982ea97304
16
+ * commit 64f28a7324ef3304067296d31ff309d13c29a7bb
17
17
  */
18
18
  declare const enum Cursor$1 {
19
19
  DEFAULT = "default",
@@ -1758,7 +1758,7 @@ declare class BandDataView extends Base$1 implements IBandDataView {
1758
1758
  static readonly SOURCE_INDEX = "_sourceIndex";
1759
1759
  private _source;
1760
1760
  private _view;
1761
- constructor(data: IReportData);
1761
+ constructor(data: IBandData);
1762
1762
  get rowCount(): number;
1763
1763
  sort(field: string, direction: DataDirection): this;
1764
1764
  getRowValue(row: number, field: string): any;
@@ -1800,6 +1800,7 @@ interface IBandData extends IReportData {
1800
1800
  equalValues(row: number, fields: string[], values: any[]): boolean;
1801
1801
  equalRows(row1: number, row2: number, fields?: string[]): boolean;
1802
1802
  groupBy(dataView: BandDataView, fields: string[], rows: number[]): (number | IBandRowGroup | IBandRowGroupFooter)[];
1803
+ getValues(): any[];
1803
1804
  }
1804
1805
  declare abstract class BandData extends ReportData$1 {
1805
1806
  protected _fields: IBandDataField[];
@@ -1854,7 +1855,6 @@ declare class BandArrayData extends BandData implements IBandData {
1854
1855
  getValues(): any[];
1855
1856
  setValues(vals: any[]): void;
1856
1857
  getSaveType(): string;
1857
- getSaveValues(): any;
1858
1858
  private $_cloneRow;
1859
1859
  private $_prepareSample;
1860
1860
  protected _readRows(): void;
@@ -3539,6 +3539,8 @@ declare abstract class ReportItemElement<T extends ReportItem> extends ReportEle
3539
3539
  protected _setPos(dom: HTMLElement, x: number, y: number): void;
3540
3540
  protected _runValueCallback(ctx: PrintContext, m: ReportItem, value: any): any;
3541
3541
  protected _getDesignText(): string;
3542
+ protected _setEmptyStyle(dom: HTMLElement): void;
3543
+ protected _setDomAlignCenter(dom: HTMLElement): void;
3542
3544
  }
3543
3545
  type ReportItemView = ReportItemElement<ReportItem>;
3544
3546
  /** @internal */
@@ -5681,7 +5683,7 @@ declare abstract class ReportItem extends ReportPageItem {
5681
5683
  protected _setRight(value: ValueString): void;
5682
5684
  protected _setTop(value: ValueString): void;
5683
5685
  protected _setBottom(value: ValueString): void;
5684
- protected _getEditProps(): IPropInfo[];
5686
+ protected _getEditProps(excludedProps?: string[]): IPropInfo[];
5685
5687
  protected _getStyleProps(): string[];
5686
5688
  protected _getChildStyleProps(prop: string): string[];
5687
5689
  protected _valueable(): boolean;
@@ -6069,6 +6071,8 @@ declare class StackContainer extends BoundedContainer {
6069
6071
  protected _doDefaultInit(loader: IReportLoader, parent: ReportGroupItem, hintWidth: number, hintHeight: number): void;
6070
6072
  protected _getStyleProps(): string[];
6071
6073
  protected _getEditProps(): IPropInfo[];
6074
+ protected _doLoad(loader: IReportLoader, src: any): void;
6075
+ protected _doSave(target: object): void;
6072
6076
  canAlign(child: ReportItem): boolean;
6073
6077
  canAdoptDragSource(source: any): boolean;
6074
6078
  getMoveType(item: ReportItem): ItemMoveType;
@@ -6676,6 +6680,7 @@ declare abstract class TextItemElementBase<T extends TextItemBase> extends Repor
6676
6680
  * 나머지 '${xxx}', '@{xxx}'는 'xxx' 필드의 값으로 대체된다.
6677
6681
  */
6678
6682
  declare class HtmlItem extends ReportItem {
6683
+ static readonly ALLOWED_TAGS: string[];
6679
6684
  static readonly PROP_HTML = "html";
6680
6685
  static readonly PROPINFOS: IPropInfo[];
6681
6686
  static readonly STYLE_PROPS: string[];
@@ -6684,8 +6689,6 @@ declare class HtmlItem extends ReportItem {
6684
6689
  private _html;
6685
6690
  private _tokens;
6686
6691
  constructor(name: string);
6687
- /**
6688
- */
6689
6692
  get html(): string;
6690
6693
  set html(value: string);
6691
6694
  getHtml(ctx: PrintContext): string;
@@ -6720,6 +6723,11 @@ declare class HtmlItemElement extends ReportItemElement<HtmlItem> {
6720
6723
  saveContextValue(ctx: PrintContext): string;
6721
6724
  replaceContextValue(ctx: PrintContext, value?: string): string;
6722
6725
  refreshPrintValues(ctx: PrintContext, save?: boolean): void;
6726
+ /**
6727
+ * 허용하지 않은 태그가 포함되어있을 경우 console.error 표시
6728
+ * @param html 표시할 html 형식 문자열
6729
+ */
6730
+ private $_validateHtmlTags;
6723
6731
  }
6724
6732
 
6725
6733
  /**
@@ -6872,6 +6880,11 @@ declare class PrintContext extends Base$1 {
6872
6880
  * @returns 원본 데이터의 index 반환
6873
6881
  */
6874
6882
  getSourceIndex(): number;
6883
+ setPageSize(width: number, height: number): void;
6884
+ /**
6885
+ * 호출하기 전 pageHeader, pageFooter, pageHeight 값이 설정되어야 함
6886
+ */
6887
+ setBodySize(): void;
6875
6888
  }
6876
6889
  type ContextValueCallback = (ctx: PrintContext) => any;
6877
6890
  declare class PageBreaker {
@@ -6906,12 +6919,14 @@ declare abstract class BandPrintInfo<T extends ReportItem> {
6906
6919
  */
6907
6920
  erc: number;
6908
6921
  detailRows: number[];
6922
+ isMasterRowPrintNext: boolean;
6923
+ needMasterHeader: boolean;
6909
6924
  abstract isEnded(): boolean;
6910
6925
  abstract getRows(): any[];
6911
6926
  abstract getNextPage(doc: Document, ctx: PrintContext, width: number, parent: HTMLDivElement): HTMLDivElement | null;
6912
6927
  rollback(page: HTMLDivElement): void;
6913
6928
  setMaxCount(rows: any[], count: number): void;
6914
- isRow(row: any): row is number;
6929
+ isDataRow(row: any): row is number;
6915
6930
  isBand(row: any): row is BandPrintInfo<any>;
6916
6931
  isGroupHeader(row: any): boolean;
6917
6932
  isGroupFooter(row: any): boolean;
@@ -6930,17 +6945,26 @@ declare abstract class BandPrintInfo<T extends ReportItem> {
6930
6945
  * @see {@link https://github.com/realgrid/realreport/issues/1138}
6931
6946
  */
6932
6947
  protected _prepareRepeatMasterRow(band: DataBand, rows: BandPrintRow[]): void;
6948
+ /**
6949
+ * 마스터-디테일 밴드에서 마스터 헤더 출력여부와 관련된 값들에 대한 설정
6950
+ * @param band 출력중인 밴드 정보
6951
+ * @param bandHeaderPrinted 출력중인 페이지내에서 마스터 해더의 출력여부
6952
+ * @param printed 출력했는지 여부
6953
+ */
6954
+ protected _setBandHeaderPrintFlag(band: DataBand, printed: boolean): void;
6955
+ /**
6956
+ * 디테일 밴드를 계속 출력 or 끝 결정
6957
+ * @param ctx PrintContext
6958
+ * @param rows 현재 출력해야 할 행들에 대한 목록
6959
+ * @param row 현재 출력중인 행 정보
6960
+ * @param rowsPerPage 페이지에서 몇행 까지 출력할 수 있는지 정보
6961
+ * @returns true = 디테일 밴드 출력 끝, false = 다음장에 디테일 계속 출력
6962
+ */
6963
+ protected _isDetailBandPrintEnd(row: BandPrintInfo<SimpleBand | TableBand>): boolean;
6964
+ protected _resetRowIndex(row: BandPrintInfo<SimpleBand | TableBand>): void;
6965
+ protected _prepareDetailBandPrintNext(ctx: PrintContext, band: DataBand, row: BandPrintInfo<SimpleBand | TableBand>, rows: BandPrintRow[], rowsPerPage: number): void;
6933
6966
  }
6934
6967
  type PrintLine = HTMLElement | BandPrintInfo<any> | ReportFooterPrintInfo | PageBreaker;
6935
- interface IReportData {
6936
- name: string;
6937
- isBand: boolean;
6938
- getFieldNames(): string[];
6939
- getSaveType(): string;
6940
- getSaveValues(): any;
6941
- getValue(path: string): any;
6942
- getValues(): any[];
6943
- }
6944
6968
  interface IReportDataProvider {
6945
6969
  designTime?: boolean;
6946
6970
  preparePrint(ctx: PrintContext): void;
@@ -6955,6 +6979,13 @@ interface IReportDataProvider {
6955
6979
  dataNameChanged?(data: IReportData, oldName: string): void;
6956
6980
  fieldNameChanged?(data: IReportData, newName: string, oldName: string): void;
6957
6981
  }
6982
+ interface IReportData {
6983
+ name: string;
6984
+ isBand: boolean;
6985
+ getFieldNames(): string[];
6986
+ getSaveType(): string;
6987
+ getValue(path: string): any;
6988
+ }
6958
6989
  declare abstract class ReportData$1 extends Base$1 {
6959
6990
  private _name;
6960
6991
  private _dp;
@@ -6967,10 +6998,14 @@ declare abstract class ReportData$1 extends Base$1 {
6967
6998
  set name(value: string);
6968
6999
  preparePrint(ctx: PrintContext, design: boolean): void;
6969
7000
  }
7001
+ interface ISimpleData extends IReportData {
7002
+ getValues(): any;
7003
+ getSaveValues(): any;
7004
+ }
6970
7005
  /**
6971
7006
  * 단순형 값이나, json 객체를 값으로 지정한다.
6972
7007
  */
6973
- declare class SimpleData extends ReportData$1 implements IReportData {
7008
+ declare class SimpleData extends ReportData$1 implements ISimpleData {
6974
7009
  private _isObj;
6975
7010
  private _values;
6976
7011
  constructor(name: string, values: any);