@easyquery/ui 7.2.0-rc03 → 7.2.0-rc04
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/browser/eq.community.css.map +1 -1
- package/dist/browser/eq.community.js +374 -314
- 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 +12 -12
- 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 +30 -20
- 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 +2 -2
- package/dist/lib/dialog/aggr_settings_dialog.js.map +1 -1
- package/dist/lib/extensions.js +1 -1
- package/dist/lib/views/data_filter_view.d.ts +1 -0
- package/dist/lib/views/data_filter_view.js +3 -1
- package/dist/lib/views/data_filter_view.js.map +1 -1
- package/dist/lib/views/html_data_filter_view.js +3 -1
- package/dist/lib/views/html_data_filter_view.js.map +1 -1
- package/dist/lib/views/report_view.d.ts +3 -3
- package/dist/lib/views/report_view.js +14 -10
- package/dist/lib/views/report_view.js.map +1 -1
- package/dist/lib/views/view.js +4 -0
- package/dist/lib/views/view.js.map +1 -1
- package/dist/lib/views/view_options.d.ts +2 -1
- package/dist/lib/widgets/columns_bar.js.map +1 -1
- package/dist/lib/widgets/renderers/aggr_settings/aggr_settings_renderer.js +4 -4
- package/dist/lib/widgets/renderers/aggr_settings/aggr_settings_renderer.js.map +1 -1
- package/dist/lib/widgets/renderers/columnsbar/aggrfunc_column_renderer.js +0 -1
- package/dist/lib/widgets/renderers/columnsbar/aggrfunc_column_renderer.js.map +1 -1
- package/dist/lib/widgets/renderers/columnsbar/column_renderer_cb.js +0 -1
- package/dist/lib/widgets/renderers/columnsbar/column_renderer_cb.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* EasyQuery.JS Community 7.2.0-
|
|
3
|
-
* Copyright
|
|
2
|
+
* EasyQuery.JS Community 7.2.0-rc04 (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
|
/******/ ([
|
|
@@ -1348,7 +1348,7 @@ __webpack_require__.d(__webpack_exports__, "DialogFooterAlignment", function() {
|
|
|
1348
1348
|
__webpack_require__.d(__webpack_exports__, "dialogs", function() { return /* binding */ dialogs; });
|
|
1349
1349
|
|
|
1350
1350
|
// 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__(
|
|
1351
|
+
var easy_grid = __webpack_require__(104);
|
|
1352
1352
|
|
|
1353
1353
|
// EXTERNAL MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/ui/dist/lib/grid/easy_grid_options.js
|
|
1354
1354
|
var easy_grid_options = __webpack_require__(34);
|
|
@@ -2101,6 +2101,7 @@ __webpack_require__.d(__webpack_exports__, "Operand", function() { return /* ree
|
|
|
2101
2101
|
__webpack_require__.d(__webpack_exports__, "EqValueEditor", function() { return /* reexport */ value_editor["a" /* EqValueEditor */]; });
|
|
2102
2102
|
__webpack_require__.d(__webpack_exports__, "EqAction", function() { return /* reexport */ EqAction; });
|
|
2103
2103
|
__webpack_require__.d(__webpack_exports__, "EqModelLoader", function() { return /* reexport */ model_loader["a" /* EqModelLoader */]; });
|
|
2104
|
+
__webpack_require__.d(__webpack_exports__, "InMemoryModelStorage", function() { return /* reexport */ model_storage["a" /* InMemoryModelStorage */]; });
|
|
2104
2105
|
__webpack_require__.d(__webpack_exports__, "BrowserQueryStorage", function() { return /* reexport */ query_storage["a" /* BrowserQueryStorage */]; });
|
|
2105
2106
|
__webpack_require__.d(__webpack_exports__, "EqContext", function() { return /* reexport */ context_EqContext; });
|
|
2106
2107
|
__webpack_require__.d(__webpack_exports__, "Widget", function() { return /* reexport */ widget_Widget; });
|
|
@@ -2409,6 +2410,7 @@ var eq_services_EqServiceProvider = /** @class */ (function () {
|
|
|
2409
2410
|
this.httpClient = new public_api["HttpClient"]();
|
|
2410
2411
|
this.httpClient.defaultHeaders['x-eqjs-version'] = '7.2.0';
|
|
2411
2412
|
this.modelResolver = function (_) { return new data_model["a" /* DataModel */](); };
|
|
2413
|
+
this.modelStorageResolver = null;
|
|
2412
2414
|
this.queryResolver = function (context) { return new query_query["b" /* Query */](context.getModel()); };
|
|
2413
2415
|
this.modelLoaderResolver = function (context) { return new EqServerModelLoader(context); };
|
|
2414
2416
|
this.queryStorageResolver = function (context) { return new query_storage["a" /* BrowserQueryStorage */](context); };
|
|
@@ -2419,6 +2421,7 @@ var eq_services_EqServiceProvider = /** @class */ (function () {
|
|
|
2419
2421
|
this.aggrCalculatoResolver = function (context) { return new eq_aggr_container["a" /* DefaultAggregatesCalculator */](context); };
|
|
2420
2422
|
}
|
|
2421
2423
|
EqServiceProvider.prototype.reset = function () {
|
|
2424
|
+
this.modelStorage = null;
|
|
2422
2425
|
this.modelLoader = null;
|
|
2423
2426
|
this.queryStorage = null;
|
|
2424
2427
|
this.querySynchronizer = null;
|
|
@@ -2447,6 +2450,15 @@ var eq_services_EqServiceProvider = /** @class */ (function () {
|
|
|
2447
2450
|
}
|
|
2448
2451
|
return this.modelLoader;
|
|
2449
2452
|
};
|
|
2453
|
+
EqServiceProvider.prototype.getModelStorage = function () {
|
|
2454
|
+
if (!this.modelStorage) {
|
|
2455
|
+
if (!this.modelStorageResolver) {
|
|
2456
|
+
throw 'ModelStorageResolver is not defined';
|
|
2457
|
+
}
|
|
2458
|
+
this.modelStorage = this.modelStorageResolver(this.context);
|
|
2459
|
+
}
|
|
2460
|
+
return this.modelStorage;
|
|
2461
|
+
};
|
|
2450
2462
|
EqServiceProvider.prototype.getQueryStorage = function () {
|
|
2451
2463
|
if (!this.queryStorage) {
|
|
2452
2464
|
if (!this.queryStorageResolver) {
|
|
@@ -2510,6 +2522,9 @@ var eq_services_EqServiceProvider = /** @class */ (function () {
|
|
|
2510
2522
|
EqServiceProvider.prototype.registerModelLoaderResolver = function (resolver) {
|
|
2511
2523
|
this.modelLoaderResolver = resolver;
|
|
2512
2524
|
};
|
|
2525
|
+
EqServiceProvider.prototype.registerModelStorageResolver = function (resolver) {
|
|
2526
|
+
this.modelStorageResolver = resolver;
|
|
2527
|
+
};
|
|
2513
2528
|
EqServiceProvider.prototype.registerQueryStorageResolver = function (resolver) {
|
|
2514
2529
|
this.queryStorageResolver = resolver;
|
|
2515
2530
|
};
|
|
@@ -2608,6 +2623,9 @@ var EqAction;
|
|
|
2608
2623
|
EqAction["UploadQueryFile"] = "UploadQueryFile";
|
|
2609
2624
|
})(EqAction || (EqAction = {}));
|
|
2610
2625
|
//# sourceMappingURL=eq_actions.js.map
|
|
2626
|
+
// EXTERNAL MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/packs/core/dist/lib/main/model_storage.js
|
|
2627
|
+
var model_storage = __webpack_require__(103);
|
|
2628
|
+
|
|
2611
2629
|
// EXTERNAL MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/packs/core/dist/lib/query/query_events.js
|
|
2612
2630
|
var query_events = __webpack_require__(14);
|
|
2613
2631
|
|
|
@@ -2912,10 +2930,14 @@ var context_EqContext = /** @class */ (function () {
|
|
|
2912
2930
|
}
|
|
2913
2931
|
if (options.endpoint) {
|
|
2914
2932
|
this.baseEndpoint = options.endpoint;
|
|
2915
|
-
console.warn('The `endpoint` option is deprecated
|
|
2933
|
+
console.warn('The `endpoint` option is deprecated.\n'
|
|
2916
2934
|
+ 'Please use `context.useEndpoint(endpointURL)` function instead.');
|
|
2917
2935
|
}
|
|
2918
2936
|
this.setDefaultEndpoints(this.baseEndpoint);
|
|
2937
|
+
if (options.modelStorageResolver) {
|
|
2938
|
+
var eqServices = this.getServices();
|
|
2939
|
+
eqServices.registerModelStorageResolver(options.modelStorageResolver);
|
|
2940
|
+
}
|
|
2919
2941
|
this.loadQueryOnStart = false;
|
|
2920
2942
|
if (options.loadQueryOnStart) {
|
|
2921
2943
|
this.loadQueryOnStart = options.loadQueryOnStart;
|
|
@@ -4261,6 +4283,7 @@ addEasyQueryCoreTexts();
|
|
|
4261
4283
|
|
|
4262
4284
|
|
|
4263
4285
|
|
|
4286
|
+
|
|
4264
4287
|
|
|
4265
4288
|
|
|
4266
4289
|
//for backward compatibility
|
|
@@ -8207,7 +8230,7 @@ var condition_group_renderer = __webpack_require__(76);
|
|
|
8207
8230
|
var input_expression_renderer = __webpack_require__(78);
|
|
8208
8231
|
|
|
8209
8232
|
// EXTERNAL MODULE: ./dist/lib/widgets/renderers/querypanel/attribute_expression_renderer.js
|
|
8210
|
-
var attribute_expression_renderer = __webpack_require__(
|
|
8233
|
+
var attribute_expression_renderer = __webpack_require__(52);
|
|
8211
8234
|
|
|
8212
8235
|
// EXTERNAL MODULE: ./dist/lib/widgets/renderers/querypanel/addrow_renderer.js
|
|
8213
8236
|
var addrow_renderer = __webpack_require__(79);
|
|
@@ -11862,6 +11885,10 @@ var view_View = /** @class */ (function () {
|
|
|
11862
11885
|
View.prototype.fetchData = function (options) {
|
|
11863
11886
|
var _this = this;
|
|
11864
11887
|
options = options || { refresh: true };
|
|
11888
|
+
this.context.clearResult();
|
|
11889
|
+
//don't run fetch if the query is empty
|
|
11890
|
+
if (this.context.getQuery().isEmpty() && !this.resultOptions.fetchEmptyQueries)
|
|
11891
|
+
return;
|
|
11865
11892
|
this.showResultSpinner();
|
|
11866
11893
|
this.context.fetchData({
|
|
11867
11894
|
elasticPaging: options.elasticPaging,
|
|
@@ -16584,263 +16611,6 @@ var Condition = /** @class */ (function () {
|
|
|
16584
16611
|
|
|
16585
16612
|
/***/ }),
|
|
16586
16613
|
/* 51 */
|
|
16587
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
16588
|
-
|
|
16589
|
-
"use strict";
|
|
16590
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AttributeExpressionRenderer; });
|
|
16591
|
-
/* harmony import */ var _easydata_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
16592
|
-
/* harmony import */ var _easyquery_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
|
|
16593
|
-
/* harmony import */ var _easydata_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
|
|
16594
|
-
/* harmony import */ var _list_expression_renderer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(25);
|
|
16595
|
-
/* harmony import */ var _utils_browser_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3);
|
|
16596
|
-
/* harmony import */ var _types_qp_editable_part__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(10);
|
|
16597
|
-
var __extends = (undefined && undefined.__extends) || (function () {
|
|
16598
|
-
var extendStatics = function (d, b) {
|
|
16599
|
-
extendStatics = Object.setPrototypeOf ||
|
|
16600
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
16601
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
16602
|
-
return extendStatics(d, b);
|
|
16603
|
-
};
|
|
16604
|
-
return function (d, b) {
|
|
16605
|
-
extendStatics(d, b);
|
|
16606
|
-
function __() { this.constructor = d; }
|
|
16607
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16608
|
-
};
|
|
16609
|
-
})();
|
|
16610
|
-
|
|
16611
|
-
|
|
16612
|
-
|
|
16613
|
-
|
|
16614
|
-
|
|
16615
|
-
|
|
16616
|
-
var AttributeExpressionRenderer = /** @class */ (function (_super) {
|
|
16617
|
-
__extends(AttributeExpressionRenderer, _super);
|
|
16618
|
-
function AttributeExpressionRenderer(panel, expression, entitiesMenu, slot) {
|
|
16619
|
-
var _this = _super.call(this, panel, expression, null, slot) || this;
|
|
16620
|
-
_this.menu = entitiesMenu;
|
|
16621
|
-
return _this;
|
|
16622
|
-
}
|
|
16623
|
-
AttributeExpressionRenderer.prototype.renderEditor = function () {
|
|
16624
|
-
//create menu
|
|
16625
|
-
};
|
|
16626
|
-
AttributeExpressionRenderer.prototype.getLabelText = function () {
|
|
16627
|
-
var model = this.panel.getContext().getModel();
|
|
16628
|
-
var attrId = this.expression.value;
|
|
16629
|
-
var attrObj = attrId ? model.getAttributeByIdSafe(attrId) : null;
|
|
16630
|
-
var attrFormat = this.panel.options.attrElementFormat;
|
|
16631
|
-
return attrObj ? model.getAttributeText(attrObj, attrFormat) : this.getEmptyText();
|
|
16632
|
-
};
|
|
16633
|
-
AttributeExpressionRenderer.prototype.setValue = function (value, silent) {
|
|
16634
|
-
if (silent === void 0) { silent = false; }
|
|
16635
|
-
silent = silent && value !== this.expression.value;
|
|
16636
|
-
var result = _super.prototype.setValue.call(this, value, true);
|
|
16637
|
-
if (!silent) {
|
|
16638
|
-
this.expression.getParent().fireChangedEvent(_easyquery_core__WEBPACK_IMPORTED_MODULE_1__["ConditionPart"].EntityAttr | _easyquery_core__WEBPACK_IMPORTED_MODULE_1__["ConditionPart"].Operator);
|
|
16639
|
-
}
|
|
16640
|
-
return result;
|
|
16641
|
-
};
|
|
16642
|
-
AttributeExpressionRenderer.prototype.isEditable = function () {
|
|
16643
|
-
return !this.isReadOnly()
|
|
16644
|
-
&& ((this.panel.options.editableParts & _types_qp_editable_part__WEBPACK_IMPORTED_MODULE_5__[/* QPEditablePart */ "a"].Attribute) === _types_qp_editable_part__WEBPACK_IMPORTED_MODULE_5__[/* QPEditablePart */ "a"].Attribute);
|
|
16645
|
-
};
|
|
16646
|
-
AttributeExpressionRenderer.prototype.getEmptyText = function () {
|
|
16647
|
-
return this.panel.options.emptyTextAttribute || _easydata_core__WEBPACK_IMPORTED_MODULE_0__["i18n"].getText('MsgEmptyAttrValue');
|
|
16648
|
-
};
|
|
16649
|
-
AttributeExpressionRenderer.prototype.getClassesToAdd = function () {
|
|
16650
|
-
return this.cssPrefix + "-condelement " + this.cssPrefix + "-attrelement";
|
|
16651
|
-
};
|
|
16652
|
-
AttributeExpressionRenderer.prototype.adjustWidth = function () {
|
|
16653
|
-
if (_utils_browser_utils__WEBPACK_IMPORTED_MODULE_4__[/* browserUtils */ "a"].isMobileMode()) {
|
|
16654
|
-
return;
|
|
16655
|
-
}
|
|
16656
|
-
var elWidth = this.element.clientWidth;
|
|
16657
|
-
var parWidth = this.element.parentElement.clientWidth;
|
|
16658
|
-
if (elWidth > parWidth / 2) {
|
|
16659
|
-
Object(_easydata_ui__WEBPACK_IMPORTED_MODULE_2__["domel"])(this.element)
|
|
16660
|
-
.addClass(this.cssPrefix + "-attrelement-wide");
|
|
16661
|
-
}
|
|
16662
|
-
};
|
|
16663
|
-
return AttributeExpressionRenderer;
|
|
16664
|
-
}(_list_expression_renderer__WEBPACK_IMPORTED_MODULE_3__[/* ListExpressionRenderer */ "b"]));
|
|
16665
|
-
|
|
16666
|
-
//# sourceMappingURL=attribute_expression_renderer.js.map
|
|
16667
|
-
|
|
16668
|
-
/***/ }),
|
|
16669
|
-
/* 52 */
|
|
16670
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
16671
|
-
|
|
16672
|
-
"use strict";
|
|
16673
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return GoogleChartWidget; });
|
|
16674
|
-
/* harmony import */ var _easydata_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
16675
|
-
/* harmony import */ var _chart_widget__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(47);
|
|
16676
|
-
/* harmony import */ var _chart_type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5);
|
|
16677
|
-
var __extends = (undefined && undefined.__extends) || (function () {
|
|
16678
|
-
var extendStatics = function (d, b) {
|
|
16679
|
-
extendStatics = Object.setPrototypeOf ||
|
|
16680
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
16681
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
16682
|
-
return extendStatics(d, b);
|
|
16683
|
-
};
|
|
16684
|
-
return function (d, b) {
|
|
16685
|
-
extendStatics(d, b);
|
|
16686
|
-
function __() { this.constructor = d; }
|
|
16687
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16688
|
-
};
|
|
16689
|
-
})();
|
|
16690
|
-
|
|
16691
|
-
|
|
16692
|
-
|
|
16693
|
-
var GoogleChartWidget = /** @class */ (function (_super) {
|
|
16694
|
-
__extends(GoogleChartWidget, _super);
|
|
16695
|
-
/**
|
|
16696
|
-
* The default constructor.
|
|
16697
|
-
* @param slot The html element.
|
|
16698
|
-
* @param provider The provider.
|
|
16699
|
-
*/
|
|
16700
|
-
function GoogleChartWidget(slot) {
|
|
16701
|
-
var _this = _super.call(this, slot) || this;
|
|
16702
|
-
_this.hasChartTypes = [
|
|
16703
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Column,
|
|
16704
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Bar,
|
|
16705
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Histogram,
|
|
16706
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Combo,
|
|
16707
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Area,
|
|
16708
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Line,
|
|
16709
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].SteppedLine,
|
|
16710
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Pie,
|
|
16711
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Doughnut
|
|
16712
|
-
];
|
|
16713
|
-
_this.options.legend = {
|
|
16714
|
-
show: true,
|
|
16715
|
-
position: 'right'
|
|
16716
|
-
};
|
|
16717
|
-
return _this;
|
|
16718
|
-
}
|
|
16719
|
-
GoogleChartWidget.prototype.getWidgetType = function () {
|
|
16720
|
-
return 'chartGoogle';
|
|
16721
|
-
};
|
|
16722
|
-
GoogleChartWidget.prototype.canDraw = function () {
|
|
16723
|
-
return GoogleChartWidget.hasGoogleCharts();
|
|
16724
|
-
};
|
|
16725
|
-
GoogleChartWidget.hasGoogleCharts = function () {
|
|
16726
|
-
return typeof google !== 'undefined' && typeof google.charts !== 'undefined';
|
|
16727
|
-
};
|
|
16728
|
-
GoogleChartWidget.prototype.initChart = function () {
|
|
16729
|
-
if (GoogleChartWidget.hasGoogleCharts() && this.labelColumn >= 0
|
|
16730
|
-
&& this.dataColumns && this.dataColumns.length > 0) {
|
|
16731
|
-
this.googleDataView =
|
|
16732
|
-
new google.visualization.DataView(this.convertToGoogleFormat());
|
|
16733
|
-
this.updateChartColumns();
|
|
16734
|
-
}
|
|
16735
|
-
};
|
|
16736
|
-
GoogleChartWidget.prototype.convertToGoogleType = function (type) {
|
|
16737
|
-
switch (type) {
|
|
16738
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Date:
|
|
16739
|
-
return "date";
|
|
16740
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].DateTime:
|
|
16741
|
-
return "datetime";
|
|
16742
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Time:
|
|
16743
|
-
return "timeofday";
|
|
16744
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Byte:
|
|
16745
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Word:
|
|
16746
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Int32:
|
|
16747
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Int64:
|
|
16748
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Currency:
|
|
16749
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Float:
|
|
16750
|
-
return "number";
|
|
16751
|
-
default:
|
|
16752
|
-
return "string";
|
|
16753
|
-
}
|
|
16754
|
-
};
|
|
16755
|
-
GoogleChartWidget.prototype.convertToGoogleValue = function (value, type) {
|
|
16756
|
-
switch (type) {
|
|
16757
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Bool:
|
|
16758
|
-
return value.toString();
|
|
16759
|
-
default:
|
|
16760
|
-
return value;
|
|
16761
|
-
}
|
|
16762
|
-
};
|
|
16763
|
-
GoogleChartWidget.prototype.convertToGoogleFormat = function () {
|
|
16764
|
-
var googleTable = new google.visualization.DataTable();
|
|
16765
|
-
var columns = this.dataTable.columns;
|
|
16766
|
-
for (var i = 0; i < columns.count; i++) {
|
|
16767
|
-
var column = columns.get(i);
|
|
16768
|
-
googleTable.addColumn(this.convertToGoogleType(column.type), column.label, column.id);
|
|
16769
|
-
}
|
|
16770
|
-
var rows = this.dataTable.getCachedRows();
|
|
16771
|
-
googleTable.addRows(rows.length);
|
|
16772
|
-
for (var i = 0; i < rows.length; i++) {
|
|
16773
|
-
var row = rows[i];
|
|
16774
|
-
for (var j = 0; j < columns.count; j++) {
|
|
16775
|
-
googleTable.setCell(i, j, this.convertToGoogleValue(row.getValue(j), columns.get(j).type));
|
|
16776
|
-
}
|
|
16777
|
-
}
|
|
16778
|
-
return googleTable;
|
|
16779
|
-
};
|
|
16780
|
-
GoogleChartWidget.prototype.drawCore = function () {
|
|
16781
|
-
if (this.googleDataView != null) {
|
|
16782
|
-
this.options.legend = this.options.legend || {};
|
|
16783
|
-
var chartOptions = {
|
|
16784
|
-
width: "100%",
|
|
16785
|
-
height: "100%",
|
|
16786
|
-
chartArea: { width: this.getChartAreaWidth }
|
|
16787
|
-
};
|
|
16788
|
-
if (this.chartType == _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Doughnut) {
|
|
16789
|
-
chartOptions.pieHole = 0.4;
|
|
16790
|
-
}
|
|
16791
|
-
if (!this.options.legend.show) {
|
|
16792
|
-
chartOptions.legend = 'none';
|
|
16793
|
-
}
|
|
16794
|
-
else {
|
|
16795
|
-
chartOptions.legend = { position: this.options.legend.position };
|
|
16796
|
-
}
|
|
16797
|
-
var chart = this.createChart(this.chartDiv);
|
|
16798
|
-
chart.draw(this.googleDataView, chartOptions);
|
|
16799
|
-
}
|
|
16800
|
-
};
|
|
16801
|
-
GoogleChartWidget.prototype.getChartAreaWidth = function (chartType) {
|
|
16802
|
-
if (chartType == _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Pie) {
|
|
16803
|
-
return "100%";
|
|
16804
|
-
}
|
|
16805
|
-
else {
|
|
16806
|
-
return "50%";
|
|
16807
|
-
}
|
|
16808
|
-
};
|
|
16809
|
-
GoogleChartWidget.prototype.updateChartColumns = function () {
|
|
16810
|
-
if (this.googleDataView) {
|
|
16811
|
-
this.googleDataView.setColumns([].concat(this.labelColumn).concat(this.dataColumns));
|
|
16812
|
-
}
|
|
16813
|
-
};
|
|
16814
|
-
GoogleChartWidget.prototype.createChart = function (slot) {
|
|
16815
|
-
switch (this.chartType) {
|
|
16816
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Column:
|
|
16817
|
-
return new google.visualization.ColumnChart(slot);
|
|
16818
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Histogram:
|
|
16819
|
-
return new google.visualization.Histogram(slot);
|
|
16820
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Bar:
|
|
16821
|
-
return new google.visualization.BarChart(slot);
|
|
16822
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Combo:
|
|
16823
|
-
return new google.visualization.ComboChart(slot);
|
|
16824
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Area:
|
|
16825
|
-
return new google.visualization.AreaChart(slot);
|
|
16826
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Line:
|
|
16827
|
-
return new google.visualization.LineChart(slot);
|
|
16828
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].SteppedLine:
|
|
16829
|
-
return new google.visualization.SteppedAreaChart(slot);
|
|
16830
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Pie:
|
|
16831
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Doughnut:
|
|
16832
|
-
return new google.visualization.PieChart(slot);
|
|
16833
|
-
default:
|
|
16834
|
-
return new google.visualization.PieChart(slot);
|
|
16835
|
-
}
|
|
16836
|
-
};
|
|
16837
|
-
return GoogleChartWidget;
|
|
16838
|
-
}(_chart_widget__WEBPACK_IMPORTED_MODULE_1__[/* ChartWidget */ "a"]));
|
|
16839
|
-
|
|
16840
|
-
//# sourceMappingURL=chart_widget_google.js.map
|
|
16841
|
-
|
|
16842
|
-
/***/ }),
|
|
16843
|
-
/* 53 */
|
|
16844
16614
|
/***/ (function(module, exports, __webpack_require__) {
|
|
16845
16615
|
|
|
16846
16616
|
/* WEBPACK VAR INJECTION */(function(process, global) {/*!
|
|
@@ -18019,6 +17789,263 @@ return Promise$1;
|
|
|
18019
17789
|
|
|
18020
17790
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(97), __webpack_require__(98)))
|
|
18021
17791
|
|
|
17792
|
+
/***/ }),
|
|
17793
|
+
/* 52 */
|
|
17794
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
17795
|
+
|
|
17796
|
+
"use strict";
|
|
17797
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AttributeExpressionRenderer; });
|
|
17798
|
+
/* harmony import */ var _easydata_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
17799
|
+
/* harmony import */ var _easyquery_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
|
|
17800
|
+
/* harmony import */ var _easydata_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
|
|
17801
|
+
/* harmony import */ var _list_expression_renderer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(25);
|
|
17802
|
+
/* harmony import */ var _utils_browser_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3);
|
|
17803
|
+
/* harmony import */ var _types_qp_editable_part__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(10);
|
|
17804
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
17805
|
+
var extendStatics = function (d, b) {
|
|
17806
|
+
extendStatics = Object.setPrototypeOf ||
|
|
17807
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
17808
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
17809
|
+
return extendStatics(d, b);
|
|
17810
|
+
};
|
|
17811
|
+
return function (d, b) {
|
|
17812
|
+
extendStatics(d, b);
|
|
17813
|
+
function __() { this.constructor = d; }
|
|
17814
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
17815
|
+
};
|
|
17816
|
+
})();
|
|
17817
|
+
|
|
17818
|
+
|
|
17819
|
+
|
|
17820
|
+
|
|
17821
|
+
|
|
17822
|
+
|
|
17823
|
+
var AttributeExpressionRenderer = /** @class */ (function (_super) {
|
|
17824
|
+
__extends(AttributeExpressionRenderer, _super);
|
|
17825
|
+
function AttributeExpressionRenderer(panel, expression, entitiesMenu, slot) {
|
|
17826
|
+
var _this = _super.call(this, panel, expression, null, slot) || this;
|
|
17827
|
+
_this.menu = entitiesMenu;
|
|
17828
|
+
return _this;
|
|
17829
|
+
}
|
|
17830
|
+
AttributeExpressionRenderer.prototype.renderEditor = function () {
|
|
17831
|
+
//create menu
|
|
17832
|
+
};
|
|
17833
|
+
AttributeExpressionRenderer.prototype.getLabelText = function () {
|
|
17834
|
+
var model = this.panel.getContext().getModel();
|
|
17835
|
+
var attrId = this.expression.value;
|
|
17836
|
+
var attrObj = attrId ? model.getAttributeByIdSafe(attrId) : null;
|
|
17837
|
+
var attrFormat = this.panel.options.attrElementFormat;
|
|
17838
|
+
return attrObj ? model.getAttributeText(attrObj, attrFormat) : this.getEmptyText();
|
|
17839
|
+
};
|
|
17840
|
+
AttributeExpressionRenderer.prototype.setValue = function (value, silent) {
|
|
17841
|
+
if (silent === void 0) { silent = false; }
|
|
17842
|
+
silent = silent && value !== this.expression.value;
|
|
17843
|
+
var result = _super.prototype.setValue.call(this, value, true);
|
|
17844
|
+
if (!silent) {
|
|
17845
|
+
this.expression.getParent().fireChangedEvent(_easyquery_core__WEBPACK_IMPORTED_MODULE_1__["ConditionPart"].EntityAttr | _easyquery_core__WEBPACK_IMPORTED_MODULE_1__["ConditionPart"].Operator);
|
|
17846
|
+
}
|
|
17847
|
+
return result;
|
|
17848
|
+
};
|
|
17849
|
+
AttributeExpressionRenderer.prototype.isEditable = function () {
|
|
17850
|
+
return !this.isReadOnly()
|
|
17851
|
+
&& ((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);
|
|
17852
|
+
};
|
|
17853
|
+
AttributeExpressionRenderer.prototype.getEmptyText = function () {
|
|
17854
|
+
return this.panel.options.emptyTextAttribute || _easydata_core__WEBPACK_IMPORTED_MODULE_0__["i18n"].getText('MsgEmptyAttrValue');
|
|
17855
|
+
};
|
|
17856
|
+
AttributeExpressionRenderer.prototype.getClassesToAdd = function () {
|
|
17857
|
+
return this.cssPrefix + "-condelement " + this.cssPrefix + "-attrelement";
|
|
17858
|
+
};
|
|
17859
|
+
AttributeExpressionRenderer.prototype.adjustWidth = function () {
|
|
17860
|
+
if (_utils_browser_utils__WEBPACK_IMPORTED_MODULE_4__[/* browserUtils */ "a"].isMobileMode()) {
|
|
17861
|
+
return;
|
|
17862
|
+
}
|
|
17863
|
+
var elWidth = this.element.clientWidth;
|
|
17864
|
+
var parWidth = this.element.parentElement.clientWidth;
|
|
17865
|
+
if (elWidth > parWidth / 2) {
|
|
17866
|
+
Object(_easydata_ui__WEBPACK_IMPORTED_MODULE_2__["domel"])(this.element)
|
|
17867
|
+
.addClass(this.cssPrefix + "-attrelement-wide");
|
|
17868
|
+
}
|
|
17869
|
+
};
|
|
17870
|
+
return AttributeExpressionRenderer;
|
|
17871
|
+
}(_list_expression_renderer__WEBPACK_IMPORTED_MODULE_3__[/* ListExpressionRenderer */ "b"]));
|
|
17872
|
+
|
|
17873
|
+
//# sourceMappingURL=attribute_expression_renderer.js.map
|
|
17874
|
+
|
|
17875
|
+
/***/ }),
|
|
17876
|
+
/* 53 */
|
|
17877
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
17878
|
+
|
|
17879
|
+
"use strict";
|
|
17880
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return GoogleChartWidget; });
|
|
17881
|
+
/* harmony import */ var _easydata_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
17882
|
+
/* harmony import */ var _chart_widget__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(47);
|
|
17883
|
+
/* harmony import */ var _chart_type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5);
|
|
17884
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
17885
|
+
var extendStatics = function (d, b) {
|
|
17886
|
+
extendStatics = Object.setPrototypeOf ||
|
|
17887
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
17888
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
17889
|
+
return extendStatics(d, b);
|
|
17890
|
+
};
|
|
17891
|
+
return function (d, b) {
|
|
17892
|
+
extendStatics(d, b);
|
|
17893
|
+
function __() { this.constructor = d; }
|
|
17894
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
17895
|
+
};
|
|
17896
|
+
})();
|
|
17897
|
+
|
|
17898
|
+
|
|
17899
|
+
|
|
17900
|
+
var GoogleChartWidget = /** @class */ (function (_super) {
|
|
17901
|
+
__extends(GoogleChartWidget, _super);
|
|
17902
|
+
/**
|
|
17903
|
+
* The default constructor.
|
|
17904
|
+
* @param slot The html element.
|
|
17905
|
+
* @param provider The provider.
|
|
17906
|
+
*/
|
|
17907
|
+
function GoogleChartWidget(slot) {
|
|
17908
|
+
var _this = _super.call(this, slot) || this;
|
|
17909
|
+
_this.hasChartTypes = [
|
|
17910
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Column,
|
|
17911
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Bar,
|
|
17912
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Histogram,
|
|
17913
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Combo,
|
|
17914
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Area,
|
|
17915
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Line,
|
|
17916
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].SteppedLine,
|
|
17917
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Pie,
|
|
17918
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Doughnut
|
|
17919
|
+
];
|
|
17920
|
+
_this.options.legend = {
|
|
17921
|
+
show: true,
|
|
17922
|
+
position: 'right'
|
|
17923
|
+
};
|
|
17924
|
+
return _this;
|
|
17925
|
+
}
|
|
17926
|
+
GoogleChartWidget.prototype.getWidgetType = function () {
|
|
17927
|
+
return 'chartGoogle';
|
|
17928
|
+
};
|
|
17929
|
+
GoogleChartWidget.prototype.canDraw = function () {
|
|
17930
|
+
return GoogleChartWidget.hasGoogleCharts();
|
|
17931
|
+
};
|
|
17932
|
+
GoogleChartWidget.hasGoogleCharts = function () {
|
|
17933
|
+
return typeof google !== 'undefined' && typeof google.charts !== 'undefined';
|
|
17934
|
+
};
|
|
17935
|
+
GoogleChartWidget.prototype.initChart = function () {
|
|
17936
|
+
if (GoogleChartWidget.hasGoogleCharts() && this.labelColumn >= 0
|
|
17937
|
+
&& this.dataColumns && this.dataColumns.length > 0) {
|
|
17938
|
+
this.googleDataView =
|
|
17939
|
+
new google.visualization.DataView(this.convertToGoogleFormat());
|
|
17940
|
+
this.updateChartColumns();
|
|
17941
|
+
}
|
|
17942
|
+
};
|
|
17943
|
+
GoogleChartWidget.prototype.convertToGoogleType = function (type) {
|
|
17944
|
+
switch (type) {
|
|
17945
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Date:
|
|
17946
|
+
return "date";
|
|
17947
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].DateTime:
|
|
17948
|
+
return "datetime";
|
|
17949
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Time:
|
|
17950
|
+
return "timeofday";
|
|
17951
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Byte:
|
|
17952
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Word:
|
|
17953
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Int32:
|
|
17954
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Int64:
|
|
17955
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Currency:
|
|
17956
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Float:
|
|
17957
|
+
return "number";
|
|
17958
|
+
default:
|
|
17959
|
+
return "string";
|
|
17960
|
+
}
|
|
17961
|
+
};
|
|
17962
|
+
GoogleChartWidget.prototype.convertToGoogleValue = function (value, type) {
|
|
17963
|
+
switch (type) {
|
|
17964
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Bool:
|
|
17965
|
+
return value.toString();
|
|
17966
|
+
default:
|
|
17967
|
+
return value;
|
|
17968
|
+
}
|
|
17969
|
+
};
|
|
17970
|
+
GoogleChartWidget.prototype.convertToGoogleFormat = function () {
|
|
17971
|
+
var googleTable = new google.visualization.DataTable();
|
|
17972
|
+
var columns = this.dataTable.columns;
|
|
17973
|
+
for (var i = 0; i < columns.count; i++) {
|
|
17974
|
+
var column = columns.get(i);
|
|
17975
|
+
googleTable.addColumn(this.convertToGoogleType(column.type), column.label, column.id);
|
|
17976
|
+
}
|
|
17977
|
+
var rows = this.dataTable.getCachedRows();
|
|
17978
|
+
googleTable.addRows(rows.length);
|
|
17979
|
+
for (var i = 0; i < rows.length; i++) {
|
|
17980
|
+
var row = rows[i];
|
|
17981
|
+
for (var j = 0; j < columns.count; j++) {
|
|
17982
|
+
googleTable.setCell(i, j, this.convertToGoogleValue(row.getValue(j), columns.get(j).type));
|
|
17983
|
+
}
|
|
17984
|
+
}
|
|
17985
|
+
return googleTable;
|
|
17986
|
+
};
|
|
17987
|
+
GoogleChartWidget.prototype.drawCore = function () {
|
|
17988
|
+
if (this.googleDataView != null) {
|
|
17989
|
+
this.options.legend = this.options.legend || {};
|
|
17990
|
+
var chartOptions = {
|
|
17991
|
+
width: "100%",
|
|
17992
|
+
height: "100%",
|
|
17993
|
+
chartArea: { width: this.getChartAreaWidth }
|
|
17994
|
+
};
|
|
17995
|
+
if (this.chartType == _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Doughnut) {
|
|
17996
|
+
chartOptions.pieHole = 0.4;
|
|
17997
|
+
}
|
|
17998
|
+
if (!this.options.legend.show) {
|
|
17999
|
+
chartOptions.legend = 'none';
|
|
18000
|
+
}
|
|
18001
|
+
else {
|
|
18002
|
+
chartOptions.legend = { position: this.options.legend.position };
|
|
18003
|
+
}
|
|
18004
|
+
var chart = this.createChart(this.chartDiv);
|
|
18005
|
+
chart.draw(this.googleDataView, chartOptions);
|
|
18006
|
+
}
|
|
18007
|
+
};
|
|
18008
|
+
GoogleChartWidget.prototype.getChartAreaWidth = function (chartType) {
|
|
18009
|
+
if (chartType == _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Pie) {
|
|
18010
|
+
return "100%";
|
|
18011
|
+
}
|
|
18012
|
+
else {
|
|
18013
|
+
return "50%";
|
|
18014
|
+
}
|
|
18015
|
+
};
|
|
18016
|
+
GoogleChartWidget.prototype.updateChartColumns = function () {
|
|
18017
|
+
if (this.googleDataView) {
|
|
18018
|
+
this.googleDataView.setColumns([].concat(this.labelColumn).concat(this.dataColumns));
|
|
18019
|
+
}
|
|
18020
|
+
};
|
|
18021
|
+
GoogleChartWidget.prototype.createChart = function (slot) {
|
|
18022
|
+
switch (this.chartType) {
|
|
18023
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Column:
|
|
18024
|
+
return new google.visualization.ColumnChart(slot);
|
|
18025
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Histogram:
|
|
18026
|
+
return new google.visualization.Histogram(slot);
|
|
18027
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Bar:
|
|
18028
|
+
return new google.visualization.BarChart(slot);
|
|
18029
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Combo:
|
|
18030
|
+
return new google.visualization.ComboChart(slot);
|
|
18031
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Area:
|
|
18032
|
+
return new google.visualization.AreaChart(slot);
|
|
18033
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Line:
|
|
18034
|
+
return new google.visualization.LineChart(slot);
|
|
18035
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].SteppedLine:
|
|
18036
|
+
return new google.visualization.SteppedAreaChart(slot);
|
|
18037
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Pie:
|
|
18038
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Doughnut:
|
|
18039
|
+
return new google.visualization.PieChart(slot);
|
|
18040
|
+
default:
|
|
18041
|
+
return new google.visualization.PieChart(slot);
|
|
18042
|
+
}
|
|
18043
|
+
};
|
|
18044
|
+
return GoogleChartWidget;
|
|
18045
|
+
}(_chart_widget__WEBPACK_IMPORTED_MODULE_1__[/* ChartWidget */ "a"]));
|
|
18046
|
+
|
|
18047
|
+
//# sourceMappingURL=chart_widget_google.js.map
|
|
18048
|
+
|
|
18022
18049
|
/***/ }),
|
|
18023
18050
|
/* 54 */
|
|
18024
18051
|
/***/ (function(module, exports, __webpack_require__) {
|
|
@@ -19197,7 +19224,7 @@ return Promise$1;
|
|
|
19197
19224
|
|
|
19198
19225
|
//# sourceMappingURL=es6-promise.map
|
|
19199
19226
|
|
|
19200
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
19227
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(119), __webpack_require__(120)))
|
|
19201
19228
|
|
|
19202
19229
|
/***/ }),
|
|
19203
19230
|
/* 55 */
|
|
@@ -19747,7 +19774,7 @@ var BrowserQueryStorage = /** @class */ (function () {
|
|
|
19747
19774
|
}());
|
|
19748
19775
|
|
|
19749
19776
|
//# sourceMappingURL=query_storage.js.map
|
|
19750
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
19777
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(51)))
|
|
19751
19778
|
|
|
19752
19779
|
/***/ }),
|
|
19753
19780
|
/* 62 */
|
|
@@ -19788,7 +19815,7 @@ var EqModelLoader = /** @class */ (function () {
|
|
|
19788
19815
|
}());
|
|
19789
19816
|
|
|
19790
19817
|
//# sourceMappingURL=model_loader.js.map
|
|
19791
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
19818
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(51)))
|
|
19792
19819
|
|
|
19793
19820
|
/***/ }),
|
|
19794
19821
|
/* 63 */
|
|
@@ -19906,7 +19933,7 @@ var DefaultAggregatesCalculator = /** @class */ (function () {
|
|
|
19906
19933
|
}());
|
|
19907
19934
|
|
|
19908
19935
|
//# sourceMappingURL=eq_aggr_container.js.map
|
|
19909
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
19936
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(51)))
|
|
19910
19937
|
|
|
19911
19938
|
/***/ }),
|
|
19912
19939
|
/* 64 */
|
|
@@ -19965,7 +19992,7 @@ var EasyQueryDataLoader = /** @class */ (function () {
|
|
|
19965
19992
|
}());
|
|
19966
19993
|
|
|
19967
19994
|
//# sourceMappingURL=eq_data_loader.js.map
|
|
19968
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
19995
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(51)))
|
|
19969
19996
|
|
|
19970
19997
|
/***/ }),
|
|
19971
19998
|
/* 65 */
|
|
@@ -21307,7 +21334,7 @@ var DefaultDialogSet = /** @class */ (function () {
|
|
|
21307
21334
|
}());
|
|
21308
21335
|
|
|
21309
21336
|
//# sourceMappingURL=default_dialog_service.js.map
|
|
21310
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
21337
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(105)))
|
|
21311
21338
|
|
|
21312
21339
|
/***/ }),
|
|
21313
21340
|
/* 69 */
|
|
@@ -23160,7 +23187,6 @@ var AggrFuncColumnRendererCB = /** @class */ (function (_super) {
|
|
|
23160
23187
|
.getAttributeByIdSafe(this.column.expr.args[0].value);
|
|
23161
23188
|
};
|
|
23162
23189
|
AggrFuncColumnRendererCB.prototype.getDefaultCaption = function () {
|
|
23163
|
-
console.log('Calling getDefaultCaption() AGGR');
|
|
23164
23190
|
return this.getDefaultTitleText(this.baseAttr) + ' '
|
|
23165
23191
|
+ this.bar.getContext().getModel().getAggrFunctionCaption(this.column.expr.func);
|
|
23166
23192
|
};
|
|
@@ -23510,7 +23536,6 @@ var ColumnRendererCB = /** @class */ (function () {
|
|
|
23510
23536
|
.toDOM();
|
|
23511
23537
|
};
|
|
23512
23538
|
ColumnRendererCB.prototype.getDefaultCaption = function () {
|
|
23513
|
-
console.log('Calling getDefaultCaption() BASE');
|
|
23514
23539
|
return this.getDefaultTitleText(this.baseAttr);
|
|
23515
23540
|
};
|
|
23516
23541
|
ColumnRendererCB.prototype.getDefaultTitleText = function (attr) {
|
|
@@ -25353,7 +25378,7 @@ var ProcessWidget = /** @class */ (function (_super) {
|
|
|
25353
25378
|
/* harmony import */ var _types_facet_type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(13);
|
|
25354
25379
|
/* harmony import */ var _result_facet__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(31);
|
|
25355
25380
|
/* harmony import */ var _widgets_charts_chart_widget_chartjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(46);
|
|
25356
|
-
/* harmony import */ var _widgets_charts_chart_widget_google__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
25381
|
+
/* harmony import */ var _widgets_charts_chart_widget_google__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(53);
|
|
25357
25382
|
/* harmony import */ var _utils_browser_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(3);
|
|
25358
25383
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
25359
25384
|
var extendStatics = function (d, b) {
|
|
@@ -26661,10 +26686,10 @@ var AggrSettingsDialog = /** @class */ (function () {
|
|
|
26661
26686
|
b.on('change', _this.enableAggrCheckBoxChangeHandler.bind(_this));
|
|
26662
26687
|
})
|
|
26663
26688
|
.addChild('span', function (b) { return b
|
|
26664
|
-
.addClass('slider round'); })
|
|
26689
|
+
.addClass('slider round'); })
|
|
26665
26690
|
.addChild('span', function (b) { return b
|
|
26666
26691
|
.addClass('switch-text')
|
|
26667
|
-
.addText(_easyquery_core__WEBPACK_IMPORTED_MODULE_1__["i18n"].getText('AggrSettings', 'EnableAggrLabel')); }); })
|
|
26692
|
+
.addText(_easyquery_core__WEBPACK_IMPORTED_MODULE_1__["i18n"].getText('AggrSettings', 'EnableAggrLabel')); }); }); })
|
|
26668
26693
|
.addChild('div', function (b) { return b
|
|
26669
26694
|
.id('AggrSettingsComponent'); });
|
|
26670
26695
|
return b.toDOM();
|
|
@@ -26843,10 +26868,10 @@ var AggrSettingsRenderer = /** @class */ (function () {
|
|
|
26843
26868
|
b.on('change', _this.countsCheckboxChangeHandler.bind(_this));
|
|
26844
26869
|
})
|
|
26845
26870
|
.addChild('span', function (b) { return b
|
|
26846
|
-
.addClass('slider round'); })
|
|
26871
|
+
.addClass('slider round'); })
|
|
26847
26872
|
.addChild('span', function (b) { return b
|
|
26848
26873
|
.addClass('switch-text')
|
|
26849
|
-
.addText(_easyquery_core__WEBPACK_IMPORTED_MODULE_3__["i18n"].getText('AggrSettings', 'GroupCountsLabel')); }); })
|
|
26874
|
+
.addText(_easyquery_core__WEBPACK_IMPORTED_MODULE_3__["i18n"].getText('AggrSettings', 'GroupCountsLabel')); }); }); })
|
|
26850
26875
|
.addChild('div', function (b) { return b
|
|
26851
26876
|
.addClass(_this.cssPrefix + "-grandtotals")
|
|
26852
26877
|
.addChild('label', function (b) { return b
|
|
@@ -26859,10 +26884,10 @@ var AggrSettingsRenderer = /** @class */ (function () {
|
|
|
26859
26884
|
b.on('change', _this.grandCheckboxChangeHandler.bind(_this));
|
|
26860
26885
|
})
|
|
26861
26886
|
.addChild('span', function (b) { return b
|
|
26862
|
-
.addClass('slider round'); })
|
|
26887
|
+
.addClass('slider round'); })
|
|
26863
26888
|
.addChild('span', function (b) { return b
|
|
26864
26889
|
.addClass('switch-text')
|
|
26865
|
-
.addText(_easyquery_core__WEBPACK_IMPORTED_MODULE_3__["i18n"].getText('AggrSettings', 'GrandTotalsLabel')); }); });
|
|
26890
|
+
.addText(_easyquery_core__WEBPACK_IMPORTED_MODULE_3__["i18n"].getText('AggrSettings', 'GrandTotalsLabel')); }); }); });
|
|
26866
26891
|
var groups = this.slot.querySelectorAll("." + this.cssPrefix + "-group");
|
|
26867
26892
|
groups.forEach(function (el) {
|
|
26868
26893
|
Object(_easydata_ui__WEBPACK_IMPORTED_MODULE_1__["domel"])(el)
|
|
@@ -28754,7 +28779,7 @@ module.exports = g;
|
|
|
28754
28779
|
/* WEBPACK VAR INJECTION */(function(Promise) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return HttpResponseError; });
|
|
28755
28780
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return HttpClient; });
|
|
28756
28781
|
/* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11);
|
|
28757
|
-
/* harmony import */ var _http_action_result__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
28782
|
+
/* harmony import */ var _http_action_result__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(107);
|
|
28758
28783
|
/* harmony import */ var _http_method__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36);
|
|
28759
28784
|
/* harmony import */ var _http_request__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(55);
|
|
28760
28785
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
@@ -30513,6 +30538,33 @@ var GoogleDataConverter = /** @class */ (function () {
|
|
|
30513
30538
|
/* 103 */
|
|
30514
30539
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
30515
30540
|
|
|
30541
|
+
"use strict";
|
|
30542
|
+
/* WEBPACK VAR INJECTION */(function(Promise) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return InMemoryModelStorage; });
|
|
30543
|
+
/* harmony import */ var _easydata_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
30544
|
+
|
|
30545
|
+
var InMemoryModelStorage = /** @class */ (function () {
|
|
30546
|
+
function InMemoryModelStorage(models) {
|
|
30547
|
+
this.models = [];
|
|
30548
|
+
if (models) {
|
|
30549
|
+
_easydata_core__WEBPACK_IMPORTED_MODULE_0__["utils"].assign(this.models, [], models);
|
|
30550
|
+
}
|
|
30551
|
+
}
|
|
30552
|
+
InMemoryModelStorage.prototype.getModels = function () {
|
|
30553
|
+
var _this = this;
|
|
30554
|
+
return new Promise(function (resolve, reject) {
|
|
30555
|
+
resolve(_this.models);
|
|
30556
|
+
});
|
|
30557
|
+
};
|
|
30558
|
+
return InMemoryModelStorage;
|
|
30559
|
+
}());
|
|
30560
|
+
|
|
30561
|
+
//# sourceMappingURL=model_storage.js.map
|
|
30562
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(51)))
|
|
30563
|
+
|
|
30564
|
+
/***/ }),
|
|
30565
|
+
/* 104 */
|
|
30566
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
30567
|
+
|
|
30516
30568
|
"use strict";
|
|
30517
30569
|
/* WEBPACK VAR INJECTION */(function(Promise) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return EasyGrid; });
|
|
30518
30570
|
/* harmony import */ var _easydata_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
@@ -31680,10 +31732,10 @@ var EasyGrid = /** @class */ (function () {
|
|
|
31680
31732
|
}());
|
|
31681
31733
|
|
|
31682
31734
|
//# sourceMappingURL=easy_grid.js.map
|
|
31683
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
31735
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(105)))
|
|
31684
31736
|
|
|
31685
31737
|
/***/ }),
|
|
31686
|
-
/*
|
|
31738
|
+
/* 105 */
|
|
31687
31739
|
/***/ (function(module, exports, __webpack_require__) {
|
|
31688
31740
|
|
|
31689
31741
|
/* WEBPACK VAR INJECTION */(function(process, global) {/*!
|
|
@@ -32863,7 +32915,7 @@ return Promise$1;
|
|
|
32863
32915
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(97), __webpack_require__(98)))
|
|
32864
32916
|
|
|
32865
32917
|
/***/ }),
|
|
32866
|
-
/*
|
|
32918
|
+
/* 106 */
|
|
32867
32919
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
32868
32920
|
|
|
32869
32921
|
"use strict";
|
|
@@ -33592,7 +33644,7 @@ var AdvancedSearchView = /** @class */ (function (_super) {
|
|
|
33592
33644
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(54)))
|
|
33593
33645
|
|
|
33594
33646
|
/***/ }),
|
|
33595
|
-
/*
|
|
33647
|
+
/* 107 */
|
|
33596
33648
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
33597
33649
|
|
|
33598
33650
|
"use strict";
|
|
@@ -33623,33 +33675,27 @@ var HttpActionResult = /** @class */ (function () {
|
|
|
33623
33675
|
//# sourceMappingURL=http_action_result.js.map
|
|
33624
33676
|
|
|
33625
33677
|
/***/ }),
|
|
33626
|
-
/*
|
|
33678
|
+
/* 108 */
|
|
33627
33679
|
/***/ (function(module, exports, __webpack_require__) {
|
|
33628
33680
|
|
|
33629
|
-
__webpack_require__(
|
|
33630
|
-
module.exports = __webpack_require__(
|
|
33681
|
+
__webpack_require__(109);
|
|
33682
|
+
module.exports = __webpack_require__(124);
|
|
33631
33683
|
|
|
33632
33684
|
|
|
33633
33685
|
/***/ }),
|
|
33634
|
-
/*
|
|
33686
|
+
/* 109 */
|
|
33635
33687
|
/***/ (function(module, exports, __webpack_require__) {
|
|
33636
33688
|
|
|
33637
|
-
__webpack_require__(109);
|
|
33638
33689
|
__webpack_require__(110);
|
|
33639
33690
|
__webpack_require__(111);
|
|
33640
|
-
|
|
33641
33691
|
__webpack_require__(112);
|
|
33692
|
+
|
|
33642
33693
|
__webpack_require__(113);
|
|
33643
33694
|
__webpack_require__(114);
|
|
33644
33695
|
__webpack_require__(115);
|
|
33645
33696
|
__webpack_require__(116);
|
|
33646
|
-
__webpack_require__(117);
|
|
33647
|
-
|
|
33648
|
-
/***/ }),
|
|
33649
|
-
/* 109 */
|
|
33650
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
33651
|
-
|
|
33652
|
-
// extracted by mini-css-extract-plugin
|
|
33697
|
+
__webpack_require__(117);
|
|
33698
|
+
__webpack_require__(118);
|
|
33653
33699
|
|
|
33654
33700
|
/***/ }),
|
|
33655
33701
|
/* 110 */
|
|
@@ -33701,6 +33747,12 @@ __webpack_require__(117);
|
|
|
33701
33747
|
|
|
33702
33748
|
/***/ }),
|
|
33703
33749
|
/* 118 */
|
|
33750
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
33751
|
+
|
|
33752
|
+
// extracted by mini-css-extract-plugin
|
|
33753
|
+
|
|
33754
|
+
/***/ }),
|
|
33755
|
+
/* 119 */
|
|
33704
33756
|
/***/ (function(module, exports) {
|
|
33705
33757
|
|
|
33706
33758
|
// shim for using process in browser
|
|
@@ -33890,7 +33942,7 @@ process.umask = function() { return 0; };
|
|
|
33890
33942
|
|
|
33891
33943
|
|
|
33892
33944
|
/***/ }),
|
|
33893
|
-
/*
|
|
33945
|
+
/* 120 */
|
|
33894
33946
|
/***/ (function(module, exports) {
|
|
33895
33947
|
|
|
33896
33948
|
var g;
|
|
@@ -33916,10 +33968,10 @@ module.exports = g;
|
|
|
33916
33968
|
|
|
33917
33969
|
|
|
33918
33970
|
/***/ }),
|
|
33919
|
-
/* 120 */,
|
|
33920
33971
|
/* 121 */,
|
|
33921
33972
|
/* 122 */,
|
|
33922
|
-
/* 123
|
|
33973
|
+
/* 123 */,
|
|
33974
|
+
/* 124 */
|
|
33923
33975
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
33924
33976
|
|
|
33925
33977
|
"use strict";
|
|
@@ -34465,7 +34517,7 @@ var chart_type = __webpack_require__(5);
|
|
|
34465
34517
|
var chart_widget = __webpack_require__(47);
|
|
34466
34518
|
|
|
34467
34519
|
// EXTERNAL MODULE: ./dist/lib/widgets/charts/chart_widget_google.js
|
|
34468
|
-
var chart_widget_google = __webpack_require__(
|
|
34520
|
+
var chart_widget_google = __webpack_require__(53);
|
|
34469
34521
|
|
|
34470
34522
|
// EXTERNAL MODULE: ./dist/lib/widgets/charts/chart_widget_chartjs.js
|
|
34471
34523
|
var chart_widget_chartjs = __webpack_require__(46);
|
|
@@ -34513,7 +34565,7 @@ var condition_renderer = __webpack_require__(35);
|
|
|
34513
34565
|
var condition_group_renderer = __webpack_require__(76);
|
|
34514
34566
|
|
|
34515
34567
|
// EXTERNAL MODULE: ./dist/lib/widgets/renderers/querypanel/attribute_expression_renderer.js
|
|
34516
|
-
var attribute_expression_renderer = __webpack_require__(
|
|
34568
|
+
var attribute_expression_renderer = __webpack_require__(52);
|
|
34517
34569
|
|
|
34518
34570
|
// EXTERNAL MODULE: ./dist/lib/widgets/renderers/querypanel/expression_renderer.js
|
|
34519
34571
|
var expression_renderer = __webpack_require__(23);
|
|
@@ -34549,7 +34601,7 @@ var pivot_table_facet = __webpack_require__(88);
|
|
|
34549
34601
|
var view = __webpack_require__(32);
|
|
34550
34602
|
|
|
34551
34603
|
// EXTERNAL MODULE: ./dist/lib/views/adv_search_view.js
|
|
34552
|
-
var adv_search_view = __webpack_require__(
|
|
34604
|
+
var adv_search_view = __webpack_require__(106);
|
|
34553
34605
|
|
|
34554
34606
|
// CONCATENATED MODULE: ./dist/lib/views/data_filter_view.js
|
|
34555
34607
|
var data_filter_view_extends = (undefined && undefined.__extends) || (function () {
|
|
@@ -34573,7 +34625,9 @@ var data_filter_view_extends = (undefined && undefined.__extends) || (function (
|
|
|
34573
34625
|
var data_filter_view_DataFilterView = /** @class */ (function (_super) {
|
|
34574
34626
|
data_filter_view_extends(DataFilterView, _super);
|
|
34575
34627
|
function DataFilterView() {
|
|
34576
|
-
|
|
34628
|
+
var _this = _super.call(this) || this;
|
|
34629
|
+
_this.resultOptions.fetchEmptyQueries = true;
|
|
34630
|
+
return _this;
|
|
34577
34631
|
}
|
|
34578
34632
|
DataFilterView.prototype.initOptions = function (options) {
|
|
34579
34633
|
var _this = this;
|
|
@@ -34651,7 +34705,9 @@ var html_data_filter_view_extends = (undefined && undefined.__extends) || (funct
|
|
|
34651
34705
|
var html_data_filter_view_HtmlDataFilterView = /** @class */ (function (_super) {
|
|
34652
34706
|
html_data_filter_view_extends(HtmlDataFilterView, _super);
|
|
34653
34707
|
function HtmlDataFilterView() {
|
|
34654
|
-
|
|
34708
|
+
var _this = _super.call(this) || this;
|
|
34709
|
+
_this.resultOptions.fetchEmptyQueries = true;
|
|
34710
|
+
return _this;
|
|
34655
34711
|
}
|
|
34656
34712
|
/**
|
|
34657
34713
|
* Creates the widget that represents Grid Widget.
|
|
@@ -34724,7 +34780,7 @@ var report_view_ReportView = /** @class */ (function (_super) {
|
|
|
34724
34780
|
_this.loadReportButtonClickHandler = _this.loadReportButtonClick.bind(_this);
|
|
34725
34781
|
_this.saveReportButtonClickHandler = _this.saveReportButtonClick.bind(_this);
|
|
34726
34782
|
_this.removeReportButtonClickHandler = _this.removeReportButtonClick.bind(_this);
|
|
34727
|
-
_this.
|
|
34783
|
+
_this.reloadReportDataButtonClickHandler = _this.reloadReportDataButtonClick.bind(_this);
|
|
34728
34784
|
browser_utils["a" /* browserUtils */].onMobileModeChanged(function (_) {
|
|
34729
34785
|
document.location.reload();
|
|
34730
34786
|
});
|
|
@@ -34811,7 +34867,7 @@ var report_view_ReportView = /** @class */ (function (_super) {
|
|
|
34811
34867
|
var loadReportButton = "LoadReportButton";
|
|
34812
34868
|
var saveReportButton = "SaveReportButton";
|
|
34813
34869
|
var removeReportButton = "RemoveReportButton";
|
|
34814
|
-
var
|
|
34870
|
+
var reloadReportDataButton = "ReloadReportDataButton";
|
|
34815
34871
|
var resultCountSpan = "ResultCount";
|
|
34816
34872
|
var exportButtons = "ResultExportButtons";
|
|
34817
34873
|
var exportClass = this.exportClass;
|
|
@@ -34823,7 +34879,7 @@ var report_view_ReportView = /** @class */ (function (_super) {
|
|
|
34823
34879
|
loadReportButton = options.slots.loadReportButton || loadReportButton;
|
|
34824
34880
|
saveReportButton = options.slots.saveReportButton || saveReportButton;
|
|
34825
34881
|
removeReportButton = options.slots.removeReportButton || removeReportButton;
|
|
34826
|
-
|
|
34882
|
+
reloadReportDataButton = options.slots.reloadReportDataButton || reloadReportDataButton;
|
|
34827
34883
|
exportClass = options.slots.exportClass || exportClass;
|
|
34828
34884
|
}
|
|
34829
34885
|
this.exportButtons = this.domRoots.reduce(function (elems, root) {
|
|
@@ -34870,10 +34926,14 @@ var report_view_ReportView = /** @class */ (function (_super) {
|
|
|
34870
34926
|
this.removeReportButton.addEventListener('click', this.removeReportButtonClickHandler);
|
|
34871
34927
|
}
|
|
34872
34928
|
}
|
|
34873
|
-
if (!this.
|
|
34874
|
-
this.
|
|
34875
|
-
|
|
34876
|
-
|
|
34929
|
+
if (!this.reloadReportDataButton) {
|
|
34930
|
+
this.reloadReportDataButton = this.resolveElement(reloadReportDataButton);
|
|
34931
|
+
//OBSOLETE: remove the next 3 lines. We just support the old default button ID here
|
|
34932
|
+
if (!this.reloadReportDataButton) {
|
|
34933
|
+
this.reloadReportDataButton = this.resolveElement('UpdateReportButton');
|
|
34934
|
+
}
|
|
34935
|
+
if (this.reloadReportDataButton) {
|
|
34936
|
+
this.reloadReportDataButton.addEventListener('click', this.reloadReportDataButtonClickHandler);
|
|
34877
34937
|
}
|
|
34878
34938
|
}
|
|
34879
34939
|
this.reportListSlot = document.getElementById('ReportList');
|
|
@@ -35178,8 +35238,8 @@ var report_view_ReportView = /** @class */ (function (_super) {
|
|
|
35178
35238
|
this.removeReportButton.removeEventListener('click', this.removeReportButtonClickHandler);
|
|
35179
35239
|
this.removeReportButton = null;
|
|
35180
35240
|
}
|
|
35181
|
-
if (this.
|
|
35182
|
-
this.
|
|
35241
|
+
if (this.reloadReportDataButton) {
|
|
35242
|
+
this.reloadReportDataButton.removeEventListener('click', this.reloadReportDataButtonClickHandler);
|
|
35183
35243
|
this.removeReportButton = null;
|
|
35184
35244
|
}
|
|
35185
35245
|
if (this.reportListSlot) {
|
|
@@ -35280,7 +35340,7 @@ var report_view_ReportView = /** @class */ (function (_super) {
|
|
|
35280
35340
|
/**
|
|
35281
35341
|
* The handler of the "Update" button click.
|
|
35282
35342
|
*/
|
|
35283
|
-
ReportView.prototype.
|
|
35343
|
+
ReportView.prototype.reloadReportDataButtonClick = function () {
|
|
35284
35344
|
this.fetchData();
|
|
35285
35345
|
};
|
|
35286
35346
|
/**
|