@progress/telerik-jquery-report-viewer 25.25.211 → 26.25.521
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/README.md +1 -1
- package/dist/cjs/accessibility.js +22 -64
- package/dist/cjs/aiPrompt.js +311 -0
- package/dist/cjs/base-component.js +8 -11
- package/dist/cjs/binder.js +12 -12
- package/dist/cjs/command.js +44 -25
- package/dist/cjs/commandSet.js +78 -53
- package/dist/cjs/components/button.js +41 -0
- package/dist/cjs/components/toggle-button.js +47 -0
- package/dist/cjs/constants.js +22 -0
- package/dist/cjs/documentMapArea.js +114 -93
- package/dist/cjs/event-emitter.js +2 -8
- package/dist/cjs/history.js +13 -12
- package/dist/cjs/index.js +4 -12
- package/dist/cjs/mainMenu.js +38 -28
- package/dist/cjs/mem-storage.js +7 -13
- package/dist/cjs/notificationService.js +128 -0
- package/dist/cjs/parameterValidators.js +26 -25
- package/dist/cjs/parameters.js +180 -161
- package/dist/cjs/parametersArea.js +306 -298
- package/dist/cjs/perspectives.js +23 -27
- package/dist/cjs/report-viewer/report-viewer-settings.js +4 -10
- package/dist/cjs/reportViewer.js +441 -190
- package/dist/cjs/search.js +218 -328
- package/dist/cjs/sendEmail.js +259 -264
- package/dist/cjs/service-client-sentinel.js +1 -1
- package/dist/cjs/sideMenu.js +20 -16
- package/dist/cjs/sr.js +9 -5
- package/dist/cjs/template-cache.js +2 -2
- package/dist/cjs/toolbar/button.js +18 -0
- package/dist/cjs/toolbar/link-button.js +6 -12
- package/dist/cjs/toolbar/page-count-label.js +1 -1
- package/dist/cjs/toolbar/page-number-input.js +16 -14
- package/dist/cjs/toolbar.js +186 -0
- package/dist/cjs/touch.js +8 -8
- package/dist/cjs/uiController.js +70 -57
- package/dist/cjs/utils.js +20 -207
- package/dist/font/font-icons.css +25 -222
- package/dist/font/font-icons.min.css +3 -3
- package/dist/js/telerikReportViewer.js +8173 -9110
- package/dist/js/telerikReportViewer.kendo.js +105616 -60642
- package/dist/js/telerikReportViewer.kendo.min.js +2 -2
- package/dist/js/telerikReportViewer.min.js +1 -1
- package/dist/js/telerikReportViewer.stringResources.js +9 -5
- package/dist/styles/telerikReportViewer.css +3 -3
- package/dist/styles/telerikReportViewer.min.css +3 -3
- package/dist/templates/telerikReportViewerTemplate.html +299 -238
- package/package.json +2 -3
- package/dist/cjs/controller.js +0 -1226
- package/dist/cjs/kendo-jquery.js +0 -4
- package/dist/cjs/pagesArea.js +0 -625
- package/dist/cjs/print.js +0 -165
- package/dist/cjs/scroll.js +0 -535
- package/dist/cjs/serviceClient.js +0 -311
- package/dist/cjs/telerikReportViewer.kendo.js +0 -60196
- package/dist/cjs/telerikReportViewer.kendo.min.js +0 -19776
- package/dist/cjs/uiFreezeCoordinator.js +0 -282
- package/dist/es/accessibility.js +0 -204
- package/dist/es/base-component.js +0 -22
- package/dist/es/binder.js +0 -75
- package/dist/es/command.js +0 -28
- package/dist/es/commandSet.js +0 -163
- package/dist/es/controller.js +0 -1222
- package/dist/es/documentMapArea.js +0 -161
- package/dist/es/domUtils.js +0 -43
- package/dist/es/enums.js +0 -41
- package/dist/es/event-emitter.js +0 -127
- package/dist/es/events.js +0 -20
- package/dist/es/globalSettings.js +0 -5
- package/dist/es/history.js +0 -131
- package/dist/es/index.js +0 -25
- package/dist/es/jqueryThrottleDebounce.js +0 -46
- package/dist/es/kendo-jquery.js +0 -1
- package/dist/es/mainMenu.js +0 -319
- package/dist/es/mem-storage.js +0 -40
- package/dist/es/pagesArea.js +0 -621
- package/dist/es/parameterValidators.js +0 -160
- package/dist/es/parameters.js +0 -916
- package/dist/es/parametersArea.js +0 -493
- package/dist/es/perspectives.js +0 -134
- package/dist/es/print.js +0 -161
- package/dist/es/report-viewer/report-viewer-settings.js +0 -134
- package/dist/es/reportViewer.js +0 -666
- package/dist/es/scroll.js +0 -531
- package/dist/es/search.js +0 -580
- package/dist/es/sendEmail.js +0 -388
- package/dist/es/service-client-sentinel.js +0 -49
- package/dist/es/serviceClient.js +0 -307
- package/dist/es/sideMenu.js +0 -212
- package/dist/es/sr.js +0 -164
- package/dist/es/stringResources.js +0 -7
- package/dist/es/telerikReportViewer.kendo.js +0 -60194
- package/dist/es/telerikReportViewer.kendo.min.js +0 -19774
- package/dist/es/template-cache.js +0 -35
- package/dist/es/toolbar/link-button.js +0 -38
- package/dist/es/toolbar/page-count-label.js +0 -14
- package/dist/es/toolbar/page-number-input.js +0 -60
- package/dist/es/touch.js +0 -82
- package/dist/es/uiController.js +0 -138
- package/dist/es/uiFreezeCoordinator.js +0 -278
- package/dist/es/utils.js +0 -444
- package/dist/templates/telerikReportViewerTemplate-FA.html +0 -317
- /package/dist/font/{ReportingIcons-19.0.25.211.ttf → ReportingIcons-19.1.25.521.ttf} +0 -0
@@ -1,161 +0,0 @@
|
|
1
|
-
import { stringResources } from './stringResources.js';
|
2
|
-
import { DocumentMapAreaPositions } from './enums.js';
|
3
|
-
import { GlobalSettings } from './globalSettings.js';
|
4
|
-
|
5
|
-
var defaultOptions = {};
|
6
|
-
function DocumentMapArea(placeholder, options, otherOptions) {
|
7
|
-
options = $.extend({}, defaultOptions, options, otherOptions);
|
8
|
-
var controller = options.controller;
|
9
|
-
if (!controller) {
|
10
|
-
throw "No controller (telerikReporting.reportViewerController) has been specified.";
|
11
|
-
}
|
12
|
-
var $placeholder = $(placeholder);
|
13
|
-
var $documentMap;
|
14
|
-
var documentMapVisible = options.documentMapVisible !== false;
|
15
|
-
var enableAccessibility = options.enableAccessibility;
|
16
|
-
var currentReport = null;
|
17
|
-
var documentMapNecessary = false;
|
18
|
-
init();
|
19
|
-
function init() {
|
20
|
-
$documentMap = $('<div id="' + options.viewerSelector + '-documentMap"></div>');
|
21
|
-
$documentMap.appendTo(placeholder);
|
22
|
-
attach();
|
23
|
-
replaceStringResources($placeholder);
|
24
|
-
}
|
25
|
-
function onTreeViewSelectionChanged(e) {
|
26
|
-
var documentMapNode = this.dataItem(e.node);
|
27
|
-
var page = documentMapNode.page;
|
28
|
-
var id = documentMapNode.id;
|
29
|
-
controller.navigateToPage(page, {
|
30
|
-
type: "bookmark",
|
31
|
-
id
|
32
|
-
});
|
33
|
-
}
|
34
|
-
function onTreeViewNodeExpand(e) {
|
35
|
-
if (enableAccessibility) {
|
36
|
-
window.setTimeout(function() {
|
37
|
-
setNodeAccessibilityAttributes(e.node);
|
38
|
-
}, 100);
|
39
|
-
}
|
40
|
-
}
|
41
|
-
function setNodeAccessibilityAttributes(node) {
|
42
|
-
var $items = $(node).find("li");
|
43
|
-
Array.from($items).forEach((item) => {
|
44
|
-
var $li = $(item);
|
45
|
-
$li.attr("aria-label", $li[0].innerText);
|
46
|
-
});
|
47
|
-
}
|
48
|
-
function resetReportAndClearItems() {
|
49
|
-
documentMapNecessary = false;
|
50
|
-
showDocumentMap(false);
|
51
|
-
var r = controller.getReportSource().report;
|
52
|
-
var clearMapItems = currentReport !== r || !isVisible();
|
53
|
-
currentReport = r;
|
54
|
-
if (clearMapItems) {
|
55
|
-
clearDocumentMap();
|
56
|
-
}
|
57
|
-
}
|
58
|
-
function clearDocumentMap() {
|
59
|
-
displayDocumentMap([]);
|
60
|
-
}
|
61
|
-
function displayDocumentMap(documentMap) {
|
62
|
-
var hasDocumentMap = documentMap && !$.isEmptyObject(documentMap);
|
63
|
-
var $treeView = $documentMap.data("kendoTreeView");
|
64
|
-
if (!$treeView) {
|
65
|
-
try {
|
66
|
-
$documentMap.kendoTreeView({
|
67
|
-
dataTextField: "text",
|
68
|
-
select: onTreeViewSelectionChanged
|
69
|
-
});
|
70
|
-
$treeView = $documentMap.data("kendoTreeView");
|
71
|
-
} catch (e) {
|
72
|
-
console.error("Instantiation of Kendo TreeView as Document Map threw an exception", e);
|
73
|
-
throw e;
|
74
|
-
}
|
75
|
-
}
|
76
|
-
$treeView.setDataSource(documentMap);
|
77
|
-
if (enableAccessibility) {
|
78
|
-
setAccessibilityAttributes($treeView);
|
79
|
-
}
|
80
|
-
showDocumentMap(hasDocumentMap);
|
81
|
-
}
|
82
|
-
function setAccessibilityAttributes(treeView) {
|
83
|
-
treeView.bind("expand", onTreeViewNodeExpand);
|
84
|
-
treeView.element.attr("aria-label", stringResources.ariaLabelDocumentMap);
|
85
|
-
var listItems = treeView.element.find("ul");
|
86
|
-
Array.from(listItems).forEach((list) => {
|
87
|
-
setNodeAccessibilityAttributes(list);
|
88
|
-
});
|
89
|
-
if (documentMapNecessary) {
|
90
|
-
setSplitbarAccessibilityAttributes();
|
91
|
-
}
|
92
|
-
}
|
93
|
-
function setSplitbarAccessibilityAttributes() {
|
94
|
-
var splitbar = $placeholder.next();
|
95
|
-
if (options.documentMapAreaPosition === DocumentMapAreaPositions.RIGHT) {
|
96
|
-
splitbar = $placeholder.prev();
|
97
|
-
}
|
98
|
-
splitbar.attr("aria-label", stringResources.ariaLabelDocumentMapSplitter);
|
99
|
-
}
|
100
|
-
function isVisible() {
|
101
|
-
var args = {};
|
102
|
-
controller.getDocumentMapState(args);
|
103
|
-
return args.visible;
|
104
|
-
}
|
105
|
-
function beginLoad() {
|
106
|
-
$placeholder.addClass("trv-loading");
|
107
|
-
}
|
108
|
-
function endLoad() {
|
109
|
-
$placeholder.removeClass("trv-loading");
|
110
|
-
}
|
111
|
-
function showDocumentMap(show) {
|
112
|
-
var splitter = GlobalSettings.viewerInstances.find((element) => element.id === options.viewerSelector + "-document-map-splitter").instance;
|
113
|
-
var sibling = $placeholder.next();
|
114
|
-
if (options.documentMapAreaPosition === DocumentMapAreaPositions.RIGHT) {
|
115
|
-
sibling = $placeholder.prev();
|
116
|
-
}
|
117
|
-
if (splitter) {
|
118
|
-
(documentMapNecessary ? $.fn.removeClass : $.fn.addClass).call(sibling, "trv-hidden");
|
119
|
-
splitter.toggle(".trv-document-map", show);
|
120
|
-
}
|
121
|
-
}
|
122
|
-
function attach() {
|
123
|
-
controller.beforeLoadParameters(function() {
|
124
|
-
resetReportAndClearItems();
|
125
|
-
}).beginLoadReport(function() {
|
126
|
-
beginLoad();
|
127
|
-
}).reportLoadComplete(function(event, args) {
|
128
|
-
if (args.documentMapAvailable) {
|
129
|
-
documentMapNecessary = true;
|
130
|
-
displayDocumentMap(args.documentMapNodes);
|
131
|
-
controller.setDocumentMapVisible({ enabled: true, visible: documentMapVisible });
|
132
|
-
} else {
|
133
|
-
documentMapNecessary = false;
|
134
|
-
showDocumentMap(documentMapNecessary);
|
135
|
-
}
|
136
|
-
endLoad();
|
137
|
-
}).error(function(event, error) {
|
138
|
-
endLoad();
|
139
|
-
clearDocumentMap();
|
140
|
-
}).renderingStopped(function() {
|
141
|
-
documentMapNecessary = false;
|
142
|
-
showDocumentMap(false);
|
143
|
-
});
|
144
|
-
controller.setDocumentMapVisible(function(event, args) {
|
145
|
-
documentMapVisible = args.visible;
|
146
|
-
showDocumentMap(documentMapVisible && documentMapNecessary);
|
147
|
-
}).getDocumentMapState(function(event, args) {
|
148
|
-
args.enabled = documentMapNecessary;
|
149
|
-
args.visible = documentMapVisible;
|
150
|
-
});
|
151
|
-
}
|
152
|
-
function replaceStringResources($documentMap2) {
|
153
|
-
var $documentMapOverlay = $documentMap2.find(".trv-document-map-overlay");
|
154
|
-
if (!$documentMapOverlay) {
|
155
|
-
return;
|
156
|
-
}
|
157
|
-
$documentMapOverlay.attr("aria-label", stringResources[$documentMapOverlay.attr("aria-label")]);
|
158
|
-
}
|
159
|
-
}
|
160
|
-
|
161
|
-
export { DocumentMapArea };
|
package/dist/es/domUtils.js
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
import { stringFormat } from './utils.js';
|
2
|
-
|
3
|
-
function toPixels(value) {
|
4
|
-
return parseInt(value, 10) || 0;
|
5
|
-
}
|
6
|
-
function getMargins(dom) {
|
7
|
-
var $target = $(dom);
|
8
|
-
return {
|
9
|
-
left: toPixels($target.css("marginLeft")),
|
10
|
-
right: toPixels($target.css("marginRight")),
|
11
|
-
top: toPixels($target.css("marginTop")),
|
12
|
-
bottom: toPixels($target.css("marginBottom"))
|
13
|
-
};
|
14
|
-
}
|
15
|
-
function getPadding(dom) {
|
16
|
-
var $target = $(dom);
|
17
|
-
return {
|
18
|
-
left: toPixels($target.css("paddingLeft")),
|
19
|
-
right: toPixels($target.css("paddingRight")),
|
20
|
-
top: toPixels($target.css("paddingTop")),
|
21
|
-
bottom: toPixels($target.css("paddingBottom"))
|
22
|
-
};
|
23
|
-
}
|
24
|
-
function getBorderWidth(dom) {
|
25
|
-
var $target = $(dom);
|
26
|
-
return {
|
27
|
-
left: toPixels($target.css("borderLeftWidth")),
|
28
|
-
right: toPixels($target.css("borderRightWidth")),
|
29
|
-
top: toPixels($target.css("borderTopWidth")),
|
30
|
-
bottom: toPixels($target.css("borderBottomWidth"))
|
31
|
-
};
|
32
|
-
}
|
33
|
-
function scale(dom, scaleX, scaleY, originX, originY) {
|
34
|
-
scaleX = scaleX || 1;
|
35
|
-
scaleY = scaleY || 1;
|
36
|
-
originX = originX || 0;
|
37
|
-
originY = originY || 0;
|
38
|
-
var scale2 = stringFormat("scale({0}, {1})", [scaleX, scaleY]);
|
39
|
-
var origin = stringFormat("{0} {1}", [originX, originY]);
|
40
|
-
$(dom).css("transform", scale2).css("transform-origin", origin);
|
41
|
-
}
|
42
|
-
|
43
|
-
export { getBorderWidth, getMargins, getPadding, scale };
|
package/dist/es/enums.js
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
const ViewModes = {
|
2
|
-
INTERACTIVE: "INTERACTIVE",
|
3
|
-
PRINT_PREVIEW: "PRINT_PREVIEW"
|
4
|
-
};
|
5
|
-
const PrintModes = {
|
6
|
-
AUTO_SELECT: "AUTO_SELECT",
|
7
|
-
FORCE_PDF_PLUGIN: "FORCE_PDF_PLUGIN",
|
8
|
-
FORCE_PDF_FILE: "FORCE_PDF_FILE"
|
9
|
-
};
|
10
|
-
const PageModes = {
|
11
|
-
SINGLE_PAGE: "SINGLE_PAGE",
|
12
|
-
CONTINUOUS_SCROLL: "CONTINUOUS_SCROLL"
|
13
|
-
};
|
14
|
-
const ScaleModes = {
|
15
|
-
FIT_PAGE_WIDTH: "FIT_PAGE_WIDTH",
|
16
|
-
FIT_PAGE: "FIT_PAGE",
|
17
|
-
SPECIFIC: "SPECIFIC"
|
18
|
-
};
|
19
|
-
const ParameterTypes = {
|
20
|
-
INTEGER: "System.Int64",
|
21
|
-
FLOAT: "System.Double",
|
22
|
-
STRING: "System.String",
|
23
|
-
DATETIME: "System.DateTime",
|
24
|
-
BOOLEAN: "System.Boolean"
|
25
|
-
};
|
26
|
-
const ParameterEditorTypes = {
|
27
|
-
COMBO_BOX: "COMBO_BOX",
|
28
|
-
LIST_VIEW: "LIST_VIEW"
|
29
|
-
};
|
30
|
-
const ParametersAreaPositions = {
|
31
|
-
RIGHT: "RIGHT",
|
32
|
-
LEFT: "LEFT",
|
33
|
-
TOP: "TOP",
|
34
|
-
BOTTOM: "BOTTOM"
|
35
|
-
};
|
36
|
-
const DocumentMapAreaPositions = {
|
37
|
-
RIGHT: "RIGHT",
|
38
|
-
LEFT: "LEFT"
|
39
|
-
};
|
40
|
-
|
41
|
-
export { DocumentMapAreaPositions, PageModes, ParameterEditorTypes, ParameterTypes, ParametersAreaPositions, PrintModes, ScaleModes, ViewModes };
|
package/dist/es/event-emitter.js
DELETED
@@ -1,127 +0,0 @@
|
|
1
|
-
var __defProp = Object.defineProperty;
|
2
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
3
|
-
var __publicField = (obj, key, value) => {
|
4
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
5
|
-
return value;
|
6
|
-
};
|
7
|
-
class EventEmitter extends EventTarget {
|
8
|
-
constructor() {
|
9
|
-
super();
|
10
|
-
__publicField(this, "_events");
|
11
|
-
__publicField(this, "_eventsCount");
|
12
|
-
this._events = {};
|
13
|
-
this._eventsCount = 0;
|
14
|
-
}
|
15
|
-
/**
|
16
|
-
* @param {string} type
|
17
|
-
* @param {(event: CustomEvent, ...args: any[]) => void} listener
|
18
|
-
* @returns
|
19
|
-
*/
|
20
|
-
addListener(type, listener) {
|
21
|
-
if (typeof listener !== "function") {
|
22
|
-
throw new TypeError("listener must be a function");
|
23
|
-
}
|
24
|
-
if (!this._events[type]) {
|
25
|
-
this._events[type] = [];
|
26
|
-
}
|
27
|
-
function wrappedListener(event) {
|
28
|
-
listener.call(this, event, ...event.detail);
|
29
|
-
}
|
30
|
-
wrappedListener.listener = listener;
|
31
|
-
this._events[type].push(wrappedListener);
|
32
|
-
this._eventsCount++;
|
33
|
-
this.addEventListener(type, wrappedListener.bind(this));
|
34
|
-
return this;
|
35
|
-
}
|
36
|
-
/**
|
37
|
-
* @alias addListener
|
38
|
-
* @param {string} type
|
39
|
-
* @param {(event: CustomEvent, ...args: any[]) => void} listener
|
40
|
-
* @returns
|
41
|
-
*/
|
42
|
-
on(type, listener) {
|
43
|
-
return this.addListener(type, listener);
|
44
|
-
}
|
45
|
-
/**
|
46
|
-
* @param {string} type
|
47
|
-
* @param {any[]} args
|
48
|
-
* @returns
|
49
|
-
*/
|
50
|
-
trigger(type, ...args) {
|
51
|
-
if (!this._events[type]) {
|
52
|
-
return void 0;
|
53
|
-
}
|
54
|
-
const event = new CustomEvent(type, {
|
55
|
-
detail: args,
|
56
|
-
cancelable: true
|
57
|
-
});
|
58
|
-
return this.dispatchEvent(event);
|
59
|
-
}
|
60
|
-
/**
|
61
|
-
* @alias trigger
|
62
|
-
* @param {string} type
|
63
|
-
* @param {any[]} args
|
64
|
-
* @returns
|
65
|
-
*/
|
66
|
-
emit(type, ...args) {
|
67
|
-
return this.trigger(type, ...args);
|
68
|
-
}
|
69
|
-
/**
|
70
|
-
* @param {string} type
|
71
|
-
* @param {(event: CustomEvent, ...args: any[]) => void} listener
|
72
|
-
* @returns
|
73
|
-
*/
|
74
|
-
removeListener(type, listener) {
|
75
|
-
if (!this._events[type]) {
|
76
|
-
return this;
|
77
|
-
}
|
78
|
-
this._events[type] = this._events[type].filter((wrappedListener) => {
|
79
|
-
if (wrappedListener.listener !== listener) {
|
80
|
-
return true;
|
81
|
-
}
|
82
|
-
this.removeEventListener(type, wrappedListener);
|
83
|
-
return false;
|
84
|
-
});
|
85
|
-
if (this._events[type].length === 0) {
|
86
|
-
delete this._events[type];
|
87
|
-
this._eventsCount--;
|
88
|
-
}
|
89
|
-
return this;
|
90
|
-
}
|
91
|
-
/**
|
92
|
-
* @param {string} type
|
93
|
-
* @returns
|
94
|
-
*/
|
95
|
-
removeAllListeners(type) {
|
96
|
-
if (type === void 0) {
|
97
|
-
Object.keys(this._events).forEach((eventType) => {
|
98
|
-
this.removeAllListeners(eventType);
|
99
|
-
});
|
100
|
-
return this;
|
101
|
-
}
|
102
|
-
if (this._events[type]) {
|
103
|
-
this._events[type].forEach((wrappedListener) => {
|
104
|
-
this.removeEventListener(type, wrappedListener);
|
105
|
-
});
|
106
|
-
delete this._events[type];
|
107
|
-
this._eventsCount--;
|
108
|
-
}
|
109
|
-
return this;
|
110
|
-
}
|
111
|
-
/**
|
112
|
-
* @param {string} type
|
113
|
-
* @param {(event: CustomEvent, ...args: any[]) => void} listener
|
114
|
-
* @returns
|
115
|
-
*/
|
116
|
-
off(type, listener) {
|
117
|
-
if (type === void 0) {
|
118
|
-
return this.removeAllListeners();
|
119
|
-
}
|
120
|
-
if (listener === void 0) {
|
121
|
-
return this.removeAllListeners(type);
|
122
|
-
}
|
123
|
-
return this.removeListener(type, listener);
|
124
|
-
}
|
125
|
-
}
|
126
|
-
|
127
|
-
export { EventEmitter };
|
package/dist/es/events.js
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
const Events = {
|
2
|
-
EXPORT_BEGIN: "EXPORT_BEGIN",
|
3
|
-
EXPORT_END: "EXPORT_END",
|
4
|
-
PRINT_BEGIN: "PRINT_BEGIN",
|
5
|
-
PRINT_END: "PRINT_END",
|
6
|
-
RENDERING_BEGIN: "RENDERING_BEGIN",
|
7
|
-
RENDERING_END: "RENDERING_END",
|
8
|
-
PAGE_READY: "PAGE_READY",
|
9
|
-
ERROR: "ERROR",
|
10
|
-
UPDATE_UI: "UPDATE_UI",
|
11
|
-
INTERACTIVE_ACTION_EXECUTING: "INTERACTIVE_ACTION_EXECUTING",
|
12
|
-
INTERACTIVE_ACTION_ENTER: "INTERACTIVE_ACTION_ENTER",
|
13
|
-
INTERACTIVE_ACTION_LEAVE: "INTERACTIVE_ACTION_LEAVE",
|
14
|
-
VIEWER_TOOLTIP_OPENING: "VIEWER_TOOLTIP_OPENING",
|
15
|
-
SEND_EMAIL_BEGIN: "SEND_EMAIL_BEGIN",
|
16
|
-
SEND_EMAIL_END: "SEND_EMAIL_END",
|
17
|
-
PARAMETERS_LOADED: "PARAMETERS_LOADED"
|
18
|
-
};
|
19
|
-
|
20
|
-
export { Events };
|
package/dist/es/history.js
DELETED
@@ -1,131 +0,0 @@
|
|
1
|
-
import { reportSourcesAreEqual } from './utils.js';
|
2
|
-
|
3
|
-
function HistoryManager(options) {
|
4
|
-
var controller = options.controller;
|
5
|
-
if (!controller) {
|
6
|
-
throw "No controller (telerikReporting.reportViewerController) has been specified.";
|
7
|
-
}
|
8
|
-
var settings = options.settings;
|
9
|
-
var history = settings.getHistory() || { records: [], position: -1 };
|
10
|
-
controller.loadedReportChange(function() {
|
11
|
-
addToHistory(true);
|
12
|
-
}).currentPageChanged(function() {
|
13
|
-
updatePageInfo();
|
14
|
-
}).reportLoadComplete(function(event, args) {
|
15
|
-
addToHistory(false);
|
16
|
-
}).clientExpired(function() {
|
17
|
-
var records = history.records;
|
18
|
-
for (var i = 0; i < records.length; i++) {
|
19
|
-
records[i].reportDocumentId = null;
|
20
|
-
}
|
21
|
-
});
|
22
|
-
function getCurrentRecord() {
|
23
|
-
var records = history.records;
|
24
|
-
if (records.length > 0) {
|
25
|
-
return records[history.position];
|
26
|
-
}
|
27
|
-
return null;
|
28
|
-
}
|
29
|
-
function pushRecord(rec) {
|
30
|
-
var records = history.records;
|
31
|
-
var position = history.position;
|
32
|
-
records = Array.prototype.slice.call(records, 0, position + 1);
|
33
|
-
records.push(rec);
|
34
|
-
history.records = records;
|
35
|
-
history.position = records.length - 1;
|
36
|
-
saveSettings();
|
37
|
-
}
|
38
|
-
function saveSettings() {
|
39
|
-
settings.setHistory(history);
|
40
|
-
}
|
41
|
-
function updatePageInfo() {
|
42
|
-
var currentRecord = getCurrentRecord();
|
43
|
-
if (currentRecord) {
|
44
|
-
currentRecord.pageNumber = controller.getCurrentPageNumber();
|
45
|
-
currentRecord.viewMode = controller.getViewMode();
|
46
|
-
currentRecord.reportDocumentId = controller.getReportDocumentId();
|
47
|
-
saveSettings();
|
48
|
-
}
|
49
|
-
}
|
50
|
-
function addToHistory(temp) {
|
51
|
-
removeTempRecordsFromHistory();
|
52
|
-
var currentRecord = getCurrentRecord();
|
53
|
-
var rs = controller.getReportSource();
|
54
|
-
if (!currentRecord || !reportSourcesAreEqual(currentRecord.reportSource, rs)) {
|
55
|
-
pushRecord({
|
56
|
-
reportSource: rs,
|
57
|
-
pageNumber: 1,
|
58
|
-
temp
|
59
|
-
});
|
60
|
-
}
|
61
|
-
}
|
62
|
-
function exec(currentRecord, reportChanged) {
|
63
|
-
controller.setReportDocumentId(currentRecord.reportDocumentId);
|
64
|
-
controller.setViewMode(currentRecord.viewMode);
|
65
|
-
controller.setReportSource(currentRecord.reportSource);
|
66
|
-
controller.refreshReport(false, reportChanged, currentRecord.reportDocumentId);
|
67
|
-
controller.navigateToPage(currentRecord.pageNumber);
|
68
|
-
}
|
69
|
-
function canMove(step) {
|
70
|
-
var position = history.position;
|
71
|
-
var length = history.records.length;
|
72
|
-
var newPos = position + step;
|
73
|
-
return 0 <= newPos && newPos < length;
|
74
|
-
}
|
75
|
-
function move(step) {
|
76
|
-
var position = history.position;
|
77
|
-
var length = history.records.length;
|
78
|
-
var newPos = position + step;
|
79
|
-
if (newPos < 0) {
|
80
|
-
newPos = 0;
|
81
|
-
} else if (newPos >= length) {
|
82
|
-
newPos = length - 1;
|
83
|
-
}
|
84
|
-
if (newPos != position) {
|
85
|
-
var currentRecord = getCurrentRecord();
|
86
|
-
var currentReport = currentRecord.reportSource ? currentRecord.reportSource.report : "";
|
87
|
-
history.position = newPos;
|
88
|
-
saveSettings();
|
89
|
-
var newRecord = getCurrentRecord();
|
90
|
-
var newReport = newRecord.reportSource ? newRecord.reportSource.report : "";
|
91
|
-
exec(newRecord, currentReport !== newReport);
|
92
|
-
}
|
93
|
-
}
|
94
|
-
function removeTempRecordsFromHistory() {
|
95
|
-
var lastIndex = history.records.length - 1;
|
96
|
-
while (lastIndex >= 0) {
|
97
|
-
if (history.records[lastIndex].temp === true) {
|
98
|
-
history.records.splice(lastIndex, 1);
|
99
|
-
if (history.position >= lastIndex) {
|
100
|
-
history.position--;
|
101
|
-
}
|
102
|
-
} else {
|
103
|
-
break;
|
104
|
-
}
|
105
|
-
lastIndex--;
|
106
|
-
}
|
107
|
-
}
|
108
|
-
return {
|
109
|
-
back: function() {
|
110
|
-
move(-1);
|
111
|
-
},
|
112
|
-
forward: function() {
|
113
|
-
move(1);
|
114
|
-
},
|
115
|
-
canMoveBack: function() {
|
116
|
-
return canMove(-1);
|
117
|
-
},
|
118
|
-
canMoveForward: function() {
|
119
|
-
return canMove(1);
|
120
|
-
},
|
121
|
-
loadCurrent: function() {
|
122
|
-
var rec = getCurrentRecord();
|
123
|
-
if (rec) {
|
124
|
-
exec(rec, false);
|
125
|
-
}
|
126
|
-
return Boolean(rec);
|
127
|
-
}
|
128
|
-
};
|
129
|
-
}
|
130
|
-
|
131
|
-
export { HistoryManager };
|
package/dist/es/index.js
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
import * as domUtils from './domUtils.js';
|
2
|
-
export { domUtils };
|
3
|
-
import * as utils from './utils.js';
|
4
|
-
export { utils };
|
5
|
-
export { Accessibility } from './accessibility.js';
|
6
|
-
export { Binder } from './binder.js';
|
7
|
-
export { CommandSet } from './commandSet.js';
|
8
|
-
export { ReportViewerController } from './controller.js';
|
9
|
-
export { DocumentMapAreaPositions, PageModes, ParameterEditorTypes, ParameterTypes, ParametersAreaPositions, PrintModes, ScaleModes, ViewModes } from './enums.js';
|
10
|
-
export { Events } from './events.js';
|
11
|
-
export { GlobalSettings } from './globalSettings.js';
|
12
|
-
export { HistoryManager } from './history.js';
|
13
|
-
export { PagesArea } from './pagesArea.js';
|
14
|
-
export { ParameterEditors, parameterEditorsMatch } from './parameters.js';
|
15
|
-
export { ParameterValidators } from './parameterValidators.js';
|
16
|
-
export { PerspectiveManager } from './perspectives.js';
|
17
|
-
export { PrintManager } from './print.js';
|
18
|
-
export { ReportViewer } from './reportViewer.js';
|
19
|
-
export { Scroll } from './scroll.js';
|
20
|
-
export { ServiceClient } from './serviceClient.js';
|
21
|
-
import './sr.js';
|
22
|
-
export { TouchBehavior } from './touch.js';
|
23
|
-
export { UIController } from './uiController.js';
|
24
|
-
export { UIFreezeCoordinator } from './uiFreezeCoordinator.js';
|
25
|
-
export { ParametersArea } from './parametersArea.js';
|
@@ -1,46 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* jQuery throttle / debounce - v1.1 - 3/7/2010
|
3
|
-
* http://benalman.com/projects/jquery-throttle-debounce-plugin/
|
4
|
-
*
|
5
|
-
* Copyright (c) 2010 "Cowboy" Ben Alman
|
6
|
-
* Dual licensed under the MIT and GPL licenses.
|
7
|
-
* http://benalman.com/about/license/
|
8
|
-
*/
|
9
|
-
(function(window2, undefined$1) {
|
10
|
-
"$:nomunge";
|
11
|
-
var $ = window2.Cowboy || (window2.Cowboy = {}), jq_throttle;
|
12
|
-
$.throttle = jq_throttle = function(delay, no_trailing, callback, debounce_mode) {
|
13
|
-
var timeout_id, last_exec = 0;
|
14
|
-
if (typeof no_trailing !== "boolean") {
|
15
|
-
debounce_mode = callback;
|
16
|
-
callback = no_trailing;
|
17
|
-
no_trailing = undefined$1;
|
18
|
-
}
|
19
|
-
function wrapper() {
|
20
|
-
var that = this, elapsed = +/* @__PURE__ */ new Date() - last_exec, args = arguments;
|
21
|
-
function exec() {
|
22
|
-
last_exec = +/* @__PURE__ */ new Date();
|
23
|
-
callback.apply(that, args);
|
24
|
-
}
|
25
|
-
function clear() {
|
26
|
-
timeout_id = undefined$1;
|
27
|
-
}
|
28
|
-
if (debounce_mode && !timeout_id) {
|
29
|
-
exec();
|
30
|
-
}
|
31
|
-
timeout_id && clearTimeout(timeout_id);
|
32
|
-
if (debounce_mode === undefined$1 && elapsed > delay) {
|
33
|
-
exec();
|
34
|
-
} else if (no_trailing !== true) {
|
35
|
-
timeout_id = setTimeout(debounce_mode ? clear : exec, debounce_mode === undefined$1 ? delay - elapsed : delay);
|
36
|
-
}
|
37
|
-
}
|
38
|
-
if ($.guid) {
|
39
|
-
wrapper.guid = callback.guid = callback.guid || $.guid++;
|
40
|
-
}
|
41
|
-
return wrapper;
|
42
|
-
};
|
43
|
-
$.debounce = function(delay, at_begin, callback) {
|
44
|
-
return callback === undefined$1 ? jq_throttle(delay, at_begin, false) : jq_throttle(delay, callback, at_begin !== false);
|
45
|
-
};
|
46
|
-
})(window);
|
package/dist/es/kendo-jquery.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
import 'kendo-ui-core/esm/kendo.ui.core';
|