realreport 1.7.7 → 1.7.9

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.7
5
- * commit 6a8c377
4
+ * RealReport v1.7.9
5
+ * commit 27b0a21
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.7
13
+ * RealReport Core v1.7.9
14
14
  * Copyright (C) 2013-2023 WooriTech Inc.
15
15
  * All Rights Reserved.
16
- * commit 3c7065afd6897afaf4cac9198485d136dcf84388
16
+ * commit f97017e22373c5951f797b36085ec48058b12f47
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 {
@@ -6952,15 +6965,6 @@ declare abstract class BandPrintInfo<T extends ReportItem> {
6952
6965
  protected _prepareDetailBandPrintNext(ctx: PrintContext, band: DataBand, row: BandPrintInfo<SimpleBand | TableBand>, rows: BandPrintRow[], rowsPerPage: number): void;
6953
6966
  }
6954
6967
  type PrintLine = HTMLElement | BandPrintInfo<any> | ReportFooterPrintInfo | PageBreaker;
6955
- interface IReportData {
6956
- name: string;
6957
- isBand: boolean;
6958
- getFieldNames(): string[];
6959
- getSaveType(): string;
6960
- getSaveValues(): any;
6961
- getValue(path: string): any;
6962
- getValues(): any[];
6963
- }
6964
6968
  interface IReportDataProvider {
6965
6969
  designTime?: boolean;
6966
6970
  preparePrint(ctx: PrintContext): void;
@@ -6975,6 +6979,13 @@ interface IReportDataProvider {
6975
6979
  dataNameChanged?(data: IReportData, oldName: string): void;
6976
6980
  fieldNameChanged?(data: IReportData, newName: string, oldName: string): void;
6977
6981
  }
6982
+ interface IReportData {
6983
+ name: string;
6984
+ isBand: boolean;
6985
+ getFieldNames(): string[];
6986
+ getSaveType(): string;
6987
+ getValue(path: string): any;
6988
+ }
6978
6989
  declare abstract class ReportData$1 extends Base$1 {
6979
6990
  private _name;
6980
6991
  private _dp;
@@ -6987,10 +6998,14 @@ declare abstract class ReportData$1 extends Base$1 {
6987
6998
  set name(value: string);
6988
6999
  preparePrint(ctx: PrintContext, design: boolean): void;
6989
7000
  }
7001
+ interface ISimpleData extends IReportData {
7002
+ getValues(): any;
7003
+ getSaveValues(): any;
7004
+ }
6990
7005
  /**
6991
7006
  * 단순형 값이나, json 객체를 값으로 지정한다.
6992
7007
  */
6993
- declare class SimpleData extends ReportData$1 implements IReportData {
7008
+ declare class SimpleData extends ReportData$1 implements ISimpleData {
6994
7009
  private _isObj;
6995
7010
  private _values;
6996
7011
  constructor(name: string, values: any);