@easyquery/enterprise 7.2.4-rc01 → 7.2.4-rc03
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 +198 -25
- 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 +9 -7
- 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 +1 -1
- package/dist/lib/extensions.js.map +1 -1
- package/dist/lib/query/query_ex.d.ts +2 -2
- package/dist/lib/query/query_ex.js +8 -6
- package/dist/lib/query/query_ex.js.map +1 -1
- package/package.json +2 -2
|
@@ -451,14 +451,14 @@ var query_ex_extends = (undefined && undefined.__extends) || (function () {
|
|
|
451
451
|
|
|
452
452
|
var QueryEx = /** @class */ (function (_super) {
|
|
453
453
|
query_ex_extends(QueryEx, _super);
|
|
454
|
-
function QueryEx(model) {
|
|
455
|
-
return _super.call(this, model) || this;
|
|
454
|
+
function QueryEx(model, options) {
|
|
455
|
+
return _super.call(this, model, null, options) || this;
|
|
456
456
|
}
|
|
457
457
|
QueryEx.prototype.isEx = function () {
|
|
458
458
|
return lcv.__kt > 1;
|
|
459
459
|
};
|
|
460
460
|
QueryEx.prototype.createSubQuery = function () {
|
|
461
|
-
return new QueryEx(this.model);
|
|
461
|
+
return new QueryEx(this.model, { context: this.context });
|
|
462
462
|
};
|
|
463
463
|
QueryEx.prototype.createCondition = function (tag) {
|
|
464
464
|
if (tag === void 0) { tag = external_easyqueryCore_.CondTag.Simple; }
|
|
@@ -488,9 +488,11 @@ var QueryEx = /** @class */ (function (_super) {
|
|
|
488
488
|
if (addChildCondition) {
|
|
489
489
|
var model = this.getModel();
|
|
490
490
|
var attr = model.getFirstUICAttr();
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
491
|
+
if (attr) {
|
|
492
|
+
var op = model.getDefaultOperatorForAttr(attr);
|
|
493
|
+
var cond = this.createSimpleConditionObject(attr, op, "");
|
|
494
|
+
group.addCondition(cond);
|
|
495
|
+
}
|
|
494
496
|
}
|
|
495
497
|
parent.addCondition(group);
|
|
496
498
|
return group;
|
|
@@ -7847,7 +7849,7 @@ external_easyqueryCore_.EqContext.prototype.useEnterprise = function (keyOrInitC
|
|
|
7847
7849
|
if (lcv.__kt > 1) {
|
|
7848
7850
|
var services = _this.getServices();
|
|
7849
7851
|
services.registerDataModelResolver(function (context) { return new DataModelEx(); });
|
|
7850
|
-
services.registerQueryResolver(function (context) { return new QueryEx(context.getModel()); });
|
|
7852
|
+
services.registerQueryResolver(function (context) { return new QueryEx(context.getModel(), { context: context }); });
|
|
7851
7853
|
services.registerQueryStorageResolver(function (context) { return new EqServerQueryStorage(context); });
|
|
7852
7854
|
services.registerAggregatesCalculator(function (context) { return new DataTableAggregatesCalculator(context); });
|
|
7853
7855
|
if (lcv.__kt === 2) {
|