realreport-designer 1.9.1 → 1.9.2

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.
@@ -3688,6 +3688,7 @@ declare class PrintContext extends Base {
3688
3688
  private _compositePageCount;
3689
3689
  private _compositePage;
3690
3690
  private _language;
3691
+ private _editable;
3691
3692
  detailRows: number[];
3692
3693
  noValueCallback: boolean;
3693
3694
  preview: boolean;
@@ -3802,6 +3803,15 @@ declare class PrintContext extends Base {
3802
3803
  */
3803
3804
  get language(): string;
3804
3805
  set language(value: string);
3806
+ /**
3807
+ * editable
3808
+ */
3809
+ get editable(): boolean;
3810
+ set editable(value: boolean);
3811
+ /**
3812
+ * 편집 가능한 리포트인지 판별하기 위해 선언
3813
+ */
3814
+ get isEditable(): boolean;
3805
3815
  preparePrint(report?: Report_2): void;
3806
3816
  preparePage(page: number, allPage: number): void;
3807
3817
  setDetailPage(count: number, page: number): void;
@@ -3878,6 +3888,7 @@ declare enum PropCategory {
3878
3888
  LINK = "link",
3879
3889
  EVENT = "event",
3880
3890
  I18N = "internationalization",
3891
+ EDITING = "editing",
3881
3892
  SECTION = "section",
3882
3893
  EDITOR = "editor",
3883
3894
  REPORT = "report",
@@ -4785,6 +4796,8 @@ declare class Report_2 extends EventAware implements IEditCommandStackOwner, IPr
4785
4796
  get dirty(): boolean;
4786
4797
  /** reportItemRegistry */
4787
4798
  get reportItemRegistry(): ReportItemRegistry;
4799
+ /** editing */
4800
+ get editing(): ReportEditableObject<ReportRootItem>;
4788
4801
  load(src: any): Report_2;
4789
4802
  setSaveTagging(tag: string): Report_2;
4790
4803
  save(pageOnly?: boolean): object;
@@ -5017,6 +5030,27 @@ declare interface ReportDesignerOptions {
5017
5030
  } | null>;
5018
5031
  }
5019
5032
 
5033
+ /**
5034
+ * 리포트 최상단에서 편집가능 객체 속성 구현
5035
+ */
5036
+ declare class ReportEditableObject<T extends ReportItem> extends ReportItemObject<T> {
5037
+ static readonly PROP_EDITABLE = "editable";
5038
+ static readonly PROP_TYPE = "type";
5039
+ static readonly PROPINFOS: IPropInfo[];
5040
+ private _editable;
5041
+ get editable(): boolean;
5042
+ set editable(value: boolean);
5043
+ get pathLabel(): string;
5044
+ get displayPath(): string;
5045
+ get level(): number;
5046
+ constructor(item: T);
5047
+ getSaveLabel(): string;
5048
+ protected _doLoad(loader: IReportLoader, source: ReportSource): void;
5049
+ protected _doSave(target: ReportTarget): void;
5050
+ getEditProps(): IPropInfo[];
5051
+ getPropDomain(prop: IPropInfo): any[];
5052
+ }
5053
+
5020
5054
  /* Excluded from this release type: ReportElement */
5021
5055
 
5022
5056
  /**
@@ -5604,12 +5638,12 @@ declare abstract class ReportItem extends ReportPageItem {
5604
5638
  unfold(): boolean;
5605
5639
  isI18nFieldValid(): boolean;
5606
5640
  getLanguageFieldValue(language: string, field: string): string;
5607
- protected _foldedChanged(): void;
5608
5641
  get marqueeParent(): ReportItem;
5609
5642
  get printable(): boolean;
5610
5643
  isReadOnlyProperty(prop: IPropInfo): boolean;
5611
5644
  protected _sizable(): boolean;
5612
5645
  protected _boundable(): boolean;
5646
+ protected _foldedChanged(): void;
5613
5647
  /**
5614
5648
  * 리포트 아이템 생성 시, 수행할 초기화 작업을 정의한다.
5615
5649
  *
@@ -5743,10 +5777,61 @@ declare class ReportItemElementMap extends Base {
5743
5777
  private _reportItemElements;
5744
5778
  constructor();
5745
5779
  add<T extends ReportItem>(itemElement: ReportItemElement<T>): void;
5746
- getItemElementByModel<T extends ReportItem>(model: ReportItem): ReportItemElement<T> | undefined;
5780
+ getItemElements(): ReportItemElement<ReportItem>[];
5781
+ getItemElementByModelHash<T extends ReportItem>(hash: string): ReportItemElement<T> | undefined;
5747
5782
  getBandElementByModel<T extends DataBand>(model: DataBand): BandElement<T> | undefined;
5748
5783
  }
5749
5784
 
5785
+ /**
5786
+ * 특정 속성 카테고리에서 자식 스타일 정보를 하위로 생성해야할 때 사용
5787
+ */
5788
+ declare abstract class ReportItemObject<T extends ReportItem> extends ReportPageItem implements ReportObject {
5789
+ static readonly PROPINFOS: IPropInfo[];
5790
+ static readonly STYLE_PROPS: any[];
5791
+ private _item;
5792
+ private _styles;
5793
+ constructor(item: T);
5794
+ get outlineParent(): IOutlineSource | undefined;
5795
+ get outlineExpandable(): boolean;
5796
+ get outlineLabel(): string;
5797
+ getSaveType(): string;
5798
+ canRemoveFrom(): boolean;
5799
+ abstract getSaveLabel(): string;
5800
+ getEditProps(): IPropInfo[];
5801
+ getStyleProps(): IPropInfo[];
5802
+ getSubStyleProps(prop: string): IPropInfo[];
5803
+ getPlaceHolder(prop: IPropInfo): string;
5804
+ getPropDomain(prop: IPropInfo): any[];
5805
+ setItemsProperty(sources: IPropertySource[], prop: string, value: any): void;
5806
+ getStyle(style: string): string;
5807
+ setStyle(style: string, value: string): void;
5808
+ getStyleProperty(prop: string): any;
5809
+ setStyleProperty(prop: string, value: any): void;
5810
+ isChildProp(prop: string): boolean;
5811
+ getSubStyleProperty(prop: string, style: string): any;
5812
+ setSubStyleProperty(prop: string, style: string, value: any): void;
5813
+ setItemsSubStyleProperty(sources: IPropertySource[], prop: string, style: string, value: any): void;
5814
+ canPropAdoptDragSource(prop: IPropInfo, source: any): boolean;
5815
+ adoptPropDragSource(prop: IPropInfo, source: any): IDropResult;
5816
+ get item(): T;
5817
+ get page(): ReportPage;
5818
+ get report(): Report_2;
5819
+ get styles(): Styles;
5820
+ set styles(value: Styles);
5821
+ defaultInit(): void;
5822
+ load(loader: IReportLoader, source: ReportSource): void;
5823
+ save(target: ReportTarget): boolean;
5824
+ isCollection(): boolean;
5825
+ protected _doDefaultInit(): void;
5826
+ protected _doLoad(loader: IReportLoader, source: ReportSource): void;
5827
+ protected _doSave(target: ReportTarget): void;
5828
+ protected _getEditProps(): IPropInfo[];
5829
+ protected _getStyleProps(): string[];
5830
+ protected _getSubStyle(prop: string, style: string): any;
5831
+ protected _setSubStyle(prop: string, style: string, value: any): void;
5832
+ protected _changed(prop: string, newValue: unknown, oldValue: unknown): void;
5833
+ }
5834
+
5750
5835
  /**
5751
5836
  * Report Item들에 대한 정보를 한곳에 모아서 등록해놓고 용이하게 꺼내쓰기 위해 작성
5752
5837
  */
@@ -6095,6 +6180,7 @@ declare abstract class ReportPageItem extends Base implements ISelectionSource,
6095
6180
  */
6096
6181
  get marqueeParent(): ReportItem;
6097
6182
  get printable(): boolean;
6183
+ get printEditable(): boolean;
6098
6184
  isAncestorOf(item: ReportPageItem): boolean;
6099
6185
  getProps(): any;
6100
6186
  setProps(src: any): void;
@@ -6142,11 +6228,13 @@ declare class ReportRootItem extends ReportGroupItem {
6142
6228
  static readonly PROP_MARGIN_RIGHT = "marginRight";
6143
6229
  static readonly PROP_MARGIN_TOP = "marginTop";
6144
6230
  static readonly PROP_MARGIN_BOTTOM = "marginBottom";
6231
+ static readonly PROP_EDITING = "editing";
6145
6232
  static readonly PROPINFOS: IPropInfo[];
6146
6233
  static readonly $_ctor: string;
6147
6234
  private _report;
6148
6235
  private _type;
6149
6236
  private _maxPageCount;
6237
+ private _editing;
6150
6238
  constructor(report: Report_2, name?: string);
6151
6239
  get report(): Report_2;
6152
6240
  /** type */
@@ -6194,6 +6282,8 @@ declare class ReportRootItem extends ReportGroupItem {
6194
6282
  /** marginBottom */
6195
6283
  get marginBottom(): ValueString;
6196
6284
  set marginBottom(value: ValueString);
6285
+ /** editing */
6286
+ get editing(): ReportEditableObject<ReportRootItem>;
6197
6287
  get outlineLabel(): string;
6198
6288
  get pathLabel(): string;
6199
6289
  get displayPath(): string;