@easyquery/ui 7.2.0-rc01 → 7.2.0-rc05
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 +13 -3
- package/dist/browser/eq.community.css.map +1 -1
- package/dist/browser/eq.community.js +554 -426
- 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 +25 -15
- 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 +142 -88
- 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 +49 -10
- package/dist/lib/facets/pivot_table_facet.js.map +1 -1
- package/dist/lib/facets/result_facet.d.ts +1 -0
- package/dist/lib/facets/result_facet.js +5 -0
- package/dist/lib/facets/result_facet.js.map +1 -1
- package/dist/lib/i18n/text_resources.js +2 -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 +15 -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 +1 -16
- 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/dist/lib/widgets/result_facets_panel.js +3 -0
- package/dist/lib/widgets/result_facets_panel.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-rc05 (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
|
/******/ ([
|
|
@@ -157,7 +157,7 @@ var EditorTag = {
|
|
|
157
157
|
};
|
|
158
158
|
//# sourceMappingURL=editor_tag.js.map
|
|
159
159
|
// EXTERNAL MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/core/dist/lib/http/http_method.js
|
|
160
|
-
var http_method = __webpack_require__(
|
|
160
|
+
var http_method = __webpack_require__(36);
|
|
161
161
|
|
|
162
162
|
// EXTERNAL MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/core/dist/lib/http/http_request.js
|
|
163
163
|
var http_request = __webpack_require__(55);
|
|
@@ -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,10 +1349,10 @@ __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
|
-
var easy_grid_options = __webpack_require__(
|
|
1355
|
+
var easy_grid_options = __webpack_require__(34);
|
|
1355
1356
|
|
|
1356
1357
|
// EXTERNAL MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/ui/dist/lib/grid/easy_grid_columns.js
|
|
1357
1358
|
var easy_grid_columns = __webpack_require__(21);
|
|
@@ -2013,7 +2014,7 @@ var default_date_time_picker_DefaultDateTimePicker = /** @class */ (function (_s
|
|
|
2013
2014
|
var browser_utils = __webpack_require__(66);
|
|
2014
2015
|
|
|
2015
2016
|
// EXTERNAL MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/ui/dist/lib/utils/drag_manager.js
|
|
2016
|
-
var drag_manager = __webpack_require__(
|
|
2017
|
+
var drag_manager = __webpack_require__(37);
|
|
2017
2018
|
|
|
2018
2019
|
// EXTERNAL MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/ui/dist/lib/utils/mask.js
|
|
2019
2020
|
var mask = __webpack_require__(67);
|
|
@@ -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; });
|
|
@@ -2407,8 +2409,9 @@ var eq_services_EqServiceProvider = /** @class */ (function () {
|
|
|
2407
2409
|
this.queryFileLoader = null;
|
|
2408
2410
|
this.aggrCalculator = null;
|
|
2409
2411
|
this.httpClient = new public_api["HttpClient"]();
|
|
2410
|
-
this.httpClient.defaultHeaders['x-eqjs-version'] = '7.
|
|
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;
|
|
@@ -3784,6 +3807,7 @@ var context_EqContext = /** @class */ (function () {
|
|
|
3784
3807
|
_this.resultContent = result;
|
|
3785
3808
|
if (result.resultSet) {
|
|
3786
3809
|
_this.resultTable.clear();
|
|
3810
|
+
_this.resultTable.id = _this.query.getId();
|
|
3787
3811
|
var resultSet = result.resultSet;
|
|
3788
3812
|
for (var _i = 0, _a = resultSet.cols; _i < _a.length; _i++) {
|
|
3789
3813
|
var col = _a[_i];
|
|
@@ -4260,6 +4284,7 @@ addEasyQueryCoreTexts();
|
|
|
4260
4284
|
|
|
4261
4285
|
|
|
4262
4286
|
|
|
4287
|
+
|
|
4263
4288
|
|
|
4264
4289
|
|
|
4265
4290
|
//for backward compatibility
|
|
@@ -8197,7 +8222,7 @@ var qp_editable_part = __webpack_require__(10);
|
|
|
8197
8222
|
var popup_menu = __webpack_require__(9);
|
|
8198
8223
|
|
|
8199
8224
|
// EXTERNAL MODULE: ./dist/lib/widgets/renderers/querypanel/condition_renderer.js
|
|
8200
|
-
var condition_renderer = __webpack_require__(
|
|
8225
|
+
var condition_renderer = __webpack_require__(35);
|
|
8201
8226
|
|
|
8202
8227
|
// EXTERNAL MODULE: ./dist/lib/widgets/renderers/querypanel/condition_group_renderer.js
|
|
8203
8228
|
var condition_group_renderer = __webpack_require__(76);
|
|
@@ -8206,7 +8231,7 @@ var condition_group_renderer = __webpack_require__(76);
|
|
|
8206
8231
|
var input_expression_renderer = __webpack_require__(78);
|
|
8207
8232
|
|
|
8208
8233
|
// EXTERNAL MODULE: ./dist/lib/widgets/renderers/querypanel/attribute_expression_renderer.js
|
|
8209
|
-
var attribute_expression_renderer = __webpack_require__(
|
|
8234
|
+
var attribute_expression_renderer = __webpack_require__(52);
|
|
8210
8235
|
|
|
8211
8236
|
// EXTERNAL MODULE: ./dist/lib/widgets/renderers/querypanel/addrow_renderer.js
|
|
8212
8237
|
var addrow_renderer = __webpack_require__(79);
|
|
@@ -9595,8 +9620,6 @@ var Query = /** @class */ (function () {
|
|
|
9595
9620
|
}
|
|
9596
9621
|
this.setDefaultName();
|
|
9597
9622
|
this.description = "";
|
|
9598
|
-
this.modelId = "";
|
|
9599
|
-
this.modelName = "";
|
|
9600
9623
|
this.model = (model) ? model : new _dm_data_model__WEBPACK_IMPORTED_MODULE_2__[/* DataModel */ "a"]();
|
|
9601
9624
|
if (data) {
|
|
9602
9625
|
this.loadFromData(data);
|
|
@@ -9610,10 +9633,14 @@ var Query = /** @class */ (function () {
|
|
|
9610
9633
|
this.parentQuery = options.parent;
|
|
9611
9634
|
}
|
|
9612
9635
|
this.addChangedCallback(function (ev) {
|
|
9613
|
-
if (ev.data
|
|
9614
|
-
&& ev.data.
|
|
9636
|
+
if (ev.data
|
|
9637
|
+
&& ((ev.data.part & _query_events__WEBPACK_IMPORTED_MODULE_10__[/* QueryChangePart */ "b"].Columns) > 0)
|
|
9615
9638
|
&& !ev.data.aggregation) {
|
|
9616
|
-
_this.
|
|
9639
|
+
if (_this._enableAggregation && _this.updateAggregationSettings()) {
|
|
9640
|
+
_this.fireChangedEvent({
|
|
9641
|
+
part: _query_events__WEBPACK_IMPORTED_MODULE_10__[/* QueryChangePart */ "b"].Aggregation
|
|
9642
|
+
});
|
|
9643
|
+
}
|
|
9617
9644
|
}
|
|
9618
9645
|
});
|
|
9619
9646
|
}
|
|
@@ -9634,19 +9661,6 @@ var Query = /** @class */ (function () {
|
|
|
9634
9661
|
this.processQueryForAggregation();
|
|
9635
9662
|
var aggrCols = this.columns.filter(function (c) { return c.enabled
|
|
9636
9663
|
&& c.expr.tag == _types_expr_tag__WEBPACK_IMPORTED_MODULE_8__[/* ExprTag */ "a"].AggregateFunction; });
|
|
9637
|
-
// // query contains aggregate columns
|
|
9638
|
-
// if (aggrCols.length) {
|
|
9639
|
-
// for (const col of aggrCols) {
|
|
9640
|
-
// const attr = this.model.getAttributeById(col.expr.args[0].value);
|
|
9641
|
-
// this.changeColumnType(col, ExprTag.EntityAttribute, {
|
|
9642
|
-
// caption: this.model.getAttributeText(attr, `{attr}`)
|
|
9643
|
-
// });
|
|
9644
|
-
// }
|
|
9645
|
-
// this.fireChangedEvent({
|
|
9646
|
-
// part: QueryChangePart.Columns,
|
|
9647
|
-
// wasModified: true
|
|
9648
|
-
// });
|
|
9649
|
-
// }
|
|
9650
9664
|
}
|
|
9651
9665
|
if (!this._enableAggregation) {
|
|
9652
9666
|
this.aggrSettings.clear();
|
|
@@ -9655,6 +9669,40 @@ var Query = /** @class */ (function () {
|
|
|
9655
9669
|
enumerable: true,
|
|
9656
9670
|
configurable: true
|
|
9657
9671
|
});
|
|
9672
|
+
Query.prototype.updateAggregationSettings = function () {
|
|
9673
|
+
var hasChanged = false;
|
|
9674
|
+
var aggrSettings = this.getAggregationSettings();
|
|
9675
|
+
for (var i = aggrSettings.groups.length - 1; i >= 0; i--) {
|
|
9676
|
+
var group = aggrSettings.groups[i];
|
|
9677
|
+
var _loop_1 = function (j) {
|
|
9678
|
+
var colId = group.columns[j];
|
|
9679
|
+
if (!this_1.columns.find(function (col) { return col.id === colId; })) {
|
|
9680
|
+
group.columns.splice(j, 1);
|
|
9681
|
+
hasChanged = true;
|
|
9682
|
+
}
|
|
9683
|
+
};
|
|
9684
|
+
var this_1 = this;
|
|
9685
|
+
for (var j = group.columns.length - 1; j >= 0; j--) {
|
|
9686
|
+
_loop_1(j);
|
|
9687
|
+
}
|
|
9688
|
+
if (group.columns.length == 0) {
|
|
9689
|
+
aggrSettings.groups.slice(i, 1);
|
|
9690
|
+
}
|
|
9691
|
+
}
|
|
9692
|
+
var aggregates = aggrSettings.getAggregates();
|
|
9693
|
+
var _loop_2 = function (i) {
|
|
9694
|
+
var aggr = aggregates[i];
|
|
9695
|
+
if (!this_2.columns.find(function (col) { return col.id === aggr.colId; })) {
|
|
9696
|
+
aggregates.splice(i, 1);
|
|
9697
|
+
hasChanged = true;
|
|
9698
|
+
}
|
|
9699
|
+
};
|
|
9700
|
+
var this_2 = this;
|
|
9701
|
+
for (var i = aggregates.length - 1; i >= 0; i--) {
|
|
9702
|
+
_loop_2(i);
|
|
9703
|
+
}
|
|
9704
|
+
return hasChanged;
|
|
9705
|
+
};
|
|
9658
9706
|
Query.prototype.createSubQuery = function () {
|
|
9659
9707
|
return new Query(this.model);
|
|
9660
9708
|
};
|
|
@@ -11259,6 +11307,11 @@ var ResultFacet = /** @class */ (function () {
|
|
|
11259
11307
|
var resultTable = context.resultTable;
|
|
11260
11308
|
return (resultTable.getCachedCount() == resultTable.getTotal());
|
|
11261
11309
|
};
|
|
11310
|
+
ResultFacet.prototype.showErrorMessage = function (message) {
|
|
11311
|
+
this.displayMessageDiv.innerHTML = message;
|
|
11312
|
+
this.displayMessageDiv.classList.add(this.cssPrefix + "-error-message");
|
|
11313
|
+
Object(_easydata_ui__WEBPACK_IMPORTED_MODULE_1__["domel"])(this.displayMessageDiv).show();
|
|
11314
|
+
};
|
|
11262
11315
|
ResultFacet.prototype.showUnableDisplayMessage = function (message) {
|
|
11263
11316
|
var context = this.getContext();
|
|
11264
11317
|
var resultTable = context.resultTable;
|
|
@@ -11856,6 +11909,10 @@ var view_View = /** @class */ (function () {
|
|
|
11856
11909
|
View.prototype.fetchData = function (options) {
|
|
11857
11910
|
var _this = this;
|
|
11858
11911
|
options = options || { refresh: true };
|
|
11912
|
+
this.context.clearResult();
|
|
11913
|
+
//don't run fetch if the query is empty
|
|
11914
|
+
if (this.context.getQuery().isEmpty() && !this.resultOptions.fetchEmptyQueries)
|
|
11915
|
+
return;
|
|
11859
11916
|
this.showResultSpinner();
|
|
11860
11917
|
this.context.fetchData({
|
|
11861
11918
|
elasticPaging: options.elasticPaging,
|
|
@@ -12237,6 +12294,20 @@ var Operand = /** @class */ (function () {
|
|
|
12237
12294
|
/* 34 */
|
|
12238
12295
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
12239
12296
|
|
|
12297
|
+
"use strict";
|
|
12298
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AutoResizeColumns; });
|
|
12299
|
+
var AutoResizeColumns;
|
|
12300
|
+
(function (AutoResizeColumns) {
|
|
12301
|
+
AutoResizeColumns[AutoResizeColumns["Always"] = 0] = "Always";
|
|
12302
|
+
AutoResizeColumns[AutoResizeColumns["Once"] = 1] = "Once";
|
|
12303
|
+
AutoResizeColumns[AutoResizeColumns["Never"] = 2] = "Never";
|
|
12304
|
+
})(AutoResizeColumns || (AutoResizeColumns = {}));
|
|
12305
|
+
//# sourceMappingURL=easy_grid_options.js.map
|
|
12306
|
+
|
|
12307
|
+
/***/ }),
|
|
12308
|
+
/* 35 */
|
|
12309
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
12310
|
+
|
|
12240
12311
|
"use strict";
|
|
12241
12312
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ConditionAction; });
|
|
12242
12313
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return ConditionRenderer; });
|
|
@@ -12759,7 +12830,7 @@ var SimpleConditionRenderer = /** @class */ (function (_super) {
|
|
|
12759
12830
|
//# sourceMappingURL=condition_renderer.js.map
|
|
12760
12831
|
|
|
12761
12832
|
/***/ }),
|
|
12762
|
-
/*
|
|
12833
|
+
/* 36 */
|
|
12763
12834
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
12764
12835
|
|
|
12765
12836
|
"use strict";
|
|
@@ -12776,7 +12847,7 @@ var HttpMethod;
|
|
|
12776
12847
|
//# sourceMappingURL=http_method.js.map
|
|
12777
12848
|
|
|
12778
12849
|
/***/ }),
|
|
12779
|
-
/*
|
|
12850
|
+
/* 37 */
|
|
12780
12851
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
12781
12852
|
|
|
12782
12853
|
"use strict";
|
|
@@ -13154,20 +13225,6 @@ var DragManager = /** @class */ (function () {
|
|
|
13154
13225
|
var eqDragManager = new DragManager();
|
|
13155
13226
|
//# sourceMappingURL=drag_manager.js.map
|
|
13156
13227
|
|
|
13157
|
-
/***/ }),
|
|
13158
|
-
/* 37 */
|
|
13159
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
13160
|
-
|
|
13161
|
-
"use strict";
|
|
13162
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AutoResizeColumns; });
|
|
13163
|
-
var AutoResizeColumns;
|
|
13164
|
-
(function (AutoResizeColumns) {
|
|
13165
|
-
AutoResizeColumns[AutoResizeColumns["Always"] = 0] = "Always";
|
|
13166
|
-
AutoResizeColumns[AutoResizeColumns["Once"] = 1] = "Once";
|
|
13167
|
-
AutoResizeColumns[AutoResizeColumns["Never"] = 2] = "Never";
|
|
13168
|
-
})(AutoResizeColumns || (AutoResizeColumns = {}));
|
|
13169
|
-
//# sourceMappingURL=easy_grid_options.js.map
|
|
13170
|
-
|
|
13171
13228
|
/***/ }),
|
|
13172
13229
|
/* 38 */
|
|
13173
13230
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
@@ -15282,7 +15339,7 @@ var EasyGridWidget = /** @class */ (function (_super) {
|
|
|
15282
15339
|
_super.prototype.init.call(this, context, options);
|
|
15283
15340
|
var gridOptions = __assign(__assign({}, options), { slot: this.slot, dataTable: context.resultTable });
|
|
15284
15341
|
this.options = _easydata_core__WEBPACK_IMPORTED_MODULE_1__["utils"].assign(this.options, options);
|
|
15285
|
-
gridOptions.
|
|
15342
|
+
gridOptions.onPlusButtonClick = function (ev) { return _this.addColumnClickHandler(ev); };
|
|
15286
15343
|
gridOptions.onColumnMoved = function (ev) { return _this.columnMovedHandler(ev); };
|
|
15287
15344
|
if (gridOptions.aggregates) {
|
|
15288
15345
|
this.hasCustomTotalsSettings = true;
|
|
@@ -15308,21 +15365,6 @@ var EasyGridWidget = /** @class */ (function (_super) {
|
|
|
15308
15365
|
this.grid.refresh();
|
|
15309
15366
|
};
|
|
15310
15367
|
EasyGridWidget.prototype.attachQueryObserver = function () {
|
|
15311
|
-
var _this = this;
|
|
15312
|
-
var query = this.getQuery();
|
|
15313
|
-
this.queryEventCallbackId = query.addChangedCallback(function (event) {
|
|
15314
|
-
//if something has changed, and that change is related to columns
|
|
15315
|
-
var edata = event.data;
|
|
15316
|
-
if (!edata || (edata.part != _easyquery_core__WEBPACK_IMPORTED_MODULE_0__["QueryChangePart"].Columns && edata.part != _easyquery_core__WEBPACK_IMPORTED_MODULE_0__["QueryChangePart"].All)) {
|
|
15317
|
-
return;
|
|
15318
|
-
}
|
|
15319
|
-
if (event.data.source == _this) {
|
|
15320
|
-
_this.grid.refresh();
|
|
15321
|
-
}
|
|
15322
|
-
else {
|
|
15323
|
-
_this.refresh();
|
|
15324
|
-
}
|
|
15325
|
-
});
|
|
15326
15368
|
};
|
|
15327
15369
|
EasyGridWidget.prototype.destroyCore = function () {
|
|
15328
15370
|
this.detachQueryObserver();
|
|
@@ -16578,263 +16620,6 @@ var Condition = /** @class */ (function () {
|
|
|
16578
16620
|
|
|
16579
16621
|
/***/ }),
|
|
16580
16622
|
/* 51 */
|
|
16581
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
16582
|
-
|
|
16583
|
-
"use strict";
|
|
16584
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AttributeExpressionRenderer; });
|
|
16585
|
-
/* harmony import */ var _easydata_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
16586
|
-
/* harmony import */ var _easyquery_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
|
|
16587
|
-
/* harmony import */ var _easydata_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
|
|
16588
|
-
/* harmony import */ var _list_expression_renderer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(25);
|
|
16589
|
-
/* harmony import */ var _utils_browser_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3);
|
|
16590
|
-
/* harmony import */ var _types_qp_editable_part__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(10);
|
|
16591
|
-
var __extends = (undefined && undefined.__extends) || (function () {
|
|
16592
|
-
var extendStatics = function (d, b) {
|
|
16593
|
-
extendStatics = Object.setPrototypeOf ||
|
|
16594
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
16595
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
16596
|
-
return extendStatics(d, b);
|
|
16597
|
-
};
|
|
16598
|
-
return function (d, b) {
|
|
16599
|
-
extendStatics(d, b);
|
|
16600
|
-
function __() { this.constructor = d; }
|
|
16601
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16602
|
-
};
|
|
16603
|
-
})();
|
|
16604
|
-
|
|
16605
|
-
|
|
16606
|
-
|
|
16607
|
-
|
|
16608
|
-
|
|
16609
|
-
|
|
16610
|
-
var AttributeExpressionRenderer = /** @class */ (function (_super) {
|
|
16611
|
-
__extends(AttributeExpressionRenderer, _super);
|
|
16612
|
-
function AttributeExpressionRenderer(panel, expression, entitiesMenu, slot) {
|
|
16613
|
-
var _this = _super.call(this, panel, expression, null, slot) || this;
|
|
16614
|
-
_this.menu = entitiesMenu;
|
|
16615
|
-
return _this;
|
|
16616
|
-
}
|
|
16617
|
-
AttributeExpressionRenderer.prototype.renderEditor = function () {
|
|
16618
|
-
//create menu
|
|
16619
|
-
};
|
|
16620
|
-
AttributeExpressionRenderer.prototype.getLabelText = function () {
|
|
16621
|
-
var model = this.panel.getContext().getModel();
|
|
16622
|
-
var attrId = this.expression.value;
|
|
16623
|
-
var attrObj = attrId ? model.getAttributeByIdSafe(attrId) : null;
|
|
16624
|
-
var attrFormat = this.panel.options.attrElementFormat;
|
|
16625
|
-
return attrObj ? model.getAttributeText(attrObj, attrFormat) : this.getEmptyText();
|
|
16626
|
-
};
|
|
16627
|
-
AttributeExpressionRenderer.prototype.setValue = function (value, silent) {
|
|
16628
|
-
if (silent === void 0) { silent = false; }
|
|
16629
|
-
silent = silent && value !== this.expression.value;
|
|
16630
|
-
var result = _super.prototype.setValue.call(this, value, true);
|
|
16631
|
-
if (!silent) {
|
|
16632
|
-
this.expression.getParent().fireChangedEvent(_easyquery_core__WEBPACK_IMPORTED_MODULE_1__["ConditionPart"].EntityAttr | _easyquery_core__WEBPACK_IMPORTED_MODULE_1__["ConditionPart"].Operator);
|
|
16633
|
-
}
|
|
16634
|
-
return result;
|
|
16635
|
-
};
|
|
16636
|
-
AttributeExpressionRenderer.prototype.isEditable = function () {
|
|
16637
|
-
return !this.isReadOnly()
|
|
16638
|
-
&& ((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);
|
|
16639
|
-
};
|
|
16640
|
-
AttributeExpressionRenderer.prototype.getEmptyText = function () {
|
|
16641
|
-
return this.panel.options.emptyTextAttribute || _easydata_core__WEBPACK_IMPORTED_MODULE_0__["i18n"].getText('MsgEmptyAttrValue');
|
|
16642
|
-
};
|
|
16643
|
-
AttributeExpressionRenderer.prototype.getClassesToAdd = function () {
|
|
16644
|
-
return this.cssPrefix + "-condelement " + this.cssPrefix + "-attrelement";
|
|
16645
|
-
};
|
|
16646
|
-
AttributeExpressionRenderer.prototype.adjustWidth = function () {
|
|
16647
|
-
if (_utils_browser_utils__WEBPACK_IMPORTED_MODULE_4__[/* browserUtils */ "a"].isMobileMode()) {
|
|
16648
|
-
return;
|
|
16649
|
-
}
|
|
16650
|
-
var elWidth = this.element.clientWidth;
|
|
16651
|
-
var parWidth = this.element.parentElement.clientWidth;
|
|
16652
|
-
if (elWidth > parWidth / 2) {
|
|
16653
|
-
Object(_easydata_ui__WEBPACK_IMPORTED_MODULE_2__["domel"])(this.element)
|
|
16654
|
-
.addClass(this.cssPrefix + "-attrelement-wide");
|
|
16655
|
-
}
|
|
16656
|
-
};
|
|
16657
|
-
return AttributeExpressionRenderer;
|
|
16658
|
-
}(_list_expression_renderer__WEBPACK_IMPORTED_MODULE_3__[/* ListExpressionRenderer */ "b"]));
|
|
16659
|
-
|
|
16660
|
-
//# sourceMappingURL=attribute_expression_renderer.js.map
|
|
16661
|
-
|
|
16662
|
-
/***/ }),
|
|
16663
|
-
/* 52 */
|
|
16664
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
16665
|
-
|
|
16666
|
-
"use strict";
|
|
16667
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return GoogleChartWidget; });
|
|
16668
|
-
/* harmony import */ var _easydata_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
16669
|
-
/* harmony import */ var _chart_widget__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(47);
|
|
16670
|
-
/* harmony import */ var _chart_type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5);
|
|
16671
|
-
var __extends = (undefined && undefined.__extends) || (function () {
|
|
16672
|
-
var extendStatics = function (d, b) {
|
|
16673
|
-
extendStatics = Object.setPrototypeOf ||
|
|
16674
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
16675
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
16676
|
-
return extendStatics(d, b);
|
|
16677
|
-
};
|
|
16678
|
-
return function (d, b) {
|
|
16679
|
-
extendStatics(d, b);
|
|
16680
|
-
function __() { this.constructor = d; }
|
|
16681
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16682
|
-
};
|
|
16683
|
-
})();
|
|
16684
|
-
|
|
16685
|
-
|
|
16686
|
-
|
|
16687
|
-
var GoogleChartWidget = /** @class */ (function (_super) {
|
|
16688
|
-
__extends(GoogleChartWidget, _super);
|
|
16689
|
-
/**
|
|
16690
|
-
* The default constructor.
|
|
16691
|
-
* @param slot The html element.
|
|
16692
|
-
* @param provider The provider.
|
|
16693
|
-
*/
|
|
16694
|
-
function GoogleChartWidget(slot) {
|
|
16695
|
-
var _this = _super.call(this, slot) || this;
|
|
16696
|
-
_this.hasChartTypes = [
|
|
16697
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Column,
|
|
16698
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Bar,
|
|
16699
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Histogram,
|
|
16700
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Combo,
|
|
16701
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Area,
|
|
16702
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Line,
|
|
16703
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].SteppedLine,
|
|
16704
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Pie,
|
|
16705
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Doughnut
|
|
16706
|
-
];
|
|
16707
|
-
_this.options.legend = {
|
|
16708
|
-
show: true,
|
|
16709
|
-
position: 'right'
|
|
16710
|
-
};
|
|
16711
|
-
return _this;
|
|
16712
|
-
}
|
|
16713
|
-
GoogleChartWidget.prototype.getWidgetType = function () {
|
|
16714
|
-
return 'chartGoogle';
|
|
16715
|
-
};
|
|
16716
|
-
GoogleChartWidget.prototype.canDraw = function () {
|
|
16717
|
-
return GoogleChartWidget.hasGoogleCharts();
|
|
16718
|
-
};
|
|
16719
|
-
GoogleChartWidget.hasGoogleCharts = function () {
|
|
16720
|
-
return typeof google !== 'undefined' && typeof google.charts !== 'undefined';
|
|
16721
|
-
};
|
|
16722
|
-
GoogleChartWidget.prototype.initChart = function () {
|
|
16723
|
-
if (GoogleChartWidget.hasGoogleCharts() && this.labelColumn >= 0
|
|
16724
|
-
&& this.dataColumns && this.dataColumns.length > 0) {
|
|
16725
|
-
this.googleDataView =
|
|
16726
|
-
new google.visualization.DataView(this.convertToGoogleFormat());
|
|
16727
|
-
this.updateChartColumns();
|
|
16728
|
-
}
|
|
16729
|
-
};
|
|
16730
|
-
GoogleChartWidget.prototype.convertToGoogleType = function (type) {
|
|
16731
|
-
switch (type) {
|
|
16732
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Date:
|
|
16733
|
-
return "date";
|
|
16734
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].DateTime:
|
|
16735
|
-
return "datetime";
|
|
16736
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Time:
|
|
16737
|
-
return "timeofday";
|
|
16738
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Byte:
|
|
16739
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Word:
|
|
16740
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Int32:
|
|
16741
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Int64:
|
|
16742
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Currency:
|
|
16743
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Float:
|
|
16744
|
-
return "number";
|
|
16745
|
-
default:
|
|
16746
|
-
return "string";
|
|
16747
|
-
}
|
|
16748
|
-
};
|
|
16749
|
-
GoogleChartWidget.prototype.convertToGoogleValue = function (value, type) {
|
|
16750
|
-
switch (type) {
|
|
16751
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Bool:
|
|
16752
|
-
return value.toString();
|
|
16753
|
-
default:
|
|
16754
|
-
return value;
|
|
16755
|
-
}
|
|
16756
|
-
};
|
|
16757
|
-
GoogleChartWidget.prototype.convertToGoogleFormat = function () {
|
|
16758
|
-
var googleTable = new google.visualization.DataTable();
|
|
16759
|
-
var columns = this.dataTable.columns;
|
|
16760
|
-
for (var i = 0; i < columns.count; i++) {
|
|
16761
|
-
var column = columns.get(i);
|
|
16762
|
-
googleTable.addColumn(this.convertToGoogleType(column.type), column.label, column.id);
|
|
16763
|
-
}
|
|
16764
|
-
var rows = this.dataTable.getCachedRows();
|
|
16765
|
-
googleTable.addRows(rows.length);
|
|
16766
|
-
for (var i = 0; i < rows.length; i++) {
|
|
16767
|
-
var row = rows[i];
|
|
16768
|
-
for (var j = 0; j < columns.count; j++) {
|
|
16769
|
-
googleTable.setCell(i, j, this.convertToGoogleValue(row.getValue(j), columns.get(j).type));
|
|
16770
|
-
}
|
|
16771
|
-
}
|
|
16772
|
-
return googleTable;
|
|
16773
|
-
};
|
|
16774
|
-
GoogleChartWidget.prototype.drawCore = function () {
|
|
16775
|
-
if (this.googleDataView != null) {
|
|
16776
|
-
this.options.legend = this.options.legend || {};
|
|
16777
|
-
var chartOptions = {
|
|
16778
|
-
width: "100%",
|
|
16779
|
-
height: "100%",
|
|
16780
|
-
chartArea: { width: this.getChartAreaWidth }
|
|
16781
|
-
};
|
|
16782
|
-
if (this.chartType == _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Doughnut) {
|
|
16783
|
-
chartOptions.pieHole = 0.4;
|
|
16784
|
-
}
|
|
16785
|
-
if (!this.options.legend.show) {
|
|
16786
|
-
chartOptions.legend = 'none';
|
|
16787
|
-
}
|
|
16788
|
-
else {
|
|
16789
|
-
chartOptions.legend = { position: this.options.legend.position };
|
|
16790
|
-
}
|
|
16791
|
-
var chart = this.createChart(this.chartDiv);
|
|
16792
|
-
chart.draw(this.googleDataView, chartOptions);
|
|
16793
|
-
}
|
|
16794
|
-
};
|
|
16795
|
-
GoogleChartWidget.prototype.getChartAreaWidth = function (chartType) {
|
|
16796
|
-
if (chartType == _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Pie) {
|
|
16797
|
-
return "100%";
|
|
16798
|
-
}
|
|
16799
|
-
else {
|
|
16800
|
-
return "50%";
|
|
16801
|
-
}
|
|
16802
|
-
};
|
|
16803
|
-
GoogleChartWidget.prototype.updateChartColumns = function () {
|
|
16804
|
-
if (this.googleDataView) {
|
|
16805
|
-
this.googleDataView.setColumns([].concat(this.labelColumn).concat(this.dataColumns));
|
|
16806
|
-
}
|
|
16807
|
-
};
|
|
16808
|
-
GoogleChartWidget.prototype.createChart = function (slot) {
|
|
16809
|
-
switch (this.chartType) {
|
|
16810
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Column:
|
|
16811
|
-
return new google.visualization.ColumnChart(slot);
|
|
16812
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Histogram:
|
|
16813
|
-
return new google.visualization.Histogram(slot);
|
|
16814
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Bar:
|
|
16815
|
-
return new google.visualization.BarChart(slot);
|
|
16816
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Combo:
|
|
16817
|
-
return new google.visualization.ComboChart(slot);
|
|
16818
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Area:
|
|
16819
|
-
return new google.visualization.AreaChart(slot);
|
|
16820
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Line:
|
|
16821
|
-
return new google.visualization.LineChart(slot);
|
|
16822
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].SteppedLine:
|
|
16823
|
-
return new google.visualization.SteppedAreaChart(slot);
|
|
16824
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Pie:
|
|
16825
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Doughnut:
|
|
16826
|
-
return new google.visualization.PieChart(slot);
|
|
16827
|
-
default:
|
|
16828
|
-
return new google.visualization.PieChart(slot);
|
|
16829
|
-
}
|
|
16830
|
-
};
|
|
16831
|
-
return GoogleChartWidget;
|
|
16832
|
-
}(_chart_widget__WEBPACK_IMPORTED_MODULE_1__[/* ChartWidget */ "a"]));
|
|
16833
|
-
|
|
16834
|
-
//# sourceMappingURL=chart_widget_google.js.map
|
|
16835
|
-
|
|
16836
|
-
/***/ }),
|
|
16837
|
-
/* 53 */
|
|
16838
16623
|
/***/ (function(module, exports, __webpack_require__) {
|
|
16839
16624
|
|
|
16840
16625
|
/* WEBPACK VAR INJECTION */(function(process, global) {/*!
|
|
@@ -18013,6 +17798,263 @@ return Promise$1;
|
|
|
18013
17798
|
|
|
18014
17799
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(97), __webpack_require__(98)))
|
|
18015
17800
|
|
|
17801
|
+
/***/ }),
|
|
17802
|
+
/* 52 */
|
|
17803
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
17804
|
+
|
|
17805
|
+
"use strict";
|
|
17806
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AttributeExpressionRenderer; });
|
|
17807
|
+
/* harmony import */ var _easydata_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
17808
|
+
/* harmony import */ var _easyquery_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
|
|
17809
|
+
/* harmony import */ var _easydata_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
|
|
17810
|
+
/* harmony import */ var _list_expression_renderer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(25);
|
|
17811
|
+
/* harmony import */ var _utils_browser_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3);
|
|
17812
|
+
/* harmony import */ var _types_qp_editable_part__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(10);
|
|
17813
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
17814
|
+
var extendStatics = function (d, b) {
|
|
17815
|
+
extendStatics = Object.setPrototypeOf ||
|
|
17816
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
17817
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
17818
|
+
return extendStatics(d, b);
|
|
17819
|
+
};
|
|
17820
|
+
return function (d, b) {
|
|
17821
|
+
extendStatics(d, b);
|
|
17822
|
+
function __() { this.constructor = d; }
|
|
17823
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
17824
|
+
};
|
|
17825
|
+
})();
|
|
17826
|
+
|
|
17827
|
+
|
|
17828
|
+
|
|
17829
|
+
|
|
17830
|
+
|
|
17831
|
+
|
|
17832
|
+
var AttributeExpressionRenderer = /** @class */ (function (_super) {
|
|
17833
|
+
__extends(AttributeExpressionRenderer, _super);
|
|
17834
|
+
function AttributeExpressionRenderer(panel, expression, entitiesMenu, slot) {
|
|
17835
|
+
var _this = _super.call(this, panel, expression, null, slot) || this;
|
|
17836
|
+
_this.menu = entitiesMenu;
|
|
17837
|
+
return _this;
|
|
17838
|
+
}
|
|
17839
|
+
AttributeExpressionRenderer.prototype.renderEditor = function () {
|
|
17840
|
+
//create menu
|
|
17841
|
+
};
|
|
17842
|
+
AttributeExpressionRenderer.prototype.getLabelText = function () {
|
|
17843
|
+
var model = this.panel.getContext().getModel();
|
|
17844
|
+
var attrId = this.expression.value;
|
|
17845
|
+
var attrObj = attrId ? model.getAttributeByIdSafe(attrId) : null;
|
|
17846
|
+
var attrFormat = this.panel.options.attrElementFormat;
|
|
17847
|
+
return attrObj ? model.getAttributeText(attrObj, attrFormat) : this.getEmptyText();
|
|
17848
|
+
};
|
|
17849
|
+
AttributeExpressionRenderer.prototype.setValue = function (value, silent) {
|
|
17850
|
+
if (silent === void 0) { silent = false; }
|
|
17851
|
+
silent = silent && value !== this.expression.value;
|
|
17852
|
+
var result = _super.prototype.setValue.call(this, value, true);
|
|
17853
|
+
if (!silent) {
|
|
17854
|
+
this.expression.getParent().fireChangedEvent(_easyquery_core__WEBPACK_IMPORTED_MODULE_1__["ConditionPart"].EntityAttr | _easyquery_core__WEBPACK_IMPORTED_MODULE_1__["ConditionPart"].Operator);
|
|
17855
|
+
}
|
|
17856
|
+
return result;
|
|
17857
|
+
};
|
|
17858
|
+
AttributeExpressionRenderer.prototype.isEditable = function () {
|
|
17859
|
+
return !this.isReadOnly()
|
|
17860
|
+
&& ((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);
|
|
17861
|
+
};
|
|
17862
|
+
AttributeExpressionRenderer.prototype.getEmptyText = function () {
|
|
17863
|
+
return this.panel.options.emptyTextAttribute || _easydata_core__WEBPACK_IMPORTED_MODULE_0__["i18n"].getText('MsgEmptyAttrValue');
|
|
17864
|
+
};
|
|
17865
|
+
AttributeExpressionRenderer.prototype.getClassesToAdd = function () {
|
|
17866
|
+
return this.cssPrefix + "-condelement " + this.cssPrefix + "-attrelement";
|
|
17867
|
+
};
|
|
17868
|
+
AttributeExpressionRenderer.prototype.adjustWidth = function () {
|
|
17869
|
+
if (_utils_browser_utils__WEBPACK_IMPORTED_MODULE_4__[/* browserUtils */ "a"].isMobileMode()) {
|
|
17870
|
+
return;
|
|
17871
|
+
}
|
|
17872
|
+
var elWidth = this.element.clientWidth;
|
|
17873
|
+
var parWidth = this.element.parentElement.clientWidth;
|
|
17874
|
+
if (elWidth > parWidth / 2) {
|
|
17875
|
+
Object(_easydata_ui__WEBPACK_IMPORTED_MODULE_2__["domel"])(this.element)
|
|
17876
|
+
.addClass(this.cssPrefix + "-attrelement-wide");
|
|
17877
|
+
}
|
|
17878
|
+
};
|
|
17879
|
+
return AttributeExpressionRenderer;
|
|
17880
|
+
}(_list_expression_renderer__WEBPACK_IMPORTED_MODULE_3__[/* ListExpressionRenderer */ "b"]));
|
|
17881
|
+
|
|
17882
|
+
//# sourceMappingURL=attribute_expression_renderer.js.map
|
|
17883
|
+
|
|
17884
|
+
/***/ }),
|
|
17885
|
+
/* 53 */
|
|
17886
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
17887
|
+
|
|
17888
|
+
"use strict";
|
|
17889
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return GoogleChartWidget; });
|
|
17890
|
+
/* harmony import */ var _easydata_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
17891
|
+
/* harmony import */ var _chart_widget__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(47);
|
|
17892
|
+
/* harmony import */ var _chart_type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5);
|
|
17893
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
17894
|
+
var extendStatics = function (d, b) {
|
|
17895
|
+
extendStatics = Object.setPrototypeOf ||
|
|
17896
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
17897
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
17898
|
+
return extendStatics(d, b);
|
|
17899
|
+
};
|
|
17900
|
+
return function (d, b) {
|
|
17901
|
+
extendStatics(d, b);
|
|
17902
|
+
function __() { this.constructor = d; }
|
|
17903
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
17904
|
+
};
|
|
17905
|
+
})();
|
|
17906
|
+
|
|
17907
|
+
|
|
17908
|
+
|
|
17909
|
+
var GoogleChartWidget = /** @class */ (function (_super) {
|
|
17910
|
+
__extends(GoogleChartWidget, _super);
|
|
17911
|
+
/**
|
|
17912
|
+
* The default constructor.
|
|
17913
|
+
* @param slot The html element.
|
|
17914
|
+
* @param provider The provider.
|
|
17915
|
+
*/
|
|
17916
|
+
function GoogleChartWidget(slot) {
|
|
17917
|
+
var _this = _super.call(this, slot) || this;
|
|
17918
|
+
_this.hasChartTypes = [
|
|
17919
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Column,
|
|
17920
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Bar,
|
|
17921
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Histogram,
|
|
17922
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Combo,
|
|
17923
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Area,
|
|
17924
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Line,
|
|
17925
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].SteppedLine,
|
|
17926
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Pie,
|
|
17927
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Doughnut
|
|
17928
|
+
];
|
|
17929
|
+
_this.options.legend = {
|
|
17930
|
+
show: true,
|
|
17931
|
+
position: 'right'
|
|
17932
|
+
};
|
|
17933
|
+
return _this;
|
|
17934
|
+
}
|
|
17935
|
+
GoogleChartWidget.prototype.getWidgetType = function () {
|
|
17936
|
+
return 'chartGoogle';
|
|
17937
|
+
};
|
|
17938
|
+
GoogleChartWidget.prototype.canDraw = function () {
|
|
17939
|
+
return GoogleChartWidget.hasGoogleCharts();
|
|
17940
|
+
};
|
|
17941
|
+
GoogleChartWidget.hasGoogleCharts = function () {
|
|
17942
|
+
return typeof google !== 'undefined' && typeof google.charts !== 'undefined';
|
|
17943
|
+
};
|
|
17944
|
+
GoogleChartWidget.prototype.initChart = function () {
|
|
17945
|
+
if (GoogleChartWidget.hasGoogleCharts() && this.labelColumn >= 0
|
|
17946
|
+
&& this.dataColumns && this.dataColumns.length > 0) {
|
|
17947
|
+
this.googleDataView =
|
|
17948
|
+
new google.visualization.DataView(this.convertToGoogleFormat());
|
|
17949
|
+
this.updateChartColumns();
|
|
17950
|
+
}
|
|
17951
|
+
};
|
|
17952
|
+
GoogleChartWidget.prototype.convertToGoogleType = function (type) {
|
|
17953
|
+
switch (type) {
|
|
17954
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Date:
|
|
17955
|
+
return "date";
|
|
17956
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].DateTime:
|
|
17957
|
+
return "datetime";
|
|
17958
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Time:
|
|
17959
|
+
return "timeofday";
|
|
17960
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Byte:
|
|
17961
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Word:
|
|
17962
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Int32:
|
|
17963
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Int64:
|
|
17964
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Currency:
|
|
17965
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Float:
|
|
17966
|
+
return "number";
|
|
17967
|
+
default:
|
|
17968
|
+
return "string";
|
|
17969
|
+
}
|
|
17970
|
+
};
|
|
17971
|
+
GoogleChartWidget.prototype.convertToGoogleValue = function (value, type) {
|
|
17972
|
+
switch (type) {
|
|
17973
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Bool:
|
|
17974
|
+
return value.toString();
|
|
17975
|
+
default:
|
|
17976
|
+
return value;
|
|
17977
|
+
}
|
|
17978
|
+
};
|
|
17979
|
+
GoogleChartWidget.prototype.convertToGoogleFormat = function () {
|
|
17980
|
+
var googleTable = new google.visualization.DataTable();
|
|
17981
|
+
var columns = this.dataTable.columns;
|
|
17982
|
+
for (var i = 0; i < columns.count; i++) {
|
|
17983
|
+
var column = columns.get(i);
|
|
17984
|
+
googleTable.addColumn(this.convertToGoogleType(column.type), column.label, column.id);
|
|
17985
|
+
}
|
|
17986
|
+
var rows = this.dataTable.getCachedRows();
|
|
17987
|
+
googleTable.addRows(rows.length);
|
|
17988
|
+
for (var i = 0; i < rows.length; i++) {
|
|
17989
|
+
var row = rows[i];
|
|
17990
|
+
for (var j = 0; j < columns.count; j++) {
|
|
17991
|
+
googleTable.setCell(i, j, this.convertToGoogleValue(row.getValue(j), columns.get(j).type));
|
|
17992
|
+
}
|
|
17993
|
+
}
|
|
17994
|
+
return googleTable;
|
|
17995
|
+
};
|
|
17996
|
+
GoogleChartWidget.prototype.drawCore = function () {
|
|
17997
|
+
if (this.googleDataView != null) {
|
|
17998
|
+
this.options.legend = this.options.legend || {};
|
|
17999
|
+
var chartOptions = {
|
|
18000
|
+
width: "100%",
|
|
18001
|
+
height: "100%",
|
|
18002
|
+
chartArea: { width: this.getChartAreaWidth }
|
|
18003
|
+
};
|
|
18004
|
+
if (this.chartType == _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Doughnut) {
|
|
18005
|
+
chartOptions.pieHole = 0.4;
|
|
18006
|
+
}
|
|
18007
|
+
if (!this.options.legend.show) {
|
|
18008
|
+
chartOptions.legend = 'none';
|
|
18009
|
+
}
|
|
18010
|
+
else {
|
|
18011
|
+
chartOptions.legend = { position: this.options.legend.position };
|
|
18012
|
+
}
|
|
18013
|
+
var chart = this.createChart(this.chartDiv);
|
|
18014
|
+
chart.draw(this.googleDataView, chartOptions);
|
|
18015
|
+
}
|
|
18016
|
+
};
|
|
18017
|
+
GoogleChartWidget.prototype.getChartAreaWidth = function (chartType) {
|
|
18018
|
+
if (chartType == _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Pie) {
|
|
18019
|
+
return "100%";
|
|
18020
|
+
}
|
|
18021
|
+
else {
|
|
18022
|
+
return "50%";
|
|
18023
|
+
}
|
|
18024
|
+
};
|
|
18025
|
+
GoogleChartWidget.prototype.updateChartColumns = function () {
|
|
18026
|
+
if (this.googleDataView) {
|
|
18027
|
+
this.googleDataView.setColumns([].concat(this.labelColumn).concat(this.dataColumns));
|
|
18028
|
+
}
|
|
18029
|
+
};
|
|
18030
|
+
GoogleChartWidget.prototype.createChart = function (slot) {
|
|
18031
|
+
switch (this.chartType) {
|
|
18032
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Column:
|
|
18033
|
+
return new google.visualization.ColumnChart(slot);
|
|
18034
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Histogram:
|
|
18035
|
+
return new google.visualization.Histogram(slot);
|
|
18036
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Bar:
|
|
18037
|
+
return new google.visualization.BarChart(slot);
|
|
18038
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Combo:
|
|
18039
|
+
return new google.visualization.ComboChart(slot);
|
|
18040
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Area:
|
|
18041
|
+
return new google.visualization.AreaChart(slot);
|
|
18042
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Line:
|
|
18043
|
+
return new google.visualization.LineChart(slot);
|
|
18044
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].SteppedLine:
|
|
18045
|
+
return new google.visualization.SteppedAreaChart(slot);
|
|
18046
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Pie:
|
|
18047
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Doughnut:
|
|
18048
|
+
return new google.visualization.PieChart(slot);
|
|
18049
|
+
default:
|
|
18050
|
+
return new google.visualization.PieChart(slot);
|
|
18051
|
+
}
|
|
18052
|
+
};
|
|
18053
|
+
return GoogleChartWidget;
|
|
18054
|
+
}(_chart_widget__WEBPACK_IMPORTED_MODULE_1__[/* ChartWidget */ "a"]));
|
|
18055
|
+
|
|
18056
|
+
//# sourceMappingURL=chart_widget_google.js.map
|
|
18057
|
+
|
|
18016
18058
|
/***/ }),
|
|
18017
18059
|
/* 54 */
|
|
18018
18060
|
/***/ (function(module, exports, __webpack_require__) {
|
|
@@ -19191,7 +19233,7 @@ return Promise$1;
|
|
|
19191
19233
|
|
|
19192
19234
|
//# sourceMappingURL=es6-promise.map
|
|
19193
19235
|
|
|
19194
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
19236
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(119), __webpack_require__(120)))
|
|
19195
19237
|
|
|
19196
19238
|
/***/ }),
|
|
19197
19239
|
/* 55 */
|
|
@@ -19741,7 +19783,7 @@ var BrowserQueryStorage = /** @class */ (function () {
|
|
|
19741
19783
|
}());
|
|
19742
19784
|
|
|
19743
19785
|
//# sourceMappingURL=query_storage.js.map
|
|
19744
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
19786
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(51)))
|
|
19745
19787
|
|
|
19746
19788
|
/***/ }),
|
|
19747
19789
|
/* 62 */
|
|
@@ -19782,7 +19824,7 @@ var EqModelLoader = /** @class */ (function () {
|
|
|
19782
19824
|
}());
|
|
19783
19825
|
|
|
19784
19826
|
//# sourceMappingURL=model_loader.js.map
|
|
19785
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
19827
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(51)))
|
|
19786
19828
|
|
|
19787
19829
|
/***/ }),
|
|
19788
19830
|
/* 63 */
|
|
@@ -19900,7 +19942,7 @@ var DefaultAggregatesCalculator = /** @class */ (function () {
|
|
|
19900
19942
|
}());
|
|
19901
19943
|
|
|
19902
19944
|
//# sourceMappingURL=eq_aggr_container.js.map
|
|
19903
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
19945
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(51)))
|
|
19904
19946
|
|
|
19905
19947
|
/***/ }),
|
|
19906
19948
|
/* 64 */
|
|
@@ -19959,7 +20001,7 @@ var EasyQueryDataLoader = /** @class */ (function () {
|
|
|
19959
20001
|
}());
|
|
19960
20002
|
|
|
19961
20003
|
//# sourceMappingURL=eq_data_loader.js.map
|
|
19962
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
20004
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(51)))
|
|
19963
20005
|
|
|
19964
20006
|
/***/ }),
|
|
19965
20007
|
/* 65 */
|
|
@@ -21301,7 +21343,7 @@ var DefaultDialogSet = /** @class */ (function () {
|
|
|
21301
21343
|
}());
|
|
21302
21344
|
|
|
21303
21345
|
//# sourceMappingURL=default_dialog_service.js.map
|
|
21304
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
21346
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(105)))
|
|
21305
21347
|
|
|
21306
21348
|
/***/ }),
|
|
21307
21349
|
/* 69 */
|
|
@@ -23154,7 +23196,6 @@ var AggrFuncColumnRendererCB = /** @class */ (function (_super) {
|
|
|
23154
23196
|
.getAttributeByIdSafe(this.column.expr.args[0].value);
|
|
23155
23197
|
};
|
|
23156
23198
|
AggrFuncColumnRendererCB.prototype.getDefaultCaption = function () {
|
|
23157
|
-
console.log('Calling getDefaultCaption() AGGR');
|
|
23158
23199
|
return this.getDefaultTitleText(this.baseAttr) + ' '
|
|
23159
23200
|
+ this.bar.getContext().getModel().getAggrFunctionCaption(this.column.expr.func);
|
|
23160
23201
|
};
|
|
@@ -23504,7 +23545,6 @@ var ColumnRendererCB = /** @class */ (function () {
|
|
|
23504
23545
|
.toDOM();
|
|
23505
23546
|
};
|
|
23506
23547
|
ColumnRendererCB.prototype.getDefaultCaption = function () {
|
|
23507
|
-
console.log('Calling getDefaultCaption() BASE');
|
|
23508
23548
|
return this.getDefaultTitleText(this.baseAttr);
|
|
23509
23549
|
};
|
|
23510
23550
|
ColumnRendererCB.prototype.getDefaultTitleText = function (attr) {
|
|
@@ -23807,7 +23847,7 @@ var TextRenderer = /** @class */ (function () {
|
|
|
23807
23847
|
/* harmony import */ var _easydata_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
23808
23848
|
/* harmony import */ var _easyquery_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
|
|
23809
23849
|
/* harmony import */ var _easydata_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
|
|
23810
|
-
/* harmony import */ var _condition_renderer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
23850
|
+
/* harmony import */ var _condition_renderer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(35);
|
|
23811
23851
|
/* harmony import */ var _utils_browser_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3);
|
|
23812
23852
|
/* harmony import */ var _utils_dropdown__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77);
|
|
23813
23853
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
@@ -25347,7 +25387,7 @@ var ProcessWidget = /** @class */ (function (_super) {
|
|
|
25347
25387
|
/* harmony import */ var _types_facet_type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(13);
|
|
25348
25388
|
/* harmony import */ var _result_facet__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(31);
|
|
25349
25389
|
/* harmony import */ var _widgets_charts_chart_widget_chartjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(46);
|
|
25350
|
-
/* harmony import */ var _widgets_charts_chart_widget_google__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
25390
|
+
/* harmony import */ var _widgets_charts_chart_widget_google__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(53);
|
|
25351
25391
|
/* harmony import */ var _utils_browser_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(3);
|
|
25352
25392
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
25353
25393
|
var extendStatics = function (d, b) {
|
|
@@ -25621,6 +25661,12 @@ var AggrFunc;
|
|
|
25621
25661
|
AggrFunc["Max"] = "MAX";
|
|
25622
25662
|
AggrFunc["Count"] = "COUNT";
|
|
25623
25663
|
})(AggrFunc || (AggrFunc = {}));
|
|
25664
|
+
var FormFieldType;
|
|
25665
|
+
(function (FormFieldType) {
|
|
25666
|
+
FormFieldType[FormFieldType["ColumnField"] = 0] = "ColumnField";
|
|
25667
|
+
FormFieldType[FormFieldType["RowField"] = 1] = "RowField";
|
|
25668
|
+
FormFieldType[FormFieldType["CellData"] = 2] = "CellData";
|
|
25669
|
+
})(FormFieldType || (FormFieldType = {}));
|
|
25624
25670
|
var DFMT_REGEX = /{0:(.*?)}/g;
|
|
25625
25671
|
var PivotTableFacet = /** @class */ (function (_super) {
|
|
25626
25672
|
__extends(PivotTableFacet, _super);
|
|
@@ -25634,21 +25680,25 @@ var PivotTableFacet = /** @class */ (function (_super) {
|
|
|
25634
25680
|
PivotTableFacet.prototype.init = function (slot) {
|
|
25635
25681
|
var _this = this;
|
|
25636
25682
|
_super.prototype.init.call(this, slot);
|
|
25683
|
+
this.options.maxRowCount = this.options.maxRowCount || 500;
|
|
25684
|
+
this.options.viewportRowsCount = this.options.viewportRowsCount || 50;
|
|
25637
25685
|
this.grid = new _easydata_ui__WEBPACK_IMPORTED_MODULE_0__["EasyGrid"]({
|
|
25638
25686
|
slot: this.contentDiv,
|
|
25639
25687
|
dataTable: this.pivotTable,
|
|
25640
25688
|
paging: {
|
|
25641
|
-
enabled: false
|
|
25689
|
+
enabled: false,
|
|
25690
|
+
pageSize: this.options.maxRowCount
|
|
25642
25691
|
},
|
|
25692
|
+
viewportRowsCount: this.options.viewportRowsCount,
|
|
25643
25693
|
useRowNumeration: false,
|
|
25644
|
-
|
|
25694
|
+
showPlusButton: false,
|
|
25645
25695
|
allowDragDrop: false,
|
|
25646
25696
|
onGetCellRenderer: function (column, defaultRenderer) {
|
|
25647
25697
|
if (column.dataColumn) {
|
|
25648
25698
|
if (column.dataColumn.id == "total") {
|
|
25649
25699
|
return function (value, column, cell, rowEl) {
|
|
25650
25700
|
defaultRenderer(value, column, cell, rowEl);
|
|
25651
|
-
cell.
|
|
25701
|
+
cell.classList.add('pivot-cell-total');
|
|
25652
25702
|
};
|
|
25653
25703
|
}
|
|
25654
25704
|
if (_this.settings.totalsRow) {
|
|
@@ -25705,9 +25755,10 @@ var PivotTableFacet = /** @class */ (function (_super) {
|
|
|
25705
25755
|
}
|
|
25706
25756
|
return csb;
|
|
25707
25757
|
};
|
|
25708
|
-
PivotTableFacet.prototype.createColumnsSelectBuilder = function (allowedTypes, colName) {
|
|
25758
|
+
PivotTableFacet.prototype.createColumnsSelectBuilder = function (allowedTypes, colName, formFieldType) {
|
|
25709
25759
|
var dataTable = this.getContextDataTable();
|
|
25710
25760
|
var csb = Object(_easydata_ui__WEBPACK_IMPORTED_MODULE_0__["domel"])('select');
|
|
25761
|
+
var firstNumericColIndex = null;
|
|
25711
25762
|
var _loop_2 = function (i) {
|
|
25712
25763
|
var column = dataTable.columns.get(i);
|
|
25713
25764
|
var colLabel = column.label;
|
|
@@ -25715,6 +25766,9 @@ var PivotTableFacet = /** @class */ (function (_super) {
|
|
|
25715
25766
|
var colId = column.id;
|
|
25716
25767
|
if (allowedTypes && allowedTypes.indexOf(colType) < 0)
|
|
25717
25768
|
return "continue";
|
|
25769
|
+
if (firstNumericColIndex === null && _easydata_core__WEBPACK_IMPORTED_MODULE_1__["utils"].isNumericType(colType)) {
|
|
25770
|
+
firstNumericColIndex = i;
|
|
25771
|
+
}
|
|
25718
25772
|
csb.addChild('option', function (b) {
|
|
25719
25773
|
b
|
|
25720
25774
|
.attr('value', colId)
|
|
@@ -25736,7 +25790,20 @@ var PivotTableFacet = /** @class */ (function (_super) {
|
|
|
25736
25790
|
}
|
|
25737
25791
|
}
|
|
25738
25792
|
else {
|
|
25739
|
-
|
|
25793
|
+
switch (formFieldType) {
|
|
25794
|
+
case FormFieldType.ColumnField: {
|
|
25795
|
+
csb.toDOM().value = options[0].value;
|
|
25796
|
+
break;
|
|
25797
|
+
}
|
|
25798
|
+
case FormFieldType.RowField: {
|
|
25799
|
+
csb.toDOM().value = options.length > 1 ? options[1].value : options[0].value;
|
|
25800
|
+
break;
|
|
25801
|
+
}
|
|
25802
|
+
case FormFieldType.CellData: {
|
|
25803
|
+
csb.toDOM().value = firstNumericColIndex === null ? options[0].value : options[firstNumericColIndex].value;
|
|
25804
|
+
break;
|
|
25805
|
+
}
|
|
25806
|
+
}
|
|
25740
25807
|
}
|
|
25741
25808
|
}
|
|
25742
25809
|
return csb;
|
|
@@ -25781,7 +25848,7 @@ var PivotTableFacet = /** @class */ (function (_super) {
|
|
|
25781
25848
|
.addChild('div', function (b) { return b
|
|
25782
25849
|
.addClass('kfrm-select')
|
|
25783
25850
|
.attr('name', 'column_field')
|
|
25784
|
-
.addChildElement(_this.createColumnsSelectBuilder(colTypes, settings.colName)
|
|
25851
|
+
.addChildElement(_this.createColumnsSelectBuilder(colTypes, settings.colName, FormFieldType.ColumnField)
|
|
25785
25852
|
.id('pivotTableColFieldSelector')
|
|
25786
25853
|
.toDOM()); })
|
|
25787
25854
|
.addChild('button', function (b) { return b
|
|
@@ -25803,7 +25870,7 @@ var PivotTableFacet = /** @class */ (function (_super) {
|
|
|
25803
25870
|
.addChild('div', function (b) { return b
|
|
25804
25871
|
.addClass('kfrm-select')
|
|
25805
25872
|
.attr('name', 'row_field')
|
|
25806
|
-
.addChildElement(_this.createColumnsSelectBuilder(colTypes, settings.rowName)
|
|
25873
|
+
.addChildElement(_this.createColumnsSelectBuilder(colTypes, settings.rowName, FormFieldType.RowField)
|
|
25807
25874
|
.id('pivotTableRowFieldSelector')
|
|
25808
25875
|
.toDOM()); });
|
|
25809
25876
|
current = getCurrent();
|
|
@@ -25823,7 +25890,7 @@ var PivotTableFacet = /** @class */ (function (_super) {
|
|
|
25823
25890
|
.addChild('div', function (b) { return b
|
|
25824
25891
|
.addClass('kfrm-select')
|
|
25825
25892
|
.attr('name', 'data_column')
|
|
25826
|
-
.addChildElement(_this.createColumnsSelectBuilder(fieldTypes, settings.fieldName)
|
|
25893
|
+
.addChildElement(_this.createColumnsSelectBuilder(fieldTypes, settings.fieldName, FormFieldType.CellData)
|
|
25827
25894
|
.on('change', function (ev) {
|
|
25828
25895
|
var colId = ev.target.value;
|
|
25829
25896
|
_this.validateSelectedField(colId);
|
|
@@ -25909,6 +25976,18 @@ var PivotTableFacet = /** @class */ (function (_super) {
|
|
|
25909
25976
|
PivotTableFacet.prototype.refreshCore = function () {
|
|
25910
25977
|
this.updatePivotData();
|
|
25911
25978
|
if (this.grid) {
|
|
25979
|
+
var dataSize = this.pivotTable.getTotal();
|
|
25980
|
+
var maxRow = this.grid.options.paging.pageSize;
|
|
25981
|
+
if (dataSize > maxRow) {
|
|
25982
|
+
this.contentDiv.classList.remove('pivot-grid-with-totals');
|
|
25983
|
+
this.showErrorMessage(_easydata_core__WEBPACK_IMPORTED_MODULE_1__["i18n"].getText('Facets', 'ErrTooMuchData'));
|
|
25984
|
+
}
|
|
25985
|
+
if (this.options.viewportRowsCount > dataSize) {
|
|
25986
|
+
this.grid.options.viewportRowsCount = dataSize;
|
|
25987
|
+
}
|
|
25988
|
+
else {
|
|
25989
|
+
this.grid.options.viewportRowsCount = this.options.viewportRowsCount;
|
|
25990
|
+
}
|
|
25912
25991
|
this.grid.refresh();
|
|
25913
25992
|
}
|
|
25914
25993
|
};
|
|
@@ -26083,10 +26162,10 @@ var PivotTableFacet = /** @class */ (function (_super) {
|
|
|
26083
26162
|
total_row.push(totalByCol);
|
|
26084
26163
|
}
|
|
26085
26164
|
this.pivotTable.addRow(total_row);
|
|
26086
|
-
this.contentDiv.classList.add('pivot-grid-totals
|
|
26165
|
+
this.contentDiv.classList.add('pivot-grid-with-totals');
|
|
26087
26166
|
}
|
|
26088
26167
|
else {
|
|
26089
|
-
this.contentDiv.classList.remove('pivot-grid-totals
|
|
26168
|
+
this.contentDiv.classList.remove('pivot-grid-with-totals');
|
|
26090
26169
|
}
|
|
26091
26170
|
};
|
|
26092
26171
|
PivotTableFacet.prototype.calcAggrFunc = function (func, options) {
|
|
@@ -26578,7 +26657,7 @@ var AggrSettingsDialog = /** @class */ (function () {
|
|
|
26578
26657
|
var ds = _this.context.getServices().getDialogService();
|
|
26579
26658
|
_this.body = _this.renderBody();
|
|
26580
26659
|
var dlg = ds.open({
|
|
26581
|
-
title: '
|
|
26660
|
+
title: _easyquery_core__WEBPACK_IMPORTED_MODULE_1__["i18n"].getText('AggrSettings', 'AggrDialogTitle'),
|
|
26582
26661
|
body: _this.body,
|
|
26583
26662
|
onSubmit: function () {
|
|
26584
26663
|
if (_this.query.enableAggregation && !_this.renderer.isValid())
|
|
@@ -26639,10 +26718,10 @@ var AggrSettingsDialog = /** @class */ (function () {
|
|
|
26639
26718
|
b.on('change', _this.enableAggrCheckBoxChangeHandler.bind(_this));
|
|
26640
26719
|
})
|
|
26641
26720
|
.addChild('span', function (b) { return b
|
|
26642
|
-
.addClass('slider round'); })
|
|
26721
|
+
.addClass('slider round'); })
|
|
26643
26722
|
.addChild('span', function (b) { return b
|
|
26644
26723
|
.addClass('switch-text')
|
|
26645
|
-
.addText(_easyquery_core__WEBPACK_IMPORTED_MODULE_1__["i18n"].getText('AggrSettings', 'EnableAggrLabel')); }); })
|
|
26724
|
+
.addText(_easyquery_core__WEBPACK_IMPORTED_MODULE_1__["i18n"].getText('AggrSettings', 'EnableAggrLabel')); }); }); })
|
|
26646
26725
|
.addChild('div', function (b) { return b
|
|
26647
26726
|
.id('AggrSettingsComponent'); });
|
|
26648
26727
|
return b.toDOM();
|
|
@@ -26821,10 +26900,10 @@ var AggrSettingsRenderer = /** @class */ (function () {
|
|
|
26821
26900
|
b.on('change', _this.countsCheckboxChangeHandler.bind(_this));
|
|
26822
26901
|
})
|
|
26823
26902
|
.addChild('span', function (b) { return b
|
|
26824
|
-
.addClass('slider round'); })
|
|
26903
|
+
.addClass('slider round'); })
|
|
26825
26904
|
.addChild('span', function (b) { return b
|
|
26826
26905
|
.addClass('switch-text')
|
|
26827
|
-
.addText(_easyquery_core__WEBPACK_IMPORTED_MODULE_3__["i18n"].getText('AggrSettings', 'GroupCountsLabel')); }); })
|
|
26906
|
+
.addText(_easyquery_core__WEBPACK_IMPORTED_MODULE_3__["i18n"].getText('AggrSettings', 'GroupCountsLabel')); }); }); })
|
|
26828
26907
|
.addChild('div', function (b) { return b
|
|
26829
26908
|
.addClass(_this.cssPrefix + "-grandtotals")
|
|
26830
26909
|
.addChild('label', function (b) { return b
|
|
@@ -26837,10 +26916,10 @@ var AggrSettingsRenderer = /** @class */ (function () {
|
|
|
26837
26916
|
b.on('change', _this.grandCheckboxChangeHandler.bind(_this));
|
|
26838
26917
|
})
|
|
26839
26918
|
.addChild('span', function (b) { return b
|
|
26840
|
-
.addClass('slider round'); })
|
|
26919
|
+
.addClass('slider round'); })
|
|
26841
26920
|
.addChild('span', function (b) { return b
|
|
26842
26921
|
.addClass('switch-text')
|
|
26843
|
-
.addText(_easyquery_core__WEBPACK_IMPORTED_MODULE_3__["i18n"].getText('AggrSettings', 'GrandTotalsLabel')); }); });
|
|
26922
|
+
.addText(_easyquery_core__WEBPACK_IMPORTED_MODULE_3__["i18n"].getText('AggrSettings', 'GrandTotalsLabel')); }); }); });
|
|
26844
26923
|
var groups = this.slot.querySelectorAll("." + this.cssPrefix + "-group");
|
|
26845
26924
|
groups.forEach(function (el) {
|
|
26846
26925
|
Object(_easydata_ui__WEBPACK_IMPORTED_MODULE_1__["domel"])(el)
|
|
@@ -28084,6 +28163,9 @@ var result_facets_panel_ResultFacetsPanel = /** @class */ (function (_super) {
|
|
|
28084
28163
|
ResultFacetsPanel.prototype.attachQueryObserver = function () {
|
|
28085
28164
|
var _this = this;
|
|
28086
28165
|
var query = this.getQuery();
|
|
28166
|
+
if (this.queryEventCallbackId) {
|
|
28167
|
+
query.removeChangedCallback(this.queryEventCallbackId);
|
|
28168
|
+
}
|
|
28087
28169
|
this.queryEventCallbackId = query.addChangedCallback(function (event) {
|
|
28088
28170
|
//if something has changed, and that change is related to columns
|
|
28089
28171
|
var edata = event.data;
|
|
@@ -28729,8 +28811,8 @@ module.exports = g;
|
|
|
28729
28811
|
/* WEBPACK VAR INJECTION */(function(Promise) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return HttpResponseError; });
|
|
28730
28812
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return HttpClient; });
|
|
28731
28813
|
/* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11);
|
|
28732
|
-
/* harmony import */ var _http_action_result__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
28733
|
-
/* harmony import */ var _http_method__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
28814
|
+
/* harmony import */ var _http_action_result__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(107);
|
|
28815
|
+
/* harmony import */ var _http_method__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36);
|
|
28734
28816
|
/* harmony import */ var _http_request__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(55);
|
|
28735
28817
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
28736
28818
|
var extendStatics = function (d, b) {
|
|
@@ -30225,6 +30307,7 @@ var EasyDataTable = /** @class */ (function () {
|
|
|
30225
30307
|
this.cachedRows = [];
|
|
30226
30308
|
this.total = 0;
|
|
30227
30309
|
this.needTotal = !this._elasticChunks;
|
|
30310
|
+
this.fireUpdated();
|
|
30228
30311
|
};
|
|
30229
30312
|
EasyDataTable.prototype.createRow = function (dataOrRow) {
|
|
30230
30313
|
var _this = this;
|
|
@@ -30487,13 +30570,40 @@ var GoogleDataConverter = /** @class */ (function () {
|
|
|
30487
30570
|
/* 103 */
|
|
30488
30571
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
30489
30572
|
|
|
30573
|
+
"use strict";
|
|
30574
|
+
/* WEBPACK VAR INJECTION */(function(Promise) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return InMemoryModelStorage; });
|
|
30575
|
+
/* harmony import */ var _easydata_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
30576
|
+
|
|
30577
|
+
var InMemoryModelStorage = /** @class */ (function () {
|
|
30578
|
+
function InMemoryModelStorage(models) {
|
|
30579
|
+
this.models = [];
|
|
30580
|
+
if (models) {
|
|
30581
|
+
_easydata_core__WEBPACK_IMPORTED_MODULE_0__["utils"].assign(this.models, [], models);
|
|
30582
|
+
}
|
|
30583
|
+
}
|
|
30584
|
+
InMemoryModelStorage.prototype.getModels = function () {
|
|
30585
|
+
var _this = this;
|
|
30586
|
+
return new Promise(function (resolve, reject) {
|
|
30587
|
+
resolve(_this.models);
|
|
30588
|
+
});
|
|
30589
|
+
};
|
|
30590
|
+
return InMemoryModelStorage;
|
|
30591
|
+
}());
|
|
30592
|
+
|
|
30593
|
+
//# sourceMappingURL=model_storage.js.map
|
|
30594
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(51)))
|
|
30595
|
+
|
|
30596
|
+
/***/ }),
|
|
30597
|
+
/* 104 */
|
|
30598
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
30599
|
+
|
|
30490
30600
|
"use strict";
|
|
30491
30601
|
/* WEBPACK VAR INJECTION */(function(Promise) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return EasyGrid; });
|
|
30492
30602
|
/* harmony import */ var _easydata_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
30493
|
-
/* harmony import */ var _utils_drag_manager__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
30603
|
+
/* harmony import */ var _utils_drag_manager__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(37);
|
|
30494
30604
|
/* harmony import */ var _utils_dom_elem_builder__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6);
|
|
30495
30605
|
/* harmony import */ var _utils_ui_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(18);
|
|
30496
|
-
/* harmony import */ var _easy_grid_options__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
30606
|
+
/* harmony import */ var _easy_grid_options__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(34);
|
|
30497
30607
|
/* harmony import */ var _easy_grid_columns__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(21);
|
|
30498
30608
|
/* harmony import */ var _easy_grid_cell_renderer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(39);
|
|
30499
30609
|
var __assign = (undefined && undefined.__assign) || function () {
|
|
@@ -30548,7 +30658,7 @@ var EasyGrid = /** @class */ (function () {
|
|
|
30548
30658
|
pageSizeItems: [20, 30, 50, 100, 200]
|
|
30549
30659
|
},
|
|
30550
30660
|
columnWidths: {
|
|
30551
|
-
autoResize: _easy_grid_options__WEBPACK_IMPORTED_MODULE_4__[/* AutoResizeColumns */ "a"].
|
|
30661
|
+
autoResize: _easy_grid_options__WEBPACK_IMPORTED_MODULE_4__[/* AutoResizeColumns */ "a"].Always,
|
|
30552
30662
|
stringColumns: {
|
|
30553
30663
|
min: 100,
|
|
30554
30664
|
max: 500,
|
|
@@ -30576,7 +30686,7 @@ var EasyGrid = /** @class */ (function () {
|
|
|
30576
30686
|
default: 60
|
|
30577
30687
|
}
|
|
30578
30688
|
},
|
|
30579
|
-
|
|
30689
|
+
showPlusButton: false,
|
|
30580
30690
|
viewportRowsCount: null,
|
|
30581
30691
|
showActiveRow: true
|
|
30582
30692
|
};
|
|
@@ -30675,8 +30785,8 @@ var EasyGrid = /** @class */ (function () {
|
|
|
30675
30785
|
if (options.onRowDbClick) {
|
|
30676
30786
|
this.addEventListener('rowDbClick', options.onRowDbClick);
|
|
30677
30787
|
}
|
|
30678
|
-
if (options.
|
|
30679
|
-
this.addEventListener('
|
|
30788
|
+
if (options.onPlusButtonClick) {
|
|
30789
|
+
this.addEventListener('plusButtonClick', options.onPlusButtonClick);
|
|
30680
30790
|
}
|
|
30681
30791
|
if (options.onColumnChanged) {
|
|
30682
30792
|
this.addEventListener('columnChanged', options.onColumnChanged);
|
|
@@ -30762,7 +30872,7 @@ var EasyGrid = /** @class */ (function () {
|
|
|
30762
30872
|
};
|
|
30763
30873
|
EasyGrid.prototype.render = function () {
|
|
30764
30874
|
var _this = this;
|
|
30765
|
-
if (!this.hasData() && !this.options.
|
|
30875
|
+
if (!this.hasData() && !this.options.showPlusButton)
|
|
30766
30876
|
return;
|
|
30767
30877
|
this.containerInitialHeight = this.slot.clientHeight;
|
|
30768
30878
|
this.rootDiv = document.createElement('div');
|
|
@@ -30786,9 +30896,6 @@ var EasyGrid = /** @class */ (function () {
|
|
|
30786
30896
|
.then(function () {
|
|
30787
30897
|
_this.firstRender = false;
|
|
30788
30898
|
_this.rowsOnPagePromise = null;
|
|
30789
|
-
if (needAutoResize) {
|
|
30790
|
-
_this.resizeColumns();
|
|
30791
|
-
}
|
|
30792
30899
|
});
|
|
30793
30900
|
}
|
|
30794
30901
|
else {
|
|
@@ -30810,14 +30917,14 @@ var EasyGrid = /** @class */ (function () {
|
|
|
30810
30917
|
var firstRow = _this.bodyCellContainerDiv.firstElementChild;
|
|
30811
30918
|
var rowHeight = firstRow ? firstRow.offsetHeight : DEFAULT_ROW_HEIGHT;
|
|
30812
30919
|
var rowCount = _this.options.viewportRowsCount; // || DEFAULT_ROW_COUNT;
|
|
30813
|
-
var
|
|
30814
|
-
Object(_utils_dom_elem_builder__WEBPACK_IMPORTED_MODULE_2__[/* domel */ "e"])(_this.
|
|
30815
|
-
.setStyle('height',
|
|
30920
|
+
var viewportHeight_1 = rowHeight * rowCount;
|
|
30921
|
+
Object(_utils_dom_elem_builder__WEBPACK_IMPORTED_MODULE_2__[/* domel */ "e"])(_this.bodyViewportDiv)
|
|
30922
|
+
.setStyle('height', viewportHeight_1 + "px");
|
|
30816
30923
|
setTimeout(function () {
|
|
30817
30924
|
var sbHeight = _this.bodyViewportDiv.offsetHeight - _this.bodyViewportDiv.clientHeight;
|
|
30818
|
-
|
|
30819
|
-
Object(_utils_dom_elem_builder__WEBPACK_IMPORTED_MODULE_2__[/* domel */ "e"])(_this.
|
|
30820
|
-
.setStyle('height',
|
|
30925
|
+
viewportHeight_1 = viewportHeight_1 + sbHeight;
|
|
30926
|
+
Object(_utils_dom_elem_builder__WEBPACK_IMPORTED_MODULE_2__[/* domel */ "e"])(_this.bodyViewportDiv)
|
|
30927
|
+
.setStyle('height', viewportHeight_1 + "px");
|
|
30821
30928
|
resolve();
|
|
30822
30929
|
}, 100);
|
|
30823
30930
|
return;
|
|
@@ -30864,7 +30971,7 @@ var EasyGrid = /** @class */ (function () {
|
|
|
30864
30971
|
_this.headerRowDiv.appendChild(hd);
|
|
30865
30972
|
if (column.isRowNum) {
|
|
30866
30973
|
Object(_utils_dom_elem_builder__WEBPACK_IMPORTED_MODULE_2__[/* domel */ "e"])(hd)
|
|
30867
|
-
.addChildElement(_this.
|
|
30974
|
+
.addChildElement(_this.renderHeaderButtons());
|
|
30868
30975
|
}
|
|
30869
30976
|
});
|
|
30870
30977
|
var containerWidth = this.getContainerWidth();
|
|
@@ -30961,9 +31068,15 @@ var EasyGrid = /** @class */ (function () {
|
|
|
30961
31068
|
_this.updateTotalsState(groups_1, row, true);
|
|
30962
31069
|
}
|
|
30963
31070
|
}
|
|
30964
|
-
var
|
|
30965
|
-
|
|
30966
|
-
.
|
|
31071
|
+
var needAutoResize = _this.options.columnWidths.autoResize !== _easy_grid_options__WEBPACK_IMPORTED_MODULE_4__[/* AutoResizeColumns */ "a"].Never;
|
|
31072
|
+
if (needAutoResize) {
|
|
31073
|
+
_this.resizeColumns();
|
|
31074
|
+
}
|
|
31075
|
+
else {
|
|
31076
|
+
var containerWidth = _this.getContainerWidth();
|
|
31077
|
+
Object(_utils_dom_elem_builder__WEBPACK_IMPORTED_MODULE_2__[/* domel */ "e"])(_this.bodyCellContainerDiv)
|
|
31078
|
+
.setStyle('width', containerWidth + "px");
|
|
31079
|
+
}
|
|
30967
31080
|
return rowsToRender;
|
|
30968
31081
|
})
|
|
30969
31082
|
.catch(function (error) { console.error(error); return 0; });
|
|
@@ -31203,23 +31316,26 @@ var EasyGrid = /** @class */ (function () {
|
|
|
31203
31316
|
var pageInfoDiv = Object(_utils_dom_elem_builder__WEBPACK_IMPORTED_MODULE_2__[/* domel */ "e"])('div')
|
|
31204
31317
|
.addClass(this.cssPrefix + "-page-info")
|
|
31205
31318
|
.toDOM();
|
|
31206
|
-
var
|
|
31207
|
-
|
|
31208
|
-
|
|
31209
|
-
|
|
31210
|
-
|
|
31211
|
-
|
|
31212
|
-
|
|
31213
|
-
|
|
31214
|
-
var
|
|
31215
|
-
|
|
31216
|
-
|
|
31217
|
-
|
|
31218
|
-
|
|
31219
|
-
|
|
31220
|
-
|
|
31221
|
-
.
|
|
31222
|
-
|
|
31319
|
+
var rowCount = this.dataTable.getTotal();
|
|
31320
|
+
if (rowCount > 0) {
|
|
31321
|
+
var fistPageRecordNum = count
|
|
31322
|
+
? (this.pagination.page - 1) * this.pagination.pageSize + 1
|
|
31323
|
+
: 0;
|
|
31324
|
+
var lastPageRecordNum = count
|
|
31325
|
+
? fistPageRecordNum + count - 1
|
|
31326
|
+
: 0;
|
|
31327
|
+
var totalStr = this.dataTable.getTotal().toString();
|
|
31328
|
+
if (this.dataTable.elasticChunks) {
|
|
31329
|
+
var count_1 = this.dataTable.getCachedCount();
|
|
31330
|
+
var total = this.dataTable.getTotal();
|
|
31331
|
+
if (count_1 !== total)
|
|
31332
|
+
totalStr = '?';
|
|
31333
|
+
}
|
|
31334
|
+
pageInfoDiv.innerHTML = _easydata_core__WEBPACK_IMPORTED_MODULE_0__["i18n"].getText('GridPageInfo')
|
|
31335
|
+
.replace('{FirstPageRecordNum}', "<span>" + fistPageRecordNum.toString() + "</span>")
|
|
31336
|
+
.replace('{LastPageRecordNum}', "<span>" + lastPageRecordNum.toString() + "</span>")
|
|
31337
|
+
.replace('{Total}', "<span>" + totalStr + "</span>");
|
|
31338
|
+
}
|
|
31223
31339
|
return pageInfoDiv;
|
|
31224
31340
|
};
|
|
31225
31341
|
EasyGrid.prototype.showProgress = function () {
|
|
@@ -31314,7 +31430,8 @@ var EasyGrid = /** @class */ (function () {
|
|
|
31314
31430
|
var _this = this;
|
|
31315
31431
|
var paginateDiv = document.createElement('div');
|
|
31316
31432
|
paginateDiv.className = this.cssPrefix + "-pagination-wrapper";
|
|
31317
|
-
|
|
31433
|
+
var rowCount = this.dataTable.getTotal();
|
|
31434
|
+
if (this.options.paging && this.options.paging.enabled && rowCount > 0) {
|
|
31318
31435
|
var prefix_1 = this.paginationOptions.useBootstrap ? '' : this.cssPrefix + "-";
|
|
31319
31436
|
var buttonClickHandler_1 = function (ev) {
|
|
31320
31437
|
var element = ev.target;
|
|
@@ -31440,18 +31557,18 @@ var EasyGrid = /** @class */ (function () {
|
|
|
31440
31557
|
EasyGrid.prototype.removeEventListener = function (eventType, handlerId) {
|
|
31441
31558
|
this.eventEmitter.unsubscribe(eventType, handlerId);
|
|
31442
31559
|
};
|
|
31443
|
-
EasyGrid.prototype.
|
|
31560
|
+
EasyGrid.prototype.renderHeaderButtons = function () {
|
|
31444
31561
|
var _this = this;
|
|
31445
|
-
if (this.options.
|
|
31562
|
+
if (this.options.showPlusButton) {
|
|
31446
31563
|
return Object(_utils_dom_elem_builder__WEBPACK_IMPORTED_MODULE_2__[/* domel */ "e"])('div')
|
|
31447
|
-
.addClass(this.cssPrefix + "-
|
|
31448
|
-
.title(this.options.
|
|
31564
|
+
.addClass(this.cssPrefix + "-header-btn-plus")
|
|
31565
|
+
.title(this.options.plusButtonTitle || 'Add')
|
|
31449
31566
|
.addChild('a', function (builder) { return builder
|
|
31450
31567
|
.attr('href', 'javascript:void(0)')
|
|
31451
31568
|
.on('click', function (e) {
|
|
31452
31569
|
e.preventDefault();
|
|
31453
31570
|
_this.fireEvent({
|
|
31454
|
-
type: '
|
|
31571
|
+
type: 'plusButtonClick',
|
|
31455
31572
|
sourceEvent: e
|
|
31456
31573
|
});
|
|
31457
31574
|
}); })
|
|
@@ -31647,10 +31764,10 @@ var EasyGrid = /** @class */ (function () {
|
|
|
31647
31764
|
}());
|
|
31648
31765
|
|
|
31649
31766
|
//# sourceMappingURL=easy_grid.js.map
|
|
31650
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
31767
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(105)))
|
|
31651
31768
|
|
|
31652
31769
|
/***/ }),
|
|
31653
|
-
/*
|
|
31770
|
+
/* 105 */
|
|
31654
31771
|
/***/ (function(module, exports, __webpack_require__) {
|
|
31655
31772
|
|
|
31656
31773
|
/* WEBPACK VAR INJECTION */(function(process, global) {/*!
|
|
@@ -32830,7 +32947,7 @@ return Promise$1;
|
|
|
32830
32947
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(97), __webpack_require__(98)))
|
|
32831
32948
|
|
|
32832
32949
|
/***/ }),
|
|
32833
|
-
/*
|
|
32950
|
+
/* 106 */
|
|
32834
32951
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
32835
32952
|
|
|
32836
32953
|
"use strict";
|
|
@@ -33559,7 +33676,7 @@ var AdvancedSearchView = /** @class */ (function (_super) {
|
|
|
33559
33676
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(54)))
|
|
33560
33677
|
|
|
33561
33678
|
/***/ }),
|
|
33562
|
-
/*
|
|
33679
|
+
/* 107 */
|
|
33563
33680
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
33564
33681
|
|
|
33565
33682
|
"use strict";
|
|
@@ -33590,33 +33707,27 @@ var HttpActionResult = /** @class */ (function () {
|
|
|
33590
33707
|
//# sourceMappingURL=http_action_result.js.map
|
|
33591
33708
|
|
|
33592
33709
|
/***/ }),
|
|
33593
|
-
/*
|
|
33710
|
+
/* 108 */
|
|
33594
33711
|
/***/ (function(module, exports, __webpack_require__) {
|
|
33595
33712
|
|
|
33596
|
-
__webpack_require__(
|
|
33597
|
-
module.exports = __webpack_require__(
|
|
33713
|
+
__webpack_require__(109);
|
|
33714
|
+
module.exports = __webpack_require__(124);
|
|
33598
33715
|
|
|
33599
33716
|
|
|
33600
33717
|
/***/ }),
|
|
33601
|
-
/*
|
|
33718
|
+
/* 109 */
|
|
33602
33719
|
/***/ (function(module, exports, __webpack_require__) {
|
|
33603
33720
|
|
|
33604
|
-
__webpack_require__(109);
|
|
33605
33721
|
__webpack_require__(110);
|
|
33606
33722
|
__webpack_require__(111);
|
|
33607
|
-
|
|
33608
33723
|
__webpack_require__(112);
|
|
33724
|
+
|
|
33609
33725
|
__webpack_require__(113);
|
|
33610
33726
|
__webpack_require__(114);
|
|
33611
33727
|
__webpack_require__(115);
|
|
33612
33728
|
__webpack_require__(116);
|
|
33613
|
-
__webpack_require__(117);
|
|
33614
|
-
|
|
33615
|
-
/***/ }),
|
|
33616
|
-
/* 109 */
|
|
33617
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
33618
|
-
|
|
33619
|
-
// extracted by mini-css-extract-plugin
|
|
33729
|
+
__webpack_require__(117);
|
|
33730
|
+
__webpack_require__(118);
|
|
33620
33731
|
|
|
33621
33732
|
/***/ }),
|
|
33622
33733
|
/* 110 */
|
|
@@ -33668,6 +33779,12 @@ __webpack_require__(117);
|
|
|
33668
33779
|
|
|
33669
33780
|
/***/ }),
|
|
33670
33781
|
/* 118 */
|
|
33782
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
33783
|
+
|
|
33784
|
+
// extracted by mini-css-extract-plugin
|
|
33785
|
+
|
|
33786
|
+
/***/ }),
|
|
33787
|
+
/* 119 */
|
|
33671
33788
|
/***/ (function(module, exports) {
|
|
33672
33789
|
|
|
33673
33790
|
// shim for using process in browser
|
|
@@ -33857,7 +33974,7 @@ process.umask = function() { return 0; };
|
|
|
33857
33974
|
|
|
33858
33975
|
|
|
33859
33976
|
/***/ }),
|
|
33860
|
-
/*
|
|
33977
|
+
/* 120 */
|
|
33861
33978
|
/***/ (function(module, exports) {
|
|
33862
33979
|
|
|
33863
33980
|
var g;
|
|
@@ -33883,10 +34000,10 @@ module.exports = g;
|
|
|
33883
34000
|
|
|
33884
34001
|
|
|
33885
34002
|
/***/ }),
|
|
33886
|
-
/* 120 */,
|
|
33887
34003
|
/* 121 */,
|
|
33888
34004
|
/* 122 */,
|
|
33889
|
-
/* 123
|
|
34005
|
+
/* 123 */,
|
|
34006
|
+
/* 124 */
|
|
33890
34007
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
33891
34008
|
|
|
33892
34009
|
"use strict";
|
|
@@ -34432,7 +34549,7 @@ var chart_type = __webpack_require__(5);
|
|
|
34432
34549
|
var chart_widget = __webpack_require__(47);
|
|
34433
34550
|
|
|
34434
34551
|
// EXTERNAL MODULE: ./dist/lib/widgets/charts/chart_widget_google.js
|
|
34435
|
-
var chart_widget_google = __webpack_require__(
|
|
34552
|
+
var chart_widget_google = __webpack_require__(53);
|
|
34436
34553
|
|
|
34437
34554
|
// EXTERNAL MODULE: ./dist/lib/widgets/charts/chart_widget_chartjs.js
|
|
34438
34555
|
var chart_widget_chartjs = __webpack_require__(46);
|
|
@@ -34474,13 +34591,13 @@ var input_expression_renderer = __webpack_require__(78);
|
|
|
34474
34591
|
var datetime_expression_render = __webpack_require__(81);
|
|
34475
34592
|
|
|
34476
34593
|
// EXTERNAL MODULE: ./dist/lib/widgets/renderers/querypanel/condition_renderer.js
|
|
34477
|
-
var condition_renderer = __webpack_require__(
|
|
34594
|
+
var condition_renderer = __webpack_require__(35);
|
|
34478
34595
|
|
|
34479
34596
|
// EXTERNAL MODULE: ./dist/lib/widgets/renderers/querypanel/condition_group_renderer.js
|
|
34480
34597
|
var condition_group_renderer = __webpack_require__(76);
|
|
34481
34598
|
|
|
34482
34599
|
// EXTERNAL MODULE: ./dist/lib/widgets/renderers/querypanel/attribute_expression_renderer.js
|
|
34483
|
-
var attribute_expression_renderer = __webpack_require__(
|
|
34600
|
+
var attribute_expression_renderer = __webpack_require__(52);
|
|
34484
34601
|
|
|
34485
34602
|
// EXTERNAL MODULE: ./dist/lib/widgets/renderers/querypanel/expression_renderer.js
|
|
34486
34603
|
var expression_renderer = __webpack_require__(23);
|
|
@@ -34516,7 +34633,7 @@ var pivot_table_facet = __webpack_require__(88);
|
|
|
34516
34633
|
var view = __webpack_require__(32);
|
|
34517
34634
|
|
|
34518
34635
|
// EXTERNAL MODULE: ./dist/lib/views/adv_search_view.js
|
|
34519
|
-
var adv_search_view = __webpack_require__(
|
|
34636
|
+
var adv_search_view = __webpack_require__(106);
|
|
34520
34637
|
|
|
34521
34638
|
// CONCATENATED MODULE: ./dist/lib/views/data_filter_view.js
|
|
34522
34639
|
var data_filter_view_extends = (undefined && undefined.__extends) || (function () {
|
|
@@ -34540,7 +34657,9 @@ var data_filter_view_extends = (undefined && undefined.__extends) || (function (
|
|
|
34540
34657
|
var data_filter_view_DataFilterView = /** @class */ (function (_super) {
|
|
34541
34658
|
data_filter_view_extends(DataFilterView, _super);
|
|
34542
34659
|
function DataFilterView() {
|
|
34543
|
-
|
|
34660
|
+
var _this = _super.call(this) || this;
|
|
34661
|
+
_this.resultOptions.fetchEmptyQueries = true;
|
|
34662
|
+
return _this;
|
|
34544
34663
|
}
|
|
34545
34664
|
DataFilterView.prototype.initOptions = function (options) {
|
|
34546
34665
|
var _this = this;
|
|
@@ -34618,7 +34737,9 @@ var html_data_filter_view_extends = (undefined && undefined.__extends) || (funct
|
|
|
34618
34737
|
var html_data_filter_view_HtmlDataFilterView = /** @class */ (function (_super) {
|
|
34619
34738
|
html_data_filter_view_extends(HtmlDataFilterView, _super);
|
|
34620
34739
|
function HtmlDataFilterView() {
|
|
34621
|
-
|
|
34740
|
+
var _this = _super.call(this) || this;
|
|
34741
|
+
_this.resultOptions.fetchEmptyQueries = true;
|
|
34742
|
+
return _this;
|
|
34622
34743
|
}
|
|
34623
34744
|
/**
|
|
34624
34745
|
* Creates the widget that represents Grid Widget.
|
|
@@ -34691,7 +34812,7 @@ var report_view_ReportView = /** @class */ (function (_super) {
|
|
|
34691
34812
|
_this.loadReportButtonClickHandler = _this.loadReportButtonClick.bind(_this);
|
|
34692
34813
|
_this.saveReportButtonClickHandler = _this.saveReportButtonClick.bind(_this);
|
|
34693
34814
|
_this.removeReportButtonClickHandler = _this.removeReportButtonClick.bind(_this);
|
|
34694
|
-
_this.
|
|
34815
|
+
_this.reloadReportDataButtonClickHandler = _this.reloadReportDataButtonClick.bind(_this);
|
|
34695
34816
|
browser_utils["a" /* browserUtils */].onMobileModeChanged(function (_) {
|
|
34696
34817
|
document.location.reload();
|
|
34697
34818
|
});
|
|
@@ -34778,7 +34899,7 @@ var report_view_ReportView = /** @class */ (function (_super) {
|
|
|
34778
34899
|
var loadReportButton = "LoadReportButton";
|
|
34779
34900
|
var saveReportButton = "SaveReportButton";
|
|
34780
34901
|
var removeReportButton = "RemoveReportButton";
|
|
34781
|
-
var
|
|
34902
|
+
var reloadReportDataButton = "ReloadReportDataButton";
|
|
34782
34903
|
var resultCountSpan = "ResultCount";
|
|
34783
34904
|
var exportButtons = "ResultExportButtons";
|
|
34784
34905
|
var exportClass = this.exportClass;
|
|
@@ -34790,7 +34911,7 @@ var report_view_ReportView = /** @class */ (function (_super) {
|
|
|
34790
34911
|
loadReportButton = options.slots.loadReportButton || loadReportButton;
|
|
34791
34912
|
saveReportButton = options.slots.saveReportButton || saveReportButton;
|
|
34792
34913
|
removeReportButton = options.slots.removeReportButton || removeReportButton;
|
|
34793
|
-
|
|
34914
|
+
reloadReportDataButton = options.slots.reloadReportDataButton || reloadReportDataButton;
|
|
34794
34915
|
exportClass = options.slots.exportClass || exportClass;
|
|
34795
34916
|
}
|
|
34796
34917
|
this.exportButtons = this.domRoots.reduce(function (elems, root) {
|
|
@@ -34837,10 +34958,14 @@ var report_view_ReportView = /** @class */ (function (_super) {
|
|
|
34837
34958
|
this.removeReportButton.addEventListener('click', this.removeReportButtonClickHandler);
|
|
34838
34959
|
}
|
|
34839
34960
|
}
|
|
34840
|
-
if (!this.
|
|
34841
|
-
this.
|
|
34842
|
-
|
|
34843
|
-
|
|
34961
|
+
if (!this.reloadReportDataButton) {
|
|
34962
|
+
this.reloadReportDataButton = this.resolveElement(reloadReportDataButton);
|
|
34963
|
+
//OBSOLETE: remove the next 3 lines. We just support the old default button ID here
|
|
34964
|
+
if (!this.reloadReportDataButton) {
|
|
34965
|
+
this.reloadReportDataButton = this.resolveElement('UpdateReportButton');
|
|
34966
|
+
}
|
|
34967
|
+
if (this.reloadReportDataButton) {
|
|
34968
|
+
this.reloadReportDataButton.addEventListener('click', this.reloadReportDataButtonClickHandler);
|
|
34844
34969
|
}
|
|
34845
34970
|
}
|
|
34846
34971
|
this.reportListSlot = document.getElementById('ReportList');
|
|
@@ -34918,6 +35043,7 @@ var report_view_ReportView = /** @class */ (function (_super) {
|
|
|
34918
35043
|
var query = self.context.getQuery();
|
|
34919
35044
|
var reportLoaded = function () {
|
|
34920
35045
|
_this.renderReportProps();
|
|
35046
|
+
_this.context.resultTable.clear();
|
|
34921
35047
|
query.fireChangedEvent({
|
|
34922
35048
|
part: public_api["QueryChangePart"].All,
|
|
34923
35049
|
noSync: true,
|
|
@@ -35144,8 +35270,8 @@ var report_view_ReportView = /** @class */ (function (_super) {
|
|
|
35144
35270
|
this.removeReportButton.removeEventListener('click', this.removeReportButtonClickHandler);
|
|
35145
35271
|
this.removeReportButton = null;
|
|
35146
35272
|
}
|
|
35147
|
-
if (this.
|
|
35148
|
-
this.
|
|
35273
|
+
if (this.reloadReportDataButton) {
|
|
35274
|
+
this.reloadReportDataButton.removeEventListener('click', this.reloadReportDataButtonClickHandler);
|
|
35149
35275
|
this.removeReportButton = null;
|
|
35150
35276
|
}
|
|
35151
35277
|
if (this.reportListSlot) {
|
|
@@ -35246,7 +35372,7 @@ var report_view_ReportView = /** @class */ (function (_super) {
|
|
|
35246
35372
|
/**
|
|
35247
35373
|
* The handler of the "Update" button click.
|
|
35248
35374
|
*/
|
|
35249
|
-
ReportView.prototype.
|
|
35375
|
+
ReportView.prototype.reloadReportDataButtonClick = function () {
|
|
35250
35376
|
this.fetchData();
|
|
35251
35377
|
};
|
|
35252
35378
|
/**
|
|
@@ -35568,6 +35694,7 @@ function addEasyQueryUITexts() {
|
|
|
35568
35694
|
TabNameLabel: 'Tab name',
|
|
35569
35695
|
ErrQueryChanged: 'FAILED TO DISPLAY. QUERY WAS CHANGED',
|
|
35570
35696
|
ErrNotEnoughData: "We can't display the graph because not all data for this query is loaded. \n The total number of records: {totalRecs}, currently loaded: {cachedRecs}. \n You can [download the result]. Please note: this may take some time and consume a lot of memory.",
|
|
35697
|
+
ErrTooMuchData: 'Too much data. The grid is not able to display it',
|
|
35571
35698
|
Chart: {
|
|
35572
35699
|
FacetTitle: 'Chart',
|
|
35573
35700
|
DlgTitle: 'Chart settings',
|
|
@@ -35610,6 +35737,7 @@ function addEasyQueryUITexts() {
|
|
|
35610
35737
|
UnaggrBtn: 'Remove column aggregation',
|
|
35611
35738
|
GrandTotalsLabel: 'Show grand totals',
|
|
35612
35739
|
GroupCountsLabel: 'Show record count for groups',
|
|
35740
|
+
AggrDialogTitle: 'Aggregation/grouping',
|
|
35613
35741
|
EnableAggrLabel: 'Enable aggregation',
|
|
35614
35742
|
SelectedError: 'Complete the action with selected column(s)',
|
|
35615
35743
|
NoGroupsOrAggrError: 'Add at least one group or aggregation',
|