realreport 1.9.6 → 1.9.7

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.7
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.7
4
+ * commit 07a7d9a
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.7
13
13
  * Copyright (C) 2013-2024 WooriTech Inc.
14
14
  * All Rights Reserved.
15
- * commit 4c49ccb4b6a29006d0fcd4cc9a8e4430adcba9b2
15
+ * commit f6b69f598859223f8b188f4a9cc9baa6812cef09
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 */
@@ -6378,7 +6386,8 @@ declare class PrintContainer extends VisualContainer$1 {
6378
6386
  */
6379
6387
  private $_addEditableItems;
6380
6388
  private $_addBorderContainer;
6381
- protected _fireScrollEnd: () => void;
6389
+ protected _scrollEndHandler: () => void;
6390
+ private $_clickHandler;
6382
6391
  }
6383
6392
 
6384
6393
  interface PdfFont {
@@ -6813,6 +6822,7 @@ declare class Report extends EventAware$1 implements IEditCommandStackOwner, IPr
6813
6822
  getEditHistory(all?: boolean): EditCommand$1[];
6814
6823
  getCommand(id: number): EditCommand$1;
6815
6824
  itemByName(name: string): ReportItem;
6825
+ itemOf(hash: string): ReportItem;
6816
6826
  defaultInit(item: ReportItem, group: ReportGroupItem, hintWidth: number, hintHeight: number): void;
6817
6827
  addItem(parent: ReportGroupItem, item: ReportItem, index?: number): boolean;
6818
6828
  moveCollectionItem(collection: ReportItemCollection<any>, from: number, to: number): void;
@@ -7035,6 +7045,7 @@ declare class ReportPage extends ReportGroupItem implements IEventAware {
7035
7045
  private _pageIndex;
7036
7046
  private _events;
7037
7047
  private _nameMap;
7048
+ private _hashMap;
7038
7049
  private _reportHeader;
7039
7050
  private _reportFooter;
7040
7051
  private _pageHeader;
@@ -7134,6 +7145,7 @@ declare class ReportPage extends ReportGroupItem implements IEventAware {
7134
7145
  get marginBottom(): ValueString;
7135
7146
  set marginBottom(value: ValueString);
7136
7147
  getItem(name: string): ReportItem;
7148
+ itemOf(hash: string): ReportItem;
7137
7149
  removeItems(commands: EditCommandStack$1, items: ReportPageItem[]): number;
7138
7150
  search(page: number, key: string, options: FindOptions, results: FindResult[]): void;
7139
7151
  /**
@@ -7580,7 +7592,7 @@ declare class PageItemContainerElement extends BoundedContainerElement<PageItemC
7580
7592
  }
7581
7593
 
7582
7594
  type PrintPageCallback = (ctx: PrintContext, page: PrintPage, pageNo: number) => void;
7583
- type PrintEndCallback = (ctx: PrintContext, pages: PrintPage[]) => Promise<void>;
7595
+ type PrintEndCallback = (ctx: PrintContext, pages: PrintPage[]) => void;
7584
7596
  declare class PageSectionGuard extends ReportItemElement<ReportPage> {
7585
7597
  get guardLabel(): string;
7586
7598
  }
@@ -43869,6 +43881,7 @@ declare class ReportCompositeViewer extends ReportViewBase {
43869
43881
  private _reportFormSets?;
43870
43882
  private _reports;
43871
43883
  private _reportViewPrinter;
43884
+ private _isPreview;
43872
43885
  constructor(container: string | HTMLDivElement, formSets?: ReportFormSets, options?: ReportOptions);
43873
43886
  set formSets(formSets: ReportFormSets);
43874
43887
  /**