@progress/telerik-jquery-report-viewer 29.26.304 → 29.26.402

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 CHANGED
@@ -18,7 +18,7 @@ Major features:
18
18
 
19
19
  * Use the viewer's API for customizing and extending its behavior.
20
20
 
21
- This version of Telerik jQuery Report Viewer requires either Telerik Report Server or Telerik Reporting REST Service 20.0.26.304.
21
+ This version of Telerik jQuery Report Viewer requires either Telerik Report Server or Telerik Reporting REST Service 20.0.26.402.
22
22
 
23
23
  Learn more about Telerik Reporting Viewers here: [Telerik Report Viewers Overview](https://docs.telerik.com/reporting/embedding-reports/display-reports-in-applications/overview)
24
24
 
@@ -0,0 +1,158 @@
1
+ 'use strict';
2
+
3
+ const NoLicenseIcon = () => `<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
4
+ <path
5
+ fillRule="evenodd"
6
+ clipRule="evenodd"
7
+ d="M18.5631 11.7812H10.4369L14.5 21.2619L18.5631 11.7812ZM18.5631 9.96875H10.4369L12.3788 5.4375H16.6212L18.5631 9.96875ZM20.5351 11.7812L17.2221 19.5116L23.9861 11.7812H20.5351ZM20.5351 9.96875L18.5931 5.4375H20.8437L24.2422 9.96875H20.5351ZM8.46492 9.96875L10.4069 5.4375H8.15625L4.75781 9.96875H8.46492ZM11.7779 19.5116L8.46492 11.7812H5.01386L11.7779 19.5116ZM27.1875 10.875L14.5 25.375L1.8125 10.875L7.25 3.625H21.75L27.1875 10.875Z"
8
+ fill="black"
9
+ />
10
+ <path
11
+ d="M23.0996 15.7998L31.0811 30.7578L30.9785 30.9316H15.0215L14.918 30.7578L22.9258 15.7998H23.0996Z"
12
+ fill="#FFC000"
13
+ stroke="black"
14
+ strokeWidth="1.6"
15
+ />
16
+ <rect x="22.25" y="21" width="1.5" height="5" rx="0.75" fill="black" />
17
+ <path
18
+ d="M24 28C24 27.4477 23.5523 27 23 27C22.4479 27.0002 22 27.4478 22 28C22 28.5522 22.4479 28.9998 23 29C23.5523 29 24 28.5523 24 28Z"
19
+ fill="black"
20
+ />
21
+ </svg>`;
22
+ const ProductNotLicensedIcon = () => `<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
23
+ <path
24
+ fillRule="evenodd"
25
+ clipRule="evenodd"
26
+ d="M22.702 2.1821C24.3149 2.51082 25.8077 3.27291 27.0199 4.38645C28.2321 5.49999 29.1179 6.92286 29.582 8.5021C30.012 9.9501 30.076 11.4821 29.768 12.9621C29.3228 14.9898 28.2025 16.8063 26.5904 18.1143C24.9783 19.4223 22.9699 20.1443 20.894 20.1621C20.018 20.1621 19.146 20.0361 18.308 19.7821L16.708 21.6581L15.95 22.0081H14V25.0081L13 26.0081H10V29.0081L9 30.0081H3L2 29.0081V24.3941L2.292 23.6881L12.24 13.7401C11.9577 12.8308 11.8226 11.8821 11.84 10.9301C11.8582 9.59817 12.1701 8.28666 12.7533 7.08907C13.3365 5.89147 14.1767 4.83728 15.214 4.00164C16.2514 3.166 17.4603 2.56949 18.7546 2.25464C20.0489 1.93978 21.3967 1.91633 22.702 2.1821ZM25.338 16.5821C26.5944 15.5647 27.4681 14.1509 27.816 12.5721L27.824 12.5821C28.0718 11.4277 28.0272 10.2297 27.6943 9.09691C27.3614 7.96412 26.7507 6.93248 25.9177 6.09572C25.0847 5.25896 24.0558 4.64361 22.9246 4.30557C21.7933 3.96753 20.5955 3.91753 19.44 4.1601C17.8816 4.506 16.4837 5.36334 15.4688 6.59561C14.454 7.82789 13.8806 9.36426 13.84 10.9601C13.82 11.8721 13.98 12.7761 14.318 13.6201L14.098 14.7061L4 24.8081V28.0081H8V25.0081L9 24.0081H12V21.0081L13 20.0081H15.49L17.242 17.9761L18.364 17.6961C19.1728 18.0121 20.0337 18.1736 20.902 18.1721C22.5181 18.1597 24.082 17.5991 25.338 16.5821ZM23.662 11.1181C23.8197 10.9002 23.9318 10.6527 23.9916 10.3905C24.0515 10.1283 24.0578 9.85665 24.0103 9.59192C23.9627 9.32718 23.8622 9.07476 23.7148 8.84975C23.5675 8.62474 23.3762 8.43177 23.1526 8.28238C22.9289 8.133 22.6774 8.03026 22.4131 7.98033C22.1488 7.93039 21.8771 7.93428 21.6144 7.99176C21.3516 8.04925 21.1031 8.15914 20.8838 8.31487C20.6645 8.4706 20.4789 8.66896 20.338 8.8981C20.067 9.33887 19.9774 9.86752 20.088 10.373C20.1985 10.8784 20.5007 11.3214 20.931 11.6087C21.3613 11.8961 21.8862 12.0055 22.3954 11.914C22.9047 11.8226 23.3587 11.5373 23.662 11.1181Z"
27
+ fill="black"
28
+ />
29
+ <path
30
+ d="M23.1299 16.0186L31.1387 31.0273L31.0068 31.25H14.9932L14.8604 31.0273L22.8955 16.0186H23.1299Z"
31
+ fill="#FFC000"
32
+ stroke="black"
33
+ strokeWidth="1.5"
34
+ />
35
+ <rect x="22.25" y="21.2686" width="1.5" height="5" rx="0.75" fill="black" />
36
+ <path
37
+ d="M24 28.2686C24 27.7163 23.5523 27.2686 23 27.2686C22.4479 27.2687 22 27.7164 22 28.2686C22 28.8207 22.4479 29.2684 23 29.2686C23.5523 29.2686 24 28.8208 24 28.2686Z"
38
+ fill="black"
39
+ />
40
+ </svg>`;
41
+ const ExpiredTrialIcon = () => `<svg width="38" height="38" viewBox="0 0 38 38" fill="none" xmlns="http://www.w3.org/2000/svg">
42
+ <g clipPath="url(#clip0_1_5398)">
43
+ <path
44
+ d="M24.9056 7.60146L34.4998 10.1722L31.9299 19.7659L13.7653 30.2532L6.7419 18.0883L24.9056 7.60146Z"
45
+ stroke="black"
46
+ strokeWidth="1.75"
47
+ />
48
+ <path
49
+ d="M13.0913 19.7635L15.4762 23.8942L14.6279 24.384L12.2431 20.2533L13.0913 19.7635ZM14.3623 19.0297L14.7473 19.6964L11.3769 21.6423L10.992 20.9756L14.3623 19.0297ZM14.8475 18.7496L16.388 17.8602C16.7038 17.6778 17.0025 17.5684 17.2841 17.532C17.5675 17.4944 17.8242 17.5328 18.0542 17.6472C18.2841 17.7616 18.4772 17.954 18.6333 18.2244C18.7611 18.4457 18.833 18.6576 18.8491 18.8602C18.866 19.0598 18.8369 19.2518 18.7619 19.4364C18.6876 19.6179 18.5778 19.7923 18.4322 19.9596L18.2446 20.257L16.9055 21.0301L16.5166 20.3695L17.5124 19.7946C17.6618 19.7083 17.7704 19.6103 17.8381 19.5006C17.9059 19.3909 17.9371 19.2745 17.9317 19.1516C17.9281 19.0275 17.8903 18.9031 17.8183 18.7782C17.7418 18.6458 17.6512 18.5456 17.5463 18.4775C17.4415 18.4095 17.3242 18.3788 17.1944 18.3857C17.0647 18.3925 16.9242 18.4395 16.7729 18.5269L16.0835 18.9249L18.0834 22.3889L17.2323 22.8803L14.8475 18.7496ZM19.5417 21.547L17.5367 20.2496L18.4328 19.7247L20.4294 20.9815L20.4523 21.0212L19.5417 21.547ZM19.4746 16.0781L21.8595 20.2088L21.0112 20.6986L18.6264 16.5679L19.4746 16.0781ZM22.4103 15.3251L23.2638 19.398L22.3588 19.9205L21.5088 14.9037L22.0847 14.5712L22.4103 15.3251ZM25.3207 18.2105L22.2174 15.4365L21.7187 14.7825L22.3003 14.4467L26.2285 17.6864L25.3207 18.2105ZM24.3818 16.7023L24.7668 17.369L22.5851 18.6286L22.2002 17.9619L24.3818 16.7023ZM28.8837 15.2683L29.267 15.9321L27.1874 17.1327L26.8041 16.4689L28.8837 15.2683ZM25.0778 12.8432L27.4626 16.9739L26.6115 17.4652L24.2267 13.3345L25.0778 12.8432Z"
50
+ fill="black"
51
+ />
52
+ <circle cx="30.1049" cy="12.7084" r="1.12128" transform="rotate(15 30.1049 12.7084)" fill="black" />
53
+ </g>
54
+ <path
55
+ d="M27.6201 19.7998L35.6016 34.7578L35.499 34.9316H19.542L19.4385 34.7578L27.4463 19.7998H27.6201Z"
56
+ fill="#FFC000"
57
+ stroke="black"
58
+ strokeWidth="1.6"
59
+ />
60
+ <rect x="26.7705" y="25" width="1.5" height="5" rx="0.75" fill="black" />
61
+ <path
62
+ d="M28.5205 32C28.5205 31.4477 28.0728 31 27.5205 31C26.9684 31.0002 26.5205 31.4478 26.5205 32C26.5205 32.5522 26.9684 32.9998 27.5205 33C28.0728 33 28.5205 32.5523 28.5205 32Z"
63
+ fill="black"
64
+ />
65
+ <defs>
66
+ <clipPath id="clip0_1_5398">
67
+ <rect width="30" height="31.1538" fill="white" transform="translate(8.06323) rotate(15)" />
68
+ </clipPath>
69
+ </defs>
70
+ </svg>`;
71
+ const ExpiredLicenseSubscriptionIcon = () => `<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
72
+ <path
73
+ d="M27.8295 9.38659C28.8049 12.1653 28.7404 15.1391 27.774 17.7996C26.8014 20.4767 24.9215 22.8356 22.2691 24.367C19.7765 25.8061 16.9908 26.2908 14.3393 25.9323C11.6293 25.5682 9.06228 24.3215 7.08577 22.3155L8.23679 21.1826C9.95578 22.9294 12.1925 24.0142 14.5527 24.333C16.8583 24.6438 19.2821 24.2206 21.457 22.965C23.7719 21.6284 25.4118 19.5739 26.2565 17.2495C27.0643 15.0253 27.1474 12.5486 26.3976 10.2107L24.951 11.0459L25.5942 7.15112L29.2888 8.54145L27.8284 9.38462L27.8295 9.38659Z"
74
+ fill="black"
75
+ />
76
+ <path
77
+ fillRule="evenodd"
78
+ clipRule="evenodd"
79
+ d="M16.3594 8.08301C17.1842 8.16959 17.8382 8.41741 18.3281 8.8252C18.8135 9.2331 19.1263 9.78023 19.2607 10.4639L17.2939 10.6875C17.1732 10.1497 16.8607 9.78518 16.3594 9.59375V12.2617C17.6035 12.5557 18.4514 12.9408 18.9004 13.4102C19.3516 13.8819 19.5771 14.4863 19.5771 15.2246C19.5771 16.0494 19.2949 16.7425 18.7275 17.3076C18.1601 17.8728 17.3712 18.2233 16.3594 18.3623V19.6387H15.2334V18.3779C14.3448 18.2822 13.6246 17.9934 13.0664 17.5059C12.5081 17.0182 12.155 16.3275 12 15.4365L14.0127 15.2266C14.0947 15.5912 14.2497 15.9036 14.4775 16.168C14.7053 16.4321 14.9555 16.6218 15.2334 16.7402V13.8799C14.2264 13.6247 13.4906 13.2395 13.0234 12.7246C12.554 12.2073 12.3164 11.5801 12.3164 10.8418C12.3165 10.0946 12.5834 9.46575 13.1143 8.95996C13.6452 8.45184 14.3516 8.16053 15.2334 8.08301V7C15.6731 7 15.9197 7 16.3594 7V8.08301ZM16.3574 16.8535H16.3594C16.7467 16.7783 17.0661 16.6149 17.3076 16.3643C17.5537 16.1113 17.6738 15.8147 17.6738 15.4707C17.6738 15.1677 17.5715 14.9033 17.3643 14.6846C17.1615 14.4636 16.8267 14.2943 16.3574 14.1758V16.8535ZM15.2334 9.56836C14.9304 9.66408 14.6911 9.82132 14.5156 10.04C14.3379 10.2588 14.252 10.5004 14.252 10.7646C14.252 11.0062 14.3314 11.2301 14.4932 11.4375C14.655 11.6424 14.9038 11.8113 15.2363 11.9365V9.56836H15.2334Z"
80
+ fill="black"
81
+ />
82
+ <path
83
+ d="M2.71127 18.5075L4.18352 17.6575C3.21672 14.9028 3.27173 11.9581 4.21167 9.31563C5.17535 6.60942 7.06671 4.22018 9.74281 2.67513C12.0972 1.31581 14.709 0.807832 17.2232 1.05612C19.8041 1.3106 22.2798 2.36266 24.2693 4.10853L23.7361 4.71636L23.2029 5.32418C23.1532 5.27918 23.1016 5.23531 23.0511 5.19342C21.3484 3.75295 19.2504 2.88549 17.0678 2.66937C14.8802 2.45355 12.6065 2.89529 10.5561 4.07914C8.2194 5.42821 6.56974 7.50687 5.7328 9.85834C4.94555 12.068 4.87307 14.5175 5.61235 16.8326L6.69304 16.2087L6.98491 16.4014L6.40585 19.8979L2.71127 18.5075Z"
84
+ fill="black"
85
+ />
86
+ <path
87
+ d="M23.0996 15.7998L31.0811 30.7578L30.9785 30.9316H15.0215L14.918 30.7578L22.9258 15.7998H23.0996Z"
88
+ fill="#FFC000"
89
+ stroke="black"
90
+ strokeWidth="1.6"
91
+ />
92
+ <rect x="22.25" y="21" width="1.5" height="5" rx="0.75" fill="black" />
93
+ <path
94
+ d="M24 28C24 27.4477 23.5523 27 23 27C22.4479 27.0002 22 27.4478 22 28C22 28.5522 22.4479 28.9998 23 29C23.5523 29 24 28.5523 24 28Z"
95
+ fill="black"
96
+ />
97
+ </svg>`;
98
+ const BannerTemplate = (bannerInfo) => `<div class="trv-license-banner">
99
+ <span class="trv-license-icon">${bannerInfo.icon}</span>
100
+ <div class="trv-license-content">
101
+ <span class="trv-license-title">${bannerInfo.title}</span>
102
+ <span class="trv-license-description">${bannerInfo.message}
103
+ ${bannerInfo.actionMessage ? `<a title='${bannerInfo.actionMessage}' href='${bannerInfo.actionLink}' target='_blank'>${bannerInfo.actionMessage}</a>` : ""}
104
+ </span>
105
+ </div>
106
+ <div class="trv-license-actions">
107
+ <a title=${bannerInfo.ctaMessage} class="trv-license-cta-button" href=${bannerInfo.ctaLink} target="_blank">${bannerInfo.ctaMessage}</a>
108
+ <button title="Close" class="trv-license-close-button">
109
+ <svg width="20" height="20" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
110
+ <path
111
+ d="M11.9309 3.1838C12.1754 2.93933 12.5712 2.93937 12.8157 3.1838C13.0601 3.4283 13.0601 3.82407 12.8157 4.06857L8.885 7.99923L12.8166 11.9309C13.0611 12.1754 13.0611 12.5721 12.8166 12.8166C12.5721 13.0611 12.1754 13.0611 11.9309 12.8166L7.99925 8.88497L4.06859 12.8166C3.8241 13.0611 3.42732 13.0611 3.18285 12.8166C2.93862 12.5721 2.93851 12.1753 3.18285 11.9309L7.11449 7.99923L3.18382 4.06857C2.93947 3.82413 2.93955 3.42829 3.18382 3.1838C3.42831 2.9393 3.82508 2.9393 4.06957 3.1838L7.99925 7.11349L11.9309 3.1838Z"
112
+ fill="#212529"
113
+ />
114
+ </svg>
115
+ </button>
116
+ </div>
117
+ </div>`;
118
+ class Banner {
119
+ $banner;
120
+ constructor(licenseInfo, onClose) {
121
+ this.title = licenseInfo.title;
122
+ this.message = licenseInfo.message;
123
+ this.icon = this.getIconFromId(licenseInfo.messageIcon);
124
+ this.actionLink = licenseInfo.actionLink;
125
+ this.actionMessage = licenseInfo.actionMessage;
126
+ this.ctaMessage = licenseInfo.callToActionMessage;
127
+ this.ctaLink = licenseInfo.callToActionLink;
128
+ this.onClose = onClose;
129
+ }
130
+ getIconFromId = (iconId) => {
131
+ switch (iconId) {
132
+ case 0:
133
+ return ProductNotLicensedIcon();
134
+ case 1:
135
+ return NoLicenseIcon();
136
+ case 2:
137
+ return ExpiredLicenseSubscriptionIcon();
138
+ case 3:
139
+ return ExpiredTrialIcon();
140
+ default:
141
+ return ProductNotLicensedIcon();
142
+ }
143
+ };
144
+ hideBanner = () => {
145
+ this.onClose();
146
+ this.$banner.remove();
147
+ };
148
+ createBanner = (rootElement) => {
149
+ if (!rootElement || $(rootElement)?.length === 0) {
150
+ return;
151
+ }
152
+ this.$banner = $(BannerTemplate(this));
153
+ $(rootElement).prepend(this.$banner);
154
+ this.$banner.find(".trv-license-close-button").one("click", this.hideBanner);
155
+ };
156
+ }
157
+
158
+ exports.Banner = Banner;
@@ -25,6 +25,7 @@ var pageCountLabel = require('./toolbar/page-count-label.js');
25
25
  var touch = require('./touch.js');
26
26
  var toolbar = require('./toolbar.js');
27
27
  var aiPrompt = require('./aiPrompt.js');
28
+ var banner = require('./banner.js');
28
29
 
29
30
  function _interopNamespaceDefault(e) {
30
31
  var n = Object.create(null);
@@ -81,7 +82,6 @@ var printModeMap = {
81
82
  [enums.PrintModes.FORCE_PDF_PLUGIN]: RCV__namespace.PrintMode.ForcePDFPlugin,
82
83
  [enums.PrintModes.FORCE_PDF_FILE]: RCV__namespace.PrintMode.ForcePDFFile
83
84
  };
84
- var commonMessages = parseMessages();
85
85
  var TOOLIP_SHOW_TIMEOUT = 100;
86
86
  function parseMessages() {
87
87
  var result = {};
@@ -127,6 +127,11 @@ function getDefaultOptions(serviceUrl, version) {
127
127
  };
128
128
  }
129
129
  function ReportViewer(dom, options) {
130
+ if (!options) {
131
+ options = {};
132
+ }
133
+ $.extend(stringResources.stringResources, options.localizationResources || {});
134
+ var commonMessages = parseMessages();
130
135
  var svcApiUrl = options.serviceUrl;
131
136
  var reportServerUrlSVCApiUrl = "";
132
137
  if (options.reportServer) {
@@ -140,6 +145,7 @@ function ReportViewer(dom, options) {
140
145
  var settings = {};
141
146
  var notificationService$1 = {};
142
147
  var client = {};
148
+ var controllerOptions = {};
143
149
  var controller = {};
144
150
  var perspectiveManager;
145
151
  var history$1 = {};
@@ -150,7 +156,7 @@ function ReportViewer(dom, options) {
150
156
  if (!validateOptions(options)) {
151
157
  return;
152
158
  }
153
- var version = "20.0.26.304";
159
+ var version = "20.0.26.402";
154
160
  options = $.extend({}, getDefaultOptions(svcApiUrl, version), options);
155
161
  settings = new reportViewerSettings.ReportViewerSettings(
156
162
  persistanceKey,
@@ -171,21 +177,22 @@ function ReportViewer(dom, options) {
171
177
  );
172
178
  notificationService$1 = new notificationService.NotificationService();
173
179
  client = new RCV__namespace.ServiceClient(options);
180
+ controllerOptions = new RCV__namespace.ReportControllerOptions(
181
+ options.keepClientAlive,
182
+ options.authenticationToken,
183
+ options.reportSource,
184
+ printModeMap[options.printMode],
185
+ pageModeMap[options.pageMode],
186
+ viewModeMap[options.viewMode],
187
+ scaleModeMap[options.scaleMode],
188
+ options.scale,
189
+ commonMessages,
190
+ options.enableAccessibility,
191
+ options.searchMetadataOnDemand
192
+ );
174
193
  controller = new RCV__namespace.ReportController(
175
194
  client,
176
- new RCV__namespace.ReportControllerOptions(
177
- options.keepClientAlive,
178
- options.authenticationToken,
179
- options.reportSource,
180
- printModeMap[options.printMode],
181
- pageModeMap[options.pageMode],
182
- viewModeMap[options.viewMode],
183
- scaleModeMap[options.scaleMode],
184
- options.scale,
185
- commonMessages,
186
- options.enableAccessibility,
187
- options.searchMetadataOnDemand
188
- )
195
+ controllerOptions
189
196
  );
190
197
  history$1 = new history.HistoryManager({
191
198
  controller,
@@ -517,18 +524,14 @@ function ReportViewer(dom, options) {
517
524
  }
518
525
  };
519
526
  function validateOptions(options2) {
520
- if (!options2) {
521
- $placeholder.text("The report viewer configuration options are not initialized.");
522
- return false;
523
- }
524
527
  if (options2.reportServer) {
525
528
  if (!options2.reportServer.url) {
526
- $placeholder.text("The report server URL is not specified.");
529
+ $placeholder.text(stringResources.stringResources.reportServerUrlNotSpecified);
527
530
  return false;
528
531
  }
529
532
  } else {
530
533
  if (!options2.serviceUrl) {
531
- $placeholder.text("The serviceUrl is not specified.");
534
+ $placeholder.text(stringResources.stringResources.serviceUrlNotSpecified);
532
535
  return false;
533
536
  }
534
537
  }
@@ -631,6 +634,9 @@ function ReportViewer(dom, options) {
631
634
  },
632
635
  options
633
636
  );
637
+ if (options.wrapper && (options.wrapper === "angular" || options.wrapper === "react") && (!options.localizationResources || jQuery.isEmptyObject(options.localizationResources))) {
638
+ refreshLocalization();
639
+ }
634
640
  new RCV__namespace.ContentArea($placeholder[0], controller, commonMessages, {
635
641
  enableAccessibility: options.enableAccessibility,
636
642
  initialPageAreaImageUrl: options.initialPageAreaImageUrl
@@ -684,6 +690,11 @@ function ReportViewer(dom, options) {
684
690
  }
685
691
  );
686
692
  }
693
+ function refreshLocalization() {
694
+ commonMessages = parseMessages();
695
+ controllerOptions.message = commonMessages;
696
+ controller.setOptions(controllerOptions);
697
+ }
687
698
  function initSplitter() {
688
699
  var parameterAreaPaneOptions = {
689
700
  max: "500px",
@@ -852,21 +863,9 @@ function ReportViewer(dom, options) {
852
863
  init();
853
864
  if (!(options.webDesignerPreview || options.serverPreview)) {
854
865
  if (controller.shouldShowLicenseBanner()) {
855
- $(".trv-content-wrapper")?.prepend('<span class="trv-license-banner"></span>');
856
- const licenseBanner = $(".trv-license-banner").kendoNotification({
857
- appendTo: ".trv-license-banner",
858
- hideOnClick: false,
859
- autoHideAfter: 0,
860
- button: true,
861
- hide: () => {
862
- controller.saveToSessionStorage("hideBanner", "true");
863
- }
864
- }).data("kendoNotification");
865
- const licenseData = controller.getConfigurationInfo()?.license;
866
- licenseBanner.show(`<span class='trv-license-message'>${licenseData?.title || licenseData?.message} ${licenseData?.actionMessage}</span>
867
- <a class='trv-license-link' target='_blank' href='${licenseData?.actionLink}'>
868
- <span class='k-icon k-i-question-circle'></span>
869
- </a>`, "warning");
866
+ const configurationInfo = controller.getConfigurationInfo();
867
+ const banner$1 = new banner.Banner(configurationInfo.license, () => controller.saveToSessionStorage("hideBanner", "true"));
868
+ banner$1.createBanner(".trv-content-wrapper");
870
869
  }
871
870
  if (controller.shouldShowLicenseOverlay()) {
872
871
  $(".trv-content-wrapper")?.prepend('<div class="trv-license-overlay"></div>');
package/dist/cjs/sr.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var sr = {
4
- // warning and error string resources
4
+ // Warning and error string resources
5
5
  controllerNotInitialized: "Controller is not initialized.",
6
6
  noReportInstance: "No report instance.",
7
7
  missingTemplate: "!obsolete resource!",
@@ -37,7 +37,10 @@ var sr = {
37
37
  promisesChainStopError: "Error shown. Throwing promises chain stop error.",
38
38
  renderingCancelled: "Report processing was canceled.",
39
39
  tryReportPreview: "The report may now be previewed.",
40
- // viewer template string resources
40
+ optionsNotInitialized: "The report viewer configuration options are not initialized",
41
+ serviceUrlNotSpecified: "The serviceUrl is not specified.",
42
+ reportServerUrlNotSpecified: "The report server URL is not specified.",
43
+ // Viewer template string resources
41
44
  parameterEditorSelectNone: "clear selection",
42
45
  parameterEditorSelectAll: "select all",
43
46
  parametersAreaPreviewButton: "Preview",
@@ -84,7 +87,7 @@ var sr = {
84
87
  sendEmailFormatLabel: "Format:",
85
88
  sendEmailSendLabel: "Send",
86
89
  sendEmailCancelLabel: "Cancel",
87
- // accessibility string resources
90
+ // Accessibility string resources
88
91
  ariaLabelPageNumberSelector: "Page number selector. Showing page {0} of {1}.",
89
92
  ariaLabelPageNumberEditor: "Page number editor",
90
93
  ariaLabelExpandable: "Expandable",
@@ -145,7 +148,7 @@ var sr = {
145
148
  ariaLabelSendEmailFormat: "Report format:",
146
149
  ariaLabelSendEmailSend: "Send email",
147
150
  ariaLabelSendEmailCancel: "Cancel sending email",
148
- // search dialog resources
151
+ // Search dialog resources
149
152
  searchDialogTitle: "Search in report contents",
150
153
  searchDialogSearchInProgress: "searching...",
151
154
  searchDialogNoResultsLabel: "No results",
@@ -165,6 +168,7 @@ var sr = {
165
168
  sendEmailValidationSingleEmail: "The field accepts a single email address only",
166
169
  sendEmailValidationFormatRequired: "Format field is required",
167
170
  errorSendingDocument: "Error sending report document (Report = '{0}').",
171
+ // AI Prompt dialog resources
168
172
  aiPromptDialogConsentTitle: "Before you start with AI",
169
173
  aiPromptDialogConsentAccept: "Consent",
170
174
  aiPromptDialogConsentReject: "Cancel",
@@ -1,5 +1,5 @@
1
1
  /*
2
- * TelerikReporting v20.0.26.304 (https://www.telerik.com/products/reporting.aspx)
2
+ * TelerikReporting v20.0.26.402 (https://www.telerik.com/products/reporting.aspx)
3
3
  * Copyright 2026 Progress Software EAD. All rights reserved.
4
4
  *
5
5
  * Telerik Reporting commercial licenses may be obtained at
@@ -10,14 +10,14 @@
10
10
  font-family: "ReportingIcons";
11
11
  font-style: normal;
12
12
  font-weight: normal;
13
- src: url("../ReportingIcons-20.0.26.304.ttf/") format("truetype");
13
+ src: url("../ReportingIcons-20.0.26.402.ttf/") format("truetype");
14
14
  /*unicode-range: U+E0ED, U+E0EE, U+E0E6, U+E132, U+E12F, U+E008, U+E00B, U+E09C, U+E096, U+E07E, U+E086, U+E06C, U+E07F, U+E080, U+E081, U+E149, U+E087;*/
15
15
  }
16
16
  @font-face {
17
17
  font-family: "WebComponentsIcons";
18
18
  font-style: normal;
19
19
  font-weight: normal;
20
- src: url("../ReportingIcons-20.0.26.304.ttf/") format("truetype");
20
+ src: url("../ReportingIcons-20.0.26.402.ttf/") format("truetype");
21
21
  }
22
22
  @font-face {
23
23
  font-family: "WebComponentsIcons";
@@ -5231,4 +5231,4 @@
5231
5231
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M256 32 0 480h512zm-32 160h64v160h-64zm0 256v-64h64v64z'></path></svg>");
5232
5232
  background-repeat: no-repeat;
5233
5233
  }
5234
- /* DO NOT MODIFY OR DELETE THIS LINE! UPGRADE WIZARD CHECKSUM e983dafb1332afca300b61b832b887f0 */
5234
+ /* DO NOT MODIFY OR DELETE THIS LINE! UPGRADE WIZARD CHECKSUM 55bc4f554706cf614eaa0e199e31431a */