@syncfusion/ej2-base 20.2.39 → 20.2.46
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/.github/PULL_REQUEST_TEMPLATE/Bug.md +60 -0
- package/.github/PULL_REQUEST_TEMPLATE/feature.md +42 -0
- package/CHANGELOG.md +8 -0
- package/{ReadMe.md → README.md} +1 -1
- package/bin/syncfusion-license.js +1 -1
- package/dist/ej2-base.umd.min.js +10 -1
- package/dist/ej2-base.umd.min.js.map +1 -1
- package/dist/es6/ej2-base.es2015.js +31 -28
- package/dist/es6/ej2-base.es2015.js.map +1 -1
- package/dist/es6/ej2-base.es5.js +17 -14
- package/dist/es6/ej2-base.es5.js.map +1 -1
- package/dist/global/ej2-base.min.js +10 -1
- package/dist/global/ej2-base.min.js.map +1 -1
- package/dist/global/index.d.ts +9 -0
- package/package.json +113 -5
- package/src/draggable.js +3 -3
- package/src/validate-lic.d.ts +1 -0
- package/src/validate-lic.js +14 -11
- package/styles/bootstrap-dark.css +12 -0
- package/styles/bootstrap.css +12 -0
- package/styles/bootstrap4.css +12 -0
- package/styles/bootstrap5-dark.css +12 -0
- package/styles/bootstrap5.css +12 -0
- package/styles/common/_core.scss +14 -0
- package/styles/fabric-dark.css +12 -0
- package/styles/fabric.css +12 -0
- package/styles/fluent-dark.css +12 -0
- package/styles/fluent.css +12 -0
- package/styles/highcontrast-light.css +12 -0
- package/styles/highcontrast.css +12 -0
- package/styles/material-dark.css +12 -0
- package/styles/material.css +12 -0
- package/styles/tailwind-dark.css +12 -0
- package/styles/tailwind.css +12 -0
|
@@ -6584,19 +6584,19 @@ class LicenseValidator {
|
|
|
6584
6584
|
noLicense: 'This application was built using a trial version of Syncfusion Essential Studio.' +
|
|
6585
6585
|
' Please include a valid license to permanently remove this license validation message.' +
|
|
6586
6586
|
' You can also obtain a free 30 day evaluation license to temporarily remove this message ' +
|
|
6587
|
-
'during the evaluation period. Please refer to this <a
|
|
6587
|
+
'during the evaluation period. Please refer to this <a class="e-license"' +
|
|
6588
6588
|
'href="https://help.syncfusion.com/common/essential-studio/licensing">help topic</a> for more information.',
|
|
6589
6589
|
trailExpired: 'Your Syncfusion trial license has expired. Please refer to this ' +
|
|
6590
|
-
'<a
|
|
6590
|
+
'<a class="e-license"' +
|
|
6591
6591
|
'href="https://help.syncfusion.com/common/essential-studio/licensing/licensing-errors#trial-expired">help topic</a> for more information.',
|
|
6592
6592
|
versionMismatched: 'The included Syncfusion license (v##LicenseVersion) is invalid for version ' +
|
|
6593
|
-
'##Requireversion. Please refer to this <a
|
|
6593
|
+
'##Requireversion. Please refer to this <a class="e-license" ' +
|
|
6594
6594
|
'href="https://help.syncfusion.com/es/licensing/version-mismatch/">help topic</a> for more information.',
|
|
6595
6595
|
platformMismatched: 'The included Syncfusion license is invalid (Platform mismatch). Please refer' +
|
|
6596
|
-
' to this <a
|
|
6596
|
+
' to this <a class="e-license" ' +
|
|
6597
6597
|
'href="https://help.syncfusion.com/common/essential-studio/licensing/licensing-errors#platform-mismatch">help topic</a> for more information.',
|
|
6598
6598
|
invalidKey: 'The included Syncfusion license is invalid. Please refer to this ' +
|
|
6599
|
-
'<a
|
|
6599
|
+
'<a class="e-license" ' +
|
|
6600
6600
|
'href="https://help.syncfusion.com/common/essential-studio/licensing/licensing-errors#invalid-key">help topic</a> for more information.'
|
|
6601
6601
|
};
|
|
6602
6602
|
/**
|
|
@@ -6615,7 +6615,7 @@ class LicenseValidator {
|
|
|
6615
6615
|
* To manage npx licensing operation.
|
|
6616
6616
|
*/
|
|
6617
6617
|
this.npxManager = (() => {
|
|
6618
|
-
|
|
6618
|
+
const npxLicKey = 'npxKeyReplace';
|
|
6619
6619
|
function get() { return npxLicKey; }
|
|
6620
6620
|
return {
|
|
6621
6621
|
getKey: get
|
|
@@ -6625,14 +6625,14 @@ class LicenseValidator {
|
|
|
6625
6625
|
}
|
|
6626
6626
|
/**
|
|
6627
6627
|
* To validate the provided license key.
|
|
6628
|
-
|
|
6628
|
+
*/
|
|
6629
6629
|
validate() {
|
|
6630
6630
|
if (!this.isValidated && (containerObject && !getValue(convertToChar(bypassKey), containerObject) && !getValue('Blazor', containerObject))) {
|
|
6631
6631
|
let validateMsg;
|
|
6632
|
-
if ((this.manager && this.manager.getKey()) || (this.npxManager && this.npxManager.getKey()
|
|
6633
|
-
|
|
6632
|
+
if ((this.manager && this.manager.getKey()) || (this.npxManager && this.npxManager.getKey() !== 'npxKeyReplace')) {
|
|
6633
|
+
const result = this.getInfoFromKey();
|
|
6634
6634
|
if (result && result.length) {
|
|
6635
|
-
for (
|
|
6635
|
+
for (const res of result) {
|
|
6636
6636
|
if (!this.platform.test(res.platform) || res.invalidPlatform) {
|
|
6637
6637
|
validateMsg = this.errors.platformMismatched;
|
|
6638
6638
|
}
|
|
@@ -6642,8 +6642,8 @@ class LicenseValidator {
|
|
|
6642
6642
|
validateMsg = validateMsg.replace('##Requireversion', this.version + '.x');
|
|
6643
6643
|
}
|
|
6644
6644
|
else if (res.expiryDate) {
|
|
6645
|
-
|
|
6646
|
-
|
|
6645
|
+
const expDate = new Date(res.expiryDate);
|
|
6646
|
+
const currDate = new Date();
|
|
6647
6647
|
if (expDate !== currDate && expDate < currDate) {
|
|
6648
6648
|
validateMsg = this.errors.trailExpired;
|
|
6649
6649
|
}
|
|
@@ -6660,11 +6660,10 @@ class LicenseValidator {
|
|
|
6660
6660
|
else {
|
|
6661
6661
|
validateMsg = this.errors.noLicense;
|
|
6662
6662
|
}
|
|
6663
|
-
if (validateMsg && typeof document !==
|
|
6664
|
-
|
|
6663
|
+
if (validateMsg && typeof document !== 'undefined' && !isNullOrUndefined(document)) {
|
|
6664
|
+
const errorDiv = createElement('div', {
|
|
6665
6665
|
innerHTML: validateMsg +
|
|
6666
|
-
'<span
|
|
6667
|
-
'onClick=this.parentElement.remove();>' +
|
|
6666
|
+
'<span id="license-banner-error" class=".e-license-banner">' +
|
|
6668
6667
|
'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20">' +
|
|
6669
6668
|
'<line x1="5" y1="5" x2="15" y2="15" stroke="yellow" stroke-width="2.5" ' +
|
|
6670
6669
|
'stroke-miterlimit="10" stroke-linecap="round"></line><line x1="15" y1="5" ' +
|
|
@@ -6676,6 +6675,9 @@ class LicenseValidator {
|
|
|
6676
6675
|
});
|
|
6677
6676
|
errorDiv.setAttribute('id', 'js-licensing');
|
|
6678
6677
|
document.body.appendChild(errorDiv);
|
|
6678
|
+
document.getElementById('license-banner-error').addEventListener('click', () => {
|
|
6679
|
+
document.getElementById('js-licensing').remove();
|
|
6680
|
+
});
|
|
6679
6681
|
}
|
|
6680
6682
|
this.isValidated = true;
|
|
6681
6683
|
setValue(convertToChar(bypassKey), this.isValidated, containerObject);
|
|
@@ -6695,11 +6697,11 @@ class LicenseValidator {
|
|
|
6695
6697
|
getInfoFromKey() {
|
|
6696
6698
|
try {
|
|
6697
6699
|
let licKey = '';
|
|
6698
|
-
|
|
6700
|
+
const pkey = [5439488, 7929856, 5111808, 6488064, 4587520, 7667712, 5439488,
|
|
6699
6701
|
6881280, 5177344, 7208960, 4194304, 4456448, 6619136, 7733248, 5242880, 7077888,
|
|
6700
6702
|
6356992, 7602176, 4587520, 7274496, 7471104, 7143424];
|
|
6701
6703
|
let decryptedStr = [];
|
|
6702
|
-
|
|
6704
|
+
const resultArray = [];
|
|
6703
6705
|
let invalidPlatform = false;
|
|
6704
6706
|
let isNpxKey = false;
|
|
6705
6707
|
if (this.manager.getKey()) {
|
|
@@ -6709,9 +6711,9 @@ class LicenseValidator {
|
|
|
6709
6711
|
isNpxKey = true;
|
|
6710
6712
|
licKey = this.npxManager.getKey().split('npxKeyReplace')[1];
|
|
6711
6713
|
}
|
|
6712
|
-
|
|
6713
|
-
for (
|
|
6714
|
-
|
|
6714
|
+
const licKeySplit = licKey.split(';');
|
|
6715
|
+
for (const lKey of licKeySplit) {
|
|
6716
|
+
const decodeStr = this.getDecryptedData(lKey);
|
|
6715
6717
|
if (!decodeStr) {
|
|
6716
6718
|
continue;
|
|
6717
6719
|
}
|
|
@@ -6722,13 +6724,13 @@ class LicenseValidator {
|
|
|
6722
6724
|
if (k === pkey.length) {
|
|
6723
6725
|
k = 0;
|
|
6724
6726
|
}
|
|
6725
|
-
|
|
6727
|
+
const c = decodeStr.charCodeAt(i);
|
|
6726
6728
|
buffr += String.fromCharCode(c ^ (pkey[k] >> 16));
|
|
6727
6729
|
}
|
|
6728
6730
|
}
|
|
6729
6731
|
else {
|
|
6730
|
-
|
|
6731
|
-
|
|
6732
|
+
const charKey = decodeStr[decodeStr.length - 1];
|
|
6733
|
+
const decryptedKey = [];
|
|
6732
6734
|
for (let i = 0; i < decodeStr.length; i++) {
|
|
6733
6735
|
decryptedKey[i] = decodeStr[i].charCodeAt(0) - charKey.charCodeAt(0);
|
|
6734
6736
|
}
|
|
@@ -6765,13 +6767,14 @@ class LicenseValidator {
|
|
|
6765
6767
|
let licenseValidator = new LicenseValidator();
|
|
6766
6768
|
function convertToChar(cArr) {
|
|
6767
6769
|
let ret = '';
|
|
6768
|
-
for (
|
|
6770
|
+
for (const arr of cArr) {
|
|
6769
6771
|
ret += String.fromCharCode(arr);
|
|
6770
6772
|
}
|
|
6771
6773
|
return ret;
|
|
6772
6774
|
}
|
|
6773
6775
|
/**
|
|
6774
6776
|
* To set license key.
|
|
6777
|
+
*
|
|
6775
6778
|
* @param {string} key - license key
|
|
6776
6779
|
*/
|
|
6777
6780
|
function registerLicense(key) {
|
|
@@ -7422,9 +7425,6 @@ let Draggable = Draggable_1 = class Draggable extends Base {
|
|
|
7422
7425
|
if (isChangeTouch && (evt.changedTouches.length !== 1)) {
|
|
7423
7426
|
return;
|
|
7424
7427
|
}
|
|
7425
|
-
if (isChangeTouch) {
|
|
7426
|
-
evt.preventDefault();
|
|
7427
|
-
}
|
|
7428
7428
|
let intCordinate = this.getCoordinates(evt);
|
|
7429
7429
|
let pos;
|
|
7430
7430
|
let styleProp = getComputedStyle(this.element);
|
|
@@ -7455,6 +7455,9 @@ let Draggable = Draggable_1 = class Draggable extends Base {
|
|
|
7455
7455
|
if (!ele || isNullOrUndefined(ele)) {
|
|
7456
7456
|
return;
|
|
7457
7457
|
}
|
|
7458
|
+
if (isChangeTouch) {
|
|
7459
|
+
evt.preventDefault();
|
|
7460
|
+
}
|
|
7458
7461
|
let dragTargetElement = this.helperElement = ele;
|
|
7459
7462
|
this.parentClientRect = this.calculateParentPosition(dragTargetElement.offsetParent);
|
|
7460
7463
|
if (this.dragStart) {
|