@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.
@@ -7007,6 +7007,58 @@ var bypassKey3 = [115, 121, 110, 99, 102, 117, 115, 105,
7007
7007
  111, 110, 46, 105, 115, 69, 83, 85, 73, 118, 51, 52, 76, 105, 99, 86, 97, 108, 105, 100, 97, 116, 101, 100];
7008
7008
  var esUI = ['spreadsheet', 'DocumentEditor', 'PdfViewer', 'pdf', 'pdf-extract'];
7009
7009
  var esUIv34 = ['spreadsheet', 'DocumentEditor', 'PdfViewer', 'pdf', 'pdf-extract', 'richtexteditor', 'diagram', 'schedule', 'gantt', 'blockeditor', 'kanban'];
7010
+ /**
7011
+ * Product map with base64-encoded product names
7012
+ */
7013
+ var productMap = {
7014
+ PDFViewer: 'UERGVmlld2Vy',
7015
+ WordEditor: 'V29yZEVkaXRvcg==',
7016
+ SpreadsheetEditor: 'U3ByZWFkc2hlZXRFZGl0b3I=',
7017
+ SchedulerSDK: 'U2NoZWR1bGVyU0RL',
7018
+ GanttSDK: 'R2FudHRTREs=',
7019
+ DiagramSDK: 'RGlhZ3JhbVNESw==',
7020
+ RichTextEditorSDK: 'UmljaFRleHRFZGl0b3JTREs=',
7021
+ GridSDK: 'R3JpZFNESw==',
7022
+ ChartSDK: 'Q2hhcnRTREs=',
7023
+ FileManagerSDK: 'RmlsZU1hbmFnZXJTREs=',
7024
+ Markdown: 'TWFya2Rvd24=',
7025
+ UIComponent: 'VUlDb21wb25lbnQ='
7026
+ };
7027
+ /**
7028
+ * Product to components map - groups components by their product
7029
+ * More efficient than component-to-product as it avoids duplication
7030
+ */
7031
+ var productToComponentsMap = {
7032
+ 'PDFViewer': ['PdfViewer', 'pdf', 'pdf-extract'],
7033
+ 'WordEditor': ['DocumentEditor'],
7034
+ 'SpreadsheetEditor': ['spreadsheet'],
7035
+ 'SchedulerSDK': ['schedule', 'calendar', 'daterangepicker', 'datepicker', 'datetimepicker', 'timepicker'],
7036
+ 'GanttSDK': ['gantt', 'kanban'],
7037
+ 'DiagramSDK': ['diagram'],
7038
+ 'FileManagerSDK': ['filemanager'],
7039
+ 'GridSDK': ['grid', 'pivotview', 'treegrid'],
7040
+ 'RichTextEditorSDK': ['richtexteditor', 'blockeditor'],
7041
+ 'ChartSDK': ['barcode', 'bulletChart', 'circularchart3d', 'circulargauge', 'DashboardLayout', 'heatmap', 'lineargauge', 'maps', 'rangeNavigator', 'sankey', 'smithchart', 'sparkline', 'stockChart', 'chart3d', 'treemap', 'chart']
7042
+ };
7043
+ /**
7044
+ * Build component to product map dynamically from productToComponentsMap
7045
+ * This reduces duplication and makes maintenance easier
7046
+ */
7047
+ function buildComponentToProductMap() {
7048
+ var map = {};
7049
+ // eslint-disable-next-line security/detect-object-injection
7050
+ for (var product in productToComponentsMap) {
7051
+ if (productToComponentsMap.hasOwnProperty(product)) {
7052
+ var components = productToComponentsMap[product];
7053
+ for (var _i = 0, components_1 = components; _i < components_1.length; _i++) {
7054
+ var component = components_1[_i];
7055
+ map[component] = product;
7056
+ }
7057
+ }
7058
+ }
7059
+ return map;
7060
+ }
7061
+ var componentToProductMap = buildComponentToProductMap();
7010
7062
  var accountURL;
7011
7063
  var banner = true;
7012
7064
  /**
@@ -7230,7 +7282,8 @@ var LicenseValidator = /** @__PURE__ @class */ (function () {
7230
7282
  if (validateMsg && typeof document !== 'undefined' && !isNullOrUndefined(document)) {
7231
7283
  if (component !== 'pdf' && component !== 'pdf-extract') {
7232
7284
  if (banner) {
7233
- 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';
7285
+ var plValue = this.getProductCode(component);
7286
+ 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";
7234
7287
  var errorDiv_1 = createElement('div', {
7235
7288
  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>'
7236
7289
  });
@@ -7250,6 +7303,18 @@ var LicenseValidator = /** @__PURE__ @class */ (function () {
7250
7303
  }
7251
7304
  return this.isLicensed;
7252
7305
  };
7306
+ /**
7307
+ * Get the product code (base64-encoded) for the component
7308
+ *
7309
+ * @param {string} component - The component name
7310
+ * @returns {string} - The base64-encoded product code
7311
+ */
7312
+ LicenseValidator.prototype.getProductCode = function (component) {
7313
+ // eslint-disable-next-line security/detect-object-injection
7314
+ var productName = componentToProductMap[component] || 'UIComponent';
7315
+ // eslint-disable-next-line security/detect-object-injection
7316
+ return productMap[productName] || productMap.UIComponent;
7317
+ };
7253
7318
  LicenseValidator.prototype.restrictComponent = function (component, platform) {
7254
7319
  var ignoreList = ['DocumentEditor', 'spreadsheet', 'PdfViewer'];
7255
7320
  if (platform === 'essentialui') {