@easyquery/ui 7.2.0-rc03 → 7.2.0-rc07
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/assets/css/aggr-settings.css +6 -6
- package/dist/assets/css/easyfacets.css +2 -2
- package/dist/browser/eq.community.css.map +1 -1
- package/dist/browser/eq.community.js +450 -353
- package/dist/browser/eq.community.js.map +1 -1
- package/dist/browser/eq.community.min.js +3 -3
- package/dist/browser/eq.community.min.js.map +1 -1
- package/dist/browser/eq.core.css +14 -14
- package/dist/browser/eq.core.min.css +3 -3
- package/dist/browser/eq.view.css +2 -2
- package/dist/browser/eq.view.min.css +2 -2
- package/dist/bundles/easyquery.ui.js +65 -41
- package/dist/bundles/easyquery.ui.js.map +1 -1
- package/dist/bundles/easyquery.ui.min.js +1 -1
- package/dist/bundles/easyquery.ui.min.js.map +1 -1
- package/dist/lib/dialog/aggr_settings_dialog.js +3 -3
- package/dist/lib/dialog/aggr_settings_dialog.js.map +1 -1
- package/dist/lib/extensions.js +1 -1
- package/dist/lib/facets/pivot_table_facet.js +28 -5
- package/dist/lib/facets/pivot_table_facet.js.map +1 -1
- package/dist/lib/i18n/text_resources.js +1 -0
- package/dist/lib/i18n/text_resources.js.map +1 -1
- package/dist/lib/views/data_filter_view.d.ts +1 -0
- package/dist/lib/views/data_filter_view.js +3 -1
- package/dist/lib/views/data_filter_view.js.map +1 -1
- package/dist/lib/views/html_data_filter_view.js +3 -1
- package/dist/lib/views/html_data_filter_view.js.map +1 -1
- package/dist/lib/views/report_view.d.ts +3 -3
- package/dist/lib/views/report_view.js +14 -10
- package/dist/lib/views/report_view.js.map +1 -1
- package/dist/lib/views/view.js +4 -0
- package/dist/lib/views/view.js.map +1 -1
- package/dist/lib/views/view_options.d.ts +2 -1
- package/dist/lib/widgets/columns_bar.js.map +1 -1
- package/dist/lib/widgets/easy_grid_widget.js +0 -15
- package/dist/lib/widgets/easy_grid_widget.js.map +1 -1
- package/dist/lib/widgets/renderers/aggr_settings/aggr_settings_renderer.js +4 -4
- package/dist/lib/widgets/renderers/aggr_settings/aggr_settings_renderer.js.map +1 -1
- package/dist/lib/widgets/renderers/columnsbar/aggrfunc_column_renderer.js +0 -1
- package/dist/lib/widgets/renderers/columnsbar/aggrfunc_column_renderer.js.map +1 -1
- package/dist/lib/widgets/renderers/columnsbar/column_renderer_cb.js +0 -1
- package/dist/lib/widgets/renderers/columnsbar/column_renderer_cb.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* EasyQuery.JS Community 7.2.0-
|
|
3
|
-
* Copyright
|
|
2
|
+
* EasyQuery.JS Community 7.2.0-rc07 (https://korzh.com/easyquery/javascript)
|
|
3
|
+
* Copyright 2022 Korzh.com. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* EasyQuery.JS commercial licenses may be obtained at
|
|
6
6
|
* https://korzh.com/easyquery/javascript#LIC or as a part of
|
|
@@ -90,7 +90,7 @@ window["easyquery"] =
|
|
|
90
90
|
/******/
|
|
91
91
|
/******/
|
|
92
92
|
/******/ // Load entry module and return exports
|
|
93
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
93
|
+
/******/ return __webpack_require__(__webpack_require__.s = 108);
|
|
94
94
|
/******/ })
|
|
95
95
|
/************************************************************************/
|
|
96
96
|
/******/ ([
|
|
@@ -294,6 +294,7 @@ var meta_entity_MetaEntityAttr = /** @class */ (function () {
|
|
|
294
294
|
this.lookupEntity = dto.lent;
|
|
295
295
|
this.dataAttr = dto.dattr;
|
|
296
296
|
this.lookupDataAttr = dto.ldattr;
|
|
297
|
+
this.defaultValue = dto.defVal;
|
|
297
298
|
this.isNullable = utils["a" /* utils */].getIfDefined(dto.nul, this.isNullable);
|
|
298
299
|
this.isEditable = utils["a" /* utils */].getIfDefined(dto.ied, this.isEditable);
|
|
299
300
|
this.showOnView = utils["a" /* utils */].getIfDefined(dto.ivis || dto.sov, this.showOnView);
|
|
@@ -1348,7 +1349,7 @@ __webpack_require__.d(__webpack_exports__, "DialogFooterAlignment", function() {
|
|
|
1348
1349
|
__webpack_require__.d(__webpack_exports__, "dialogs", function() { return /* binding */ dialogs; });
|
|
1349
1350
|
|
|
1350
1351
|
// EXTERNAL MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/ui/dist/lib/grid/easy_grid.js
|
|
1351
|
-
var easy_grid = __webpack_require__(
|
|
1352
|
+
var easy_grid = __webpack_require__(104);
|
|
1352
1353
|
|
|
1353
1354
|
// EXTERNAL MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/ui/dist/lib/grid/easy_grid_options.js
|
|
1354
1355
|
var easy_grid_options = __webpack_require__(34);
|
|
@@ -2101,6 +2102,7 @@ __webpack_require__.d(__webpack_exports__, "Operand", function() { return /* ree
|
|
|
2101
2102
|
__webpack_require__.d(__webpack_exports__, "EqValueEditor", function() { return /* reexport */ value_editor["a" /* EqValueEditor */]; });
|
|
2102
2103
|
__webpack_require__.d(__webpack_exports__, "EqAction", function() { return /* reexport */ EqAction; });
|
|
2103
2104
|
__webpack_require__.d(__webpack_exports__, "EqModelLoader", function() { return /* reexport */ model_loader["a" /* EqModelLoader */]; });
|
|
2105
|
+
__webpack_require__.d(__webpack_exports__, "InMemoryModelStorage", function() { return /* reexport */ model_storage["a" /* InMemoryModelStorage */]; });
|
|
2104
2106
|
__webpack_require__.d(__webpack_exports__, "BrowserQueryStorage", function() { return /* reexport */ query_storage["a" /* BrowserQueryStorage */]; });
|
|
2105
2107
|
__webpack_require__.d(__webpack_exports__, "EqContext", function() { return /* reexport */ context_EqContext; });
|
|
2106
2108
|
__webpack_require__.d(__webpack_exports__, "Widget", function() { return /* reexport */ widget_Widget; });
|
|
@@ -2409,6 +2411,7 @@ var eq_services_EqServiceProvider = /** @class */ (function () {
|
|
|
2409
2411
|
this.httpClient = new public_api["HttpClient"]();
|
|
2410
2412
|
this.httpClient.defaultHeaders['x-eqjs-version'] = '7.2.0';
|
|
2411
2413
|
this.modelResolver = function (_) { return new data_model["a" /* DataModel */](); };
|
|
2414
|
+
this.modelStorageResolver = null;
|
|
2412
2415
|
this.queryResolver = function (context) { return new query_query["b" /* Query */](context.getModel()); };
|
|
2413
2416
|
this.modelLoaderResolver = function (context) { return new EqServerModelLoader(context); };
|
|
2414
2417
|
this.queryStorageResolver = function (context) { return new query_storage["a" /* BrowserQueryStorage */](context); };
|
|
@@ -2419,6 +2422,7 @@ var eq_services_EqServiceProvider = /** @class */ (function () {
|
|
|
2419
2422
|
this.aggrCalculatoResolver = function (context) { return new eq_aggr_container["a" /* DefaultAggregatesCalculator */](context); };
|
|
2420
2423
|
}
|
|
2421
2424
|
EqServiceProvider.prototype.reset = function () {
|
|
2425
|
+
this.modelStorage = null;
|
|
2422
2426
|
this.modelLoader = null;
|
|
2423
2427
|
this.queryStorage = null;
|
|
2424
2428
|
this.querySynchronizer = null;
|
|
@@ -2447,6 +2451,15 @@ var eq_services_EqServiceProvider = /** @class */ (function () {
|
|
|
2447
2451
|
}
|
|
2448
2452
|
return this.modelLoader;
|
|
2449
2453
|
};
|
|
2454
|
+
EqServiceProvider.prototype.getModelStorage = function () {
|
|
2455
|
+
if (!this.modelStorage) {
|
|
2456
|
+
if (!this.modelStorageResolver) {
|
|
2457
|
+
throw 'ModelStorageResolver is not defined';
|
|
2458
|
+
}
|
|
2459
|
+
this.modelStorage = this.modelStorageResolver(this.context);
|
|
2460
|
+
}
|
|
2461
|
+
return this.modelStorage;
|
|
2462
|
+
};
|
|
2450
2463
|
EqServiceProvider.prototype.getQueryStorage = function () {
|
|
2451
2464
|
if (!this.queryStorage) {
|
|
2452
2465
|
if (!this.queryStorageResolver) {
|
|
@@ -2510,6 +2523,9 @@ var eq_services_EqServiceProvider = /** @class */ (function () {
|
|
|
2510
2523
|
EqServiceProvider.prototype.registerModelLoaderResolver = function (resolver) {
|
|
2511
2524
|
this.modelLoaderResolver = resolver;
|
|
2512
2525
|
};
|
|
2526
|
+
EqServiceProvider.prototype.registerModelStorageResolver = function (resolver) {
|
|
2527
|
+
this.modelStorageResolver = resolver;
|
|
2528
|
+
};
|
|
2513
2529
|
EqServiceProvider.prototype.registerQueryStorageResolver = function (resolver) {
|
|
2514
2530
|
this.queryStorageResolver = resolver;
|
|
2515
2531
|
};
|
|
@@ -2608,6 +2624,9 @@ var EqAction;
|
|
|
2608
2624
|
EqAction["UploadQueryFile"] = "UploadQueryFile";
|
|
2609
2625
|
})(EqAction || (EqAction = {}));
|
|
2610
2626
|
//# sourceMappingURL=eq_actions.js.map
|
|
2627
|
+
// EXTERNAL MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/packs/core/dist/lib/main/model_storage.js
|
|
2628
|
+
var model_storage = __webpack_require__(103);
|
|
2629
|
+
|
|
2611
2630
|
// EXTERNAL MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/packs/core/dist/lib/query/query_events.js
|
|
2612
2631
|
var query_events = __webpack_require__(14);
|
|
2613
2632
|
|
|
@@ -2912,10 +2931,14 @@ var context_EqContext = /** @class */ (function () {
|
|
|
2912
2931
|
}
|
|
2913
2932
|
if (options.endpoint) {
|
|
2914
2933
|
this.baseEndpoint = options.endpoint;
|
|
2915
|
-
console.warn('The `endpoint` option is deprecated
|
|
2934
|
+
console.warn('The `endpoint` option is deprecated.\n'
|
|
2916
2935
|
+ 'Please use `context.useEndpoint(endpointURL)` function instead.');
|
|
2917
2936
|
}
|
|
2918
2937
|
this.setDefaultEndpoints(this.baseEndpoint);
|
|
2938
|
+
if (options.modelStorageResolver) {
|
|
2939
|
+
var eqServices = this.getServices();
|
|
2940
|
+
eqServices.registerModelStorageResolver(options.modelStorageResolver);
|
|
2941
|
+
}
|
|
2919
2942
|
this.loadQueryOnStart = false;
|
|
2920
2943
|
if (options.loadQueryOnStart) {
|
|
2921
2944
|
this.loadQueryOnStart = options.loadQueryOnStart;
|
|
@@ -4261,6 +4284,7 @@ addEasyQueryCoreTexts();
|
|
|
4261
4284
|
|
|
4262
4285
|
|
|
4263
4286
|
|
|
4287
|
+
|
|
4264
4288
|
|
|
4265
4289
|
|
|
4266
4290
|
//for backward compatibility
|
|
@@ -4706,6 +4730,10 @@ var DomSelectElementBuilder = /** @class */ (function (_super) {
|
|
|
4706
4730
|
this.element.appendChild(option);
|
|
4707
4731
|
return this;
|
|
4708
4732
|
};
|
|
4733
|
+
DomSelectElementBuilder.prototype.value = function (value) {
|
|
4734
|
+
this.element.value = value;
|
|
4735
|
+
return this;
|
|
4736
|
+
};
|
|
4709
4737
|
return DomSelectElementBuilder;
|
|
4710
4738
|
}(DomElementBuilder));
|
|
4711
4739
|
|
|
@@ -8207,7 +8235,7 @@ var condition_group_renderer = __webpack_require__(76);
|
|
|
8207
8235
|
var input_expression_renderer = __webpack_require__(78);
|
|
8208
8236
|
|
|
8209
8237
|
// EXTERNAL MODULE: ./dist/lib/widgets/renderers/querypanel/attribute_expression_renderer.js
|
|
8210
|
-
var attribute_expression_renderer = __webpack_require__(
|
|
8238
|
+
var attribute_expression_renderer = __webpack_require__(52);
|
|
8211
8239
|
|
|
8212
8240
|
// EXTERNAL MODULE: ./dist/lib/widgets/renderers/querypanel/addrow_renderer.js
|
|
8213
8241
|
var addrow_renderer = __webpack_require__(79);
|
|
@@ -9596,8 +9624,6 @@ var Query = /** @class */ (function () {
|
|
|
9596
9624
|
}
|
|
9597
9625
|
this.setDefaultName();
|
|
9598
9626
|
this.description = "";
|
|
9599
|
-
this.modelId = "";
|
|
9600
|
-
this.modelName = "";
|
|
9601
9627
|
this.model = (model) ? model : new _dm_data_model__WEBPACK_IMPORTED_MODULE_2__[/* DataModel */ "a"]();
|
|
9602
9628
|
if (data) {
|
|
9603
9629
|
this.loadFromData(data);
|
|
@@ -9611,10 +9637,14 @@ var Query = /** @class */ (function () {
|
|
|
9611
9637
|
this.parentQuery = options.parent;
|
|
9612
9638
|
}
|
|
9613
9639
|
this.addChangedCallback(function (ev) {
|
|
9614
|
-
if (ev.data
|
|
9615
|
-
&& ev.data.
|
|
9640
|
+
if (ev.data
|
|
9641
|
+
&& ((ev.data.part & _query_events__WEBPACK_IMPORTED_MODULE_10__[/* QueryChangePart */ "b"].Columns) > 0)
|
|
9616
9642
|
&& !ev.data.aggregation) {
|
|
9617
|
-
_this.
|
|
9643
|
+
if (_this._enableAggregation && _this.updateAggregationSettings()) {
|
|
9644
|
+
_this.fireChangedEvent({
|
|
9645
|
+
part: _query_events__WEBPACK_IMPORTED_MODULE_10__[/* QueryChangePart */ "b"].Aggregation
|
|
9646
|
+
});
|
|
9647
|
+
}
|
|
9618
9648
|
}
|
|
9619
9649
|
});
|
|
9620
9650
|
}
|
|
@@ -9635,19 +9665,6 @@ var Query = /** @class */ (function () {
|
|
|
9635
9665
|
this.processQueryForAggregation();
|
|
9636
9666
|
var aggrCols = this.columns.filter(function (c) { return c.enabled
|
|
9637
9667
|
&& c.expr.tag == _types_expr_tag__WEBPACK_IMPORTED_MODULE_8__[/* ExprTag */ "a"].AggregateFunction; });
|
|
9638
|
-
// // query contains aggregate columns
|
|
9639
|
-
// if (aggrCols.length) {
|
|
9640
|
-
// for (const col of aggrCols) {
|
|
9641
|
-
// const attr = this.model.getAttributeById(col.expr.args[0].value);
|
|
9642
|
-
// this.changeColumnType(col, ExprTag.EntityAttribute, {
|
|
9643
|
-
// caption: this.model.getAttributeText(attr, `{attr}`)
|
|
9644
|
-
// });
|
|
9645
|
-
// }
|
|
9646
|
-
// this.fireChangedEvent({
|
|
9647
|
-
// part: QueryChangePart.Columns,
|
|
9648
|
-
// wasModified: true
|
|
9649
|
-
// });
|
|
9650
|
-
// }
|
|
9651
9668
|
}
|
|
9652
9669
|
if (!this._enableAggregation) {
|
|
9653
9670
|
this.aggrSettings.clear();
|
|
@@ -9656,6 +9673,40 @@ var Query = /** @class */ (function () {
|
|
|
9656
9673
|
enumerable: true,
|
|
9657
9674
|
configurable: true
|
|
9658
9675
|
});
|
|
9676
|
+
Query.prototype.updateAggregationSettings = function () {
|
|
9677
|
+
var hasChanged = false;
|
|
9678
|
+
var aggrSettings = this.getAggregationSettings();
|
|
9679
|
+
for (var i = aggrSettings.groups.length - 1; i >= 0; i--) {
|
|
9680
|
+
var group = aggrSettings.groups[i];
|
|
9681
|
+
var _loop_1 = function (j) {
|
|
9682
|
+
var colId = group.columns[j];
|
|
9683
|
+
if (!this_1.columns.find(function (col) { return col.id === colId; })) {
|
|
9684
|
+
group.columns.splice(j, 1);
|
|
9685
|
+
hasChanged = true;
|
|
9686
|
+
}
|
|
9687
|
+
};
|
|
9688
|
+
var this_1 = this;
|
|
9689
|
+
for (var j = group.columns.length - 1; j >= 0; j--) {
|
|
9690
|
+
_loop_1(j);
|
|
9691
|
+
}
|
|
9692
|
+
if (group.columns.length == 0) {
|
|
9693
|
+
aggrSettings.groups.slice(i, 1);
|
|
9694
|
+
}
|
|
9695
|
+
}
|
|
9696
|
+
var aggregates = aggrSettings.getAggregates();
|
|
9697
|
+
var _loop_2 = function (i) {
|
|
9698
|
+
var aggr = aggregates[i];
|
|
9699
|
+
if (!this_2.columns.find(function (col) { return col.id === aggr.colId; })) {
|
|
9700
|
+
aggregates.splice(i, 1);
|
|
9701
|
+
hasChanged = true;
|
|
9702
|
+
}
|
|
9703
|
+
};
|
|
9704
|
+
var this_2 = this;
|
|
9705
|
+
for (var i = aggregates.length - 1; i >= 0; i--) {
|
|
9706
|
+
_loop_2(i);
|
|
9707
|
+
}
|
|
9708
|
+
return hasChanged;
|
|
9709
|
+
};
|
|
9659
9710
|
Query.prototype.createSubQuery = function () {
|
|
9660
9711
|
return new Query(this.model);
|
|
9661
9712
|
};
|
|
@@ -11862,6 +11913,10 @@ var view_View = /** @class */ (function () {
|
|
|
11862
11913
|
View.prototype.fetchData = function (options) {
|
|
11863
11914
|
var _this = this;
|
|
11864
11915
|
options = options || { refresh: true };
|
|
11916
|
+
this.context.clearResult();
|
|
11917
|
+
//don't run fetch if the query is empty
|
|
11918
|
+
if (this.context.getQuery().isEmpty() && !this.resultOptions.fetchEmptyQueries)
|
|
11919
|
+
return;
|
|
11865
11920
|
this.showResultSpinner();
|
|
11866
11921
|
this.context.fetchData({
|
|
11867
11922
|
elasticPaging: options.elasticPaging,
|
|
@@ -15314,21 +15369,6 @@ var EasyGridWidget = /** @class */ (function (_super) {
|
|
|
15314
15369
|
this.grid.refresh();
|
|
15315
15370
|
};
|
|
15316
15371
|
EasyGridWidget.prototype.attachQueryObserver = function () {
|
|
15317
|
-
var _this = this;
|
|
15318
|
-
var query = this.getQuery();
|
|
15319
|
-
this.queryEventCallbackId = query.addChangedCallback(function (event) {
|
|
15320
|
-
//if something has changed, and that change is related to columns
|
|
15321
|
-
var edata = event.data;
|
|
15322
|
-
if (!edata || (edata.part != _easyquery_core__WEBPACK_IMPORTED_MODULE_0__["QueryChangePart"].Columns && edata.part != _easyquery_core__WEBPACK_IMPORTED_MODULE_0__["QueryChangePart"].All)) {
|
|
15323
|
-
return;
|
|
15324
|
-
}
|
|
15325
|
-
if (event.data.source == _this) {
|
|
15326
|
-
_this.grid.refresh();
|
|
15327
|
-
}
|
|
15328
|
-
else {
|
|
15329
|
-
_this.refresh();
|
|
15330
|
-
}
|
|
15331
|
-
});
|
|
15332
15372
|
};
|
|
15333
15373
|
EasyGridWidget.prototype.destroyCore = function () {
|
|
15334
15374
|
this.detachQueryObserver();
|
|
@@ -16584,263 +16624,6 @@ var Condition = /** @class */ (function () {
|
|
|
16584
16624
|
|
|
16585
16625
|
/***/ }),
|
|
16586
16626
|
/* 51 */
|
|
16587
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
16588
|
-
|
|
16589
|
-
"use strict";
|
|
16590
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AttributeExpressionRenderer; });
|
|
16591
|
-
/* harmony import */ var _easydata_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
16592
|
-
/* harmony import */ var _easyquery_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
|
|
16593
|
-
/* harmony import */ var _easydata_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
|
|
16594
|
-
/* harmony import */ var _list_expression_renderer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(25);
|
|
16595
|
-
/* harmony import */ var _utils_browser_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3);
|
|
16596
|
-
/* harmony import */ var _types_qp_editable_part__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(10);
|
|
16597
|
-
var __extends = (undefined && undefined.__extends) || (function () {
|
|
16598
|
-
var extendStatics = function (d, b) {
|
|
16599
|
-
extendStatics = Object.setPrototypeOf ||
|
|
16600
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
16601
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
16602
|
-
return extendStatics(d, b);
|
|
16603
|
-
};
|
|
16604
|
-
return function (d, b) {
|
|
16605
|
-
extendStatics(d, b);
|
|
16606
|
-
function __() { this.constructor = d; }
|
|
16607
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16608
|
-
};
|
|
16609
|
-
})();
|
|
16610
|
-
|
|
16611
|
-
|
|
16612
|
-
|
|
16613
|
-
|
|
16614
|
-
|
|
16615
|
-
|
|
16616
|
-
var AttributeExpressionRenderer = /** @class */ (function (_super) {
|
|
16617
|
-
__extends(AttributeExpressionRenderer, _super);
|
|
16618
|
-
function AttributeExpressionRenderer(panel, expression, entitiesMenu, slot) {
|
|
16619
|
-
var _this = _super.call(this, panel, expression, null, slot) || this;
|
|
16620
|
-
_this.menu = entitiesMenu;
|
|
16621
|
-
return _this;
|
|
16622
|
-
}
|
|
16623
|
-
AttributeExpressionRenderer.prototype.renderEditor = function () {
|
|
16624
|
-
//create menu
|
|
16625
|
-
};
|
|
16626
|
-
AttributeExpressionRenderer.prototype.getLabelText = function () {
|
|
16627
|
-
var model = this.panel.getContext().getModel();
|
|
16628
|
-
var attrId = this.expression.value;
|
|
16629
|
-
var attrObj = attrId ? model.getAttributeByIdSafe(attrId) : null;
|
|
16630
|
-
var attrFormat = this.panel.options.attrElementFormat;
|
|
16631
|
-
return attrObj ? model.getAttributeText(attrObj, attrFormat) : this.getEmptyText();
|
|
16632
|
-
};
|
|
16633
|
-
AttributeExpressionRenderer.prototype.setValue = function (value, silent) {
|
|
16634
|
-
if (silent === void 0) { silent = false; }
|
|
16635
|
-
silent = silent && value !== this.expression.value;
|
|
16636
|
-
var result = _super.prototype.setValue.call(this, value, true);
|
|
16637
|
-
if (!silent) {
|
|
16638
|
-
this.expression.getParent().fireChangedEvent(_easyquery_core__WEBPACK_IMPORTED_MODULE_1__["ConditionPart"].EntityAttr | _easyquery_core__WEBPACK_IMPORTED_MODULE_1__["ConditionPart"].Operator);
|
|
16639
|
-
}
|
|
16640
|
-
return result;
|
|
16641
|
-
};
|
|
16642
|
-
AttributeExpressionRenderer.prototype.isEditable = function () {
|
|
16643
|
-
return !this.isReadOnly()
|
|
16644
|
-
&& ((this.panel.options.editableParts & _types_qp_editable_part__WEBPACK_IMPORTED_MODULE_5__[/* QPEditablePart */ "a"].Attribute) === _types_qp_editable_part__WEBPACK_IMPORTED_MODULE_5__[/* QPEditablePart */ "a"].Attribute);
|
|
16645
|
-
};
|
|
16646
|
-
AttributeExpressionRenderer.prototype.getEmptyText = function () {
|
|
16647
|
-
return this.panel.options.emptyTextAttribute || _easydata_core__WEBPACK_IMPORTED_MODULE_0__["i18n"].getText('MsgEmptyAttrValue');
|
|
16648
|
-
};
|
|
16649
|
-
AttributeExpressionRenderer.prototype.getClassesToAdd = function () {
|
|
16650
|
-
return this.cssPrefix + "-condelement " + this.cssPrefix + "-attrelement";
|
|
16651
|
-
};
|
|
16652
|
-
AttributeExpressionRenderer.prototype.adjustWidth = function () {
|
|
16653
|
-
if (_utils_browser_utils__WEBPACK_IMPORTED_MODULE_4__[/* browserUtils */ "a"].isMobileMode()) {
|
|
16654
|
-
return;
|
|
16655
|
-
}
|
|
16656
|
-
var elWidth = this.element.clientWidth;
|
|
16657
|
-
var parWidth = this.element.parentElement.clientWidth;
|
|
16658
|
-
if (elWidth > parWidth / 2) {
|
|
16659
|
-
Object(_easydata_ui__WEBPACK_IMPORTED_MODULE_2__["domel"])(this.element)
|
|
16660
|
-
.addClass(this.cssPrefix + "-attrelement-wide");
|
|
16661
|
-
}
|
|
16662
|
-
};
|
|
16663
|
-
return AttributeExpressionRenderer;
|
|
16664
|
-
}(_list_expression_renderer__WEBPACK_IMPORTED_MODULE_3__[/* ListExpressionRenderer */ "b"]));
|
|
16665
|
-
|
|
16666
|
-
//# sourceMappingURL=attribute_expression_renderer.js.map
|
|
16667
|
-
|
|
16668
|
-
/***/ }),
|
|
16669
|
-
/* 52 */
|
|
16670
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
16671
|
-
|
|
16672
|
-
"use strict";
|
|
16673
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return GoogleChartWidget; });
|
|
16674
|
-
/* harmony import */ var _easydata_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
16675
|
-
/* harmony import */ var _chart_widget__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(47);
|
|
16676
|
-
/* harmony import */ var _chart_type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5);
|
|
16677
|
-
var __extends = (undefined && undefined.__extends) || (function () {
|
|
16678
|
-
var extendStatics = function (d, b) {
|
|
16679
|
-
extendStatics = Object.setPrototypeOf ||
|
|
16680
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
16681
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
16682
|
-
return extendStatics(d, b);
|
|
16683
|
-
};
|
|
16684
|
-
return function (d, b) {
|
|
16685
|
-
extendStatics(d, b);
|
|
16686
|
-
function __() { this.constructor = d; }
|
|
16687
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16688
|
-
};
|
|
16689
|
-
})();
|
|
16690
|
-
|
|
16691
|
-
|
|
16692
|
-
|
|
16693
|
-
var GoogleChartWidget = /** @class */ (function (_super) {
|
|
16694
|
-
__extends(GoogleChartWidget, _super);
|
|
16695
|
-
/**
|
|
16696
|
-
* The default constructor.
|
|
16697
|
-
* @param slot The html element.
|
|
16698
|
-
* @param provider The provider.
|
|
16699
|
-
*/
|
|
16700
|
-
function GoogleChartWidget(slot) {
|
|
16701
|
-
var _this = _super.call(this, slot) || this;
|
|
16702
|
-
_this.hasChartTypes = [
|
|
16703
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Column,
|
|
16704
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Bar,
|
|
16705
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Histogram,
|
|
16706
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Combo,
|
|
16707
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Area,
|
|
16708
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Line,
|
|
16709
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].SteppedLine,
|
|
16710
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Pie,
|
|
16711
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Doughnut
|
|
16712
|
-
];
|
|
16713
|
-
_this.options.legend = {
|
|
16714
|
-
show: true,
|
|
16715
|
-
position: 'right'
|
|
16716
|
-
};
|
|
16717
|
-
return _this;
|
|
16718
|
-
}
|
|
16719
|
-
GoogleChartWidget.prototype.getWidgetType = function () {
|
|
16720
|
-
return 'chartGoogle';
|
|
16721
|
-
};
|
|
16722
|
-
GoogleChartWidget.prototype.canDraw = function () {
|
|
16723
|
-
return GoogleChartWidget.hasGoogleCharts();
|
|
16724
|
-
};
|
|
16725
|
-
GoogleChartWidget.hasGoogleCharts = function () {
|
|
16726
|
-
return typeof google !== 'undefined' && typeof google.charts !== 'undefined';
|
|
16727
|
-
};
|
|
16728
|
-
GoogleChartWidget.prototype.initChart = function () {
|
|
16729
|
-
if (GoogleChartWidget.hasGoogleCharts() && this.labelColumn >= 0
|
|
16730
|
-
&& this.dataColumns && this.dataColumns.length > 0) {
|
|
16731
|
-
this.googleDataView =
|
|
16732
|
-
new google.visualization.DataView(this.convertToGoogleFormat());
|
|
16733
|
-
this.updateChartColumns();
|
|
16734
|
-
}
|
|
16735
|
-
};
|
|
16736
|
-
GoogleChartWidget.prototype.convertToGoogleType = function (type) {
|
|
16737
|
-
switch (type) {
|
|
16738
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Date:
|
|
16739
|
-
return "date";
|
|
16740
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].DateTime:
|
|
16741
|
-
return "datetime";
|
|
16742
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Time:
|
|
16743
|
-
return "timeofday";
|
|
16744
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Byte:
|
|
16745
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Word:
|
|
16746
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Int32:
|
|
16747
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Int64:
|
|
16748
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Currency:
|
|
16749
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Float:
|
|
16750
|
-
return "number";
|
|
16751
|
-
default:
|
|
16752
|
-
return "string";
|
|
16753
|
-
}
|
|
16754
|
-
};
|
|
16755
|
-
GoogleChartWidget.prototype.convertToGoogleValue = function (value, type) {
|
|
16756
|
-
switch (type) {
|
|
16757
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Bool:
|
|
16758
|
-
return value.toString();
|
|
16759
|
-
default:
|
|
16760
|
-
return value;
|
|
16761
|
-
}
|
|
16762
|
-
};
|
|
16763
|
-
GoogleChartWidget.prototype.convertToGoogleFormat = function () {
|
|
16764
|
-
var googleTable = new google.visualization.DataTable();
|
|
16765
|
-
var columns = this.dataTable.columns;
|
|
16766
|
-
for (var i = 0; i < columns.count; i++) {
|
|
16767
|
-
var column = columns.get(i);
|
|
16768
|
-
googleTable.addColumn(this.convertToGoogleType(column.type), column.label, column.id);
|
|
16769
|
-
}
|
|
16770
|
-
var rows = this.dataTable.getCachedRows();
|
|
16771
|
-
googleTable.addRows(rows.length);
|
|
16772
|
-
for (var i = 0; i < rows.length; i++) {
|
|
16773
|
-
var row = rows[i];
|
|
16774
|
-
for (var j = 0; j < columns.count; j++) {
|
|
16775
|
-
googleTable.setCell(i, j, this.convertToGoogleValue(row.getValue(j), columns.get(j).type));
|
|
16776
|
-
}
|
|
16777
|
-
}
|
|
16778
|
-
return googleTable;
|
|
16779
|
-
};
|
|
16780
|
-
GoogleChartWidget.prototype.drawCore = function () {
|
|
16781
|
-
if (this.googleDataView != null) {
|
|
16782
|
-
this.options.legend = this.options.legend || {};
|
|
16783
|
-
var chartOptions = {
|
|
16784
|
-
width: "100%",
|
|
16785
|
-
height: "100%",
|
|
16786
|
-
chartArea: { width: this.getChartAreaWidth }
|
|
16787
|
-
};
|
|
16788
|
-
if (this.chartType == _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Doughnut) {
|
|
16789
|
-
chartOptions.pieHole = 0.4;
|
|
16790
|
-
}
|
|
16791
|
-
if (!this.options.legend.show) {
|
|
16792
|
-
chartOptions.legend = 'none';
|
|
16793
|
-
}
|
|
16794
|
-
else {
|
|
16795
|
-
chartOptions.legend = { position: this.options.legend.position };
|
|
16796
|
-
}
|
|
16797
|
-
var chart = this.createChart(this.chartDiv);
|
|
16798
|
-
chart.draw(this.googleDataView, chartOptions);
|
|
16799
|
-
}
|
|
16800
|
-
};
|
|
16801
|
-
GoogleChartWidget.prototype.getChartAreaWidth = function (chartType) {
|
|
16802
|
-
if (chartType == _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Pie) {
|
|
16803
|
-
return "100%";
|
|
16804
|
-
}
|
|
16805
|
-
else {
|
|
16806
|
-
return "50%";
|
|
16807
|
-
}
|
|
16808
|
-
};
|
|
16809
|
-
GoogleChartWidget.prototype.updateChartColumns = function () {
|
|
16810
|
-
if (this.googleDataView) {
|
|
16811
|
-
this.googleDataView.setColumns([].concat(this.labelColumn).concat(this.dataColumns));
|
|
16812
|
-
}
|
|
16813
|
-
};
|
|
16814
|
-
GoogleChartWidget.prototype.createChart = function (slot) {
|
|
16815
|
-
switch (this.chartType) {
|
|
16816
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Column:
|
|
16817
|
-
return new google.visualization.ColumnChart(slot);
|
|
16818
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Histogram:
|
|
16819
|
-
return new google.visualization.Histogram(slot);
|
|
16820
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Bar:
|
|
16821
|
-
return new google.visualization.BarChart(slot);
|
|
16822
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Combo:
|
|
16823
|
-
return new google.visualization.ComboChart(slot);
|
|
16824
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Area:
|
|
16825
|
-
return new google.visualization.AreaChart(slot);
|
|
16826
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Line:
|
|
16827
|
-
return new google.visualization.LineChart(slot);
|
|
16828
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].SteppedLine:
|
|
16829
|
-
return new google.visualization.SteppedAreaChart(slot);
|
|
16830
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Pie:
|
|
16831
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Doughnut:
|
|
16832
|
-
return new google.visualization.PieChart(slot);
|
|
16833
|
-
default:
|
|
16834
|
-
return new google.visualization.PieChart(slot);
|
|
16835
|
-
}
|
|
16836
|
-
};
|
|
16837
|
-
return GoogleChartWidget;
|
|
16838
|
-
}(_chart_widget__WEBPACK_IMPORTED_MODULE_1__[/* ChartWidget */ "a"]));
|
|
16839
|
-
|
|
16840
|
-
//# sourceMappingURL=chart_widget_google.js.map
|
|
16841
|
-
|
|
16842
|
-
/***/ }),
|
|
16843
|
-
/* 53 */
|
|
16844
16627
|
/***/ (function(module, exports, __webpack_require__) {
|
|
16845
16628
|
|
|
16846
16629
|
/* WEBPACK VAR INJECTION */(function(process, global) {/*!
|
|
@@ -18019,6 +17802,263 @@ return Promise$1;
|
|
|
18019
17802
|
|
|
18020
17803
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(97), __webpack_require__(98)))
|
|
18021
17804
|
|
|
17805
|
+
/***/ }),
|
|
17806
|
+
/* 52 */
|
|
17807
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
17808
|
+
|
|
17809
|
+
"use strict";
|
|
17810
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AttributeExpressionRenderer; });
|
|
17811
|
+
/* harmony import */ var _easydata_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
17812
|
+
/* harmony import */ var _easyquery_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
|
|
17813
|
+
/* harmony import */ var _easydata_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
|
|
17814
|
+
/* harmony import */ var _list_expression_renderer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(25);
|
|
17815
|
+
/* harmony import */ var _utils_browser_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3);
|
|
17816
|
+
/* harmony import */ var _types_qp_editable_part__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(10);
|
|
17817
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
17818
|
+
var extendStatics = function (d, b) {
|
|
17819
|
+
extendStatics = Object.setPrototypeOf ||
|
|
17820
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
17821
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
17822
|
+
return extendStatics(d, b);
|
|
17823
|
+
};
|
|
17824
|
+
return function (d, b) {
|
|
17825
|
+
extendStatics(d, b);
|
|
17826
|
+
function __() { this.constructor = d; }
|
|
17827
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
17828
|
+
};
|
|
17829
|
+
})();
|
|
17830
|
+
|
|
17831
|
+
|
|
17832
|
+
|
|
17833
|
+
|
|
17834
|
+
|
|
17835
|
+
|
|
17836
|
+
var AttributeExpressionRenderer = /** @class */ (function (_super) {
|
|
17837
|
+
__extends(AttributeExpressionRenderer, _super);
|
|
17838
|
+
function AttributeExpressionRenderer(panel, expression, entitiesMenu, slot) {
|
|
17839
|
+
var _this = _super.call(this, panel, expression, null, slot) || this;
|
|
17840
|
+
_this.menu = entitiesMenu;
|
|
17841
|
+
return _this;
|
|
17842
|
+
}
|
|
17843
|
+
AttributeExpressionRenderer.prototype.renderEditor = function () {
|
|
17844
|
+
//create menu
|
|
17845
|
+
};
|
|
17846
|
+
AttributeExpressionRenderer.prototype.getLabelText = function () {
|
|
17847
|
+
var model = this.panel.getContext().getModel();
|
|
17848
|
+
var attrId = this.expression.value;
|
|
17849
|
+
var attrObj = attrId ? model.getAttributeByIdSafe(attrId) : null;
|
|
17850
|
+
var attrFormat = this.panel.options.attrElementFormat;
|
|
17851
|
+
return attrObj ? model.getAttributeText(attrObj, attrFormat) : this.getEmptyText();
|
|
17852
|
+
};
|
|
17853
|
+
AttributeExpressionRenderer.prototype.setValue = function (value, silent) {
|
|
17854
|
+
if (silent === void 0) { silent = false; }
|
|
17855
|
+
silent = silent && value !== this.expression.value;
|
|
17856
|
+
var result = _super.prototype.setValue.call(this, value, true);
|
|
17857
|
+
if (!silent) {
|
|
17858
|
+
this.expression.getParent().fireChangedEvent(_easyquery_core__WEBPACK_IMPORTED_MODULE_1__["ConditionPart"].EntityAttr | _easyquery_core__WEBPACK_IMPORTED_MODULE_1__["ConditionPart"].Operator);
|
|
17859
|
+
}
|
|
17860
|
+
return result;
|
|
17861
|
+
};
|
|
17862
|
+
AttributeExpressionRenderer.prototype.isEditable = function () {
|
|
17863
|
+
return !this.isReadOnly()
|
|
17864
|
+
&& ((this.panel.options.editableParts & _types_qp_editable_part__WEBPACK_IMPORTED_MODULE_5__[/* QPEditablePart */ "a"].Attribute) === _types_qp_editable_part__WEBPACK_IMPORTED_MODULE_5__[/* QPEditablePart */ "a"].Attribute);
|
|
17865
|
+
};
|
|
17866
|
+
AttributeExpressionRenderer.prototype.getEmptyText = function () {
|
|
17867
|
+
return this.panel.options.emptyTextAttribute || _easydata_core__WEBPACK_IMPORTED_MODULE_0__["i18n"].getText('MsgEmptyAttrValue');
|
|
17868
|
+
};
|
|
17869
|
+
AttributeExpressionRenderer.prototype.getClassesToAdd = function () {
|
|
17870
|
+
return this.cssPrefix + "-condelement " + this.cssPrefix + "-attrelement";
|
|
17871
|
+
};
|
|
17872
|
+
AttributeExpressionRenderer.prototype.adjustWidth = function () {
|
|
17873
|
+
if (_utils_browser_utils__WEBPACK_IMPORTED_MODULE_4__[/* browserUtils */ "a"].isMobileMode()) {
|
|
17874
|
+
return;
|
|
17875
|
+
}
|
|
17876
|
+
var elWidth = this.element.clientWidth;
|
|
17877
|
+
var parWidth = this.element.parentElement.clientWidth;
|
|
17878
|
+
if (elWidth > parWidth / 2) {
|
|
17879
|
+
Object(_easydata_ui__WEBPACK_IMPORTED_MODULE_2__["domel"])(this.element)
|
|
17880
|
+
.addClass(this.cssPrefix + "-attrelement-wide");
|
|
17881
|
+
}
|
|
17882
|
+
};
|
|
17883
|
+
return AttributeExpressionRenderer;
|
|
17884
|
+
}(_list_expression_renderer__WEBPACK_IMPORTED_MODULE_3__[/* ListExpressionRenderer */ "b"]));
|
|
17885
|
+
|
|
17886
|
+
//# sourceMappingURL=attribute_expression_renderer.js.map
|
|
17887
|
+
|
|
17888
|
+
/***/ }),
|
|
17889
|
+
/* 53 */
|
|
17890
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
17891
|
+
|
|
17892
|
+
"use strict";
|
|
17893
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return GoogleChartWidget; });
|
|
17894
|
+
/* harmony import */ var _easydata_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
17895
|
+
/* harmony import */ var _chart_widget__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(47);
|
|
17896
|
+
/* harmony import */ var _chart_type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5);
|
|
17897
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
17898
|
+
var extendStatics = function (d, b) {
|
|
17899
|
+
extendStatics = Object.setPrototypeOf ||
|
|
17900
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
17901
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
17902
|
+
return extendStatics(d, b);
|
|
17903
|
+
};
|
|
17904
|
+
return function (d, b) {
|
|
17905
|
+
extendStatics(d, b);
|
|
17906
|
+
function __() { this.constructor = d; }
|
|
17907
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
17908
|
+
};
|
|
17909
|
+
})();
|
|
17910
|
+
|
|
17911
|
+
|
|
17912
|
+
|
|
17913
|
+
var GoogleChartWidget = /** @class */ (function (_super) {
|
|
17914
|
+
__extends(GoogleChartWidget, _super);
|
|
17915
|
+
/**
|
|
17916
|
+
* The default constructor.
|
|
17917
|
+
* @param slot The html element.
|
|
17918
|
+
* @param provider The provider.
|
|
17919
|
+
*/
|
|
17920
|
+
function GoogleChartWidget(slot) {
|
|
17921
|
+
var _this = _super.call(this, slot) || this;
|
|
17922
|
+
_this.hasChartTypes = [
|
|
17923
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Column,
|
|
17924
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Bar,
|
|
17925
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Histogram,
|
|
17926
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Combo,
|
|
17927
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Area,
|
|
17928
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Line,
|
|
17929
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].SteppedLine,
|
|
17930
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Pie,
|
|
17931
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Doughnut
|
|
17932
|
+
];
|
|
17933
|
+
_this.options.legend = {
|
|
17934
|
+
show: true,
|
|
17935
|
+
position: 'right'
|
|
17936
|
+
};
|
|
17937
|
+
return _this;
|
|
17938
|
+
}
|
|
17939
|
+
GoogleChartWidget.prototype.getWidgetType = function () {
|
|
17940
|
+
return 'chartGoogle';
|
|
17941
|
+
};
|
|
17942
|
+
GoogleChartWidget.prototype.canDraw = function () {
|
|
17943
|
+
return GoogleChartWidget.hasGoogleCharts();
|
|
17944
|
+
};
|
|
17945
|
+
GoogleChartWidget.hasGoogleCharts = function () {
|
|
17946
|
+
return typeof google !== 'undefined' && typeof google.charts !== 'undefined';
|
|
17947
|
+
};
|
|
17948
|
+
GoogleChartWidget.prototype.initChart = function () {
|
|
17949
|
+
if (GoogleChartWidget.hasGoogleCharts() && this.labelColumn >= 0
|
|
17950
|
+
&& this.dataColumns && this.dataColumns.length > 0) {
|
|
17951
|
+
this.googleDataView =
|
|
17952
|
+
new google.visualization.DataView(this.convertToGoogleFormat());
|
|
17953
|
+
this.updateChartColumns();
|
|
17954
|
+
}
|
|
17955
|
+
};
|
|
17956
|
+
GoogleChartWidget.prototype.convertToGoogleType = function (type) {
|
|
17957
|
+
switch (type) {
|
|
17958
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Date:
|
|
17959
|
+
return "date";
|
|
17960
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].DateTime:
|
|
17961
|
+
return "datetime";
|
|
17962
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Time:
|
|
17963
|
+
return "timeofday";
|
|
17964
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Byte:
|
|
17965
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Word:
|
|
17966
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Int32:
|
|
17967
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Int64:
|
|
17968
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Currency:
|
|
17969
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Float:
|
|
17970
|
+
return "number";
|
|
17971
|
+
default:
|
|
17972
|
+
return "string";
|
|
17973
|
+
}
|
|
17974
|
+
};
|
|
17975
|
+
GoogleChartWidget.prototype.convertToGoogleValue = function (value, type) {
|
|
17976
|
+
switch (type) {
|
|
17977
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Bool:
|
|
17978
|
+
return value.toString();
|
|
17979
|
+
default:
|
|
17980
|
+
return value;
|
|
17981
|
+
}
|
|
17982
|
+
};
|
|
17983
|
+
GoogleChartWidget.prototype.convertToGoogleFormat = function () {
|
|
17984
|
+
var googleTable = new google.visualization.DataTable();
|
|
17985
|
+
var columns = this.dataTable.columns;
|
|
17986
|
+
for (var i = 0; i < columns.count; i++) {
|
|
17987
|
+
var column = columns.get(i);
|
|
17988
|
+
googleTable.addColumn(this.convertToGoogleType(column.type), column.label, column.id);
|
|
17989
|
+
}
|
|
17990
|
+
var rows = this.dataTable.getCachedRows();
|
|
17991
|
+
googleTable.addRows(rows.length);
|
|
17992
|
+
for (var i = 0; i < rows.length; i++) {
|
|
17993
|
+
var row = rows[i];
|
|
17994
|
+
for (var j = 0; j < columns.count; j++) {
|
|
17995
|
+
googleTable.setCell(i, j, this.convertToGoogleValue(row.getValue(j), columns.get(j).type));
|
|
17996
|
+
}
|
|
17997
|
+
}
|
|
17998
|
+
return googleTable;
|
|
17999
|
+
};
|
|
18000
|
+
GoogleChartWidget.prototype.drawCore = function () {
|
|
18001
|
+
if (this.googleDataView != null) {
|
|
18002
|
+
this.options.legend = this.options.legend || {};
|
|
18003
|
+
var chartOptions = {
|
|
18004
|
+
width: "100%",
|
|
18005
|
+
height: "100%",
|
|
18006
|
+
chartArea: { width: this.getChartAreaWidth }
|
|
18007
|
+
};
|
|
18008
|
+
if (this.chartType == _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Doughnut) {
|
|
18009
|
+
chartOptions.pieHole = 0.4;
|
|
18010
|
+
}
|
|
18011
|
+
if (!this.options.legend.show) {
|
|
18012
|
+
chartOptions.legend = 'none';
|
|
18013
|
+
}
|
|
18014
|
+
else {
|
|
18015
|
+
chartOptions.legend = { position: this.options.legend.position };
|
|
18016
|
+
}
|
|
18017
|
+
var chart = this.createChart(this.chartDiv);
|
|
18018
|
+
chart.draw(this.googleDataView, chartOptions);
|
|
18019
|
+
}
|
|
18020
|
+
};
|
|
18021
|
+
GoogleChartWidget.prototype.getChartAreaWidth = function (chartType) {
|
|
18022
|
+
if (chartType == _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Pie) {
|
|
18023
|
+
return "100%";
|
|
18024
|
+
}
|
|
18025
|
+
else {
|
|
18026
|
+
return "50%";
|
|
18027
|
+
}
|
|
18028
|
+
};
|
|
18029
|
+
GoogleChartWidget.prototype.updateChartColumns = function () {
|
|
18030
|
+
if (this.googleDataView) {
|
|
18031
|
+
this.googleDataView.setColumns([].concat(this.labelColumn).concat(this.dataColumns));
|
|
18032
|
+
}
|
|
18033
|
+
};
|
|
18034
|
+
GoogleChartWidget.prototype.createChart = function (slot) {
|
|
18035
|
+
switch (this.chartType) {
|
|
18036
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Column:
|
|
18037
|
+
return new google.visualization.ColumnChart(slot);
|
|
18038
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Histogram:
|
|
18039
|
+
return new google.visualization.Histogram(slot);
|
|
18040
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Bar:
|
|
18041
|
+
return new google.visualization.BarChart(slot);
|
|
18042
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Combo:
|
|
18043
|
+
return new google.visualization.ComboChart(slot);
|
|
18044
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Area:
|
|
18045
|
+
return new google.visualization.AreaChart(slot);
|
|
18046
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Line:
|
|
18047
|
+
return new google.visualization.LineChart(slot);
|
|
18048
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].SteppedLine:
|
|
18049
|
+
return new google.visualization.SteppedAreaChart(slot);
|
|
18050
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Pie:
|
|
18051
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Doughnut:
|
|
18052
|
+
return new google.visualization.PieChart(slot);
|
|
18053
|
+
default:
|
|
18054
|
+
return new google.visualization.PieChart(slot);
|
|
18055
|
+
}
|
|
18056
|
+
};
|
|
18057
|
+
return GoogleChartWidget;
|
|
18058
|
+
}(_chart_widget__WEBPACK_IMPORTED_MODULE_1__[/* ChartWidget */ "a"]));
|
|
18059
|
+
|
|
18060
|
+
//# sourceMappingURL=chart_widget_google.js.map
|
|
18061
|
+
|
|
18022
18062
|
/***/ }),
|
|
18023
18063
|
/* 54 */
|
|
18024
18064
|
/***/ (function(module, exports, __webpack_require__) {
|
|
@@ -19197,7 +19237,7 @@ return Promise$1;
|
|
|
19197
19237
|
|
|
19198
19238
|
//# sourceMappingURL=es6-promise.map
|
|
19199
19239
|
|
|
19200
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
19240
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(119), __webpack_require__(120)))
|
|
19201
19241
|
|
|
19202
19242
|
/***/ }),
|
|
19203
19243
|
/* 55 */
|
|
@@ -19747,7 +19787,7 @@ var BrowserQueryStorage = /** @class */ (function () {
|
|
|
19747
19787
|
}());
|
|
19748
19788
|
|
|
19749
19789
|
//# sourceMappingURL=query_storage.js.map
|
|
19750
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
19790
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(51)))
|
|
19751
19791
|
|
|
19752
19792
|
/***/ }),
|
|
19753
19793
|
/* 62 */
|
|
@@ -19788,7 +19828,7 @@ var EqModelLoader = /** @class */ (function () {
|
|
|
19788
19828
|
}());
|
|
19789
19829
|
|
|
19790
19830
|
//# sourceMappingURL=model_loader.js.map
|
|
19791
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
19831
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(51)))
|
|
19792
19832
|
|
|
19793
19833
|
/***/ }),
|
|
19794
19834
|
/* 63 */
|
|
@@ -19906,7 +19946,7 @@ var DefaultAggregatesCalculator = /** @class */ (function () {
|
|
|
19906
19946
|
}());
|
|
19907
19947
|
|
|
19908
19948
|
//# sourceMappingURL=eq_aggr_container.js.map
|
|
19909
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
19949
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(51)))
|
|
19910
19950
|
|
|
19911
19951
|
/***/ }),
|
|
19912
19952
|
/* 64 */
|
|
@@ -19965,7 +20005,7 @@ var EasyQueryDataLoader = /** @class */ (function () {
|
|
|
19965
20005
|
}());
|
|
19966
20006
|
|
|
19967
20007
|
//# sourceMappingURL=eq_data_loader.js.map
|
|
19968
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
20008
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(51)))
|
|
19969
20009
|
|
|
19970
20010
|
/***/ }),
|
|
19971
20011
|
/* 65 */
|
|
@@ -21307,7 +21347,7 @@ var DefaultDialogSet = /** @class */ (function () {
|
|
|
21307
21347
|
}());
|
|
21308
21348
|
|
|
21309
21349
|
//# sourceMappingURL=default_dialog_service.js.map
|
|
21310
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
21350
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(105)))
|
|
21311
21351
|
|
|
21312
21352
|
/***/ }),
|
|
21313
21353
|
/* 69 */
|
|
@@ -23160,7 +23200,6 @@ var AggrFuncColumnRendererCB = /** @class */ (function (_super) {
|
|
|
23160
23200
|
.getAttributeByIdSafe(this.column.expr.args[0].value);
|
|
23161
23201
|
};
|
|
23162
23202
|
AggrFuncColumnRendererCB.prototype.getDefaultCaption = function () {
|
|
23163
|
-
console.log('Calling getDefaultCaption() AGGR');
|
|
23164
23203
|
return this.getDefaultTitleText(this.baseAttr) + ' '
|
|
23165
23204
|
+ this.bar.getContext().getModel().getAggrFunctionCaption(this.column.expr.func);
|
|
23166
23205
|
};
|
|
@@ -23510,7 +23549,6 @@ var ColumnRendererCB = /** @class */ (function () {
|
|
|
23510
23549
|
.toDOM();
|
|
23511
23550
|
};
|
|
23512
23551
|
ColumnRendererCB.prototype.getDefaultCaption = function () {
|
|
23513
|
-
console.log('Calling getDefaultCaption() BASE');
|
|
23514
23552
|
return this.getDefaultTitleText(this.baseAttr);
|
|
23515
23553
|
};
|
|
23516
23554
|
ColumnRendererCB.prototype.getDefaultTitleText = function (attr) {
|
|
@@ -25353,7 +25391,7 @@ var ProcessWidget = /** @class */ (function (_super) {
|
|
|
25353
25391
|
/* harmony import */ var _types_facet_type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(13);
|
|
25354
25392
|
/* harmony import */ var _result_facet__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(31);
|
|
25355
25393
|
/* harmony import */ var _widgets_charts_chart_widget_chartjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(46);
|
|
25356
|
-
/* harmony import */ var _widgets_charts_chart_widget_google__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
25394
|
+
/* harmony import */ var _widgets_charts_chart_widget_google__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(53);
|
|
25357
25395
|
/* harmony import */ var _utils_browser_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(3);
|
|
25358
25396
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
25359
25397
|
var extendStatics = function (d, b) {
|
|
@@ -25627,6 +25665,12 @@ var AggrFunc;
|
|
|
25627
25665
|
AggrFunc["Max"] = "MAX";
|
|
25628
25666
|
AggrFunc["Count"] = "COUNT";
|
|
25629
25667
|
})(AggrFunc || (AggrFunc = {}));
|
|
25668
|
+
var FormFieldType;
|
|
25669
|
+
(function (FormFieldType) {
|
|
25670
|
+
FormFieldType[FormFieldType["ColumnField"] = 0] = "ColumnField";
|
|
25671
|
+
FormFieldType[FormFieldType["RowField"] = 1] = "RowField";
|
|
25672
|
+
FormFieldType[FormFieldType["CellData"] = 2] = "CellData";
|
|
25673
|
+
})(FormFieldType || (FormFieldType = {}));
|
|
25630
25674
|
var DFMT_REGEX = /{0:(.*?)}/g;
|
|
25631
25675
|
var PivotTableFacet = /** @class */ (function (_super) {
|
|
25632
25676
|
__extends(PivotTableFacet, _super);
|
|
@@ -25715,9 +25759,10 @@ var PivotTableFacet = /** @class */ (function (_super) {
|
|
|
25715
25759
|
}
|
|
25716
25760
|
return csb;
|
|
25717
25761
|
};
|
|
25718
|
-
PivotTableFacet.prototype.createColumnsSelectBuilder = function (allowedTypes, colName) {
|
|
25762
|
+
PivotTableFacet.prototype.createColumnsSelectBuilder = function (allowedTypes, colName, formFieldType) {
|
|
25719
25763
|
var dataTable = this.getContextDataTable();
|
|
25720
25764
|
var csb = Object(_easydata_ui__WEBPACK_IMPORTED_MODULE_0__["domel"])('select');
|
|
25765
|
+
var firstNumericColIndex = null;
|
|
25721
25766
|
var _loop_2 = function (i) {
|
|
25722
25767
|
var column = dataTable.columns.get(i);
|
|
25723
25768
|
var colLabel = column.label;
|
|
@@ -25725,6 +25770,9 @@ var PivotTableFacet = /** @class */ (function (_super) {
|
|
|
25725
25770
|
var colId = column.id;
|
|
25726
25771
|
if (allowedTypes && allowedTypes.indexOf(colType) < 0)
|
|
25727
25772
|
return "continue";
|
|
25773
|
+
if (firstNumericColIndex === null && _easydata_core__WEBPACK_IMPORTED_MODULE_1__["utils"].isNumericType(colType)) {
|
|
25774
|
+
firstNumericColIndex = i;
|
|
25775
|
+
}
|
|
25728
25776
|
csb.addChild('option', function (b) {
|
|
25729
25777
|
b
|
|
25730
25778
|
.attr('value', colId)
|
|
@@ -25746,7 +25794,20 @@ var PivotTableFacet = /** @class */ (function (_super) {
|
|
|
25746
25794
|
}
|
|
25747
25795
|
}
|
|
25748
25796
|
else {
|
|
25749
|
-
|
|
25797
|
+
switch (formFieldType) {
|
|
25798
|
+
case FormFieldType.ColumnField: {
|
|
25799
|
+
csb.toDOM().value = options[0].value;
|
|
25800
|
+
break;
|
|
25801
|
+
}
|
|
25802
|
+
case FormFieldType.RowField: {
|
|
25803
|
+
csb.toDOM().value = options.length > 1 ? options[1].value : options[0].value;
|
|
25804
|
+
break;
|
|
25805
|
+
}
|
|
25806
|
+
case FormFieldType.CellData: {
|
|
25807
|
+
csb.toDOM().value = firstNumericColIndex === null ? options[0].value : options[firstNumericColIndex].value;
|
|
25808
|
+
break;
|
|
25809
|
+
}
|
|
25810
|
+
}
|
|
25750
25811
|
}
|
|
25751
25812
|
}
|
|
25752
25813
|
return csb;
|
|
@@ -25791,7 +25852,7 @@ var PivotTableFacet = /** @class */ (function (_super) {
|
|
|
25791
25852
|
.addChild('div', function (b) { return b
|
|
25792
25853
|
.addClass('kfrm-select')
|
|
25793
25854
|
.attr('name', 'column_field')
|
|
25794
|
-
.addChildElement(_this.createColumnsSelectBuilder(colTypes, settings.colName)
|
|
25855
|
+
.addChildElement(_this.createColumnsSelectBuilder(colTypes, settings.colName, FormFieldType.ColumnField)
|
|
25795
25856
|
.id('pivotTableColFieldSelector')
|
|
25796
25857
|
.toDOM()); })
|
|
25797
25858
|
.addChild('button', function (b) { return b
|
|
@@ -25813,7 +25874,7 @@ var PivotTableFacet = /** @class */ (function (_super) {
|
|
|
25813
25874
|
.addChild('div', function (b) { return b
|
|
25814
25875
|
.addClass('kfrm-select')
|
|
25815
25876
|
.attr('name', 'row_field')
|
|
25816
|
-
.addChildElement(_this.createColumnsSelectBuilder(colTypes, settings.rowName)
|
|
25877
|
+
.addChildElement(_this.createColumnsSelectBuilder(colTypes, settings.rowName, FormFieldType.RowField)
|
|
25817
25878
|
.id('pivotTableRowFieldSelector')
|
|
25818
25879
|
.toDOM()); });
|
|
25819
25880
|
current = getCurrent();
|
|
@@ -25833,7 +25894,7 @@ var PivotTableFacet = /** @class */ (function (_super) {
|
|
|
25833
25894
|
.addChild('div', function (b) { return b
|
|
25834
25895
|
.addClass('kfrm-select')
|
|
25835
25896
|
.attr('name', 'data_column')
|
|
25836
|
-
.addChildElement(_this.createColumnsSelectBuilder(fieldTypes, settings.fieldName)
|
|
25897
|
+
.addChildElement(_this.createColumnsSelectBuilder(fieldTypes, settings.fieldName, FormFieldType.CellData)
|
|
25837
25898
|
.on('change', function (ev) {
|
|
25838
25899
|
var colId = ev.target.value;
|
|
25839
25900
|
_this.validateSelectedField(colId);
|
|
@@ -26600,7 +26661,7 @@ var AggrSettingsDialog = /** @class */ (function () {
|
|
|
26600
26661
|
var ds = _this.context.getServices().getDialogService();
|
|
26601
26662
|
_this.body = _this.renderBody();
|
|
26602
26663
|
var dlg = ds.open({
|
|
26603
|
-
title: '
|
|
26664
|
+
title: _easyquery_core__WEBPACK_IMPORTED_MODULE_1__["i18n"].getText('AggrSettings', 'AggrDialogTitle'),
|
|
26604
26665
|
body: _this.body,
|
|
26605
26666
|
onSubmit: function () {
|
|
26606
26667
|
if (_this.query.enableAggregation && !_this.renderer.isValid())
|
|
@@ -26661,10 +26722,10 @@ var AggrSettingsDialog = /** @class */ (function () {
|
|
|
26661
26722
|
b.on('change', _this.enableAggrCheckBoxChangeHandler.bind(_this));
|
|
26662
26723
|
})
|
|
26663
26724
|
.addChild('span', function (b) { return b
|
|
26664
|
-
.addClass('slider round'); })
|
|
26725
|
+
.addClass('slider round'); })
|
|
26665
26726
|
.addChild('span', function (b) { return b
|
|
26666
26727
|
.addClass('switch-text')
|
|
26667
|
-
.addText(_easyquery_core__WEBPACK_IMPORTED_MODULE_1__["i18n"].getText('AggrSettings', 'EnableAggrLabel')); }); })
|
|
26728
|
+
.addText(_easyquery_core__WEBPACK_IMPORTED_MODULE_1__["i18n"].getText('AggrSettings', 'EnableAggrLabel')); }); }); })
|
|
26668
26729
|
.addChild('div', function (b) { return b
|
|
26669
26730
|
.id('AggrSettingsComponent'); });
|
|
26670
26731
|
return b.toDOM();
|
|
@@ -26843,10 +26904,10 @@ var AggrSettingsRenderer = /** @class */ (function () {
|
|
|
26843
26904
|
b.on('change', _this.countsCheckboxChangeHandler.bind(_this));
|
|
26844
26905
|
})
|
|
26845
26906
|
.addChild('span', function (b) { return b
|
|
26846
|
-
.addClass('slider round'); })
|
|
26907
|
+
.addClass('slider round'); })
|
|
26847
26908
|
.addChild('span', function (b) { return b
|
|
26848
26909
|
.addClass('switch-text')
|
|
26849
|
-
.addText(_easyquery_core__WEBPACK_IMPORTED_MODULE_3__["i18n"].getText('AggrSettings', 'GroupCountsLabel')); }); })
|
|
26910
|
+
.addText(_easyquery_core__WEBPACK_IMPORTED_MODULE_3__["i18n"].getText('AggrSettings', 'GroupCountsLabel')); }); }); })
|
|
26850
26911
|
.addChild('div', function (b) { return b
|
|
26851
26912
|
.addClass(_this.cssPrefix + "-grandtotals")
|
|
26852
26913
|
.addChild('label', function (b) { return b
|
|
@@ -26859,10 +26920,10 @@ var AggrSettingsRenderer = /** @class */ (function () {
|
|
|
26859
26920
|
b.on('change', _this.grandCheckboxChangeHandler.bind(_this));
|
|
26860
26921
|
})
|
|
26861
26922
|
.addChild('span', function (b) { return b
|
|
26862
|
-
.addClass('slider round'); })
|
|
26923
|
+
.addClass('slider round'); })
|
|
26863
26924
|
.addChild('span', function (b) { return b
|
|
26864
26925
|
.addClass('switch-text')
|
|
26865
|
-
.addText(_easyquery_core__WEBPACK_IMPORTED_MODULE_3__["i18n"].getText('AggrSettings', 'GrandTotalsLabel')); }); });
|
|
26926
|
+
.addText(_easyquery_core__WEBPACK_IMPORTED_MODULE_3__["i18n"].getText('AggrSettings', 'GrandTotalsLabel')); }); }); });
|
|
26866
26927
|
var groups = this.slot.querySelectorAll("." + this.cssPrefix + "-group");
|
|
26867
26928
|
groups.forEach(function (el) {
|
|
26868
26929
|
Object(_easydata_ui__WEBPACK_IMPORTED_MODULE_1__["domel"])(el)
|
|
@@ -28754,7 +28815,7 @@ module.exports = g;
|
|
|
28754
28815
|
/* WEBPACK VAR INJECTION */(function(Promise) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return HttpResponseError; });
|
|
28755
28816
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return HttpClient; });
|
|
28756
28817
|
/* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11);
|
|
28757
|
-
/* harmony import */ var _http_action_result__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
28818
|
+
/* harmony import */ var _http_action_result__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(107);
|
|
28758
28819
|
/* harmony import */ var _http_method__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36);
|
|
28759
28820
|
/* harmony import */ var _http_request__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(55);
|
|
28760
28821
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
@@ -30513,6 +30574,33 @@ var GoogleDataConverter = /** @class */ (function () {
|
|
|
30513
30574
|
/* 103 */
|
|
30514
30575
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
30515
30576
|
|
|
30577
|
+
"use strict";
|
|
30578
|
+
/* WEBPACK VAR INJECTION */(function(Promise) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return InMemoryModelStorage; });
|
|
30579
|
+
/* harmony import */ var _easydata_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
30580
|
+
|
|
30581
|
+
var InMemoryModelStorage = /** @class */ (function () {
|
|
30582
|
+
function InMemoryModelStorage(models) {
|
|
30583
|
+
this.models = [];
|
|
30584
|
+
if (models) {
|
|
30585
|
+
_easydata_core__WEBPACK_IMPORTED_MODULE_0__["utils"].assign(this.models, [], models);
|
|
30586
|
+
}
|
|
30587
|
+
}
|
|
30588
|
+
InMemoryModelStorage.prototype.getModels = function () {
|
|
30589
|
+
var _this = this;
|
|
30590
|
+
return new Promise(function (resolve, reject) {
|
|
30591
|
+
resolve(_this.models);
|
|
30592
|
+
});
|
|
30593
|
+
};
|
|
30594
|
+
return InMemoryModelStorage;
|
|
30595
|
+
}());
|
|
30596
|
+
|
|
30597
|
+
//# sourceMappingURL=model_storage.js.map
|
|
30598
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(51)))
|
|
30599
|
+
|
|
30600
|
+
/***/ }),
|
|
30601
|
+
/* 104 */
|
|
30602
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
30603
|
+
|
|
30516
30604
|
"use strict";
|
|
30517
30605
|
/* WEBPACK VAR INJECTION */(function(Promise) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return EasyGrid; });
|
|
30518
30606
|
/* harmony import */ var _easydata_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
@@ -31680,10 +31768,10 @@ var EasyGrid = /** @class */ (function () {
|
|
|
31680
31768
|
}());
|
|
31681
31769
|
|
|
31682
31770
|
//# sourceMappingURL=easy_grid.js.map
|
|
31683
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
31771
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(105)))
|
|
31684
31772
|
|
|
31685
31773
|
/***/ }),
|
|
31686
|
-
/*
|
|
31774
|
+
/* 105 */
|
|
31687
31775
|
/***/ (function(module, exports, __webpack_require__) {
|
|
31688
31776
|
|
|
31689
31777
|
/* WEBPACK VAR INJECTION */(function(process, global) {/*!
|
|
@@ -32863,7 +32951,7 @@ return Promise$1;
|
|
|
32863
32951
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(97), __webpack_require__(98)))
|
|
32864
32952
|
|
|
32865
32953
|
/***/ }),
|
|
32866
|
-
/*
|
|
32954
|
+
/* 106 */
|
|
32867
32955
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
32868
32956
|
|
|
32869
32957
|
"use strict";
|
|
@@ -33592,7 +33680,7 @@ var AdvancedSearchView = /** @class */ (function (_super) {
|
|
|
33592
33680
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(54)))
|
|
33593
33681
|
|
|
33594
33682
|
/***/ }),
|
|
33595
|
-
/*
|
|
33683
|
+
/* 107 */
|
|
33596
33684
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
33597
33685
|
|
|
33598
33686
|
"use strict";
|
|
@@ -33623,33 +33711,27 @@ var HttpActionResult = /** @class */ (function () {
|
|
|
33623
33711
|
//# sourceMappingURL=http_action_result.js.map
|
|
33624
33712
|
|
|
33625
33713
|
/***/ }),
|
|
33626
|
-
/*
|
|
33714
|
+
/* 108 */
|
|
33627
33715
|
/***/ (function(module, exports, __webpack_require__) {
|
|
33628
33716
|
|
|
33629
|
-
__webpack_require__(
|
|
33630
|
-
module.exports = __webpack_require__(
|
|
33717
|
+
__webpack_require__(109);
|
|
33718
|
+
module.exports = __webpack_require__(124);
|
|
33631
33719
|
|
|
33632
33720
|
|
|
33633
33721
|
/***/ }),
|
|
33634
|
-
/*
|
|
33722
|
+
/* 109 */
|
|
33635
33723
|
/***/ (function(module, exports, __webpack_require__) {
|
|
33636
33724
|
|
|
33637
|
-
__webpack_require__(109);
|
|
33638
33725
|
__webpack_require__(110);
|
|
33639
33726
|
__webpack_require__(111);
|
|
33640
|
-
|
|
33641
33727
|
__webpack_require__(112);
|
|
33728
|
+
|
|
33642
33729
|
__webpack_require__(113);
|
|
33643
33730
|
__webpack_require__(114);
|
|
33644
33731
|
__webpack_require__(115);
|
|
33645
33732
|
__webpack_require__(116);
|
|
33646
|
-
__webpack_require__(117);
|
|
33647
|
-
|
|
33648
|
-
/***/ }),
|
|
33649
|
-
/* 109 */
|
|
33650
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
33651
|
-
|
|
33652
|
-
// extracted by mini-css-extract-plugin
|
|
33733
|
+
__webpack_require__(117);
|
|
33734
|
+
__webpack_require__(118);
|
|
33653
33735
|
|
|
33654
33736
|
/***/ }),
|
|
33655
33737
|
/* 110 */
|
|
@@ -33701,6 +33783,12 @@ __webpack_require__(117);
|
|
|
33701
33783
|
|
|
33702
33784
|
/***/ }),
|
|
33703
33785
|
/* 118 */
|
|
33786
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
33787
|
+
|
|
33788
|
+
// extracted by mini-css-extract-plugin
|
|
33789
|
+
|
|
33790
|
+
/***/ }),
|
|
33791
|
+
/* 119 */
|
|
33704
33792
|
/***/ (function(module, exports) {
|
|
33705
33793
|
|
|
33706
33794
|
// shim for using process in browser
|
|
@@ -33890,7 +33978,7 @@ process.umask = function() { return 0; };
|
|
|
33890
33978
|
|
|
33891
33979
|
|
|
33892
33980
|
/***/ }),
|
|
33893
|
-
/*
|
|
33981
|
+
/* 120 */
|
|
33894
33982
|
/***/ (function(module, exports) {
|
|
33895
33983
|
|
|
33896
33984
|
var g;
|
|
@@ -33916,10 +34004,10 @@ module.exports = g;
|
|
|
33916
34004
|
|
|
33917
34005
|
|
|
33918
34006
|
/***/ }),
|
|
33919
|
-
/* 120 */,
|
|
33920
34007
|
/* 121 */,
|
|
33921
34008
|
/* 122 */,
|
|
33922
|
-
/* 123
|
|
34009
|
+
/* 123 */,
|
|
34010
|
+
/* 124 */
|
|
33923
34011
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
33924
34012
|
|
|
33925
34013
|
"use strict";
|
|
@@ -34465,7 +34553,7 @@ var chart_type = __webpack_require__(5);
|
|
|
34465
34553
|
var chart_widget = __webpack_require__(47);
|
|
34466
34554
|
|
|
34467
34555
|
// EXTERNAL MODULE: ./dist/lib/widgets/charts/chart_widget_google.js
|
|
34468
|
-
var chart_widget_google = __webpack_require__(
|
|
34556
|
+
var chart_widget_google = __webpack_require__(53);
|
|
34469
34557
|
|
|
34470
34558
|
// EXTERNAL MODULE: ./dist/lib/widgets/charts/chart_widget_chartjs.js
|
|
34471
34559
|
var chart_widget_chartjs = __webpack_require__(46);
|
|
@@ -34513,7 +34601,7 @@ var condition_renderer = __webpack_require__(35);
|
|
|
34513
34601
|
var condition_group_renderer = __webpack_require__(76);
|
|
34514
34602
|
|
|
34515
34603
|
// EXTERNAL MODULE: ./dist/lib/widgets/renderers/querypanel/attribute_expression_renderer.js
|
|
34516
|
-
var attribute_expression_renderer = __webpack_require__(
|
|
34604
|
+
var attribute_expression_renderer = __webpack_require__(52);
|
|
34517
34605
|
|
|
34518
34606
|
// EXTERNAL MODULE: ./dist/lib/widgets/renderers/querypanel/expression_renderer.js
|
|
34519
34607
|
var expression_renderer = __webpack_require__(23);
|
|
@@ -34549,7 +34637,7 @@ var pivot_table_facet = __webpack_require__(88);
|
|
|
34549
34637
|
var view = __webpack_require__(32);
|
|
34550
34638
|
|
|
34551
34639
|
// EXTERNAL MODULE: ./dist/lib/views/adv_search_view.js
|
|
34552
|
-
var adv_search_view = __webpack_require__(
|
|
34640
|
+
var adv_search_view = __webpack_require__(106);
|
|
34553
34641
|
|
|
34554
34642
|
// CONCATENATED MODULE: ./dist/lib/views/data_filter_view.js
|
|
34555
34643
|
var data_filter_view_extends = (undefined && undefined.__extends) || (function () {
|
|
@@ -34573,7 +34661,9 @@ var data_filter_view_extends = (undefined && undefined.__extends) || (function (
|
|
|
34573
34661
|
var data_filter_view_DataFilterView = /** @class */ (function (_super) {
|
|
34574
34662
|
data_filter_view_extends(DataFilterView, _super);
|
|
34575
34663
|
function DataFilterView() {
|
|
34576
|
-
|
|
34664
|
+
var _this = _super.call(this) || this;
|
|
34665
|
+
_this.resultOptions.fetchEmptyQueries = true;
|
|
34666
|
+
return _this;
|
|
34577
34667
|
}
|
|
34578
34668
|
DataFilterView.prototype.initOptions = function (options) {
|
|
34579
34669
|
var _this = this;
|
|
@@ -34651,7 +34741,9 @@ var html_data_filter_view_extends = (undefined && undefined.__extends) || (funct
|
|
|
34651
34741
|
var html_data_filter_view_HtmlDataFilterView = /** @class */ (function (_super) {
|
|
34652
34742
|
html_data_filter_view_extends(HtmlDataFilterView, _super);
|
|
34653
34743
|
function HtmlDataFilterView() {
|
|
34654
|
-
|
|
34744
|
+
var _this = _super.call(this) || this;
|
|
34745
|
+
_this.resultOptions.fetchEmptyQueries = true;
|
|
34746
|
+
return _this;
|
|
34655
34747
|
}
|
|
34656
34748
|
/**
|
|
34657
34749
|
* Creates the widget that represents Grid Widget.
|
|
@@ -34724,7 +34816,7 @@ var report_view_ReportView = /** @class */ (function (_super) {
|
|
|
34724
34816
|
_this.loadReportButtonClickHandler = _this.loadReportButtonClick.bind(_this);
|
|
34725
34817
|
_this.saveReportButtonClickHandler = _this.saveReportButtonClick.bind(_this);
|
|
34726
34818
|
_this.removeReportButtonClickHandler = _this.removeReportButtonClick.bind(_this);
|
|
34727
|
-
_this.
|
|
34819
|
+
_this.reloadReportDataButtonClickHandler = _this.reloadReportDataButtonClick.bind(_this);
|
|
34728
34820
|
browser_utils["a" /* browserUtils */].onMobileModeChanged(function (_) {
|
|
34729
34821
|
document.location.reload();
|
|
34730
34822
|
});
|
|
@@ -34811,7 +34903,7 @@ var report_view_ReportView = /** @class */ (function (_super) {
|
|
|
34811
34903
|
var loadReportButton = "LoadReportButton";
|
|
34812
34904
|
var saveReportButton = "SaveReportButton";
|
|
34813
34905
|
var removeReportButton = "RemoveReportButton";
|
|
34814
|
-
var
|
|
34906
|
+
var reloadReportDataButton = "ReloadReportDataButton";
|
|
34815
34907
|
var resultCountSpan = "ResultCount";
|
|
34816
34908
|
var exportButtons = "ResultExportButtons";
|
|
34817
34909
|
var exportClass = this.exportClass;
|
|
@@ -34823,7 +34915,7 @@ var report_view_ReportView = /** @class */ (function (_super) {
|
|
|
34823
34915
|
loadReportButton = options.slots.loadReportButton || loadReportButton;
|
|
34824
34916
|
saveReportButton = options.slots.saveReportButton || saveReportButton;
|
|
34825
34917
|
removeReportButton = options.slots.removeReportButton || removeReportButton;
|
|
34826
|
-
|
|
34918
|
+
reloadReportDataButton = options.slots.reloadReportDataButton || reloadReportDataButton;
|
|
34827
34919
|
exportClass = options.slots.exportClass || exportClass;
|
|
34828
34920
|
}
|
|
34829
34921
|
this.exportButtons = this.domRoots.reduce(function (elems, root) {
|
|
@@ -34870,10 +34962,14 @@ var report_view_ReportView = /** @class */ (function (_super) {
|
|
|
34870
34962
|
this.removeReportButton.addEventListener('click', this.removeReportButtonClickHandler);
|
|
34871
34963
|
}
|
|
34872
34964
|
}
|
|
34873
|
-
if (!this.
|
|
34874
|
-
this.
|
|
34875
|
-
|
|
34876
|
-
|
|
34965
|
+
if (!this.reloadReportDataButton) {
|
|
34966
|
+
this.reloadReportDataButton = this.resolveElement(reloadReportDataButton);
|
|
34967
|
+
//OBSOLETE: remove the next 3 lines. We just support the old default button ID here
|
|
34968
|
+
if (!this.reloadReportDataButton) {
|
|
34969
|
+
this.reloadReportDataButton = this.resolveElement('UpdateReportButton');
|
|
34970
|
+
}
|
|
34971
|
+
if (this.reloadReportDataButton) {
|
|
34972
|
+
this.reloadReportDataButton.addEventListener('click', this.reloadReportDataButtonClickHandler);
|
|
34877
34973
|
}
|
|
34878
34974
|
}
|
|
34879
34975
|
this.reportListSlot = document.getElementById('ReportList');
|
|
@@ -35178,8 +35274,8 @@ var report_view_ReportView = /** @class */ (function (_super) {
|
|
|
35178
35274
|
this.removeReportButton.removeEventListener('click', this.removeReportButtonClickHandler);
|
|
35179
35275
|
this.removeReportButton = null;
|
|
35180
35276
|
}
|
|
35181
|
-
if (this.
|
|
35182
|
-
this.
|
|
35277
|
+
if (this.reloadReportDataButton) {
|
|
35278
|
+
this.reloadReportDataButton.removeEventListener('click', this.reloadReportDataButtonClickHandler);
|
|
35183
35279
|
this.removeReportButton = null;
|
|
35184
35280
|
}
|
|
35185
35281
|
if (this.reportListSlot) {
|
|
@@ -35280,7 +35376,7 @@ var report_view_ReportView = /** @class */ (function (_super) {
|
|
|
35280
35376
|
/**
|
|
35281
35377
|
* The handler of the "Update" button click.
|
|
35282
35378
|
*/
|
|
35283
|
-
ReportView.prototype.
|
|
35379
|
+
ReportView.prototype.reloadReportDataButtonClick = function () {
|
|
35284
35380
|
this.fetchData();
|
|
35285
35381
|
};
|
|
35286
35382
|
/**
|
|
@@ -35645,6 +35741,7 @@ function addEasyQueryUITexts() {
|
|
|
35645
35741
|
UnaggrBtn: 'Remove column aggregation',
|
|
35646
35742
|
GrandTotalsLabel: 'Show grand totals',
|
|
35647
35743
|
GroupCountsLabel: 'Show record count for groups',
|
|
35744
|
+
AggrDialogTitle: 'Aggregation/grouping',
|
|
35648
35745
|
EnableAggrLabel: 'Enable aggregation',
|
|
35649
35746
|
SelectedError: 'Complete the action with selected column(s)',
|
|
35650
35747
|
NoGroupsOrAggrError: 'Add at least one group or aggregation',
|