realreport-designer 1.11.8 → 1.11.10

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.
@@ -421,6 +421,7 @@ declare class BandGroupPrintInfo extends BandPrintInfo<BandGroup> {
421
421
  groupInfos: (TextPrintInfo | BandPrintInfo<BandModel> | TextBandPrintInfo)[];
422
422
  left: string;
423
423
  gap: number;
424
+ bandWidth: number;
424
425
  isEnded(): boolean;
425
426
  getRows(): any[];
426
427
  rollback(page: HTMLDivElement): void;
@@ -591,6 +592,7 @@ declare class BarcodeItem extends ReportItem {
591
592
  static readonly PROP_TEXT_ALIGN = "textAlign";
592
593
  static readonly PROP_FLAT = "flat";
593
594
  static readonly PROP_LAST_CHAR = "lastChar";
595
+ static readonly PROP_AUTO_SCALE = "autoScale";
594
596
  /** Barcode를 표현할 수 있는 영역의 최소 크기 (한 변 기준, px단위) */
595
597
  static readonly BARCODE_WIDTH_MIN_SIZE = 50;
596
598
  static readonly BARCODE_HEIGHT_MIN_SIZE = 15;
@@ -607,6 +609,7 @@ declare class BarcodeItem extends ReportItem {
607
609
  private _textMargin;
608
610
  private _flat;
609
611
  private _lastChar;
612
+ private _autoScale;
610
613
  constructor(name: string);
611
614
  /** format */
612
615
  get format(): BarcodeFormat;
@@ -645,6 +648,11 @@ declare class BarcodeItem extends ReportItem {
645
648
  set flat(value: boolean);
646
649
  get lastChar(): string;
647
650
  set lastChar(value: string);
651
+ /**
652
+ * autoSize
653
+ */
654
+ get autoScale(): boolean;
655
+ set autoScale(value: boolean);
648
656
  convertText(s: string): string;
649
657
  getSaveType(): string;
650
658
  get outlineLabel(): string;
@@ -3059,6 +3067,7 @@ declare class ExcelBarcodeItem extends BarcodeItem {
3059
3067
  cols: number;
3060
3068
  };
3061
3069
  write(ctx: ExcelPrintContext): IExcelRenderInfo;
3070
+ getText(ctx: ExcelPrintContext): string;
3062
3071
  get marqueeParent(): ReportItem;
3063
3072
  protected _getEditProps(): IPropInfo[];
3064
3073
  canFold(): boolean;
@@ -4244,6 +4253,7 @@ declare class ExcelPrintContext extends PrintContextBase<ExcelReport> {
4244
4253
  private _saveSameStartPrintedRowCount;
4245
4254
  private _cells;
4246
4255
  private _heights;
4256
+ private _sheetContextValueManager;
4247
4257
  reportView: ExcelReportView;
4248
4258
  sheetView: ExcelSheetView;
4249
4259
  printView: SheetPrintView;
@@ -4265,6 +4275,8 @@ declare class ExcelPrintContext extends PrintContextBase<ExcelReport> {
4265
4275
  set cells(cells: IExcelRenderInfo[][]);
4266
4276
  get heights(): number[][];
4267
4277
  set heights(heights: number[][]);
4278
+ get sheetContextValueManager(): SheetContextValueManager;
4279
+ constructor(printing?: boolean);
4268
4280
  getItemCell(item: ExcelItems | ExcelGroupItems): HTMLTableCellElement;
4269
4281
  getCell(row: number, col: number): HTMLTableCellElement;
4270
4282
  getItemRect(item: ExcelItems | ExcelGroupItem): IRect;
@@ -6380,6 +6392,16 @@ declare interface IExcelBandGroupContext {
6380
6392
  children: IExcelBandGroupContext[];
6381
6393
  }
6382
6394
 
6395
+ declare interface IExcelBarcode {
6396
+ value: string;
6397
+ format: string;
6398
+ barWidth: number;
6399
+ showText: boolean;
6400
+ textAlign: 'left' | 'center' | 'right';
6401
+ textPosition: 'bottom' | 'top';
6402
+ textMargin: number;
6403
+ }
6404
+
6383
6405
  declare interface IExcelBoxContext {
6384
6406
  model: string;
6385
6407
  }
@@ -6404,6 +6426,7 @@ declare interface IExcelCell {
6404
6426
  annotation?: string;
6405
6427
  link?: string;
6406
6428
  image?: IExcellImage;
6429
+ barcode?: IExcelBarcode;
6407
6430
  spark?: any;
6408
6431
  style?: Styles;
6409
6432
  rotation?: number | 'vertical';
@@ -6414,6 +6437,9 @@ declare interface IExcelCell {
6414
6437
  cbandGroup?: IExcelBandGroupContext;
6415
6438
  cband?: IExcelBandContext;
6416
6439
  bandSectionType?: BandSectionType;
6440
+ contextValue?: {
6441
+ value: '${pages}' | '%{pages}' | '${page}' | '%{page}';
6442
+ };
6417
6443
  }
6418
6444
 
6419
6445
  declare interface IExcelDataBar {
@@ -10571,6 +10597,13 @@ export declare class ReportDesigner {
10571
10597
  setReportTemplates(templates: UserReportCategoryTemplate[]): Promise<void>;
10572
10598
  setDataTemplates(templates: UserDataTemplateGroup[]): Promise<void>;
10573
10599
  setAssetTemplates(templates: UserAssetTemplateGroup[]): Promise<void>;
10600
+ /**
10601
+ * 웹 디자이너에서 사용할 폰트를 동기적으로 등록
10602
+ * {@link https://realreport.co.kr/docs/api/ReportDesigner#registerfonts}
10603
+ * @param fonts - 사용자 정의 폰트 소스 배열
10604
+ * @param defaultFont - 기본 폰트
10605
+ * @returns 폰트가 로드되는 시간을 동기적으로 처리가능하도록 Promise<void> 반환
10606
+ */
10574
10607
  registerFonts(fonts: UserFontSource[], defaultFont?: string): Promise<void>;
10575
10608
  setDesignMode(previewMode: any): void;
10576
10609
  newReportTemplate(): void;
@@ -13705,6 +13738,22 @@ declare class SheetColumnHeaderView extends ExcelColumnHeaderView {
13705
13738
  protected _getCssSelector(): string;
13706
13739
  }
13707
13740
 
13741
+ /**
13742
+ * 시트 Context 값 관련 관리 클래스
13743
+ */
13744
+ declare class SheetContextValueManager {
13745
+ private _refreshContextValueElements;
13746
+ constructor();
13747
+ registerRefreshContextValueElement(element: HTMLElement): void;
13748
+ /**
13749
+ * ContextValue 관련 요소들의 값을 갱신
13750
+ * TODO: 이후에는 ContextValue 값에 따라 갱신할 요소를 구분할 수 있도록 개선 필요
13751
+ * - ${pages}, %{pages}
13752
+ * @param value 갱신해야 할 값
13753
+ */
13754
+ refreshContextValueElements(value: any): void;
13755
+ }
13756
+
13708
13757
  /**
13709
13758
  * Excel 리포트 결과를 sheet-base로 표시한다.
13710
13759
  */
@@ -16074,6 +16123,7 @@ declare class TextPrintInfo {
16074
16123
  bandCellWidth: number;
16075
16124
  bandCellHeight: number;
16076
16125
  element: TextItemElement;
16126
+ isPrinted: boolean;
16077
16127
  constructor(bandCellWidth: number, bandCellHeight: number, element: TextItemElement);
16078
16128
  }
16079
16129