@syncfusion/ej2-base 34.1.29 → 34.1.30

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 34.1.29
3
+ * version : 34.1.30
4
4
  * Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-base",
3
- "version": "34.1.29",
3
+ "version": "34.1.30",
4
4
  "description": "A common package of Essential JS 2 base libraries, methods and class definitions",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
@@ -21,6 +21,58 @@ var bypassKey3 = [115, 121, 110, 99, 102, 117, 115, 105,
21
21
  111, 110, 46, 105, 115, 69, 83, 85, 73, 118, 51, 52, 76, 105, 99, 86, 97, 108, 105, 100, 97, 116, 101, 100];
22
22
  var esUI = ['spreadsheet', 'DocumentEditor', 'PdfViewer', 'pdf', 'pdf-extract'];
23
23
  var esUIv34 = ['spreadsheet', 'DocumentEditor', 'PdfViewer', 'pdf', 'pdf-extract', 'richtexteditor', 'diagram', 'schedule', 'gantt', 'blockeditor', 'kanban'];
24
+ /**
25
+ * Product map with base64-encoded product names
26
+ */
27
+ var productMap = {
28
+ PDFViewer: 'UERGVmlld2Vy',
29
+ WordEditor: 'V29yZEVkaXRvcg==',
30
+ SpreadsheetEditor: 'U3ByZWFkc2hlZXRFZGl0b3I=',
31
+ SchedulerSDK: 'U2NoZWR1bGVyU0RL',
32
+ GanttSDK: 'R2FudHRTREs=',
33
+ DiagramSDK: 'RGlhZ3JhbVNESw==',
34
+ RichTextEditorSDK: 'UmljaFRleHRFZGl0b3JTREs=',
35
+ GridSDK: 'R3JpZFNESw==',
36
+ ChartSDK: 'Q2hhcnRTREs=',
37
+ FileManagerSDK: 'RmlsZU1hbmFnZXJTREs=',
38
+ Markdown: 'TWFya2Rvd24=',
39
+ UIComponent: 'VUlDb21wb25lbnQ='
40
+ };
41
+ /**
42
+ * Product to components map - groups components by their product
43
+ * More efficient than component-to-product as it avoids duplication
44
+ */
45
+ var productToComponentsMap = {
46
+ 'PDFViewer': ['PdfViewer', 'pdf', 'pdf-extract'],
47
+ 'WordEditor': ['DocumentEditor'],
48
+ 'SpreadsheetEditor': ['spreadsheet'],
49
+ 'SchedulerSDK': ['schedule', 'calendar', 'daterangepicker', 'datepicker', 'datetimepicker', 'timepicker'],
50
+ 'GanttSDK': ['gantt', 'kanban'],
51
+ 'DiagramSDK': ['diagram'],
52
+ 'FileManagerSDK': ['filemanager'],
53
+ 'GridSDK': ['grid', 'pivotview', 'treegrid'],
54
+ 'RichTextEditorSDK': ['richtexteditor', 'blockeditor'],
55
+ 'ChartSDK': ['barcode', 'bulletChart', 'circularchart3d', 'circulargauge', 'DashboardLayout', 'heatmap', 'lineargauge', 'maps', 'rangeNavigator', 'sankey', 'smithchart', 'sparkline', 'stockChart', 'chart3d', 'treemap', 'chart']
56
+ };
57
+ /**
58
+ * Build component to product map dynamically from productToComponentsMap
59
+ * This reduces duplication and makes maintenance easier
60
+ */
61
+ function buildComponentToProductMap() {
62
+ var map = {};
63
+ // eslint-disable-next-line security/detect-object-injection
64
+ for (var product in productToComponentsMap) {
65
+ if (productToComponentsMap.hasOwnProperty(product)) {
66
+ var components = productToComponentsMap[product];
67
+ for (var _i = 0, components_1 = components; _i < components_1.length; _i++) {
68
+ var component = components_1[_i];
69
+ map[component] = product;
70
+ }
71
+ }
72
+ }
73
+ return map;
74
+ }
75
+ var componentToProductMap = buildComponentToProductMap();
24
76
  var accountURL;
