@syncfusion/ej2-base 20.4.51 → 21.1.35
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 +8 -0
- package/bin/syncfusion-license.js +1 -1
- package/dist/ej2-base.min.js +2 -2
- 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 +21 -12
- package/dist/es6/ej2-base.es2015.js.map +1 -1
- package/dist/es6/ej2-base.es5.js +21 -12
- 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 +63 -8
- package/src/ajax.js +1 -0
- package/src/component.js +2 -1
- package/src/dom.js +2 -1
- package/src/intl/date-parser.js +2 -1
- package/src/intl/intl-base.js +5 -3
- package/src/intl/number-parser.js +2 -1
- package/src/intl/parser-base.js +4 -2
- package/src/validate-lic.js +3 -3
- package/styles/bootstrap-dark.css +10 -1
- package/styles/bootstrap.css +10 -1
- package/styles/bootstrap4.css +10 -1
- package/styles/bootstrap5-dark.css +10 -1
- package/styles/bootstrap5.css +10 -1
- package/styles/definition/_bootstrap5-dark.scss +18 -0
- package/styles/definition/_bootstrap5.scss +18 -0
- package/styles/definition/_fluent-dark.scss +18 -0
- package/styles/definition/_fluent.scss +18 -0
- package/styles/definition/_tailwind-dark.scss +18 -0
- package/styles/definition/_tailwind.scss +18 -0
- package/styles/fabric-dark.css +16 -7
- package/styles/fabric.css +16 -7
- package/styles/fluent-dark.css +10 -1
- package/styles/fluent.css +10 -1
- package/styles/highcontrast-light.css +16 -7
- package/styles/highcontrast.css +16 -7
- package/styles/material-dark.css +10 -1
- package/styles/material.css +10 -1
- package/styles/offline-theme/material-dark.css +10 -1
- package/styles/offline-theme/material.css +10 -1
- package/styles/offline-theme/tailwind-dark.css +10 -1
- package/styles/offline-theme/tailwind.css +10 -1
- package/styles/tailwind-dark.css +10 -1
- package/styles/tailwind.css +10 -1
- package/GitLeaksReport.json +0 -1
- package/gitleaks-ci/gitleaks +0 -0
- package/gitleaks-ci.tar.gz +0 -0
- package/styles/_material3-dark-definition.scss +0 -10
- package/styles/_material3-definition.scss +0 -9
- package/styles/definition/_material3-dark.scss +0 -421
- package/styles/definition/_material3.scss +0 -361
|
@@ -571,7 +571,8 @@ class ParserBase {
|
|
|
571
571
|
const regexStr = props.map((str) => {
|
|
572
572
|
return str.replace(/([.*+?^=!:${}()|[\]/\\])/g, '\\$1');
|
|
573
573
|
}).join('|');
|
|
574
|
-
|
|
574
|
+
const regExp = RegExp;
|
|
575
|
+
return new regExp(regexStr, 'g');
|
|
575
576
|
}
|
|
576
577
|
/**
|
|
577
578
|
*
|
|
@@ -648,7 +649,8 @@ class ParserBase {
|
|
|
648
649
|
const digits = blazorMode ? getValue('obj.mapperDigits', cur) : getValue(cur.nSystem + '._digits', numberSystem);
|
|
649
650
|
if (!isUndefined(digits)) {
|
|
650
651
|
ret.numericPair = this.reverseObject(digits, latnNumberSystem);
|
|
651
|
-
|
|
652
|
+
const regExp = RegExp;
|
|
653
|
+
ret.numberParseRegex = new regExp(this.constructRegex(digits), 'g');
|
|
652
654
|
ret.numericRegex = '[' + digits[0] + '-' + digits[9] + ']';
|
|
653
655
|
if (needSymbols) {
|
|
654
656
|
ret.numericRegex = digits[0] + '-' + digits[9];
|
|
@@ -1897,7 +1899,8 @@ class DateParser {
|
|
|
1897
1899
|
parseOptions.evalposition[`${charKey}`] = { isNumber: isNumber, pos: i + 1 + gmtCorrection, hourOnly: hourOnly };
|
|
1898
1900
|
}
|
|
1899
1901
|
if (i === length - 1 && !isNullOrUndefined(regexString)) {
|
|
1900
|
-
|
|
1902
|
+
const regExp = RegExp;
|
|
1903
|
+
parseOptions.parserRegex = new regExp('^' + regexString + '$', 'i');
|
|
1901
1904
|
}
|
|
1902
1905
|
}
|
|
1903
1906
|
}
|
|
@@ -2117,7 +2120,8 @@ class DateParser {
|
|
|
2117
2120
|
}
|
|
2118
2121
|
}
|
|
2119
2122
|
|
|
2120
|
-
const
|
|
2123
|
+
const regExp$1 = RegExp;
|
|
2124
|
+
const parseRegex = new regExp$1('^([^0-9]*)' + '(([0-9,]*[0-9]+)(\.[0-9]+)?)' + '([Ee][+-]?[0-9]+)?([^0-9]*)$');
|
|
2121
2125
|
const groupRegex = /,/g;
|
|
2122
2126
|
const keys = ['minusSign', 'infinity'];
|
|
2123
2127
|
/**
|
|
@@ -2716,6 +2720,7 @@ function getDefaultDateObject(mode) {
|
|
|
2716
2720
|
return IntlBase.getDependables(cldrData, '', mode, false)[mapper[1]];
|
|
2717
2721
|
}
|
|
2718
2722
|
|
|
2723
|
+
const regExp = RegExp;
|
|
2719
2724
|
const blazorCultureFormats = {
|
|
2720
2725
|
'en-US': {
|
|
2721
2726
|
'd': 'M/d/y',
|
|
@@ -2743,7 +2748,8 @@ const blazorCultureFormats = {
|
|
|
2743
2748
|
// eslint-disable-next-line
|
|
2744
2749
|
var IntlBase;
|
|
2745
2750
|
(function (IntlBase) {
|
|
2746
|
-
|
|
2751
|
+
/* eslint-disable */
|
|
2752
|
+
// tslint:disable-next-line:max-line-length.
|
|
2747
2753
|
IntlBase.negativeDataRegex = /^(('[^']+'|''|[^*#@0,.E])*)(\*.)?((([#,]*[0,]*0+)(\.0*[0-9]*#*)?)|([#,]*@+#*))(E\+?0+)?(('[^']+'|''|[^*#@0,.E])*)$/;
|
|
2748
2754
|
IntlBase.customRegex = /^(('[^']+'|''|[^*#@0,.])*)(\*.)?((([0#,]*[0,]*[0#]*[0#\ ]*)(\.[0#]*)?)|([#,]*@+#*))(E\+?0+)?(('[^']+'|''|[^*#@0,.E])*)$/;
|
|
2749
2755
|
IntlBase.latnParseRegex = /0|1|2|3|4|5|6|7|8|9/g;
|
|
@@ -2776,8 +2782,8 @@ var IntlBase;
|
|
|
2776
2782
|
'fri': 5,
|
|
2777
2783
|
'sat': 6
|
|
2778
2784
|
};
|
|
2779
|
-
IntlBase.formatRegex =
|
|
2780
|
-
IntlBase.currencyFormatRegex =
|
|
2785
|
+
IntlBase.formatRegex = new regExp("(^[ncpae]{1})([0-1]?[0-9]|20)?$", "i");
|
|
2786
|
+
IntlBase.currencyFormatRegex = new regExp("(^[ca]{1})([0-1]?[0-9]|20)?$", "i");
|
|
2781
2787
|
IntlBase.curWithoutNumberRegex = /(c|a)$/ig;
|
|
2782
2788
|
const typeMapper = {
|
|
2783
2789
|
'$': 'isCurrency',
|
|
@@ -4028,6 +4034,7 @@ class Ajax {
|
|
|
4028
4034
|
if (!isNullOrUndefined(this.onUploadProgress)) {
|
|
4029
4035
|
this.httpRequest.upload.onprogress = this.onUploadProgress;
|
|
4030
4036
|
}
|
|
4037
|
+
// eslint-disable-next-line
|
|
4031
4038
|
this.httpRequest.open(this.type, this.url, this.mode);
|
|
4032
4039
|
// Set default headers
|
|
4033
4040
|
if (!isNullOrUndefined(this.data) && this.contentType !== null) {
|
|
@@ -4590,6 +4597,7 @@ function createElement(tagName, properties) {
|
|
|
4590
4597
|
*/
|
|
4591
4598
|
function addClass(elements, classes) {
|
|
4592
4599
|
const classList = getClassList(classes);
|
|
4600
|
+
const regExp = RegExp;
|
|
4593
4601
|
for (const ele of elements) {
|
|
4594
4602
|
for (const className of classList) {
|
|
4595
4603
|
if (isObject(ele)) {
|
|
@@ -4597,7 +4605,7 @@ function addClass(elements, classes) {
|
|
|
4597
4605
|
if (isNullOrUndefined(curClass)) {
|
|
4598
4606
|
setValue('attributes.className', className, ele);
|
|
4599
4607
|
}
|
|
4600
|
-
else if (!new
|
|
4608
|
+
else if (!new regExp('\\b' + className + '\\b', 'i').test(curClass)) {
|
|
4601
4609
|
setValue('attributes.className', curClass + ' ' + className, ele);
|
|
4602
4610
|
}
|
|
4603
4611
|
}
|
|
@@ -6592,7 +6600,7 @@ class ChildProperty {
|
|
|
6592
6600
|
}
|
|
6593
6601
|
}
|
|
6594
6602
|
|
|
6595
|
-
let componentList = ['grid', 'pivotview', 'treegrid', 'spreadsheet', 'rangeNavigator', 'DocumentEditor', 'listbox', 'PdfViewer', 'richtexteditor', 'DashboardLayout', 'chart', 'stockChart', 'circulargauge', 'diagram', 'heatmap', 'lineargauge', 'maps', 'smithchart', 'barcode', 'sparkline', 'treemap', 'bulletChart', 'kanban', 'daterangepicker', 'schedule', 'gantt', 'signature', 'query-builder', 'drop-down-tree', 'carousel', 'filemanager', 'uploader', 'accordion', 'tab', 'treeview'];
|
|
6603
|
+
let componentList = ['grid', 'pivotview', 'treegrid', 'spreadsheet', 'rangeNavigator', 'DocumentEditor', 'listbox', 'inplaceeditor', 'PdfViewer', 'richtexteditor', 'DashboardLayout', 'chart', 'stockChart', 'circulargauge', 'diagram', 'heatmap', 'lineargauge', 'maps', 'slider', 'smithchart', 'barcode', 'sparkline', 'treemap', 'bulletChart', 'kanban', 'daterangepicker', 'schedule', 'gantt', 'signature', 'query-builder', 'drop-down-tree', 'carousel', 'filemanager', 'uploader', 'accordion', 'tab', 'treeview'];
|
|
6596
6604
|
const bypassKey = [115, 121, 110, 99, 102, 117, 115, 105,
|
|
6597
6605
|
111, 110, 46, 105, 115, 76, 105, 99, 86, 97, 108,
|
|
6598
6606
|
105, 100, 97, 116, 101, 100];
|
|
@@ -6606,7 +6614,7 @@ class LicenseValidator {
|
|
|
6606
6614
|
constructor(key) {
|
|
6607
6615
|
this.isValidated = false;
|
|
6608
6616
|
this.isLicensed = true;
|
|
6609
|
-
this.version = '
|
|
6617
|
+
this.version = '21.1';
|
|
6610
6618
|
this.platform = /JavaScript|ASPNET|ASPNETCORE|ASPNETMVC|FileFormats/i;
|
|
6611
6619
|
this.errors = {
|
|
6612
6620
|
noLicense: '<span>This application was built using a trial version of Syncfusion Essential Studio.' +
|
|
@@ -6707,7 +6715,7 @@ class LicenseValidator {
|
|
|
6707
6715
|
}
|
|
6708
6716
|
}
|
|
6709
6717
|
if (validateMsg && typeof document !== 'undefined' && !isNullOrUndefined(document)) {
|
|
6710
|
-
accountURL = (validateURL && validateURL !== '') ? validateURL : "https://www.syncfusion.com/account/claim-license-key?pl=SmF2YVNjcmlwdA==&vs=
|
|
6718
|
+
accountURL = (validateURL && validateURL !== '') ? validateURL : "https://www.syncfusion.com/account/claim-license-key?pl=SmF2YVNjcmlwdA==&vs=MjEuMQ==";
|
|
6711
6719
|
const errorDiv = createElement('div', {
|
|
6712
6720
|
innerHTML: `<img src='data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzE5OV80KSI+CjxwYXRoIGQ9Ik0xMiAyMUMxNi45NzA2IDIxIDIxIDE2Ljk3MDYgMjEgMTJDMjEgNy4wMjk0NCAxNi45NzA2IDMgMTIgM0M3LjAyOTQ0IDMgMyA3LjAyOTQ0IDMgMTJDMyAxNi45NzA2IDcuMDI5NDQgMjEgMTIgMjFaIiBzdHJva2U9IiM3MzczNzMiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0xMS4yNSAxMS4yNUgxMlYxNi41SDEyLjc1IiBmaWxsPSIjNjE2MDYzIi8+CjxwYXRoIGQ9Ik0xMS4yNSAxMS4yNUgxMlYxNi41SDEyLjc1IiBzdHJva2U9IiM3MzczNzMiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0xMS44MTI1IDlDMTIuNDMzOCA5IDEyLjkzNzUgOC40OTYzMiAxMi45Mzc1IDcuODc1QzEyLjkzNzUgNy4yNTM2OCAxMi40MzM4IDYuNzUgMTEuODEyNSA2Ljc1QzExLjE5MTIgNi43NSAxMC42ODc1IDcuMjUzNjggMTAuNjg3NSA3Ljg3NUMxMC42ODc1IDguNDk2MzIgMTEuMTkxMiA5IDExLjgxMjUgOVoiIGZpbGw9IiM3MzczNzMiLz4KPC9nPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF8xOTlfNCI+CjxyZWN0IHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0id2hpdGUiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K' style="top: 6px;
|
|
6713
6721
|
position: absolute;
|
|
@@ -7403,7 +7411,8 @@ let Component = class Component extends Base {
|
|
|
7403
7411
|
const value = obj[key];
|
|
7404
7412
|
if (typeof value === 'object' && !(value instanceof Array)) {
|
|
7405
7413
|
const newList = ignoreList.filter((str) => {
|
|
7406
|
-
|
|
7414
|
+
const regExp = RegExp;
|
|
7415
|
+
return new regExp(key + '.').test(str);
|
|
7407
7416
|
}).map((str) => {
|
|
7408
7417
|
return str.replace(key + '.', '');
|
|
7409
7418
|
});
|