@easyquery/ui 7.2.0-rc02 → 7.2.0-rc06
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/css/aggr-settings.css +6 -6
- package/dist/assets/css/easyfacets.css +2 -2
- package/dist/browser/eq.community.css.map +1 -1
- package/dist/browser/eq.community.js +491 -385
- package/dist/browser/eq.community.js.map +1 -1
- package/dist/browser/eq.community.min.js +3 -3
- package/dist/browser/eq.community.min.js.map +1 -1
- package/dist/browser/eq.core.css +14 -14
- package/dist/browser/eq.core.min.css +3 -3
- package/dist/browser/eq.view.css +2 -2
- package/dist/browser/eq.view.min.css +2 -2
- package/dist/bundles/easyquery.ui.js +80 -48
- package/dist/bundles/easyquery.ui.js.map +1 -1
- package/dist/bundles/easyquery.ui.min.js +1 -1
- package/dist/bundles/easyquery.ui.min.js.map +1 -1
- package/dist/lib/dialog/aggr_settings_dialog.js +3 -3
- package/dist/lib/dialog/aggr_settings_dialog.js.map +1 -1
- package/dist/lib/extensions.js +1 -1
- package/dist/lib/facets/pivot_table_facet.js +28 -5
- package/dist/lib/facets/pivot_table_facet.js.map +1 -1
- package/dist/lib/i18n/text_resources.js +1 -0
- package/dist/lib/i18n/text_resources.js.map +1 -1
- package/dist/lib/views/data_filter_view.d.ts +1 -0
- package/dist/lib/views/data_filter_view.js +3 -1
- package/dist/lib/views/data_filter_view.js.map +1 -1
- package/dist/lib/views/html_data_filter_view.js +3 -1
- package/dist/lib/views/html_data_filter_view.js.map +1 -1
- package/dist/lib/views/report_view.d.ts +3 -3
- package/dist/lib/views/report_view.js +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 +0 -15
- package/dist/lib/widgets/easy_grid_widget.js.map +1 -1
- package/dist/lib/widgets/renderers/aggr_settings/aggr_settings_renderer.js +4 -4
- package/dist/lib/widgets/renderers/aggr_settings/aggr_settings_renderer.js.map +1 -1
- package/dist/lib/widgets/renderers/columnsbar/aggrfunc_column_renderer.js +0 -1
- package/dist/lib/widgets/renderers/columnsbar/aggrfunc_column_renderer.js.map +1 -1
- package/dist/lib/widgets/renderers/columnsbar/column_renderer_cb.js +0 -1
- package/dist/lib/widgets/renderers/columnsbar/column_renderer_cb.js.map +1 -1
- package/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-rc06 (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; });
|
|
@@ -2409,6 +2411,7 @@ var eq_services_EqServiceProvider = /** @class */ (function () {
|
|
|
2409
2411
|
this.httpClient = new public_api["HttpClient"]();
|
|
2410
2412
|
this.httpClient.defaultHeaders['x-eqjs-version'] = '7.2.0';
|
|
2411
2413
|
this.modelResolver = function (_) { return new data_model["a" /* DataModel */](); };
|
|
2414
|
+
this.modelStorageResolver = null;
|
|
2412
2415
|
this.queryResolver = function (context) { return new query_query["b" /* Query */](context.getModel()); };
|
|
2413
2416
|
this.modelLoaderResolver = function (context) { return new EqServerModelLoader(context); };
|
|
2414
2417
|
this.queryStorageResolver = function (context) { return new query_storage["a" /* BrowserQueryStorage */](context); };
|
|
@@ -2419,6 +2422,7 @@ var eq_services_EqServiceProvider = /** @class */ (function () {
|
|
|
2419
2422
|
this.aggrCalculatoResolver = function (context) { return new eq_aggr_container["a" /* DefaultAggregatesCalculator */](context); };
|
|
2420
2423
|
}
|
|
2421
2424
|
EqServiceProvider.prototype.reset = function () {
|
|
2425
|
+
this.modelStorage = null;
|
|
2422
2426
|
this.modelLoader = null;
|
|
2423
2427
|
this.queryStorage = null;
|
|
2424
2428
|
this.querySynchronizer = null;
|
|
@@ -2447,6 +2451,15 @@ var eq_services_EqServiceProvider = /** @class */ (function () {
|
|
|
2447
2451
|
}
|
|
2448
2452
|
return this.modelLoader;
|
|
2449
2453
|
};
|
|
2454
|
+
EqServiceProvider.prototype.getModelStorage = function () {
|
|
2455
|
+
if (!this.modelStorage) {
|
|
2456
|
+
if (!this.modelStorageResolver) {
|
|
2457
|
+
throw 'ModelStorageResolver is not defined';
|
|
2458
|
+
}
|
|
2459
|
+
this.modelStorage = this.modelStorageResolver(this.context);
|
|
2460
|
+
}
|
|
2461
|
+
return this.modelStorage;
|
|
2462
|
+
};
|
|
2450
2463
|
EqServiceProvider.prototype.getQueryStorage = function () {
|
|
2451
2464
|
if (!this.queryStorage) {
|
|
2452
2465
|
if (!this.queryStorageResolver) {
|
|
@@ -2510,6 +2523,9 @@ var eq_services_EqServiceProvider = /** @class */ (function () {
|
|
|
2510
2523
|
EqServiceProvider.prototype.registerModelLoaderResolver = function (resolver) {
|
|
2511
2524
|
this.modelLoaderResolver = resolver;
|
|
2512
2525
|
};
|
|
2526
|
+
EqServiceProvider.prototype.registerModelStorageResolver = function (resolver) {
|
|
2527
|
+
this.modelStorageResolver = resolver;
|
|
2528
|
+
};
|
|
2513
2529
|
EqServiceProvider.prototype.registerQueryStorageResolver = function (resolver) {
|
|
2514
2530
|
this.queryStorageResolver = resolver;
|
|
2515
2531
|
};
|
|
@@ -2608,6 +2624,9 @@ var EqAction;
|
|
|
2608
2624
|
EqAction["UploadQueryFile"] = "UploadQueryFile";
|
|
2609
2625
|
})(EqAction || (EqAction = {}));
|
|
2610
2626
|
//# sourceMappingURL=eq_actions.js.map
|
|
2627
|
+
// EXTERNAL MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/packs/core/dist/lib/main/model_storage.js
|
|
2628
|
+
var model_storage = __webpack_require__(103);
|
|
2629
|
+
|
|
2611
2630
|
// EXTERNAL MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/packs/core/dist/lib/query/query_events.js
|
|
2612
2631
|
var query_events = __webpack_require__(14);
|
|
2613
2632
|
|
|
@@ -2912,10 +2931,14 @@ var context_EqContext = /** @class */ (function () {
|
|
|
2912
2931
|
}
|
|
2913
2932
|
if (options.endpoint) {
|
|
2914
2933
|
this.baseEndpoint = options.endpoint;
|
|
2915
|
-
console.warn('The `endpoint` option is deprecated
|
|
2934
|
+
console.warn('The `endpoint` option is deprecated.\n'
|
|
2916
2935
|
+ 'Please use `context.useEndpoint(endpointURL)` function instead.');
|
|
2917
2936
|
}
|
|
2918
2937
|
this.setDefaultEndpoints(this.baseEndpoint);
|
|
2938
|
+
if (options.modelStorageResolver) {
|
|
2939
|
+
var eqServices = this.getServices();
|
|
2940
|
+
eqServices.registerModelStorageResolver(options.modelStorageResolver);
|
|
2941
|
+
}
|
|
2919
2942
|
this.loadQueryOnStart = false;
|
|
2920
2943
|
if (options.loadQueryOnStart) {
|
|
2921
2944
|
this.loadQueryOnStart = options.loadQueryOnStart;
|
|
@@ -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
|
|
@@ -4705,6 +4730,10 @@ var DomSelectElementBuilder = /** @class */ (function (_super) {
|
|
|
4705
4730
|
this.element.appendChild(option);
|
|
4706
4731
|
return this;
|
|
4707
4732
|
};
|
|
4733
|
+
DomSelectElementBuilder.prototype.value = function (value) {
|
|
4734
|
+
this.element.value = value;
|
|
4735
|
+
return this;
|
|
4736
|
+
};
|
|
4708
4737
|
return DomSelectElementBuilder;
|
|
4709
4738
|
}(DomElementBuilder));
|
|
4710
4739
|
|
|
@@ -8197,7 +8226,7 @@ var qp_editable_part = __webpack_require__(10);
|
|
|
8197
8226
|
var popup_menu = __webpack_require__(9);
|
|
8198
8227
|
|
|
8199
8228
|
// EXTERNAL MODULE: ./dist/lib/widgets/renderers/querypanel/condition_renderer.js
|
|
8200
|
-
var condition_renderer = __webpack_require__(
|
|
8229
|
+
var condition_renderer = __webpack_require__(35);
|
|
8201
8230
|
|
|
8202
8231
|
// EXTERNAL MODULE: ./dist/lib/widgets/renderers/querypanel/condition_group_renderer.js
|
|
8203
8232
|
var condition_group_renderer = __webpack_require__(76);
|
|
@@ -8206,7 +8235,7 @@ var condition_group_renderer = __webpack_require__(76);
|
|
|
8206
8235
|
var input_expression_renderer = __webpack_require__(78);
|
|
8207
8236
|
|
|
8208
8237
|
// EXTERNAL MODULE: ./dist/lib/widgets/renderers/querypanel/attribute_expression_renderer.js
|
|
8209
|
-
var attribute_expression_renderer = __webpack_require__(
|
|
8238
|
+
var attribute_expression_renderer = __webpack_require__(52);
|
|
8210
8239
|
|
|
8211
8240
|
// EXTERNAL MODULE: ./dist/lib/widgets/renderers/querypanel/addrow_renderer.js
|
|
8212
8241
|
var addrow_renderer = __webpack_require__(79);
|
|
@@ -9595,8 +9624,6 @@ var Query = /** @class */ (function () {
|
|
|
9595
9624
|
}
|
|
9596
9625
|
this.setDefaultName();
|
|
9597
9626
|
this.description = "";
|
|
9598
|
-
this.modelId = "";
|
|
9599
|
-
this.modelName = "";
|
|
9600
9627
|
this.model = (model) ? model : new _dm_data_model__WEBPACK_IMPORTED_MODULE_2__[/* DataModel */ "a"]();
|
|
9601
9628
|
if (data) {
|
|
9602
9629
|
this.loadFromData(data);
|
|
@@ -9610,10 +9637,14 @@ var Query = /** @class */ (function () {
|
|
|
9610
9637
|
this.parentQuery = options.parent;
|
|
9611
9638
|
}
|
|
9612
9639
|
this.addChangedCallback(function (ev) {
|
|
9613
|
-
if (ev.data
|
|
9614
|
-
&& ev.data.
|
|
9640
|
+
if (ev.data
|
|
9641
|
+
&& ((ev.data.part & _query_events__WEBPACK_IMPORTED_MODULE_10__[/* QueryChangePart */ "b"].Columns) > 0)
|
|
9615
9642
|
&& !ev.data.aggregation) {
|
|
9616
|
-
_this.
|
|
9643
|
+
if (_this._enableAggregation && _this.updateAggregationSettings()) {
|
|
9644
|
+
_this.fireChangedEvent({
|
|
9645
|
+
part: _query_events__WEBPACK_IMPORTED_MODULE_10__[/* QueryChangePart */ "b"].Aggregation
|
|
9646
|
+
});
|
|
9647
|
+
}
|
|
9617
9648
|
}
|
|
9618
9649
|
});
|
|
9619
9650
|
}
|
|
@@ -9634,19 +9665,6 @@ var Query = /** @class */ (function () {
|
|
|
9634
9665
|
this.processQueryForAggregation();
|
|
9635
9666
|
var aggrCols = this.columns.filter(function (c) { return c.enabled
|
|
9636
9667
|
&& 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
9668
|
}
|
|
9651
9669
|
if (!this._enableAggregation) {
|
|
9652
9670
|
this.aggrSettings.clear();
|
|
@@ -9655,6 +9673,40 @@ var Query = /** @class */ (function () {
|
|
|
9655
9673
|
enumerable: true,
|
|
9656
9674
|
configurable: true
|
|
9657
9675
|
});
|
|
9676
|
+
Query.prototype.updateAggregationSettings = function () {
|
|
9677
|
+
var hasChanged = false;
|
|
9678
|
+
var aggrSettings = this.getAggregationSettings();
|
|
9679
|
+
for (var i = aggrSettings.groups.length - 1; i >= 0; i--) {
|
|
9680
|
+
var group = aggrSettings.groups[i];
|
|
9681
|
+
var _loop_1 = function (j) {
|
|
9682
|
+
var colId = group.columns[j];
|
|
9683
|
+
if (!this_1.columns.find(function (col) { return col.id === colId; })) {
|
|
9684
|
+
group.columns.splice(j, 1);
|
|
9685
|
+
hasChanged = true;
|
|
9686
|
+
}
|
|
9687
|
+
};
|
|
9688
|
+
var this_1 = this;
|
|
9689
|
+
for (var j = group.columns.length - 1; j >= 0; j--) {
|
|
9690
|
+
_loop_1(j);
|
|
9691
|
+
}
|
|
9692
|
+
if (group.columns.length == 0) {
|
|
9693
|
+
aggrSettings.groups.slice(i, 1);
|
|
9694
|
+
}
|
|
9695
|
+
}
|
|
9696
|
+
var aggregates = aggrSettings.getAggregates();
|
|
9697
|
+
var _loop_2 = function (i) {
|
|
9698
|
+
var aggr = aggregates[i];
|
|
9699
|
+
if (!this_2.columns.find(function (col) { return col.id === aggr.colId; })) {
|
|
9700
|
+
aggregates.splice(i, 1);
|
|
9701
|
+
hasChanged = true;
|
|
9702
|
+
}
|
|
9703
|
+
};
|
|
9704
|
+
var this_2 = this;
|
|
9705
|
+
for (var i = aggregates.length - 1; i >= 0; i--) {
|
|
9706
|
+
_loop_2(i);
|
|
9707
|
+
}
|
|
9708
|
+
return hasChanged;
|
|
9709
|
+
};
|
|
9658
9710
|
Query.prototype.createSubQuery = function () {
|
|
9659
9711
|
return new Query(this.model);
|
|
9660
9712
|
};
|
|
@@ -11861,6 +11913,10 @@ var view_View = /** @class */ (function () {
|
|
|
11861
11913
|
View.prototype.fetchData = function (options) {
|
|
11862
11914
|
var _this = this;
|
|
11863
11915
|
options = options || { refresh: true };
|
|
11916
|
+
this.context.clearResult();
|
|
11917
|
+
//don't run fetch if the query is empty
|
|
11918
|
+
if (this.context.getQuery().isEmpty() && !this.resultOptions.fetchEmptyQueries)
|
|
11919
|
+
return;
|
|
11864
11920
|
this.showResultSpinner();
|
|
11865
11921
|
this.context.fetchData({
|
|
11866
11922
|
elasticPaging: options.elasticPaging,
|
|
@@ -12242,6 +12298,20 @@ var Operand = /** @class */ (function () {
|
|
|
12242
12298
|
/* 34 */
|
|
12243
12299
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
12244
12300
|
|
|
12301
|
+
"use strict";
|
|
12302
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AutoResizeColumns; });
|
|
12303
|
+
var AutoResizeColumns;
|
|
12304
|
+
(function (AutoResizeColumns) {
|
|
12305
|
+
AutoResizeColumns[AutoResizeColumns["Always"] = 0] = "Always";
|
|
12306
|
+
AutoResizeColumns[AutoResizeColumns["Once"] = 1] = "Once";
|
|
12307
|
+
AutoResizeColumns[AutoResizeColumns["Never"] = 2] = "Never";
|
|
12308
|
+
})(AutoResizeColumns || (AutoResizeColumns = {}));
|
|
12309
|
+
//# sourceMappingURL=easy_grid_options.js.map
|
|
12310
|
+
|
|
12311
|
+
/***/ }),
|
|
12312
|
+
/* 35 */
|
|
12313
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
12314
|
+
|
|
12245
12315
|
"use strict";
|
|
12246
12316
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ConditionAction; });
|
|
12247
12317
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return ConditionRenderer; });
|
|
@@ -12764,7 +12834,7 @@ var SimpleConditionRenderer = /** @class */ (function (_super) {
|
|
|
12764
12834
|
//# sourceMappingURL=condition_renderer.js.map
|
|
12765
12835
|
|
|
12766
12836
|
/***/ }),
|
|
12767
|
-
/*
|
|
12837
|
+
/* 36 */
|
|
12768
12838
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
12769
12839
|
|
|
12770
12840
|
"use strict";
|
|
@@ -12781,7 +12851,7 @@ var HttpMethod;
|
|
|
12781
12851
|
//# sourceMappingURL=http_method.js.map
|
|
12782
12852
|
|
|
12783
12853
|
/***/ }),
|
|
12784
|
-
/*
|
|
12854
|
+
/* 37 */
|
|
12785
12855
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
12786
12856
|
|
|
12787
12857
|
"use strict";
|
|
@@ -13159,20 +13229,6 @@ var DragManager = /** @class */ (function () {
|
|
|
13159
13229
|
var eqDragManager = new DragManager();
|
|
13160
13230
|
//# sourceMappingURL=drag_manager.js.map
|
|
13161
13231
|
|
|
13162
|
-
/***/ }),
|
|
13163
|
-
/* 37 */
|
|
13164
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
13165
|
-
|
|
13166
|
-
"use strict";
|
|
13167
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AutoResizeColumns; });
|
|
13168
|
-
var AutoResizeColumns;
|
|
13169
|
-
(function (AutoResizeColumns) {
|
|
13170
|
-
AutoResizeColumns[AutoResizeColumns["Always"] = 0] = "Always";
|
|
13171
|
-
AutoResizeColumns[AutoResizeColumns["Once"] = 1] = "Once";
|
|
13172
|
-
AutoResizeColumns[AutoResizeColumns["Never"] = 2] = "Never";
|
|
13173
|
-
})(AutoResizeColumns || (AutoResizeColumns = {}));
|
|
13174
|
-
//# sourceMappingURL=easy_grid_options.js.map
|
|
13175
|
-
|
|
13176
13232
|
/***/ }),
|
|
13177
13233
|
/* 38 */
|
|
13178
13234
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
@@ -15313,21 +15369,6 @@ var EasyGridWidget = /** @class */ (function (_super) {
|
|
|
15313
15369
|
this.grid.refresh();
|
|
15314
15370
|
};
|
|
15315
15371
|
EasyGridWidget.prototype.attachQueryObserver = function () {
|
|
15316
|
-
var _this = this;
|
|
15317
|
-
var query = this.getQuery();
|
|
15318
|
-
this.queryEventCallbackId = query.addChangedCallback(function (event) {
|
|
15319
|
-
//if something has changed, and that change is related to columns
|
|
15320
|
-
var edata = event.data;
|
|
15321
|
-
if (!edata || (edata.part != _easyquery_core__WEBPACK_IMPORTED_MODULE_0__["QueryChangePart"].Columns && edata.part != _easyquery_core__WEBPACK_IMPORTED_MODULE_0__["QueryChangePart"].All)) {
|
|
15322
|
-
return;
|
|
15323
|
-
}
|
|
15324
|
-
if (event.data.source == _this) {
|
|
15325
|
-
_this.grid.refresh();
|
|
15326
|
-
}
|
|
15327
|
-
else {
|
|
15328
|
-
_this.refresh();
|
|
15329
|
-
}
|
|
15330
|
-
});
|
|
15331
15372
|
};
|
|
15332
15373
|
EasyGridWidget.prototype.destroyCore = function () {
|
|
15333
15374
|
this.detachQueryObserver();
|
|
@@ -16583,263 +16624,6 @@ var Condition = /** @class */ (function () {
|
|
|
16583
16624
|
|
|
16584
16625
|
/***/ }),
|
|
16585
16626
|
/* 51 */
|
|
16586
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
16587
|
-
|
|
16588
|
-
"use strict";
|
|
16589
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AttributeExpressionRenderer; });
|
|
16590
|
-
/* harmony import */ var _easydata_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
16591
|
-
/* harmony import */ var _easyquery_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
|
|
16592
|
-
/* harmony import */ var _easydata_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
|
|
16593
|
-
/* harmony import */ var _list_expression_renderer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(25);
|
|
16594
|
-
/* harmony import */ var _utils_browser_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3);
|
|
16595
|
-
/* harmony import */ var _types_qp_editable_part__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(10);
|
|
16596
|
-
var __extends = (undefined && undefined.__extends) || (function () {
|
|
16597
|
-
var extendStatics = function (d, b) {
|
|
16598
|
-
extendStatics = Object.setPrototypeOf ||
|
|
16599
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
16600
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
16601
|
-
return extendStatics(d, b);
|
|
16602
|
-
};
|
|
16603
|
-
return function (d, b) {
|
|
16604
|
-
extendStatics(d, b);
|
|
16605
|
-
function __() { this.constructor = d; }
|
|
16606
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16607
|
-
};
|
|
16608
|
-
})();
|
|
16609
|
-
|
|
16610
|
-
|
|
16611
|
-
|
|
16612
|
-
|
|
16613
|
-
|
|
16614
|
-
|
|
16615
|
-
var AttributeExpressionRenderer = /** @class */ (function (_super) {
|
|
16616
|
-
__extends(AttributeExpressionRenderer, _super);
|
|
16617
|
-
function AttributeExpressionRenderer(panel, expression, entitiesMenu, slot) {
|
|
16618
|
-
var _this = _super.call(this, panel, expression, null, slot) || this;
|
|
16619
|
-
_this.menu = entitiesMenu;
|
|
16620
|
-
return _this;
|
|
16621
|
-
}
|
|
16622
|
-
AttributeExpressionRenderer.prototype.renderEditor = function () {
|
|
16623
|
-
//create menu
|
|
16624
|
-
};
|
|
16625
|
-
AttributeExpressionRenderer.prototype.getLabelText = function () {
|
|
16626
|
-
var model = this.panel.getContext().getModel();
|
|
16627
|
-
var attrId = this.expression.value;
|
|
16628
|
-
var attrObj = attrId ? model.getAttributeByIdSafe(attrId) : null;
|
|
16629
|
-
var attrFormat = this.panel.options.attrElementFormat;
|
|
16630
|
-
return attrObj ? model.getAttributeText(attrObj, attrFormat) : this.getEmptyText();
|
|
16631
|
-
};
|
|
16632
|
-
AttributeExpressionRenderer.prototype.setValue = function (value, silent) {
|
|
16633
|
-
if (silent === void 0) { silent = false; }
|
|
16634
|
-
silent = silent && value !== this.expression.value;
|
|
16635
|
-
var result = _super.prototype.setValue.call(this, value, true);
|
|
16636
|
-
if (!silent) {
|
|
16637
|
-
this.expression.getParent().fireChangedEvent(_easyquery_core__WEBPACK_IMPORTED_MODULE_1__["ConditionPart"].EntityAttr | _easyquery_core__WEBPACK_IMPORTED_MODULE_1__["ConditionPart"].Operator);
|
|
16638
|
-
}
|
|
16639
|
-
return result;
|
|
16640
|
-
};
|
|
16641
|
-
AttributeExpressionRenderer.prototype.isEditable = function () {
|
|
16642
|
-
return !this.isReadOnly()
|
|
16643
|
-
&& ((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);
|
|
16644
|
-
};
|
|
16645
|
-
AttributeExpressionRenderer.prototype.getEmptyText = function () {
|
|
16646
|
-
return this.panel.options.emptyTextAttribute || _easydata_core__WEBPACK_IMPORTED_MODULE_0__["i18n"].getText('MsgEmptyAttrValue');
|
|
16647
|
-
};
|
|
16648
|
-
AttributeExpressionRenderer.prototype.getClassesToAdd = function () {
|
|
16649
|
-
return this.cssPrefix + "-condelement " + this.cssPrefix + "-attrelement";
|
|
16650
|
-
};
|
|
16651
|
-
AttributeExpressionRenderer.prototype.adjustWidth = function () {
|
|
16652
|
-
if (_utils_browser_utils__WEBPACK_IMPORTED_MODULE_4__[/* browserUtils */ "a"].isMobileMode()) {
|
|
16653
|
-
return;
|
|
16654
|
-
}
|
|
16655
|
-
var elWidth = this.element.clientWidth;
|
|
16656
|
-
var parWidth = this.element.parentElement.clientWidth;
|
|
16657
|
-
if (elWidth > parWidth / 2) {
|
|
16658
|
-
Object(_easydata_ui__WEBPACK_IMPORTED_MODULE_2__["domel"])(this.element)
|
|
16659
|
-
.addClass(this.cssPrefix + "-attrelement-wide");
|
|
16660
|
-
}
|
|
16661
|
-
};
|
|
16662
|
-
return AttributeExpressionRenderer;
|
|
16663
|
-
}(_list_expression_renderer__WEBPACK_IMPORTED_MODULE_3__[/* ListExpressionRenderer */ "b"]));
|
|
16664
|
-
|
|
16665
|
-
//# sourceMappingURL=attribute_expression_renderer.js.map
|
|
16666
|
-
|
|
16667
|
-
/***/ }),
|
|
16668
|
-
/* 52 */
|
|
16669
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
16670
|
-
|
|
16671
|
-
"use strict";
|
|
16672
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return GoogleChartWidget; });
|
|
16673
|
-
/* harmony import */ var _easydata_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
16674
|
-
/* harmony import */ var _chart_widget__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(47);
|
|
16675
|
-
/* harmony import */ var _chart_type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5);
|
|
16676
|
-
var __extends = (undefined && undefined.__extends) || (function () {
|
|
16677
|
-
var extendStatics = function (d, b) {
|
|
16678
|
-
extendStatics = Object.setPrototypeOf ||
|
|
16679
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
16680
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
16681
|
-
return extendStatics(d, b);
|
|
16682
|
-
};
|
|
16683
|
-
return function (d, b) {
|
|
16684
|
-
extendStatics(d, b);
|
|
16685
|
-
function __() { this.constructor = d; }
|
|
16686
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16687
|
-
};
|
|
16688
|
-
})();
|
|
16689
|
-
|
|
16690
|
-
|
|
16691
|
-
|
|
16692
|
-
var GoogleChartWidget = /** @class */ (function (_super) {
|
|
16693
|
-
__extends(GoogleChartWidget, _super);
|
|
16694
|
-
/**
|
|
16695
|
-
* The default constructor.
|
|
16696
|
-
* @param slot The html element.
|
|
16697
|
-
* @param provider The provider.
|
|
16698
|
-
*/
|
|
16699
|
-
function GoogleChartWidget(slot) {
|
|
16700
|
-
var _this = _super.call(this, slot) || this;
|
|
16701
|
-
_this.hasChartTypes = [
|
|
16702
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Column,
|
|
16703
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Bar,
|
|
16704
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Histogram,
|
|
16705
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Combo,
|
|
16706
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Area,
|
|
16707
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Line,
|
|
16708
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].SteppedLine,
|
|
16709
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Pie,
|
|
16710
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Doughnut
|
|
16711
|
-
];
|
|
16712
|
-
_this.options.legend = {
|
|
16713
|
-
show: true,
|
|
16714
|
-
position: 'right'
|
|
16715
|
-
};
|
|
16716
|
-
return _this;
|
|
16717
|
-
}
|
|
16718
|
-
GoogleChartWidget.prototype.getWidgetType = function () {
|
|
16719
|
-
return 'chartGoogle';
|
|
16720
|
-
};
|
|
16721
|
-
GoogleChartWidget.prototype.canDraw = function () {
|
|
16722
|
-
return GoogleChartWidget.hasGoogleCharts();
|
|
16723
|
-
};
|
|
16724
|
-
GoogleChartWidget.hasGoogleCharts = function () {
|
|
16725
|
-
return typeof google !== 'undefined' && typeof google.charts !== 'undefined';
|
|
16726
|
-
};
|
|
16727
|
-
GoogleChartWidget.prototype.initChart = function () {
|
|
16728
|
-
if (GoogleChartWidget.hasGoogleCharts() && this.labelColumn >= 0
|
|
16729
|
-
&& this.dataColumns && this.dataColumns.length > 0) {
|
|
16730
|
-
this.googleDataView =
|
|
16731
|
-
new google.visualization.DataView(this.convertToGoogleFormat());
|
|
16732
|
-
this.updateChartColumns();
|
|
16733
|
-
}
|
|
16734
|
-
};
|
|
16735
|
-
GoogleChartWidget.prototype.convertToGoogleType = function (type) {
|
|
16736
|
-
switch (type) {
|
|
16737
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Date:
|
|
16738
|
-
return "date";
|
|
16739
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].DateTime:
|
|
16740
|
-
return "datetime";
|
|
16741
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Time:
|
|
16742
|
-
return "timeofday";
|
|
16743
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Byte:
|
|
16744
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Word:
|
|
16745
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Int32:
|
|
16746
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Int64:
|
|
16747
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Currency:
|
|
16748
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Float:
|
|
16749
|
-
return "number";
|
|
16750
|
-
default:
|
|
16751
|
-
return "string";
|
|
16752
|
-
}
|
|
16753
|
-
};
|
|
16754
|
-
GoogleChartWidget.prototype.convertToGoogleValue = function (value, type) {
|
|
16755
|
-
switch (type) {
|
|
16756
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Bool:
|
|
16757
|
-
return value.toString();
|
|
16758
|
-
default:
|
|
16759
|
-
return value;
|
|
16760
|
-
}
|
|
16761
|
-
};
|
|
16762
|
-
GoogleChartWidget.prototype.convertToGoogleFormat = function () {
|
|
16763
|
-
var googleTable = new google.visualization.DataTable();
|
|
16764
|
-
var columns = this.dataTable.columns;
|
|
16765
|
-
for (var i = 0; i < columns.count; i++) {
|
|
16766
|
-
var column = columns.get(i);
|
|
16767
|
-
googleTable.addColumn(this.convertToGoogleType(column.type), column.label, column.id);
|
|
16768
|
-
}
|
|
16769
|
-
var rows = this.dataTable.getCachedRows();
|
|
16770
|
-
googleTable.addRows(rows.length);
|
|
16771
|
-
for (var i = 0; i < rows.length; i++) {
|
|
16772
|
-
var row = rows[i];
|
|
16773
|
-
for (var j = 0; j < columns.count; j++) {
|
|
16774
|
-
googleTable.setCell(i, j, this.convertToGoogleValue(row.getValue(j), columns.get(j).type));
|
|
16775
|
-
}
|
|
16776
|
-
}
|
|
16777
|
-
return googleTable;
|
|
16778
|
-
};
|
|
16779
|
-
GoogleChartWidget.prototype.drawCore = function () {
|
|
16780
|
-
if (this.googleDataView != null) {
|
|
16781
|
-
this.options.legend = this.options.legend || {};
|
|
16782
|
-
var chartOptions = {
|
|
16783
|
-
width: "100%",
|
|
16784
|
-
height: "100%",
|
|
16785
|
-
chartArea: { width: this.getChartAreaWidth }
|
|
16786
|
-
};
|
|
16787
|
-
if (this.chartType == _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Doughnut) {
|
|
16788
|
-
chartOptions.pieHole = 0.4;
|
|
16789
|
-
}
|
|
16790
|
-
if (!this.options.legend.show) {
|
|
16791
|
-
chartOptions.legend = 'none';
|
|
16792
|
-
}
|
|
16793
|
-
else {
|
|
16794
|
-
chartOptions.legend = { position: this.options.legend.position };
|
|
16795
|
-
}
|
|
16796
|
-
var chart = this.createChart(this.chartDiv);
|
|
16797
|
-
chart.draw(this.googleDataView, chartOptions);
|
|
16798
|
-
}
|
|
16799
|
-
};
|
|
16800
|
-
GoogleChartWidget.prototype.getChartAreaWidth = function (chartType) {
|
|
16801
|
-
if (chartType == _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Pie) {
|
|
16802
|
-
return "100%";
|
|
16803
|
-
}
|
|
16804
|
-
else {
|
|
16805
|
-
return "50%";
|
|
16806
|
-
}
|
|
16807
|
-
};
|
|
16808
|
-
GoogleChartWidget.prototype.updateChartColumns = function () {
|
|
16809
|
-
if (this.googleDataView) {
|
|
16810
|
-
this.googleDataView.setColumns([].concat(this.labelColumn).concat(this.dataColumns));
|
|
16811
|
-
}
|
|
16812
|
-
};
|
|
16813
|
-
GoogleChartWidget.prototype.createChart = function (slot) {
|
|
16814
|
-
switch (this.chartType) {
|
|
16815
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Column:
|
|
16816
|
-
return new google.visualization.ColumnChart(slot);
|
|
16817
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Histogram:
|
|
16818
|
-
return new google.visualization.Histogram(slot);
|
|
16819
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Bar:
|
|
16820
|
-
return new google.visualization.BarChart(slot);
|
|
16821
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Combo:
|
|
16822
|
-
return new google.visualization.ComboChart(slot);
|
|
16823
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Area:
|
|
16824
|
-
return new google.visualization.AreaChart(slot);
|
|
16825
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Line:
|
|
16826
|
-
return new google.visualization.LineChart(slot);
|
|
16827
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].SteppedLine:
|
|
16828
|
-
return new google.visualization.SteppedAreaChart(slot);
|
|
16829
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Pie:
|
|
16830
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Doughnut:
|
|
16831
|
-
return new google.visualization.PieChart(slot);
|
|
16832
|
-
default:
|
|
16833
|
-
return new google.visualization.PieChart(slot);
|
|
16834
|
-
}
|
|
16835
|
-
};
|
|
16836
|
-
return GoogleChartWidget;
|
|
16837
|
-
}(_chart_widget__WEBPACK_IMPORTED_MODULE_1__[/* ChartWidget */ "a"]));
|
|
16838
|
-
|
|
16839
|
-
//# sourceMappingURL=chart_widget_google.js.map
|
|
16840
|
-
|
|
16841
|
-
/***/ }),
|
|
16842
|
-
/* 53 */
|
|
16843
16627
|
/***/ (function(module, exports, __webpack_require__) {
|
|
16844
16628
|
|
|
16845
16629
|
/* WEBPACK VAR INJECTION */(function(process, global) {/*!
|
|
@@ -18018,6 +17802,263 @@ return Promise$1;
|
|
|
18018
17802
|
|
|
18019
17803
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(97), __webpack_require__(98)))
|
|
18020
17804
|
|
|
17805
|
+
/***/ }),
|
|
17806
|
+
/* 52 */
|
|
17807
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
17808
|
+
|
|
17809
|
+
"use strict";
|
|
17810
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AttributeExpressionRenderer; });
|
|
17811
|
+
/* harmony import */ var _easydata_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
17812
|
+
/* harmony import */ var _easyquery_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
|
|
17813
|
+
/* harmony import */ var _easydata_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
|
|
17814
|
+
/* harmony import */ var _list_expression_renderer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(25);
|
|
17815
|
+
/* harmony import */ var _utils_browser_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3);
|
|
17816
|
+
/* harmony import */ var _types_qp_editable_part__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(10);
|
|
17817
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
17818
|
+
var extendStatics = function (d, b) {
|
|
17819
|
+
extendStatics = Object.setPrototypeOf ||
|
|
17820
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
17821
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
17822
|
+
return extendStatics(d, b);
|
|
17823
|
+
};
|
|
17824
|
+
return function (d, b) {
|
|
17825
|
+
extendStatics(d, b);
|
|
17826
|
+
function __() { this.constructor = d; }
|
|
17827
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
17828
|
+
};
|
|
17829
|
+
})();
|
|
17830
|
+
|
|
17831
|
+
|
|
17832
|
+
|
|
17833
|
+
|
|
17834
|
+
|
|
17835
|
+
|
|
17836
|
+
var AttributeExpressionRenderer = /** @class */ (function (_super) {
|
|
17837
|
+
__extends(AttributeExpressionRenderer, _super);
|
|
17838
|
+
function AttributeExpressionRenderer(panel, expression, entitiesMenu, slot) {
|
|
17839
|
+
var _this = _super.call(this, panel, expression, null, slot) || this;
|
|
17840
|
+
_this.menu = entitiesMenu;
|
|
17841
|
+
return _this;
|
|
17842
|
+
}
|
|
17843
|
+
AttributeExpressionRenderer.prototype.renderEditor = function () {
|
|
17844
|
+
//create menu
|
|
17845
|
+
};
|
|
17846
|
+
AttributeExpressionRenderer.prototype.getLabelText = function () {
|
|
17847
|
+
var model = this.panel.getContext().getModel();
|
|
17848
|
+
var attrId = this.expression.value;
|
|
17849
|
+
var attrObj = attrId ? model.getAttributeByIdSafe(attrId) : null;
|
|
17850
|
+
var attrFormat = this.panel.options.attrElementFormat;
|
|
17851
|
+
return attrObj ? model.getAttributeText(attrObj, attrFormat) : this.getEmptyText();
|
|
17852
|
+
};
|
|
17853
|
+
AttributeExpressionRenderer.prototype.setValue = function (value, silent) {
|
|
17854
|
+
if (silent === void 0) { silent = false; }
|
|
17855
|
+
silent = silent && value !== this.expression.value;
|
|
17856
|
+
var result = _super.prototype.setValue.call(this, value, true);
|
|
17857
|
+
if (!silent) {
|
|
17858
|
+
this.expression.getParent().fireChangedEvent(_easyquery_core__WEBPACK_IMPORTED_MODULE_1__["ConditionPart"].EntityAttr | _easyquery_core__WEBPACK_IMPORTED_MODULE_1__["ConditionPart"].Operator);
|
|
17859
|
+
}
|
|
17860
|
+
return result;
|
|
17861
|
+
};
|
|
17862
|
+
AttributeExpressionRenderer.prototype.isEditable = function () {
|
|
17863
|
+
return !this.isReadOnly()
|
|
17864
|
+
&& ((this.panel.options.editableParts & _types_qp_editable_part__WEBPACK_IMPORTED_MODULE_5__[/* QPEditablePart */ "a"].Attribute) === _types_qp_editable_part__WEBPACK_IMPORTED_MODULE_5__[/* QPEditablePart */ "a"].Attribute);
|
|
17865
|
+
};
|
|
17866
|
+
AttributeExpressionRenderer.prototype.getEmptyText = function () {
|
|
17867
|
+
return this.panel.options.emptyTextAttribute || _easydata_core__WEBPACK_IMPORTED_MODULE_0__["i18n"].getText('MsgEmptyAttrValue');
|
|
17868
|
+
};
|
|
17869
|
+
AttributeExpressionRenderer.prototype.getClassesToAdd = function () {
|
|
17870
|
+
return this.cssPrefix + "-condelement " + this.cssPrefix + "-attrelement";
|
|
17871
|
+
};
|
|
17872
|
+
AttributeExpressionRenderer.prototype.adjustWidth = function () {
|
|
17873
|
+
if (_utils_browser_utils__WEBPACK_IMPORTED_MODULE_4__[/* browserUtils */ "a"].isMobileMode()) {
|
|
17874
|
+
return;
|
|
17875
|
+
}
|
|
17876
|
+
var elWidth = this.element.clientWidth;
|
|
17877
|
+
var parWidth = this.element.parentElement.clientWidth;
|
|
17878
|
+
if (elWidth > parWidth / 2) {
|
|
17879
|
+
Object(_easydata_ui__WEBPACK_IMPORTED_MODULE_2__["domel"])(this.element)
|
|
17880
|
+
.addClass(this.cssPrefix + "-attrelement-wide");
|
|
17881
|
+
}
|
|
17882
|
+
};
|
|
17883
|
+
return AttributeExpressionRenderer;
|
|
17884
|
+
}(_list_expression_renderer__WEBPACK_IMPORTED_MODULE_3__[/* ListExpressionRenderer */ "b"]));
|
|
17885
|
+
|
|
17886
|
+
//# sourceMappingURL=attribute_expression_renderer.js.map
|
|
17887
|
+
|
|
17888
|
+
/***/ }),
|
|
17889
|
+
/* 53 */
|
|
17890
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
17891
|
+
|
|
17892
|
+
"use strict";
|
|
17893
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return GoogleChartWidget; });
|
|
17894
|
+
/* harmony import */ var _easydata_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
17895
|
+
/* harmony import */ var _chart_widget__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(47);
|
|
17896
|
+
/* harmony import */ var _chart_type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5);
|
|
17897
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
17898
|
+
var extendStatics = function (d, b) {
|
|
17899
|
+
extendStatics = Object.setPrototypeOf ||
|
|
17900
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
17901
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
17902
|
+
return extendStatics(d, b);
|
|
17903
|
+
};
|
|
17904
|
+
return function (d, b) {
|
|
17905
|
+
extendStatics(d, b);
|
|
17906
|
+
function __() { this.constructor = d; }
|
|
17907
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
17908
|
+
};
|
|
17909
|
+
})();
|
|
17910
|
+
|
|
17911
|
+
|
|
17912
|
+
|
|
17913
|
+
var GoogleChartWidget = /** @class */ (function (_super) {
|
|
17914
|
+
__extends(GoogleChartWidget, _super);
|
|
17915
|
+
/**
|
|
17916
|
+
* The default constructor.
|
|
17917
|
+
* @param slot The html element.
|
|
17918
|
+
* @param provider The provider.
|
|
17919
|
+
*/
|
|
17920
|
+
function GoogleChartWidget(slot) {
|
|
17921
|
+
var _this = _super.call(this, slot) || this;
|
|
17922
|
+
_this.hasChartTypes = [
|
|
17923
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Column,
|
|
17924
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Bar,
|
|
17925
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Histogram,
|
|
17926
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Combo,
|
|
17927
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Area,
|
|
17928
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Line,
|
|
17929
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].SteppedLine,
|
|
17930
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Pie,
|
|
17931
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Doughnut
|
|
17932
|
+
];
|
|
17933
|
+
_this.options.legend = {
|
|
17934
|
+
show: true,
|
|
17935
|
+
position: 'right'
|
|
17936
|
+
};
|
|
17937
|
+
return _this;
|
|
17938
|
+
}
|
|
17939
|
+
GoogleChartWidget.prototype.getWidgetType = function () {
|
|
17940
|
+
return 'chartGoogle';
|
|
17941
|
+
};
|
|
17942
|
+
GoogleChartWidget.prototype.canDraw = function () {
|
|
17943
|
+
return GoogleChartWidget.hasGoogleCharts();
|
|
17944
|
+
};
|
|
17945
|
+
GoogleChartWidget.hasGoogleCharts = function () {
|
|
17946
|
+
return typeof google !== 'undefined' && typeof google.charts !== 'undefined';
|
|
17947
|
+
};
|
|
17948
|
+
GoogleChartWidget.prototype.initChart = function () {
|
|
17949
|
+
if (GoogleChartWidget.hasGoogleCharts() && this.labelColumn >= 0
|
|
17950
|
+
&& this.dataColumns && this.dataColumns.length > 0) {
|
|
17951
|
+
this.googleDataView =
|
|
17952
|
+
new google.visualization.DataView(this.convertToGoogleFormat());
|
|
17953
|
+
this.updateChartColumns();
|
|
17954
|
+
}
|
|
17955
|
+
};
|
|
17956
|
+
GoogleChartWidget.prototype.convertToGoogleType = function (type) {
|
|
17957
|
+
switch (type) {
|
|
17958
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Date:
|
|
17959
|
+
return "date";
|
|
17960
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].DateTime:
|
|
17961
|
+
return "datetime";
|
|
17962
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Time:
|
|
17963
|
+
return "timeofday";
|
|
17964
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Byte:
|
|
17965
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Word:
|
|
17966
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Int32:
|
|
17967
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Int64:
|
|
17968
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Currency:
|
|
17969
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Float:
|
|
17970
|
+
return "number";
|
|
17971
|
+
default:
|
|
17972
|
+
return "string";
|
|
17973
|
+
}
|
|
17974
|
+
};
|
|
17975
|
+
GoogleChartWidget.prototype.convertToGoogleValue = function (value, type) {
|
|
17976
|
+
switch (type) {
|
|
17977
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Bool:
|
|
17978
|
+
return value.toString();
|
|
17979
|
+
default:
|
|
17980
|
+
return value;
|
|
17981
|
+
}
|
|
17982
|
+
};
|
|
17983
|
+
GoogleChartWidget.prototype.convertToGoogleFormat = function () {
|
|
17984
|
+
var googleTable = new google.visualization.DataTable();
|
|
17985
|
+
var columns = this.dataTable.columns;
|
|
17986
|
+
for (var i = 0; i < columns.count; i++) {
|
|
17987
|
+
var column = columns.get(i);
|
|
17988
|
+
googleTable.addColumn(this.convertToGoogleType(column.type), column.label, column.id);
|
|
17989
|
+
}
|
|
17990
|
+
var rows = this.dataTable.getCachedRows();
|
|
17991
|
+
googleTable.addRows(rows.length);
|
|
17992
|
+
for (var i = 0; i < rows.length; i++) {
|
|
17993
|
+
var row = rows[i];
|
|
17994
|
+
for (var j = 0; j < columns.count; j++) {
|
|
17995
|
+
googleTable.setCell(i, j, this.convertToGoogleValue(row.getValue(j), columns.get(j).type));
|
|
17996
|
+
}
|
|
17997
|
+
}
|
|
17998
|
+
return googleTable;
|
|
17999
|
+
};
|
|
18000
|
+
GoogleChartWidget.prototype.drawCore = function () {
|
|
18001
|
+
if (this.googleDataView != null) {
|
|
18002
|
+
this.options.legend = this.options.legend || {};
|
|
18003
|
+
var chartOptions = {
|
|
18004
|
+
width: "100%",
|
|
18005
|
+
height: "100%",
|
|
18006
|
+
chartArea: { width: this.getChartAreaWidth }
|
|
18007
|
+
};
|
|
18008
|
+
if (this.chartType == _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Doughnut) {
|
|
18009
|
+
chartOptions.pieHole = 0.4;
|
|
18010
|
+
}
|
|
18011
|
+
if (!this.options.legend.show) {
|
|
18012
|
+
chartOptions.legend = 'none';
|
|
18013
|
+
}
|
|
18014
|
+
else {
|
|
18015
|
+
chartOptions.legend = { position: this.options.legend.position };
|
|
18016
|
+
}
|
|
18017
|
+
var chart = this.createChart(this.chartDiv);
|
|
18018
|
+
chart.draw(this.googleDataView, chartOptions);
|
|
18019
|
+
}
|
|
18020
|
+
};
|
|
18021
|
+
GoogleChartWidget.prototype.getChartAreaWidth = function (chartType) {
|
|
18022
|
+
if (chartType == _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Pie) {
|
|
18023
|
+
return "100%";
|
|
18024
|
+
}
|
|
18025
|
+
else {
|
|
18026
|
+
return "50%";
|
|
18027
|
+
}
|
|
18028
|
+
};
|
|
18029
|
+
GoogleChartWidget.prototype.updateChartColumns = function () {
|
|
18030
|
+
if (this.googleDataView) {
|
|
18031
|
+
this.googleDataView.setColumns([].concat(this.labelColumn).concat(this.dataColumns));
|
|
18032
|
+
}
|
|
18033
|
+
};
|
|
18034
|
+
GoogleChartWidget.prototype.createChart = function (slot) {
|
|
18035
|
+
switch (this.chartType) {
|
|
18036
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Column:
|
|
18037
|
+
return new google.visualization.ColumnChart(slot);
|
|
18038
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Histogram:
|
|
18039
|
+
return new google.visualization.Histogram(slot);
|
|
18040
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Bar:
|
|
18041
|
+
return new google.visualization.BarChart(slot);
|
|
18042
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Combo:
|
|
18043
|
+
return new google.visualization.ComboChart(slot);
|
|
18044
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Area:
|
|
18045
|
+
return new google.visualization.AreaChart(slot);
|
|
18046
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Line:
|
|
18047
|
+
return new google.visualization.LineChart(slot);
|
|
18048
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].SteppedLine:
|
|
18049
|
+
return new google.visualization.SteppedAreaChart(slot);
|
|
18050
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Pie:
|
|
18051
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Doughnut:
|
|
18052
|
+
return new google.visualization.PieChart(slot);
|
|
18053
|
+
default:
|
|
18054
|
+
return new google.visualization.PieChart(slot);
|
|
18055
|
+
}
|
|
18056
|
+
};
|
|
18057
|
+
return GoogleChartWidget;
|
|
18058
|
+
}(_chart_widget__WEBPACK_IMPORTED_MODULE_1__[/* ChartWidget */ "a"]));
|
|
18059
|
+
|
|
18060
|
+
//# sourceMappingURL=chart_widget_google.js.map
|
|
18061
|
+
|
|
18021
18062
|
/***/ }),
|
|
18022
18063
|
/* 54 */
|
|
18023
18064
|
/***/ (function(module, exports, __webpack_require__) {
|
|
@@ -19196,7 +19237,7 @@ return Promise$1;
|
|
|
19196
19237
|
|
|
19197
19238
|
//# sourceMappingURL=es6-promise.map
|
|
19198
19239
|
|
|
19199
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
19240
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(119), __webpack_require__(120)))
|
|
19200
19241
|
|
|
19201
19242
|
/***/ }),
|
|
19202
19243
|
/* 55 */
|
|
@@ -19746,7 +19787,7 @@ var BrowserQueryStorage = /** @class */ (function () {
|
|
|
19746
19787
|
}());
|
|
19747
19788
|
|
|
19748
19789
|
//# sourceMappingURL=query_storage.js.map
|
|
19749
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
19790
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(51)))
|
|
19750
19791
|
|
|
19751
19792
|
/***/ }),
|
|
19752
19793
|
/* 62 */
|
|
@@ -19787,7 +19828,7 @@ var EqModelLoader = /** @class */ (function () {
|
|
|
19787
19828
|
}());
|
|
19788
19829
|
|
|
19789
19830
|
//# sourceMappingURL=model_loader.js.map
|
|
19790
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
19831
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(51)))
|
|
19791
19832
|
|
|
19792
19833
|
/***/ }),
|
|
19793
19834
|
/* 63 */
|
|
@@ -19905,7 +19946,7 @@ var DefaultAggregatesCalculator = /** @class */ (function () {
|
|
|
19905
19946
|
}());
|
|
19906
19947
|
|
|
19907
19948
|
//# sourceMappingURL=eq_aggr_container.js.map
|
|
19908
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
19949
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(51)))
|
|
19909
19950
|
|
|
19910
19951
|
/***/ }),
|
|
19911
19952
|
/* 64 */
|
|
@@ -19964,7 +20005,7 @@ var EasyQueryDataLoader = /** @class */ (function () {
|
|
|
19964
20005
|
}());
|
|
19965
20006
|
|
|
19966
20007
|
//# sourceMappingURL=eq_data_loader.js.map
|
|
19967
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
20008
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(51)))
|
|
19968
20009
|
|
|
19969
20010
|
/***/ }),
|
|
19970
20011
|
/* 65 */
|
|
@@ -21306,7 +21347,7 @@ var DefaultDialogSet = /** @class */ (function () {
|
|
|
21306
21347
|
}());
|
|
21307
21348
|
|
|
21308
21349
|
//# sourceMappingURL=default_dialog_service.js.map
|
|
21309
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
21350
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(105)))
|
|
21310
21351
|
|
|
21311
21352
|
/***/ }),
|
|
21312
21353
|
/* 69 */
|
|
@@ -23159,7 +23200,6 @@ var AggrFuncColumnRendererCB = /** @class */ (function (_super) {
|
|
|
23159
23200
|
.getAttributeByIdSafe(this.column.expr.args[0].value);
|
|
23160
23201
|
};
|
|
23161
23202
|
AggrFuncColumnRendererCB.prototype.getDefaultCaption = function () {
|
|
23162
|
-
console.log('Calling getDefaultCaption() AGGR');
|
|
23163
23203
|
return this.getDefaultTitleText(this.baseAttr) + ' '
|
|
23164
23204
|
+ this.bar.getContext().getModel().getAggrFunctionCaption(this.column.expr.func);
|
|
23165
23205
|
};
|
|
@@ -23509,7 +23549,6 @@ var ColumnRendererCB = /** @class */ (function () {
|
|
|
23509
23549
|
.toDOM();
|
|
23510
23550
|
};
|
|
23511
23551
|
ColumnRendererCB.prototype.getDefaultCaption = function () {
|
|
23512
|
-
console.log('Calling getDefaultCaption() BASE');
|
|
23513
23552
|
return this.getDefaultTitleText(this.baseAttr);
|
|
23514
23553
|
};
|
|
23515
23554
|
ColumnRendererCB.prototype.getDefaultTitleText = function (attr) {
|
|
@@ -23812,7 +23851,7 @@ var TextRenderer = /** @class */ (function () {
|
|
|
23812
23851
|
/* harmony import */ var _easydata_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
23813
23852
|
/* harmony import */ var _easyquery_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
|
|
23814
23853
|
/* harmony import */ var _easydata_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
|
|
23815
|
-
/* harmony import */ var _condition_renderer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
23854
|
+
/* harmony import */ var _condition_renderer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(35);
|
|
23816
23855
|
/* harmony import */ var _utils_browser_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3);
|
|
23817
23856
|
/* harmony import */ var _utils_dropdown__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77);
|
|
23818
23857
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
@@ -25352,7 +25391,7 @@ var ProcessWidget = /** @class */ (function (_super) {
|
|
|
25352
25391
|
/* harmony import */ var _types_facet_type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(13);
|
|
25353
25392
|
/* harmony import */ var _result_facet__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(31);
|
|
25354
25393
|
/* harmony import */ var _widgets_charts_chart_widget_chartjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(46);
|
|
25355
|
-
/* harmony import */ var _widgets_charts_chart_widget_google__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
25394
|
+
/* harmony import */ var _widgets_charts_chart_widget_google__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(53);
|
|
25356
25395
|
/* harmony import */ var _utils_browser_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(3);
|
|
25357
25396
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
25358
25397
|
var extendStatics = function (d, b) {
|
|
@@ -25626,6 +25665,12 @@ var AggrFunc;
|
|
|
25626
25665
|
AggrFunc["Max"] = "MAX";
|
|
25627
25666
|
AggrFunc["Count"] = "COUNT";
|
|
25628
25667
|
})(AggrFunc || (AggrFunc = {}));
|
|
25668
|
+
var FormFieldType;
|
|
25669
|
+
(function (FormFieldType) {
|
|
25670
|
+
FormFieldType[FormFieldType["ColumnField"] = 0] = "ColumnField";
|
|
25671
|
+
FormFieldType[FormFieldType["RowField"] = 1] = "RowField";
|
|
25672
|
+
FormFieldType[FormFieldType["CellData"] = 2] = "CellData";
|
|
25673
|
+
})(FormFieldType || (FormFieldType = {}));
|
|
25629
25674
|
var DFMT_REGEX = /{0:(.*?)}/g;
|
|
25630
25675
|
var PivotTableFacet = /** @class */ (function (_super) {
|
|
25631
25676
|
__extends(PivotTableFacet, _super);
|
|
@@ -25714,9 +25759,10 @@ var PivotTableFacet = /** @class */ (function (_super) {
|
|
|
25714
25759
|
}
|
|
25715
25760
|
return csb;
|
|
25716
25761
|
};
|
|
25717
|
-
PivotTableFacet.prototype.createColumnsSelectBuilder = function (allowedTypes, colName) {
|
|
25762
|
+
PivotTableFacet.prototype.createColumnsSelectBuilder = function (allowedTypes, colName, formFieldType) {
|
|
25718
25763
|
var dataTable = this.getContextDataTable();
|
|
25719
25764
|
var csb = Object(_easydata_ui__WEBPACK_IMPORTED_MODULE_0__["domel"])('select');
|
|
25765
|
+
var firstNumericColIndex = null;
|
|
25720
25766
|
var _loop_2 = function (i) {
|
|
25721
25767
|
var column = dataTable.columns.get(i);
|
|
25722
25768
|
var colLabel = column.label;
|
|
@@ -25724,6 +25770,9 @@ var PivotTableFacet = /** @class */ (function (_super) {
|
|
|
25724
25770
|
var colId = column.id;
|
|
25725
25771
|
if (allowedTypes && allowedTypes.indexOf(colType) < 0)
|
|
25726
25772
|
return "continue";
|
|
25773
|
+
if (firstNumericColIndex === null && _easydata_core__WEBPACK_IMPORTED_MODULE_1__["utils"].isNumericType(colType)) {
|
|
25774
|
+
firstNumericColIndex = i;
|
|
25775
|
+
}
|
|
25727
25776
|
csb.addChild('option', function (b) {
|
|
25728
25777
|
b
|
|
25729
25778
|
.attr('value', colId)
|
|
@@ -25745,7 +25794,20 @@ var PivotTableFacet = /** @class */ (function (_super) {
|
|
|
25745
25794
|
}
|
|
25746
25795
|
}
|
|
25747
25796
|
else {
|
|
25748
|
-
|
|
25797
|
+
switch (formFieldType) {
|
|
25798
|
+
case FormFieldType.ColumnField: {
|
|
25799
|
+
csb.toDOM().value = options[0].value;
|
|
25800
|
+
break;
|
|
25801
|
+
}
|
|
25802
|
+
case FormFieldType.RowField: {
|
|
25803
|
+
csb.toDOM().value = options.length > 1 ? options[1].value : options[0].value;
|
|
25804
|
+
break;
|
|
25805
|
+
}
|
|
25806
|
+
case FormFieldType.CellData: {
|
|
25807
|
+
csb.toDOM().value = firstNumericColIndex === null ? options[0].value : options[firstNumericColIndex].value;
|
|
25808
|
+
break;
|
|
25809
|
+
}
|
|
25810
|
+
}
|
|
25749
25811
|
}
|
|
25750
25812
|
}
|
|
25751
25813
|
return csb;
|
|
@@ -25790,7 +25852,7 @@ var PivotTableFacet = /** @class */ (function (_super) {
|
|
|
25790
25852
|
.addChild('div', function (b) { return b
|
|
25791
25853
|
.addClass('kfrm-select')
|
|
25792
25854
|
.attr('name', 'column_field')
|
|
25793
|
-
.addChildElement(_this.createColumnsSelectBuilder(colTypes, settings.colName)
|
|
25855
|
+
.addChildElement(_this.createColumnsSelectBuilder(colTypes, settings.colName, FormFieldType.ColumnField)
|
|
25794
25856
|
.id('pivotTableColFieldSelector')
|
|
25795
25857
|
.toDOM()); })
|
|
25796
25858
|
.addChild('button', function (b) { return b
|
|
@@ -25812,7 +25874,7 @@ var PivotTableFacet = /** @class */ (function (_super) {
|
|
|
25812
25874
|
.addChild('div', function (b) { return b
|
|
25813
25875
|
.addClass('kfrm-select')
|
|
25814
25876
|
.attr('name', 'row_field')
|
|
25815
|
-
.addChildElement(_this.createColumnsSelectBuilder(colTypes, settings.rowName)
|
|
25877
|
+
.addChildElement(_this.createColumnsSelectBuilder(colTypes, settings.rowName, FormFieldType.RowField)
|
|
25816
25878
|
.id('pivotTableRowFieldSelector')
|
|
25817
25879
|
.toDOM()); });
|
|
25818
25880
|
current = getCurrent();
|
|
@@ -25832,7 +25894,7 @@ var PivotTableFacet = /** @class */ (function (_super) {
|
|
|
25832
25894
|
.addChild('div', function (b) { return b
|
|
25833
25895
|
.addClass('kfrm-select')
|
|
25834
25896
|
.attr('name', 'data_column')
|
|
25835
|
-
.addChildElement(_this.createColumnsSelectBuilder(fieldTypes, settings.fieldName)
|
|
25897
|
+
.addChildElement(_this.createColumnsSelectBuilder(fieldTypes, settings.fieldName, FormFieldType.CellData)
|
|
25836
25898
|
.on('change', function (ev) {
|
|
25837
25899
|
var colId = ev.target.value;
|
|
25838
25900
|
_this.validateSelectedField(colId);
|
|
@@ -26599,7 +26661,7 @@ var AggrSettingsDialog = /** @class */ (function () {
|
|
|
26599
26661
|
var ds = _this.context.getServices().getDialogService();
|
|
26600
26662
|
_this.body = _this.renderBody();
|
|
26601
26663
|
var dlg = ds.open({
|
|
26602
|
-
title: '
|
|
26664
|
+
title: _easyquery_core__WEBPACK_IMPORTED_MODULE_1__["i18n"].getText('AggrSettings', 'AggrDialogTitle'),
|
|
26603
26665
|
body: _this.body,
|
|
26604
26666
|
onSubmit: function () {
|
|
26605
26667
|
if (_this.query.enableAggregation && !_this.renderer.isValid())
|
|
@@ -26660,10 +26722,10 @@ var AggrSettingsDialog = /** @class */ (function () {
|
|
|
26660
26722
|
b.on('change', _this.enableAggrCheckBoxChangeHandler.bind(_this));
|
|
26661
26723
|
})
|
|
26662
26724
|
.addChild('span', function (b) { return b
|
|
26663
|
-
.addClass('slider round'); })
|
|
26725
|
+
.addClass('slider round'); })
|
|
26664
26726
|
.addChild('span', function (b) { return b
|
|
26665
26727
|
.addClass('switch-text')
|
|
26666
|
-
.addText(_easyquery_core__WEBPACK_IMPORTED_MODULE_1__["i18n"].getText('AggrSettings', 'EnableAggrLabel')); }); })
|
|
26728
|
+
.addText(_easyquery_core__WEBPACK_IMPORTED_MODULE_1__["i18n"].getText('AggrSettings', 'EnableAggrLabel')); }); }); })
|
|
26667
26729
|
.addChild('div', function (b) { return b
|
|
26668
26730
|
.id('AggrSettingsComponent'); });
|
|
26669
26731
|
return b.toDOM();
|
|
@@ -26842,10 +26904,10 @@ var AggrSettingsRenderer = /** @class */ (function () {
|
|
|
26842
26904
|
b.on('change', _this.countsCheckboxChangeHandler.bind(_this));
|
|
26843
26905
|
})
|
|
26844
26906
|
.addChild('span', function (b) { return b
|
|
26845
|
-
.addClass('slider round'); })
|
|
26907
|
+
.addClass('slider round'); })
|
|
26846
26908
|
.addChild('span', function (b) { return b
|
|
26847
26909
|
.addClass('switch-text')
|
|
26848
|
-
.addText(_easyquery_core__WEBPACK_IMPORTED_MODULE_3__["i18n"].getText('AggrSettings', 'GroupCountsLabel')); }); })
|
|
26910
|
+
.addText(_easyquery_core__WEBPACK_IMPORTED_MODULE_3__["i18n"].getText('AggrSettings', 'GroupCountsLabel')); }); }); })
|
|
26849
26911
|
.addChild('div', function (b) { return b
|
|
26850
26912
|
.addClass(_this.cssPrefix + "-grandtotals")
|
|
26851
26913
|
.addChild('label', function (b) { return b
|
|
@@ -26858,10 +26920,10 @@ var AggrSettingsRenderer = /** @class */ (function () {
|
|
|
26858
26920
|
b.on('change', _this.grandCheckboxChangeHandler.bind(_this));
|
|
26859
26921
|
})
|
|
26860
26922
|
.addChild('span', function (b) { return b
|
|
26861
|
-
.addClass('slider round'); })
|
|
26923
|
+
.addClass('slider round'); })
|
|
26862
26924
|
.addChild('span', function (b) { return b
|
|
26863
26925
|
.addClass('switch-text')
|
|
26864
|
-
.addText(_easyquery_core__WEBPACK_IMPORTED_MODULE_3__["i18n"].getText('AggrSettings', 'GrandTotalsLabel')); }); });
|
|
26926
|
+
.addText(_easyquery_core__WEBPACK_IMPORTED_MODULE_3__["i18n"].getText('AggrSettings', 'GrandTotalsLabel')); }); }); });
|
|
26865
26927
|
var groups = this.slot.querySelectorAll("." + this.cssPrefix + "-group");
|
|
26866
26928
|
groups.forEach(function (el) {
|
|
26867
26929
|
Object(_easydata_ui__WEBPACK_IMPORTED_MODULE_1__["domel"])(el)
|
|
@@ -28105,6 +28167,9 @@ var result_facets_panel_ResultFacetsPanel = /** @class */ (function (_super) {
|
|
|
28105
28167
|
ResultFacetsPanel.prototype.attachQueryObserver = function () {
|
|
28106
28168
|
var _this = this;
|
|
28107
28169
|
var query = this.getQuery();
|
|
28170
|
+
if (this.queryEventCallbackId) {
|
|
28171
|
+
query.removeChangedCallback(this.queryEventCallbackId);
|
|
28172
|
+
}
|
|
28108
28173
|
this.queryEventCallbackId = query.addChangedCallback(function (event) {
|
|
28109
28174
|
//if something has changed, and that change is related to columns
|
|
28110
28175
|
var edata = event.data;
|
|
@@ -28750,8 +28815,8 @@ module.exports = g;
|
|
|
28750
28815
|
/* WEBPACK VAR INJECTION */(function(Promise) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return HttpResponseError; });
|
|
28751
28816
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return HttpClient; });
|
|
28752
28817
|
/* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11);
|
|
28753
|
-
/* harmony import */ var _http_action_result__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
28754
|
-
/* harmony import */ var _http_method__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
28818
|
+
/* harmony import */ var _http_action_result__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(107);
|
|
28819
|
+
/* harmony import */ var _http_method__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36);
|
|
28755
28820
|
/* harmony import */ var _http_request__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(55);
|
|
28756
28821
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
28757
28822
|
var extendStatics = function (d, b) {
|
|
@@ -30246,6 +30311,7 @@ var EasyDataTable = /** @class */ (function () {
|
|
|
30246
30311
|
this.cachedRows = [];
|
|
30247
30312
|
this.total = 0;
|
|
30248
30313
|
this.needTotal = !this._elasticChunks;
|
|
30314
|
+
this.fireUpdated();
|
|
30249
30315
|
};
|
|
30250
30316
|
EasyDataTable.prototype.createRow = function (dataOrRow) {
|
|
30251
30317
|
var _this = this;
|
|
@@ -30508,13 +30574,40 @@ var GoogleDataConverter = /** @class */ (function () {
|
|
|
30508
30574
|
/* 103 */
|
|
30509
30575
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
30510
30576
|
|
|
30577
|
+
"use strict";
|
|
30578
|
+
/* WEBPACK VAR INJECTION */(function(Promise) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return InMemoryModelStorage; });
|
|
30579
|
+
/* harmony import */ var _easydata_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
30580
|
+
|
|
30581
|
+
var InMemoryModelStorage = /** @class */ (function () {
|
|
30582
|
+
function InMemoryModelStorage(models) {
|
|
30583
|
+
this.models = [];
|
|
30584
|
+
if (models) {
|
|
30585
|
+
_easydata_core__WEBPACK_IMPORTED_MODULE_0__["utils"].assign(this.models, [], models);
|
|
30586
|
+
}
|
|
30587
|
+
}
|
|
30588
|
+
InMemoryModelStorage.prototype.getModels = function () {
|
|
30589
|
+
var _this = this;
|
|
30590
|
+
return new Promise(function (resolve, reject) {
|
|
30591
|
+
resolve(_this.models);
|
|
30592
|
+
});
|
|
30593
|
+
};
|
|
30594
|
+
return InMemoryModelStorage;
|
|
30595
|
+
}());
|
|
30596
|
+
|
|
30597
|
+
//# sourceMappingURL=model_storage.js.map
|
|
30598
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(51)))
|
|
30599
|
+
|
|
30600
|
+
/***/ }),
|
|
30601
|
+
/* 104 */
|
|
30602
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
30603
|
+
|
|
30511
30604
|
"use strict";
|
|
30512
30605
|
/* WEBPACK VAR INJECTION */(function(Promise) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return EasyGrid; });
|
|
30513
30606
|
/* harmony import */ var _easydata_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
30514
|
-
/* harmony import */ var _utils_drag_manager__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
30607
|
+
/* harmony import */ var _utils_drag_manager__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(37);
|
|
30515
30608
|
/* harmony import */ var _utils_dom_elem_builder__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6);
|
|
30516
30609
|
/* harmony import */ var _utils_ui_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(18);
|
|
30517
|
-
/* harmony import */ var _easy_grid_options__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
30610
|
+
/* harmony import */ var _easy_grid_options__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(34);
|
|
30518
30611
|
/* harmony import */ var _easy_grid_columns__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(21);
|
|
30519
30612
|
/* harmony import */ var _easy_grid_cell_renderer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(39);
|
|
30520
30613
|
var __assign = (undefined && undefined.__assign) || function () {
|
|
@@ -30569,7 +30662,7 @@ var EasyGrid = /** @class */ (function () {
|
|
|
30569
30662
|
pageSizeItems: [20, 30, 50, 100, 200]
|
|
30570
30663
|
},
|
|
30571
30664
|
columnWidths: {
|
|
30572
|
-
autoResize: _easy_grid_options__WEBPACK_IMPORTED_MODULE_4__[/* AutoResizeColumns */ "a"].
|
|
30665
|
+
autoResize: _easy_grid_options__WEBPACK_IMPORTED_MODULE_4__[/* AutoResizeColumns */ "a"].Always,
|
|
30573
30666
|
stringColumns: {
|
|
30574
30667
|
min: 100,
|
|
30575
30668
|
max: 500,
|
|
@@ -30807,9 +30900,6 @@ var EasyGrid = /** @class */ (function () {
|
|
|
30807
30900
|
.then(function () {
|
|
30808
30901
|
_this.firstRender = false;
|
|
30809
30902
|
_this.rowsOnPagePromise = null;
|
|
30810
|
-
if (needAutoResize) {
|
|
30811
|
-
_this.resizeColumns();
|
|
30812
|
-
}
|
|
30813
30903
|
});
|
|
30814
30904
|
}
|
|
30815
30905
|
else {
|
|
@@ -30982,9 +31072,15 @@ var EasyGrid = /** @class */ (function () {
|
|
|
30982
31072
|
_this.updateTotalsState(groups_1, row, true);
|
|
30983
31073
|
}
|
|
30984
31074
|
}
|
|
30985
|
-
var
|
|
30986
|
-
|
|
30987
|
-
.
|
|
31075
|
+
var needAutoResize = _this.options.columnWidths.autoResize !== _easy_grid_options__WEBPACK_IMPORTED_MODULE_4__[/* AutoResizeColumns */ "a"].Never;
|
|
31076
|
+
if (needAutoResize) {
|
|
31077
|
+
_this.resizeColumns();
|
|
31078
|
+
}
|
|
31079
|
+
else {
|
|
31080
|
+
var containerWidth = _this.getContainerWidth();
|
|
31081
|
+
Object(_utils_dom_elem_builder__WEBPACK_IMPORTED_MODULE_2__[/* domel */ "e"])(_this.bodyCellContainerDiv)
|
|
31082
|
+
.setStyle('width', containerWidth + "px");
|
|
31083
|
+
}
|
|
30988
31084
|
return rowsToRender;
|
|
30989
31085
|
})
|
|
30990
31086
|
.catch(function (error) { console.error(error); return 0; });
|
|
@@ -31672,10 +31768,10 @@ var EasyGrid = /** @class */ (function () {
|
|
|
31672
31768
|
}());
|
|
31673
31769
|
|
|
31674
31770
|
//# sourceMappingURL=easy_grid.js.map
|
|
31675
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
31771
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(105)))
|
|
31676
31772
|
|
|
31677
31773
|
/***/ }),
|
|
31678
|
-
/*
|
|
31774
|
+
/* 105 */
|
|
31679
31775
|
/***/ (function(module, exports, __webpack_require__) {
|
|
31680
31776
|
|
|
31681
31777
|
/* WEBPACK VAR INJECTION */(function(process, global) {/*!
|
|
@@ -32855,7 +32951,7 @@ return Promise$1;
|
|
|
32855
32951
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(97), __webpack_require__(98)))
|
|
32856
32952
|
|
|
32857
32953
|
/***/ }),
|
|
32858
|
-
/*
|
|
32954
|
+
/* 106 */
|
|
32859
32955
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
32860
32956
|
|
|
32861
32957
|
"use strict";
|
|
@@ -33584,7 +33680,7 @@ var AdvancedSearchView = /** @class */ (function (_super) {
|
|
|
33584
33680
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(54)))
|
|
33585
33681
|
|
|
33586
33682
|
/***/ }),
|
|
33587
|
-
/*
|
|
33683
|
+
/* 107 */
|
|
33588
33684
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
33589
33685
|
|
|
33590
33686
|
"use strict";
|
|
@@ -33615,33 +33711,27 @@ var HttpActionResult = /** @class */ (function () {
|
|
|
33615
33711
|
//# sourceMappingURL=http_action_result.js.map
|
|
33616
33712
|
|
|
33617
33713
|
/***/ }),
|
|
33618
|
-
/*
|
|
33714
|
+
/* 108 */
|
|
33619
33715
|
/***/ (function(module, exports, __webpack_require__) {
|
|
33620
33716
|
|
|
33621
|
-
__webpack_require__(
|
|
33622
|
-
module.exports = __webpack_require__(
|
|
33717
|
+
__webpack_require__(109);
|
|
33718
|
+
module.exports = __webpack_require__(124);
|
|
33623
33719
|
|
|
33624
33720
|
|
|
33625
33721
|
/***/ }),
|
|
33626
|
-
/*
|
|
33722
|
+
/* 109 */
|
|
33627
33723
|
/***/ (function(module, exports, __webpack_require__) {
|
|
33628
33724
|
|
|
33629
|
-
__webpack_require__(109);
|
|
33630
33725
|
__webpack_require__(110);
|
|
33631
33726
|
__webpack_require__(111);
|
|
33632
|
-
|
|
33633
33727
|
__webpack_require__(112);
|
|
33728
|
+
|
|
33634
33729
|
__webpack_require__(113);
|
|
33635
33730
|
__webpack_require__(114);
|
|
33636
33731
|
__webpack_require__(115);
|
|
33637
33732
|
__webpack_require__(116);
|
|
33638
|
-
__webpack_require__(117);
|
|
33639
|
-
|
|
33640
|
-
/***/ }),
|
|
33641
|
-
/* 109 */
|
|
33642
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
33643
|
-
|
|
33644
|
-
// extracted by mini-css-extract-plugin
|
|
33733
|
+
__webpack_require__(117);
|
|
33734
|
+
__webpack_require__(118);
|
|
33645
33735
|
|
|
33646
33736
|
/***/ }),
|
|
33647
33737
|
/* 110 */
|
|
@@ -33693,6 +33783,12 @@ __webpack_require__(117);
|
|
|
33693
33783
|
|
|
33694
33784
|
/***/ }),
|
|
33695
33785
|
/* 118 */
|
|
33786
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
33787
|
+
|
|
33788
|
+
// extracted by mini-css-extract-plugin
|
|
33789
|
+
|
|
33790
|
+
/***/ }),
|
|
33791
|
+
/* 119 */
|
|
33696
33792
|
/***/ (function(module, exports) {
|
|
33697
33793
|
|
|
33698
33794
|
// shim for using process in browser
|
|
@@ -33882,7 +33978,7 @@ process.umask = function() { return 0; };
|
|
|
33882
33978
|
|
|
33883
33979
|
|
|
33884
33980
|
/***/ }),
|
|
33885
|
-
/*
|
|
33981
|
+
/* 120 */
|
|
33886
33982
|
/***/ (function(module, exports) {
|
|
33887
33983
|
|
|
33888
33984
|
var g;
|
|
@@ -33908,10 +34004,10 @@ module.exports = g;
|
|
|
33908
34004
|
|
|
33909
34005
|
|
|
33910
34006
|
/***/ }),
|
|
33911
|
-
/* 120 */,
|
|
33912
34007
|
/* 121 */,
|
|
33913
34008
|
/* 122 */,
|
|
33914
|
-
/* 123
|
|
34009
|
+
/* 123 */,
|
|
34010
|
+
/* 124 */
|
|
33915
34011
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
33916
34012
|
|
|
33917
34013
|
"use strict";
|
|
@@ -34457,7 +34553,7 @@ var chart_type = __webpack_require__(5);
|
|
|
34457
34553
|
var chart_widget = __webpack_require__(47);
|
|
34458
34554
|
|
|
34459
34555
|
// EXTERNAL MODULE: ./dist/lib/widgets/charts/chart_widget_google.js
|
|
34460
|
-
var chart_widget_google = __webpack_require__(
|
|
34556
|
+
var chart_widget_google = __webpack_require__(53);
|
|
34461
34557
|
|
|
34462
34558
|
// EXTERNAL MODULE: ./dist/lib/widgets/charts/chart_widget_chartjs.js
|
|
34463
34559
|
var chart_widget_chartjs = __webpack_require__(46);
|
|
@@ -34499,13 +34595,13 @@ var input_expression_renderer = __webpack_require__(78);
|
|
|
34499
34595
|
var datetime_expression_render = __webpack_require__(81);
|
|
34500
34596
|
|
|
34501
34597
|
// EXTERNAL MODULE: ./dist/lib/widgets/renderers/querypanel/condition_renderer.js
|
|
34502
|
-
var condition_renderer = __webpack_require__(
|
|
34598
|
+
var condition_renderer = __webpack_require__(35);
|
|
34503
34599
|
|
|
34504
34600
|
// EXTERNAL MODULE: ./dist/lib/widgets/renderers/querypanel/condition_group_renderer.js
|
|
34505
34601
|
var condition_group_renderer = __webpack_require__(76);
|
|
34506
34602
|
|
|
34507
34603
|
// EXTERNAL MODULE: ./dist/lib/widgets/renderers/querypanel/attribute_expression_renderer.js
|
|
34508
|
-
var attribute_expression_renderer = __webpack_require__(
|
|
34604
|
+
var attribute_expression_renderer = __webpack_require__(52);
|
|
34509
34605
|
|
|
34510
34606
|
// EXTERNAL MODULE: ./dist/lib/widgets/renderers/querypanel/expression_renderer.js
|
|
34511
34607
|
var expression_renderer = __webpack_require__(23);
|
|
@@ -34541,7 +34637,7 @@ var pivot_table_facet = __webpack_require__(88);
|
|
|
34541
34637
|
var view = __webpack_require__(32);
|
|
34542
34638
|
|
|
34543
34639
|
// EXTERNAL MODULE: ./dist/lib/views/adv_search_view.js
|
|
34544
|
-
var adv_search_view = __webpack_require__(
|
|
34640
|
+
var adv_search_view = __webpack_require__(106);
|
|
34545
34641
|
|
|
34546
34642
|
// CONCATENATED MODULE: ./dist/lib/views/data_filter_view.js
|
|
34547
34643
|
var data_filter_view_extends = (undefined && undefined.__extends) || (function () {
|
|
@@ -34565,7 +34661,9 @@ var data_filter_view_extends = (undefined && undefined.__extends) || (function (
|
|
|
34565
34661
|
var data_filter_view_DataFilterView = /** @class */ (function (_super) {
|
|
34566
34662
|
data_filter_view_extends(DataFilterView, _super);
|
|
34567
34663
|
function DataFilterView() {
|
|
34568
|
-
|
|
34664
|
+
var _this = _super.call(this) || this;
|
|
34665
|
+
_this.resultOptions.fetchEmptyQueries = true;
|
|
34666
|
+
return _this;
|
|
34569
34667
|
}
|
|
34570
34668
|
DataFilterView.prototype.initOptions = function (options) {
|
|
34571
34669
|
var _this = this;
|
|
@@ -34643,7 +34741,9 @@ var html_data_filter_view_extends = (undefined && undefined.__extends) || (funct
|
|
|
34643
34741
|
var html_data_filter_view_HtmlDataFilterView = /** @class */ (function (_super) {
|
|
34644
34742
|
html_data_filter_view_extends(HtmlDataFilterView, _super);
|
|
34645
34743
|
function HtmlDataFilterView() {
|
|
34646
|
-
|
|
34744
|
+
var _this = _super.call(this) || this;
|
|
34745
|
+
_this.resultOptions.fetchEmptyQueries = true;
|
|
34746
|
+
return _this;
|
|
34647
34747
|
}
|
|
34648
34748
|
/**
|
|
34649
34749
|
* Creates the widget that represents Grid Widget.
|
|
@@ -34716,7 +34816,7 @@ var report_view_ReportView = /** @class */ (function (_super) {
|
|
|
34716
34816
|
_this.loadReportButtonClickHandler = _this.loadReportButtonClick.bind(_this);
|
|
34717
34817
|
_this.saveReportButtonClickHandler = _this.saveReportButtonClick.bind(_this);
|
|
34718
34818
|
_this.removeReportButtonClickHandler = _this.removeReportButtonClick.bind(_this);
|
|
34719
|
-
_this.
|
|
34819
|
+
_this.reloadReportDataButtonClickHandler = _this.reloadReportDataButtonClick.bind(_this);
|
|
34720
34820
|
browser_utils["a" /* browserUtils */].onMobileModeChanged(function (_) {
|
|
34721
34821
|
document.location.reload();
|
|
34722
34822
|
});
|
|
@@ -34803,7 +34903,7 @@ var report_view_ReportView = /** @class */ (function (_super) {
|
|
|
34803
34903
|
var loadReportButton = "LoadReportButton";
|
|
34804
34904
|
var saveReportButton = "SaveReportButton";
|
|
34805
34905
|
var removeReportButton = "RemoveReportButton";
|
|
34806
|
-
var
|
|
34906
|
+
var reloadReportDataButton = "ReloadReportDataButton";
|
|
34807
34907
|
var resultCountSpan = "ResultCount";
|
|
34808
34908
|
var exportButtons = "ResultExportButtons";
|
|
34809
34909
|
var exportClass = this.exportClass;
|
|
@@ -34815,7 +34915,7 @@ var report_view_ReportView = /** @class */ (function (_super) {
|
|
|
34815
34915
|
loadReportButton = options.slots.loadReportButton || loadReportButton;
|
|
34816
34916
|
saveReportButton = options.slots.saveReportButton || saveReportButton;
|
|
34817
34917
|
removeReportButton = options.slots.removeReportButton || removeReportButton;
|
|
34818
|
-
|
|
34918
|
+
reloadReportDataButton = options.slots.reloadReportDataButton || reloadReportDataButton;
|
|
34819
34919
|
exportClass = options.slots.exportClass || exportClass;
|
|
34820
34920
|
}
|
|
34821
34921
|
this.exportButtons = this.domRoots.reduce(function (elems, root) {
|
|
@@ -34862,10 +34962,14 @@ var report_view_ReportView = /** @class */ (function (_super) {
|
|
|
34862
34962
|
this.removeReportButton.addEventListener('click', this.removeReportButtonClickHandler);
|
|
34863
34963
|
}
|
|
34864
34964
|
}
|
|
34865
|
-
if (!this.
|
|
34866
|
-
this.
|
|
34867
|
-
|
|
34868
|
-
|
|
34965
|
+
if (!this.reloadReportDataButton) {
|
|
34966
|
+
this.reloadReportDataButton = this.resolveElement(reloadReportDataButton);
|
|
34967
|
+
//OBSOLETE: remove the next 3 lines. We just support the old default button ID here
|
|
34968
|
+
if (!this.reloadReportDataButton) {
|
|
34969
|
+
this.reloadReportDataButton = this.resolveElement('UpdateReportButton');
|
|
34970
|
+
}
|
|
34971
|
+
if (this.reloadReportDataButton) {
|
|
34972
|
+
this.reloadReportDataButton.addEventListener('click', this.reloadReportDataButtonClickHandler);
|
|
34869
34973
|
}
|
|
34870
34974
|
}
|
|
34871
34975
|
this.reportListSlot = document.getElementById('ReportList');
|
|
@@ -34943,6 +35047,7 @@ var report_view_ReportView = /** @class */ (function (_super) {
|
|
|
34943
35047
|
var query = self.context.getQuery();
|
|
34944
35048
|
var reportLoaded = function () {
|
|
34945
35049
|
_this.renderReportProps();
|
|
35050
|
+
_this.context.resultTable.clear();
|
|
34946
35051
|
query.fireChangedEvent({
|
|
34947
35052
|
part: public_api["QueryChangePart"].All,
|
|
34948
35053
|
noSync: true,
|
|
@@ -35169,8 +35274,8 @@ var report_view_ReportView = /** @class */ (function (_super) {
|
|
|
35169
35274
|
this.removeReportButton.removeEventListener('click', this.removeReportButtonClickHandler);
|
|
35170
35275
|
this.removeReportButton = null;
|
|
35171
35276
|
}
|
|
35172
|
-
if (this.
|
|
35173
|
-
this.
|
|
35277
|
+
if (this.reloadReportDataButton) {
|
|
35278
|
+
this.reloadReportDataButton.removeEventListener('click', this.reloadReportDataButtonClickHandler);
|
|
35174
35279
|
this.removeReportButton = null;
|
|
35175
35280
|
}
|
|
35176
35281
|
if (this.reportListSlot) {
|
|
@@ -35271,7 +35376,7 @@ var report_view_ReportView = /** @class */ (function (_super) {
|
|
|
35271
35376
|
/**
|
|
35272
35377
|
* The handler of the "Update" button click.
|
|
35273
35378
|
*/
|
|
35274
|
-
ReportView.prototype.
|
|
35379
|
+
ReportView.prototype.reloadReportDataButtonClick = function () {
|
|
35275
35380
|
this.fetchData();
|
|
35276
35381
|
};
|
|
35277
35382
|
/**
|
|
@@ -35636,6 +35741,7 @@ function addEasyQueryUITexts() {
|
|
|
35636
35741
|
UnaggrBtn: 'Remove column aggregation',
|
|
35637
35742
|
GrandTotalsLabel: 'Show grand totals',
|
|
35638
35743
|
GroupCountsLabel: 'Show record count for groups',
|
|
35744
|
+
AggrDialogTitle: 'Aggregation/grouping',
|
|
35639
35745
|
EnableAggrLabel: 'Enable aggregation',
|
|
35640
35746
|
SelectedError: 'Complete the action with selected column(s)',
|
|
35641
35747
|
NoGroupsOrAggrError: 'Add at least one group or aggregation',
|