@easyquery/enterprise 7.2.1-rc03 → 7.2.1-rc04
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 +86 -35
- package/dist/browser/eq.enterprise.js.map +1 -1
- package/dist/browser/eq.enterprise.min.js +2 -2
- package/dist/browser/eq.enterprise.min.js.map +1 -1
- package/dist/bundles/easyquery.enterprise.js +82 -27
- 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 +12 -7
- package/dist/lib/extensions.js.map +1 -1
- package/dist/lib/license/lc-dialog.d.ts +1 -0
- package/dist/lib/license/lc-dialog.js +52 -2
- package/dist/lib/license/lc-dialog.js.map +1 -1
- 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.1-
|
|
2
|
+
* EasyQuery.JS Enterprise 7.2.1-rc04 (https://korzh.com/easyquery/javascript)
|
|
3
3
|
* Copyright 2022 Korzh.com. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* EasyQuery.JS commercial licenses may be obtained at
|
|
@@ -3222,7 +3222,6 @@ var context_EqContext = /** @class */ (function () {
|
|
|
3222
3222
|
/**
|
|
3223
3223
|
* If `defaultModelId` property is define - this method calls `loadModel` function in the broker
|
|
3224
3224
|
* to load the model with such ID.
|
|
3225
|
-
*
|
|
3226
3225
|
*/
|
|
3227
3226
|
EqContext.prototype.loadDefaultModel = function () {
|
|
3228
3227
|
var _this = this;
|
|
@@ -36280,13 +36279,12 @@ var data_filter_view_extends = (undefined && undefined.__extends) || (function (
|
|
|
36280
36279
|
var data_filter_view_DataFilterView = /** @class */ (function (_super) {
|
|
36281
36280
|
data_filter_view_extends(DataFilterView, _super);
|
|
36282
36281
|
function DataFilterView() {
|
|
36283
|
-
|
|
36284
|
-
_this.resultOptions.fetchEmptyQueries = true;
|
|
36285
|
-
return _this;
|
|
36282
|
+
return _super.call(this) || this;
|
|
36286
36283
|
}
|
|
36287
36284
|
DataFilterView.prototype.initOptions = function (options) {
|
|
36288
36285
|
var _this = this;
|
|
36289
36286
|
options = _super.prototype.initOptions.call(this, options);
|
|
36287
|
+
options.result.fetchEmptyQueries = true;
|
|
36290
36288
|
var query = this.context.getQuery();
|
|
36291
36289
|
query.addChangedCallback(function () {
|
|
36292
36290
|
if (_this.resultOptions.clearResultOnQueryChange) {
|
|
@@ -36360,9 +36358,7 @@ var html_data_filter_view_extends = (undefined && undefined.__extends) || (funct
|
|
|
36360
36358
|
var html_data_filter_view_HtmlDataFilterView = /** @class */ (function (_super) {
|
|
36361
36359
|
html_data_filter_view_extends(HtmlDataFilterView, _super);
|
|
36362
36360
|
function HtmlDataFilterView() {
|
|
36363
|
-
|
|
36364
|
-
_this.resultOptions.fetchEmptyQueries = true;
|
|
36365
|
-
return _this;
|
|
36361
|
+
return _super.call(this) || this;
|
|
36366
36362
|
}
|
|
36367
36363
|
/**
|
|
36368
36364
|
* Creates the widget that represents Grid Widget.
|
|
@@ -37519,7 +37515,7 @@ Math.trunc = Math.trunc || function (x) {
|
|
|
37519
37515
|
}
|
|
37520
37516
|
return Math.ceil(x);
|
|
37521
37517
|
};
|
|
37522
|
-
var
|
|
37518
|
+
var lcv_lcv = {
|
|
37523
37519
|
__kt: 0,
|
|
37524
37520
|
ck: function (key) {
|
|
37525
37521
|
if (!key || !key.length) {
|
|
@@ -37540,23 +37536,23 @@ var lcv = {
|
|
|
37540
37536
|
}
|
|
37541
37537
|
}
|
|
37542
37538
|
if (!ism) {
|
|
37543
|
-
|
|
37539
|
+
lcv_lcv.__kt = -1;
|
|
37544
37540
|
}
|
|
37545
37541
|
var idx = minVer % 4;
|
|
37546
37542
|
var shift = majVer + minVer;
|
|
37547
37543
|
if (part2[6 + idx] != encChar(shift, 19)) {
|
|
37548
|
-
|
|
37544
|
+
lcv_lcv.__kt = -2;
|
|
37549
37545
|
return;
|
|
37550
37546
|
}
|
|
37551
37547
|
if (part2[1] != encChar(infoBytes[3])) {
|
|
37552
37548
|
return;
|
|
37553
37549
|
}
|
|
37554
|
-
|
|
37555
|
-
if (
|
|
37550
|
+
lcv_lcv.__kt = part2[3] != encChar(infoBytes[5]) ? 2 : 3;
|
|
37551
|
+
if (lcv_lcv.__kt === 2) {
|
|
37556
37552
|
var eds = "" + f36(part2.substring(4, 6) + part2.substring(10));
|
|
37557
37553
|
var ed = new Date(2000 + Number.parseInt(eds.substring(0, 2)), Number.parseInt(eds.substring(2, 4)) - 1, Number.parseInt(eds.substring(4)), 0, 0, 0, 0);
|
|
37558
37554
|
if (Date.now() > ed.getTime()) {
|
|
37559
|
-
|
|
37555
|
+
lcv_lcv.__kt = 1;
|
|
37560
37556
|
}
|
|
37561
37557
|
}
|
|
37562
37558
|
}
|
|
@@ -37657,7 +37653,7 @@ var condition_ex_ConditionEx = /** @class */ (function (_super) {
|
|
|
37657
37653
|
};
|
|
37658
37654
|
ConditionEx.prototype.loadFromData = function (model, data) {
|
|
37659
37655
|
_super.prototype.loadFromData.call(this, model, data);
|
|
37660
|
-
if (
|
|
37656
|
+
if (lcv_lcv.__kt <= 1)
|
|
37661
37657
|
return;
|
|
37662
37658
|
if (typeof data.readOnly !== 'undefined') {
|
|
37663
37659
|
this.setReadOnly(data.readOnly);
|
|
@@ -37681,7 +37677,7 @@ var condition_ex_ConditionEx = /** @class */ (function (_super) {
|
|
|
37681
37677
|
};
|
|
37682
37678
|
ConditionEx.prototype.saveToData = function () {
|
|
37683
37679
|
var obj = _super.prototype.saveToData.call(this);
|
|
37684
|
-
if (
|
|
37680
|
+
if (lcv_lcv.__kt <= 1)
|
|
37685
37681
|
return obj;
|
|
37686
37682
|
if (this.isReadOnly()) {
|
|
37687
37683
|
obj.readOnly = this.isReadOnly();
|
|
@@ -37742,7 +37738,7 @@ var query_column_ex_QueryColumnEx = /** @class */ (function (_super) {
|
|
|
37742
37738
|
*/
|
|
37743
37739
|
QueryColumnEx.prototype.loadFromData = function (model, colData) {
|
|
37744
37740
|
_super.prototype.loadFromData.call(this, model, colData);
|
|
37745
|
-
if (
|
|
37741
|
+
if (lcv_lcv.__kt <= 2)
|
|
37746
37742
|
return;
|
|
37747
37743
|
if (colData) {
|
|
37748
37744
|
if (typeof colData.readOnly != 'undefined') {
|
|
@@ -37752,7 +37748,7 @@ var query_column_ex_QueryColumnEx = /** @class */ (function (_super) {
|
|
|
37752
37748
|
};
|
|
37753
37749
|
QueryColumnEx.prototype.saveToData = function () {
|
|
37754
37750
|
var colData = _super.prototype.saveToData.call(this);
|
|
37755
|
-
if (
|
|
37751
|
+
if (lcv_lcv.__kt <= 2)
|
|
37756
37752
|
return colData;
|
|
37757
37753
|
if (this.isReadOnly()) {
|
|
37758
37754
|
colData.readOnly = this.isReadOnly();
|
|
@@ -37787,20 +37783,20 @@ var query_ex_QueryEx = /** @class */ (function (_super) {
|
|
|
37787
37783
|
return _super.call(this, model) || this;
|
|
37788
37784
|
}
|
|
37789
37785
|
QueryEx.prototype.isEx = function () {
|
|
37790
|
-
return
|
|
37786
|
+
return lcv_lcv.__kt > 1;
|
|
37791
37787
|
};
|
|
37792
37788
|
QueryEx.prototype.createSubQuery = function () {
|
|
37793
37789
|
return new QueryEx(this.model);
|
|
37794
37790
|
};
|
|
37795
37791
|
QueryEx.prototype.createCondition = function (tag) {
|
|
37796
37792
|
if (tag === void 0) { tag = public_api["CondTag"].Simple; }
|
|
37797
|
-
if (
|
|
37793
|
+
if (lcv_lcv.__kt <= 1)
|
|
37798
37794
|
return _super.prototype.createCondition.call(this, tag);
|
|
37799
37795
|
return new condition_ex_ConditionEx(this, tag);
|
|
37800
37796
|
};
|
|
37801
37797
|
QueryEx.prototype.createColumn = function (justsorted) {
|
|
37802
37798
|
if (justsorted === void 0) { justsorted = false; }
|
|
37803
|
-
if (
|
|
37799
|
+
if (lcv_lcv.__kt <= 1)
|
|
37804
37800
|
return _super.prototype.createColumn.call(this, justsorted);
|
|
37805
37801
|
return new query_column_ex_QueryColumnEx(this, justsorted);
|
|
37806
37802
|
};
|
|
@@ -37811,7 +37807,7 @@ var query_ex_QueryEx = /** @class */ (function (_super) {
|
|
|
37811
37807
|
*/
|
|
37812
37808
|
QueryEx.prototype.addConditionGroup = function (descriptor, addChildCondition) {
|
|
37813
37809
|
if (addChildCondition === void 0) { addChildCondition = true; }
|
|
37814
|
-
if (
|
|
37810
|
+
if (lcv_lcv.__kt <= 1)
|
|
37815
37811
|
return _super.prototype.addConditionGroup.call(this, descriptor, addChildCondition);
|
|
37816
37812
|
var parent = descriptor.parent || this.getRootCondition();
|
|
37817
37813
|
var lType = descriptor.linking || (parent.linkType === public_api["LinkType"].All ? public_api["LinkType"].Any : public_api["LinkType"].All);
|
|
@@ -37830,7 +37826,7 @@ var query_ex_QueryEx = /** @class */ (function (_super) {
|
|
|
37830
37826
|
QueryEx.prototype.addExtraConditionGroup = function (descriptor, addChildCondition) {
|
|
37831
37827
|
if (addChildCondition === void 0) { addChildCondition = true; }
|
|
37832
37828
|
descriptor.parent = descriptor.parent || this.extraConditions;
|
|
37833
|
-
if (
|
|
37829
|
+
if (lcv_lcv.__kt <= 1)
|
|
37834
37830
|
return _super.prototype.addExtraConditionGroup.call(this, descriptor, addChildCondition);
|
|
37835
37831
|
return this.addConditionGroup(descriptor);
|
|
37836
37832
|
};
|
|
@@ -37864,7 +37860,7 @@ var model_ex_DataModelEx = /** @class */ (function (_super) {
|
|
|
37864
37860
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
37865
37861
|
}
|
|
37866
37862
|
DataModelEx.prototype.buildQueryPath = function (query) {
|
|
37867
|
-
if (
|
|
37863
|
+
if (lcv_lcv.__kt <= 1)
|
|
37868
37864
|
return _super.prototype.buildQueryPath.call(this, query);
|
|
37869
37865
|
if (this.mainEntity)
|
|
37870
37866
|
return _super.prototype.buildQueryPath.call(this, query);
|
|
@@ -38140,7 +38136,7 @@ var lc_dialog_LCDialog = /** @class */ (function () {
|
|
|
38140
38136
|
var formBuilder = Object(dist_lib_public_api["domel"])('div');
|
|
38141
38137
|
formBuilder.addChild('div', function (b) { return b
|
|
38142
38138
|
.html('<div style="font-size:1.2em">We sent a confirmation code to <strong>{{email}}</strong>.</div>' +
|
|
38143
|
-
'<div style="font-size:1.2em">Please find it and enter the
|
|
38139
|
+
'<div style="font-size:1.2em">Please find it in the email and enter to the text box below</div>'); });
|
|
38144
38140
|
formBuilder
|
|
38145
38141
|
.addClass('kfrm-form')
|
|
38146
38142
|
.addChild('div', function (b) {
|
|
@@ -38165,7 +38161,7 @@ var lc_dialog_LCDialog = /** @class */ (function () {
|
|
|
38165
38161
|
var formBuilder = Object(dist_lib_public_api["domel"])('div');
|
|
38166
38162
|
formBuilder.addChild('div', function (b) { return b
|
|
38167
38163
|
.html('<div style="font-size:1.2em">You have successfully completed the registration process.</div>' +
|
|
38168
|
-
'<div style="font-size:1.2em">Please restart web application to get the key applied.</div>'); });
|
|
38164
|
+
'<div style="font-size:1.2em">Please restart your web application to get the key applied.</div>'); });
|
|
38169
38165
|
form = formBuilder.toDOM();
|
|
38170
38166
|
return form;
|
|
38171
38167
|
};
|
|
@@ -38256,6 +38252,56 @@ var lc_dialog_LCDialog = /** @class */ (function () {
|
|
|
38256
38252
|
return LCDialog;
|
|
38257
38253
|
}());
|
|
38258
38254
|
|
|
38255
|
+
function showNoLicenseAlert(lcv) {
|
|
38256
|
+
var title, body, buttonTitle, buttonUrl;
|
|
38257
|
+
switch (lcv.__kt) {
|
|
38258
|
+
case 1:
|
|
38259
|
+
title = 'EasyQuery trial has expired';
|
|
38260
|
+
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.";
|
|
38261
|
+
buttonTitle = 'Buy a license';
|
|
38262
|
+
buttonUrl = 'https://korzh.com/easyquery/licensing';
|
|
38263
|
+
break;
|
|
38264
|
+
case -3:
|
|
38265
|
+
title = 'No license key for EasyQuery';
|
|
38266
|
+
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.";
|
|
38267
|
+
buttonTitle = 'Register trial';
|
|
38268
|
+
buttonUrl = 'https://korzh.com/easyquery#get-started';
|
|
38269
|
+
break;
|
|
38270
|
+
default:
|
|
38271
|
+
title = "Invalid key for EasyQuery!";
|
|
38272
|
+
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.";
|
|
38273
|
+
buttonTitle = 'Get key';
|
|
38274
|
+
buttonUrl = 'https://korzh.com/account';
|
|
38275
|
+
break;
|
|
38276
|
+
}
|
|
38277
|
+
var ds = new dist_lib_public_api["DefaultDialogService"]();
|
|
38278
|
+
var dlg = ds.open({
|
|
38279
|
+
closable: false,
|
|
38280
|
+
cancelable: false,
|
|
38281
|
+
submitable: false,
|
|
38282
|
+
title: title,
|
|
38283
|
+
body: body
|
|
38284
|
+
});
|
|
38285
|
+
var footer = dlg.getRootElement().querySelector('footer');
|
|
38286
|
+
Object(dist_lib_public_api["domel"])(footer)
|
|
38287
|
+
.removeClass('align-right')
|
|
38288
|
+
.setStyle('justify-content', 'center')
|
|
38289
|
+
.addChild('button', function (b) { return b
|
|
38290
|
+
.addClass('kfrm-button', 'is-info')
|
|
38291
|
+
.addText(buttonTitle)
|
|
38292
|
+
.on('click', function (e) {
|
|
38293
|
+
window.location.href = buttonUrl;
|
|
38294
|
+
}); });
|
|
38295
|
+
if (lcv.__kt == 1) {
|
|
38296
|
+
Object(dist_lib_public_api["domel"])(footer)
|
|
38297
|
+
.addChild('button', function (b) { return b
|
|
38298
|
+
.addClass('kfrm-button')
|
|
38299
|
+
.addText('Extend trial')
|
|
38300
|
+
.on('click', function (e) {
|
|
38301
|
+
window.location.href = 'https://korzh.com/account';
|
|
38302
|
+
}); });
|
|
38303
|
+
}
|
|
38304
|
+
}
|
|
38259
38305
|
//# sourceMappingURL=lc-dialog.js.map
|
|
38260
38306
|
// CONCATENATED MODULE: ./dist/lib/extensions.js
|
|
38261
38307
|
|
|
@@ -38272,15 +38318,15 @@ public_api["EqContext"].prototype.setLicenseKeyEndpoint = function (endpoint) {
|
|
|
38272
38318
|
};
|
|
38273
38319
|
public_api["EqContext"].prototype.useEnterprise = function (keyOrInitCallback) {
|
|
38274
38320
|
var _this = this;
|
|
38275
|
-
var func = function (key) {
|
|
38276
|
-
|
|
38277
|
-
if (
|
|
38321
|
+
var func = function (key, showAlert) {
|
|
38322
|
+
lcv_lcv.ck(key);
|
|
38323
|
+
if (lcv_lcv.__kt > 1) {
|
|
38278
38324
|
var services = _this.getServices();
|
|
38279
38325
|
services.registerDataModelResolver(function (context) { return new model_ex_DataModelEx(); });
|
|
38280
38326
|
services.registerQueryResolver(function (context) { return new query_ex_QueryEx(context.getModel()); });
|
|
38281
38327
|
services.registerQueryStorageResolver(function (context) { return new eqs_query_storage["a" /* EqServerQueryStorage */](context); });
|
|
38282
38328
|
services.registerAggregatesCalculator(function (context) { return new data_table_aggr_calculator["a" /* DataTableAggregatesCalculator */](context); });
|
|
38283
|
-
if (
|
|
38329
|
+
if (lcv_lcv.__kt === 2) {
|
|
38284
38330
|
console.warn('EasyQuery.JS is working in the TRIAL MODE!\n'
|
|
38285
38331
|
+ 'Please order a license (https://korzh.com/eq) to get a proper product key.');
|
|
38286
38332
|
createTrialWM();
|
|
@@ -38291,19 +38337,24 @@ public_api["EqContext"].prototype.useEnterprise = function (keyOrInitCallback) {
|
|
|
38291
38337
|
}
|
|
38292
38338
|
}
|
|
38293
38339
|
else {
|
|
38294
|
-
|
|
38295
|
-
|
|
38340
|
+
if (showAlert) {
|
|
38341
|
+
showNoLicenseAlert(lcv_lcv);
|
|
38342
|
+
}
|
|
38343
|
+
else {
|
|
38344
|
+
var lcd = new lc_dialog_LCDialog(_this);
|
|
38345
|
+
lcd.show();
|
|
38346
|
+
}
|
|
38296
38347
|
}
|
|
38297
38348
|
};
|
|
38298
38349
|
if (typeof (keyOrInitCallback) === "string") {
|
|
38299
|
-
func(keyOrInitCallback);
|
|
38350
|
+
func(keyOrInitCallback, true);
|
|
38300
38351
|
}
|
|
38301
38352
|
else if (typeof (keyOrInitCallback) === "function") {
|
|
38302
38353
|
var http_1 = this.getServices().getHttpClient();
|
|
38303
38354
|
var url_1 = public_api["equtils"].combinePath(this.getBaseEndpoint(), 'lck2');
|
|
38304
38355
|
http_1.get(url_1)
|
|
38305
38356
|
.then(function (result) {
|
|
38306
|
-
func(result.key.split("").reverse().join(""));
|
|
38357
|
+
func(result.key.split("").reverse().join(""), false);
|
|
38307
38358
|
_this.useBackend({
|
|
38308
38359
|
type: result.backendType,
|
|
38309
38360
|
subType: result.appType
|
|
@@ -38314,7 +38365,7 @@ public_api["EqContext"].prototype.useEnterprise = function (keyOrInitCallback) {
|
|
|
38314
38365
|
url_1 = public_api["equtils"].combinePath(_this.getBaseEndpoint(), 'lck');
|
|
38315
38366
|
http_1.get(url_1)
|
|
38316
38367
|
.then(function (result) {
|
|
38317
|
-
func(result.split("").reverse().join(""));
|
|
38368
|
+
func(result.split("").reverse().join(""), false);
|
|
38318
38369
|
keyOrInitCallback();
|
|
38319
38370
|
})
|
|
38320
38371
|
.catch(function (error) { return _this.throwError({
|