realreport 1.10.4 → 1.10.6
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.
- package/dist/realreport.css +12 -1
- package/dist/realreport.d.ts +280 -258
- package/dist/realreport.es.js +3 -3
- package/dist/realreport.js +3 -3
- package/package.json +33 -36
package/dist/realreport.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
RealReport v1.10.
|
|
2
|
+
RealReport v1.10.6
|
|
3
3
|
Copyright (C) 2013-2025 WooriTech Inc.
|
|
4
4
|
All Rights Reserved.
|
|
5
5
|
*/
|
|
@@ -2405,6 +2405,7 @@ All Rights Reserved.
|
|
|
2405
2405
|
/** bar series */
|
|
2406
2406
|
.rct-bar-series {
|
|
2407
2407
|
fill-opacity: 1;
|
|
2408
|
+
stroke-width: 0;
|
|
2408
2409
|
}
|
|
2409
2410
|
|
|
2410
2411
|
/** circlebar series */
|
|
@@ -2638,6 +2639,16 @@ All Rights Reserved.
|
|
|
2638
2639
|
stroke-width: 2px;
|
|
2639
2640
|
}
|
|
2640
2641
|
|
|
2642
|
+
/** wordcloud series */
|
|
2643
|
+
.rct-wordcloud-series .rct-point[data-focus] {
|
|
2644
|
+
filter: none !important;
|
|
2645
|
+
}
|
|
2646
|
+
.rct-wordcloud-series .rct-point[data-focus] text {
|
|
2647
|
+
filter: brightness(80%) !important;
|
|
2648
|
+
stroke: #777 !important;
|
|
2649
|
+
stroke-width: 0px;
|
|
2650
|
+
}
|
|
2651
|
+
|
|
2641
2652
|
/** gauge */
|
|
2642
2653
|
.rct-gauge-pane {
|
|
2643
2654
|
fill: none;
|
package/dist/realreport.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="pdfkit" />
|
|
2
2
|
/**
|
|
3
|
-
* RealReport v1.10.
|
|
4
|
-
* commit
|
|
3
|
+
* RealReport v1.10.6
|
|
4
|
+
* commit e12a220
|
|
5
5
|
|
|
6
6
|
* {@link https://real-report.com}
|
|
7
7
|
* Copyright (C) 2013-2025 WooriTech Inc.
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
import { Cvfo, Style } from 'exceljs';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
|
-
* RealReport Core v1.10.
|
|
14
|
+
* RealReport Core v1.10.6
|
|
15
15
|
* Copyright (C) 2013-2025 WooriTech Inc.
|
|
16
16
|
* All Rights Reserved.
|
|
17
|
-
* commit
|
|
17
|
+
* commit 3c339f64357f690dd8595ecbc4ae93a1a3efe81c
|
|
18
18
|
*/
|
|
19
19
|
|
|
20
20
|
|
|
@@ -193,24 +193,6 @@ declare abstract class ExpressionNode$1 {
|
|
|
193
193
|
toString(): string;
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
-
interface ICsvDataInfo {
|
|
197
|
-
/**
|
|
198
|
-
* 컬럼들의 이름이 표시되는 행 번호. 행은 1부터 시작.
|
|
199
|
-
*/
|
|
200
|
-
headerRow?: number;
|
|
201
|
-
/**
|
|
202
|
-
* 데이터가 시작되는 행 번호. 지정하지 않으면 headerRow + 1.
|
|
203
|
-
*/
|
|
204
|
-
startRow?: number;
|
|
205
|
-
/**
|
|
206
|
-
* 최대 행 수. 지정하지 않으면 마지막 데이터 행까지.
|
|
207
|
-
*/
|
|
208
|
-
rowCount?: number;
|
|
209
|
-
}
|
|
210
|
-
interface ICsvDataReader {
|
|
211
|
-
readDataRows(data: BandData, source: string, info: ICsvDataInfo): Promise<any[]>;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
196
|
interface IExcelDataInfo {
|
|
215
197
|
/**
|
|
216
198
|
* 컬럼들의 이름이 표시되는 행 번호. 행은 1부터 시작.
|
|
@@ -1588,229 +1570,6 @@ declare class AssetManager extends EventAware$1 {
|
|
|
1588
1570
|
private $_addPalette;
|
|
1589
1571
|
}
|
|
1590
1572
|
|
|
1591
|
-
type IBandDataFieldDataType = "text" | "number" | "bool" | "array" | "datetime";
|
|
1592
|
-
|
|
1593
|
-
interface IReportDataProvider {
|
|
1594
|
-
designTime?: boolean;
|
|
1595
|
-
dirty?: boolean;
|
|
1596
|
-
preparePrint(ctx: PrintContextBase): void;
|
|
1597
|
-
getAll(): IReportData[];
|
|
1598
|
-
get(name: string): IReportData;
|
|
1599
|
-
getContextValue(path: string): any;
|
|
1600
|
-
getValue(path: string, row: number): any;
|
|
1601
|
-
getValueAt(data: string, path: string, row: number): any;
|
|
1602
|
-
getFieldValues(data: string, field: string, rows?: number[]): any[];
|
|
1603
|
-
addData?(data: IReportData, silent: boolean): boolean;
|
|
1604
|
-
removeData?(data: string | IReportData): IReportData;
|
|
1605
|
-
dataChanged?(data: IReportData): void;
|
|
1606
|
-
dataNameChanged?(data: IReportData, oldName: string): void;
|
|
1607
|
-
fieldNameChanged?(data: IReportData, newName: string, oldName: string): void;
|
|
1608
|
-
setProperty?(data: IReportData, prop: string, value: any): void;
|
|
1609
|
-
}
|
|
1610
|
-
interface IReportDataFieldInfo {
|
|
1611
|
-
label?: string;
|
|
1612
|
-
fieldName: string;
|
|
1613
|
-
dataType: IBandDataFieldDataType;
|
|
1614
|
-
}
|
|
1615
|
-
interface IReportData extends IPropertySource {
|
|
1616
|
-
index: number;
|
|
1617
|
-
name: string;
|
|
1618
|
-
isBand: boolean;
|
|
1619
|
-
isLocalLink: boolean;
|
|
1620
|
-
getFieldNames(): string[];
|
|
1621
|
-
getSaveType(): string;
|
|
1622
|
-
getValue(path: string): any;
|
|
1623
|
-
hasParams(): boolean;
|
|
1624
|
-
}
|
|
1625
|
-
declare abstract class ReportData$1 extends Base$1 implements IPropertySource {
|
|
1626
|
-
static readonly PROP_NAME = "name";
|
|
1627
|
-
static readonly PROP_INFOS: {
|
|
1628
|
-
name: string;
|
|
1629
|
-
category: PropCategory;
|
|
1630
|
-
type: typeof StringProperty;
|
|
1631
|
-
multiple: boolean;
|
|
1632
|
-
default: any;
|
|
1633
|
-
}[];
|
|
1634
|
-
private _name;
|
|
1635
|
-
private _dp;
|
|
1636
|
-
index: number;
|
|
1637
|
-
_deleted: boolean;
|
|
1638
|
-
constructor(name: string, dp: IReportDataProvider);
|
|
1639
|
-
getEditProps(): IPropInfo[];
|
|
1640
|
-
getStyleProps(): IPropInfo[];
|
|
1641
|
-
getSubStyleProps(prop: string): IPropInfo[];
|
|
1642
|
-
isDominantProp(prop: IPropInfo): boolean;
|
|
1643
|
-
getPlaceHolder(prop: IPropInfo): string;
|
|
1644
|
-
getPropDomain(prop: IPropInfo): any[];
|
|
1645
|
-
getProperty(prop: string): any;
|
|
1646
|
-
setProperty(prop: string, value: any): void;
|
|
1647
|
-
setItemsProperty(sources: IPropertySource[], prop: string, value: any): void;
|
|
1648
|
-
getStyleProperty(prop: string): void;
|
|
1649
|
-
setStyleProperty(prop: string, value: any): void;
|
|
1650
|
-
setItemsStyleProperty(sources: IPropertySource[], prop: string, value: any): void;
|
|
1651
|
-
getSubStyleProperty(prop: string, style: string): void;
|
|
1652
|
-
setSubStyleProperty(prop: string, style: string, value: any): void;
|
|
1653
|
-
setItemsSubStyleProperty(sources: IPropertySource[], prop: string, style: string, value: any): void;
|
|
1654
|
-
isReadOnlyProperty(prop: IPropInfo): boolean;
|
|
1655
|
-
canPropAdoptDragSource(prop: IPropInfo, source: any): boolean;
|
|
1656
|
-
adoptPropDragSource(prop: IPropInfo, source: any): IDropResult;
|
|
1657
|
-
isCollectionProp(): boolean;
|
|
1658
|
-
isEditableCollection(): boolean;
|
|
1659
|
-
isCollectionItem(): boolean;
|
|
1660
|
-
getCollectionLabel(): string;
|
|
1661
|
-
getPropertySources(): IPropertySource[];
|
|
1662
|
-
getPopupPropLabel(prop: string): string;
|
|
1663
|
-
get provider(): IReportDataProvider;
|
|
1664
|
-
get designTime(): boolean;
|
|
1665
|
-
get isBand(): boolean;
|
|
1666
|
-
/** name */
|
|
1667
|
-
get name(): string;
|
|
1668
|
-
set name(value: string);
|
|
1669
|
-
get displayPath(): string;
|
|
1670
|
-
preparePrint(ctx: PrintContextBase, design: boolean): void;
|
|
1671
|
-
}
|
|
1672
|
-
declare enum ReportDataLinkFormat {
|
|
1673
|
-
JSON = "JSON",
|
|
1674
|
-
CSV = "CSV",
|
|
1675
|
-
SHEET = "SHEET"
|
|
1676
|
-
}
|
|
1677
|
-
declare const LocalFileTypes: readonly ["json", "csv", "excel"];
|
|
1678
|
-
interface IReportDataLink {
|
|
1679
|
-
source: 'local' | 'remote';
|
|
1680
|
-
/** remote */
|
|
1681
|
-
url?: string;
|
|
1682
|
-
method?: 'GET' | 'POST' | 'PUT';
|
|
1683
|
-
pathParams?: RegExpExecArray[];
|
|
1684
|
-
params?: {
|
|
1685
|
-
[name: string]: string;
|
|
1686
|
-
};
|
|
1687
|
-
headers?: {
|
|
1688
|
-
[name: string]: string;
|
|
1689
|
-
};
|
|
1690
|
-
format?: ReportDataLinkFormat;
|
|
1691
|
-
/** local */
|
|
1692
|
-
fileType?: typeof LocalFileTypes[number];
|
|
1693
|
-
exts?: string;
|
|
1694
|
-
/** json */
|
|
1695
|
-
dataPath?: string;
|
|
1696
|
-
/** csv & xlsx */
|
|
1697
|
-
headerRow?: number;
|
|
1698
|
-
startRow?: number;
|
|
1699
|
-
rowCount?: number;
|
|
1700
|
-
/** csv */
|
|
1701
|
-
delimiter?: string;
|
|
1702
|
-
quoted?: boolean;
|
|
1703
|
-
/** xlsx */
|
|
1704
|
-
startCol?: string;
|
|
1705
|
-
endRowCol?: string;
|
|
1706
|
-
endCheckValue?: string;
|
|
1707
|
-
useHeaderNames?: boolean;
|
|
1708
|
-
}
|
|
1709
|
-
declare abstract class LinkableReportData extends ReportData$1 implements IEditCommandStackOwner {
|
|
1710
|
-
private static readonly LOCAL_PROPS;
|
|
1711
|
-
protected _mode: 'link' | 'embed';
|
|
1712
|
-
_link?: IReportDataLink;
|
|
1713
|
-
orgLink?: IReportDataLink;
|
|
1714
|
-
private _linkCommands;
|
|
1715
|
-
constructor(name: string, link?: IReportDataLink, dp?: IReportDataProvider);
|
|
1716
|
-
editCommandStackChanged(stack: EditCommandStack$1, cmd: EditCommand$1, undoable: boolean, redoable: boolean): void;
|
|
1717
|
-
editCommandStackDirtyChanged(stack: EditCommandStack$1): void;
|
|
1718
|
-
editCommandError(command: EditCommand$1): void;
|
|
1719
|
-
onLinkChanged: (stack: EditCommandStack$1, cmd: EditCommand$1) => void;
|
|
1720
|
-
hasParams(): boolean;
|
|
1721
|
-
get isLocalLink(): boolean;
|
|
1722
|
-
updateLink(changes: IReportDataLink): void;
|
|
1723
|
-
resetLink(): void;
|
|
1724
|
-
undoLink(): void;
|
|
1725
|
-
redoLink(): void;
|
|
1726
|
-
embedPreview: boolean;
|
|
1727
|
-
get linkCommands(): EditCommandStack$1;
|
|
1728
|
-
get mode(): "embed" | "link";
|
|
1729
|
-
get dirty(): boolean;
|
|
1730
|
-
set dirty(value: boolean);
|
|
1731
|
-
isDirty(): boolean;
|
|
1732
|
-
clean(): void;
|
|
1733
|
-
get isLinkMode(): boolean;
|
|
1734
|
-
/**
|
|
1735
|
-
* link
|
|
1736
|
-
*/
|
|
1737
|
-
get link(): IReportDataLink;
|
|
1738
|
-
set link(value: IReportDataLink);
|
|
1739
|
-
get linkUrl(): string;
|
|
1740
|
-
private $_getLinkUrl;
|
|
1741
|
-
abstract loadJson(source: string, link: IReportDataLink): Promise<void>;
|
|
1742
|
-
abstract loadCsv(source: string, reader: ICsvDataReader, info: ICsvDataInfo): Promise<void>;
|
|
1743
|
-
abstract loadExcel(source: ArrayBuffer, reader: IExcelDataReader, info: IExcelDataInfo): Promise<void>;
|
|
1744
|
-
fetchData(runParams: {
|
|
1745
|
-
[param: string]: any;
|
|
1746
|
-
}): Promise<void>;
|
|
1747
|
-
private $_loadLink;
|
|
1748
|
-
saveLink(target: any): IReportDataLink;
|
|
1749
|
-
save(target?: any): any;
|
|
1750
|
-
protected abstract _doDataFetched(fetchedData: unknown): void;
|
|
1751
|
-
/**
|
|
1752
|
-
* ../{param1}/{param2} 형태의 url에서 param을 뽑아낸다.
|
|
1753
|
-
*/
|
|
1754
|
-
private $_parseUrl;
|
|
1755
|
-
}
|
|
1756
|
-
type SimpleDataValueType = {
|
|
1757
|
-
[key: string]: any;
|
|
1758
|
-
};
|
|
1759
|
-
interface ISimpleDataField {
|
|
1760
|
-
fieldName: string;
|
|
1761
|
-
dataType?: 'string' | 'number' | 'boolean' | 'array' | 'object';
|
|
1762
|
-
source?: string;
|
|
1763
|
-
expression?: string;
|
|
1764
|
-
format?: string;
|
|
1765
|
-
description?: string;
|
|
1766
|
-
sample?: any;
|
|
1767
|
-
dateReader?: DatetimeReader;
|
|
1768
|
-
width?: number;
|
|
1769
|
-
children?: any;
|
|
1770
|
-
}
|
|
1771
|
-
interface ISimpleData extends IReportData {
|
|
1772
|
-
getValues(): any;
|
|
1773
|
-
getSaveValues(): any;
|
|
1774
|
-
}
|
|
1775
|
-
/**
|
|
1776
|
-
* 단순형 값이나, json 객체를 값으로 지정한다.
|
|
1777
|
-
*/
|
|
1778
|
-
declare class SimpleData extends LinkableReportData implements ISimpleData {
|
|
1779
|
-
private _isObj;
|
|
1780
|
-
private _linkedValues;
|
|
1781
|
-
private _embeddedValues;
|
|
1782
|
-
private _dirty;
|
|
1783
|
-
onClean: () => void;
|
|
1784
|
-
constructor(name: string, values: SimpleDataValueType, link?: IReportDataLink, fields?: ISimpleDataField[], dp?: IReportDataProvider);
|
|
1785
|
-
getValue(path?: string): any;
|
|
1786
|
-
getValues(): any;
|
|
1787
|
-
setValue(path: string, value: any): void;
|
|
1788
|
-
changeName(path: string, newName: string): void;
|
|
1789
|
-
private get _values();
|
|
1790
|
-
private set _values(value);
|
|
1791
|
-
get sample(): SimpleDataValueType;
|
|
1792
|
-
get rowCount(): number;
|
|
1793
|
-
getSaveType(): string;
|
|
1794
|
-
getSaveValues(): any;
|
|
1795
|
-
setSample(values: any): void;
|
|
1796
|
-
getFieldNames(): string[];
|
|
1797
|
-
/**
|
|
1798
|
-
* 특정 모드의 데이터를 일회성으로 조작하기 위한 편의성 메서드 (callback 실행 후 모드는 원복됨)
|
|
1799
|
-
*/
|
|
1800
|
-
runInMode(mode: LinkableReportData['_mode'], callback: (() => void) | Promise<void>): void;
|
|
1801
|
-
readValue(field: ISimpleDataField, value: any): any;
|
|
1802
|
-
setSource(source: SimpleDataValueType): void;
|
|
1803
|
-
save(target: any): any;
|
|
1804
|
-
loadJson(source: string): Promise<void>;
|
|
1805
|
-
loadCsv(source: string): Promise<void>;
|
|
1806
|
-
loadExcel(source: ArrayBuffer, reader: IExcelDataReader, info: IExcelDataInfo): Promise<void>;
|
|
1807
|
-
setDirty(): void;
|
|
1808
|
-
isDirty(): boolean;
|
|
1809
|
-
clean(): void;
|
|
1810
|
-
protected _doDataFetched(fetchedData: unknown): void;
|
|
1811
|
-
private $_isSimpleValueType;
|
|
1812
|
-
}
|
|
1813
|
-
|
|
1814
1573
|
/**
|
|
1815
1574
|
* Design-time data provider
|
|
1816
1575
|
*/
|
|
@@ -4673,6 +4432,8 @@ interface RCSeriesPointLabelConfig {
|
|
|
4673
4432
|
style?: RCSvgStyles;
|
|
4674
4433
|
offset?: number;
|
|
4675
4434
|
position?: RCSeriesPointLabelPosition;
|
|
4435
|
+
numberFormat?: string;
|
|
4436
|
+
numberSymbols?: string;
|
|
4676
4437
|
}
|
|
4677
4438
|
interface RCSeriesTooltipConfig {
|
|
4678
4439
|
visible?: boolean;
|
|
@@ -11770,7 +11531,7 @@ declare class PrintContextBase<R extends ReportBase = ReportBase> extends Base$1
|
|
|
11770
11531
|
* 로드가 필요한 Elements에 대한 비동기 처리
|
|
11771
11532
|
*/
|
|
11772
11533
|
loadAsyncLoadableElements(): Promise<void[]>;
|
|
11773
|
-
getPrintValue(
|
|
11534
|
+
getPrintValue(item: ReportItem): any;
|
|
11774
11535
|
getPrintLinkValue(m: ReportItem): any;
|
|
11775
11536
|
/**
|
|
11776
11537
|
* PrintContext에서 초기화가 필요한 속성들을 설정한다.
|
|
@@ -11901,6 +11662,8 @@ type PrintLine = {
|
|
|
11901
11662
|
pageIndex: number;
|
|
11902
11663
|
};
|
|
11903
11664
|
|
|
11665
|
+
type IBandDataFieldDataType = "text" | "number" | "bool" | "array" | "datetime";
|
|
11666
|
+
|
|
11904
11667
|
interface IBandDataField {
|
|
11905
11668
|
fieldName: string;
|
|
11906
11669
|
label?: string;
|
|
@@ -12035,6 +11798,245 @@ declare class BandArrayData extends BandData implements IBandData {
|
|
|
12035
11798
|
protected _prepareCalcField(fields: IBandDataField[], fieldMap: any, calcField: IBandDataField, index: number, node: ExpressionNode$1): void;
|
|
12036
11799
|
}
|
|
12037
11800
|
|
|
11801
|
+
interface ICsvDataInfo {
|
|
11802
|
+
/**
|
|
11803
|
+
* 컬럼들의 이름이 표시되는 행 번호. 행은 1부터 시작.
|
|
11804
|
+
*/
|
|
11805
|
+
headerRow?: number;
|
|
11806
|
+
/**
|
|
11807
|
+
* 데이터가 시작되는 행 번호. 지정하지 않으면 headerRow + 1.
|
|
11808
|
+
*/
|
|
11809
|
+
startRow?: number;
|
|
11810
|
+
/**
|
|
11811
|
+
* 최대 행 수. 지정하지 않으면 마지막 데이터 행까지.
|
|
11812
|
+
*/
|
|
11813
|
+
rowCount?: number;
|
|
11814
|
+
}
|
|
11815
|
+
interface ICsvDataReader {
|
|
11816
|
+
readDataRows(data: BandData, source: string, info: ICsvDataInfo): Promise<any[]>;
|
|
11817
|
+
}
|
|
11818
|
+
|
|
11819
|
+
interface IReportDataProvider {
|
|
11820
|
+
designTime?: boolean;
|
|
11821
|
+
dirty?: boolean;
|
|
11822
|
+
preparePrint(ctx: PrintContextBase): void;
|
|
11823
|
+
getAll(): IReportData[];
|
|
11824
|
+
get(name: string): IReportData;
|
|
11825
|
+
getContextValue(path: string): any;
|
|
11826
|
+
getValue(path: string, row: number): any;
|
|
11827
|
+
getValueAt(data: string, path: string, row: number): any;
|
|
11828
|
+
getFieldValues(data: string, field: string, rows?: number[]): any[];
|
|
11829
|
+
addData?(data: IReportData, silent: boolean): boolean;
|
|
11830
|
+
removeData?(data: string | IReportData): IReportData;
|
|
11831
|
+
dataChanged?(data: IReportData): void;
|
|
11832
|
+
dataNameChanged?(data: IReportData, oldName: string): void;
|
|
11833
|
+
fieldNameChanged?(data: IReportData, newName: string, oldName: string): void;
|
|
11834
|
+
setProperty?(data: IReportData, prop: string, value: any): void;
|
|
11835
|
+
}
|
|
11836
|
+
interface IReportDataFieldInfo {
|
|
11837
|
+
label?: string;
|
|
11838
|
+
fieldName: string;
|
|
11839
|
+
dataType: IBandDataFieldDataType;
|
|
11840
|
+
}
|
|
11841
|
+
interface IReportData extends IPropertySource {
|
|
11842
|
+
index: number;
|
|
11843
|
+
name: string;
|
|
11844
|
+
isBand: boolean;
|
|
11845
|
+
isLocalLink: boolean;
|
|
11846
|
+
getFieldNames(): string[];
|
|
11847
|
+
getSaveType(): string;
|
|
11848
|
+
getValue(path: string): any;
|
|
11849
|
+
hasParams(): boolean;
|
|
11850
|
+
}
|
|
11851
|
+
declare abstract class ReportData$1 extends Base$1 implements IPropertySource {
|
|
11852
|
+
static readonly PROP_NAME = "name";
|
|
11853
|
+
static readonly PROP_INFOS: {
|
|
11854
|
+
name: string;
|
|
11855
|
+
category: PropCategory;
|
|
11856
|
+
type: typeof StringProperty;
|
|
11857
|
+
multiple: boolean;
|
|
11858
|
+
default: any;
|
|
11859
|
+
}[];
|
|
11860
|
+
private _name;
|
|
11861
|
+
private _dp;
|
|
11862
|
+
index: number;
|
|
11863
|
+
_deleted: boolean;
|
|
11864
|
+
constructor(name: string, dp: IReportDataProvider);
|
|
11865
|
+
getEditProps(): IPropInfo[];
|
|
11866
|
+
getStyleProps(): IPropInfo[];
|
|
11867
|
+
getSubStyleProps(prop: string): IPropInfo[];
|
|
11868
|
+
isDominantProp(prop: IPropInfo): boolean;
|
|
11869
|
+
getPlaceHolder(prop: IPropInfo): string;
|
|
11870
|
+
getPropDomain(prop: IPropInfo): any[];
|
|
11871
|
+
getProperty(prop: string): any;
|
|
11872
|
+
setProperty(prop: string, value: any): void;
|
|
11873
|
+
setItemsProperty(sources: IPropertySource[], prop: string, value: any): void;
|
|
11874
|
+
getStyleProperty(prop: string): void;
|
|
11875
|
+
setStyleProperty(prop: string, value: any): void;
|
|
11876
|
+
setItemsStyleProperty(sources: IPropertySource[], prop: string, value: any): void;
|
|
11877
|
+
getSubStyleProperty(prop: string, style: string): void;
|
|
11878
|
+
setSubStyleProperty(prop: string, style: string, value: any): void;
|
|
11879
|
+
setItemsSubStyleProperty(sources: IPropertySource[], prop: string, style: string, value: any): void;
|
|
11880
|
+
isReadOnlyProperty(prop: IPropInfo): boolean;
|
|
11881
|
+
canPropAdoptDragSource(prop: IPropInfo, source: any): boolean;
|
|
11882
|
+
adoptPropDragSource(prop: IPropInfo, source: any): IDropResult;
|
|
11883
|
+
isCollectionProp(): boolean;
|
|
11884
|
+
isEditableCollection(): boolean;
|
|
11885
|
+
isCollectionItem(): boolean;
|
|
11886
|
+
getCollectionLabel(): string;
|
|
11887
|
+
getPropertySources(): IPropertySource[];
|
|
11888
|
+
getPopupPropLabel(prop: string): string;
|
|
11889
|
+
get provider(): IReportDataProvider;
|
|
11890
|
+
get designTime(): boolean;
|
|
11891
|
+
get isBand(): boolean;
|
|
11892
|
+
/** name */
|
|
11893
|
+
get name(): string;
|
|
11894
|
+
set name(value: string);
|
|
11895
|
+
get displayPath(): string;
|
|
11896
|
+
preparePrint(ctx: PrintContextBase, design: boolean): void;
|
|
11897
|
+
}
|
|
11898
|
+
declare enum ReportDataLinkFormat {
|
|
11899
|
+
JSON = "JSON",
|
|
11900
|
+
CSV = "CSV",
|
|
11901
|
+
SHEET = "SHEET"
|
|
11902
|
+
}
|
|
11903
|
+
declare const LocalFileTypes: readonly ["json", "csv", "excel"];
|
|
11904
|
+
interface IReportDataLink {
|
|
11905
|
+
source: 'local' | 'remote';
|
|
11906
|
+
/** remote */
|
|
11907
|
+
url?: string;
|
|
11908
|
+
method?: 'GET' | 'POST' | 'PUT';
|
|
11909
|
+
pathParams?: RegExpExecArray[];
|
|
11910
|
+
params?: {
|
|
11911
|
+
[name: string]: string;
|
|
11912
|
+
};
|
|
11913
|
+
headers?: {
|
|
11914
|
+
[name: string]: string;
|
|
11915
|
+
};
|
|
11916
|
+
format?: ReportDataLinkFormat;
|
|
11917
|
+
/** local */
|
|
11918
|
+
fileType?: typeof LocalFileTypes[number];
|
|
11919
|
+
exts?: string;
|
|
11920
|
+
/** json */
|
|
11921
|
+
dataPath?: string;
|
|
11922
|
+
/** csv & xlsx */
|
|
11923
|
+
headerRow?: number;
|
|
11924
|
+
startRow?: number;
|
|
11925
|
+
rowCount?: number;
|
|
11926
|
+
/** csv */
|
|
11927
|
+
delimiter?: string;
|
|
11928
|
+
quoted?: boolean;
|
|
11929
|
+
/** xlsx */
|
|
11930
|
+
startCol?: string;
|
|
11931
|
+
endRowCol?: string;
|
|
11932
|
+
endCheckValue?: string;
|
|
11933
|
+
useHeaderNames?: boolean;
|
|
11934
|
+
}
|
|
11935
|
+
declare abstract class LinkableReportData extends ReportData$1 implements IEditCommandStackOwner {
|
|
11936
|
+
private static readonly LOCAL_PROPS;
|
|
11937
|
+
protected _mode: 'link' | 'embed';
|
|
11938
|
+
_link?: IReportDataLink;
|
|
11939
|
+
orgLink?: IReportDataLink;
|
|
11940
|
+
private _linkCommands;
|
|
11941
|
+
constructor(name: string, link?: IReportDataLink, dp?: IReportDataProvider);
|
|
11942
|
+
editCommandStackChanged(stack: EditCommandStack$1, cmd: EditCommand$1, undoable: boolean, redoable: boolean): void;
|
|
11943
|
+
editCommandStackDirtyChanged(stack: EditCommandStack$1): void;
|
|
11944
|
+
editCommandError(command: EditCommand$1): void;
|
|
11945
|
+
onLinkChanged: (stack: EditCommandStack$1, cmd: EditCommand$1) => void;
|
|
11946
|
+
hasParams(): boolean;
|
|
11947
|
+
get isLocalLink(): boolean;
|
|
11948
|
+
updateLink(changes: IReportDataLink): void;
|
|
11949
|
+
resetLink(): void;
|
|
11950
|
+
undoLink(): void;
|
|
11951
|
+
redoLink(): void;
|
|
11952
|
+
embedPreview: boolean;
|
|
11953
|
+
get linkCommands(): EditCommandStack$1;
|
|
11954
|
+
get mode(): "embed" | "link";
|
|
11955
|
+
get dirty(): boolean;
|
|
11956
|
+
set dirty(value: boolean);
|
|
11957
|
+
isDirty(): boolean;
|
|
11958
|
+
clean(): void;
|
|
11959
|
+
get isLinkMode(): boolean;
|
|
11960
|
+
/**
|
|
11961
|
+
* link
|
|
11962
|
+
*/
|
|
11963
|
+
get link(): IReportDataLink;
|
|
11964
|
+
set link(value: IReportDataLink);
|
|
11965
|
+
get linkUrl(): string;
|
|
11966
|
+
private $_getLinkUrl;
|
|
11967
|
+
abstract loadJson(source: string, link: IReportDataLink): Promise<void>;
|
|
11968
|
+
abstract loadCsv(source: string, reader: ICsvDataReader, info: ICsvDataInfo): Promise<void>;
|
|
11969
|
+
abstract loadExcel(source: ArrayBuffer, reader: IExcelDataReader, info: IExcelDataInfo): Promise<void>;
|
|
11970
|
+
fetchData(runParams: {
|
|
11971
|
+
[param: string]: any;
|
|
11972
|
+
}): Promise<void>;
|
|
11973
|
+
private $_loadLink;
|
|
11974
|
+
saveLink(target: any): IReportDataLink;
|
|
11975
|
+
save(target?: any): any;
|
|
11976
|
+
protected abstract _doDataFetched(fetchedData: unknown): void;
|
|
11977
|
+
/**
|
|
11978
|
+
* ../{param1}/{param2} 형태의 url에서 param을 뽑아낸다.
|
|
11979
|
+
*/
|
|
11980
|
+
private $_parseUrl;
|
|
11981
|
+
}
|
|
11982
|
+
type SimpleDataValueType = {
|
|
11983
|
+
[key: string]: any;
|
|
11984
|
+
};
|
|
11985
|
+
interface ISimpleDataField {
|
|
11986
|
+
fieldName: string;
|
|
11987
|
+
dataType?: 'string' | 'number' | 'boolean' | 'array' | 'object';
|
|
11988
|
+
source?: string;
|
|
11989
|
+
expression?: string;
|
|
11990
|
+
format?: string;
|
|
11991
|
+
description?: string;
|
|
11992
|
+
sample?: any;
|
|
11993
|
+
dateReader?: DatetimeReader;
|
|
11994
|
+
width?: number;
|
|
11995
|
+
children?: any;
|
|
11996
|
+
}
|
|
11997
|
+
interface ISimpleData extends IReportData {
|
|
11998
|
+
getValues(): any;
|
|
11999
|
+
getSaveValues(): any;
|
|
12000
|
+
}
|
|
12001
|
+
/**
|
|
12002
|
+
* 단순형 값이나, json 객체를 값으로 지정한다.
|
|
12003
|
+
*/
|
|
12004
|
+
declare class SimpleData extends LinkableReportData implements ISimpleData {
|
|
12005
|
+
private _isObj;
|
|
12006
|
+
private _linkedValues;
|
|
12007
|
+
private _embeddedValues;
|
|
12008
|
+
private _dirty;
|
|
12009
|
+
onClean: () => void;
|
|
12010
|
+
constructor(name: string, values: SimpleDataValueType, link?: IReportDataLink, fields?: ISimpleDataField[], dp?: IReportDataProvider);
|
|
12011
|
+
getValue(path?: string): any;
|
|
12012
|
+
getValues(): any;
|
|
12013
|
+
setValue(path: string, value: any): void;
|
|
12014
|
+
changeName(path: string, newName: string): void;
|
|
12015
|
+
private get _values();
|
|
12016
|
+
private set _values(value);
|
|
12017
|
+
get sample(): SimpleDataValueType;
|
|
12018
|
+
get rowCount(): number;
|
|
12019
|
+
getSaveType(): string;
|
|
12020
|
+
getSaveValues(): any;
|
|
12021
|
+
setSample(values: any): void;
|
|
12022
|
+
getFieldNames(): string[];
|
|
12023
|
+
/**
|
|
12024
|
+
* 특정 모드의 데이터를 일회성으로 조작하기 위한 편의성 메서드 (callback 실행 후 모드는 원복됨)
|
|
12025
|
+
*/
|
|
12026
|
+
runInMode(mode: LinkableReportData['_mode'], callback: (() => void) | Promise<void>): void;
|
|
12027
|
+
readValue(field: ISimpleDataField, value: any): any;
|
|
12028
|
+
setSource(source: SimpleDataValueType): void;
|
|
12029
|
+
save(target: any): any;
|
|
12030
|
+
loadJson(source: string): Promise<void>;
|
|
12031
|
+
loadCsv(source: string): Promise<void>;
|
|
12032
|
+
loadExcel(source: ArrayBuffer, reader: IExcelDataReader, info: IExcelDataInfo): Promise<void>;
|
|
12033
|
+
setDirty(): void;
|
|
12034
|
+
isDirty(): boolean;
|
|
12035
|
+
clean(): void;
|
|
12036
|
+
protected _doDataFetched(fetchedData: unknown): void;
|
|
12037
|
+
private $_isSimpleValueType;
|
|
12038
|
+
}
|
|
12039
|
+
|
|
12038
12040
|
/**
|
|
12039
12041
|
* @filename BandDataSortView.ts
|
|
12040
12042
|
* @author sykim <KIMSANGYEOB>
|
|
@@ -12053,7 +12055,7 @@ declare class BandDataSortView extends Base$1 implements IBandDataSortView {
|
|
|
12053
12055
|
private _source;
|
|
12054
12056
|
private _fieldMap;
|
|
12055
12057
|
private _view;
|
|
12056
|
-
constructor(data:
|
|
12058
|
+
constructor(data: IReportData);
|
|
12057
12059
|
get rowCount(): number;
|
|
12058
12060
|
sort(field: string, direction: DataDirection): this;
|
|
12059
12061
|
getRowValue(row: number, field: string): any;
|
|
@@ -48187,10 +48189,6 @@ type ErrorParams = {
|
|
|
48187
48189
|
msg?: string;
|
|
48188
48190
|
};
|
|
48189
48191
|
|
|
48190
|
-
interface DocExportOptions {
|
|
48191
|
-
type: string;
|
|
48192
|
-
filename?: string;
|
|
48193
|
-
}
|
|
48194
48192
|
/**
|
|
48195
48193
|
* ReportViewer base class
|
|
48196
48194
|
*/
|
|
@@ -48204,7 +48202,7 @@ declare abstract class ReportViewBase {
|
|
|
48204
48202
|
abstract preview(options: PreviewOptions): void;
|
|
48205
48203
|
abstract exportPdf(options: PDFExportOptions): Promise<void>;
|
|
48206
48204
|
abstract exportImage(imageOptions: ImageExportOptions): void;
|
|
48207
|
-
abstract exportDocument(options:
|
|
48205
|
+
abstract exportDocument(options: DocumentExportOptions): void;
|
|
48208
48206
|
/**
|
|
48209
48207
|
* 컨테이너의 상태를 체크하기 위한 조건과 조건에 맞을 경우의 에러 처리코드를 넘겨 줍니다.
|
|
48210
48208
|
* checker.is 가 true이면 errorParams로 error() 를 실행 합니다.
|
|
@@ -48267,7 +48265,7 @@ declare class ReportViewer extends ReportViewBase {
|
|
|
48267
48265
|
*/
|
|
48268
48266
|
exportPdf(options: PDFExportOptions): Promise<void>;
|
|
48269
48267
|
/**
|
|
48270
|
-
* 리포트를 Blob
|
|
48268
|
+
* 리포트를 Pdf 파일 변환 후 Blob 데이터로 반환
|
|
48271
48269
|
* @param options PDFExportOptions
|
|
48272
48270
|
*/
|
|
48273
48271
|
exportPdfBlob(options: PDFExportBlobOptions): Promise<Blob>;
|
|
@@ -48276,11 +48274,21 @@ declare class ReportViewer extends ReportViewBase {
|
|
|
48276
48274
|
* @param imageOptions
|
|
48277
48275
|
*/
|
|
48278
48276
|
exportImage(imageOptions: ImageExportOptions): Promise<void>;
|
|
48277
|
+
/**
|
|
48278
|
+
* 리포트를 이미지로 변환 후 Blob 배열 형식으로 반환
|
|
48279
|
+
* @param imageOptions
|
|
48280
|
+
*/
|
|
48281
|
+
exportImageBlob(imageOptions?: ImageExportBlobOptions): Promise<Blob[]>;
|
|
48279
48282
|
/**
|
|
48280
48283
|
* 문서 내보내기 함수
|
|
48281
48284
|
* @param options
|
|
48282
48285
|
*/
|
|
48283
|
-
exportDocument(options?:
|
|
48286
|
+
exportDocument(options?: DocumentExportOptions): Promise<void>;
|
|
48287
|
+
/**
|
|
48288
|
+
* 리포트를 문서 파일 형식의 Blob 데이터로 반환
|
|
48289
|
+
* @param options
|
|
48290
|
+
*/
|
|
48291
|
+
exportDocumentBlob(options?: DocumentExportBlobOptions): Promise<Blob>;
|
|
48284
48292
|
/**
|
|
48285
48293
|
* 이메일 HTML 내보내기 함수
|
|
48286
48294
|
*/
|
|
@@ -48389,7 +48397,7 @@ declare class ReportCompositeViewer extends ReportViewBase {
|
|
|
48389
48397
|
*/
|
|
48390
48398
|
exportPdfBlob(options: PDFExportBlobOptions): Promise<Blob>;
|
|
48391
48399
|
exportImage(imageOptions: ImageExportOptions): void;
|
|
48392
|
-
exportDocument(options:
|
|
48400
|
+
exportDocument(options: DocumentExportOptions): void;
|
|
48393
48401
|
private _checkReportFormSet;
|
|
48394
48402
|
}
|
|
48395
48403
|
|
|
@@ -48528,10 +48536,24 @@ type PDFExportOptions = {
|
|
|
48528
48536
|
/**
|
|
48529
48537
|
* 권한에 따른 기능을 제한 할 수 있습니다.
|
|
48530
48538
|
*/
|
|
48531
|
-
permissions
|
|
48532
|
-
pdfVersion
|
|
48539
|
+
permissions?: PdfPermissions;
|
|
48540
|
+
pdfVersion?: '1.3' | '1.4' | '1.5' | '1.6' | '1.7' | '1.7ext3';
|
|
48533
48541
|
};
|
|
48534
48542
|
type PDFExportBlobOptions = Omit<PDFExportOptions, 'filename' | 'preview'>;
|
|
48543
|
+
interface DocumentExportOptions {
|
|
48544
|
+
type: string;
|
|
48545
|
+
filename?: string;
|
|
48546
|
+
}
|
|
48547
|
+
type DocumentExportBlobOptions = Pick<DocumentExportOptions, 'type'>;
|
|
48548
|
+
type ImageExportBlobOptions = Pick<ImageExportOptions, 'type' | 'tiff'>;
|
|
48549
|
+
/**
|
|
48550
|
+
* DEFAULT EXPORT OPTIONS
|
|
48551
|
+
*/
|
|
48552
|
+
declare const DOC_EXPORT_DEFAULT_OPTIONS: DocumentExportOptions;
|
|
48553
|
+
declare const IMG_EXPORT_DEFAULT_OPTIONS: ImageExportOptions;
|
|
48554
|
+
/**
|
|
48555
|
+
* CONSTANT ERROR MESSAGE
|
|
48556
|
+
*/
|
|
48535
48557
|
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.";
|
|
48536
48558
|
|
|
48537
|
-
export { GridReportItemSource, GridReportLayout, GridReportViewer, PDFExportBlobOptions, PDFExportOptions, PreviewOptions, PrintOptions, ReportCompositeViewer, ReportData, ReportDataSet, ReportForm, ReportFormSet, ReportFormSets, ReportOptions, ReportViewer, ZOOM_ERROR_MESSAGE };
|
|
48559
|
+
export { DOC_EXPORT_DEFAULT_OPTIONS, DocumentExportBlobOptions, DocumentExportOptions, GridReportItemSource, GridReportLayout, GridReportViewer, IMG_EXPORT_DEFAULT_OPTIONS, ImageExportBlobOptions, PDFExportBlobOptions, PDFExportOptions, PreviewOptions, PrintOptions, ReportCompositeViewer, ReportData, ReportDataSet, ReportForm, ReportFormSet, ReportFormSets, ReportOptions, ReportViewer, ZOOM_ERROR_MESSAGE };
|