realreport 1.7.2 → 1.7.3
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 +0 -2
- package/dist/realreport.d.ts +75 -17
- package/dist/realreport.es.js +1 -1
- package/dist/realreport.js +1 -1
- package/package.json +1 -1
package/dist/realreport.css
CHANGED
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
-moz-user-select: none;
|
|
13
13
|
-ms-user-select: none;
|
|
14
14
|
user-select: none;
|
|
15
|
-
touch-action: none;
|
|
16
15
|
-ms-touch-action: none;
|
|
17
16
|
-webkit-print-color-adjust: exact;
|
|
18
17
|
}
|
|
@@ -32,7 +31,6 @@
|
|
|
32
31
|
padding: 1px;
|
|
33
32
|
/** 현재 이 설정이 없으면 중간 빈 페이지가 출력된다! */
|
|
34
33
|
background-color: transparent;
|
|
35
|
-
pointer-events: none;
|
|
36
34
|
}
|
|
37
35
|
|
|
38
36
|
.rr-feedback-container {
|
package/dist/realreport.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="pdfkit" />
|
|
2
2
|
/// <reference types="node" />
|
|
3
3
|
/**
|
|
4
|
-
* RealReport v1.7.
|
|
5
|
-
* commit
|
|
4
|
+
* RealReport v1.7.3
|
|
5
|
+
* commit dc14be1
|
|
6
6
|
|
|
7
7
|
* Copyright (C) 2013-2023 WooriTech Inc.
|
|
8
8
|
https://real-report.com
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* RealReport Core v1.7.
|
|
13
|
+
* RealReport Core v1.7.3
|
|
14
14
|
* Copyright (C) 2013-2023 WooriTech Inc.
|
|
15
15
|
* All Rights Reserved.
|
|
16
|
-
* commit
|
|
16
|
+
* commit 0d781a39089760fda83c72c4f9c7ae91a3d011d2
|
|
17
17
|
*/
|
|
18
18
|
declare const enum Cursor$1 {
|
|
19
19
|
DEFAULT = "default",
|
|
@@ -138,6 +138,10 @@ declare namespace ResizeDirection {
|
|
|
138
138
|
function isEdge(dir: ResizeDirection): boolean;
|
|
139
139
|
function isIn(dir: ResizeDirection, ...dirs: ResizeDirection[]): boolean;
|
|
140
140
|
}
|
|
141
|
+
declare enum DataDirection {
|
|
142
|
+
ASCENDING = "ascending",
|
|
143
|
+
DESCENDING = "descending"
|
|
144
|
+
}
|
|
141
145
|
/**
|
|
142
146
|
* Find options
|
|
143
147
|
*/
|
|
@@ -1737,6 +1741,31 @@ declare class FieldValueRuntime extends ExpressionRuntime$1 {
|
|
|
1737
1741
|
evaluateFunc(idKey: number, param: string): any;
|
|
1738
1742
|
}
|
|
1739
1743
|
|
|
1744
|
+
/**
|
|
1745
|
+
* @filename BandDataView.ts
|
|
1746
|
+
* @author sykim <KIMSANGYEOB>
|
|
1747
|
+
* @date 2023.07.13
|
|
1748
|
+
* @description <밴드 데이터에서 추가적인 설정을 적용 후 표현하기 위해 작성>
|
|
1749
|
+
*/
|
|
1750
|
+
|
|
1751
|
+
interface IBandDataView {
|
|
1752
|
+
rowCount: number;
|
|
1753
|
+
sort: (field: string, direction: DataDirection) => void;
|
|
1754
|
+
getRowValue: (row: number, field: string) => any;
|
|
1755
|
+
getFieldValues: (field: string, rows?: number[]) => any[];
|
|
1756
|
+
}
|
|
1757
|
+
declare class BandDataView extends Base$1 implements IBandDataView {
|
|
1758
|
+
static readonly SOURCE_INDEX = "_sourceIndex";
|
|
1759
|
+
private _source;
|
|
1760
|
+
private _view;
|
|
1761
|
+
constructor(data: IReportData);
|
|
1762
|
+
get rowCount(): number;
|
|
1763
|
+
sort(field: string, direction: DataDirection): this;
|
|
1764
|
+
getRowValue(row: number, field: string): any;
|
|
1765
|
+
getFieldValues(field: string, rows?: number[]): any[];
|
|
1766
|
+
$_isValidField(field: string): boolean;
|
|
1767
|
+
}
|
|
1768
|
+
|
|
1740
1769
|
interface IBandDataField {
|
|
1741
1770
|
fieldName: string;
|
|
1742
1771
|
dataType?: "text" | "number" | "bool" | "datetime";
|
|
@@ -1770,7 +1799,7 @@ interface IBandData extends IReportData {
|
|
|
1770
1799
|
getFieldValues(field: string | number): any[];
|
|
1771
1800
|
equalValues(row: number, fields: string[], values: any[]): boolean;
|
|
1772
1801
|
equalRows(row1: number, row2: number, fields?: string[]): boolean;
|
|
1773
|
-
groupBy(fields: string[], rows: number[]): (number | IBandRowGroup | IBandRowGroupFooter)[];
|
|
1802
|
+
groupBy(dataView: BandDataView, fields: string[], rows: number[]): (number | IBandRowGroup | IBandRowGroupFooter)[];
|
|
1774
1803
|
}
|
|
1775
1804
|
declare abstract class BandData extends ReportData$1 {
|
|
1776
1805
|
protected _fields: IBandDataField[];
|
|
@@ -1793,7 +1822,7 @@ declare abstract class BandData extends ReportData$1 {
|
|
|
1793
1822
|
addField(index: number, field: IBandDataField): boolean;
|
|
1794
1823
|
removeField(field: IBandDataField): boolean;
|
|
1795
1824
|
abstract getRowValue(row: number, field: string | number): any;
|
|
1796
|
-
groupBy(fields: string[], subRows?: number[]): (number | IBandRowGroup | IBandRowGroupFooter)[];
|
|
1825
|
+
groupBy(dataView: BandDataView, fields: string[], subRows?: number[]): (number | IBandRowGroup | IBandRowGroupFooter)[];
|
|
1797
1826
|
readValue(field: IBandDataField, value: any): any;
|
|
1798
1827
|
readRow(row: any): any;
|
|
1799
1828
|
dateToStr(field: IBandDataField, v: Date): string;
|
|
@@ -2497,6 +2526,8 @@ declare abstract class DataBand extends ReportGroupItem {
|
|
|
2497
2526
|
static readonly PROP_DATA_BAND_END_ROW_MESSAGE = "endRowMessage";
|
|
2498
2527
|
static readonly PROP_DATA_BAND_ALWAYS_HEADER = "alwaysHeader";
|
|
2499
2528
|
static readonly PROP_DATA_BAND_NO_SPLIT = "noSplit";
|
|
2529
|
+
static readonly PROP_DATA_BAND_SORT_FIELD = "sortField";
|
|
2530
|
+
static readonly PROP_DATA_BAND_SORT_DIRECTION = "sortDirection";
|
|
2500
2531
|
static readonly PROPINFOS: IPropInfo[];
|
|
2501
2532
|
private _sectionCount;
|
|
2502
2533
|
private _sectionLayout;
|
|
@@ -2515,6 +2546,8 @@ declare abstract class DataBand extends ReportGroupItem {
|
|
|
2515
2546
|
private _repeatDetailFooter;
|
|
2516
2547
|
private _alwaysHeader;
|
|
2517
2548
|
private _noSplit;
|
|
2549
|
+
private _sortField;
|
|
2550
|
+
private _sortDirection;
|
|
2518
2551
|
private _detail;
|
|
2519
2552
|
private _master;
|
|
2520
2553
|
private _keyFlds;
|
|
@@ -2525,11 +2558,14 @@ declare abstract class DataBand extends ReportGroupItem {
|
|
|
2525
2558
|
rowIndex: number;
|
|
2526
2559
|
detailRows: number;
|
|
2527
2560
|
masterValues: any;
|
|
2561
|
+
isNextPagePrintRow: boolean;
|
|
2562
|
+
_pr: number;
|
|
2563
|
+
_currentPrintRow: number;
|
|
2528
2564
|
private _dataObj;
|
|
2529
2565
|
private _designData;
|
|
2530
2566
|
private _fieldSummary;
|
|
2531
2567
|
private _summaryRuntime;
|
|
2532
|
-
|
|
2568
|
+
private _dataView;
|
|
2533
2569
|
constructor(name: string);
|
|
2534
2570
|
get dataObj(): IBandData;
|
|
2535
2571
|
get designData(): IBandData;
|
|
@@ -2677,20 +2713,31 @@ declare abstract class DataBand extends ReportGroupItem {
|
|
|
2677
2713
|
*/
|
|
2678
2714
|
get noSplit(): boolean;
|
|
2679
2715
|
set noSplit(value: boolean);
|
|
2716
|
+
get sortField(): string;
|
|
2717
|
+
set sortField(value: string);
|
|
2718
|
+
get sortDirection(): DataDirection;
|
|
2719
|
+
set sortDirection(value: DataDirection);
|
|
2680
2720
|
/**
|
|
2681
2721
|
* summary runtime
|
|
2682
2722
|
*/
|
|
2683
2723
|
get summaryRuntime(): DataBandSummaryRuntime;
|
|
2724
|
+
/**
|
|
2725
|
+
* Data View Model
|
|
2726
|
+
*/
|
|
2727
|
+
get dataView(): BandDataView;
|
|
2728
|
+
/**
|
|
2729
|
+
* current Print Row Index
|
|
2730
|
+
*/
|
|
2731
|
+
get currentPrintRow(): number;
|
|
2732
|
+
set currentPrintRow(value: number);
|
|
2684
2733
|
prepareIndices(ctx: PrintContext): void;
|
|
2685
2734
|
protected abstract _doPrepareIndices(ctx: PrintContext): void;
|
|
2686
2735
|
getColPoints(w: number, x?: number): number[];
|
|
2687
2736
|
getColWidth(w: number): number;
|
|
2688
|
-
getValues(
|
|
2689
|
-
protected _selectRow(
|
|
2690
|
-
abstract getNextDetailRows(
|
|
2691
|
-
protected _getNextDetailRows(
|
|
2692
|
-
abstract skipDetailRows(ctx: PrintContext): void;
|
|
2693
|
-
protected _skipDetailRows(ctx: PrintContext, from: number): number;
|
|
2737
|
+
getValues(dataView: BandDataView, row: number, fields: string[]): any[];
|
|
2738
|
+
protected _selectRow(dataView: BandDataView, row: number, idx: number): boolean;
|
|
2739
|
+
abstract getNextDetailRows(dataView: BandDataView, from?: number): number[];
|
|
2740
|
+
protected _getNextDetailRows(dataView: BandDataView, from: number): number[];
|
|
2694
2741
|
getRowsPerPage(): {
|
|
2695
2742
|
rowsPerPage: number;
|
|
2696
2743
|
breakRowsPerPage: boolean;
|
|
@@ -3056,8 +3103,7 @@ declare class TableBand extends DataBand {
|
|
|
3056
3103
|
protected _doPreparePrint(ctx: PrintContext): void;
|
|
3057
3104
|
protected _doPrepareIndices(ctx: PrintContext): void;
|
|
3058
3105
|
remove(item: ReportPageItem): void;
|
|
3059
|
-
getNextDetailRows(
|
|
3060
|
-
skipDetailRows(ctx: PrintContext): void;
|
|
3106
|
+
getNextDetailRows(dataView: BandDataView, from?: number): number[];
|
|
3061
3107
|
containsInSection(item: ReportItem): boolean;
|
|
3062
3108
|
}
|
|
3063
3109
|
|
|
@@ -3331,8 +3377,7 @@ declare class SimpleBand extends DataBand {
|
|
|
3331
3377
|
protected _doPreparePrint(ctx: PrintContext): void;
|
|
3332
3378
|
protected _doPrepareIndices(ctx: PrintContext): void;
|
|
3333
3379
|
canRemove(item: ReportItem): boolean;
|
|
3334
|
-
getNextDetailRows(
|
|
3335
|
-
skipDetailRows(ctx: PrintContext): void;
|
|
3380
|
+
getNextDetailRows(dataView: BandDataView, from?: number): number[];
|
|
3336
3381
|
containsInSection(item: ReportItem): boolean;
|
|
3337
3382
|
}
|
|
3338
3383
|
|
|
@@ -5572,6 +5617,7 @@ declare abstract class ReportItem extends ReportPageItem {
|
|
|
5572
5617
|
*/
|
|
5573
5618
|
getPrintValue(dp: IReportDataProvider, row: number): any;
|
|
5574
5619
|
getLinkValue(dp: IReportDataProvider, row: number): any;
|
|
5620
|
+
getDataViewValue(dv: BandDataView, row: number): any;
|
|
5575
5621
|
protected _getParentData(): string;
|
|
5576
5622
|
canRemoveFrom(): boolean;
|
|
5577
5623
|
canAdoptDragSource(source: any): boolean;
|
|
@@ -6789,6 +6835,16 @@ declare class PrintContext extends Base$1 {
|
|
|
6789
6835
|
saveBand(): void;
|
|
6790
6836
|
restoreBand(): void;
|
|
6791
6837
|
getBaseView(view: InheritableSectionElement<any>, viewType: string): InheritableSectionElement<any>;
|
|
6838
|
+
/**
|
|
6839
|
+
* - 현재 출력중인 data row를 반환
|
|
6840
|
+
* @returns 0부터 시작하며 현재 출력중인 band의 row index 반환
|
|
6841
|
+
*/
|
|
6842
|
+
getPrintingRow(): number;
|
|
6843
|
+
/**
|
|
6844
|
+
* - 정렬 적용 후에도 onGetValue, onGetStyles 이벤트에서 사용하는 row 인자에 원본 데이터의 index를 반환하기 위해 작성
|
|
6845
|
+
* @returns 원본 데이터의 index 반환
|
|
6846
|
+
*/
|
|
6847
|
+
getSourceIndex(): number;
|
|
6792
6848
|
}
|
|
6793
6849
|
type ContextValueCallback = (ctx: PrintContext) => any;
|
|
6794
6850
|
declare class PageBreaker {
|
|
@@ -6845,6 +6901,7 @@ interface IReportData {
|
|
|
6845
6901
|
getSaveType(): string;
|
|
6846
6902
|
getSaveValues(): any;
|
|
6847
6903
|
getValue(path: string): any;
|
|
6904
|
+
getValues(): any[];
|
|
6848
6905
|
}
|
|
6849
6906
|
interface IReportDataProvider {
|
|
6850
6907
|
designTime?: boolean;
|
|
@@ -6883,6 +6940,7 @@ declare class SimpleData extends ReportData$1 implements IReportData {
|
|
|
6883
6940
|
* TODO: array index
|
|
6884
6941
|
*/
|
|
6885
6942
|
getValue(path?: string): any;
|
|
6943
|
+
getValues(): any;
|
|
6886
6944
|
get sample(): any;
|
|
6887
6945
|
setSample(values: any): void;
|
|
6888
6946
|
getFieldNames(): string[];
|