@syncfusion/ej2-base 19.4.48 → 19.4.52
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.
- package/CHANGELOG.md +12 -0
- package/README.md +1 -1
- package/dist/ej2-base.umd.min.js +2 -2
- package/dist/ej2-base.umd.min.js.map +1 -1
- package/dist/es6/ej2-base.es2015.js +9 -7
- package/dist/es6/ej2-base.es2015.js.map +1 -1
- package/dist/es6/ej2-base.es5.js +8 -6
- package/dist/es6/ej2-base.es5.js.map +1 -1
- package/dist/global/ej2-base.min.js +2 -2
- package/dist/global/ej2-base.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +6 -6
- package/src/intl/intl-base.js +7 -5
- package/src/template.js +1 -1
|
@@ -2723,7 +2723,7 @@ var IntlBase;
|
|
|
2723
2723
|
(function (IntlBase) {
|
|
2724
2724
|
// tslint:disable-next-line:max-line-length
|
|
2725
2725
|
IntlBase.negativeDataRegex = /^(('[^']+'|''|[^*#@0,.E])*)(\*.)?((([#,]*[0,]*0+)(\.0*[0-9]*#*)?)|([#,]*@+#*))(E\+?0+)?(('[^']+'|''|[^*#@0,.E])*)$/;
|
|
2726
|
-
IntlBase.customRegex = /^(('[^']+'|''|[^*#@0,.])*)(\*.)?((([0#,]*[0,]*[0#]*)(\.[0#]*)?)|([#,]*@+#*))(E\+?0+)?(('[^']+'|''|[^*#@0,.E])*)$/;
|
|
2726
|
+
IntlBase.customRegex = /^(('[^']+'|''|[^*#@0,.])*)(\*.)?((([0#,]*[0,]*[0#]*[0#\ ]*)(\.[0#]*)?)|([#,]*@+#*))(E\+?0+)?(('[^']+'|''|[^*#@0,.E])*)$/;
|
|
2727
2727
|
IntlBase.latnParseRegex = /0|1|2|3|4|5|6|7|8|9/g;
|
|
2728
2728
|
const fractionRegex = /[0-9]/g;
|
|
2729
2729
|
IntlBase.defaultCurrency = '$';
|
|
@@ -3577,8 +3577,10 @@ var IntlBase;
|
|
|
3577
3577
|
cOptions.nlead = pattern[1];
|
|
3578
3578
|
cOptions.nend = pattern[10];
|
|
3579
3579
|
let integerPart = pattern[6];
|
|
3580
|
-
|
|
3581
|
-
|
|
3580
|
+
const spaceCapture = integerPart.match(/\ $/g) ? true : false;
|
|
3581
|
+
const spaceGrouping = integerPart.replace(/\ $/g, '').indexOf(' ') !== -1;
|
|
3582
|
+
cOptions.useGrouping = integerPart.indexOf(',') !== -1 || spaceGrouping;
|
|
3583
|
+
integerPart = spaceGrouping ? integerPart.replace(/,/g, '') : integerPart.replace(/,/g, '').replace(/\ $/g, '');
|
|
3582
3584
|
const fractionPart = pattern[7];
|
|
3583
3585
|
if (integerPart.indexOf('0') !== -1) {
|
|
3584
3586
|
cOptions.minimumIntegerDigits = integerPart.length - integerPart.indexOf('0');
|
|
@@ -3606,11 +3608,11 @@ var IntlBase;
|
|
|
3606
3608
|
const symbolPattern = getSymbolPattern(cOptions.type, dOptions.numberMapper.numberSystem, numObject, false);
|
|
3607
3609
|
if (cOptions.useGrouping) {
|
|
3608
3610
|
// eslint-disable-next-line
|
|
3609
|
-
cOptions.groupSeparator = dOptions.numberMapper.numberSymbols[mapper[2]];
|
|
3611
|
+
cOptions.groupSeparator = spaceGrouping ? ' ' : dOptions.numberMapper.numberSymbols[mapper[2]];
|
|
3610
3612
|
cOptions.groupData = NumberFormat.getGroupingDetails(symbolPattern.split(';')[0]);
|
|
3611
3613
|
}
|
|
3612
3614
|
cOptions.nlead = cOptions.nlead.replace(/'/g, '');
|
|
3613
|
-
cOptions.nend = cOptions.nend.replace(/'/g, '');
|
|
3615
|
+
cOptions.nend = spaceCapture ? ' ' + cOptions.nend.replace(/'/g, '') : cOptions.nend.replace(/'/g, '');
|
|
3614
3616
|
}
|
|
3615
3617
|
return cOptions;
|
|
3616
3618
|
}
|
|
@@ -8552,7 +8554,7 @@ function compile$1(template, helper, ignorePrefix) {
|
|
|
8552
8554
|
const evalExpResult = evalExp(template, argName, helper, ignorePrefix);
|
|
8553
8555
|
const condtion = `var valueRegEx = (/value=\\'([A-Za-z0-9 _]*)((.)([\\w)(!-;?-■\\s]+)['])/g);
|
|
8554
8556
|
var hrefRegex = (/(?:href)([\\s='"./]+)([\\w-./?=&\\\\#"]+)((.)([\\w)(!-;/?-■\\s]+)['])/g);
|
|
8555
|
-
if(str.match(valueRegEx)){
|
|
8557
|
+
if((str.match(valueRegEx)) && (str.match('svg') === null)){
|
|
8556
8558
|
var check = str.match(valueRegEx);
|
|
8557
8559
|
var str1 = str;
|
|
8558
8560
|
for (var i=0; i < check.length; i++) {
|
|
@@ -8564,7 +8566,7 @@ function compile$1(template, helper, ignorePrefix) {
|
|
|
8564
8566
|
str = str.replace(str, str1);
|
|
8565
8567
|
}
|
|
8566
8568
|
else if (str.match(/(?:href='')/) === null) {
|
|
8567
|
-
if(str.match(hrefRegex)) {
|
|
8569
|
+
if((str.match(hrefRegex)) && (str.match('svg') === null)) {
|
|
8568
8570
|
var check = str.match(hrefRegex);
|
|
8569
8571
|
var str1 = str;
|
|
8570
8572
|
for (var i=0; i < check.length; i++) {
|