@boldreports/javascript-reporting-extensions 8.1.7 → 9.1.7
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
package/signature.reportitem.js
CHANGED
|
@@ -15,11 +15,13 @@ var EJSignature = (function () {
|
|
|
15
15
|
args.minimumHeight = 15;
|
|
16
16
|
args.minimumWidth = 90;
|
|
17
17
|
};
|
|
18
|
-
EJSignature.prototype.renderItem = function (customJson, target) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
EJSignature.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
|
EJSignature.prototype.renderSignature = function () {
|
|
25
27
|
var bgColor = (this.customJSON && this.customJSON.Style) ? (this.customJSON.Style.BackgroundColor === 'Transparent' ?
|
|
@@ -91,30 +93,29 @@ var EJSignature = (function () {
|
|
|
91
93
|
dlgInstance.openDialog(this.instance, dlgData);
|
|
92
94
|
}
|
|
93
95
|
};
|
|
94
|
-
EJSignature.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
|
+
EJSignature.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
|
EJSignature.prototype.setSign = function (imgData, canvas, bgColor) {
|
|
120
121
|
if (canvas) {
|