@boldreports/javascript-reporting-extensions 8.1.8 → 9.1.8
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/barcode.reportitem.js +48 -47
- package/document.reportitem.css +28 -0
- package/extension.config.js +15 -2
- package/htmldocument.reportitem.js +481 -0
- package/images/html_design_panel_icon.svg +6 -0
- package/images/html_widget_icon.svg +5 -0
- package/images/pdf_design_panel_icon.svg +8 -0
- package/images/pdf_widget_icon.svg +7 -0
- package/images/shapes.svg +8 -0
- package/package.json +1 -1
- package/pdf.signature.reportitem.js +29 -28
- package/pdfdocument.reportitem.js +348 -0
- package/qrbarcode.reportitem.js +84 -83
- package/shape.reportitem.css +6 -0
- package/shape.reportitem.js +1358 -0
- package/signature.reportitem.js +29 -28
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M35 38L35 44C35 45.1046 34.1046 46 33 46H9C7.89543 46 7 45.1046 7 44V10C7 8.89543 7.89543 8 9 8H24.4882M35 25.8125V18.6875M35 18.6875L24.4882 8M35 18.6875H26.4882C25.3836 18.6875 24.4882 17.7921 24.4882 16.6875V8" stroke="#0787FF" stroke-width="2"/>
|
|
3
|
+
<rect x="13" y="25.3438" width="25.4375" height="12.7188" rx="2.3125" stroke="#EC7838"/>
|
|
4
|
+
<path d="M20.5581 32.9643H18.9642V31.8475H20.5581C20.7753 31.8475 20.9514 31.8132 21.0864 31.7445C21.2214 31.6758 21.3198 31.581 21.3814 31.4602C21.446 31.3365 21.4783 31.1978 21.4783 31.044C21.4783 30.8791 21.446 30.7266 21.3814 30.5865C21.3198 30.4464 21.2214 30.3338 21.0864 30.2486C20.9514 30.1607 20.7753 30.1168 20.5581 30.1168H19.5454V35H18V29H20.5581C21.0717 29 21.5135 29.0879 21.8833 29.2637C22.2561 29.4396 22.5423 29.6813 22.7419 29.989C22.9415 30.294 23.0413 30.6429 23.0413 31.0357C23.0413 31.4231 22.9415 31.761 22.7419 32.0495C22.5423 32.3379 22.2561 32.5632 21.8833 32.7253C21.5135 32.8846 21.0717 32.9643 20.5581 32.9643Z" fill="#0787FF"/>
|
|
5
|
+
<path d="M25.956 35H24.5338L24.5427 33.8874H25.956C26.2495 33.8874 26.4975 33.8214 26.7001 33.6896C26.9055 33.5577 27.0611 33.3613 27.1668 33.1003C27.2754 32.8365 27.3297 32.5124 27.3297 32.1277V31.8681C27.3297 31.5797 27.2988 31.3269 27.2372 31.1099C27.1785 30.8901 27.0904 30.7074 26.973 30.5618C26.8556 30.4135 26.7089 30.3022 26.5327 30.228C26.3596 30.1538 26.16 30.1168 25.934 30.1168H24.5074V29H25.934C26.3684 29 26.7661 29.0701 27.1271 29.2102C27.4911 29.3475 27.8052 29.5453 28.0693 29.8036C28.3365 30.0591 28.5419 30.3626 28.6857 30.7143C28.8325 31.0632 28.9059 31.4505 28.9059 31.8764V32.1277C28.9059 32.5508 28.8325 32.9382 28.6857 33.2898C28.5419 33.6415 28.3379 33.9451 28.0737 34.2005C27.8096 34.456 27.497 34.6538 27.1359 34.794C26.7778 34.9313 26.3845 35 25.956 35ZM25.4188 29V35H23.8734V29H25.4188Z" fill="#0787FF"/>
|
|
6
|
+
<path d="M31.257 29V35H29.7116V29H31.257ZM33.749 31.4973V32.6099H30.8167V31.4973H33.749ZM34 29V30.1168H30.8167V29H34Z" fill="#0787FF"/>
|
|
7
|
+
<path d="M35 43H40C41.1046 43 42 42.1046 42 41V5C42 3.89543 41.1046 3 40 3H16C14.8954 3 14 3.89543 14 5V9" stroke="#0787FF" stroke-width="2"/>
|
|
8
|
+
</svg>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M35 35.5V38C35 39.1046 34.1046 40 33 40H10C8.89543 40 8 39.1046 8 38V10C8 8.89543 8.89543 8 10 8H33C34.1046 8 35 8.89543 35 10V21.5" stroke="#0787FF" stroke-width="2"/>
|
|
3
|
+
<rect x="18" y="22" width="22" height="13" rx="2" stroke="#EC7838"/>
|
|
4
|
+
<path d="M23.5581 29.6984H21.9642V28.3748H23.5581C23.7753 28.3748 23.9514 28.3341 24.0864 28.2527C24.2214 28.1713 24.3198 28.059 24.3814 27.9158C24.446 27.7692 24.4783 27.6048 24.4783 27.4225C24.4783 27.2271 24.446 27.0464 24.3814 26.8803C24.3198 26.7143 24.2214 26.5808 24.0864 26.4799C23.9514 26.3757 23.7753 26.3236 23.5581 26.3236H22.5454V32.1111H21V25H23.5581C24.0717 25 24.5135 25.1042 24.8833 25.3126C25.2561 25.521 25.5423 25.8075 25.7419 26.1722C25.9415 26.5336 26.0413 26.9471 26.0413 27.4127C26.0413 27.8718 25.9415 28.2723 25.7419 28.6142C25.5423 28.956 25.2561 29.223 24.8833 29.4151C24.5135 29.604 24.0717 29.6984 23.5581 29.6984Z" fill="#0787FF"/>
|
|
5
|
+
<path d="M28.956 32.1111H27.5338L27.5427 30.7924H28.956C29.2495 30.7924 29.4975 30.7143 29.7001 30.558C29.9055 30.4017 30.0611 30.1689 30.1668 29.8596C30.2754 29.547 30.3297 29.1628 30.3297 28.707V28.3993C30.3297 28.0574 30.2988 27.7578 30.2372 27.5006C30.1785 27.2401 30.0904 27.0236 29.973 26.851C29.8556 26.6752 29.7089 26.5433 29.5327 26.4554C29.3596 26.3675 29.16 26.3236 28.934 26.3236H27.5074V25H28.934C29.3684 25 29.7661 25.083 30.1271 25.2491C30.4911 25.4119 30.8052 25.6463 31.0693 25.9524C31.3365 26.2552 31.5419 26.615 31.6857 27.0317C31.8325 27.4453 31.9059 27.9044 31.9059 28.409V28.707C31.9059 29.2084 31.8325 29.6675 31.6857 30.0842C31.5419 30.501 31.3379 30.8608 31.0737 31.1636C30.8096 31.4664 30.497 31.7009 30.1359 31.8669C29.7778 32.0297 29.3845 32.1111 28.956 32.1111ZM28.4188 25V32.1111H26.8734V25H28.4188Z" fill="#0787FF"/>
|
|
6
|
+
<path d="M34.257 25V32.1111H32.7116V25H34.257ZM36.749 27.9597V29.2784H33.8167V27.9597H36.749ZM37 25V26.3236H33.8167V25H37Z" fill="#0787FF"/>
|
|
7
|
+
</svg>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<mask id="path-1-inside-1_24_23" fill="white">
|
|
3
|
+
<rect x="12.8042" y="5.42285" width="22.3916" height="22.5655" rx="0.786771"/>
|
|
4
|
+
</mask>
|
|
5
|
+
<rect x="12.8042" y="5.42285" width="22.3916" height="22.5655" rx="0.786771" fill="#FF8900" stroke="#FF8900" stroke-width="2.83238" mask="url(#path-1-inside-1_24_23)"/>
|
|
6
|
+
<ellipse cx="15.7337" cy="30.9997" rx="12.0728" ry="11.8913" fill="#0787FF"/>
|
|
7
|
+
<path d="M30.5499 18.2657L41.2194 37.3282C41.2293 37.3458 41.2307 37.358 41.2304 37.367C41.2301 37.3781 41.2268 37.3919 41.2186 37.4058C41.2105 37.4196 41.2001 37.4293 41.1906 37.435C41.1828 37.4396 41.1715 37.4443 41.1513 37.4443H19.8123C19.7921 37.4443 19.7807 37.4396 19.773 37.435C19.7634 37.4293 19.7531 37.4196 19.7449 37.4058C19.7368 37.3919 19.7334 37.3781 19.7331 37.367C19.7329 37.358 19.7343 37.3458 19.7442 37.3282L30.4137 18.2657C30.424 18.2473 30.4338 18.2398 30.4415 18.2354C30.4512 18.23 30.4651 18.2257 30.4818 18.2257C30.4984 18.2257 30.5123 18.23 30.522 18.2354C30.5297 18.2398 30.5396 18.2473 30.5499 18.2657Z" fill="#FFDE33" stroke="#FFDE33" stroke-width="1.40506"/>
|
|
8
|
+
</svg>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@boldreports/javascript-reporting-extensions",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.1.8",
|
|
4
4
|
"description": "The Bold Reports Extensions by Syncfusion contains scripts and themes for barcode report item to be integrated in JavaScript Report Viewer and JavaScript Report Designer for enterprise web development(HTML5)",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,11 +15,13 @@ var EJPDFSignature = (function () {
|
|
|
15
15
|
args.minimumHeight = 15;
|
|
16
16
|
args.minimumWidth = 90;
|
|
17
17
|
};
|
|
18
|
-
EJPDFSignature.prototype.renderItem = function (customJson, target) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
EJPDFSignature.prototype.renderItem = function (customJson, target, eventData) {
|
|
19
|
+
if (eventData.eventName === 'begin') {
|
|
20
|
+
this.customJSON = customJson;
|
|
21
|
+
this.rootElement = target;
|
|
22
|
+
this.customItemInstance = target.data('CustomItem');
|
|
23
|
+
this.renderSignature();
|
|
24
|
+
}
|
|
23
25
|
};
|
|
24
26
|
EJPDFSignature.prototype.renderSignature = function () {
|
|
25
27
|
var bgColor = (this.customJSON && this.customJSON.Style) ? (this.customJSON.Style.BackgroundColor === 'Transparent' ?
|
|
@@ -91,30 +93,29 @@ var EJPDFSignature = (function () {
|
|
|
91
93
|
dlgInstance.openDialog(this.instance, dlgData);
|
|
92
94
|
}
|
|
93
95
|
};
|
|
94
|
-
EJPDFSignature.prototype.getPropertyGridItems = function () {
|
|
95
|
-
var
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}
|
|
96
|
+
EJPDFSignature.prototype.getPropertyGridItems = function (baseProperties) {
|
|
97
|
+
var itemProperties = [{
|
|
98
|
+
'CategoryId': 'basicsettings',
|
|
99
|
+
'DisplayName': 'categoryBasicSettings',
|
|
100
|
+
'IsExpand': true,
|
|
101
|
+
'IsIgnoreCommon': true,
|
|
102
|
+
'Items': [{
|
|
103
|
+
ItemId: 'signature',
|
|
104
|
+
Name: 'signature',
|
|
105
|
+
DisplayName: 'signature',
|
|
106
|
+
ItemType: 'CustomBtn',
|
|
107
|
+
IsVisible: true
|
|
108
|
+
}]
|
|
109
|
+
}];
|
|
110
|
+
baseProperties.HeaderText = this.customJSON.Name;
|
|
111
|
+
baseProperties.PropertyType = 'sign';
|
|
112
|
+
baseProperties.SubType = 'signature';
|
|
113
|
+
baseProperties.IsEditHeader = true;
|
|
114
|
+
baseProperties.Items = $.merge(itemProperties, baseProperties.Items);
|
|
115
|
+
baseProperties.getItemProperty = {
|
|
116
|
+
event: $.proxy(this.customAction, this), eventData: {}
|
|
116
117
|
};
|
|
117
|
-
return
|
|
118
|
+
return baseProperties;
|
|
118
119
|
};
|
|
119
120
|
EJPDFSignature.prototype.setSign = function (imgData, canvas, bgColor) {
|
|
120
121
|
if (canvas) {
|
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
var EJPdfDocument = (function () {
|
|
2
|
+
function EJPdfDocument(rptDesigner) {
|
|
3
|
+
this.customJSON = null;
|
|
4
|
+
this.rootElement = null;
|
|
5
|
+
this.customItemDiv = null;
|
|
6
|
+
this.reportDesigner = null;
|
|
7
|
+
this.reportDesigner = rptDesigner;
|
|
8
|
+
}
|
|
9
|
+
EJPdfDocument.prototype.initializeItem = function (args) {
|
|
10
|
+
args.isBuildInService = false;
|
|
11
|
+
args.defaultHeight = 160;
|
|
12
|
+
args.defaultWidth = 160;
|
|
13
|
+
args.minimumHeight = 15;
|
|
14
|
+
args.minimumWidth = 90;
|
|
15
|
+
};
|
|
16
|
+
EJPdfDocument.prototype.renderItem = function (customJson, target, eventData) {
|
|
17
|
+
if (eventData.eventName === 'begin') {
|
|
18
|
+
this.customJSON = customJson;
|
|
19
|
+
this.rootElement = target;
|
|
20
|
+
this.renderPdfItem();
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
EJPdfDocument.prototype.renderPdfItem = function () {
|
|
24
|
+
this.customItemDiv = ej.buildTag('div.customitem', '', {
|
|
25
|
+
'width': '100%', 'height': '100%', 'border': '1pt dotted gray', 'box-sizing': 'border-box',
|
|
26
|
+
'-moz-box-sizing': 'border-box', '-webkit-box-sizing': 'border-box', 'overflow': 'hidden', 'position': 'absolute',
|
|
27
|
+
}, {
|
|
28
|
+
'id': this.customJSON.Name + '_customItem'
|
|
29
|
+
});
|
|
30
|
+
var pdfItem = ej.buildTag('div.e-rptdesigner-pdfdocument', '');
|
|
31
|
+
this.customItemDiv.append(pdfItem);
|
|
32
|
+
this.rootElement.append(this.customItemDiv);
|
|
33
|
+
};
|
|
34
|
+
EJPdfDocument.prototype.onPropertyChange = function (name, oldValue, newValue) {
|
|
35
|
+
var args = [];
|
|
36
|
+
for (var _i = 3; _i < arguments.length; _i++) {
|
|
37
|
+
args[_i - 3] = arguments[_i];
|
|
38
|
+
}
|
|
39
|
+
switch (name) {
|
|
40
|
+
case 'Sizing':
|
|
41
|
+
this.updatePropertyVal(name, newValue);
|
|
42
|
+
break;
|
|
43
|
+
case 'DocumentValue':
|
|
44
|
+
this.updatePropertyVal(name, newValue);
|
|
45
|
+
break;
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
EJPdfDocument.prototype.updatePropertyUIValue = function (name, value) {
|
|
49
|
+
};
|
|
50
|
+
EJPdfDocument.prototype.onPositionChanged = function (top, left) {
|
|
51
|
+
};
|
|
52
|
+
EJPdfDocument.prototype.onSizeChanged = function (height, width) {
|
|
53
|
+
if (!ej.isNullOrUndefined(height) && !ej.isNullOrUndefined(width)) {
|
|
54
|
+
this.customItemDiv.css({
|
|
55
|
+
width: width,
|
|
56
|
+
height: height
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
else if (!ej.isNullOrUndefined(height) && ej.isNullOrUndefined(width)) {
|
|
60
|
+
this.customItemDiv.css({
|
|
61
|
+
height: height
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
else if (ej.isNullOrUndefined(height) && !ej.isNullOrUndefined(width)) {
|
|
65
|
+
this.customItemDiv.css({
|
|
66
|
+
width: width
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
EJPdfDocument.prototype.getPropertyGridItems = function (baseProperties) {
|
|
71
|
+
var itemProperties = [{
|
|
72
|
+
'CategoryId': 'basicsettings',
|
|
73
|
+
'DisplayName': 'categoryBasicSettings',
|
|
74
|
+
'IsExpand': true,
|
|
75
|
+
'Items': [{
|
|
76
|
+
'ItemId': 'pdfurl',
|
|
77
|
+
'Name': 'DocumentValue',
|
|
78
|
+
'DisplayName': 'url',
|
|
79
|
+
'Value': this.getPropertyVal('DocumentValue'),
|
|
80
|
+
'ItemType': 'TextBox'
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
'ItemId': 'pdfsizing',
|
|
84
|
+
'Name': 'Sizing',
|
|
85
|
+
'DisplayName': 'sizing',
|
|
86
|
+
'Value': this.getPropertyVal('Sizing'),
|
|
87
|
+
'ItemType': 'DropDown',
|
|
88
|
+
'EnableExpression': false,
|
|
89
|
+
'ValueList': [{ text: 'auto', value: 'AutoSize' }, { text: 'fitPage', value: 'FitToPageSize' }]
|
|
90
|
+
}]
|
|
91
|
+
}];
|
|
92
|
+
baseProperties.HeaderText = this.customJSON.Name;
|
|
93
|
+
baseProperties.PropertyType = 'pdfdocument';
|
|
94
|
+
baseProperties.SubType = 'pdfdocument';
|
|
95
|
+
baseProperties.IsEditHeader = true;
|
|
96
|
+
this.updateItemVisibility(baseProperties.Items, ['backgroundcolor'], false);
|
|
97
|
+
baseProperties.Items = $.merge(itemProperties, baseProperties.Items);
|
|
98
|
+
return baseProperties;
|
|
99
|
+
};
|
|
100
|
+
EJPdfDocument.prototype.updateItemVisibility = function (categories, itemId, newValue) {
|
|
101
|
+
for (var index = 0; index < categories.length; index++) {
|
|
102
|
+
for (var itemIndex = 0; itemIndex < categories[index].Items.length; itemIndex++) {
|
|
103
|
+
if (itemId.indexOf(categories[index].Items[itemIndex].ItemId) !== -1) {
|
|
104
|
+
categories[index].Items[itemIndex].IsVisible = newValue;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
EJPdfDocument.prototype.getPropertyVal = function (name) {
|
|
110
|
+
if (this.customJSON.CustomProperties && this.customJSON.CustomProperties.length > 0) {
|
|
111
|
+
for (var index = 0; index < this.customJSON.CustomProperties.length; index++) {
|
|
112
|
+
if (this.customJSON.CustomProperties[index].Name === name) {
|
|
113
|
+
return this.customJSON.CustomProperties[index].Value;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
return null;
|
|
118
|
+
};
|
|
119
|
+
EJPdfDocument.prototype.setPropertyVal = function (name, val) {
|
|
120
|
+
if (this.customJSON.CustomProperties === null) {
|
|
121
|
+
this.customJSON.CustomProperties = [];
|
|
122
|
+
}
|
|
123
|
+
this.customJSON.CustomProperties.push(new ej.ReportModel.CustomProperty(name, val));
|
|
124
|
+
};
|
|
125
|
+
EJPdfDocument.prototype.updatePropertyVal = function (propertyName, value) {
|
|
126
|
+
if (this.customJSON.CustomProperties && this.customJSON.CustomProperties.length > 0) {
|
|
127
|
+
for (var index = 0; index < this.customJSON.CustomProperties.length; index++) {
|
|
128
|
+
if (this.customJSON.CustomProperties[index].Name === propertyName) {
|
|
129
|
+
this.customJSON.CustomProperties[index].Value = value;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
EJPdfDocument.prototype.getReportItemJson = function () {
|
|
135
|
+
if (this.customJSON === null) {
|
|
136
|
+
this.customJSON = new ej.ReportModel.CustomReportItem().getModel();
|
|
137
|
+
this.setPropertyVal('DocumentValue', '');
|
|
138
|
+
this.setPropertyVal('Sizing', 'AutoSize');
|
|
139
|
+
}
|
|
140
|
+
return this.customJSON;
|
|
141
|
+
};
|
|
142
|
+
EJPdfDocument.prototype.setReportItemJson = function (reportItem) {
|
|
143
|
+
this.customJSON = reportItem;
|
|
144
|
+
};
|
|
145
|
+
EJPdfDocument.prototype.dispose = function () {
|
|
146
|
+
this.customJSON = null;
|
|
147
|
+
this.rootElement = null;
|
|
148
|
+
this.customItemDiv = null;
|
|
149
|
+
this.reportDesigner = null;
|
|
150
|
+
};
|
|
151
|
+
EJPdfDocument.prototype.undoRedoAction = function (args) {
|
|
152
|
+
};
|
|
153
|
+
EJPdfDocument.prototype.getLocale = function (text) {
|
|
154
|
+
var pdfLocale;
|
|
155
|
+
var defaultLocale = EJPdfDocument.Locale['en-US'];
|
|
156
|
+
if (this.reportDesigner && !ej.isNullOrUndefined(this.reportDesigner.model) &&
|
|
157
|
+
!ej.isNullOrUndefined(EJPdfDocument.Locale[this.reportDesigner.model.locale])) {
|
|
158
|
+
pdfLocale = EJPdfDocument.Locale[this.reportDesigner.model.locale];
|
|
159
|
+
}
|
|
160
|
+
else {
|
|
161
|
+
pdfLocale = defaultLocale;
|
|
162
|
+
}
|
|
163
|
+
switch (text.toLowerCase()) {
|
|
164
|
+
case 'categorybasicsettings':
|
|
165
|
+
if (pdfLocale && pdfLocale.categoryBasicSettings) {
|
|
166
|
+
return pdfLocale.categoryBasicSettings;
|
|
167
|
+
}
|
|
168
|
+
return defaultLocale.categoryBasicSettings;
|
|
169
|
+
case 'sizing':
|
|
170
|
+
if (pdfLocale && pdfLocale.sizing) {
|
|
171
|
+
return pdfLocale.sizing;
|
|
172
|
+
}
|
|
173
|
+
return defaultLocale.sizing;
|
|
174
|
+
case 'url':
|
|
175
|
+
if (pdfLocale && pdfLocale.url) {
|
|
176
|
+
return pdfLocale.url;
|
|
177
|
+
}
|
|
178
|
+
return defaultLocale.url;
|
|
179
|
+
case 'auto':
|
|
180
|
+
if (pdfLocale && pdfLocale.sizeTypes.auto) {
|
|
181
|
+
return pdfLocale.sizeTypes.auto;
|
|
182
|
+
}
|
|
183
|
+
return defaultLocale.sizeTypes.auto;
|
|
184
|
+
case 'fitpage':
|
|
185
|
+
if (pdfLocale && pdfLocale.sizeTypes.fitPage) {
|
|
186
|
+
return pdfLocale.sizeTypes.fitPage;
|
|
187
|
+
}
|
|
188
|
+
return defaultLocale.sizeTypes.fitPage;
|
|
189
|
+
}
|
|
190
|
+
return text;
|
|
191
|
+
};
|
|
192
|
+
return EJPdfDocument;
|
|
193
|
+
}());
|
|
194
|
+
EJPdfDocument.Locale = {};
|
|
195
|
+
EJPdfDocument.Locale['en-US'] = {
|
|
196
|
+
url: 'URL',
|
|
197
|
+
categoryBasicSettings: 'Basic Settings',
|
|
198
|
+
sizing: 'Sizing',
|
|
199
|
+
sizeTypes: {
|
|
200
|
+
auto: 'AutoSize',
|
|
201
|
+
fitPage: 'FitToPageSize'
|
|
202
|
+
},
|
|
203
|
+
toolTip: {
|
|
204
|
+
requirements: 'Display any PDF File',
|
|
205
|
+
description: 'Display the pdf document content in the report',
|
|
206
|
+
title: 'PDF'
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
EJPdfDocument.Locale['ar-AE'] = {
|
|
210
|
+
url: 'URL',
|
|
211
|
+
categoryBasicSettings: 'الإعدادات الأساسية',
|
|
212
|
+
sizing: 'تغيير الحجم',
|
|
213
|
+
sizeTypes: {
|
|
214
|
+
auto: 'الحجم التلقائي',
|
|
215
|
+
fitPage: 'ملاءمة لحجم الصفحة'
|
|
216
|
+
},
|
|
217
|
+
toolTip: {
|
|
218
|
+
requirements: 'عرض أي ملف PDF',
|
|
219
|
+
description: 'عرض محتوى مستند PDF في التقرير',
|
|
220
|
+
title: 'PDF'
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
EJPdfDocument.Locale['fr-FR'] = {
|
|
224
|
+
url: 'URL',
|
|
225
|
+
categoryBasicSettings: 'Paramètres de base',
|
|
226
|
+
sizing: 'Dimensionnement',
|
|
227
|
+
sizeTypes: {
|
|
228
|
+
auto: 'Taille automatique',
|
|
229
|
+
fitPage: 'ملاءمة لحجم الصفحة'
|
|
230
|
+
},
|
|
231
|
+
toolTip: {
|
|
232
|
+
requirements: 'Afficher n\'importe quel fichier PDF',
|
|
233
|
+
description: 'Afficher le contenu du document PDF dans le rapport',
|
|
234
|
+
title: 'PDF'
|
|
235
|
+
}
|
|
236
|
+
};
|
|
237
|
+
EJPdfDocument.Locale['de-DE'] = {
|
|
238
|
+
url: 'URL',
|
|
239
|
+
categoryBasicSettings: 'Grundeinstellungen',
|
|
240
|
+
sizing: 'Größenanpassung',
|
|
241
|
+
sizeTypes: {
|
|
242
|
+
auto: 'Automatische Größe',
|
|
243
|
+
fitPage: 'An Seitengröße anpassen'
|
|
244
|
+
},
|
|
245
|
+
toolTip: {
|
|
246
|
+
requirements: 'Beliebige PDF-Datei anzeigen',
|
|
247
|
+
description: 'PDF-Dokumentinhalt im Bericht anzeigen',
|
|
248
|
+
title: 'PDF'
|
|
249
|
+
}
|
|
250
|
+
};
|
|
251
|
+
EJPdfDocument.Locale['en-AU'] = {
|
|
252
|
+
url: 'URL',
|
|
253
|
+
categoryBasicSettings: 'Basic Settings',
|
|
254
|
+
sizing: 'Sizing',
|
|
255
|
+
sizeTypes: {
|
|
256
|
+
auto: 'AutoSize',
|
|
257
|
+
fitPage: 'FitToPageSize'
|
|
258
|
+
},
|
|
259
|
+
toolTip: {
|
|
260
|
+
requirements: 'Display any PDF File',
|
|
261
|
+
description: 'Display the PDF document content in the report',
|
|
262
|
+
title: 'PDF'
|
|
263
|
+
}
|
|
264
|
+
};
|
|
265
|
+
EJPdfDocument.Locale['en-CA'] = {
|
|
266
|
+
url: 'URL',
|
|
267
|
+
categoryBasicSettings: 'Basic Settings',
|
|
268
|
+
sizing: 'Sizing',
|
|
269
|
+
sizeTypes: {
|
|
270
|
+
auto: 'AutoSize',
|
|
271
|
+
fitPage: 'FitToPageSize'
|
|
272
|
+
},
|
|
273
|
+
toolTip: {
|
|
274
|
+
requirements: 'Display any PDF File',
|
|
275
|
+
description: 'Display the PDF document content in the report',
|
|
276
|
+
title: 'PDF'
|
|
277
|
+
}
|
|
278
|
+
};
|
|
279
|
+
EJPdfDocument.Locale['es-ES'] = {
|
|
280
|
+
url: 'URL',
|
|
281
|
+
categoryBasicSettings: 'Configuración básica',
|
|
282
|
+
sizing: 'Tamaño',
|
|
283
|
+
sizeTypes: {
|
|
284
|
+
auto: 'Tamaño automático',
|
|
285
|
+
fitPage: 'Ajustar al tamaño de la página'
|
|
286
|
+
},
|
|
287
|
+
toolTip: {
|
|
288
|
+
requirements: 'Mostrar cualquier archivo PDF',
|
|
289
|
+
description: 'Mostrar el contenido del documento PDF en el informe',
|
|
290
|
+
title: 'PDF'
|
|
291
|
+
}
|
|
292
|
+
};
|
|
293
|
+
EJPdfDocument.Locale['it-IT'] = {
|
|
294
|
+
url: 'URL',
|
|
295
|
+
categoryBasicSettings: 'Impostazioni di base',
|
|
296
|
+
sizing: 'Ridimensionamento',
|
|
297
|
+
sizeTypes: {
|
|
298
|
+
auto: 'Dimensione automatica',
|
|
299
|
+
fitPage: 'Adatta al formato pagina'
|
|
300
|
+
},
|
|
301
|
+
toolTip: {
|
|
302
|
+
requirements: 'Visualizza qualsiasi file PDF',
|
|
303
|
+
description: 'Visualizza il contenuto del documento PDF nel rapporto',
|
|
304
|
+
title: 'PDF'
|
|
305
|
+
}
|
|
306
|
+
};
|
|
307
|
+
EJPdfDocument.Locale['fr-CA'] = {
|
|
308
|
+
url: 'URL',
|
|
309
|
+
categoryBasicSettings: 'Paramètres de base',
|
|
310
|
+
sizing: 'Dimensionnement',
|
|
311
|
+
sizeTypes: {
|
|
312
|
+
auto: 'Taille automatique',
|
|
313
|
+
fitPage: 'Adapter à la taille de la page'
|
|
314
|
+
},
|
|
315
|
+
toolTip: {
|
|
316
|
+
requirements: 'Afficher n\'importe quel fichier PDF',
|
|
317
|
+
description: 'Afficher le contenu du document PDF dans le rapport',
|
|
318
|
+
title: 'PDF'
|
|
319
|
+
}
|
|
320
|
+
};
|
|
321
|
+
EJPdfDocument.Locale['tr-TR'] = {
|
|
322
|
+
url: 'URL',
|
|
323
|
+
categoryBasicSettings: 'Temel Ayarlar',
|
|
324
|
+
sizing: 'Boyutlandırma',
|
|
325
|
+
sizeTypes: {
|
|
326
|
+
auto: 'Otomatik Boyut',
|
|
327
|
+
fitPage: 'Sayfa Boyutuna Sığdır'
|
|
328
|
+
},
|
|
329
|
+
toolTip: {
|
|
330
|
+
requirements: 'Herhangi bir PDF dosyasını görüntüle',
|
|
331
|
+
description: 'Rapor içinde PDF belgesi içeriğini görüntüle',
|
|
332
|
+
title: 'PDF'
|
|
333
|
+
}
|
|
334
|
+
};
|
|
335
|
+
EJPdfDocument.Locale['zh-CN'] = {
|
|
336
|
+
url: 'URL',
|
|
337
|
+
categoryBasicSettings: '基本设置',
|
|
338
|
+
sizing: '调整大小',
|
|
339
|
+
sizeTypes: {
|
|
340
|
+
auto: '自动大小',
|
|
341
|
+
fitPage: '适合页面大小'
|
|
342
|
+
},
|
|
343
|
+
toolTip: {
|
|
344
|
+
requirements: '显示任何 PDF 文件',
|
|
345
|
+
description: '在报告中显示 PDF 文档的内容',
|
|
346
|
+
title: 'PDF'
|
|
347
|
+
}
|
|
348
|
+
};
|
package/qrbarcode.reportitem.js
CHANGED
|
@@ -19,10 +19,12 @@ var EJQRBarcode = (function () {
|
|
|
19
19
|
args.renderCallback = $.proxy(this.renderData, this);
|
|
20
20
|
args.loadingCallback = $.proxy(this.showIndicator, this);
|
|
21
21
|
};
|
|
22
|
-
EJQRBarcode.prototype.renderItem = function (customJson, target) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
EJQRBarcode.prototype.renderItem = function (customJson, target, eventData) {
|
|
23
|
+
if (eventData.eventName === 'begin') {
|
|
24
|
+
this.customJSON = customJson;
|
|
25
|
+
this.rootElement = target;
|
|
26
|
+
this.renderBarcode();
|
|
27
|
+
}
|
|
26
28
|
};
|
|
27
29
|
EJQRBarcode.prototype.renderBarcode = function () {
|
|
28
30
|
this.customItemDiv = ej.buildTag('div.customitem', '', {
|
|
@@ -146,85 +148,84 @@ var EJQRBarcode = (function () {
|
|
|
146
148
|
});
|
|
147
149
|
}
|
|
148
150
|
};
|
|
149
|
-
EJQRBarcode.prototype.getPropertyGridItems = function () {
|
|
150
|
-
var
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
return propertyItems;
|
|
151
|
+
EJQRBarcode.prototype.getPropertyGridItems = function (baseProperties) {
|
|
152
|
+
var itemProperties = [{
|
|
153
|
+
'CategoryId': 'basicsettings',
|
|
154
|
+
'DisplayName': 'categoryBasicSettings',
|
|
155
|
+
'IsExpand': true,
|
|
156
|
+
'Items': [
|
|
157
|
+
{
|
|
158
|
+
'ItemId': 'barcodetype',
|
|
159
|
+
'Name': 'BarcodeType',
|
|
160
|
+
'DisplayName': 'BarcodeType',
|
|
161
|
+
'Value': this.getBarcodeType(this.getPropertyVal('BarcodeType')),
|
|
162
|
+
'ItemType': 'DropDown',
|
|
163
|
+
'EnableExpression': false,
|
|
164
|
+
'DependentItems': [
|
|
165
|
+
{
|
|
166
|
+
'EnableItems': ['basicsettings_qrerrcorrlevel'],
|
|
167
|
+
'DisableItems': ['basicsettings_pdferrcorrlevel'],
|
|
168
|
+
'Value': ['QR Barcode']
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
'EnableItems': ['basicsettings_pdferrcorrlevel'],
|
|
172
|
+
'DisableItems': ['basicsettings_qrerrcorrlevel'],
|
|
173
|
+
'Value': ['PDF417']
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
'EnableItems': [],
|
|
177
|
+
'DisableItems': ['basicsettings_qrerrcorrlevel', 'basicsettings_pdferrcorrlevel'],
|
|
178
|
+
'Value': ['Data Matrix']
|
|
179
|
+
}
|
|
180
|
+
],
|
|
181
|
+
'ValueList': ['QR Barcode', 'Data Matrix', 'PDF417']
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
'ItemId': 'barcodevalue',
|
|
185
|
+
'Name': 'BarcodeValue',
|
|
186
|
+
'DisplayName': 'barcodeValue',
|
|
187
|
+
'EnableExpression': true,
|
|
188
|
+
'Value': this.getPropertyVal('BarcodeValue'),
|
|
189
|
+
'ItemType': 'TextBox'
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
'ItemId': 'displaybarcodetext',
|
|
193
|
+
'Name': 'DisplayBarcodeText',
|
|
194
|
+
'DisplayName': 'displayText',
|
|
195
|
+
'Value': this.isDisplayText() ? true : false,
|
|
196
|
+
'ItemType': 'Bool',
|
|
197
|
+
'EnableExpression': false,
|
|
198
|
+
'IsVisible': false
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
'ItemId': 'qrerrcorrlevel',
|
|
202
|
+
'Name': 'QrcodeCorrectionLevel',
|
|
203
|
+
'DisplayName': 'correctionLabel',
|
|
204
|
+
'Value': this.getQrErrCorrLevel(this.getPropertyVal('CorrectionLevel')),
|
|
205
|
+
'ParentId': 'basicsettings_barcodetype',
|
|
206
|
+
'ItemType': 'DropDown',
|
|
207
|
+
'EnableExpression': false,
|
|
208
|
+
'ValueList': this.getQrcodeCorrectionLevel()
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
'ItemId': 'pdferrcorrlevel',
|
|
212
|
+
'Name': 'Pdf417CorrectionLevel',
|
|
213
|
+
'DisplayName': 'correctionLabel',
|
|
214
|
+
'Value': this.getPdfErrCorrLevel(this.getPropertyVal('CorrectionLevel')),
|
|
215
|
+
'ParentId': 'basicsettings_barcodetype',
|
|
216
|
+
'ItemType': 'DropDown',
|
|
217
|
+
'EnableExpression': false,
|
|
218
|
+
'ValueList': this.getPDF417CorrectionLevel()
|
|
219
|
+
}
|
|
220
|
+
]
|
|
221
|
+
}
|
|
222
|
+
];
|
|
223
|
+
baseProperties.HeaderText = this.customJSON.Name;
|
|
224
|
+
baseProperties.PropertyType = 'qrbarcode';
|
|
225
|
+
baseProperties.SubType = 'qrbarcode';
|
|
226
|
+
baseProperties.IsEditHeader = true;
|
|
227
|
+
baseProperties.Items = $.merge(itemProperties, baseProperties.Items);
|
|
228
|
+
return baseProperties;
|
|
228
229
|
};
|
|
229
230
|
EJQRBarcode.prototype.getPropertyVal = function (name) {
|
|
230
231
|
if (this.customJSON.CustomProperties && this.customJSON.CustomProperties.length > 0) {
|