@devexpress/analytics-core 19.2.8 → 19.2.9
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/css/dx-analytics.carmine.compact.css +2 -2
- package/dist/css/dx-analytics.carmine.css +2 -2
- package/dist/css/dx-analytics.common.css +2 -2
- package/dist/css/dx-analytics.contrast.compact.css +2 -2
- package/dist/css/dx-analytics.contrast.css +2 -2
- package/dist/css/dx-analytics.dark.compact.css +2 -2
- package/dist/css/dx-analytics.dark.css +2 -2
- package/dist/css/dx-analytics.darkmoon.compact.css +2 -2
- package/dist/css/dx-analytics.darkmoon.css +2 -2
- package/dist/css/dx-analytics.darkviolet.compact.css +2 -2
- package/dist/css/dx-analytics.darkviolet.css +2 -2
- package/dist/css/dx-analytics.greenmist.compact.css +2 -2
- package/dist/css/dx-analytics.greenmist.css +2 -2
- package/dist/css/dx-analytics.light.compact.css +2 -2
- package/dist/css/dx-analytics.light.css +2 -2
- package/dist/css/dx-analytics.softblue.compact.css +2 -2
- package/dist/css/dx-analytics.softblue.css +2 -2
- package/dist/css/dx-querybuilder.css +2 -2
- package/dist/html/templates.html +2 -2
- package/dist/js/dx-analytics-core.js +32 -8
- package/dist/js/dx-analytics-core.min.js +3 -3
- package/dist/js/dx-querybuilder.js +11 -10
- package/dist/js/dx-querybuilder.min.js +3 -3
- package/dx-analytics-core.d.ts +3 -2
- package/dx-analytics-core.js +32 -8
- package/dx-querybuilder.d.ts +4 -4
- package/dx-querybuilder.js +11 -10
- package/package.json +2 -2
package/dx-analytics-core.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* DevExpress HTML/JS Analytics Core (dx-analytics-core.d.ts)
|
|
3
|
-
* Version: 19.2.
|
|
4
|
-
* Build date: 2020-
|
|
3
|
+
* Version: 19.2.9
|
|
4
|
+
* Build date: 2020-07-13
|
|
5
5
|
* Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED
|
|
6
6
|
* License: https://www.devexpress.com/Support/EULAs/NetComponents.xml
|
|
7
7
|
*/
|
|
@@ -939,6 +939,7 @@ declare module DevExpress.Analytics {
|
|
|
939
939
|
private _getRealPath;
|
|
940
940
|
private _getFields;
|
|
941
941
|
private static _cleanupFields;
|
|
942
|
+
private _processFields;
|
|
942
943
|
getFunctionsCompletions(): any[];
|
|
943
944
|
getAggregateCompletions(): any[];
|
|
944
945
|
getOperatorCompletions(prefix: any): {
|
package/dx-analytics-core.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* DevExpress HTML/JS Analytics Core (dx-analytics-core.js)
|
|
3
|
-
* Version: 19.2.
|
|
4
|
-
* Build date: 2020-
|
|
3
|
+
* Version: 19.2.9
|
|
4
|
+
* Build date: 2020-07-13
|
|
5
5
|
* Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED
|
|
6
6
|
* License: https://www.devexpress.com/Support/EULAs/NetComponents.xml
|
|
7
7
|
*/
|
|
@@ -4328,9 +4328,9 @@ var DevExpress;
|
|
|
4328
4328
|
var path = item.rootPath || item.name;
|
|
4329
4329
|
if (rootPathRequests.indexOf(path) === -1) {
|
|
4330
4330
|
rootPathRequests.push(path);
|
|
4331
|
-
$deferreds.push(ko.unwrap(_this._fieldListProvider).getItems(new Utils.PathRequest(
|
|
4331
|
+
$deferreds.push(ko.unwrap(_this._fieldListProvider).getItems(new Utils.PathRequest(path))
|
|
4332
4332
|
.done(function (fields) {
|
|
4333
|
-
|
|
4333
|
+
_this._processFields($deferreds, fields, completions, path, token, item.needPrefix ? item.name + "." : "", true);
|
|
4334
4334
|
}));
|
|
4335
4335
|
}
|
|
4336
4336
|
});
|
|
@@ -4343,6 +4343,28 @@ var DevExpress;
|
|
|
4343
4343
|
if (fields === void 0) { fields = []; }
|
|
4344
4344
|
return fields.filter(function (x) { return x.specifics !== "parameters" && x.specifics !== "none"; });
|
|
4345
4345
|
};
|
|
4346
|
+
CodeCompletor.prototype._processFields = function ($deferreds, fields, completions, path, token, parentPrefix, needCleanup) {
|
|
4347
|
+
var _this = this;
|
|
4348
|
+
if (parentPrefix === void 0) { parentPrefix = ""; }
|
|
4349
|
+
if (needCleanup === void 0) { needCleanup = false; }
|
|
4350
|
+
var pushToCompletions = function (fields) {
|
|
4351
|
+
completions.push.apply(completions, _this._convertDataMemberInfoToCompletions(needCleanup ? CodeCompletor._cleanupFields(fields) : fields, token, parentPrefix));
|
|
4352
|
+
};
|
|
4353
|
+
fields.forEach(function (item) {
|
|
4354
|
+
if (item.specifics === Internal.RangeSpecific && Analytics.Internal.isList(item)) {
|
|
4355
|
+
$deferreds.push(ko.unwrap(_this._fieldListProvider).getItems(new Utils.PathRequest(path + "." + item.name))
|
|
4356
|
+
.done(function (subFields) {
|
|
4357
|
+
pushToCompletions(subFields);
|
|
4358
|
+
})
|
|
4359
|
+
.fail(function () {
|
|
4360
|
+
pushToCompletions([item]);
|
|
4361
|
+
}));
|
|
4362
|
+
}
|
|
4363
|
+
else {
|
|
4364
|
+
pushToCompletions([item]);
|
|
4365
|
+
}
|
|
4366
|
+
});
|
|
4367
|
+
};
|
|
4346
4368
|
CodeCompletor.prototype.getFunctionsCompletions = function () {
|
|
4347
4369
|
var functions = [];
|
|
4348
4370
|
var functionsWithoutAggregates = ko.unwrap(this._functions).filter(function (fnDisplay) { return fnDisplay.category !== "Aggregate"; });
|
|
@@ -4384,11 +4406,13 @@ var DevExpress;
|
|
|
4384
4406
|
CodeCompletor.prototype._addParameterOperators = function (completions, token) {
|
|
4385
4407
|
var _this = this;
|
|
4386
4408
|
var $deferred = $.Deferred();
|
|
4387
|
-
var $
|
|
4409
|
+
var $parametersPromises = [];
|
|
4410
|
+
var paramPath = "Parameters";
|
|
4411
|
+
$parametersPromises.push(ko.unwrap(this["_fieldListProvider"]).getItems(new Utils.PathRequest(paramPath))
|
|
4388
4412
|
.done(function (fields) {
|
|
4389
|
-
|
|
4390
|
-
});
|
|
4391
|
-
$.when($
|
|
4413
|
+
_this._processFields($parametersPromises, fields, completions, paramPath, token, paramPath + ".");
|
|
4414
|
+
}));
|
|
4415
|
+
$.when($parametersPromises).always(function () { $deferred.resolve(completions); });
|
|
4392
4416
|
return $deferred.promise();
|
|
4393
4417
|
};
|
|
4394
4418
|
CodeCompletor.prototype._getOperands = function (token) {
|
package/dx-querybuilder.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* DevExpress HTML/JS Query Builder (dx-querybuilder.d.ts)
|
|
3
|
-
* Version: 19.2.
|
|
4
|
-
* Build date: 2020-
|
|
3
|
+
* Version: 19.2.9
|
|
4
|
+
* Build date: 2020-07-13
|
|
5
5
|
* Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED
|
|
6
6
|
* License: https://www.devexpress.com/Support/EULAs/NetComponents.xml
|
|
7
7
|
*/
|
|
@@ -902,8 +902,6 @@ declare module DevExpress {
|
|
|
902
902
|
private _dataSourceWrapper;
|
|
903
903
|
private _connection;
|
|
904
904
|
private _dataSource;
|
|
905
|
-
private queryName;
|
|
906
|
-
private placeholder;
|
|
907
905
|
constructor(_options: _DataSourceWizardOptions);
|
|
908
906
|
canNext(): boolean;
|
|
909
907
|
canFinish(): boolean;
|
|
@@ -914,7 +912,9 @@ declare module DevExpress {
|
|
|
914
912
|
queryNameCaption: () => string;
|
|
915
913
|
queryControl: ko.Observable<Internal.ISqlQueryControl>;
|
|
916
914
|
runQueryBuilderBtnText: ko.PureComputed<any>;
|
|
915
|
+
placeholder: () => string;
|
|
917
916
|
popupQueryBuilder: Wizard.Internal.QueryBuilderPopup;
|
|
917
|
+
queryName: ko.Observable<string>;
|
|
918
918
|
queryTypeItems: string[];
|
|
919
919
|
selectedQueryType: ko.Observable<string>;
|
|
920
920
|
initialName: string;
|
package/dx-querybuilder.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* DevExpress HTML/JS Query Builder (dx-querybuilder.js)
|
|
3
|
-
* Version: 19.2.
|
|
4
|
-
* Build date: 2020-
|
|
3
|
+
* Version: 19.2.9
|
|
4
|
+
* Build date: 2020-07-13
|
|
5
5
|
* Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED
|
|
6
6
|
* License: https://www.devexpress.com/Support/EULAs/NetComponents.xml
|
|
7
7
|
*/
|
|
@@ -3408,13 +3408,6 @@ var DevExpress;
|
|
|
3408
3408
|
_this._dataSource = function () {
|
|
3409
3409
|
return _this._dataSourceWrapper && _this._dataSourceWrapper.sqlDataSource;
|
|
3410
3410
|
};
|
|
3411
|
-
_this.queryName = ko.observable("");
|
|
3412
|
-
_this.placeholder = function () {
|
|
3413
|
-
var queryControl = _this.queryControl();
|
|
3414
|
-
var query = queryControl && queryControl.getQuery();
|
|
3415
|
-
var queryName = _this.initialName || (query && query.generateName());
|
|
3416
|
-
return queryName ? Analytics.Internal.formatUnicorn(Analytics.Utils.getLocalization("Type custom query name (current name: {0})", "AnalyticsCoreStringId.SqlDSWizard_QueryNamePlaceholder"), queryName) : queryName;
|
|
3417
|
-
};
|
|
3418
3411
|
_this.queryNameCaption = function () { return DevExpress.Analytics.Utils.getLocalization("Query Name", "AnalyticsCoreStringId.SqlDSWizard_QueryName") + ":"; };
|
|
3419
3412
|
_this.queryControl = ko.observable();
|
|
3420
3413
|
_this.runQueryBuilderBtnText = ko.pureComputed(function () {
|
|
@@ -3422,6 +3415,13 @@ var DevExpress;
|
|
|
3422
3415
|
Analytics.Utils.getLocalization("Run Query Builder...", "DataAccessUIStringId.Button_QueryBuilder") :
|
|
3423
3416
|
Analytics.Utils.getLocalization("Create New Query...", "AnalyticsCoreStringId.SqlDSWizard_CreateNewQuery");
|
|
3424
3417
|
}).extend({ deferred: true });
|
|
3418
|
+
_this.placeholder = function () {
|
|
3419
|
+
var queryControl = _this.queryControl();
|
|
3420
|
+
var query = queryControl && queryControl.getQuery();
|
|
3421
|
+
var queryName = _this.initialName || (query && query.generateName());
|
|
3422
|
+
return queryName ? Analytics.Internal.formatUnicorn(Analytics.Utils.getLocalization("Type custom query name (current name: {0})", "AnalyticsCoreStringId.SqlDSWizard_QueryNamePlaceholder"), queryName) : queryName;
|
|
3423
|
+
};
|
|
3424
|
+
_this.queryName = ko.observable("");
|
|
3425
3425
|
_this.queryTypeItems = [ConfigureQueryPage.QUERY_TEXT, ConfigureQueryPage.SP_TEXT];
|
|
3426
3426
|
_this.selectedQueryType = ko.observable();
|
|
3427
3427
|
_this.initialName = "";
|
|
@@ -3487,7 +3487,8 @@ var DevExpress;
|
|
|
3487
3487
|
ConfigureQueryPage.prototype.commit = function () {
|
|
3488
3488
|
var query = this.queryControl().getQuery();
|
|
3489
3489
|
if (query) {
|
|
3490
|
-
this.queryName()
|
|
3490
|
+
var newQueryName = this.queryName() || this.initialName;
|
|
3491
|
+
newQueryName && query.name(newQueryName);
|
|
3491
3492
|
if (!query.name() || !this._dataSourceWrapper.sqlQuery || this._dataSourceWrapper.sqlQuery.name() !== query.name())
|
|
3492
3493
|
query.name(Data.Internal.generateQueryUniqueName(this._dataSource().queries(), query));
|
|
3493
3494
|
this._dataSourceWrapper.sqlQuery = query;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devexpress/analytics-core",
|
|
3
|
-
"version": "19.2.
|
|
3
|
+
"version": "19.2.9",
|
|
4
4
|
"homepage": "https://www.devexpress.com/",
|
|
5
5
|
"bugs": "https://www.devexpress.com/support/",
|
|
6
6
|
"author": "Developer Express Inc.",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"knockout": "~3.5.0"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"devextreme": "19.2.
|
|
23
|
+
"devextreme": "19.2.9"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"webpack": "^1.13.1"
|