realreport 1.9.0 → 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.
@@ -1,7 +1,7 @@
1
1
  /// <reference types="pdfkit" />
2
2
  /**
3
- * RealReport v1.9.0
4
- * commit 3f834ed
3
+ * RealReport v1.9.2
4
+ * commit 21c3c82
5
5
 
6
6
  * Copyright (C) 2013-2024 WooriTech Inc.
7
7
  https://real-report.com
@@ -9,10 +9,10 @@
9
9
  */
10
10
 
11
11
  /**
12
- * RealReport Core v1.9.0
12
+ * RealReport Core v1.9.2
13
13
  * Copyright (C) 2013-2024 WooriTech Inc.
14
14
  * All Rights Reserved.
15
- * commit bc11ef2f13fe4761f6f7f9459c9d8b0ad53d0310
15
+ * commit e334d25e406b0ee0b242fb863bd5c1a5cba46226
16
16
  */
17
17
  type ConfigObject$1 = {
18
18
  [key: string]: any;
@@ -1076,6 +1076,7 @@ declare enum PropCategory {
1076
1076
  LINK = "link",
1077
1077
  EVENT = "event",
1078
1078
  I18N = "internationalization",
1079
+ EDITING = "editing",
1079
1080
  SECTION = "section",
1080
1081
  EDITOR = "editor",
1081
1082
  REPORT = "report",
@@ -1518,6 +1519,31 @@ declare class AssetManager extends EventAware$1 {
1518
1519
  private $_addHighchart;
1519
1520
  }
1520
1521
 
1522
+ /** @internal */
1523
+ declare class DatetimeReader {
1524
+ static readonly Formats: string[];
1525
+ static readonly Default: DatetimeReader;
1526
+ static initialize(): void;
1527
+ private _format;
1528
+ private _type;
1529
+ private _parser;
1530
+ constructor(format: string);
1531
+ /** format */
1532
+ get format(): string;
1533
+ set format(value: string);
1534
+ /** amText */
1535
+ get amText(): string;
1536
+ set amText(value: string);
1537
+ /** pmText */
1538
+ get pmText(): string;
1539
+ set pmText(value: string);
1540
+ /** baseYear */
1541
+ get baseYear(): number;
1542
+ set baseYear(value: number);
1543
+ toDate(value: string): Date;
1544
+ private parse;
1545
+ }
1546
+
1521
1547
  interface IReportDataProvider {
1522
1548
  designTime?: boolean;
1523
1549
  preparePrint(ctx: PrintContext): void;
@@ -1582,7 +1608,25 @@ declare abstract class LinkableReportData extends ReportData$1 {
1582
1608
  save(target: object): void;
1583
1609
  protected abstract _doDataFetched(fetchedData: unknown): void;
1584
1610
  }
1611
+ type SimpleDataValueType = {
1612
+ [key: string]: any;
1613
+ };
1614
+ interface ISimpleDataField {
1615
+ fieldName: string;
1616
+ dataType?: 'string' | 'number' | 'boolean' | 'array' | 'object';
1617
+ source?: string;
1618
+ expression?: string;
1619
+ format?: string;
1620
+ description?: string;
1621
+ sample?: any;
1622
+ dateReader?: DatetimeReader;
1623
+ width?: number;
1624
+ children?: any;
1625
+ }
1585
1626
  interface ISimpleData extends IReportData {
1627
+ getField(index: number): ISimpleDataField;
1628
+ getFields(): ISimpleDataField[];
1629
+ getFieldByName(fieldName: string): ISimpleDataField;
1586
1630
  getValues(): any;
1587
1631
  getSaveValues(): any;
1588
1632
  }
@@ -1591,44 +1635,47 @@ interface ISimpleData extends IReportData {
1591
1635
  */
1592
1636
  declare class SimpleData extends LinkableReportData implements ISimpleData {
1593
1637
  private _isObj;
1594
- private _values;
1595
- constructor(name: string, values: any, link?: IReportDataLink);
1638
+ private _fields;
1639
+ private _linkedValues;
1640
+ private _embeddedValues;
1641
+ private get _values();
1642
+ private set _values(value);
1643
+ constructor(name: string, values: SimpleDataValueType, link?: IReportDataLink, fields?: ISimpleDataField[], dp?: IReportDataProvider);
1596
1644
  /**
1597
1645
  * TODO: array index
1598
1646
  */
1599
1647
  getValue(path?: string): any;
1600
1648
  getValues(): any;
1601
- get sample(): any;
1649
+ get sample(): SimpleDataValueType;
1650
+ get rowCount(): number;
1651
+ get fields(): ISimpleDataField[];
1652
+ get fieldCount(): number;
1602
1653
  setSample(values: any): void;
1603
1654
  getFieldNames(): string[];
1655
+ getFields(): ISimpleDataField[];
1656
+ getField(index: number): ISimpleDataField;
1657
+ getFieldByName(fieldName: string): ISimpleDataField;
1658
+ getFieldIndex(field: string): number;
1659
+ indexOfField(field: ISimpleDataField): number;
1660
+ setField(index: number, field: ISimpleDataField): void;
1661
+ getSaveFields(): ISimpleDataField[];
1662
+ getNextFieldName(prefix?: string): string;
1663
+ addField(index: number, field: ISimpleDataField): boolean;
1664
+ removeField(field: ISimpleDataField): boolean;
1665
+ dateToStr(field: ISimpleDataField, v: Date): string;
1666
+ /**
1667
+ * 특정 모드의 데이터를 일회성으로 조작하기 위한 편의성 메서드 (callback 실행 후 모드는 원복됨)
1668
+ */
1669
+ runInMode(mode: LinkableReportData['mode'], callback: (() => void) | Promise<void>): void;
1670
+ readValue(field: ISimpleDataField, value: any): any;
1604
1671
  getSaveType(): string;
1605
1672
  getSaveValues(): any;
1606
1673
  protected _doDataFetched(fetchedData: unknown): void;
1607
- }
1608
-
1609
- /** @internal */
1610
- declare class DatetimeReader {
1611
- static readonly Formats: string[];
1612
- static readonly Default: DatetimeReader;
1613
- static initialize(): void;
1614
- private _format;
1615
- private _type;
1616
- private _parser;
1617
- constructor(format: string);
1618
- /** format */
1619
- get format(): string;
1620
- set format(value: string);
1621
- /** amText */
1622
- get amText(): string;
1623
- set amText(value: string);
1624
- /** pmText */
1625
- get pmText(): string;
1626
- set pmText(value: string);
1627
- /** baseYear */
1628
- get baseYear(): number;
1629
- set baseYear(value: number);
1630
- toDate(value: string): Date;
1631
- private parse;
1674
+ setSource(source: SimpleDataValueType): void;
1675
+ private $_isSimpleValueType;
1676
+ private $_parseValue;
1677
+ private $_createField;
1678
+ private $_createFields;
1632
1679
  }
1633
1680
 
1634
1681
  /**@internal */
@@ -5173,36 +5220,507 @@ declare enum ReportItemType {
5173
5220
  }
5174
5221
 
5175
5222
  /**
5176
- * Report Item들에 대한 정보를 한곳에 모아서 등록해놓고 용이하게 꺼내쓰기 위해 작성
5223
+ * 특정 속성 카테고리에서 자식 스타일 정보를 하위로 생성해야할 사용
5177
5224
  */
5178
- declare class ReportItemRegistry extends Base$1 {
5179
- private readonly _masterBandItemTypes;
5180
- private _reportItemFlatMap;
5181
- constructor();
5182
- add(item: ReportItem): void;
5183
- remove(item: ReportItem | ReportPageItem): void;
5184
- getItems(type?: ReportItemType): ReportItem[];
5185
- getItemCount(type: ReportItemType): number;
5225
+ declare abstract class ReportItemObject<T extends ReportItem> extends ReportPageItem implements ReportObject {
5226
+ static readonly PROPINFOS: IPropInfo[];
5227
+ static readonly STYLE_PROPS: any[];
5228
+ private _item;
5229
+ private _styles;
5230
+ constructor(item: T);
5231
+ get outlineParent(): IOutlineSource | undefined;
5232
+ get outlineExpandable(): boolean;
5233
+ get outlineLabel(): string;
5234
+ getSaveType(): string;
5235
+ canRemoveFrom(): boolean;
5236
+ abstract getSaveLabel(): string;
5237
+ getEditProps(): IPropInfo[];
5238
+ getStyleProps(): IPropInfo[];
5239
+ getSubStyleProps(prop: string): IPropInfo[];
5240
+ getPlaceHolder(prop: IPropInfo): string;
5241
+ getPropDomain(prop: IPropInfo): any[];
5242
+ setItemsProperty(sources: IPropertySource[], prop: string, value: any): void;
5243
+ getStyle(style: string): string;
5244
+ setStyle(style: string, value: string): void;
5245
+ getStyleProperty(prop: string): any;
5246
+ setStyleProperty(prop: string, value: any): void;
5247
+ isChildProp(prop: string): boolean;
5248
+ getSubStyleProperty(prop: string, style: string): any;
5249
+ setSubStyleProperty(prop: string, style: string, value: any): void;
5250
+ setItemsSubStyleProperty(sources: IPropertySource[], prop: string, style: string, value: any): void;
5251
+ canPropAdoptDragSource(prop: IPropInfo, source: any): boolean;
5252
+ adoptPropDragSource(prop: IPropInfo, source: any): IDropResult;
5253
+ get item(): T;
5254
+ get page(): ReportPage;
5255
+ get report(): Report;
5256
+ get styles(): Styles;
5257
+ set styles(value: Styles);
5258
+ defaultInit(): void;
5259
+ load(loader: IReportLoader, source: ReportSource): void;
5260
+ save(target: ReportTarget): boolean;
5261
+ isCollection(): boolean;
5262
+ protected _doDefaultInit(): void;
5263
+ protected _doLoad(loader: IReportLoader, source: ReportSource): void;
5264
+ protected _doSave(target: ReportTarget): void;
5265
+ protected _getEditProps(): IPropInfo[];
5266
+ protected _getStyleProps(): string[];
5267
+ protected _getSubStyle(prop: string, style: string): any;
5268
+ protected _setSubStyle(prop: string, style: string, value: any): void;
5269
+ protected _changed(prop: string, newValue: unknown, oldValue: unknown): void;
5270
+ }
5271
+
5272
+ /**
5273
+ * 다국어 관련 속성 구현
5274
+ */
5275
+ declare class I18nObject<T extends ReportItem> extends ReportItemObject<T> {
5276
+ static readonly PROP_FIELD = "field";
5277
+ static readonly PROPINFOS: IPropInfo[];
5278
+ private _field;
5279
+ get field(): string;
5280
+ set field(value: string);
5281
+ get pathLabel(): string;
5282
+ get displayPath(): string;
5283
+ get level(): number;
5284
+ constructor(item: T);
5285
+ getSaveLabel(): string;
5286
+ load(loader: IReportLoader, source: ReportSource): void;
5287
+ save(target: ReportTarget): boolean;
5288
+ getEditProps(): IPropInfo[];
5289
+ getPropDomain(prop: IPropInfo): any[];
5290
+ }
5291
+
5292
+ /**
5293
+ * 편집가능 객체 속성 구현
5294
+ */
5295
+ declare class EditableObject<T extends ReportItem> extends ReportItemObject<T> {
5296
+ static readonly PROP_EDITABLE = "editable";
5297
+ static readonly PROP_TYPE = "type";
5298
+ static readonly PROPINFOS: IPropInfo[];
5299
+ private _editable;
5300
+ private _type;
5301
+ get editable(): boolean;
5302
+ set editable(value: boolean);
5303
+ get type(): EditType;
5304
+ set type(value: EditType);
5305
+ get pathLabel(): string;
5306
+ get displayPath(): string;
5307
+ get level(): number;
5308
+ constructor(item: T);
5309
+ getSaveLabel(): string;
5310
+ protected _doLoad(loader: IReportLoader, source: ReportSource): void;
5311
+ protected _doSave(target: ReportTarget): void;
5312
+ getEditProps(): IPropInfo[];
5313
+ getPropDomain(prop: IPropInfo): any[];
5314
+ }
5315
+
5316
+ /**
5317
+ * 한 줄 혹은 여러줄의 텍스트를 표시한다.
5318
+ * value 속성으로 지정된 data 위치가 타당하면 그 값을, 아니면 text 속성으로 지정한 문자열을 표시한다.
5319
+ */
5320
+ declare abstract class TextItemBase extends ReportItem {
5321
+ static readonly PROP_WRAP = "wrap";
5322
+ static readonly PROP_MULTI_LINE = "multiLine";
5323
+ static readonly PROP_BOOLEAN_FORMAT = "booleanFormat";
5324
+ static readonly PROP_NUMBER_FORMAT = "numberFormat";
5325
+ static readonly PROP_DATE_FORMAT = "dateFormat";
5326
+ static readonly PROP_TEXT_FORMAT = "textFormat";
5327
+ static readonly PROP_TEXT_PREFIX = "prefix";
5328
+ static readonly PROP_TEXT_SUFFIX = "suffix";
5329
+ static readonly PROPINFOS: IPropInfo[];
5330
+ static readonly STYLE_PROPS: string[];
5331
+ private _wrap;
5332
+ private _multiLine;
5333
+ private _booleanFormat;
5334
+ private _numberFormat;
5335
+ private _dateFormat;
5336
+ private _textFormat;
5337
+ private _prefix;
5338
+ private _suffix;
5339
+ constructor(name: string);
5186
5340
  /**
5187
- * 가장 최상위에 있는 밴드의 이름들을 반환해주기 위해 작성
5188
- * @returns 가장 최상위 위치에 있는 밴드의 이름들을 모아서 반환
5341
+ * wrap
5189
5342
  */
5190
- getRootBandItemNames(): string[];
5191
- getSubBandsByMasterName(masterName: string): DataBand[];
5192
- getItemType(item: ReportItem): ReportItemType | undefined;
5193
- private $_removeChildItems;
5343
+ get wrap(): boolean;
5344
+ set wrap(value: boolean);
5345
+ /**
5346
+ * multiLine
5347
+ * true면 '<br>'이나 '\n', '\r\n'으로 줄을 나눠 표시한다.
5348
+ */
5349
+ get multiLine(): boolean;
5350
+ set multiLine(value: boolean);
5351
+ /**
5352
+ * booleanFormat
5353
+ */
5354
+ get booleanFormat(): string;
5355
+ set booleanFormat(value: string);
5356
+ /**
5357
+ * numberFormat
5358
+ */
5359
+ get numberFormat(): string;
5360
+ set numberFormat(value: string);
5361
+ /**
5362
+ * dateFormat
5363
+ */
5364
+ get dateFormat(): string;
5365
+ set dateFormat(value: string);
5366
+ /**
5367
+ * 세미콜론(;)으로 구분하여 왼쪽에는 String.prototype.replace의 첫 번째 매개변수,
5368
+ * 오른쪽에는 두 번째 매개변수와 같은 타입으로 지정
5369
+ * 예) Mr. 홍길동: `'([A-Za-z]*); Mr\. \$1'`,
5370
+ * 예) 사업자번호: '(\\d{3})(\\d{2})(\\d{5});$1-$2-$3'
5371
+ */
5372
+ get textFormat(): string;
5373
+ set textFormat(value: string);
5374
+ /**
5375
+ * 접두어.
5376
+ * expression을 이용해서 표현할 수도 있지만,
5377
+ * 이 속성으로 설정하면 text와 다른 스타일을 적용할 수 있다.
5378
+ */
5379
+ get prefix(): string;
5380
+ set prefix(value: string);
5381
+ /**
5382
+ * 접미어.
5383
+ * expression을 이용해서 표현할 수도 있지만,
5384
+ * 이 속성으로 설정하면 text와 다른 스타일을 적용할 수 있다.
5385
+ */
5386
+ get suffix(): string;
5387
+ set suffix(value: string);
5388
+ protected _getEditProps(): IPropInfo[];
5389
+ protected _getStyleProps(): string[];
5390
+ protected _doLoad(loader: IReportLoader, src: any): void;
5391
+ protected _doSave(target: object): void;
5392
+ protected _doApplyStyle(prop: string, value: string, target: CSSStyleDeclaration): boolean;
5393
+ canRotate(): boolean;
5394
+ canLink(): boolean;
5395
+ canAdoptDragSource(source: any): boolean;
5396
+ adoptDragSource(source: any): IDropResult;
5397
+ canPropAdoptDragSource(prop: IPropInfo, source: any): boolean;
5398
+ adoptPropDragSource(prop: IPropInfo, source: any): IDropResult;
5399
+ getPrintValue(dp: IReportDataProvider, row: number): any;
5400
+ }
5401
+ /**
5402
+ * 고정된 텍스트나 데이터 필드의 값을 출력하는 아이템.
5403
+ */
5404
+ declare class TextItem extends TextItemBase {
5405
+ static readonly PROP_MULTI_LINE = "multiLine";
5406
+ static readonly PROP_TEXT = "text";
5407
+ static readonly PROP_ON_GET_CONTEXT_VALUE = "onGetContextValue";
5408
+ static readonly PROP_I18N = "internationalization";
5409
+ static readonly PROPINFOS: IPropInfo[];
5410
+ static readonly $_ctor: string;
5411
+ static readonly ITEM_TYPE = "Text";
5412
+ private _text;
5413
+ private _editing;
5414
+ private _i18nObject;
5415
+ private _contextValueCallback;
5416
+ private _onGetContextValue;
5417
+ private _contextValueCallbackFunc;
5418
+ private _contextValueCallbackDelegate;
5419
+ constructor(name: string, text?: string);
5420
+ /**
5421
+ * text
5422
+ */
5423
+ get text(): string;
5424
+ set text(value: string);
5425
+ /**
5426
+ * editing
5427
+ * - 텍스트를 미리보기 시점에 수정가능하게 하는 속성
5428
+ */
5429
+ get editing(): EditableObject<TextItem>;
5430
+ get internationalization(): I18nObject<TextItem>;
5431
+ /**
5432
+ * onGetContextValue
5433
+ */
5434
+ get onGetContextValue(): string;
5435
+ set onGetContextValue(value: string);
5436
+ /**
5437
+ * contextValueCallback
5438
+ */
5439
+ get contextValueCallback(): ContextValueCallback;
5440
+ set contextValueCallback(value: ContextValueCallback);
5441
+ get printEditable(): boolean;
5442
+ getSaveType(): string;
5443
+ get outlineLabel(): string;
5444
+ get designText(): string;
5445
+ get pathLabel(): string;
5446
+ isContextValue(): boolean;
5447
+ protected _getEditProps(): IPropInfo[];
5448
+ protected _doDefaultInit(loader: IReportLoader, parent: ReportGroupItem, hintWidth: number, hintHeight: number): void;
5449
+ protected _doLoad(loader: IReportLoader, src: any): void;
5450
+ protected _doSave(target: object): void;
5451
+ protected _isI18nFieldExist(): boolean;
5194
5452
  }
5195
5453
 
5196
- declare class SubBandPage extends ReportPage {
5197
- constructor(report: Report, name?: string);
5454
+ /**
5455
+ * html 속성으로 지정한 문자열을 dom의 innerHtml로 설정한다.
5456
+ * 문자열에 포함된 '${value}'나 '@{value}'는 연결된 field의 값으로 대체되고,
5457
+ * 나머지 '${xxx}', '@{xxx}'는 'xxx' 필드의 값으로 대체된다.
5458
+ */
5459
+ declare class HtmlItem extends ReportItem {
5460
+ static readonly ALLOWED_TAGS: string[];
5461
+ static readonly PROP_HTML = "html";
5462
+ static readonly PROPINFOS: IPropInfo[];
5463
+ static readonly STYLE_PROPS: string[];
5198
5464
  static readonly $_ctor: string;
5465
+ static readonly ITEM_TYPE = "Html";
5466
+ private _html;
5467
+ private _tokens;
5468
+ constructor(name: string);
5469
+ get html(): string;
5470
+ set html(value: string);
5471
+ getHtml(ctx: PrintContext): string;
5472
+ getSaveType(): string;
5199
5473
  get outlineLabel(): string;
5200
- protected _addSectionModel(): void;
5474
+ protected _doDefaultInit(loader: IReportLoader, parent: ReportGroupItem, hintWidth: number, hintHeight: number): void;
5475
+ protected _getEditProps(): IPropInfo[];
5476
+ protected _getStyleProps(): string[];
5477
+ protected _doLoad(loader: IReportLoader, src: any): void;
5478
+ protected _doSave(target: object): void;
5479
+ canRotate(): boolean;
5480
+ canAdoptDragSource(source: any): boolean;
5481
+ adoptDragSource(source: any): IDropResult;
5482
+ canPropAdoptDragSource(prop: IPropInfo, source: any): boolean;
5483
+ adoptPropDragSource(prop: IPropInfo, source: any): IDropResult;
5484
+ getRowContextValue(value: string, ctx: PrintContext): string | number;
5485
+ private $_getTokenValue;
5486
+ private $_parse;
5487
+ private $_parseValues;
5488
+ }
5489
+
5490
+ declare abstract class ChartObject<T extends ReportGroupItem> extends ReportItem {
5491
+ static readonly PROPINFOS: IPropInfo[];
5492
+ private _chart;
5493
+ constructor(chart: T, name?: string);
5494
+ get chart(): T;
5495
+ canHide(): boolean;
5496
+ getWrapper(): object;
5497
+ get page(): ReportPage;
5498
+ get report(): Report;
5499
+ get dataParent(): ReportGroupItem;
5500
+ get marqueeParent(): ReportItem;
5501
+ getSaveType(): string;
5502
+ protected _getEditProps(): IPropInfo[];
5503
+ protected _doLoad(loader: IReportLoader, src: any): void;
5504
+ protected _doSave(target: any): void;
5505
+ protected _isDefaultVisible(): boolean;
5506
+ protected _getPropsWrapper(target: any, excludes?: string[], names?: {
5507
+ [key: string]: string;
5508
+ }): any;
5509
+ }
5510
+ declare abstract class ChartTextObject<T extends ReportGroupItem> extends ChartObject<T> {
5511
+ static readonly PROP_TEXT = "text";
5512
+ static readonly PROPINFOS: IPropInfo[];
5513
+ private _text;
5514
+ constructor(chart: T);
5515
+ /** text */
5516
+ get text(): string;
5517
+ set text(value: string);
5518
+ protected _getEditProps(): IPropInfo[];
5519
+ protected _getStyleProps(): string[];
5201
5520
  protected _doLoad(loader: IReportLoader, src: any): void;
5521
+ protected _doSave(target: object): void;
5522
+ getWrapper(): object;
5523
+ }
5524
+ declare abstract class ChartSeries<T extends ReportGroupItem> extends ChartObject<T> {
5525
+ static readonly PROP_SERIES_ID = "id";
5526
+ static readonly PROP_DESIGN_VISIBLE = "designVisible";
5527
+ static readonly PROP_VALUE_FIELD = "valueField";
5528
+ static readonly PROP_VALUES = "values";
5529
+ static readonly PROPINFOS: IPropInfo[];
5530
+ private _id;
5531
+ private _designVisible;
5532
+ private _valueField;
5533
+ private _values;
5534
+ constructor(chart: T);
5535
+ getPropDomain(prop: IPropInfo): any[];
5536
+ abstract get seriesType(): string;
5537
+ /**
5538
+ * id
5539
+ */
5540
+ get id(): string;
5541
+ set id(value: string);
5542
+ /**
5543
+ * design visible
5544
+ */
5545
+ get designVisible(): boolean;
5546
+ set designVisible(value: boolean);
5547
+ /**
5548
+ * valueField
5549
+ **/
5550
+ get valueField(): string;
5551
+ set valueField(value: string);
5552
+ /**
5553
+ * valueField가 지정되면 이 속성은 무시된다.
5554
+ */
5555
+ get values(): number[];
5556
+ set values(value: number[]);
5557
+ hasValuesProp(): boolean;
5558
+ getValues(ctx: PrintContext, dp: IReportDataProvider): any[];
5559
+ getSaveType(): string;
5560
+ get displayPath(): string;
5561
+ get outlineLabel(): string;
5562
+ protected _getEditProps(): IPropInfo[];
5563
+ protected _doLoad(loader: IReportLoader, src: any): void;
5564
+ protected _doSave(target: object): void;
5565
+ }
5566
+ declare abstract class ChartSeriesCollection<T extends ReportGroupItem> extends ReportItemCollection<ChartSeries<T>> {
5567
+ private _chart;
5568
+ protected _series: ChartSeries<T>[];
5569
+ constructor(chart?: T);
5570
+ get outlineParent(): IOutlineSource;
5571
+ get outlineLabel(): string;
5572
+ get outlineExpandable(): boolean;
5573
+ get outlineItems(): IOutlineSource[];
5574
+ get owner(): ReportItem;
5575
+ /** chart */
5576
+ get chart(): T;
5577
+ /** count */
5578
+ get count(): number;
5579
+ get items(): ReportPageItem[];
5580
+ get visibleCount(): number;
5581
+ load(loader: IReportLoader, src: any): void;
5582
+ save(target: any): void;
5583
+ get(index: number): ChartSeries<T>;
5584
+ indexOf(series: ChartSeries<T>): number;
5585
+ add(loader: IReportLoader, series: ChartSeries<T> | ConfigObject$1, index?: number): ChartSeries<T>;
5586
+ addAll(loader: IReportLoader, series: (ChartSeries<T> | ConfigObject$1)[], index?: number): boolean;
5587
+ removeAt(index: number): boolean;
5588
+ remove(series: ChartSeries<T>): boolean;
5589
+ clear(): boolean;
5590
+ select(series: ChartSeries<T>): void;
5591
+ getSaveType(): string;
5592
+ get page(): ReportPage;
5593
+ get displayPath(): string;
5594
+ get level(): number;
5595
+ isAncestorOf(item: ReportPageItem): boolean;
5596
+ protected abstract _createSeries(loader: IReportLoader, src: any): ChartSeries<T>;
5597
+ protected abstract _seriesChanged(series: ChartSeries<T>): void;
5598
+ private $_add;
5599
+ private $_invalidateSeries;
5600
+ private $_seriesChanged;
5601
+ protected _doMoveItem(from: number, to: number): boolean;
5602
+ }
5603
+
5604
+ declare const I_EMAIL_ITEM_DSCIRIMINATOR: "I_EMAIL_ITEM";
5605
+ interface IEmailItem extends ReportItem {
5606
+ discriminator: typeof I_EMAIL_ITEM_DSCIRIMINATOR;
5607
+ }
5608
+
5609
+ declare class EmailFooterItems extends ColumnBoxContainer implements IEmailItem {
5610
+ static readonly PROPINFOS: IPropInfo[];
5611
+ static readonly INHERITED_PROPINFO_NAMES: string[];
5612
+ static readonly STYLE_PROPS: string[];
5613
+ static readonly INHERITED_STYLE_PROPS: string[];
5614
+ static readonly $_ctor: string;
5615
+ private _itemsHorizontalAlign;
5616
+ discriminator: "I_EMAIL_ITEM";
5617
+ constructor(name: string);
5618
+ get itemsHorizontalAlign(): Align;
5619
+ set itemsHorizontalAlign(value: Align);
5620
+ get outlineLabel(): string;
5621
+ get outlineParent(): IOutlineSource;
5622
+ canResize(dir: ResizeDirection): boolean;
5623
+ canMove(): boolean;
5624
+ protected _boundable(): boolean;
5625
+ protected _getEditProps(): IPropInfo[];
5626
+ protected _getStyleProps(): string[];
5627
+ protected _doDefaultInit(loader: IReportLoader, parent: ReportGroupItem, hintWidth: number, hintHeight: number): void;
5628
+ protected _doAfterLoad(loader: IReportLoader, src: any): void;
5629
+ protected _doAfterSave(target: object): void;
5630
+ protected _doItemAdded(item: ReportItem, index: number): void;
5631
+ }
5632
+
5633
+ declare class EmailFooter extends ReportFooter implements IEmailItem {
5634
+ static readonly $_ctor: string;
5635
+ private _footerItems;
5636
+ discriminator: "I_EMAIL_ITEM";
5637
+ constructor();
5638
+ get footerItems(): ReportItem[];
5639
+ get itemsContainer(): EmailFooterItems;
5640
+ get itemsAlign(): BoxItemsAlign;
5641
+ get outlineLabel(): string;
5642
+ get pathLabel(): string;
5643
+ canResize(dir: ResizeDirection): boolean;
5202
5644
  protected _ignoreItems(): boolean;
5645
+ protected _getEditProps(): IPropInfo[];
5646
+ protected _getStyleProps(): string[];
5647
+ protected _doLoad(loader: IReportLoader, src: any): void;
5648
+ protected _doSave(target: object): void;
5649
+ }
5650
+
5651
+ declare class EmailPage extends ReportPage implements IEmailItem {
5652
+ static readonly PROPINFOS: IPropInfo[];
5653
+ static readonly INHERITED_PROPINFO_NAMES: string[];
5654
+ static readonly STYLE_PROPS: string[];
5655
+ static readonly INHERITED_STYLE_PROPS: string[];
5656
+ static readonly $_ctor: string;
5657
+ discriminator: "I_EMAIL_ITEM";
5658
+ constructor(report: Report);
5659
+ get emailFooter(): EmailFooter;
5660
+ get outlineItems(): IOutlineSource[];
5661
+ protected _createPageBody(): PageBody;
5662
+ protected _createReportFooter(): ReportFooter;
5663
+ protected _getReportFooterSourceFieldName(): string;
5664
+ getPropDomain(prop: IPropInfo): any[];
5665
+ getEditProps(): IPropInfo[];
5666
+ protected _getStyleProps(): string[];
5667
+ protected _doAfterLoad(loader: IReportLoader, src: any): void;
5203
5668
  protected _doSave(target: object): void;
5204
5669
  }
5205
5670
 
5671
+ declare class EmailPageBody extends PageBody implements IEmailItem {
5672
+ static readonly PROPINFOS: IPropInfo[];
5673
+ static readonly INHERITED_PROPINFO_NAMES: string[];
5674
+ static readonly STYLE_PROPS: string[];
5675
+ static readonly INHERITED_STYLE_PROPS: string[];
5676
+ static readonly $_ctor: string;
5677
+ discriminator: "I_EMAIL_ITEM";
5678
+ constructor();
5679
+ protected _createPageBodyItems(): PageBodyItems;
5680
+ protected _getEditProps(): IPropInfo[];
5681
+ protected _getStyleProps(): string[];
5682
+ protected _doLoad(loader: IReportLoader, src: any): void;
5683
+ protected _doSave(target: object): void;
5684
+ }
5685
+
5686
+ declare class EmailRootItem extends ReportRootItem {
5687
+ static readonly PROP_WIDTH = "width";
5688
+ static readonly PROPINFOS: IPropInfo[];
5689
+ static readonly INHERITED_PROPINFO_NAMES: string[];
5690
+ static readonly $_ctor: string;
5691
+ constructor(email: Email);
5692
+ get width(): ValueString;
5693
+ set width(value: ValueString);
5694
+ get outlineLabel(): string;
5695
+ getEditProps(): IPropInfo[];
5696
+ protected _doLoad(loader: IReportLoader, src: any): void;
5697
+ protected _doSave(target: object): void;
5698
+ private $_checkReportType;
5699
+ }
5700
+ declare class Email extends Report {
5701
+ get root(): EmailRootItem;
5702
+ get page(): EmailPage;
5703
+ get body(): EmailPageBody;
5704
+ protected _createReportRootItem(report: Report): ReportRootItem;
5705
+ protected _createReportInfo(report: Report): ReportInfo;
5706
+ protected _createReportLoader(): IReportLoader;
5707
+ protected _createReportPage(report: Report): ReportPage;
5708
+ }
5709
+
5710
+ declare class TableBandGroupSectionElement<T extends TableBandRowGroupSection> extends TableElement<T> {
5711
+ constructor(doc: Document, model: T, name: string);
5712
+ applyGroupStyles(tr: HTMLTableRowElement): void;
5713
+ protected _needDesignBox(): boolean;
5714
+ protected _createCellElement(doc: Document, cell: TableCellItem): TableCellElementBase;
5715
+ protected _doMeasure(ctx: PrintContext, dom: HTMLElement, hintWidth: number, hintHeight: number): Size$1;
5716
+ protected _doAfterMeasure(ctx: PrintContext, dom: HTMLElement, hintWidth: number, hintHeight: number, sz: Size$1): void;
5717
+ }
5718
+ interface ITableGroupPrintInfo extends IGroupPrintInfo {
5719
+ view: TableBandGroupSectionElement<TableBandRowGroupHeader | TableBandRowGroupFooter>;
5720
+ needNextPage: boolean;
5721
+ }
5722
+ type TableBandPrintRow = BandPrintRow | ITableGroupPrintInfo;
5723
+
5206
5724
  type LanguageCode = keyof typeof ISO_639_LANGUAGES;
5207
5725
  declare const ISO_639_LANGUAGES: {
5208
5726
  readonly aa: "Afar";
@@ -5535,6 +6053,319 @@ declare class I18nManager extends EventAware$1 {
5535
6053
  private $_fireDefaultLanguageChanged;
5536
6054
  }
5537
6055
 
6056
+ interface EditableItem {
6057
+ reportItemElement: ReportItemView;
6058
+ targetElement: HTMLElement;
6059
+ markerElement: HTMLElement;
6060
+ oldValue: string;
6061
+ newValue: string;
6062
+ }
6063
+ type EditableItemInfo = {
6064
+ name: string;
6065
+ oldValue: string;
6066
+ newValue: string;
6067
+ };
6068
+ /**
6069
+ * 리얼리포트 출력후에도 내용 수정이 가능한 아이템들의 정보를 저장하고 관리한다.
6070
+ */
6071
+ declare class PrintEditableItemManager extends Base$1 {
6072
+ private _editableItems;
6073
+ constructor();
6074
+ addEditableItem(itemView: ReportItemView, targetElement: HTMLElement, markerElement: HTMLElement): void;
6075
+ updateEditableItem(markerElement: HTMLElement, newValue: string): void;
6076
+ getEditableItems(): EditableItemInfo[];
6077
+ nextItem(currentElement: HTMLElement): EditableItem | undefined;
6078
+ prevItem(currentElement: HTMLElement): EditableItem | undefined;
6079
+ private $_getMarkerElementIndex;
6080
+ }
6081
+
6082
+ interface IPrintReport {
6083
+ report: Report;
6084
+ data: IReportDataProvider;
6085
+ }
6086
+ interface IPreviewOptions {
6087
+ debug?: boolean;
6088
+ async?: boolean;
6089
+ pageMark?: boolean;
6090
+ optimize?: boolean;
6091
+ pageDelay?: number;
6092
+ noScroll?: boolean;
6093
+ noIndicator?: boolean;
6094
+ singlePage?: boolean;
6095
+ singlePageOptions?: ISinglePageOptions;
6096
+ align?: Align;
6097
+ paging?: boolean;
6098
+ language?: string;
6099
+ editable?: boolean;
6100
+ callback?: PrintPageCallback;
6101
+ endCallback?: PrintEndCallback;
6102
+ }
6103
+ interface IPrintOptions {
6104
+ report: Report | (Report | IPrintReport)[];
6105
+ data: IReportDataProvider;
6106
+ preview?: boolean;
6107
+ id?: string;
6108
+ previewOptions?: IPreviewOptions;
6109
+ }
6110
+ interface ISinglePageOptions {
6111
+ border: boolean;
6112
+ }
6113
+ declare class PrintContainer extends VisualContainer$1 {
6114
+ static readonly CLASS_NAME = "rr-report-container";
6115
+ static readonly PREVIEW_CLASS = "rr-report-preview";
6116
+ static readonly PRINT_SIZE = "--rr-print-size";
6117
+ private static readonly MARKER_CLASS;
6118
+ private static readonly PRINT_INDICATOR_CLASS;
6119
+ private static readonly PRINT_BACK_CLASS;
6120
+ static readonly SCROLL_END = "onScrollEnd";
6121
+ static setMarkerElementsVisible(pages: PrintPage[], visible: boolean): void;
6122
+ private _pageGap;
6123
+ private _zoom;
6124
+ private _align;
6125
+ private _styles;
6126
+ traceMode: boolean;
6127
+ onZoomed: (scale: number) => void;
6128
+ private _context;
6129
+ private _errorView;
6130
+ private _indicator;
6131
+ private _reportView;
6132
+ private _reportViews;
6133
+ private _contexts;
6134
+ private _pages;
6135
+ private _preview;
6136
+ private _previewId;
6137
+ private _options;
6138
+ private _printMode;
6139
+ private _pageToGo?;
6140
+ private _printEditLayer;
6141
+ private _printEditableItemManager;
6142
+ constructor(containerId: string | HTMLDivElement);
6143
+ protected _doDispose(): void;
6144
+ /** pageCount */
6145
+ get pageCount(): number;
6146
+ /** page */
6147
+ get page(): number;
6148
+ set page(value: number);
6149
+ /** zoom */
6150
+ get zoom(): number;
6151
+ set zoom(value: number);
6152
+ get pages(): PrintPage[];
6153
+ get isPrinted(): boolean;
6154
+ get align(): Align;
6155
+ set align(value: Align);
6156
+ /**
6157
+ * Report 에서 사용
6158
+ */
6159
+ get ReportItemRegistry(): ReportItemRegistry;
6160
+ /**
6161
+ * Composite Report 에서 사용
6162
+ */
6163
+ get ReportItemRegistries(): ReportItemRegistry[];
6164
+ /**
6165
+ * printEditableItemManager
6166
+ */
6167
+ get printEditableItemManager(): PrintEditableItemManager;
6168
+ print(options: IPrintOptions): void;
6169
+ printSingle(options: IPrintOptions): void;
6170
+ printAll(options: IPrintOptions): void;
6171
+ private $_printAll;
6172
+ getPrintHtml(): string;
6173
+ /** page */
6174
+ getCurrentPage(scrollHeight: number, scrollTop: number): number;
6175
+ loadAsyncLoadableElements(): Promise<void>;
6176
+ setStyles(styles: any): void;
6177
+ fitToWidth(): void;
6178
+ fitToHeight(): void;
6179
+ fitToPage(): void;
6180
+ /**
6181
+ * Multi 리포트이면서 가로로 시작하는 양식은 따로 설정이 필요함
6182
+ * @returns 멀티 페이지이면서 첫번째 페이지가 가로양식으로 시작할 경우
6183
+ */
6184
+ needPrintScale(): boolean;
6185
+ /**
6186
+ * containerDiv의 크기에 맞춰 previewer의 위치를 재조정한다.
6187
+ */
6188
+ resetPreviewer(): void;
6189
+ get printing(): boolean;
6190
+ protected _doPrepareContainer(doc: Document, dom: HTMLElement): void;
6191
+ protected _render(timestamp: number): void;
6192
+ protected _doResized(): void;
6193
+ private $_showError;
6194
+ private $_createIndicator;
6195
+ private $_refreshContextValues;
6196
+ private $_replacePages;
6197
+ private $_refreshHtmlItemValue;
6198
+ private $_printReport;
6199
+ private $_printPageless;
6200
+ private $_getContainer;
6201
+ private $_getPreviewer;
6202
+ private $_getPageHeight;
6203
+ private $_getPrintBack;
6204
+ private $_removeBackContainer;
6205
+ private $_resetPreviewer;
6206
+ private $_buildOutput;
6207
+ private $_buildNoPagingOutput;
6208
+ private $_setFrontBackLayer;
6209
+ /**
6210
+ * 서브 밴드 페이지들은 다른 페이지들에 연결해서 사용되기 때문에 우선적으로 뷰를 준비한다.
6211
+ */
6212
+ private $_prepareSubPageViews;
6213
+ /**
6214
+ * unitpost 한장 요약 HTML 요청으로 singlePage 별도 메서드로 분리
6215
+ */
6216
+ private $_prepareSinglePage;
6217
+ private $_setSinglePage;
6218
+ private $_setSinglePageStyles;
6219
+ private $_isReportFooter;
6220
+ private $_setPrintMode;
6221
+ private $_getScaleSize;
6222
+ /**
6223
+ * 각 인쇄 영역 Container Style 설정
6224
+ */
6225
+ private $_setPageContainerStyle;
6226
+ private $_setLandscapePageStyle;
6227
+ private $_setPrintScaleStyle;
6228
+ private $_setUnvisibleDom;
6229
+ private $_layoutFloatings;
6230
+ private $_setLanguageContext;
6231
+ /**
6232
+ * 출력 옵션 검증
6233
+ * @throws 출력 옵션이 유효하지 않을 경우 에러 발생
6234
+ */
6235
+ private $_validatePrintOptions;
6236
+ private $_validateReportOption;
6237
+ private $_createReportView;
6238
+ private $_instanceofIPrintReport;
6239
+ private $_addContainerEventListener;
6240
+ /**
6241
+ * 한 페이지당 수정가능한 아이템 정보를 찾아서 정보를 최신화 시킨다.
6242
+ */
6243
+ private $_addEditableItems;
6244
+ protected _fireScrollEnd: () => void;
6245
+ }
6246
+
6247
+ interface PdfFont {
6248
+ name: string;
6249
+ content: string;
6250
+ file?: string;
6251
+ style?: 'normal' | 'italic';
6252
+ weight?: 'normal' | 'bold';
6253
+ }
6254
+ interface PdfPermissions {
6255
+ printing?: 'lowResolution' | 'highResolution';
6256
+ modifying?: boolean;
6257
+ copying?: boolean;
6258
+ annotating?: boolean;
6259
+ fillingForms?: boolean;
6260
+ contentAccessibility?: boolean;
6261
+ documentAssembly?: boolean;
6262
+ }
6263
+
6264
+ declare enum CCITTScheme {
6265
+ GROUP_3 = "g3",
6266
+ GROUP_3_2D = "g3-2d",
6267
+ GROUP_4 = "g4"
6268
+ }
6269
+
6270
+ interface ITiffOptions {
6271
+ dpi?: number;
6272
+ grayscale?: boolean;
6273
+ encoding?: CCITTScheme;
6274
+ }
6275
+
6276
+ interface ImageExportOptions {
6277
+ type?: 'png' | 'jpeg' | 'jpg' | 'gif' | 'tif' | 'tiff';
6278
+ fileName?: string;
6279
+ zipName?: string;
6280
+ tiff?: ITiffOptions;
6281
+ }
6282
+
6283
+ type FontSource = {
6284
+ name: string;
6285
+ source: string;
6286
+ fontWeight: FontWeight;
6287
+ format: FontFormat;
6288
+ };
6289
+ type UserFontSource = {
6290
+ name: string;
6291
+ source: string;
6292
+ fontWeight: FontWeight;
6293
+ };
6294
+ type FontWeight = 'normal' | 'bold';
6295
+ type FontFormat = 'truetype' | 'opentype' | 'woff';
6296
+ /**
6297
+ * FontManager 폰트 관련 리소스 관리
6298
+ * 폰트 관련 리소스를 base64로 보관하고 가져다 사용할 수 있도록 작성
6299
+ */
6300
+ declare class FontManager extends EventAware$1 {
6301
+ static readonly FONT_ADDED = "onFontManagerFontAdded";
6302
+ static readonly FONT_REMOVED = "onFontManagerFontRemoved";
6303
+ private _fontSources;
6304
+ constructor();
6305
+ protected _doDispose(): void;
6306
+ get fonts(): FontSource[];
6307
+ get fontNames(): string[];
6308
+ registerFonts(fontSources?: UserFontSource[]): Promise<void>;
6309
+ getFonts(name: string, weight?: FontWeight): FontSource[];
6310
+ getFontsByWeight(weight: FontWeight): FontSource[];
6311
+ private $_convertFontWeight;
6312
+ private $_convertFontType;
6313
+ private $_fireFontAdded;
6314
+ private $_fireFontRemoved;
6315
+ }
6316
+
6317
+ /**
6318
+ * Report Item들에 대한 정보를 한곳에 모아서 등록해놓고 용이하게 꺼내쓰기 위해 작성
6319
+ */
6320
+ declare class ReportItemRegistry extends Base$1 {
6321
+ private readonly _masterBandItemTypes;
6322
+ private _reportItemFlatMap;
6323
+ constructor();
6324
+ add(item: ReportItem): void;
6325
+ remove(item: ReportItem | ReportPageItem): void;
6326
+ getItems(type?: ReportItemType): ReportItem[];
6327
+ getItemCount(type: ReportItemType): number;
6328
+ /**
6329
+ * 가장 최상위에 있는 밴드의 이름들을 반환해주기 위해 작성
6330
+ * @returns 가장 최상위 위치에 있는 밴드의 이름들을 모아서 반환
6331
+ */
6332
+ getRootBandItemNames(): string[];
6333
+ getSubBandsByMasterName(masterName: string): DataBand[];
6334
+ getItemType(item: ReportItem): ReportItemType | undefined;
6335
+ private $_removeChildItems;
6336
+ }
6337
+
6338
+ declare class SubBandPage extends ReportPage {
6339
+ constructor(report: Report, name?: string);
6340
+ static readonly $_ctor: string;
6341
+ get outlineLabel(): string;
6342
+ protected _addSectionModel(): void;
6343
+ protected _doLoad(loader: IReportLoader, src: any): void;
6344
+ protected _ignoreItems(): boolean;
6345
+ protected _doSave(target: object): void;
6346
+ }
6347
+
6348
+ /**
6349
+ * 리포트 최상단에서 편집가능 객체 속성 구현
6350
+ */
6351
+ declare class ReportEditableObject<T extends ReportItem> extends ReportItemObject<T> {
6352
+ static readonly PROP_EDITABLE = "editable";
6353
+ static readonly PROP_TYPE = "type";
6354
+ static readonly PROPINFOS: IPropInfo[];
6355
+ private _editable;
6356
+ get editable(): boolean;
6357
+ set editable(value: boolean);
6358
+ get pathLabel(): string;
6359
+ get displayPath(): string;
6360
+ get level(): number;
6361
+ constructor(item: T);
6362
+ getSaveLabel(): string;
6363
+ protected _doLoad(loader: IReportLoader, source: ReportSource): void;
6364
+ protected _doSave(target: ReportTarget): void;
6365
+ getEditProps(): IPropInfo[];
6366
+ getPropDomain(prop: IPropInfo): any[];
6367
+ }
6368
+
5538
6369
  declare enum PaperSize {
5539
6370
  A0 = "A0",
5540
6371
  A1 = "A1",
@@ -5645,11 +6476,13 @@ declare class ReportRootItem extends ReportGroupItem {
5645
6476
  static readonly PROP_MARGIN_RIGHT = "marginRight";
5646
6477
  static readonly PROP_MARGIN_TOP = "marginTop";
5647
6478
  static readonly PROP_MARGIN_BOTTOM = "marginBottom";
6479
+ static readonly PROP_EDITING = "editing";
5648
6480
  static readonly PROPINFOS: IPropInfo[];
5649
6481
  static readonly $_ctor: string;
5650
6482
  private _report;
5651
6483
  private _type;
5652
6484
  private _maxPageCount;
6485
+ private _editing;
5653
6486
  constructor(report: Report, name?: string);
5654
6487
  get report(): Report;
5655
6488
  /** type */
@@ -5697,6 +6530,8 @@ declare class ReportRootItem extends ReportGroupItem {
5697
6530
  /** marginBottom */
5698
6531
  get marginBottom(): ValueString;
5699
6532
  set marginBottom(value: ValueString);
6533
+ /** editing */
6534
+ get editing(): ReportEditableObject<ReportRootItem>;
5700
6535
  get outlineLabel(): string;
5701
6536
  get pathLabel(): string;
5702
6537
  get displayPath(): string;
@@ -5748,6 +6583,7 @@ declare class Report extends EventAware$1 implements IEditCommandStackOwner, IPr
5748
6583
  private _data;
5749
6584
  private _designData;
5750
6585
  private _i18n;
6586
+ private _fontManager;
5751
6587
  designTag: any;
5752
6588
  models: Record<number, ReportItem>;
5753
6589
  private _designTime;
@@ -5799,6 +6635,13 @@ declare class Report extends EventAware$1 implements IEditCommandStackOwner, IPr
5799
6635
  get designData(): DesignDataManager;
5800
6636
  /** i18n */
5801
6637
  get i18n(): I18nManager;
6638
+ /** fontManager */
6639
+ get fontManager(): FontManager;
6640
+ /**
6641
+ * Setter Injection인 이유는 리소스는 외부에서 한번만 생성후에 관리한다.
6642
+ * 새로운 리포트 모델을 생성할 때 폰트관련 리소스는 외부 정보이므로 주입받아서 사용하자.
6643
+ */
6644
+ set fontManager(fontManager: FontManager);
5802
6645
  /** canUndo */
5803
6646
  get canUndo(): boolean;
5804
6647
  /** canRedo */
@@ -5807,6 +6650,8 @@ declare class Report extends EventAware$1 implements IEditCommandStackOwner, IPr
5807
6650
  get dirty(): boolean;
5808
6651
  /** reportItemRegistry */
5809
6652
  get reportItemRegistry(): ReportItemRegistry;
6653
+ /** editing */
6654
+ get editing(): ReportEditableObject<ReportRootItem>;
5810
6655
  load(src: any): Report;
5811
6656
  setSaveTagging(tag: string): Report;
5812
6657
  save(pageOnly?: boolean): object;
@@ -6534,6 +7379,8 @@ declare class PageBodyElement extends ReportElement {
6534
7379
 
6535
7380
  /** @internal */
6536
7381
  declare class PageItemContainerElement extends BoundedContainerElement<PageItemContainer> {
7382
+ static readonly FRONT_CONTAINER_CLASS = "rr-front-container";
7383
+ static readonly BACK_CONTAINER_CLASS = "rr-back-container";
6537
7384
  private _emptySize;
6538
7385
  private _findable;
6539
7386
  constructor(doc: Document, model: PageItemContainer, name: string, emptySize?: boolean);
@@ -6743,188 +7590,12 @@ declare class ReportView extends LayerElement$1 implements IImageContainer {
6743
7590
  protected onReportCommandStackChanged(report: Report, cmd: EditCommand$1): void;
6744
7591
  }
6745
7592
 
6746
- /**
6747
- * 다국어 관련 속성 구현
6748
- */
6749
- declare class I18nObject<T extends ReportItem> extends ReportPageItem implements ReportObject {
6750
- static readonly PROP_FIELD = "field";
6751
- static readonly PROPINFOS: IPropInfo[];
6752
- private _item;
6753
- private _field;
6754
- get field(): string;
6755
- set field(value: string);
6756
- get page(): ReportPage;
6757
- get report(): Report;
6758
- get pathLabel(): string;
6759
- get displayPath(): string;
6760
- get level(): number;
6761
- get styles(): Styles;
6762
- constructor(item: T);
6763
- get outlineParent(): IOutlineSource | undefined;
6764
- get outlineExpandable(): boolean;
6765
- get outlineLabel(): string;
6766
- getSaveType(): string;
6767
- canRemoveFrom(): boolean;
6768
- getSaveLabel(): string;
6769
- load(loader: IReportLoader, source: ReportSource): void;
6770
- save(target: ReportTarget): boolean;
6771
- defaultInit(): void;
6772
- isCollection(): boolean;
6773
- getEditProps(): IPropInfo[];
6774
- getStyleProps(): IPropInfo[];
6775
- getSubStyleProps(prop: string): IPropInfo[];
6776
- getPlaceHolder(prop: IPropInfo): string;
6777
- getPropDomain(prop: IPropInfo): any[];
6778
- setItemsProperty(sources: IPropertySource[], prop: string, value: any): void;
6779
- getStyle(style: string): string;
6780
- setStyle(style: string, value: string): void;
6781
- getStyleProperty(prop: string): any;
6782
- setStyleProperty(prop: string, value: any): void;
6783
- isChildProp(prop: string): boolean;
6784
- getSubStyleProperty(prop: string, style: string): any;
6785
- setSubStyleProperty(prop: string, style: string, value: any): void;
6786
- setItemsSubStyleProperty(sources: IPropertySource[], prop: string, style: string, value: any): void;
6787
- canPropAdoptDragSource(prop: IPropInfo, source: any): boolean;
6788
- adoptPropDragSource(prop: IPropInfo, source: any): IDropResult;
6789
- protected _changed(prop: string, newValue: unknown, oldValue: unknown): void;
6790
- }
6791
-
6792
- /**
6793
- * 한 줄 혹은 여러줄의 텍스트를 표시한다.
6794
- * value 속성으로 지정된 data 위치가 타당하면 그 값을, 아니면 text 속성으로 지정한 문자열을 표시한다.
6795
- */
6796
- declare abstract class TextItemBase extends ReportItem {
6797
- static readonly PROP_WRAP = "wrap";
6798
- static readonly PROP_MULTI_LINE = "multiLine";
6799
- static readonly PROP_BOOLEAN_FORMAT = "booleanFormat";
6800
- static readonly PROP_NUMBER_FORMAT = "numberFormat";
6801
- static readonly PROP_DATE_FORMAT = "dateFormat";
6802
- static readonly PROP_TEXT_FORMAT = "textFormat";
6803
- static readonly PROP_TEXT_PREFIX = "prefix";
6804
- static readonly PROP_TEXT_SUFFIX = "suffix";
6805
- static readonly PROPINFOS: IPropInfo[];
6806
- static readonly STYLE_PROPS: string[];
6807
- private _wrap;
6808
- private _multiLine;
6809
- private _booleanFormat;
6810
- private _numberFormat;
6811
- private _dateFormat;
6812
- private _textFormat;
6813
- private _prefix;
6814
- private _suffix;
6815
- constructor(name: string);
6816
- /**
6817
- * wrap
6818
- */
6819
- get wrap(): boolean;
6820
- set wrap(value: boolean);
6821
- /**
6822
- * multiLine
6823
- * true면 '<br>'이나 '\n', '\r\n'으로 줄을 나눠 표시한다.
6824
- */
6825
- get multiLine(): boolean;
6826
- set multiLine(value: boolean);
6827
- /**
6828
- * booleanFormat
6829
- */
6830
- get booleanFormat(): string;
6831
- set booleanFormat(value: string);
6832
- /**
6833
- * numberFormat
6834
- */
6835
- get numberFormat(): string;
6836
- set numberFormat(value: string);
6837
- /**
6838
- * dateFormat
6839
- */
6840
- get dateFormat(): string;
6841
- set dateFormat(value: string);
6842
- /**
6843
- * 세미콜론(;)으로 구분하여 왼쪽에는 String.prototype.replace의 첫 번째 매개변수,
6844
- * 오른쪽에는 두 번째 매개변수와 같은 타입으로 지정
6845
- * 예) Mr. 홍길동: `'([A-Za-z]*); Mr\. \$1'`,
6846
- * 예) 사업자번호: '(\\d{3})(\\d{2})(\\d{5});$1-$2-$3'
6847
- */
6848
- get textFormat(): string;
6849
- set textFormat(value: string);
6850
- /**
6851
- * 접두어.
6852
- * expression을 이용해서 표현할 수도 있지만,
6853
- * 이 속성으로 설정하면 text와 다른 스타일을 적용할 수 있다.
6854
- */
6855
- get prefix(): string;
6856
- set prefix(value: string);
6857
- /**
6858
- * 접미어.
6859
- * expression을 이용해서 표현할 수도 있지만,
6860
- * 이 속성으로 설정하면 text와 다른 스타일을 적용할 수 있다.
6861
- */
6862
- get suffix(): string;
6863
- set suffix(value: string);
6864
- protected _getEditProps(): IPropInfo[];
6865
- protected _getStyleProps(): string[];
6866
- protected _doLoad(loader: IReportLoader, src: any): void;
6867
- protected _doSave(target: object): void;
6868
- protected _doApplyStyle(prop: string, value: string, target: CSSStyleDeclaration): boolean;
6869
- canRotate(): boolean;
6870
- canLink(): boolean;
6871
- canAdoptDragSource(source: any): boolean;
6872
- adoptDragSource(source: any): IDropResult;
6873
- canPropAdoptDragSource(prop: IPropInfo, source: any): boolean;
6874
- adoptPropDragSource(prop: IPropInfo, source: any): IDropResult;
6875
- getPrintValue(dp: IReportDataProvider, row: number): any;
6876
- }
6877
- /**
6878
- * 고정된 텍스트나 데이터 필드의 값을 출력하는 아이템.
6879
- */
6880
- declare class TextItem extends TextItemBase {
6881
- static readonly PROP_MULTI_LINE = "multiLine";
6882
- static readonly PROP_TEXT = "text";
6883
- static readonly PROP_ON_GET_CONTEXT_VALUE = "onGetContextValue";
6884
- static readonly PROP_I18N = "internationalization";
6885
- static readonly PROPINFOS: IPropInfo[];
6886
- static readonly $_ctor: string;
6887
- static readonly ITEM_TYPE = "Text";
6888
- private _text;
6889
- private _i18nObject;
6890
- private _contextValueCallback;
6891
- private _onGetContextValue;
6892
- private _contextValueCallbackFunc;
6893
- private _contextValueCallbackDelegate;
6894
- constructor(name: string, text?: string);
6895
- /**
6896
- * text
6897
- */
6898
- get text(): string;
6899
- set text(value: string);
6900
- get internationalization(): I18nObject<TextItem>;
6901
- /**
6902
- * onGetContextValue
6903
- */
6904
- get onGetContextValue(): string;
6905
- set onGetContextValue(value: string);
6906
- /**
6907
- * contextValueCallback
6908
- */
6909
- get contextValueCallback(): ContextValueCallback;
6910
- set contextValueCallback(value: ContextValueCallback);
6911
- getSaveType(): string;
6912
- get outlineLabel(): string;
6913
- get designText(): string;
6914
- get pathLabel(): string;
6915
- isContextValue(): boolean;
6916
- protected _getEditProps(): IPropInfo[];
6917
- protected _doDefaultInit(loader: IReportLoader, parent: ReportGroupItem, hintWidth: number, hintHeight: number): void;
6918
- protected _doLoad(loader: IReportLoader, src: any): void;
6919
- protected _doSave(target: object): void;
6920
- protected _isI18nFieldExist(): boolean;
6921
- }
6922
-
6923
7593
  /** @internal */
6924
7594
  declare abstract class TextItemElementBase<T extends TextItemBase> extends ReportItemElement<T> {
6925
7595
  static readonly CLASS_NAME = "rr-text";
6926
7596
  static readonly CLASS_LIST: string;
6927
7597
  static readonly SPAN = "_rr_span_";
7598
+ get span(): HTMLSpanElement;
6928
7599
  private _span;
6929
7600
  protected _text: string;
6930
7601
  constructor(doc: Document, model: T, name: string);
@@ -6941,42 +7612,6 @@ declare abstract class TextItemElementBase<T extends TextItemBase> extends Repor
6941
7612
  protected abstract _getDesignText2(m: T, system: boolean): string;
6942
7613
  }
6943
7614
 
6944
- /**
6945
- * html 속성으로 지정한 문자열을 dom의 innerHtml로 설정한다.
6946
- * 문자열에 포함된 '${value}'나 '@{value}'는 연결된 field의 값으로 대체되고,
6947
- * 나머지 '${xxx}', '@{xxx}'는 'xxx' 필드의 값으로 대체된다.
6948
- */
6949
- declare class HtmlItem extends ReportItem {
6950
- static readonly ALLOWED_TAGS: string[];
6951
- static readonly PROP_HTML = "html";
6952
- static readonly PROPINFOS: IPropInfo[];
6953
- static readonly STYLE_PROPS: string[];
6954
- static readonly $_ctor: string;
6955
- static readonly ITEM_TYPE = "Html";
6956
- private _html;
6957
- private _tokens;
6958
- constructor(name: string);
6959
- get html(): string;
6960
- set html(value: string);
6961
- getHtml(ctx: PrintContext): string;
6962
- getSaveType(): string;
6963
- get outlineLabel(): string;
6964
- protected _doDefaultInit(loader: IReportLoader, parent: ReportGroupItem, hintWidth: number, hintHeight: number): void;
6965
- protected _getEditProps(): IPropInfo[];
6966
- protected _getStyleProps(): string[];
6967
- protected _doLoad(loader: IReportLoader, src: any): void;
6968
- protected _doSave(target: object): void;
6969
- canRotate(): boolean;
6970
- canAdoptDragSource(source: any): boolean;
6971
- adoptDragSource(source: any): IDropResult;
6972
- canPropAdoptDragSource(prop: IPropInfo, source: any): boolean;
6973
- adoptPropDragSource(prop: IPropInfo, source: any): IDropResult;
6974
- getRowContextValue(value: string, ctx: PrintContext): string | number;
6975
- private $_getTokenValue;
6976
- private $_parse;
6977
- private $_parseValues;
6978
- }
6979
-
6980
7615
  /** @internal */
6981
7616
  declare class HtmlItemElement extends ReportItemElement<HtmlItem> {
6982
7617
  private _content;
@@ -7004,24 +7639,11 @@ declare class ReportItemElementMap extends Base$1 {
7004
7639
  private _reportItemElements;
7005
7640
  constructor();
7006
7641
  add<T extends ReportItem>(itemElement: ReportItemElement<T>): void;
7007
- getItemElementByModel<T extends ReportItem>(model: ReportItem): ReportItemElement<T> | undefined;
7642
+ getItemElements(): ReportItemElement<ReportItem>[];
7643
+ getItemElementByModelHash<T extends ReportItem>(hash: string): ReportItemElement<T> | undefined;
7008
7644
  getBandElementByModel<T extends DataBand>(model: DataBand): BandElement<T> | undefined;
7009
7645
  }
7010
7646
 
7011
- declare class TableBandGroupSectionElement<T extends TableBandRowGroupSection> extends TableElement<T> {
7012
- constructor(doc: Document, model: T, name: string);
7013
- applyGroupStyles(tr: HTMLTableRowElement): void;
7014
- protected _needDesignBox(): boolean;
7015
- protected _createCellElement(doc: Document, cell: TableCellItem): TableCellElementBase;
7016
- protected _doMeasure(ctx: PrintContext, dom: HTMLElement, hintWidth: number, hintHeight: number): Size$1;
7017
- protected _doAfterMeasure(ctx: PrintContext, dom: HTMLElement, hintWidth: number, hintHeight: number, sz: Size$1): void;
7018
- }
7019
- interface ITableGroupPrintInfo extends IGroupPrintInfo {
7020
- view: TableBandGroupSectionElement<TableBandRowGroupHeader | TableBandRowGroupFooter>;
7021
- needNextPage: boolean;
7022
- }
7023
- type TableBandPrintRow = BandPrintRow | ITableGroupPrintInfo;
7024
-
7025
7647
  declare class SimpleBandGroupSectionElement<T extends SimpleBandRowGroupSection> extends StackContainerElement<T> {
7026
7648
  constructor(doc: Document, model: T, name: string);
7027
7649
  applyGroupStyles(elt: HTMLElement): void;
@@ -7058,6 +7680,7 @@ declare class PrintContext extends Base$1 {
7058
7680
  private _compositePageCount;
7059
7681
  private _compositePage;
7060
7682
  private _language;
7683
+ private _editable;
7061
7684
  detailRows: number[];
7062
7685
  noValueCallback: boolean;
7063
7686
  preview: boolean;
@@ -7172,6 +7795,15 @@ declare class PrintContext extends Base$1 {
7172
7795
  */
7173
7796
  get language(): string;
7174
7797
  set language(value: string);
7798
+ /**
7799
+ * editable
7800
+ */
7801
+ get editable(): boolean;
7802
+ set editable(value: boolean);
7803
+ /**
7804
+ * 편집 가능한 리포트인지 판별하기 위해 선언
7805
+ */
7806
+ get isEditable(): boolean;
7175
7807
  preparePrint(report?: Report): void;
7176
7808
  preparePage(page: number, allPage: number): void;
7177
7809
  setDetailPage(count: number, page: number): void;
@@ -7403,6 +8035,7 @@ declare abstract class ReportPageItem extends Base$1 implements ISelectionSource
7403
8035
  */
7404
8036
  get marqueeParent(): ReportItem;
7405
8037
  get printable(): boolean;
8038
+ get printEditable(): boolean;
7406
8039
  isAncestorOf(item: ReportPageItem): boolean;
7407
8040
  getProps(): any;
7408
8041
  setProps(src: any): void;
@@ -7869,12 +8502,12 @@ declare abstract class ReportItem extends ReportPageItem {
7869
8502
  unfold(): boolean;
7870
8503
  isI18nFieldValid(): boolean;
7871
8504
  getLanguageFieldValue(language: string, field: string): string;
7872
- protected _foldedChanged(): void;
7873
8505
  get marqueeParent(): ReportItem;
7874
8506
  get printable(): boolean;
7875
8507
  isReadOnlyProperty(prop: IPropInfo): boolean;
7876
8508
  protected _sizable(): boolean;
7877
8509
  protected _boundable(): boolean;
8510
+ protected _foldedChanged(): void;
7878
8511
  /**
7879
8512
  * 리포트 아이템 생성 시, 수행할 초기화 작업을 정의한다.
7880
8513
  *
@@ -8174,120 +8807,6 @@ declare abstract class CellContainer extends ReportGroupItem {
8174
8807
  protected _unprepareCellGroup(item: ReportItem): CellGroup;
8175
8808
  }
8176
8809
 
8177
- declare abstract class ChartObject<T extends ReportGroupItem> extends ReportItem {
8178
- static readonly PROPINFOS: IPropInfo[];
8179
- private _chart;
8180
- constructor(chart: T, name?: string);
8181
- get chart(): T;
8182
- canHide(): boolean;
8183
- getWrapper(): object;
8184
- get page(): ReportPage;
8185
- get report(): Report;
8186
- get dataParent(): ReportGroupItem;
8187
- get marqueeParent(): ReportItem;
8188
- getSaveType(): string;
8189
- protected _getEditProps(): IPropInfo[];
8190
- protected _doLoad(loader: IReportLoader, src: any): void;
8191
- protected _doSave(target: any): void;
8192
- protected _isDefaultVisible(): boolean;
8193
- protected _getPropsWrapper(target: any, excludes?: string[], names?: {
8194
- [key: string]: string;
8195
- }): any;
8196
- }
8197
- declare abstract class ChartTextObject<T extends ReportGroupItem> extends ChartObject<T> {
8198
- static readonly PROP_TEXT = "text";
8199
- static readonly PROPINFOS: IPropInfo[];
8200
- private _text;
8201
- constructor(chart: T);
8202
- /** text */
8203
- get text(): string;
8204
- set text(value: string);
8205
- protected _getEditProps(): IPropInfo[];
8206
- protected _getStyleProps(): string[];
8207
- protected _doLoad(loader: IReportLoader, src: any): void;
8208
- protected _doSave(target: object): void;
8209
- getWrapper(): object;
8210
- }
8211
- declare abstract class ChartSeries<T extends ReportGroupItem> extends ChartObject<T> {
8212
- static readonly PROP_SERIES_ID = "id";
8213
- static readonly PROP_DESIGN_VISIBLE = "designVisible";
8214
- static readonly PROP_VALUE_FIELD = "valueField";
8215
- static readonly PROP_VALUES = "values";
8216
- static readonly PROPINFOS: IPropInfo[];
8217
- private _id;
8218
- private _designVisible;
8219
- private _valueField;
8220
- private _values;
8221
- constructor(chart: T);
8222
- getPropDomain(prop: IPropInfo): any[];
8223
- abstract get seriesType(): string;
8224
- /**
8225
- * id
8226
- */
8227
- get id(): string;
8228
- set id(value: string);
8229
- /**
8230
- * design visible
8231
- */
8232
- get designVisible(): boolean;
8233
- set designVisible(value: boolean);
8234
- /**
8235
- * valueField
8236
- **/
8237
- get valueField(): string;
8238
- set valueField(value: string);
8239
- /**
8240
- * valueField가 지정되면 이 속성은 무시된다.
8241
- */
8242
- get values(): number[];
8243
- set values(value: number[]);
8244
- hasValuesProp(): boolean;
8245
- getValues(ctx: PrintContext, dp: IReportDataProvider): any[];
8246
- getSaveType(): string;
8247
- get displayPath(): string;
8248
- get outlineLabel(): string;
8249
- protected _getEditProps(): IPropInfo[];
8250
- protected _doLoad(loader: IReportLoader, src: any): void;
8251
- protected _doSave(target: object): void;
8252
- }
8253
- declare abstract class ChartSeriesCollection<T extends ReportGroupItem> extends ReportItemCollection<ChartSeries<T>> {
8254
- private _chart;
8255
- protected _series: ChartSeries<T>[];
8256
- constructor(chart?: T);
8257
- get outlineParent(): IOutlineSource;
8258
- get outlineLabel(): string;
8259
- get outlineExpandable(): boolean;
8260
- get outlineItems(): IOutlineSource[];
8261
- get owner(): ReportItem;
8262
- /** chart */
8263
- get chart(): T;
8264
- /** count */
8265
- get count(): number;
8266
- get items(): ReportPageItem[];
8267
- get visibleCount(): number;
8268
- load(loader: IReportLoader, src: any): void;
8269
- save(target: any): void;
8270
- get(index: number): ChartSeries<T>;
8271
- indexOf(series: ChartSeries<T>): number;
8272
- add(loader: IReportLoader, series: ChartSeries<T> | ConfigObject$1, index?: number): ChartSeries<T>;
8273
- addAll(loader: IReportLoader, series: (ChartSeries<T> | ConfigObject$1)[], index?: number): boolean;
8274
- removeAt(index: number): boolean;
8275
- remove(series: ChartSeries<T>): boolean;
8276
- clear(): boolean;
8277
- select(series: ChartSeries<T>): void;
8278
- getSaveType(): string;
8279
- get page(): ReportPage;
8280
- get displayPath(): string;
8281
- get level(): number;
8282
- isAncestorOf(item: ReportPageItem): boolean;
8283
- protected abstract _createSeries(loader: IReportLoader, src: any): ChartSeries<T>;
8284
- protected abstract _seriesChanged(series: ChartSeries<T>): void;
8285
- private $_add;
8286
- private $_invalidateSeries;
8287
- private $_seriesChanged;
8288
- protected _doMoveItem(from: number, to: number): boolean;
8289
- }
8290
-
8291
8810
  /**
8292
8811
  * Chart title.
8293
8812
  */
@@ -8991,6 +9510,9 @@ declare enum LinkTarget {
8991
9510
  PARENT = "_parent",
8992
9511
  TOP = "_top"
8993
9512
  }
9513
+ declare enum EditType {
9514
+ TEXT = "text"
9515
+ }
8994
9516
  declare enum PaperOrientation {
8995
9517
  PORTRAIT = "portrait",
8996
9518
  LANDSCAPE = "landscape"
@@ -9092,298 +9614,6 @@ declare enum SectionInherit {
9092
9614
  PREVIOUS = "previous"
9093
9615
  }
9094
9616
 
9095
- interface IPrintReport {
9096
- report: Report;
9097
- data: IReportDataProvider;
9098
- }
9099
- interface IPreviewOptions {
9100
- debug?: boolean;
9101
- async?: boolean;
9102
- pageMark?: boolean;
9103
- optimize?: boolean;
9104
- pageDelay?: number;
9105
- noScroll?: boolean;
9106
- noIndicator?: boolean;
9107
- singlePage?: boolean;
9108
- singlePageOptions?: ISinglePageOptions;
9109
- align?: Align;
9110
- paging?: boolean;
9111
- language?: string;
9112
- callback?: PrintPageCallback;
9113
- endCallback?: PrintEndCallback;
9114
- }
9115
- interface IPrintOptions {
9116
- report: Report | (Report | IPrintReport)[];
9117
- data: IReportDataProvider;
9118
- preview?: boolean;
9119
- id?: string;
9120
- previewOptions?: IPreviewOptions;
9121
- }
9122
- interface ISinglePageOptions {
9123
- border: boolean;
9124
- }
9125
- declare class PrintContainer extends VisualContainer$1 {
9126
- static readonly CLASS_NAME = "rr-report-container";
9127
- static readonly PREVIEW_CLASS = "rr-report-preview";
9128
- static readonly PRINT_SIZE = "--rr-print-size";
9129
- private static readonly MARKER_CLASS;
9130
- private static readonly PRINT_INDICATOR_CLASS;
9131
- private static readonly PRINT_BACK_CLASS;
9132
- static readonly SCROLL_END = "onScrollEnd";
9133
- private _pageGap;
9134
- private _zoom;
9135
- private _align;
9136
- private _styles;
9137
- traceMode: boolean;
9138
- onZoomed: (scale: number) => void;
9139
- private _context;
9140
- private _errorView;
9141
- private _indicator;
9142
- private _reportView;
9143
- private _reportViews;
9144
- private _contexts;
9145
- private _pages;
9146
- private _preview;
9147
- private _previewId;
9148
- private _options;
9149
- private _printMode;
9150
- private _pageToGo?;
9151
- constructor(containerId: string | HTMLDivElement);
9152
- protected _doDispose(): void;
9153
- /** pageCount */
9154
- get pageCount(): number;
9155
- /** page */
9156
- get page(): number;
9157
- set page(value: number);
9158
- /** zoom */
9159
- get zoom(): number;
9160
- set zoom(value: number);
9161
- get pages(): PrintPage[];
9162
- get isPrinted(): boolean;
9163
- get align(): Align;
9164
- set align(value: Align);
9165
- /**
9166
- * Report 에서 사용
9167
- */
9168
- get ReportItemRegistry(): ReportItemRegistry;
9169
- /**
9170
- * Composite Report 에서 사용
9171
- */
9172
- get ReportItemRegistries(): ReportItemRegistry[];
9173
- print(options: IPrintOptions): void;
9174
- printSingle(options: IPrintOptions): void;
9175
- printAll(options: IPrintOptions): void;
9176
- private $_printAll;
9177
- getPrintHtml(): string;
9178
- loadAsyncLoadableElements(): Promise<void>;
9179
- setStyles(styles: any): void;
9180
- fitToWidth(): void;
9181
- fitToHeight(): void;
9182
- fitToPage(): void;
9183
- /**
9184
- * Multi 리포트이면서 가로로 시작하는 양식은 따로 설정이 필요함
9185
- * @returns 멀티 페이지이면서 첫번째 페이지가 가로양식으로 시작할 경우
9186
- */
9187
- needPrintScale(): boolean;
9188
- /**
9189
- * containerDiv의 크기에 맞춰 previewer의 위치를 재조정한다.
9190
- */
9191
- resetPreviewer(): void;
9192
- get printing(): boolean;
9193
- protected _doPrepareContainer(doc: Document, dom: HTMLElement): void;
9194
- protected _render(timestamp: number): void;
9195
- protected _doResized(): void;
9196
- private $_showError;
9197
- private $_createIndicator;
9198
- private $_refreshContextValues;
9199
- private $_replacePages;
9200
- private $_refreshHtmlItemValue;
9201
- private $_printReport;
9202
- private $_printPageless;
9203
- private $_getContainer;
9204
- private $_getPreviewer;
9205
- private $_getPageHeight;
9206
- private $_getPrintBack;
9207
- private $_removeBackContainer;
9208
- private $_resetPreviewer;
9209
- private $_buildOutput;
9210
- private $_buildNoPagingOutput;
9211
- private $_setFrontBackLayer;
9212
- /**
9213
- * 서브 밴드 페이지들은 다른 페이지들에 연결해서 사용되기 때문에 우선적으로 뷰를 준비한다.
9214
- */
9215
- private $_prepareSubPageViews;
9216
- /**
9217
- * unitpost 한장 요약 HTML 요청으로 singlePage 별도 메서드로 분리
9218
- */
9219
- private $_prepareSinglePage;
9220
- private $_setSinglePage;
9221
- private $_setSinglePageStyles;
9222
- private $_isReportFooter;
9223
- private $_setPrintMode;
9224
- private $_getScaleSize;
9225
- /**
9226
- * 각 인쇄 영역 Container Style 설정
9227
- */
9228
- private $_setPageContainerStyle;
9229
- private $_setLandscapePageStyle;
9230
- private $_setPrintScaleStyle;
9231
- private $_setUnvisibleDom;
9232
- private $_layoutFloatings;
9233
- private $_setLanguageContext;
9234
- /**
9235
- * 출력 옵션 검증
9236
- * @throws 출력 옵션이 유효하지 않을 경우 에러 발생
9237
- */
9238
- private $_validatePrintOptions;
9239
- private $_validateReportOption;
9240
- private $_createReportView;
9241
- private $_instanceofIPrintReport;
9242
- protected _fireScrollEnd: () => void;
9243
- }
9244
-
9245
- interface PdfFont {
9246
- file: string;
9247
- name: string;
9248
- content: string;
9249
- style?: 'normal' | 'italic';
9250
- weight?: 'normal' | 'bold';
9251
- }
9252
- interface PdfPermissions {
9253
- printing?: 'lowResolution' | 'highResolution';
9254
- modifying?: boolean;
9255
- copying?: boolean;
9256
- annotating?: boolean;
9257
- fillingForms?: boolean;
9258
- contentAccessibility?: boolean;
9259
- documentAssembly?: boolean;
9260
- }
9261
-
9262
- declare enum CCITTScheme {
9263
- GROUP_3 = "g3",
9264
- GROUP_3_2D = "g3-2d",
9265
- GROUP_4 = "g4"
9266
- }
9267
-
9268
- interface ITiffOptions {
9269
- dpi?: number;
9270
- grayscale?: boolean;
9271
- encoding?: CCITTScheme;
9272
- }
9273
-
9274
- interface ImageExportOptions {
9275
- type?: 'png' | 'jpeg' | 'jpg' | 'gif' | 'tif' | 'tiff';
9276
- fileName?: string;
9277
- zipName?: string;
9278
- tiff?: ITiffOptions;
9279
- }
9280
-
9281
- declare const I_EMAIL_ITEM_DSCIRIMINATOR: "I_EMAIL_ITEM";
9282
- interface IEmailItem extends ReportItem {
9283
- discriminator: typeof I_EMAIL_ITEM_DSCIRIMINATOR;
9284
- }
9285
-
9286
- declare class EmailFooterItems extends ColumnBoxContainer implements IEmailItem {
9287
- static readonly PROPINFOS: IPropInfo[];
9288
- static readonly INHERITED_PROPINFO_NAMES: string[];
9289
- static readonly STYLE_PROPS: string[];
9290
- static readonly INHERITED_STYLE_PROPS: string[];
9291
- static readonly $_ctor: string;
9292
- private _itemsHorizontalAlign;
9293
- discriminator: "I_EMAIL_ITEM";
9294
- constructor(name: string);
9295
- get itemsHorizontalAlign(): Align;
9296
- set itemsHorizontalAlign(value: Align);
9297
- get outlineLabel(): string;
9298
- get outlineParent(): IOutlineSource;
9299
- canResize(dir: ResizeDirection): boolean;
9300
- canMove(): boolean;
9301
- protected _boundable(): boolean;
9302
- protected _getEditProps(): IPropInfo[];
9303
- protected _getStyleProps(): string[];
9304
- protected _doDefaultInit(loader: IReportLoader, parent: ReportGroupItem, hintWidth: number, hintHeight: number): void;
9305
- protected _doAfterLoad(loader: IReportLoader, src: any): void;
9306
- protected _doAfterSave(target: object): void;
9307
- protected _doItemAdded(item: ReportItem, index: number): void;
9308
- }
9309
-
9310
- declare class EmailFooter extends ReportFooter implements IEmailItem {
9311
- static readonly $_ctor: string;
9312
- private _footerItems;
9313
- discriminator: "I_EMAIL_ITEM";
9314
- constructor();
9315
- get footerItems(): ReportItem[];
9316
- get itemsContainer(): EmailFooterItems;
9317
- get itemsAlign(): BoxItemsAlign;
9318
- get outlineLabel(): string;
9319
- get pathLabel(): string;
9320
- canResize(dir: ResizeDirection): boolean;
9321
- protected _ignoreItems(): boolean;
9322
- protected _getEditProps(): IPropInfo[];
9323
- protected _getStyleProps(): string[];
9324
- protected _doLoad(loader: IReportLoader, src: any): void;
9325
- protected _doSave(target: object): void;
9326
- }
9327
-
9328
- declare class EmailPage extends ReportPage implements IEmailItem {
9329
- static readonly PROPINFOS: IPropInfo[];
9330
- static readonly INHERITED_PROPINFO_NAMES: string[];
9331
- static readonly STYLE_PROPS: string[];
9332
- static readonly INHERITED_STYLE_PROPS: string[];
9333
- static readonly $_ctor: string;
9334
- discriminator: "I_EMAIL_ITEM";
9335
- constructor(report: Report);
9336
- get emailFooter(): EmailFooter;
9337
- get outlineItems(): IOutlineSource[];
9338
- protected _createPageBody(): PageBody;
9339
- protected _createReportFooter(): ReportFooter;
9340
- protected _getReportFooterSourceFieldName(): string;
9341
- getPropDomain(prop: IPropInfo): any[];
9342
- getEditProps(): IPropInfo[];
9343
- protected _getStyleProps(): string[];
9344
- protected _doAfterLoad(loader: IReportLoader, src: any): void;
9345
- protected _doSave(target: object): void;
9346
- }
9347
-
9348
- declare class EmailPageBody extends PageBody implements IEmailItem {
9349
- static readonly PROPINFOS: IPropInfo[];
9350
- static readonly INHERITED_PROPINFO_NAMES: string[];
9351
- static readonly STYLE_PROPS: string[];
9352
- static readonly INHERITED_STYLE_PROPS: string[];
9353
- static readonly $_ctor: string;
9354
- discriminator: "I_EMAIL_ITEM";
9355
- constructor();
9356
- protected _createPageBodyItems(): PageBodyItems;
9357
- protected _getEditProps(): IPropInfo[];
9358
- protected _getStyleProps(): string[];
9359
- protected _doLoad(loader: IReportLoader, src: any): void;
9360
- protected _doSave(target: object): void;
9361
- }
9362
-
9363
- declare class EmailRootItem extends ReportRootItem {
9364
- static readonly PROP_WIDTH = "width";
9365
- static readonly PROPINFOS: IPropInfo[];
9366
- static readonly INHERITED_PROPINFO_NAMES: string[];
9367
- static readonly $_ctor: string;
9368
- constructor(email: Email);
9369
- get width(): ValueString;
9370
- set width(value: ValueString);
9371
- get outlineLabel(): string;
9372
- getEditProps(): IPropInfo[];
9373
- protected _doLoad(loader: IReportLoader, src: any): void;
9374
- protected _doSave(target: object): void;
9375
- private $_checkReportType;
9376
- }
9377
- declare class Email extends Report {
9378
- get root(): EmailRootItem;
9379
- get page(): EmailPage;
9380
- get body(): EmailPageBody;
9381
- protected _createReportRootItem(report: Report): ReportRootItem;
9382
- protected _createReportInfo(report: Report): ReportInfo;
9383
- protected _createReportLoader(): IReportLoader;
9384
- protected _createReportPage(report: Report): ReportPage;
9385
- }
9386
-
9387
9617
  /**
9388
9618
  * 데이터 필드의 데이터 자료형
9389
9619
  *
@@ -43524,6 +43754,11 @@ type PreviewOptions = {
43524
43754
  * @defaultValue `기본으로 설정된 언어 key`
43525
43755
  */
43526
43756
  language?: string;
43757
+ /**
43758
+ * 미리보기에서 편집 가능한 리포트로 설정
43759
+ * @defaultValue `undefined`
43760
+ */
43761
+ editable?: boolean;
43527
43762
  /**
43528
43763
  * 페이지 없이 출력하는 옵션. false인 경우 페이지 구분 없이 출력합니다.
43529
43764
  * @defaultValue `true`