@easyquery/enterprise 7.2.4-rc05 → 7.2.4
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/dist/browser/eq.enterprise.js +63 -65
- package/dist/browser/eq.enterprise.js.map +1 -1
- package/dist/browser/eq.enterprise.min.js +1 -1
- package/dist/browser/eq.enterprise.min.js.map +1 -1
- package/dist/bundles/easyquery.enterprise.js +62 -63
- package/dist/bundles/easyquery.enterprise.js.map +1 -1
- package/dist/bundles/easyquery.enterprise.min.js +1 -1
- package/dist/bundles/easyquery.enterprise.min.js.map +1 -1
- package/dist/lib/extensions.js +6 -12
- package/dist/lib/extensions.js.map +1 -1
- package/dist/lib/license/lc-dialog.d.ts +2 -2
- package/dist/lib/license/lc-dialog.js +56 -52
- package/dist/lib/license/lc-dialog.js.map +1 -1
- package/dist/lib/utils/lcv.d.ts +1 -0
- package/dist/lib/utils/lcv.js +1 -0
- package/dist/lib/utils/lcv.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* EasyQuery.JS Enterprise 7.2.4
|
|
2
|
+
* EasyQuery.JS Enterprise 7.2.4 (https://korzh.com/easyquery/javascript)
|
|
3
3
|
* Copyright 2023 Korzh.com. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* EasyQuery.JS commercial licenses may be obtained at
|
|
@@ -35164,7 +35164,6 @@ var ReportView = /** @class */ (function (_super) {
|
|
|
35164
35164
|
var target = e.target;
|
|
35165
35165
|
var rid = target.getAttribute('data-rid');
|
|
35166
35166
|
_this.loadReport(rid);
|
|
35167
|
-
_this.setActiveReport(rid);
|
|
35168
35167
|
});
|
|
35169
35168
|
ul.appendChild(li);
|
|
35170
35169
|
};
|
|
@@ -35729,6 +35728,7 @@ Math.trunc = Math.trunc || function (x) {
|
|
|
35729
35728
|
};
|
|
35730
35729
|
var lcv = {
|
|
35731
35730
|
__kt: 0,
|
|
35731
|
+
versionNum: '' + majVer + '.' + minVer,
|
|
35732
35732
|
ck: function (key) {
|
|
35733
35733
|
if (!key || !key.length) {
|
|
35734
35734
|
this.__kt = -3;
|
|
@@ -36485,6 +36485,7 @@ var DataTableAggregatesCalculator = /** @class */ (function () {
|
|
|
36485
36485
|
|
|
36486
36486
|
|
|
36487
36487
|
|
|
36488
|
+
|
|
36488
36489
|
function strIsEmpty(str) {
|
|
36489
36490
|
if (str) {
|
|
36490
36491
|
return str.trim() === '';
|
|
@@ -36493,8 +36494,7 @@ function strIsEmpty(str) {
|
|
|
36493
36494
|
return true;
|
|
36494
36495
|
}
|
|
36495
36496
|
var baseLicApiUrl = 'https://account.korzh.com/api/license';
|
|
36496
|
-
|
|
36497
|
-
var eqVersion = '7.2';
|
|
36497
|
+
var eqVersion = lcv.versionNum;
|
|
36498
36498
|
var LCDialog = /** @class */ (function () {
|
|
36499
36499
|
function LCDialog(context) {
|
|
36500
36500
|
this.http = new public_api.HttpClient();
|
|
@@ -36540,7 +36540,6 @@ var LCDialog = /** @class */ (function () {
|
|
|
36540
36540
|
},
|
|
36541
36541
|
]);
|
|
36542
36542
|
var dialog1 = this.dialogSet.open(0);
|
|
36543
|
-
//dialog1.getRootElement();
|
|
36544
36543
|
setTimeout(function () {
|
|
36545
36544
|
_this.validateForm(dialog1);
|
|
36546
36545
|
var emailInput = document.getElementById('eqAuthEmail');
|
|
@@ -36650,10 +36649,9 @@ var LCDialog = /** @class */ (function () {
|
|
|
36650
36649
|
var form;
|
|
36651
36650
|
var formBuilder = (0,lib_public_api.domel)('div');
|
|
36652
36651
|
formBuilder.addChild('div', function (b) { return b
|
|
36653
|
-
.html('<div style="font-size:1.2em">You have successfully completed the registration
|
|
36654
|
-
'<div style="font-size:1.2em">Please restart your web application to get the key applied.</div>'); });
|
|
36652
|
+
.html('<div style="font-size:1.2em">You have successfully completed the registration.</div>' + '{{message}}'); });
|
|
36655
36653
|
form = formBuilder.toDOM();
|
|
36656
|
-
return form;
|
|
36654
|
+
return form.outerHTML;
|
|
36657
36655
|
};
|
|
36658
36656
|
LCDialog.prototype.buildFailurePage = function () {
|
|
36659
36657
|
var form;
|
|
@@ -36715,7 +36713,13 @@ var LCDialog = /** @class */ (function () {
|
|
|
36715
36713
|
version: eqVersion,
|
|
36716
36714
|
key: result.key
|
|
36717
36715
|
}, { dataType: 'json' })
|
|
36718
|
-
.then(function (_) { return _this.dialogSet.
|
|
36716
|
+
.then(function (_) { return _this.dialogSet.open(2, {
|
|
36717
|
+
message: '<div style="font-size:1.2em">Please restart your web application to get the key applied.</div>'
|
|
36718
|
+
}); }, function (_) { return _this.dialogSet.open(2, {
|
|
36719
|
+
message: '<div style="font-size:1.2em">' +
|
|
36720
|
+
'Please visit <a href="https://account.korzh.com">your account page on Korzh.com</a> to get the key ' +
|
|
36721
|
+
'and then add it to the <i>appsettings.json</i> file (in the <i>EasyQuery/LicenseKey</i> option).</div>'
|
|
36722
|
+
}); });
|
|
36719
36723
|
break;
|
|
36720
36724
|
case 2:
|
|
36721
36725
|
_this.dialogSet.open(3, {
|
|
@@ -36725,8 +36729,8 @@ var LCDialog = /** @class */ (function () {
|
|
|
36725
36729
|
break;
|
|
36726
36730
|
case 3:
|
|
36727
36731
|
_this.dialogSet.open(3, {
|
|
36728
|
-
message: '<div style="font-size:1.2em">
|
|
36729
|
-
'<div style="font-size:1.2em">You need to <a href="https://korzh.com
|
|
36732
|
+
message: '<div style="font-size:1.2em">The maintenance subscription for your EasyQuery license has expired.</div>' +
|
|
36733
|
+
'<div style="font-size:1.2em">You need to <a href="https://account.korzh.com">renew the subscription</a> to get a valid license.</div>'
|
|
36730
36734
|
});
|
|
36731
36735
|
break;
|
|
36732
36736
|
default:
|
|
@@ -36742,54 +36746,54 @@ var LCDialog = /** @class */ (function () {
|
|
|
36742
36746
|
return LCDialog;
|
|
36743
36747
|
}());
|
|
36744
36748
|
|
|
36745
|
-
function showNoLicenseAlert(
|
|
36746
|
-
|
|
36747
|
-
|
|
36748
|
-
|
|
36749
|
-
title = 'EasyQuery trial has expired';
|
|
36750
|
-
body = "Your trial period for EasyQuery has expired. \n\tYou can send a request to <a href=\"https://korzh.com/account\">extend your trial</a> or <a href=\"https://korzh.com/easyquery/licensing\">buy a license</a> to get rid of all limitations.";
|
|
36751
|
-
buttonTitle = 'Buy a license';
|
|
36752
|
-
buttonUrl = 'https://korzh.com/easyquery/licensing';
|
|
36753
|
-
break;
|
|
36754
|
-
case -3:
|
|
36755
|
-
title = 'No license key for EasyQuery';
|
|
36756
|
-
body = "Please <a href=\"https://korzh.com/easyquery#get-started\">register for a trial</a> \n\tor <a href=\"https://korzh.com/easyquery/licensing\">purchase a license</a> to get a proper product key. <br />\n\tIf you already have a key, please follow <a href=\"https://korzh.com/easyquery/docs/getting-started/product-key\">this guide</a> to apply it.";
|
|
36757
|
-
buttonTitle = 'Register trial';
|
|
36758
|
-
buttonUrl = 'https://korzh.com/easyquery#get-started';
|
|
36759
|
-
break;
|
|
36760
|
-
default:
|
|
36761
|
-
title = "Invalid key for EasyQuery!";
|
|
36762
|
-
body = "The EasyQuery product key is either invalid or was issued for a different version of the library.\n The version you are using now is 7.2,\n\tso please <a href=\"https://korzh.com/account\">login to your account</a> to get a proper key for version 7.2.";
|
|
36763
|
-
buttonTitle = 'Get key';
|
|
36764
|
-
buttonUrl = 'https://korzh.com/account';
|
|
36765
|
-
break;
|
|
36749
|
+
function showNoLicenseAlert(context) {
|
|
36750
|
+
if (lcv.__kt == -3) {
|
|
36751
|
+
var lcd = new LCDialog(context);
|
|
36752
|
+
lcd.show();
|
|
36766
36753
|
}
|
|
36767
|
-
|
|
36768
|
-
|
|
36769
|
-
|
|
36770
|
-
|
|
36771
|
-
|
|
36772
|
-
|
|
36773
|
-
|
|
36774
|
-
|
|
36775
|
-
|
|
36776
|
-
|
|
36777
|
-
|
|
36778
|
-
.
|
|
36779
|
-
|
|
36780
|
-
|
|
36781
|
-
|
|
36782
|
-
|
|
36783
|
-
|
|
36784
|
-
|
|
36785
|
-
|
|
36754
|
+
else {
|
|
36755
|
+
var title = void 0, body = void 0, buttonTitle_1, buttonUrl_1;
|
|
36756
|
+
switch (lcv.__kt) {
|
|
36757
|
+
case 1:
|
|
36758
|
+
title = 'EasyQuery trial has expired';
|
|
36759
|
+
body = "Your trial period for EasyQuery has expired. \n You can <a href=\"https://korzh.com/support\">submit a request to extend your trial</a> or <a href=\"https://korzh.com/easyquery#licensing\">buy a license</a> to get rid of all limitations.";
|
|
36760
|
+
buttonTitle_1 = 'Buy a license';
|
|
36761
|
+
buttonUrl_1 = '#licensing';
|
|
36762
|
+
break;
|
|
36763
|
+
default:
|
|
36764
|
+
title = "Invalid key for EasyQuery!";
|
|
36765
|
+
body = "The EasyQuery product key is either invalid or was issued for a different version of the library.\n The version you are using now is ".concat(eqVersion, ",\n so please <a href=\"https://account.korzh.com\">login to your account</a> to get a proper key for version ").concat(eqVersion);
|
|
36766
|
+
buttonTitle_1 = 'Get key';
|
|
36767
|
+
buttonUrl_1 = 'https://account.korzh.com';
|
|
36768
|
+
break;
|
|
36769
|
+
}
|
|
36770
|
+
var ds = new lib_public_api.DefaultDialogService();
|
|
36771
|
+
var dlg = ds.open({
|
|
36772
|
+
closable: false,
|
|
36773
|
+
cancelable: false,
|
|
36774
|
+
submitable: false,
|
|
36775
|
+
title: title,
|
|
36776
|
+
body: body
|
|
36777
|
+
});
|
|
36778
|
+
var footer = dlg.getRootElement().querySelector('footer');
|
|
36786
36779
|
(0,lib_public_api.domel)(footer)
|
|
36780
|
+
.removeClass('align-right')
|
|
36781
|
+
.setStyle('justify-content', 'center')
|
|
36787
36782
|
.addChild('button', function (b) { return b
|
|
36788
|
-
.addClass('kfrm-button')
|
|
36789
|
-
.addText(
|
|
36783
|
+
.addClass('kfrm-button', 'is-info')
|
|
36784
|
+
.addText(buttonTitle_1)
|
|
36790
36785
|
.on('click', function (e) {
|
|
36791
|
-
window.location.href =
|
|
36786
|
+
window.location.href = buttonUrl_1;
|
|
36792
36787
|
}); });
|
|
36788
|
+
if (lcv.__kt == 1) {
|
|
36789
|
+
(0,lib_public_api.domel)(footer)
|
|
36790
|
+
.addChild('button', function (b) { return b
|
|
36791
|
+
.addClass('kfrm-button')
|
|
36792
|
+
.addText('Extend trial')
|
|
36793
|
+
.on('click', function (e) {
|
|
36794
|
+
window.location.href = 'https://account.korzh.com';
|
|
36795
|
+
}); });
|
|
36796
|
+
}
|
|
36793
36797
|
}
|
|
36794
36798
|
}
|
|
36795
36799
|
//# sourceMappingURL=lc-dialog.js.map
|
|
@@ -36808,7 +36812,7 @@ EqContext.prototype.setLicenseKeyEndpoint = function (endpoint) {
|
|
|
36808
36812
|
};
|
|
36809
36813
|
EqContext.prototype.useEnterprise = function (keyOrInitCallback) {
|
|
36810
36814
|
var _this = this;
|
|
36811
|
-
var func = function (key
|
|
36815
|
+
var func = function (key) {
|
|
36812
36816
|
lcv.ck(key);
|
|
36813
36817
|
if (lcv.__kt > 1) {
|
|
36814
36818
|
var services = _this.getServices();
|
|
@@ -36827,24 +36831,18 @@ EqContext.prototype.useEnterprise = function (keyOrInitCallback) {
|
|
|
36827
36831
|
}
|
|
36828
36832
|
}
|
|
36829
36833
|
else {
|
|
36830
|
-
|
|
36831
|
-
showNoLicenseAlert(lcv);
|
|
36832
|
-
}
|
|
36833
|
-
else {
|
|
36834
|
-
var lcd = new LCDialog(_this);
|
|
36835
|
-
lcd.show();
|
|
36836
|
-
}
|
|
36834
|
+
showNoLicenseAlert(_this);
|
|
36837
36835
|
}
|
|
36838
36836
|
};
|
|
36839
36837
|
if (typeof (keyOrInitCallback) === "string") {
|
|
36840
|
-
func(keyOrInitCallback
|
|
36838
|
+
func(keyOrInitCallback);
|
|
36841
36839
|
}
|
|
36842
36840
|
else if (typeof (keyOrInitCallback) === "function") {
|
|
36843
36841
|
var http_1 = this.getServices().getHttpClient();
|
|
36844
36842
|
var url_1 = equtils.combinePath(this.getBaseEndpoint(), 'lck2');
|
|
36845
36843
|
http_1.get(url_1)
|
|
36846
36844
|
.then(function (result) {
|
|
36847
|
-
func(result.key.split("").reverse().join("")
|
|
36845
|
+
func(result.key.split("").reverse().join(""));
|
|
36848
36846
|
_this.useBackend({
|
|
36849
36847
|
type: result.backendType,
|
|
36850
36848
|
subType: result.appType
|
|
@@ -36855,7 +36853,7 @@ EqContext.prototype.useEnterprise = function (keyOrInitCallback) {
|
|
|
36855
36853
|
url_1 = equtils.combinePath(_this.getBaseEndpoint(), 'lck');
|
|
36856
36854
|
http_1.get(url_1)
|
|
36857
36855
|
.then(function (result) {
|
|
36858
|
-
func(result.split("").reverse().join("")
|
|
36856
|
+
func(result.split("").reverse().join(""));
|
|
36859
36857
|
keyOrInitCallback();
|
|
36860
36858
|
})
|
|
36861
36859
|
.catch(function (error) { return _this.throwError({
|