@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.
@@ -392,7 +392,7 @@ function print(element, printWindow) {
392
392
  */
393
393
  function formatUnit(value) {
394
394
  var result = value + '';
395
- if (result === 'auto' || result.indexOf('%') !== -1 || result.indexOf('px') !== -1) {
395
+ if (result.match(/auto|cm|mm|in|px|pt|pc|%|em|ex|ch|rem|vw|vh|vmin|vmax/)) {
396
396
  return result;
397
397
  }
398
398
  return result + 'px';
@@ -3951,7 +3951,7 @@ var IntlBase;
3951
3951
  if (day < 4) {
3952
3952
  weeknum = Math.floor((daynum + day - 1) / 7) + 1;
3953
3953
  if (weeknum > 52) {
3954
- var nYear = new Date(this.getFullYear() + 1, 0, 1);
3954
+ var nYear = new Date(date.getFullYear() + 1, 0, 1);
3955
3955
  var nday = nYear.getDay();
3956
3956
  nday = nday >= 0 ? nday : nday + 7;
3957
3957
  weeknum = nday < 4 ? 1 : 53;
@@ -4923,7 +4923,8 @@ function selectAll(selector, context, needsVDOM) {
4923
4923
  * @private
4924
4924
  */
4925
4925
  function querySelectId(selector) {
4926
- if (selector.match(/#[0-9]/g)) {
4926
+ var charRegex = /(!|"|\$|%|&|'|\(|\)|\*|\/|:|;|<|=|\?|@|\]|\^|`|{|}|\||\+|~)/g;
4927
+ if (selector.match(/#[0-9]/g) || selector.match(charRegex)) {
4927
4928
  var idList = selector.split(',');
4928
4929
  for (var i = 0; i < idList.length; i++) {
4929
4930
  var list = idList[i].split(' ');
@@ -4931,7 +4932,7 @@ function querySelectId(selector) {
4931
4932
  if (list[j].indexOf('#') > -1) {
4932
4933
  if (!list[j].match(/\[.*\]/)) {
4933
4934
  var splitId = list[j].split('#');
4934
- if (splitId[1].match(/^\d/)) {
4935
+ if (splitId[1].match(/^\d/) || splitId[1].match(charRegex)) {
4935
4936
  var setId = list[j].split('.');
4936
4937
  setId[0] = setId[0].replace(/#/, '[id=\'') + '\']';
4937
4938
  list[j] = setId.join('.');
@@ -6289,7 +6290,7 @@ var Animation = /** @__PURE__ @class */ (function (_super) {
6289
6290
  function rippleEffect(element, rippleOptions, done) {
6290
6291
  var rippleModel = getRippleModel(rippleOptions);
6291
6292
  if (rippleModel.rippleFlag === false || (rippleModel.rippleFlag === undefined && !isRippleEnabled)) {
6292
- return Function;
6293
+ return (function () { });
6293
6294
  }
6294
6295
  element.setAttribute('data-ripple', 'true');
6295
6296
  EventHandler.add(element, 'mousedown', rippleHandler, { parent: element, rippleOptions: rippleModel });
@@ -8824,7 +8825,7 @@ var WINDOWFUNC = /\window\./gm;
8824
8825
  function compile$1(template, helper, ignorePrefix) {
8825
8826
  var argName = 'data';
8826
8827
  var evalExpResult = evalExp(template, argName, helper, ignorePrefix);
8827
- var condtion = "var valueRegEx = (/value=\\'([A-Za-z0-9 _]*)((.)([\\w)(!-;?-\u25A0\\s]+)['])/g);\n var hrefRegex = (/(?:href)([\\s='\"./]+)([\\w-./?=&\\\\#\"]+)((.)([\\w)(!-;/?-\u25A0\\s]+)['])/g);\n if(str.match(valueRegEx)){\n var check = str.match(valueRegEx);\n var str1 = str;\n for (var i=0; i < check.length; i++) {\n var check1 = str.match(valueRegEx)[i].split('value=')[1];\n var change = check1.match(/^'/) !== null ? check1.replace(/^'/, '\"') : check1;\n change =change.match(/.$/)[0] === '\\'' ? change.replace(/.$/,'\"') : change;\n str1 = str1.replace(check1, change);\n }\n str = str.replace(str, str1);\n }\n else if(str.match(hrefRegex)) {\n var check = str.match(hrefRegex);\n var str1 = str;\n for (var i=0; i < check.length; i++) {\n var check1 = str.match(hrefRegex)[i].split('href=')[1];\n var change = check1.match(/^'/) !== null ? check1.replace(/^'/, '\"') : check1;\n change =change.match(/.$/)[0] === '\\'' ? change.replace(/.$/,'\"') : change;\n str1 = str1.replace(check1, change);\n }\n str = str.replace(str, str1);\n }\n ";
8828
+ var condtion = "var valueRegEx = (/value=\\'([A-Za-z0-9 _]*)((.)([\\w)(!-;?-\u25A0\\s]+)['])/g);\n var hrefRegex = (/(?:href)([\\s='\"./]+)([\\w-./?=&\\\\#\"]+)((.)([\\w)(!-;/?-\u25A0\\s]+)['])/g);\n if(str.match(valueRegEx)){\n var check = str.match(valueRegEx);\n var str1 = str;\n for (var i=0; i < check.length; i++) {\n var check1 = str.match(valueRegEx)[i].split('value=')[1];\n var change = check1.match(/^'/) !== null ? check1.replace(/^'/, '\"') : check1;\n change =change.match(/.$/)[0] === '\\'' ? change.replace(/.$/,'\"') : change;\n str1 = str1.replace(check1, change);\n }\n str = str.replace(str, str1);\n }\n else if (str.match(/(?:href='')/) === null) {\n if(str.match(hrefRegex)) {\n var check = str.match(hrefRegex);\n var str1 = str;\n for (var i=0; i < check.length; i++) {\n var check1 = str.match(hrefRegex)[i].split('href=')[1];\n var change = check1.match(/^'/) !== null ? check1.replace(/^'/, '\"') : check1;\n change =change.match(/.$/)[0] === '\\'' ? change.replace(/.$/,'\"') : change;\n str1 = str1.replace(check1, change);\n }\n str = str.replace(str, str1);\n }\n }\n ";
8828
8829
  var fnCode = "var str=\"" + evalExpResult + "\";" + condtion + " return str;";
8829
8830
  var fn = new Function(argName, fnCode);
8830
8831
  return fn.bind(helper);