25
77
  var banner = true;
26
78
  /**
@@ -244,7 +296,8 @@ var LicenseValidator = /** @class */ (function () {
244
296
  if (validateMsg && typeof document !== 'undefined' && !isNullOrUndefined(document)) {
245
297
  if (component !== 'pdf' && component !== 'pdf-extract') {
246
298
  if (banner) {
247
- accountURL = (validateURL && validateURL !== '') ? validateURL : 'https://www.syncfusion.com/account/claim-license-key?pl=SmF2YVNjcmlwdA==&vs=MzQ=&utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information';
299
+ var plValue = this.getProductCode(component);
300
+ accountURL = (validateURL && validateURL !== '') ? validateURL : "https://www.syncfusion.com/account/claim-license-key?pl=" + plValue + "&vs=MzQ=&utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information";
248
301
  var errorDiv_1 = createElement('div', {
249
302
  innerHTML: "<img src='data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzE5OV80KSI+CjxwYXRoIGQ9Ik0xMiAyMUMxNi45NzA2IDIxIDIxIDE2Ljk3MDYgMjEgMTJDMjEgNy4wMjk0NCAxNi45NzA2IDMgMTIgM0M3LjAyOTQ0IDMgMyA3LjAyOTQ0IDMgMTJDMyAxNi45NzA2IDcuMDI5NDQgMjEgMTIgMjFaIiBzdHJva2U9IiM3MzczNzMiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0xMS4yNSAxMS4yNUgxMlYxNi41SDEyLjc1IiBmaWxsPSIjNjE2MDYzIi8+CjxwYXRoIGQ9Ik0xMS4yNSAxMS4yNUgxMlYxNi41SDEyLjc1IiBzdHJva2U9IiM3MzczNzMiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0xMS44MTI1IDlDMTIuNDMzOCA5IDEyLjkzNzUgOC40OTYzMiAxMi45Mzc1IDcuODc1QzEyLjkzNzUgNy4yNTM2OCAxMi40MzM4IDYuNzUgMTEuODEyNSA2Ljc1QzExLjE5MTIgNi43NSAxMC42ODc1IDcuMjUzNjggMTAuNjg3NSA3Ljg3NUMxMC42ODc1IDguNDk2MzIgMTEuMTkxMiA5IDExLjgxMjUgOVoiIGZpbGw9IiM3MzczNzMiLz4KPC9nPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF8xOTlfNCI+CjxyZWN0IHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0id2hpdGUiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K' style=\"top: 6px;\n position: absolute;\n left: 16px;\n width: 24px;\n height: 24px;\"/>" + validateMsg + ' ' + '<a style="text-decoration: none;color: #0D6EFD;font-weight: 500;" href=' + accountURL + '>Claim your free account</a>' + '<button class="license-banner-close" style="position: absolute; right: 12px; top: 10px; background: none; border: none; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center;"><svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15 5L5 15M5 5L15 15" stroke="#737373" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></button>'
250
303
  });
@@ -264,6 +317,18 @@ var LicenseValidator = /** @class */ (function () {
264
317
  }
265
318
  return this.isLicensed;
266
319
  };
320
+ /**
321
+ * Get the product code (base64-encoded) for the component
322
+ *
323
+ * @param {string} component - The component name
324
+ * @returns {string} - The base64-encoded product code
325
+ */
326
+ LicenseValidator.prototype.getProductCode = function (component) {
327
+ // eslint-disable-next-line security/detect-object-injection
328
+ var productName = componentToProductMap[component] || 'UIComponent';
329
+ // eslint-disable-next-line security/detect-object-injection
330
+ return productMap[productName] || productMap.UIComponent;
331
+ };
267
332
  LicenseValidator.prototype.restrictComponent = function (component, platform) {
268
333
  var ignoreList = ['DocumentEditor', 'spreadsheet', 'PdfViewer'];
269
334
  if (platform === 'essentialui') {