@syncfusion/ej2-base 19.3.47 → 19.3.57

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.
@@ -385,7 +385,7 @@ function print(element, printWindow) {
385
385
  */
386
386
  function formatUnit(value) {
387
387
  const result = value + '';
388
- if (result === 'auto' || result.indexOf('%') !== -1 || result.indexOf('px') !== -1) {
388
+ if (result.match(/auto|cm|mm|in|px|pt|pc|%|em|ex|ch|rem|vw|vh|vmin|vmax/)) {
389
389
  return result;
390
390
  }
391
391
  return result + 'px';
@@ -3904,7 +3904,7 @@ var IntlBase;
3904
3904
  if (day < 4) {
3905
3905
  weeknum = Math.floor((daynum + day - 1) / 7) + 1;
3906
3906
  if (weeknum > 52) {
3907
- const nYear = new Date(this.getFullYear() + 1, 0, 1);
3907
+ const nYear = new Date(date.getFullYear() + 1, 0, 1);
3908
3908
  let nday = nYear.getDay();
3909
3909
  nday = nday >= 0 ? nday : nday + 7;
3910
3910
  weeknum = nday < 4 ? 1 : 53;
@@ -4790,7 +4790,8 @@ function selectAll(selector, context = document, needsVDOM) {
4790
4790
  * @private
4791
4791
  */
4792
4792
  function querySelectId(selector) {
4793
- if (selector.match(/#[0-9]/g)) {
4793
+ const charRegex = /(!|"|\$|%|&|'|\(|\)|\*|\/|:|;|<|=|\?|@|\]|\^|`|{|}|\||\+|~)/g;
4794
+ if (selector.match(/#[0-9]/g) || selector.match(charRegex)) {
4794
4795
  const idList = selector.split(',');
4795
4796
  for (let i = 0; i < idList.length; i++) {
4796
4797
  const list = idList[i].split(' ');
@@ -4798,7 +4799,7 @@ function querySelectId(selector) {
4798
4799
  if (list[j].indexOf('#') > -1) {
4799
4800
  if (!list[j].match(/\[.*\]/)) {
4800
4801
  const splitId = list[j].split('#');
4801
- if (splitId[1].match(/^\d/)) {
4802
+ if (splitId[1].match(/^\d/) || splitId[1].match(charRegex)) {
4802
4803
  const setId = list[j].split('.');
4803
4804
  setId[0] = setId[0].replace(/#/, '[id=\'') + '\']';
4804
4805
  list[j] = setId.join('.');
@@ -6121,7 +6122,7 @@ Animation = Animation_1 = __decorate([
6121
6122
  function rippleEffect(element, rippleOptions, done) {
6122
6123
  const rippleModel = getRippleModel(rippleOptions);
6123
6124
  if (rippleModel.rippleFlag === false || (rippleModel.rippleFlag === undefined && !isRippleEnabled)) {
6124
- return Function;
6125
+ return (() => { });
6125
6126
  }
6126
6127
  element.setAttribute('data-ripple', 'true');
6127
6128
  EventHandler.add(element, 'mousedown', rippleHandler, { parent: element, rippleOptions: rippleModel });
@@ -8552,16 +8553,18 @@ function compile$1(template, helper, ignorePrefix) {
8552
8553
  }
8553
8554
  str = str.replace(str, str1);
8554
8555
  }
8555
- else if(str.match(hrefRegex)) {
8556
- var check = str.match(hrefRegex);
8557
- var str1 = str;
8558
- for (var i=0; i < check.length; i++) {
8559
- var check1 = str.match(hrefRegex)[i].split('href=')[1];
8560
- var change = check1.match(/^'/) !== null ? check1.replace(/^'/, '\"') : check1;
8561
- change =change.match(/.$/)[0] === '\\'' ? change.replace(/.$/,'\"') : change;
8562
- str1 = str1.replace(check1, change);
8556
+ else if (str.match(/(?:href='')/) === null) {
8557
+ if(str.match(hrefRegex)) {
8558
+ var check = str.match(hrefRegex);
8559
+ var str1 = str;
8560
+ for (var i=0; i < check.length; i++) {
8561
+ var check1 = str.match(hrefRegex)[i].split('href=')[1];
8562
+ var change = check1.match(/^'/) !== null ? check1.replace(/^'/, '\"') : check1;
8563
+ change =change.match(/.$/)[0] === '\\'' ? change.replace(/.$/,'\"') : change;
8564
+ str1 = str1.replace(check1, change);
8565
+ }
8566
+ str = str.replace(str, str1);
8563
8567
  }
8564
- str = str.replace(str, str1);
8565
8568
  }
8566
8569
  `;
8567
8570
  const fnCode = "var str=\"" + evalExpResult + "\";" + condtion + " return str;";