realreport 1.9.6 → 1.9.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,5 +1,5 @@
1
1
  /*
2
- RealReport v1.9.6
2
+ RealReport v1.9.8
3
3
  Copyright (C) 2013-2024 WooriTech Inc.
4
4
  All Rights Reserved.
5
5
  */
@@ -487,8 +487,7 @@ All Rights Reserved.
487
487
  margin: 0;
488
488
  padding: 0;
489
489
  text-align: center;
490
- /** 상위에서 지정할 수 있도록 여기에 font-size를 지정하지 말 것. */
491
- line-height: 1.35em;
490
+ line-height: normal;
492
491
  }
493
492
 
494
493
  .rr-text[data-design]:hover {
@@ -529,12 +528,10 @@ All Rights Reserved.
529
528
  color: #777;
530
529
  border: 1px solid #aaa;
531
530
  }
532
-
533
531
  .rr-image[data-empty] span:before {
534
532
  content: "[IMAGE]";
535
533
  white-space: nowrap;
536
534
  }
537
-
538
535
  .rr-image[data-design]:hover {
539
536
  background-color: rgba(111, 111, 0, 0.1);
540
537
  }
@@ -548,24 +545,62 @@ All Rights Reserved.
548
545
  color: #777;
549
546
  border: 1px solid #aaa;
550
547
  }
551
-
552
548
  .rr-svg[data-empty] span:before {
553
549
  content: "[ SVG ]";
554
550
  white-space: nowrap;
555
551
  }
556
-
557
552
  .rr-svg[data-design]:hover {
558
553
  background-color: rgba(111, 111, 0, 0.1);
559
554
  }
560
555
 
556
+ .rr-sign:not([data-design]) {
557
+ cursor: pointer;
558
+ }
559
+ /* .rr-sign[data-empty] {
560
+ display: table;
561
+ margin: 0;
562
+ padding: 0;
563
+ text-align: center;
564
+ background: #ddd;
565
+ color: #777;
566
+ border: 1px solid #aaa;
567
+ }
568
+ .rr-sign[data-empty] span:before {
569
+ content: "[Sign]";
570
+ white-space: nowrap;
571
+ } */
572
+ .rr-sign[data-design] {
573
+ background-color: #f0f0f0;
574
+ }
575
+ .rr-sign[data-design]:before {
576
+ content: "[서 명]";
577
+ white-space: nowrap;
578
+ color: #040;
579
+ position: absolute;
580
+ top: 50%;
581
+ left: 50%;
582
+ transform: translate(-50%, -50%);
583
+ font-size: 15px;
584
+ }
585
+ .rr-sign[data-design] img {
586
+ display: none;
587
+ }
588
+ .rr-sign[data-design]:hover {
589
+ background-color: rgba(111, 111, 0, 0.1);
590
+ }
591
+ .rr-sign img {
592
+ box-sizing: border-box;
593
+ padding: 10px;
594
+ object-fit: contain;
595
+ pointer-events: none;
596
+ }
597
+
561
598
  .rr-bar {
562
599
  overflow: hidden;
563
600
  }
564
-
565
601
  .rr-bar-bar {
566
602
  background-color: green;
567
603
  }
568
-
569
604
  .rr-bar-bar[data-design] {
570
605
  background-color: transparent;
571
606
  }
@@ -652,6 +687,21 @@ All Rights Reserved.
652
687
  background-color: rgba(111, 111, 0, 0.1);
653
688
  }
654
689
 
690
+ .rr-sign-panel {
691
+ padding: 10px;
692
+ border: 1px solid gray;
693
+ background: #f8f8ff;
694
+ }
695
+ .rr-sign-panel-title {
696
+ font-size: 1.2em;
697
+ }
698
+ .rr-sign-panel-body {
699
+ border: 1px solid #999;
700
+ }
701
+ .rr-sign-panel button {
702
+ padding: 4px 8px;
703
+ }
704
+
655
705
  /** design */
