@syncfusion/ej2-base 23.1.40 → 23.1.42

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.
@@ -2331,7 +2331,7 @@ var Observer = /** @__PURE__ @class */ (function () {
2331
2331
  }
2332
2332
  var cntxt = context || this.context;
2333
2333
  if (this.notExist(property)) {
2334
- this.boundedEvents["" + property] = [{ handler: handler, context: cntxt }];
2334
+ this.boundedEvents["" + property] = [{ handler: handler, context: cntxt, id: id }];
2335
2335
  return;
2336
2336
  }
2337
2337
  if (!isNullOrUndefined(id)) {
@@ -2472,6 +2472,26 @@ var Observer = /** @__PURE__ @class */ (function () {
2472
2472
  Observer.prototype.destroy = function () {
2473
2473
  this.boundedEvents = this.context = undefined;
2474
2474
  };
2475
+ /**
2476
+ * To remove internationalization events
2477
+ *
2478
+ * @returns {void} ?
2479
+ */
2480
+ Observer.prototype.offIntlEvents = function () {
2481
+ var eventsArr = this.boundedEvents['notifyExternalChange'];
2482
+ if (eventsArr) {
2483
+ for (var i = 0; i < eventsArr.length; i++) {
2484
+ var curContext = eventsArr[0].context;
2485
+ if (curContext && curContext.detectFunction && curContext.randomId && !curContext.isRendered) {
2486
+ this.off('notifyExternalChange', curContext.detectFunction, curContext.randomId);
2487
+ i--;
2488
+ }
2489
+ }
2490
+ if (!this.boundedEvents['notifyExternalChange'].length) {
2491
+ delete this.boundedEvents['notifyExternalChange'];
2492
+ }
2493
+ }
2494
+ };
2475
2495
  /**
2476
2496
  * Returns if the property exists.
2477
2497
  *
@@ -7064,7 +7084,7 @@ var LicenseValidator = /** @__PURE__ @class */ (function () {
7064
7084
  }
7065
7085
  }
7066
7086
  if (validateMsg && typeof document !== 'undefined' && !isNullOrUndefined(document)) {
7067
- accountURL = (validateURL && validateURL !== '') ? validateURL : "https://www.syncfusion.com/account/claim-license-key?pl=SmF2YVNjcmlwdA==&vs=MjM=&utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information";
7087
+ accountURL = (validateURL && validateURL !== '') ? validateURL : "https://www.syncfusion.com/account/claim-license-key?pl=SmF2YVNjcmlwdA==&vs=MjQ=&utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information";
7068
7088
  var errorDiv = createElement('div', {
7069
7089
  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>'
7070
7090
  });
@@ -9987,7 +10007,7 @@ var SanitizeHtmlHelper = /** @__PURE__ @class */ (function () {
9987
10007
  this.removeAttrs = item.selectors.attributes;
9988
10008
  this.removeTags = item.selectors.tags;
9989
10009
  this.wrapElement = document.createElement('div');
9990
- this.wrapElement.innerHTML = this.sanitizeQuotes(value);
10010
+ this.wrapElement.innerHTML = value;
9991
10011
  this.removeXssTags();
9992
10012
  this.removeJsEvents();
9993
10013
  this.removeXssAttrs();
@@ -9995,47 +10015,6 @@ var SanitizeHtmlHelper = /** @__PURE__ @class */ (function () {
9995
10015
  this.removeElement();
9996
10016
  return tempEleValue.replace(/&amp;/g, '&');
9997
10017
  };
9998
- SanitizeHtmlHelper.sanitizeQuotes = function (input) {
9999
- var sanityChars = [96, 39, 34];
10000
- var escape = 92;
10001
- var sanitizedValue = '';
10002
- var quoteCounts = {
10003
- 96: 0,
10004
- 39: 0,
10005
- 34: 0
10006
- };
10007
- var isPreviousCharBackslash = false;
10008
- for (var i = 0; i < input.length; i++) {
10009
- var currentChar = input.charCodeAt(i);
10010
- if (sanityChars.indexOf(currentChar) !== -1 && !isPreviousCharBackslash) {
10011
- quoteCounts[currentChar + '']++;
10012
- }
10013
- isPreviousCharBackslash = currentChar === escape;
10014
- }
10015
- try {
10016
- // Replace the quotes which has total count is in odd number
10017
- // Previous char is not backslash, open parenthesis and
10018
- // Next is not close parenthesis
10019
- for (var i = 0; i < input.length; i++) {
10020
- var currentChar = input.charCodeAt(i);
10021
- var previousChar = i > 0 ? input.charCodeAt(i - 1) : null;
10022
- var nextChar = i < input.length - 1 ? input.charCodeAt(i + 1) : null;
10023
- if (sanityChars.indexOf(currentChar) !== -1 && previousChar !== escape) {
10024
- if (quoteCounts[currentChar + ''] % 2 === 1 && previousChar !== 40 && nextChar !== 41) {
10025
- sanitizedValue += String.fromCharCode(escape);
10026
- }
10027
- sanitizedValue += input[i + ''];
10028
- }
10029
- else {
10030
- sanitizedValue += input[i + ''];
10031
- }
10032
- }
10033
- return sanitizedValue;
10034
- }
10035
- catch (error) {
10036
- return input;
10037
- }
10038
- };
10039
10018
  SanitizeHtmlHelper.removeElement = function () {
10040
10019
  // Removes an element's attibute to avoid html tag validation
10041
10020
  var nodes = this.wrapElement.children;