@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
package/dist/es6/ej2-base.es5.js
CHANGED
|
@@ -6759,19 +6759,19 @@ var LicenseValidator = /** @__PURE__ @class */ (function () {
|
|
|
6759
6759
|
noLicense: 'This application was built using a trial version of Syncfusion Essential Studio.' +
|
|
6760
6760
|
' Please include a valid license to permanently remove this license validation message.' +
|
|
6761
6761
|
' You can also obtain a free 30 day evaluation license to temporarily remove this message ' +
|
|
6762
|
-
'during the evaluation period. Please refer to this <a
|
|
6762
|
+
'during the evaluation period. Please refer to this <a class="e-license"' +
|
|
6763
6763
|
'href="https://help.syncfusion.com/common/essential-studio/licensing">help topic</a> for more information.',
|
|
6764
6764
|
trailExpired: 'Your Syncfusion trial license has expired. Please refer to this ' +
|
|
6765
|
-
'<a
|
|
6765
|
+
'<a class="e-license"' +
|
|
6766
6766
|
'href="https://help.syncfusion.com/common/essential-studio/licensing/licensing-errors#trial-expired">help topic</a> for more information.',
|
|
6767
6767
|
versionMismatched: 'The included Syncfusion license (v##LicenseVersion) is invalid for version ' +
|
|
6768
|
-
'##Requireversion. Please refer to this <a
|
|
6768
|
+
'##Requireversion. Please refer to this <a class="e-license" ' +
|
|
6769
6769
|
'href="https://help.syncfusion.com/es/licensing/version-mismatch/">help topic</a> for more information.',
|
|
6770
6770
|
platformMismatched: 'The included Syncfusion license is invalid (Platform mismatch). Please refer' +
|
|
6771
|
-
' to this <a
|
|
6771
|
+
' to this <a class="e-license" ' +
|
|
6772
6772
|
'href="https://help.syncfusion.com/common/essential-studio/licensing/licensing-errors#platform-mismatch">help topic</a> for more information.',
|
|
6773
6773
|
invalidKey: 'The included Syncfusion license is invalid. Please refer to this ' +
|
|
6774
|
-
'<a
|
|
6774
|
+
'<a class="e-license" ' +
|
|
6775
6775
|
'href="https://help.syncfusion.com/common/essential-studio/licensing/licensing-errors#invalid-key">help topic</a> for more information.'
|
|
6776
6776
|
};
|
|
6777
6777
|
/**
|
|
@@ -6790,7 +6790,7 @@ var LicenseValidator = /** @__PURE__ @class */ (function () {
|
|
|
6790
6790
|
* To manage npx licensing operation.
|
|
6791
6791
|
*/
|
|
6792
6792
|
this.npxManager = (function () {
|
|
6793
|
-
var npxLicKey =
|
|
6793
|
+
var npxLicKey = 'npxKeyReplace';
|
|
6794
6794
|
function get() { return npxLicKey; }
|
|
6795
6795
|
return {
|
|
6796
6796
|
getKey: get
|
|
@@ -6800,11 +6800,11 @@ var LicenseValidator = /** @__PURE__ @class */ (function () {
|
|
|
6800
6800
|
}
|
|
6801
6801
|
/**
|
|
6802
6802
|
* To validate the provided license key.
|
|
6803
|
-
|
|
6803
|
+
*/
|
|
6804
6804
|
LicenseValidator.prototype.validate = function () {
|
|
6805
6805
|
if (!this.isValidated && (containerObject && !getValue(convertToChar(bypassKey), containerObject) && !getValue('Blazor', containerObject))) {
|
|
6806
6806
|
var validateMsg = void 0;
|
|
6807
|
-
if ((this.manager && this.manager.getKey()) || (this.npxManager && this.npxManager.getKey()
|
|
6807
|
+
if ((this.manager && this.manager.getKey()) || (this.npxManager && this.npxManager.getKey() !== 'npxKeyReplace')) {
|
|
6808
6808
|
var result = this.getInfoFromKey();
|
|
6809
6809
|
if (result && result.length) {
|
|
6810
6810
|
for (var _i = 0, result_1 = result; _i < result_1.length; _i++) {
|
|
@@ -6836,11 +6836,10 @@ var LicenseValidator = /** @__PURE__ @class */ (function () {
|
|
|
6836
6836
|
else {
|
|
6837
6837
|
validateMsg = this.errors.noLicense;
|
|
6838
6838
|
}
|
|
6839
|
-
if (validateMsg && typeof document !==
|
|
6839
|
+
if (validateMsg && typeof document !== 'undefined' && !isNullOrUndefined(document)) {
|
|
6840
6840
|
var errorDiv = createElement('div', {
|
|
6841
6841
|
innerHTML: validateMsg +
|
|
6842
|
-
'<span
|
|
6843
|
-
'onClick=this.parentElement.remove();>' +
|
|
6842
|
+
'<span id="license-banner-error" class=".e-license-banner">' +
|
|
6844
6843
|
'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20">' +
|
|
6845
6844
|
'<line x1="5" y1="5" x2="15" y2="15" stroke="yellow" stroke-width="2.5" ' +
|
|
6846
6845
|
'stroke-miterlimit="10" stroke-linecap="round"></line><line x1="15" y1="5" ' +
|
|
@@ -6852,6 +6851,9 @@ var LicenseValidator = /** @__PURE__ @class */ (function () {
|
|
|
6852
6851
|
});
|
|
6853
6852
|
errorDiv.setAttribute('id', 'js-licensing');
|
|
6854
6853
|
document.body.appendChild(errorDiv);
|
|
6854
|
+
document.getElementById('license-banner-error').addEventListener('click', function () {
|
|
6855
|
+
document.getElementById('js-licensing').remove();
|
|
6856
|
+
});
|
|
6855
6857
|
}
|
|
6856
6858
|
this.isValidated = true;
|
|
6857
6859
|
setValue(convertToChar(bypassKey), this.isValidated, containerObject);
|
|
@@ -6951,6 +6953,7 @@ function convertToChar(cArr) {
|
|
|
6951
6953
|
}
|
|
6952
6954
|
/**
|
|
6953
6955
|
* To set license key.
|
|
6956
|
+
*
|
|
6954
6957
|
* @param {string} key - license key
|
|
6955
6958
|
*/
|
|
6956
6959
|
function registerLicense(key) {
|
|
@@ -7651,9 +7654,6 @@ var Draggable = /** @__PURE__ @class */ (function (_super) {
|
|
|
7651
7654
|
if (isChangeTouch && (evt.changedTouches.length !== 1)) {
|
|
7652
7655
|
return;
|
|
7653
7656
|
}
|
|
7654
|
-
if (isChangeTouch) {
|
|
7655
|
-
evt.preventDefault();
|
|
7656
|
-
}
|
|
7657
7657
|
var intCordinate = this.getCoordinates(evt);
|
|
7658
7658
|
var pos;
|
|
7659
7659
|
var styleProp = getComputedStyle(this.element);
|
|
@@ -7684,6 +7684,9 @@ var Draggable = /** @__PURE__ @class */ (function (_super) {
|
|
|
7684
7684
|
if (!ele || isNullOrUndefined(ele)) {
|
|
7685
7685
|
return;
|
|
7686
7686
|
}
|
|
7687
|
+
if (isChangeTouch) {
|
|
7688
|
+
evt.preventDefault();
|
|
7689
|
+
}
|
|
7687
7690
|
var dragTargetElement = this.helperElement = ele;
|
|
7688
7691
|
this.parentClientRect = this.calculateParentPosition(dragTargetElement.offsetParent);
|
|
7689
7692
|
if (this.dragStart) {
|