656
706
  .rr-section-guard {
657
707
  background-color: #f0f0f0;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="pdfkit" />
2
2
  /**
3
- * RealReport v1.9.6
4
- * commit 89557c1
3
+ * RealReport v1.9.8
4
+ * commit 8b6b553
5
5
 
6
6
  * {@link https://real-report.com}
7
7
  * Copyright (C) 2013-2024 WooriTech Inc.
@@ -9,10 +9,10 @@
9
9
  */
10
10
 
11
11
  /**
12
- * RealReport Core v1.9.6
12
+ * RealReport Core v1.9.8
13
13
  * Copyright (C) 2013-2024 WooriTech Inc.
14
14
  * All Rights Reserved.
15
- * commit 4c49ccb4b6a29006d0fcd4cc9a8e4430adcba9b2
15
+ * commit 9301fb09b32f2116449406ada55d7b6f276c1408
16
16
  */
17
17
  type ConfigObject$1 = {
18
18
  [key: string]: any;
@@ -730,7 +730,6 @@ declare abstract class VisualContainer$1 extends EventAware$1 implements VisualT
730
730
  protected _layoutChildren(bounds: Rectangle$1): void;
731
731
  protected _doLayout(bounds: Rectangle$1): void;
732
732
  protected _doAfterRender(): void;
733
- protected _doPrepareRender(bounds: Rectangle$1): void;
734
733
  protected _doRenderHtml(bounds: Rectangle$1): void;
735
734
  protected _doDrawContainer(bounds: Rectangle$1): void;
736
735
  protected _drawElement(element: VisualElement$1): void;
@@ -799,7 +798,7 @@ declare abstract class VisualElement$1 extends EventAware$1 {
799
798
  private _dirty;
800
799
  private _hovered;
801
800
  private _className;
802
- private _nodraw;
801
+ protected _nodraw: boolean;
803
802
  constructor(doc: Document, name?: string, callback?: VisualElementCallback);
804
803
  protected _doDispose(): void;
805
804
  /** positionable */
@@ -888,6 +887,7 @@ declare abstract class VisualElement$1 extends EventAware$1 {
888
887
  contains(element: VisualElement$1): boolean;
889
888
  getAncestor(cls: any): VisualElement$1;
890
889
  addDom(dom: Element): void;
890
+ insertDom(dom: Element, elt: VisualElement$1): void;
891
891
  addChild(child: VisualElement$1): boolean;
892
892
  protected _getParentDom(): HTMLElement;
893
893
  insertChild(index: number, child: VisualElement$1): boolean;
@@ -5342,6 +5342,7 @@ declare enum ReportItemType {
5342
5342
  HTML = "html",
5343
5343
  HTMLVIEW = "htmlview",
5344
5344
  SVG = "svg",
5345
+ SIGN = "sign",
5345
5346
  REALCHART = "realchart",
5346
5347
  HICHART = "hichart",
5347
5348
  PAGE = "page"
@@ -5535,10 +5536,12 @@ declare class TextItem extends TextItemBase {
5535
5536
  static readonly PROP_ON_GET_CONTEXT_VALUE = "onGetContextValue";
5536
5537
  static readonly PROP_I18N = "internationalization";
5537
5538
  static readonly PROP_MERGE_RULE = "mergeRule";
5539
+ static readonly PROP_RICH = "rich";
5538
5540
  static readonly PROPINFOS: IPropInfo[];
5539
5541
  static readonly $_ctor: string;
5540
5542
  static readonly ITEM_TYPE = "Text";
5541
5543
  private _text;
5544
+ private _rich;
5542
5545
  private _editing;
5543
5546
  private _i18nObject;
5544
5547
  private _mergeRule;
@@ -5552,6 +5555,11 @@ declare class TextItem extends TextItemBase {
5552
5555
  */
5553
5556
  get text(): string;
5554
5557
  set text(value: string);
5558
+ /**
5559
+ * rich
5560
+ */
5561
+ get rich(): boolean;
5562
+ set rich(value: boolean);
5555
5563
  /**
5556
5564
  * editing
5557
5565
  * - 텍스트를 미리보기 시점에 수정가능하게 하는 속성
@@ -6274,9 +6282,9 @@ declare class PrintContainer extends VisualContainer$1 {
6274
6282
  private _pageToGo?;
6275
6283
  private _printEditLayer;
6276
6284
  private _printEditableItemManager;
6285
+ private _signPanel;
6277
6286
  private _floatingLayoutAction;
6278
6287
  constructor(containerId: string | HTMLDivElement);
6279
- protected _doDispose(): void;
6280
6288
  /** pageCount */
6281
6289
  get pageCount(): number;
6282
6290
  /** page */
@@ -6373,12 +6381,14 @@ declare class PrintContainer extends VisualContainer$1 {
6373
6381
  private $_createReportView;
6374
6382
  private $_instanceofIPrintReport;
6375
6383
  private $_addContainerEventListener;
6384
+ private $_addEditableItemToManager;
6376
6385
  /**
6377
6386
  * 한 페이지당 수정가능한 아이템 정보를 찾아서 정보를 최신화 시킨다.
6378
6387
  */
6379
6388
  private $_addEditableItems;
6380
6389
  private $_addBorderContainer;
6381
- protected _fireScrollEnd: () => void;
6390
+ protected _scrollEndHandler: () => void;
6391
+ private $_clickHandler;
6382
6392
  }
6383
6393
 
6384
6394
  interface PdfFont {
@@ -6813,6 +6823,7 @@ declare class Report extends EventAware$1 implements IEditCommandStackOwner, IPr
6813
6823
  getEditHistory(all?: boolean): EditCommand$1[];
6814
6824
  getCommand(id: number): EditCommand$1;
6815
6825
  itemByName(name: string): ReportItem;
6826
+ itemOf(hash: string): ReportItem;
6816
6827
  defaultInit(item: ReportItem, group: ReportGroupItem, hintWidth: number, hintHeight: number): void;
6817
6828
  addItem(parent: ReportGroupItem, item: ReportItem, index?: number): boolean;
6818
6829
  moveCollectionItem(collection: ReportItemCollection<any>, from: number, to: number): void;
@@ -7035,6 +7046,7 @@ declare class ReportPage extends ReportGroupItem implements IEventAware {
7035
7046
  private _pageIndex;
7036
7047
  private _events;
7037
7048
  private _nameMap;
7049
+ private _hashMap;
7038
7050
  private _reportHeader;
7039
7051
  private _reportFooter;
7040
7052
  private _pageHeader;
@@ -7134,6 +7146,7 @@ declare class ReportPage extends ReportGroupItem implements IEventAware {
7134
7146
  get marginBottom(): ValueString;
7135
7147
  set marginBottom(value: ValueString);
7136
7148
  getItem(name: string): ReportItem;
7149
+ itemOf(hash: string): ReportItem;
7137
7150
  removeItems(commands: EditCommandStack$1, items: ReportPageItem[]): number;
7138
7151
  search(page: number, key: string, options: FindOptions, results: FindResult[]): void;
7139
7152
  /**
@@ -7580,7 +7593,7 @@ declare class PageItemContainerElement extends BoundedContainerElement<PageItemC
7580
7593
  }
7581
7594
 
7582
7595
  type PrintPageCallback = (ctx: PrintContext, page: PrintPage, pageNo: number) => void;
7583
- type PrintEndCallback = (ctx: PrintContext, pages: PrintPage[]) => Promise<void>;
7596
+ type PrintEndCallback = (ctx: PrintContext, pages: PrintPage[]) => void;
7584
7597
  declare class PageSectionGuard extends ReportItemElement<ReportPage> {
7585
7598
  get guardLabel(): string;
7586
7599
  }
@@ -7698,6 +7711,7 @@ declare class PrintPage {
7698
7711
  background: HTMLDivElement;
7699
7712
  contents: HTMLDivElement[];
7700
7713
  foreground: HTMLDivElement;
7714
+ reportIndex: number;
7701
7715
  }
7702
7716
 
7703
7717
  /** @internal */
@@ -43869,6 +43883,7 @@ declare class ReportCompositeViewer extends ReportViewBase {
43869
43883
  private _reportFormSets?;
43870
43884
  private _reports;
43871
43885
  private _reportViewPrinter;
43886
+ private _isPreview;
43872
43887
  constructor(container: string | HTMLDivElement, formSets?: ReportFormSets, options?: ReportOptions);
43873
43888
  set formSets(formSets: ReportFormSets);
43874
43889
  /**
@@ -43878,7 +43893,16 @@ declare class ReportCompositeViewer extends ReportViewBase {
43878
43893
  */
43879
43894
  preview(options?: PreviewOptions): void;
43880
43895
  print(options: PrintOptions): Promise<void>;
43896
+ /**
43897
+ * 리포트를 PDF파일로 다운로드 합니다.
43898
+ * @param options PDFExportOptions
43899
+ */
43881
43900
  exportPdf(options: PDFExportOptions): Promise<void>;
43901
+ /**
43902
+ * 리포트를 Blob 형식으로 내보내기 합니다.
43903
+ * @param options PDFExportBlobOptions
43904
+ */
43905
+ exportPdfBlob(options: PDFExportBlobOptions): Promise<Blob>;
43882
43906
  exportImage(imageOptions: ImageExportOptions): void;
43883
43907
  exportDocument(options: DocExportOptions): void;
43884
43908
  private _checkReportFormSet;
@@ -44023,5 +44047,6 @@ type PDFExportOptions = {
44023
44047
  pdfVersion: '1.3' | '1.4' | '1.5' | '1.6' | '1.7' | '1.7ext3';
44024
44048
  };
44025
44049
  type PDFExportBlobOptions = Omit<PDFExportOptions, 'filename' | 'preview'>;
44050
+ declare const ZOOM_ERROR_MESSAGE = "\uD398\uC774\uC9C0 \uBC30\uC728 \uAC12\uC774 100%\uC778 \uACBD\uC6B0\uB9CC \uB0B4\uBCF4\uB0B4\uAE30\uAC00 \uAC00\uB2A5\uD569\uB2C8\uB2E4. \uD398\uC774\uC9C0 \uBC30\uC728 \uAC12\uC774 100%\uC778\uC9C0 \uD655\uC778\uD574 \uC8FC\uC138\uC694.";
44026
44051
 
44027
- export { GridReportItemSource, GridReportLayout, GridReportViewer, PDFExportBlobOptions, PDFExportOptions, PreviewOptions, PrintOptions, ReportCompositeViewer, ReportData, ReportDataSet, ReportForm, ReportFormSet, ReportFormSets, ReportOptions, ReportViewer };
44052
+ export { GridReportItemSource, GridReportLayout, GridReportViewer, PDFExportBlobOptions, PDFExportOptions, PreviewOptions, PrintOptions, ReportCompositeViewer, ReportData, ReportDataSet, ReportForm, ReportFormSet, ReportFormSets, ReportOptions, ReportViewer, ZOOM_ERROR_MESSAGE };