@easyquery/enterprise 7.2.0-rc01 → 7.2.0-rc05
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/eq.enterprise.js +1165 -1036
- package/dist/browser/eq.enterprise.js.map +1 -1
- package/dist/browser/eq.enterprise.min.js +3 -3
- package/dist/browser/eq.enterprise.min.js.map +1 -1
- package/dist/bundles/easyquery.enterprise.js +65 -55
- package/dist/bundles/easyquery.enterprise.js.map +1 -1
- package/dist/bundles/easyquery.enterprise.min.js +1 -1
- package/dist/bundles/easyquery.enterprise.min.js.map +1 -1
- package/dist/lib/data/data_table_aggr_calculator.js +13 -11
- package/dist/lib/data/data_table_aggr_calculator.js.map +1 -1
- package/dist/lib/data/eqs_aggr_calculator.js +0 -1
- package/dist/lib/data/eqs_aggr_calculator.js.map +1 -1
- package/dist/lib/extensions.js +1 -1
- package/dist/lib/extensions.js.map +1 -1
- package/dist/lib/utils/lcv.js +1 -1
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* EasyQuery.JS Enterprise 7.2.0-
|
|
3
|
-
* Copyright
|
|
2
|
+
* EasyQuery.JS Enterprise 7.2.0-rc05 (https://korzh.com/easyquery/javascript)
|
|
3
|
+
* Copyright 2022 Korzh.com. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* EasyQuery.JS commercial licenses may be obtained at
|
|
6
6
|
* https://korzh.com/easyquery/javascript#LIC or as a part of
|
|
@@ -91,7 +91,7 @@ window["easyquery"] =
|
|
|
91
91
|
/******/
|
|
92
92
|
/******/
|
|
93
93
|
/******/ // Load entry module and return exports
|
|
94
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
94
|
+
/******/ return __webpack_require__(__webpack_require__.s = 112);
|
|
95
95
|
/******/ })
|
|
96
96
|
/************************************************************************/
|
|
97
97
|
/******/ ([
|
|
@@ -158,7 +158,7 @@ var EditorTag = {
|
|
|
158
158
|
};
|
|
159
159
|
//# sourceMappingURL=editor_tag.js.map
|
|
160
160
|
// EXTERNAL MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/core/dist/lib/http/http_method.js
|
|
161
|
-
var http_method = __webpack_require__(
|
|
161
|
+
var http_method = __webpack_require__(36);
|
|
162
162
|
|
|
163
163
|
// EXTERNAL MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/core/dist/lib/http/http_request.js
|
|
164
164
|
var http_request = __webpack_require__(57);
|
|
@@ -295,6 +295,7 @@ var meta_entity_MetaEntityAttr = /** @class */ (function () {
|
|
|
295
295
|
this.lookupEntity = dto.lent;
|
|
296
296
|
this.dataAttr = dto.dattr;
|
|
297
297
|
this.lookupDataAttr = dto.ldattr;
|
|
298
|
+
this.defaultValue = dto.defVal;
|
|
298
299
|
this.isNullable = utils["a" /* utils */].getIfDefined(dto.nul, this.isNullable);
|
|
299
300
|
this.isEditable = utils["a" /* utils */].getIfDefined(dto.ied, this.isEditable);
|
|
300
301
|
this.showOnView = utils["a" /* utils */].getIfDefined(dto.ivis || dto.sov, this.showOnView);
|
|
@@ -1349,10 +1350,10 @@ __webpack_require__.d(__webpack_exports__, "DialogFooterAlignment", function() {
|
|
|
1349
1350
|
__webpack_require__.d(__webpack_exports__, "dialogs", function() { return /* binding */ dialogs; });
|
|
1350
1351
|
|
|
1351
1352
|
// EXTERNAL MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/ui/dist/lib/grid/easy_grid.js
|
|
1352
|
-
var easy_grid = __webpack_require__(
|
|
1353
|
+
var easy_grid = __webpack_require__(106);
|
|
1353
1354
|
|
|
1354
1355
|
// EXTERNAL MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/ui/dist/lib/grid/easy_grid_options.js
|
|
1355
|
-
var easy_grid_options = __webpack_require__(
|
|
1356
|
+
var easy_grid_options = __webpack_require__(34);
|
|
1356
1357
|
|
|
1357
1358
|
// EXTERNAL MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/ui/dist/lib/grid/easy_grid_columns.js
|
|
1358
1359
|
var easy_grid_columns = __webpack_require__(21);
|
|
@@ -2014,7 +2015,7 @@ var default_date_time_picker_DefaultDateTimePicker = /** @class */ (function (_s
|
|
|
2014
2015
|
var browser_utils = __webpack_require__(68);
|
|
2015
2016
|
|
|
2016
2017
|
// EXTERNAL MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/ui/dist/lib/utils/drag_manager.js
|
|
2017
|
-
var drag_manager = __webpack_require__(
|
|
2018
|
+
var drag_manager = __webpack_require__(37);
|
|
2018
2019
|
|
|
2019
2020
|
// EXTERNAL MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/ui/dist/lib/utils/mask.js
|
|
2020
2021
|
var mask = __webpack_require__(69);
|
|
@@ -2102,6 +2103,7 @@ __webpack_require__.d(__webpack_exports__, "Operand", function() { return /* ree
|
|
|
2102
2103
|
__webpack_require__.d(__webpack_exports__, "EqValueEditor", function() { return /* reexport */ value_editor["a" /* EqValueEditor */]; });
|
|
2103
2104
|
__webpack_require__.d(__webpack_exports__, "EqAction", function() { return /* reexport */ EqAction; });
|
|
2104
2105
|
__webpack_require__.d(__webpack_exports__, "EqModelLoader", function() { return /* reexport */ model_loader["a" /* EqModelLoader */]; });
|
|
2106
|
+
__webpack_require__.d(__webpack_exports__, "InMemoryModelStorage", function() { return /* reexport */ model_storage["a" /* InMemoryModelStorage */]; });
|
|
2105
2107
|
__webpack_require__.d(__webpack_exports__, "BrowserQueryStorage", function() { return /* reexport */ query_storage["a" /* BrowserQueryStorage */]; });
|
|
2106
2108
|
__webpack_require__.d(__webpack_exports__, "EqContext", function() { return /* reexport */ context_EqContext; });
|
|
2107
2109
|
__webpack_require__.d(__webpack_exports__, "Widget", function() { return /* reexport */ widget_Widget; });
|
|
@@ -2408,8 +2410,9 @@ var eq_services_EqServiceProvider = /** @class */ (function () {
|
|
|
2408
2410
|
this.queryFileLoader = null;
|
|
2409
2411
|
this.aggrCalculator = null;
|
|
2410
2412
|
this.httpClient = new public_api["HttpClient"]();
|
|
2411
|
-
this.httpClient.defaultHeaders['x-eqjs-version'] = '7.
|
|
2413
|
+
this.httpClient.defaultHeaders['x-eqjs-version'] = '7.2.0';
|
|
2412
2414
|
this.modelResolver = function (_) { return new data_model["a" /* DataModel */](); };
|
|
2415
|
+
this.modelStorageResolver = null;
|
|
2413
2416
|
this.queryResolver = function (context) { return new query_query["b" /* Query */](context.getModel()); };
|
|
2414
2417
|
this.modelLoaderResolver = function (context) { return new EqServerModelLoader(context); };
|
|
2415
2418
|
this.queryStorageResolver = function (context) { return new query_storage["a" /* BrowserQueryStorage */](context); };
|
|
@@ -2420,6 +2423,7 @@ var eq_services_EqServiceProvider = /** @class */ (function () {
|
|
|
2420
2423
|
this.aggrCalculatoResolver = function (context) { return new eq_aggr_container["a" /* DefaultAggregatesCalculator */](context); };
|
|
2421
2424
|
}
|
|
2422
2425
|
EqServiceProvider.prototype.reset = function () {
|
|
2426
|
+
this.modelStorage = null;
|
|
2423
2427
|
this.modelLoader = null;
|
|
2424
2428
|
this.queryStorage = null;
|
|
2425
2429
|
this.querySynchronizer = null;
|
|
@@ -2448,6 +2452,15 @@ var eq_services_EqServiceProvider = /** @class */ (function () {
|
|
|
2448
2452
|
}
|
|
2449
2453
|
return this.modelLoader;
|
|
2450
2454
|
};
|
|
2455
|
+
EqServiceProvider.prototype.getModelStorage = function () {
|
|
2456
|
+
if (!this.modelStorage) {
|
|
2457
|
+
if (!this.modelStorageResolver) {
|
|
2458
|
+
throw 'ModelStorageResolver is not defined';
|
|
2459
|
+
}
|
|
2460
|
+
this.modelStorage = this.modelStorageResolver(this.context);
|
|
2461
|
+
}
|
|
2462
|
+
return this.modelStorage;
|
|
2463
|
+
};
|
|
2451
2464
|
EqServiceProvider.prototype.getQueryStorage = function () {
|
|
2452
2465
|
if (!this.queryStorage) {
|
|
2453
2466
|
if (!this.queryStorageResolver) {
|
|
@@ -2511,6 +2524,9 @@ var eq_services_EqServiceProvider = /** @class */ (function () {
|
|
|
2511
2524
|
EqServiceProvider.prototype.registerModelLoaderResolver = function (resolver) {
|
|
2512
2525
|
this.modelLoaderResolver = resolver;
|
|
2513
2526
|
};
|
|
2527
|
+
EqServiceProvider.prototype.registerModelStorageResolver = function (resolver) {
|
|
2528
|
+
this.modelStorageResolver = resolver;
|
|
2529
|
+
};
|
|
2514
2530
|
EqServiceProvider.prototype.registerQueryStorageResolver = function (resolver) {
|
|
2515
2531
|
this.queryStorageResolver = resolver;
|
|
2516
2532
|
};
|
|
@@ -2609,6 +2625,9 @@ var EqAction;
|
|
|
2609
2625
|
EqAction["UploadQueryFile"] = "UploadQueryFile";
|
|
2610
2626
|
})(EqAction || (EqAction = {}));
|
|
2611
2627
|
//# sourceMappingURL=eq_actions.js.map
|
|
2628
|
+
// EXTERNAL MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/packs/core/dist/lib/main/model_storage.js
|
|
2629
|
+
var model_storage = __webpack_require__(105);
|
|
2630
|
+
|
|
2612
2631
|
// EXTERNAL MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/packs/core/dist/lib/query/query_events.js
|
|
2613
2632
|
var query_events = __webpack_require__(14);
|
|
2614
2633
|
|
|
@@ -2913,10 +2932,14 @@ var context_EqContext = /** @class */ (function () {
|
|
|
2913
2932
|
}
|
|
2914
2933
|
if (options.endpoint) {
|
|
2915
2934
|
this.baseEndpoint = options.endpoint;
|
|
2916
|
-
console.warn('The `endpoint` option is deprecated
|
|
2935
|
+
console.warn('The `endpoint` option is deprecated.\n'
|
|
2917
2936
|
+ 'Please use `context.useEndpoint(endpointURL)` function instead.');
|
|
2918
2937
|
}
|
|
2919
2938
|
this.setDefaultEndpoints(this.baseEndpoint);
|
|
2939
|
+
if (options.modelStorageResolver) {
|
|
2940
|
+
var eqServices = this.getServices();
|
|
2941
|
+
eqServices.registerModelStorageResolver(options.modelStorageResolver);
|
|
2942
|
+
}
|
|
2920
2943
|
this.loadQueryOnStart = false;
|
|
2921
2944
|
if (options.loadQueryOnStart) {
|
|
2922
2945
|
this.loadQueryOnStart = options.loadQueryOnStart;
|
|
@@ -3785,6 +3808,7 @@ var context_EqContext = /** @class */ (function () {
|
|
|
3785
3808
|
_this.resultContent = result;
|
|
3786
3809
|
if (result.resultSet) {
|
|
3787
3810
|
_this.resultTable.clear();
|
|
3811
|
+
_this.resultTable.id = _this.query.getId();
|
|
3788
3812
|
var resultSet = result.resultSet;
|
|
3789
3813
|
for (var _i = 0, _a = resultSet.cols; _i < _a.length; _i++) {
|
|
3790
3814
|
var col = _a[_i];
|
|
@@ -4261,6 +4285,7 @@ addEasyQueryCoreTexts();
|
|
|
4261
4285
|
|
|
4262
4286
|
|
|
4263
4287
|
|
|
4288
|
+
|
|
4264
4289
|
|
|
4265
4290
|
|
|
4266
4291
|
//for backward compatibility
|
|
@@ -8198,7 +8223,7 @@ var qp_editable_part = __webpack_require__(10);
|
|
|
8198
8223
|
var popup_menu = __webpack_require__(9);
|
|
8199
8224
|
|
|
8200
8225
|
// EXTERNAL MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/packs/ui/dist/lib/widgets/renderers/querypanel/condition_renderer.js
|
|
8201
|
-
var condition_renderer = __webpack_require__(
|
|
8226
|
+
var condition_renderer = __webpack_require__(35);
|
|
8202
8227
|
|
|
8203
8228
|
// EXTERNAL MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/packs/ui/dist/lib/widgets/renderers/querypanel/condition_group_renderer.js
|
|
8204
8229
|
var condition_group_renderer = __webpack_require__(78);
|
|
@@ -8207,7 +8232,7 @@ var condition_group_renderer = __webpack_require__(78);
|
|
|
8207
8232
|
var input_expression_renderer = __webpack_require__(80);
|
|
8208
8233
|
|
|
8209
8234
|
// EXTERNAL MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/packs/ui/dist/lib/widgets/renderers/querypanel/attribute_expression_renderer.js
|
|
8210
|
-
var attribute_expression_renderer = __webpack_require__(
|
|
8235
|
+
var attribute_expression_renderer = __webpack_require__(52);
|
|
8211
8236
|
|
|
8212
8237
|
// EXTERNAL MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/packs/ui/dist/lib/widgets/renderers/querypanel/addrow_renderer.js
|
|
8213
8238
|
var addrow_renderer = __webpack_require__(81);
|
|
@@ -9596,8 +9621,6 @@ var Query = /** @class */ (function () {
|
|
|
9596
9621
|
}
|
|
9597
9622
|
this.setDefaultName();
|
|
9598
9623
|
this.description = "";
|
|
9599
|
-
this.modelId = "";
|
|
9600
|
-
this.modelName = "";
|
|
9601
9624
|
this.model = (model) ? model : new _dm_data_model__WEBPACK_IMPORTED_MODULE_2__[/* DataModel */ "a"]();
|
|
9602
9625
|
if (data) {
|
|
9603
9626
|
this.loadFromData(data);
|
|
@@ -9611,10 +9634,14 @@ var Query = /** @class */ (function () {
|
|
|
9611
9634
|
this.parentQuery = options.parent;
|
|
9612
9635
|
}
|
|
9613
9636
|
this.addChangedCallback(function (ev) {
|
|
9614
|
-
if (ev.data
|
|
9615
|
-
&& ev.data.
|
|
9637
|
+
if (ev.data
|
|
9638
|
+
&& ((ev.data.part & _query_events__WEBPACK_IMPORTED_MODULE_10__[/* QueryChangePart */ "b"].Columns) > 0)
|
|
9616
9639
|
&& !ev.data.aggregation) {
|
|
9617
|
-
_this.
|
|
9640
|
+
if (_this._enableAggregation && _this.updateAggregationSettings()) {
|
|
9641
|
+
_this.fireChangedEvent({
|
|
9642
|
+
part: _query_events__WEBPACK_IMPORTED_MODULE_10__[/* QueryChangePart */ "b"].Aggregation
|
|
9643
|
+
});
|
|
9644
|
+
}
|
|
9618
9645
|
}
|
|
9619
9646
|
});
|
|
9620
9647
|
}
|
|
@@ -9635,19 +9662,6 @@ var Query = /** @class */ (function () {
|
|
|
9635
9662
|
this.processQueryForAggregation();
|
|
9636
9663
|
var aggrCols = this.columns.filter(function (c) { return c.enabled
|
|
9637
9664
|
&& c.expr.tag == _types_expr_tag__WEBPACK_IMPORTED_MODULE_8__[/* ExprTag */ "a"].AggregateFunction; });
|
|
9638
|
-
// // query contains aggregate columns
|
|
9639
|
-
// if (aggrCols.length) {
|
|
9640
|
-
// for (const col of aggrCols) {
|
|
9641
|
-
// const attr = this.model.getAttributeById(col.expr.args[0].value);
|
|
9642
|
-
// this.changeColumnType(col, ExprTag.EntityAttribute, {
|
|
9643
|
-
// caption: this.model.getAttributeText(attr, `{attr}`)
|
|
9644
|
-
// });
|
|
9645
|
-
// }
|
|
9646
|
-
// this.fireChangedEvent({
|
|
9647
|
-
// part: QueryChangePart.Columns,
|
|
9648
|
-
// wasModified: true
|
|
9649
|
-
// });
|
|
9650
|
-
// }
|
|
9651
9665
|
}
|
|
9652
9666
|
if (!this._enableAggregation) {
|
|
9653
9667
|
this.aggrSettings.clear();
|
|
@@ -9656,6 +9670,40 @@ var Query = /** @class */ (function () {
|
|
|
9656
9670
|
enumerable: true,
|
|
9657
9671
|
configurable: true
|
|
9658
9672
|
});
|
|
9673
|
+
Query.prototype.updateAggregationSettings = function () {
|
|
9674
|
+
var hasChanged = false;
|
|
9675
|
+
var aggrSettings = this.getAggregationSettings();
|
|
9676
|
+
for (var i = aggrSettings.groups.length - 1; i >= 0; i--) {
|
|
9677
|
+
var group = aggrSettings.groups[i];
|
|
9678
|
+
var _loop_1 = function (j) {
|
|
9679
|
+
var colId = group.columns[j];
|
|
9680
|
+
if (!this_1.columns.find(function (col) { return col.id === colId; })) {
|
|
9681
|
+
group.columns.splice(j, 1);
|
|
9682
|
+
hasChanged = true;
|
|
9683
|
+
}
|
|
9684
|
+
};
|
|
9685
|
+
var this_1 = this;
|
|
9686
|
+
for (var j = group.columns.length - 1; j >= 0; j--) {
|
|
9687
|
+
_loop_1(j);
|
|
9688
|
+
}
|
|
9689
|
+
if (group.columns.length == 0) {
|
|
9690
|
+
aggrSettings.groups.slice(i, 1);
|
|
9691
|
+
}
|
|
9692
|
+
}
|
|
9693
|
+
var aggregates = aggrSettings.getAggregates();
|
|
9694
|
+
var _loop_2 = function (i) {
|
|
9695
|
+
var aggr = aggregates[i];
|
|
9696
|
+
if (!this_2.columns.find(function (col) { return col.id === aggr.colId; })) {
|
|
9697
|
+
aggregates.splice(i, 1);
|
|
9698
|
+
hasChanged = true;
|
|
9699
|
+
}
|
|
9700
|
+
};
|
|
9701
|
+
var this_2 = this;
|
|
9702
|
+
for (var i = aggregates.length - 1; i >= 0; i--) {
|
|
9703
|
+
_loop_2(i);
|
|
9704
|
+
}
|
|
9705
|
+
return hasChanged;
|
|
9706
|
+
};
|
|
9659
9707
|
Query.prototype.createSubQuery = function () {
|
|
9660
9708
|
return new Query(this.model);
|
|
9661
9709
|
};
|
|
@@ -11260,6 +11308,11 @@ var ResultFacet = /** @class */ (function () {
|
|
|
11260
11308
|
var resultTable = context.resultTable;
|
|
11261
11309
|
return (resultTable.getCachedCount() == resultTable.getTotal());
|
|
11262
11310
|
};
|
|
11311
|
+
ResultFacet.prototype.showErrorMessage = function (message) {
|
|
11312
|
+
this.displayMessageDiv.innerHTML = message;
|
|
11313
|
+
this.displayMessageDiv.classList.add(this.cssPrefix + "-error-message");
|
|
11314
|
+
Object(_easydata_ui__WEBPACK_IMPORTED_MODULE_1__["domel"])(this.displayMessageDiv).show();
|
|
11315
|
+
};
|
|
11263
11316
|
ResultFacet.prototype.showUnableDisplayMessage = function (message) {
|
|
11264
11317
|
var context = this.getContext();
|
|
11265
11318
|
var resultTable = context.resultTable;
|
|
@@ -11857,6 +11910,10 @@ var view_View = /** @class */ (function () {
|
|
|
11857
11910
|
View.prototype.fetchData = function (options) {
|
|
11858
11911
|
var _this = this;
|
|
11859
11912
|
options = options || { refresh: true };
|
|
11913
|
+
this.context.clearResult();
|
|
11914
|
+
//don't run fetch if the query is empty
|
|
11915
|
+
if (this.context.getQuery().isEmpty() && !this.resultOptions.fetchEmptyQueries)
|
|
11916
|
+
return;
|
|
11860
11917
|
this.showResultSpinner();
|
|
11861
11918
|
this.context.fetchData({
|
|
11862
11919
|
elasticPaging: options.elasticPaging,
|
|
@@ -12238,6 +12295,20 @@ var Operand = /** @class */ (function () {
|
|
|
12238
12295
|
/* 34 */
|
|
12239
12296
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
12240
12297
|
|
|
12298
|
+
"use strict";
|
|
12299
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AutoResizeColumns; });
|
|
12300
|
+
var AutoResizeColumns;
|
|
12301
|
+
(function (AutoResizeColumns) {
|
|
12302
|
+
AutoResizeColumns[AutoResizeColumns["Always"] = 0] = "Always";
|
|
12303
|
+
AutoResizeColumns[AutoResizeColumns["Once"] = 1] = "Once";
|
|
12304
|
+
AutoResizeColumns[AutoResizeColumns["Never"] = 2] = "Never";
|
|
12305
|
+
})(AutoResizeColumns || (AutoResizeColumns = {}));
|
|
12306
|
+
//# sourceMappingURL=easy_grid_options.js.map
|
|
12307
|
+
|
|
12308
|
+
/***/ }),
|
|
12309
|
+
/* 35 */
|
|
12310
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
12311
|
+
|
|
12241
12312
|
"use strict";
|
|
12242
12313
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ConditionAction; });
|
|
12243
12314
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return ConditionRenderer; });
|
|
@@ -12760,7 +12831,7 @@ var SimpleConditionRenderer = /** @class */ (function (_super) {
|
|
|
12760
12831
|
//# sourceMappingURL=condition_renderer.js.map
|
|
12761
12832
|
|
|
12762
12833
|
/***/ }),
|
|
12763
|
-
/*
|
|
12834
|
+
/* 36 */
|
|
12764
12835
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
12765
12836
|
|
|
12766
12837
|
"use strict";
|
|
@@ -12777,7 +12848,7 @@ var HttpMethod;
|
|
|
12777
12848
|
//# sourceMappingURL=http_method.js.map
|
|
12778
12849
|
|
|
12779
12850
|
/***/ }),
|
|
12780
|
-
/*
|
|
12851
|
+
/* 37 */
|
|
12781
12852
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
12782
12853
|
|
|
12783
12854
|
"use strict";
|
|
@@ -13155,20 +13226,6 @@ var DragManager = /** @class */ (function () {
|
|
|
13155
13226
|
var eqDragManager = new DragManager();
|
|
13156
13227
|
//# sourceMappingURL=drag_manager.js.map
|
|
13157
13228
|
|
|
13158
|
-
/***/ }),
|
|
13159
|
-
/* 37 */
|
|
13160
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
13161
|
-
|
|
13162
|
-
"use strict";
|
|
13163
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AutoResizeColumns; });
|
|
13164
|
-
var AutoResizeColumns;
|
|
13165
|
-
(function (AutoResizeColumns) {
|
|
13166
|
-
AutoResizeColumns[AutoResizeColumns["Always"] = 0] = "Always";
|
|
13167
|
-
AutoResizeColumns[AutoResizeColumns["Once"] = 1] = "Once";
|
|
13168
|
-
AutoResizeColumns[AutoResizeColumns["Never"] = 2] = "Never";
|
|
13169
|
-
})(AutoResizeColumns || (AutoResizeColumns = {}));
|
|
13170
|
-
//# sourceMappingURL=easy_grid_options.js.map
|
|
13171
|
-
|
|
13172
13229
|
/***/ }),
|
|
13173
13230
|
/* 38 */
|
|
13174
13231
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
@@ -15283,7 +15340,7 @@ var EasyGridWidget = /** @class */ (function (_super) {
|
|
|
15283
15340
|
_super.prototype.init.call(this, context, options);
|
|
15284
15341
|
var gridOptions = __assign(__assign({}, options), { slot: this.slot, dataTable: context.resultTable });
|
|
15285
15342
|
this.options = _easydata_core__WEBPACK_IMPORTED_MODULE_1__["utils"].assign(this.options, options);
|
|
15286
|
-
gridOptions.
|
|
15343
|
+
gridOptions.onPlusButtonClick = function (ev) { return _this.addColumnClickHandler(ev); };
|
|
15287
15344
|
gridOptions.onColumnMoved = function (ev) { return _this.columnMovedHandler(ev); };
|
|
15288
15345
|
if (gridOptions.aggregates) {
|
|
15289
15346
|
this.hasCustomTotalsSettings = true;
|
|
@@ -15309,21 +15366,6 @@ var EasyGridWidget = /** @class */ (function (_super) {
|
|
|
15309
15366
|
this.grid.refresh();
|
|
15310
15367
|
};
|
|
15311
15368
|
EasyGridWidget.prototype.attachQueryObserver = function () {
|
|
15312
|
-
var _this = this;
|
|
15313
|
-
var query = this.getQuery();
|
|
15314
|
-
this.queryEventCallbackId = query.addChangedCallback(function (event) {
|
|
15315
|
-
//if something has changed, and that change is related to columns
|
|
15316
|
-
var edata = event.data;
|
|
15317
|
-
if (!edata || (edata.part != _easyquery_core__WEBPACK_IMPORTED_MODULE_0__["QueryChangePart"].Columns && edata.part != _easyquery_core__WEBPACK_IMPORTED_MODULE_0__["QueryChangePart"].All)) {
|
|
15318
|
-
return;
|
|
15319
|
-
}
|
|
15320
|
-
if (event.data.source == _this) {
|
|
15321
|
-
_this.grid.refresh();
|
|
15322
|
-
}
|
|
15323
|
-
else {
|
|
15324
|
-
_this.refresh();
|
|
15325
|
-
}
|
|
15326
|
-
});
|
|
15327
15369
|
};
|
|
15328
15370
|
EasyGridWidget.prototype.destroyCore = function () {
|
|
15329
15371
|
this.detachQueryObserver();
|
|
@@ -16579,570 +16621,97 @@ var Condition = /** @class */ (function () {
|
|
|
16579
16621
|
|
|
16580
16622
|
/***/ }),
|
|
16581
16623
|
/* 51 */
|
|
16582
|
-
/***/ (function(module,
|
|
16583
|
-
|
|
16584
|
-
"use strict";
|
|
16585
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AttributeExpressionRenderer; });
|
|
16586
|
-
/* harmony import */ var _easydata_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
16587
|
-
/* harmony import */ var _easyquery_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
|
|
16588
|
-
/* harmony import */ var _easydata_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
|
|
16589
|
-
/* harmony import */ var _list_expression_renderer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(25);
|
|
16590
|
-
/* harmony import */ var _utils_browser_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3);
|
|
16591
|
-
/* harmony import */ var _types_qp_editable_part__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(10);
|
|
16592
|
-
var __extends = (undefined && undefined.__extends) || (function () {
|
|
16593
|
-
var extendStatics = function (d, b) {
|
|
16594
|
-
extendStatics = Object.setPrototypeOf ||
|
|
16595
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
16596
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
16597
|
-
return extendStatics(d, b);
|
|
16598
|
-
};
|
|
16599
|
-
return function (d, b) {
|
|
16600
|
-
extendStatics(d, b);
|
|
16601
|
-
function __() { this.constructor = d; }
|
|
16602
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16603
|
-
};
|
|
16604
|
-
})();
|
|
16605
|
-
|
|
16606
|
-
|
|
16607
|
-
|
|
16608
|
-
|
|
16609
|
-
|
|
16610
|
-
|
|
16611
|
-
var AttributeExpressionRenderer = /** @class */ (function (_super) {
|
|
16612
|
-
__extends(AttributeExpressionRenderer, _super);
|
|
16613
|
-
function AttributeExpressionRenderer(panel, expression, entitiesMenu, slot) {
|
|
16614
|
-
var _this = _super.call(this, panel, expression, null, slot) || this;
|
|
16615
|
-
_this.menu = entitiesMenu;
|
|
16616
|
-
return _this;
|
|
16617
|
-
}
|
|
16618
|
-
AttributeExpressionRenderer.prototype.renderEditor = function () {
|
|
16619
|
-
//create menu
|
|
16620
|
-
};
|
|
16621
|
-
AttributeExpressionRenderer.prototype.getLabelText = function () {
|
|
16622
|
-
var model = this.panel.getContext().getModel();
|
|
16623
|
-
var attrId = this.expression.value;
|
|
16624
|
-
var attrObj = attrId ? model.getAttributeByIdSafe(attrId) : null;
|
|
16625
|
-
var attrFormat = this.panel.options.attrElementFormat;
|
|
16626
|
-
return attrObj ? model.getAttributeText(attrObj, attrFormat) : this.getEmptyText();
|
|
16627
|
-
};
|
|
16628
|
-
AttributeExpressionRenderer.prototype.setValue = function (value, silent) {
|
|
16629
|
-
if (silent === void 0) { silent = false; }
|
|
16630
|
-
silent = silent && value !== this.expression.value;
|
|
16631
|
-
var result = _super.prototype.setValue.call(this, value, true);
|
|
16632
|
-
if (!silent) {
|
|
16633
|
-
this.expression.getParent().fireChangedEvent(_easyquery_core__WEBPACK_IMPORTED_MODULE_1__["ConditionPart"].EntityAttr | _easyquery_core__WEBPACK_IMPORTED_MODULE_1__["ConditionPart"].Operator);
|
|
16634
|
-
}
|
|
16635
|
-
return result;
|
|
16636
|
-
};
|
|
16637
|
-
AttributeExpressionRenderer.prototype.isEditable = function () {
|
|
16638
|
-
return !this.isReadOnly()
|
|
16639
|
-
&& ((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);
|
|
16640
|
-
};
|
|
16641
|
-
AttributeExpressionRenderer.prototype.getEmptyText = function () {
|
|
16642
|
-
return this.panel.options.emptyTextAttribute || _easydata_core__WEBPACK_IMPORTED_MODULE_0__["i18n"].getText('MsgEmptyAttrValue');
|
|
16643
|
-
};
|
|
16644
|
-
AttributeExpressionRenderer.prototype.getClassesToAdd = function () {
|
|
16645
|
-
return this.cssPrefix + "-condelement " + this.cssPrefix + "-attrelement";
|
|
16646
|
-
};
|
|
16647
|
-
AttributeExpressionRenderer.prototype.adjustWidth = function () {
|
|
16648
|
-
if (_utils_browser_utils__WEBPACK_IMPORTED_MODULE_4__[/* browserUtils */ "a"].isMobileMode()) {
|
|
16649
|
-
return;
|
|
16650
|
-
}
|
|
16651
|
-
var elWidth = this.element.clientWidth;
|
|
16652
|
-
var parWidth = this.element.parentElement.clientWidth;
|
|
16653
|
-
if (elWidth > parWidth / 2) {
|
|
16654
|
-
Object(_easydata_ui__WEBPACK_IMPORTED_MODULE_2__["domel"])(this.element)
|
|
16655
|
-
.addClass(this.cssPrefix + "-attrelement-wide");
|
|
16656
|
-
}
|
|
16657
|
-
};
|
|
16658
|
-
return AttributeExpressionRenderer;
|
|
16659
|
-
}(_list_expression_renderer__WEBPACK_IMPORTED_MODULE_3__[/* ListExpressionRenderer */ "b"]));
|
|
16660
|
-
|
|
16661
|
-
//# sourceMappingURL=attribute_expression_renderer.js.map
|
|
16624
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
16662
16625
|
|
|
16663
|
-
|
|
16664
|
-
|
|
16665
|
-
|
|
16626
|
+
/* WEBPACK VAR INJECTION */(function(process, global) {/*!
|
|
16627
|
+
* @overview es6-promise - a tiny implementation of Promises/A+.
|
|
16628
|
+
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
|
|
16629
|
+
* @license Licensed under MIT license
|
|
16630
|
+
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
|
|
16631
|
+
* @version v4.2.8+1e68dce6
|
|
16632
|
+
*/
|
|
16666
16633
|
|
|
16667
|
-
|
|
16668
|
-
|
|
16669
|
-
|
|
16670
|
-
|
|
16671
|
-
/* harmony import */ var _chart_type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5);
|
|
16672
|
-
var __extends = (undefined && undefined.__extends) || (function () {
|
|
16673
|
-
var extendStatics = function (d, b) {
|
|
16674
|
-
extendStatics = Object.setPrototypeOf ||
|
|
16675
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
16676
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
16677
|
-
return extendStatics(d, b);
|
|
16678
|
-
};
|
|
16679
|
-
return function (d, b) {
|
|
16680
|
-
extendStatics(d, b);
|
|
16681
|
-
function __() { this.constructor = d; }
|
|
16682
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16683
|
-
};
|
|
16684
|
-
})();
|
|
16685
|
-
|
|
16686
|
-
|
|
16687
|
-
|
|
16688
|
-
var GoogleChartWidget = /** @class */ (function (_super) {
|
|
16689
|
-
__extends(GoogleChartWidget, _super);
|
|
16690
|
-
/**
|
|
16691
|
-
* The default constructor.
|
|
16692
|
-
* @param slot The html element.
|
|
16693
|
-
* @param provider The provider.
|
|
16694
|
-
*/
|
|
16695
|
-
function GoogleChartWidget(slot) {
|
|
16696
|
-
var _this = _super.call(this, slot) || this;
|
|
16697
|
-
_this.hasChartTypes = [
|
|
16698
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Column,
|
|
16699
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Bar,
|
|
16700
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Histogram,
|
|
16701
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Combo,
|
|
16702
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Area,
|
|
16703
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Line,
|
|
16704
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].SteppedLine,
|
|
16705
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Pie,
|
|
16706
|
-
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Doughnut
|
|
16707
|
-
];
|
|
16708
|
-
_this.options.legend = {
|
|
16709
|
-
show: true,
|
|
16710
|
-
position: 'right'
|
|
16711
|
-
};
|
|
16712
|
-
return _this;
|
|
16713
|
-
}
|
|
16714
|
-
GoogleChartWidget.prototype.getWidgetType = function () {
|
|
16715
|
-
return 'chartGoogle';
|
|
16716
|
-
};
|
|
16717
|
-
GoogleChartWidget.prototype.canDraw = function () {
|
|
16718
|
-
return GoogleChartWidget.hasGoogleCharts();
|
|
16719
|
-
};
|
|
16720
|
-
GoogleChartWidget.hasGoogleCharts = function () {
|
|
16721
|
-
return typeof google !== 'undefined' && typeof google.charts !== 'undefined';
|
|
16722
|
-
};
|
|
16723
|
-
GoogleChartWidget.prototype.initChart = function () {
|
|
16724
|
-
if (GoogleChartWidget.hasGoogleCharts() && this.labelColumn >= 0
|
|
16725
|
-
&& this.dataColumns && this.dataColumns.length > 0) {
|
|
16726
|
-
this.googleDataView =
|
|
16727
|
-
new google.visualization.DataView(this.convertToGoogleFormat());
|
|
16728
|
-
this.updateChartColumns();
|
|
16729
|
-
}
|
|
16730
|
-
};
|
|
16731
|
-
GoogleChartWidget.prototype.convertToGoogleType = function (type) {
|
|
16732
|
-
switch (type) {
|
|
16733
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Date:
|
|
16734
|
-
return "date";
|
|
16735
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].DateTime:
|
|
16736
|
-
return "datetime";
|
|
16737
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Time:
|
|
16738
|
-
return "timeofday";
|
|
16739
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Byte:
|
|
16740
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Word:
|
|
16741
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Int32:
|
|
16742
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Int64:
|
|
16743
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Currency:
|
|
16744
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Float:
|
|
16745
|
-
return "number";
|
|
16746
|
-
default:
|
|
16747
|
-
return "string";
|
|
16748
|
-
}
|
|
16749
|
-
};
|
|
16750
|
-
GoogleChartWidget.prototype.convertToGoogleValue = function (value, type) {
|
|
16751
|
-
switch (type) {
|
|
16752
|
-
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Bool:
|
|
16753
|
-
return value.toString();
|
|
16754
|
-
default:
|
|
16755
|
-
return value;
|
|
16756
|
-
}
|
|
16757
|
-
};
|
|
16758
|
-
GoogleChartWidget.prototype.convertToGoogleFormat = function () {
|
|
16759
|
-
var googleTable = new google.visualization.DataTable();
|
|
16760
|
-
var columns = this.dataTable.columns;
|
|
16761
|
-
for (var i = 0; i < columns.count; i++) {
|
|
16762
|
-
var column = columns.get(i);
|
|
16763
|
-
googleTable.addColumn(this.convertToGoogleType(column.type), column.label, column.id);
|
|
16764
|
-
}
|
|
16765
|
-
var rows = this.dataTable.getCachedRows();
|
|
16766
|
-
googleTable.addRows(rows.length);
|
|
16767
|
-
for (var i = 0; i < rows.length; i++) {
|
|
16768
|
-
var row = rows[i];
|
|
16769
|
-
for (var j = 0; j < columns.count; j++) {
|
|
16770
|
-
googleTable.setCell(i, j, this.convertToGoogleValue(row.getValue(j), columns.get(j).type));
|
|
16771
|
-
}
|
|
16772
|
-
}
|
|
16773
|
-
return googleTable;
|
|
16774
|
-
};
|
|
16775
|
-
GoogleChartWidget.prototype.drawCore = function () {
|
|
16776
|
-
if (this.googleDataView != null) {
|
|
16777
|
-
this.options.legend = this.options.legend || {};
|
|
16778
|
-
var chartOptions = {
|
|
16779
|
-
width: "100%",
|
|
16780
|
-
height: "100%",
|
|
16781
|
-
chartArea: { width: this.getChartAreaWidth }
|
|
16782
|
-
};
|
|
16783
|
-
if (this.chartType == _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Doughnut) {
|
|
16784
|
-
chartOptions.pieHole = 0.4;
|
|
16785
|
-
}
|
|
16786
|
-
if (!this.options.legend.show) {
|
|
16787
|
-
chartOptions.legend = 'none';
|
|
16788
|
-
}
|
|
16789
|
-
else {
|
|
16790
|
-
chartOptions.legend = { position: this.options.legend.position };
|
|
16791
|
-
}
|
|
16792
|
-
var chart = this.createChart(this.chartDiv);
|
|
16793
|
-
chart.draw(this.googleDataView, chartOptions);
|
|
16794
|
-
}
|
|
16795
|
-
};
|
|
16796
|
-
GoogleChartWidget.prototype.getChartAreaWidth = function (chartType) {
|
|
16797
|
-
if (chartType == _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Pie) {
|
|
16798
|
-
return "100%";
|
|
16799
|
-
}
|
|
16800
|
-
else {
|
|
16801
|
-
return "50%";
|
|
16802
|
-
}
|
|
16803
|
-
};
|
|
16804
|
-
GoogleChartWidget.prototype.updateChartColumns = function () {
|
|
16805
|
-
if (this.googleDataView) {
|
|
16806
|
-
this.googleDataView.setColumns([].concat(this.labelColumn).concat(this.dataColumns));
|
|
16807
|
-
}
|
|
16808
|
-
};
|
|
16809
|
-
GoogleChartWidget.prototype.createChart = function (slot) {
|
|
16810
|
-
switch (this.chartType) {
|
|
16811
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Column:
|
|
16812
|
-
return new google.visualization.ColumnChart(slot);
|
|
16813
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Histogram:
|
|
16814
|
-
return new google.visualization.Histogram(slot);
|
|
16815
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Bar:
|
|
16816
|
-
return new google.visualization.BarChart(slot);
|
|
16817
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Combo:
|
|
16818
|
-
return new google.visualization.ComboChart(slot);
|
|
16819
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Area:
|
|
16820
|
-
return new google.visualization.AreaChart(slot);
|
|
16821
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Line:
|
|
16822
|
-
return new google.visualization.LineChart(slot);
|
|
16823
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].SteppedLine:
|
|
16824
|
-
return new google.visualization.SteppedAreaChart(slot);
|
|
16825
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Pie:
|
|
16826
|
-
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Doughnut:
|
|
16827
|
-
return new google.visualization.PieChart(slot);
|
|
16828
|
-
default:
|
|
16829
|
-
return new google.visualization.PieChart(slot);
|
|
16830
|
-
}
|
|
16831
|
-
};
|
|
16832
|
-
return GoogleChartWidget;
|
|
16833
|
-
}(_chart_widget__WEBPACK_IMPORTED_MODULE_1__[/* ChartWidget */ "a"]));
|
|
16834
|
-
|
|
16835
|
-
//# sourceMappingURL=chart_widget_google.js.map
|
|
16634
|
+
(function (global, factory) {
|
|
16635
|
+
true ? module.exports = factory() :
|
|
16636
|
+
undefined;
|
|
16637
|
+
}(this, (function () { 'use strict';
|
|
16836
16638
|
|
|
16837
|
-
|
|
16838
|
-
|
|
16839
|
-
|
|
16639
|
+
function objectOrFunction(x) {
|
|
16640
|
+
var type = typeof x;
|
|
16641
|
+
return x !== null && (type === 'object' || type === 'function');
|
|
16642
|
+
}
|
|
16840
16643
|
|
|
16841
|
-
|
|
16842
|
-
|
|
16644
|
+
function isFunction(x) {
|
|
16645
|
+
return typeof x === 'function';
|
|
16646
|
+
}
|
|
16843
16647
|
|
|
16844
|
-
// cached from whatever global is present so that test runners that stub it
|
|
16845
|
-
// don't break things. But we need to wrap it in a try catch in case it is
|
|
16846
|
-
// wrapped in strict mode code which doesn't define any globals. It's inside a
|
|
16847
|
-
// function because try/catches deoptimize in certain engines.
|
|
16848
16648
|
|
|
16849
|
-
var cachedSetTimeout;
|
|
16850
|
-
var cachedClearTimeout;
|
|
16851
16649
|
|
|
16852
|
-
|
|
16853
|
-
|
|
16854
|
-
|
|
16855
|
-
|
|
16856
|
-
|
|
16650
|
+
var _isArray = void 0;
|
|
16651
|
+
if (Array.isArray) {
|
|
16652
|
+
_isArray = Array.isArray;
|
|
16653
|
+
} else {
|
|
16654
|
+
_isArray = function (x) {
|
|
16655
|
+
return Object.prototype.toString.call(x) === '[object Array]';
|
|
16656
|
+
};
|
|
16857
16657
|
}
|
|
16858
|
-
(function () {
|
|
16859
|
-
try {
|
|
16860
|
-
if (typeof setTimeout === 'function') {
|
|
16861
|
-
cachedSetTimeout = setTimeout;
|
|
16862
|
-
} else {
|
|
16863
|
-
cachedSetTimeout = defaultSetTimout;
|
|
16864
|
-
}
|
|
16865
|
-
} catch (e) {
|
|
16866
|
-
cachedSetTimeout = defaultSetTimout;
|
|
16867
|
-
}
|
|
16868
|
-
try {
|
|
16869
|
-
if (typeof clearTimeout === 'function') {
|
|
16870
|
-
cachedClearTimeout = clearTimeout;
|
|
16871
|
-
} else {
|
|
16872
|
-
cachedClearTimeout = defaultClearTimeout;
|
|
16873
|
-
}
|
|
16874
|
-
} catch (e) {
|
|
16875
|
-
cachedClearTimeout = defaultClearTimeout;
|
|
16876
|
-
}
|
|
16877
|
-
} ())
|
|
16878
|
-
function runTimeout(fun) {
|
|
16879
|
-
if (cachedSetTimeout === setTimeout) {
|
|
16880
|
-
//normal enviroments in sane situations
|
|
16881
|
-
return setTimeout(fun, 0);
|
|
16882
|
-
}
|
|
16883
|
-
// if setTimeout wasn't available but was latter defined
|
|
16884
|
-
if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
|
|
16885
|
-
cachedSetTimeout = setTimeout;
|
|
16886
|
-
return setTimeout(fun, 0);
|
|
16887
|
-
}
|
|
16888
|
-
try {
|
|
16889
|
-
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
16890
|
-
return cachedSetTimeout(fun, 0);
|
|
16891
|
-
} catch(e){
|
|
16892
|
-
try {
|
|
16893
|
-
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
16894
|
-
return cachedSetTimeout.call(null, fun, 0);
|
|
16895
|
-
} catch(e){
|
|
16896
|
-
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
|
|
16897
|
-
return cachedSetTimeout.call(this, fun, 0);
|
|
16898
|
-
}
|
|
16899
|
-
}
|
|
16900
16658
|
|
|
16659
|
+
var isArray = _isArray;
|
|
16901
16660
|
|
|
16902
|
-
|
|
16903
|
-
|
|
16904
|
-
|
|
16905
|
-
//normal enviroments in sane situations
|
|
16906
|
-
return clearTimeout(marker);
|
|
16907
|
-
}
|
|
16908
|
-
// if clearTimeout wasn't available but was latter defined
|
|
16909
|
-
if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
|
|
16910
|
-
cachedClearTimeout = clearTimeout;
|
|
16911
|
-
return clearTimeout(marker);
|
|
16912
|
-
}
|
|
16913
|
-
try {
|
|
16914
|
-
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
16915
|
-
return cachedClearTimeout(marker);
|
|
16916
|
-
} catch (e){
|
|
16917
|
-
try {
|
|
16918
|
-
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
16919
|
-
return cachedClearTimeout.call(null, marker);
|
|
16920
|
-
} catch (e){
|
|
16921
|
-
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
|
|
16922
|
-
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
|
|
16923
|
-
return cachedClearTimeout.call(this, marker);
|
|
16924
|
-
}
|
|
16925
|
-
}
|
|
16661
|
+
var len = 0;
|
|
16662
|
+
var vertxNext = void 0;
|
|
16663
|
+
var customSchedulerFn = void 0;
|
|
16926
16664
|
|
|
16665
|
+
var asap = function asap(callback, arg) {
|
|
16666
|
+
queue[len] = callback;
|
|
16667
|
+
queue[len + 1] = arg;
|
|
16668
|
+
len += 2;
|
|
16669
|
+
if (len === 2) {
|
|
16670
|
+
// If len is 2, that means that we need to schedule an async flush.
|
|
16671
|
+
// If additional callbacks are queued before the queue is flushed, they
|
|
16672
|
+
// will be processed by this flush that we are scheduling.
|
|
16673
|
+
if (customSchedulerFn) {
|
|
16674
|
+
customSchedulerFn(flush);
|
|
16675
|
+
} else {
|
|
16676
|
+
scheduleFlush();
|
|
16677
|
+
}
|
|
16678
|
+
}
|
|
16679
|
+
};
|
|
16927
16680
|
|
|
16681
|
+
function setScheduler(scheduleFn) {
|
|
16682
|
+
customSchedulerFn = scheduleFn;
|
|
16683
|
+
}
|
|
16928
16684
|
|
|
16685
|
+
function setAsap(asapFn) {
|
|
16686
|
+
asap = asapFn;
|
|
16929
16687
|
}
|
|
16930
|
-
var queue = [];
|
|
16931
|
-
var draining = false;
|
|
16932
|
-
var currentQueue;
|
|
16933
|
-
var queueIndex = -1;
|
|
16934
16688
|
|
|
16935
|
-
|
|
16936
|
-
|
|
16937
|
-
|
|
16938
|
-
|
|
16939
|
-
|
|
16940
|
-
|
|
16941
|
-
|
|
16942
|
-
|
|
16943
|
-
|
|
16944
|
-
|
|
16945
|
-
|
|
16946
|
-
|
|
16947
|
-
|
|
16689
|
+
var browserWindow = typeof window !== 'undefined' ? window : undefined;
|
|
16690
|
+
var browserGlobal = browserWindow || {};
|
|
16691
|
+
var BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver;
|
|
16692
|
+
var isNode = typeof self === 'undefined' && typeof process !== 'undefined' && {}.toString.call(process) === '[object process]';
|
|
16693
|
+
|
|
16694
|
+
// test for web worker but not in IE10
|
|
16695
|
+
var isWorker = typeof Uint8ClampedArray !== 'undefined' && typeof importScripts !== 'undefined' && typeof MessageChannel !== 'undefined';
|
|
16696
|
+
|
|
16697
|
+
// node
|
|
16698
|
+
function useNextTick() {
|
|
16699
|
+
// node version 0.10.x displays a deprecation warning when nextTick is used recursively
|
|
16700
|
+
// see https://github.com/cujojs/when/issues/410 for details
|
|
16701
|
+
return function () {
|
|
16702
|
+
return process.nextTick(flush);
|
|
16703
|
+
};
|
|
16948
16704
|
}
|
|
16949
16705
|
|
|
16950
|
-
|
|
16951
|
-
|
|
16952
|
-
|
|
16953
|
-
|
|
16954
|
-
|
|
16955
|
-
|
|
16706
|
+
// vertx
|
|
16707
|
+
function useVertxTimer() {
|
|
16708
|
+
if (typeof vertxNext !== 'undefined') {
|
|
16709
|
+
return function () {
|
|
16710
|
+
vertxNext(flush);
|
|
16711
|
+
};
|
|
16712
|
+
}
|
|
16956
16713
|
|
|
16957
|
-
|
|
16958
|
-
while(len) {
|
|
16959
|
-
currentQueue = queue;
|
|
16960
|
-
queue = [];
|
|
16961
|
-
while (++queueIndex < len) {
|
|
16962
|
-
if (currentQueue) {
|
|
16963
|
-
currentQueue[queueIndex].run();
|
|
16964
|
-
}
|
|
16965
|
-
}
|
|
16966
|
-
queueIndex = -1;
|
|
16967
|
-
len = queue.length;
|
|
16968
|
-
}
|
|
16969
|
-
currentQueue = null;
|
|
16970
|
-
draining = false;
|
|
16971
|
-
runClearTimeout(timeout);
|
|
16972
|
-
}
|
|
16973
|
-
|
|
16974
|
-
process.nextTick = function (fun) {
|
|
16975
|
-
var args = new Array(arguments.length - 1);
|
|
16976
|
-
if (arguments.length > 1) {
|
|
16977
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
16978
|
-
args[i - 1] = arguments[i];
|
|
16979
|
-
}
|
|
16980
|
-
}
|
|
16981
|
-
queue.push(new Item(fun, args));
|
|
16982
|
-
if (queue.length === 1 && !draining) {
|
|
16983
|
-
runTimeout(drainQueue);
|
|
16984
|
-
}
|
|
16985
|
-
};
|
|
16986
|
-
|
|
16987
|
-
// v8 likes predictible objects
|
|
16988
|
-
function Item(fun, array) {
|
|
16989
|
-
this.fun = fun;
|
|
16990
|
-
this.array = array;
|
|
16991
|
-
}
|
|
16992
|
-
Item.prototype.run = function () {
|
|
16993
|
-
this.fun.apply(null, this.array);
|
|
16994
|
-
};
|
|
16995
|
-
process.title = 'browser';
|
|
16996
|
-
process.browser = true;
|
|
16997
|
-
process.env = {};
|
|
16998
|
-
process.argv = [];
|
|
16999
|
-
process.version = ''; // empty string to avoid regexp issues
|
|
17000
|
-
process.versions = {};
|
|
17001
|
-
|
|
17002
|
-
function noop() {}
|
|
17003
|
-
|
|
17004
|
-
process.on = noop;
|
|
17005
|
-
process.addListener = noop;
|
|
17006
|
-
process.once = noop;
|
|
17007
|
-
process.off = noop;
|
|
17008
|
-
process.removeListener = noop;
|
|
17009
|
-
process.removeAllListeners = noop;
|
|
17010
|
-
process.emit = noop;
|
|
17011
|
-
process.prependListener = noop;
|
|
17012
|
-
process.prependOnceListener = noop;
|
|
17013
|
-
|
|
17014
|
-
process.listeners = function (name) { return [] }
|
|
17015
|
-
|
|
17016
|
-
process.binding = function (name) {
|
|
17017
|
-
throw new Error('process.binding is not supported');
|
|
17018
|
-
};
|
|
17019
|
-
|
|
17020
|
-
process.cwd = function () { return '/' };
|
|
17021
|
-
process.chdir = function (dir) {
|
|
17022
|
-
throw new Error('process.chdir is not supported');
|
|
17023
|
-
};
|
|
17024
|
-
process.umask = function() { return 0; };
|
|
17025
|
-
|
|
17026
|
-
|
|
17027
|
-
/***/ }),
|
|
17028
|
-
/* 54 */
|
|
17029
|
-
/***/ (function(module, exports) {
|
|
17030
|
-
|
|
17031
|
-
var g;
|
|
17032
|
-
|
|
17033
|
-
// This works in non-strict mode
|
|
17034
|
-
g = (function() {
|
|
17035
|
-
return this;
|
|
17036
|
-
})();
|
|
17037
|
-
|
|
17038
|
-
try {
|
|
17039
|
-
// This works if eval is allowed (see CSP)
|
|
17040
|
-
g = g || new Function("return this")();
|
|
17041
|
-
} catch (e) {
|
|
17042
|
-
// This works if the window reference is available
|
|
17043
|
-
if (typeof window === "object") g = window;
|
|
17044
|
-
}
|
|
17045
|
-
|
|
17046
|
-
// g can still be undefined, but nothing to do about it...
|
|
17047
|
-
// We return undefined, instead of nothing here, so it's
|
|
17048
|
-
// easier to handle this case. if(!global) { ...}
|
|
17049
|
-
|
|
17050
|
-
module.exports = g;
|
|
17051
|
-
|
|
17052
|
-
|
|
17053
|
-
/***/ }),
|
|
17054
|
-
/* 55 */
|
|
17055
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
17056
|
-
|
|
17057
|
-
/* WEBPACK VAR INJECTION */(function(process, global) {/*!
|
|
17058
|
-
* @overview es6-promise - a tiny implementation of Promises/A+.
|
|
17059
|
-
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
|
|
17060
|
-
* @license Licensed under MIT license
|
|
17061
|
-
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
|
|
17062
|
-
* @version v4.2.8+1e68dce6
|
|
17063
|
-
*/
|
|
17064
|
-
|
|
17065
|
-
(function (global, factory) {
|
|
17066
|
-
true ? module.exports = factory() :
|
|
17067
|
-
undefined;
|
|
17068
|
-
}(this, (function () { 'use strict';
|
|
17069
|
-
|
|
17070
|
-
function objectOrFunction(x) {
|
|
17071
|
-
var type = typeof x;
|
|
17072
|
-
return x !== null && (type === 'object' || type === 'function');
|
|
17073
|
-
}
|
|
17074
|
-
|
|
17075
|
-
function isFunction(x) {
|
|
17076
|
-
return typeof x === 'function';
|
|
17077
|
-
}
|
|
17078
|
-
|
|
17079
|
-
|
|
17080
|
-
|
|
17081
|
-
var _isArray = void 0;
|
|
17082
|
-
if (Array.isArray) {
|
|
17083
|
-
_isArray = Array.isArray;
|
|
17084
|
-
} else {
|
|
17085
|
-
_isArray = function (x) {
|
|
17086
|
-
return Object.prototype.toString.call(x) === '[object Array]';
|
|
17087
|
-
};
|
|
17088
|
-
}
|
|
17089
|
-
|
|
17090
|
-
var isArray = _isArray;
|
|
17091
|
-
|
|
17092
|
-
var len = 0;
|
|
17093
|
-
var vertxNext = void 0;
|
|
17094
|
-
var customSchedulerFn = void 0;
|
|
17095
|
-
|
|
17096
|
-
var asap = function asap(callback, arg) {
|
|
17097
|
-
queue[len] = callback;
|
|
17098
|
-
queue[len + 1] = arg;
|
|
17099
|
-
len += 2;
|
|
17100
|
-
if (len === 2) {
|
|
17101
|
-
// If len is 2, that means that we need to schedule an async flush.
|
|
17102
|
-
// If additional callbacks are queued before the queue is flushed, they
|
|
17103
|
-
// will be processed by this flush that we are scheduling.
|
|
17104
|
-
if (customSchedulerFn) {
|
|
17105
|
-
customSchedulerFn(flush);
|
|
17106
|
-
} else {
|
|
17107
|
-
scheduleFlush();
|
|
17108
|
-
}
|
|
17109
|
-
}
|
|
17110
|
-
};
|
|
17111
|
-
|
|
17112
|
-
function setScheduler(scheduleFn) {
|
|
17113
|
-
customSchedulerFn = scheduleFn;
|
|
17114
|
-
}
|
|
17115
|
-
|
|
17116
|
-
function setAsap(asapFn) {
|
|
17117
|
-
asap = asapFn;
|
|
17118
|
-
}
|
|
17119
|
-
|
|
17120
|
-
var browserWindow = typeof window !== 'undefined' ? window : undefined;
|
|
17121
|
-
var browserGlobal = browserWindow || {};
|
|
17122
|
-
var BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver;
|
|
17123
|
-
var isNode = typeof self === 'undefined' && typeof process !== 'undefined' && {}.toString.call(process) === '[object process]';
|
|
17124
|
-
|
|
17125
|
-
// test for web worker but not in IE10
|
|
17126
|
-
var isWorker = typeof Uint8ClampedArray !== 'undefined' && typeof importScripts !== 'undefined' && typeof MessageChannel !== 'undefined';
|
|
17127
|
-
|
|
17128
|
-
// node
|
|
17129
|
-
function useNextTick() {
|
|
17130
|
-
// node version 0.10.x displays a deprecation warning when nextTick is used recursively
|
|
17131
|
-
// see https://github.com/cujojs/when/issues/410 for details
|
|
17132
|
-
return function () {
|
|
17133
|
-
return process.nextTick(flush);
|
|
17134
|
-
};
|
|
17135
|
-
}
|
|
17136
|
-
|
|
17137
|
-
// vertx
|
|
17138
|
-
function useVertxTimer() {
|
|
17139
|
-
if (typeof vertxNext !== 'undefined') {
|
|
17140
|
-
return function () {
|
|
17141
|
-
vertxNext(flush);
|
|
17142
|
-
};
|
|
17143
|
-
}
|
|
17144
|
-
|
|
17145
|
-
return useSetTimeout();
|
|
16714
|
+
return useSetTimeout();
|
|
17146
16715
|
}
|
|
17147
16716
|
|
|
17148
16717
|
function useMutationObserver() {
|
|
@@ -17889,346 +17458,819 @@ function needsNew() {
|
|
|
17889
17458
|
});
|
|
17890
17459
|
```
|
|
17891
17460
|
|
|
17892
|
-
Unlike callbacks, promises are great composable primitives.
|
|
17461
|
+
Unlike callbacks, promises are great composable primitives.
|
|
17462
|
+
|
|
17463
|
+
```js
|
|
17464
|
+
Promise.all([
|
|
17465
|
+
getJSON('/posts'),
|
|
17466
|
+
getJSON('/comments')
|
|
17467
|
+
]).then(function(values){
|
|
17468
|
+
values[0] // => postsJSON
|
|
17469
|
+
values[1] // => commentsJSON
|
|
17470
|
+
|
|
17471
|
+
return values;
|
|
17472
|
+
});
|
|
17473
|
+
```
|
|
17474
|
+
|
|
17475
|
+
@class Promise
|
|
17476
|
+
@param {Function} resolver
|
|
17477
|
+
Useful for tooling.
|
|
17478
|
+
@constructor
|
|
17479
|
+
*/
|
|
17480
|
+
|
|
17481
|
+
var Promise$1 = function () {
|
|
17482
|
+
function Promise(resolver) {
|
|
17483
|
+
this[PROMISE_ID] = nextId();
|
|
17484
|
+
this._result = this._state = undefined;
|
|
17485
|
+
this._subscribers = [];
|
|
17486
|
+
|
|
17487
|
+
if (noop !== resolver) {
|
|
17488
|
+
typeof resolver !== 'function' && needsResolver();
|
|
17489
|
+
this instanceof Promise ? initializePromise(this, resolver) : needsNew();
|
|
17490
|
+
}
|
|
17491
|
+
}
|
|
17492
|
+
|
|
17493
|
+
/**
|
|
17494
|
+
The primary way of interacting with a promise is through its `then` method,
|
|
17495
|
+
which registers callbacks to receive either a promise's eventual value or the
|
|
17496
|
+
reason why the promise cannot be fulfilled.
|
|
17497
|
+
```js
|
|
17498
|
+
findUser().then(function(user){
|
|
17499
|
+
// user is available
|
|
17500
|
+
}, function(reason){
|
|
17501
|
+
// user is unavailable, and you are given the reason why
|
|
17502
|
+
});
|
|
17503
|
+
```
|
|
17504
|
+
Chaining
|
|
17505
|
+
--------
|
|
17506
|
+
The return value of `then` is itself a promise. This second, 'downstream'
|
|
17507
|
+
promise is resolved with the return value of the first promise's fulfillment
|
|
17508
|
+
or rejection handler, or rejected if the handler throws an exception.
|
|
17509
|
+
```js
|
|
17510
|
+
findUser().then(function (user) {
|
|
17511
|
+
return user.name;
|
|
17512
|
+
}, function (reason) {
|
|
17513
|
+
return 'default name';
|
|
17514
|
+
}).then(function (userName) {
|
|
17515
|
+
// If `findUser` fulfilled, `userName` will be the user's name, otherwise it
|
|
17516
|
+
// will be `'default name'`
|
|
17517
|
+
});
|
|
17518
|
+
findUser().then(function (user) {
|
|
17519
|
+
throw new Error('Found user, but still unhappy');
|
|
17520
|
+
}, function (reason) {
|
|
17521
|
+
throw new Error('`findUser` rejected and we're unhappy');
|
|
17522
|
+
}).then(function (value) {
|
|
17523
|
+
// never reached
|
|
17524
|
+
}, function (reason) {
|
|
17525
|
+
// if `findUser` fulfilled, `reason` will be 'Found user, but still unhappy'.
|
|
17526
|
+
// If `findUser` rejected, `reason` will be '`findUser` rejected and we're unhappy'.
|
|
17527
|
+
});
|
|
17528
|
+
```
|
|
17529
|
+
If the downstream promise does not specify a rejection handler, rejection reasons will be propagated further downstream.
|
|
17530
|
+
```js
|
|
17531
|
+
findUser().then(function (user) {
|
|
17532
|
+
throw new PedagogicalException('Upstream error');
|
|
17533
|
+
}).then(function (value) {
|
|
17534
|
+
// never reached
|
|
17535
|
+
}).then(function (value) {
|
|
17536
|
+
// never reached
|
|
17537
|
+
}, function (reason) {
|
|
17538
|
+
// The `PedgagocialException` is propagated all the way down to here
|
|
17539
|
+
});
|
|
17540
|
+
```
|
|
17541
|
+
Assimilation
|
|
17542
|
+
------------
|
|
17543
|
+
Sometimes the value you want to propagate to a downstream promise can only be
|
|
17544
|
+
retrieved asynchronously. This can be achieved by returning a promise in the
|
|
17545
|
+
fulfillment or rejection handler. The downstream promise will then be pending
|
|
17546
|
+
until the returned promise is settled. This is called *assimilation*.
|
|
17547
|
+
```js
|
|
17548
|
+
findUser().then(function (user) {
|
|
17549
|
+
return findCommentsByAuthor(user);
|
|
17550
|
+
}).then(function (comments) {
|
|
17551
|
+
// The user's comments are now available
|
|
17552
|
+
});
|
|
17553
|
+
```
|
|
17554
|
+
If the assimliated promise rejects, then the downstream promise will also reject.
|
|
17555
|
+
```js
|
|
17556
|
+
findUser().then(function (user) {
|
|
17557
|
+
return findCommentsByAuthor(user);
|
|
17558
|
+
}).then(function (comments) {
|
|
17559
|
+
// If `findCommentsByAuthor` fulfills, we'll have the value here
|
|
17560
|
+
}, function (reason) {
|
|
17561
|
+
// If `findCommentsByAuthor` rejects, we'll have the reason here
|
|
17562
|
+
});
|
|
17563
|
+
```
|
|
17564
|
+
Simple Example
|
|
17565
|
+
--------------
|
|
17566
|
+
Synchronous Example
|
|
17567
|
+
```javascript
|
|
17568
|
+
let result;
|
|
17569
|
+
try {
|
|
17570
|
+
result = findResult();
|
|
17571
|
+
// success
|
|
17572
|
+
} catch(reason) {
|
|
17573
|
+
// failure
|
|
17574
|
+
}
|
|
17575
|
+
```
|
|
17576
|
+
Errback Example
|
|
17577
|
+
```js
|
|
17578
|
+
findResult(function(result, err){
|
|
17579
|
+
if (err) {
|
|
17580
|
+
// failure
|
|
17581
|
+
} else {
|
|
17582
|
+
// success
|
|
17583
|
+
}
|
|
17584
|
+
});
|
|
17585
|
+
```
|
|
17586
|
+
Promise Example;
|
|
17587
|
+
```javascript
|
|
17588
|
+
findResult().then(function(result){
|
|
17589
|
+
// success
|
|
17590
|
+
}, function(reason){
|
|
17591
|
+
// failure
|
|
17592
|
+
});
|
|
17593
|
+
```
|
|
17594
|
+
Advanced Example
|
|
17595
|
+
--------------
|
|
17596
|
+
Synchronous Example
|
|
17597
|
+
```javascript
|
|
17598
|
+
let author, books;
|
|
17599
|
+
try {
|
|
17600
|
+
author = findAuthor();
|
|
17601
|
+
books = findBooksByAuthor(author);
|
|
17602
|
+
// success
|
|
17603
|
+
} catch(reason) {
|
|
17604
|
+
// failure
|
|
17605
|
+
}
|
|
17606
|
+
```
|
|
17607
|
+
Errback Example
|
|
17608
|
+
```js
|
|
17609
|
+
function foundBooks(books) {
|
|
17610
|
+
}
|
|
17611
|
+
function failure(reason) {
|
|
17612
|
+
}
|
|
17613
|
+
findAuthor(function(author, err){
|
|
17614
|
+
if (err) {
|
|
17615
|
+
failure(err);
|
|
17616
|
+
// failure
|
|
17617
|
+
} else {
|
|
17618
|
+
try {
|
|
17619
|
+
findBoooksByAuthor(author, function(books, err) {
|
|
17620
|
+
if (err) {
|
|
17621
|
+
failure(err);
|
|
17622
|
+
} else {
|
|
17623
|
+
try {
|
|
17624
|
+
foundBooks(books);
|
|
17625
|
+
} catch(reason) {
|
|
17626
|
+
failure(reason);
|
|
17627
|
+
}
|
|
17628
|
+
}
|
|
17629
|
+
});
|
|
17630
|
+
} catch(error) {
|
|
17631
|
+
failure(err);
|
|
17632
|
+
}
|
|
17633
|
+
// success
|
|
17634
|
+
}
|
|
17635
|
+
});
|
|
17636
|
+
```
|
|
17637
|
+
Promise Example;
|
|
17638
|
+
```javascript
|
|
17639
|
+
findAuthor().
|
|
17640
|
+
then(findBooksByAuthor).
|
|
17641
|
+
then(function(books){
|
|
17642
|
+
// found books
|
|
17643
|
+
}).catch(function(reason){
|
|
17644
|
+
// something went wrong
|
|
17645
|
+
});
|
|
17646
|
+
```
|
|
17647
|
+
@method then
|
|
17648
|
+
@param {Function} onFulfilled
|
|
17649
|
+
@param {Function} onRejected
|
|
17650
|
+
Useful for tooling.
|
|
17651
|
+
@return {Promise}
|
|
17652
|
+
*/
|
|
17653
|
+
|
|
17654
|
+
/**
|
|
17655
|
+
`catch` is simply sugar for `then(undefined, onRejection)` which makes it the same
|
|
17656
|
+
as the catch block of a try/catch statement.
|
|
17657
|
+
```js
|
|
17658
|
+
function findAuthor(){
|
|
17659
|
+
throw new Error('couldn't find that author');
|
|
17660
|
+
}
|
|
17661
|
+
// synchronous
|
|
17662
|
+
try {
|
|
17663
|
+
findAuthor();
|
|
17664
|
+
} catch(reason) {
|
|
17665
|
+
// something went wrong
|
|
17666
|
+
}
|
|
17667
|
+
// async with promises
|
|
17668
|
+
findAuthor().catch(function(reason){
|
|
17669
|
+
// something went wrong
|
|
17670
|
+
});
|
|
17671
|
+
```
|
|
17672
|
+
@method catch
|
|
17673
|
+
@param {Function} onRejection
|
|
17674
|
+
Useful for tooling.
|
|
17675
|
+
@return {Promise}
|
|
17676
|
+
*/
|
|
17677
|
+
|
|
17678
|
+
|
|
17679
|
+
Promise.prototype.catch = function _catch(onRejection) {
|
|
17680
|
+
return this.then(null, onRejection);
|
|
17681
|
+
};
|
|
17682
|
+
|
|
17683
|
+
/**
|
|
17684
|
+
`finally` will be invoked regardless of the promise's fate just as native
|
|
17685
|
+
try/catch/finally behaves
|
|
17686
|
+
|
|
17687
|
+
Synchronous example:
|
|
17688
|
+
|
|
17689
|
+
```js
|
|
17690
|
+
findAuthor() {
|
|
17691
|
+
if (Math.random() > 0.5) {
|
|
17692
|
+
throw new Error();
|
|
17693
|
+
}
|
|
17694
|
+
return new Author();
|
|
17695
|
+
}
|
|
17696
|
+
|
|
17697
|
+
try {
|
|
17698
|
+
return findAuthor(); // succeed or fail
|
|
17699
|
+
} catch(error) {
|
|
17700
|
+
return findOtherAuther();
|
|
17701
|
+
} finally {
|
|
17702
|
+
// always runs
|
|
17703
|
+
// doesn't affect the return value
|
|
17704
|
+
}
|
|
17705
|
+
```
|
|
17706
|
+
|
|
17707
|
+
Asynchronous example:
|
|
17708
|
+
|
|
17709
|
+
```js
|
|
17710
|
+
findAuthor().catch(function(reason){
|
|
17711
|
+
return findOtherAuther();
|
|
17712
|
+
}).finally(function(){
|
|
17713
|
+
// author was either found, or not
|
|
17714
|
+
});
|
|
17715
|
+
```
|
|
17716
|
+
|
|
17717
|
+
@method finally
|
|
17718
|
+
@param {Function} callback
|
|
17719
|
+
@return {Promise}
|
|
17720
|
+
*/
|
|
17721
|
+
|
|
17722
|
+
|
|
17723
|
+
Promise.prototype.finally = function _finally(callback) {
|
|
17724
|
+
var promise = this;
|
|
17725
|
+
var constructor = promise.constructor;
|
|
17726
|
+
|
|
17727
|
+
if (isFunction(callback)) {
|
|
17728
|
+
return promise.then(function (value) {
|
|
17729
|
+
return constructor.resolve(callback()).then(function () {
|
|
17730
|
+
return value;
|
|
17731
|
+
});
|
|
17732
|
+
}, function (reason) {
|
|
17733
|
+
return constructor.resolve(callback()).then(function () {
|
|
17734
|
+
throw reason;
|
|
17735
|
+
});
|
|
17736
|
+
});
|
|
17737
|
+
}
|
|
17738
|
+
|
|
17739
|
+
return promise.then(callback, callback);
|
|
17740
|
+
};
|
|
17741
|
+
|
|
17742
|
+
return Promise;
|
|
17743
|
+
}();
|
|
17744
|
+
|
|
17745
|
+
Promise$1.prototype.then = then;
|
|
17746
|
+
Promise$1.all = all;
|
|
17747
|
+
Promise$1.race = race;
|
|
17748
|
+
Promise$1.resolve = resolve$1;
|
|
17749
|
+
Promise$1.reject = reject$1;
|
|
17750
|
+
Promise$1._setScheduler = setScheduler;
|
|
17751
|
+
Promise$1._setAsap = setAsap;
|
|
17752
|
+
Promise$1._asap = asap;
|
|
17753
|
+
|
|
17754
|
+
/*global self*/
|
|
17755
|
+
function polyfill() {
|
|
17756
|
+
var local = void 0;
|
|
17757
|
+
|
|
17758
|
+
if (typeof global !== 'undefined') {
|
|
17759
|
+
local = global;
|
|
17760
|
+
} else if (typeof self !== 'undefined') {
|
|
17761
|
+
local = self;
|
|
17762
|
+
} else {
|
|
17763
|
+
try {
|
|
17764
|
+
local = Function('return this')();
|
|
17765
|
+
} catch (e) {
|
|
17766
|
+
throw new Error('polyfill failed because global object is unavailable in this environment');
|
|
17767
|
+
}
|
|
17768
|
+
}
|
|
17769
|
+
|
|
17770
|
+
var P = local.Promise;
|
|
17771
|
+
|
|
17772
|
+
if (P) {
|
|
17773
|
+
var promiseToString = null;
|
|
17774
|
+
try {
|
|
17775
|
+
promiseToString = Object.prototype.toString.call(P.resolve());
|
|
17776
|
+
} catch (e) {
|
|
17777
|
+
// silently ignored
|
|
17778
|
+
}
|
|
17779
|
+
|
|
17780
|
+
if (promiseToString === '[object Promise]' && !P.cast) {
|
|
17781
|
+
return;
|
|
17782
|
+
}
|
|
17783
|
+
}
|
|
17784
|
+
|
|
17785
|
+
local.Promise = Promise$1;
|
|
17786
|
+
}
|
|
17787
|
+
|
|
17788
|
+
// Strange compat..
|
|
17789
|
+
Promise$1.polyfill = polyfill;
|
|
17790
|
+
Promise$1.Promise = Promise$1;
|
|
17791
|
+
|
|
17792
|
+
return Promise$1;
|
|
17793
|
+
|
|
17794
|
+
})));
|
|
17795
|
+
|
|
17796
|
+
|
|
17797
|
+
|
|
17798
|
+
//# sourceMappingURL=es6-promise.map
|
|
17799
|
+
|
|
17800
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(54), __webpack_require__(55)))
|
|
17801
|
+
|
|
17802
|
+
/***/ }),
|
|
17803
|
+
/* 52 */
|
|
17804
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
17805
|
+
|
|
17806
|
+
"use strict";
|
|
17807
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AttributeExpressionRenderer; });
|
|
17808
|
+
/* harmony import */ var _easydata_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
17809
|
+
/* harmony import */ var _easyquery_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
|
|
17810
|
+
/* harmony import */ var _easydata_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
|
|
17811
|
+
/* harmony import */ var _list_expression_renderer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(25);
|
|
17812
|
+
/* harmony import */ var _utils_browser_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3);
|
|
17813
|
+
/* harmony import */ var _types_qp_editable_part__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(10);
|
|
17814
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
17815
|
+
var extendStatics = function (d, b) {
|
|
17816
|
+
extendStatics = Object.setPrototypeOf ||
|
|
17817
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
17818
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
17819
|
+
return extendStatics(d, b);
|
|
17820
|
+
};
|
|
17821
|
+
return function (d, b) {
|
|
17822
|
+
extendStatics(d, b);
|
|
17823
|
+
function __() { this.constructor = d; }
|
|
17824
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
17825
|
+
};
|
|
17826
|
+
})();
|
|
17827
|
+
|
|
17828
|
+
|
|
17829
|
+
|
|
17830
|
+
|
|
17831
|
+
|
|
17832
|
+
|
|
17833
|
+
var AttributeExpressionRenderer = /** @class */ (function (_super) {
|
|
17834
|
+
__extends(AttributeExpressionRenderer, _super);
|
|
17835
|
+
function AttributeExpressionRenderer(panel, expression, entitiesMenu, slot) {
|
|
17836
|
+
var _this = _super.call(this, panel, expression, null, slot) || this;
|
|
17837
|
+
_this.menu = entitiesMenu;
|
|
17838
|
+
return _this;
|
|
17839
|
+
}
|
|
17840
|
+
AttributeExpressionRenderer.prototype.renderEditor = function () {
|
|
17841
|
+
//create menu
|
|
17842
|
+
};
|
|
17843
|
+
AttributeExpressionRenderer.prototype.getLabelText = function () {
|
|
17844
|
+
var model = this.panel.getContext().getModel();
|
|
17845
|
+
var attrId = this.expression.value;
|
|
17846
|
+
var attrObj = attrId ? model.getAttributeByIdSafe(attrId) : null;
|
|
17847
|
+
var attrFormat = this.panel.options.attrElementFormat;
|
|
17848
|
+
return attrObj ? model.getAttributeText(attrObj, attrFormat) : this.getEmptyText();
|
|
17849
|
+
};
|
|
17850
|
+
AttributeExpressionRenderer.prototype.setValue = function (value, silent) {
|
|
17851
|
+
if (silent === void 0) { silent = false; }
|
|
17852
|
+
silent = silent && value !== this.expression.value;
|
|
17853
|
+
var result = _super.prototype.setValue.call(this, value, true);
|
|
17854
|
+
if (!silent) {
|
|
17855
|
+
this.expression.getParent().fireChangedEvent(_easyquery_core__WEBPACK_IMPORTED_MODULE_1__["ConditionPart"].EntityAttr | _easyquery_core__WEBPACK_IMPORTED_MODULE_1__["ConditionPart"].Operator);
|
|
17856
|
+
}
|
|
17857
|
+
return result;
|
|
17858
|
+
};
|
|
17859
|
+
AttributeExpressionRenderer.prototype.isEditable = function () {
|
|
17860
|
+
return !this.isReadOnly()
|
|
17861
|
+
&& ((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);
|
|
17862
|
+
};
|
|
17863
|
+
AttributeExpressionRenderer.prototype.getEmptyText = function () {
|
|
17864
|
+
return this.panel.options.emptyTextAttribute || _easydata_core__WEBPACK_IMPORTED_MODULE_0__["i18n"].getText('MsgEmptyAttrValue');
|
|
17865
|
+
};
|
|
17866
|
+
AttributeExpressionRenderer.prototype.getClassesToAdd = function () {
|
|
17867
|
+
return this.cssPrefix + "-condelement " + this.cssPrefix + "-attrelement";
|
|
17868
|
+
};
|
|
17869
|
+
AttributeExpressionRenderer.prototype.adjustWidth = function () {
|
|
17870
|
+
if (_utils_browser_utils__WEBPACK_IMPORTED_MODULE_4__[/* browserUtils */ "a"].isMobileMode()) {
|
|
17871
|
+
return;
|
|
17872
|
+
}
|
|
17873
|
+
var elWidth = this.element.clientWidth;
|
|
17874
|
+
var parWidth = this.element.parentElement.clientWidth;
|
|
17875
|
+
if (elWidth > parWidth / 2) {
|
|
17876
|
+
Object(_easydata_ui__WEBPACK_IMPORTED_MODULE_2__["domel"])(this.element)
|
|
17877
|
+
.addClass(this.cssPrefix + "-attrelement-wide");
|
|
17878
|
+
}
|
|
17879
|
+
};
|
|
17880
|
+
return AttributeExpressionRenderer;
|
|
17881
|
+
}(_list_expression_renderer__WEBPACK_IMPORTED_MODULE_3__[/* ListExpressionRenderer */ "b"]));
|
|
17882
|
+
|
|
17883
|
+
//# sourceMappingURL=attribute_expression_renderer.js.map
|
|
17884
|
+
|
|
17885
|
+
/***/ }),
|
|
17886
|
+
/* 53 */
|
|
17887
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
17888
|
+
|
|
17889
|
+
"use strict";
|
|
17890
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return GoogleChartWidget; });
|
|
17891
|
+
/* harmony import */ var _easydata_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
17892
|
+
/* harmony import */ var _chart_widget__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(47);
|
|
17893
|
+
/* harmony import */ var _chart_type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5);
|
|
17894
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
17895
|
+
var extendStatics = function (d, b) {
|
|
17896
|
+
extendStatics = Object.setPrototypeOf ||
|
|
17897
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
17898
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
17899
|
+
return extendStatics(d, b);
|
|
17900
|
+
};
|
|
17901
|
+
return function (d, b) {
|
|
17902
|
+
extendStatics(d, b);
|
|
17903
|
+
function __() { this.constructor = d; }
|
|
17904
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
17905
|
+
};
|
|
17906
|
+
})();
|
|
17907
|
+
|
|
17908
|
+
|
|
17909
|
+
|
|
17910
|
+
var GoogleChartWidget = /** @class */ (function (_super) {
|
|
17911
|
+
__extends(GoogleChartWidget, _super);
|
|
17912
|
+
/**
|
|
17913
|
+
* The default constructor.
|
|
17914
|
+
* @param slot The html element.
|
|
17915
|
+
* @param provider The provider.
|
|
17916
|
+
*/
|
|
17917
|
+
function GoogleChartWidget(slot) {
|
|
17918
|
+
var _this = _super.call(this, slot) || this;
|
|
17919
|
+
_this.hasChartTypes = [
|
|
17920
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Column,
|
|
17921
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Bar,
|
|
17922
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Histogram,
|
|
17923
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Combo,
|
|
17924
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Area,
|
|
17925
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Line,
|
|
17926
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].SteppedLine,
|
|
17927
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Pie,
|
|
17928
|
+
_chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Doughnut
|
|
17929
|
+
];
|
|
17930
|
+
_this.options.legend = {
|
|
17931
|
+
show: true,
|
|
17932
|
+
position: 'right'
|
|
17933
|
+
};
|
|
17934
|
+
return _this;
|
|
17935
|
+
}
|
|
17936
|
+
GoogleChartWidget.prototype.getWidgetType = function () {
|
|
17937
|
+
return 'chartGoogle';
|
|
17938
|
+
};
|
|
17939
|
+
GoogleChartWidget.prototype.canDraw = function () {
|
|
17940
|
+
return GoogleChartWidget.hasGoogleCharts();
|
|
17941
|
+
};
|
|
17942
|
+
GoogleChartWidget.hasGoogleCharts = function () {
|
|
17943
|
+
return typeof google !== 'undefined' && typeof google.charts !== 'undefined';
|
|
17944
|
+
};
|
|
17945
|
+
GoogleChartWidget.prototype.initChart = function () {
|
|
17946
|
+
if (GoogleChartWidget.hasGoogleCharts() && this.labelColumn >= 0
|
|
17947
|
+
&& this.dataColumns && this.dataColumns.length > 0) {
|
|
17948
|
+
this.googleDataView =
|
|
17949
|
+
new google.visualization.DataView(this.convertToGoogleFormat());
|
|
17950
|
+
this.updateChartColumns();
|
|
17951
|
+
}
|
|
17952
|
+
};
|
|
17953
|
+
GoogleChartWidget.prototype.convertToGoogleType = function (type) {
|
|
17954
|
+
switch (type) {
|
|
17955
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Date:
|
|
17956
|
+
return "date";
|
|
17957
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].DateTime:
|
|
17958
|
+
return "datetime";
|
|
17959
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Time:
|
|
17960
|
+
return "timeofday";
|
|
17961
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Byte:
|
|
17962
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Word:
|
|
17963
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Int32:
|
|
17964
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Int64:
|
|
17965
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Currency:
|
|
17966
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Float:
|
|
17967
|
+
return "number";
|
|
17968
|
+
default:
|
|
17969
|
+
return "string";
|
|
17970
|
+
}
|
|
17971
|
+
};
|
|
17972
|
+
GoogleChartWidget.prototype.convertToGoogleValue = function (value, type) {
|
|
17973
|
+
switch (type) {
|
|
17974
|
+
case _easydata_core__WEBPACK_IMPORTED_MODULE_0__["DataType"].Bool:
|
|
17975
|
+
return value.toString();
|
|
17976
|
+
default:
|
|
17977
|
+
return value;
|
|
17978
|
+
}
|
|
17979
|
+
};
|
|
17980
|
+
GoogleChartWidget.prototype.convertToGoogleFormat = function () {
|
|
17981
|
+
var googleTable = new google.visualization.DataTable();
|
|
17982
|
+
var columns = this.dataTable.columns;
|
|
17983
|
+
for (var i = 0; i < columns.count; i++) {
|
|
17984
|
+
var column = columns.get(i);
|
|
17985
|
+
googleTable.addColumn(this.convertToGoogleType(column.type), column.label, column.id);
|
|
17986
|
+
}
|
|
17987
|
+
var rows = this.dataTable.getCachedRows();
|
|
17988
|
+
googleTable.addRows(rows.length);
|
|
17989
|
+
for (var i = 0; i < rows.length; i++) {
|
|
17990
|
+
var row = rows[i];
|
|
17991
|
+
for (var j = 0; j < columns.count; j++) {
|
|
17992
|
+
googleTable.setCell(i, j, this.convertToGoogleValue(row.getValue(j), columns.get(j).type));
|
|
17993
|
+
}
|
|
17994
|
+
}
|
|
17995
|
+
return googleTable;
|
|
17996
|
+
};
|
|
17997
|
+
GoogleChartWidget.prototype.drawCore = function () {
|
|
17998
|
+
if (this.googleDataView != null) {
|
|
17999
|
+
this.options.legend = this.options.legend || {};
|
|
18000
|
+
var chartOptions = {
|
|
18001
|
+
width: "100%",
|
|
18002
|
+
height: "100%",
|
|
18003
|
+
chartArea: { width: this.getChartAreaWidth }
|
|
18004
|
+
};
|
|
18005
|
+
if (this.chartType == _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Doughnut) {
|
|
18006
|
+
chartOptions.pieHole = 0.4;
|
|
18007
|
+
}
|
|
18008
|
+
if (!this.options.legend.show) {
|
|
18009
|
+
chartOptions.legend = 'none';
|
|
18010
|
+
}
|
|
18011
|
+
else {
|
|
18012
|
+
chartOptions.legend = { position: this.options.legend.position };
|
|
18013
|
+
}
|
|
18014
|
+
var chart = this.createChart(this.chartDiv);
|
|
18015
|
+
chart.draw(this.googleDataView, chartOptions);
|
|
18016
|
+
}
|
|
18017
|
+
};
|
|
18018
|
+
GoogleChartWidget.prototype.getChartAreaWidth = function (chartType) {
|
|
18019
|
+
if (chartType == _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Pie) {
|
|
18020
|
+
return "100%";
|
|
18021
|
+
}
|
|
18022
|
+
else {
|
|
18023
|
+
return "50%";
|
|
18024
|
+
}
|
|
18025
|
+
};
|
|
18026
|
+
GoogleChartWidget.prototype.updateChartColumns = function () {
|
|
18027
|
+
if (this.googleDataView) {
|
|
18028
|
+
this.googleDataView.setColumns([].concat(this.labelColumn).concat(this.dataColumns));
|
|
18029
|
+
}
|
|
18030
|
+
};
|
|
18031
|
+
GoogleChartWidget.prototype.createChart = function (slot) {
|
|
18032
|
+
switch (this.chartType) {
|
|
18033
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Column:
|
|
18034
|
+
return new google.visualization.ColumnChart(slot);
|
|
18035
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Histogram:
|
|
18036
|
+
return new google.visualization.Histogram(slot);
|
|
18037
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Bar:
|
|
18038
|
+
return new google.visualization.BarChart(slot);
|
|
18039
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Combo:
|
|
18040
|
+
return new google.visualization.ComboChart(slot);
|
|
18041
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Area:
|
|
18042
|
+
return new google.visualization.AreaChart(slot);
|
|
18043
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Line:
|
|
18044
|
+
return new google.visualization.LineChart(slot);
|
|
18045
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].SteppedLine:
|
|
18046
|
+
return new google.visualization.SteppedAreaChart(slot);
|
|
18047
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Pie:
|
|
18048
|
+
case _chart_type__WEBPACK_IMPORTED_MODULE_2__[/* ChartType */ "a"].Doughnut:
|
|
18049
|
+
return new google.visualization.PieChart(slot);
|
|
18050
|
+
default:
|
|
18051
|
+
return new google.visualization.PieChart(slot);
|
|
18052
|
+
}
|
|
18053
|
+
};
|
|
18054
|
+
return GoogleChartWidget;
|
|
18055
|
+
}(_chart_widget__WEBPACK_IMPORTED_MODULE_1__[/* ChartWidget */ "a"]));
|
|
18056
|
+
|
|
18057
|
+
//# sourceMappingURL=chart_widget_google.js.map
|
|
18058
|
+
|
|
18059
|
+
/***/ }),
|
|
18060
|
+
/* 54 */
|
|
18061
|
+
/***/ (function(module, exports) {
|
|
18062
|
+
|
|
18063
|
+
// shim for using process in browser
|
|
18064
|
+
var process = module.exports = {};
|
|
18065
|
+
|
|
18066
|
+
// cached from whatever global is present so that test runners that stub it
|
|
18067
|
+
// don't break things. But we need to wrap it in a try catch in case it is
|
|
18068
|
+
// wrapped in strict mode code which doesn't define any globals. It's inside a
|
|
18069
|
+
// function because try/catches deoptimize in certain engines.
|
|
18070
|
+
|
|
18071
|
+
var cachedSetTimeout;
|
|
18072
|
+
var cachedClearTimeout;
|
|
18073
|
+
|
|
18074
|
+
function defaultSetTimout() {
|
|
18075
|
+
throw new Error('setTimeout has not been defined');
|
|
18076
|
+
}
|
|
18077
|
+
function defaultClearTimeout () {
|
|
18078
|
+
throw new Error('clearTimeout has not been defined');
|
|
18079
|
+
}
|
|
18080
|
+
(function () {
|
|
18081
|
+
try {
|
|
18082
|
+
if (typeof setTimeout === 'function') {
|
|
18083
|
+
cachedSetTimeout = setTimeout;
|
|
18084
|
+
} else {
|
|
18085
|
+
cachedSetTimeout = defaultSetTimout;
|
|
18086
|
+
}
|
|
18087
|
+
} catch (e) {
|
|
18088
|
+
cachedSetTimeout = defaultSetTimout;
|
|
18089
|
+
}
|
|
18090
|
+
try {
|
|
18091
|
+
if (typeof clearTimeout === 'function') {
|
|
18092
|
+
cachedClearTimeout = clearTimeout;
|
|
18093
|
+
} else {
|
|
18094
|
+
cachedClearTimeout = defaultClearTimeout;
|
|
18095
|
+
}
|
|
18096
|
+
} catch (e) {
|
|
18097
|
+
cachedClearTimeout = defaultClearTimeout;
|
|
18098
|
+
}
|
|
18099
|
+
} ())
|
|
18100
|
+
function runTimeout(fun) {
|
|
18101
|
+
if (cachedSetTimeout === setTimeout) {
|
|
18102
|
+
//normal enviroments in sane situations
|
|
18103
|
+
return setTimeout(fun, 0);
|
|
18104
|
+
}
|
|
18105
|
+
// if setTimeout wasn't available but was latter defined
|
|
18106
|
+
if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
|
|
18107
|
+
cachedSetTimeout = setTimeout;
|
|
18108
|
+
return setTimeout(fun, 0);
|
|
18109
|
+
}
|
|
18110
|
+
try {
|
|
18111
|
+
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
18112
|
+
return cachedSetTimeout(fun, 0);
|
|
18113
|
+
} catch(e){
|
|
18114
|
+
try {
|
|
18115
|
+
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
18116
|
+
return cachedSetTimeout.call(null, fun, 0);
|
|
18117
|
+
} catch(e){
|
|
18118
|
+
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
|
|
18119
|
+
return cachedSetTimeout.call(this, fun, 0);
|
|
18120
|
+
}
|
|
18121
|
+
}
|
|
18122
|
+
|
|
17893
18123
|
|
|
17894
|
-
|
|
17895
|
-
|
|
17896
|
-
|
|
17897
|
-
|
|
17898
|
-
|
|
17899
|
-
|
|
17900
|
-
|
|
18124
|
+
}
|
|
18125
|
+
function runClearTimeout(marker) {
|
|
18126
|
+
if (cachedClearTimeout === clearTimeout) {
|
|
18127
|
+
//normal enviroments in sane situations
|
|
18128
|
+
return clearTimeout(marker);
|
|
18129
|
+
}
|
|
18130
|
+
// if clearTimeout wasn't available but was latter defined
|
|
18131
|
+
if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
|
|
18132
|
+
cachedClearTimeout = clearTimeout;
|
|
18133
|
+
return clearTimeout(marker);
|
|
18134
|
+
}
|
|
18135
|
+
try {
|
|
18136
|
+
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
18137
|
+
return cachedClearTimeout(marker);
|
|
18138
|
+
} catch (e){
|
|
18139
|
+
try {
|
|
18140
|
+
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
18141
|
+
return cachedClearTimeout.call(null, marker);
|
|
18142
|
+
} catch (e){
|
|
18143
|
+
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
|
|
18144
|
+
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
|
|
18145
|
+
return cachedClearTimeout.call(this, marker);
|
|
18146
|
+
}
|
|
18147
|
+
}
|
|
17901
18148
|
|
|
17902
|
-
return values;
|
|
17903
|
-
});
|
|
17904
|
-
```
|
|
17905
18149
|
|
|
17906
|
-
@class Promise
|
|
17907
|
-
@param {Function} resolver
|
|
17908
|
-
Useful for tooling.
|
|
17909
|
-
@constructor
|
|
17910
|
-
*/
|
|
17911
18150
|
|
|
17912
|
-
|
|
17913
|
-
|
|
17914
|
-
|
|
17915
|
-
|
|
17916
|
-
|
|
18151
|
+
}
|
|
18152
|
+
var queue = [];
|
|
18153
|
+
var draining = false;
|
|
18154
|
+
var currentQueue;
|
|
18155
|
+
var queueIndex = -1;
|
|
17917
18156
|
|
|
17918
|
-
|
|
17919
|
-
|
|
17920
|
-
|
|
18157
|
+
function cleanUpNextTick() {
|
|
18158
|
+
if (!draining || !currentQueue) {
|
|
18159
|
+
return;
|
|
17921
18160
|
}
|
|
17922
|
-
|
|
17923
|
-
|
|
17924
|
-
|
|
17925
|
-
The primary way of interacting with a promise is through its `then` method,
|
|
17926
|
-
which registers callbacks to receive either a promise's eventual value or the
|
|
17927
|
-
reason why the promise cannot be fulfilled.
|
|
17928
|
-
```js
|
|
17929
|
-
findUser().then(function(user){
|
|
17930
|
-
// user is available
|
|
17931
|
-
}, function(reason){
|
|
17932
|
-
// user is unavailable, and you are given the reason why
|
|
17933
|
-
});
|
|
17934
|
-
```
|
|
17935
|
-
Chaining
|
|
17936
|
-
--------
|
|
17937
|
-
The return value of `then` is itself a promise. This second, 'downstream'
|
|
17938
|
-
promise is resolved with the return value of the first promise's fulfillment
|
|
17939
|
-
or rejection handler, or rejected if the handler throws an exception.
|
|
17940
|
-
```js
|
|
17941
|
-
findUser().then(function (user) {
|
|
17942
|
-
return user.name;
|
|
17943
|
-
}, function (reason) {
|
|
17944
|
-
return 'default name';
|
|
17945
|
-
}).then(function (userName) {
|
|
17946
|
-
// If `findUser` fulfilled, `userName` will be the user's name, otherwise it
|
|
17947
|
-
// will be `'default name'`
|
|
17948
|
-
});
|
|
17949
|
-
findUser().then(function (user) {
|
|
17950
|
-
throw new Error('Found user, but still unhappy');
|
|
17951
|
-
}, function (reason) {
|
|
17952
|
-
throw new Error('`findUser` rejected and we're unhappy');
|
|
17953
|
-
}).then(function (value) {
|
|
17954
|
-
// never reached
|
|
17955
|
-
}, function (reason) {
|
|
17956
|
-
// if `findUser` fulfilled, `reason` will be 'Found user, but still unhappy'.
|
|
17957
|
-
// If `findUser` rejected, `reason` will be '`findUser` rejected and we're unhappy'.
|
|
17958
|
-
});
|
|
17959
|
-
```
|
|
17960
|
-
If the downstream promise does not specify a rejection handler, rejection reasons will be propagated further downstream.
|
|
17961
|
-
```js
|
|
17962
|
-
findUser().then(function (user) {
|
|
17963
|
-
throw new PedagogicalException('Upstream error');
|
|
17964
|
-
}).then(function (value) {
|
|
17965
|
-
// never reached
|
|
17966
|
-
}).then(function (value) {
|
|
17967
|
-
// never reached
|
|
17968
|
-
}, function (reason) {
|
|
17969
|
-
// The `PedgagocialException` is propagated all the way down to here
|
|
17970
|
-
});
|
|
17971
|
-
```
|
|
17972
|
-
Assimilation
|
|
17973
|
-
------------
|
|
17974
|
-
Sometimes the value you want to propagate to a downstream promise can only be
|
|
17975
|
-
retrieved asynchronously. This can be achieved by returning a promise in the
|
|
17976
|
-
fulfillment or rejection handler. The downstream promise will then be pending
|
|
17977
|
-
until the returned promise is settled. This is called *assimilation*.
|
|
17978
|
-
```js
|
|
17979
|
-
findUser().then(function (user) {
|
|
17980
|
-
return findCommentsByAuthor(user);
|
|
17981
|
-
}).then(function (comments) {
|
|
17982
|
-
// The user's comments are now available
|
|
17983
|
-
});
|
|
17984
|
-
```
|
|
17985
|
-
If the assimliated promise rejects, then the downstream promise will also reject.
|
|
17986
|
-
```js
|
|
17987
|
-
findUser().then(function (user) {
|
|
17988
|
-
return findCommentsByAuthor(user);
|
|
17989
|
-
}).then(function (comments) {
|
|
17990
|
-
// If `findCommentsByAuthor` fulfills, we'll have the value here
|
|
17991
|
-
}, function (reason) {
|
|
17992
|
-
// If `findCommentsByAuthor` rejects, we'll have the reason here
|
|
17993
|
-
});
|
|
17994
|
-
```
|
|
17995
|
-
Simple Example
|
|
17996
|
-
--------------
|
|
17997
|
-
Synchronous Example
|
|
17998
|
-
```javascript
|
|
17999
|
-
let result;
|
|
18000
|
-
try {
|
|
18001
|
-
result = findResult();
|
|
18002
|
-
// success
|
|
18003
|
-
} catch(reason) {
|
|
18004
|
-
// failure
|
|
18005
|
-
}
|
|
18006
|
-
```
|
|
18007
|
-
Errback Example
|
|
18008
|
-
```js
|
|
18009
|
-
findResult(function(result, err){
|
|
18010
|
-
if (err) {
|
|
18011
|
-
// failure
|
|
18161
|
+
draining = false;
|
|
18162
|
+
if (currentQueue.length) {
|
|
18163
|
+
queue = currentQueue.concat(queue);
|
|
18012
18164
|
} else {
|
|
18013
|
-
|
|
18165
|
+
queueIndex = -1;
|
|
18014
18166
|
}
|
|
18015
|
-
|
|
18016
|
-
|
|
18017
|
-
Promise Example;
|
|
18018
|
-
```javascript
|
|
18019
|
-
findResult().then(function(result){
|
|
18020
|
-
// success
|
|
18021
|
-
}, function(reason){
|
|
18022
|
-
// failure
|
|
18023
|
-
});
|
|
18024
|
-
```
|
|
18025
|
-
Advanced Example
|
|
18026
|
-
--------------
|
|
18027
|
-
Synchronous Example
|
|
18028
|
-
```javascript
|
|
18029
|
-
let author, books;
|
|
18030
|
-
try {
|
|
18031
|
-
author = findAuthor();
|
|
18032
|
-
books = findBooksByAuthor(author);
|
|
18033
|
-
// success
|
|
18034
|
-
} catch(reason) {
|
|
18035
|
-
// failure
|
|
18036
|
-
}
|
|
18037
|
-
```
|
|
18038
|
-
Errback Example
|
|
18039
|
-
```js
|
|
18040
|
-
function foundBooks(books) {
|
|
18041
|
-
}
|
|
18042
|
-
function failure(reason) {
|
|
18043
|
-
}
|
|
18044
|
-
findAuthor(function(author, err){
|
|
18045
|
-
if (err) {
|
|
18046
|
-
failure(err);
|
|
18047
|
-
// failure
|
|
18048
|
-
} else {
|
|
18049
|
-
try {
|
|
18050
|
-
findBoooksByAuthor(author, function(books, err) {
|
|
18051
|
-
if (err) {
|
|
18052
|
-
failure(err);
|
|
18053
|
-
} else {
|
|
18054
|
-
try {
|
|
18055
|
-
foundBooks(books);
|
|
18056
|
-
} catch(reason) {
|
|
18057
|
-
failure(reason);
|
|
18058
|
-
}
|
|
18059
|
-
}
|
|
18060
|
-
});
|
|
18061
|
-
} catch(error) {
|
|
18062
|
-
failure(err);
|
|
18063
|
-
}
|
|
18064
|
-
// success
|
|
18167
|
+
if (queue.length) {
|
|
18168
|
+
drainQueue();
|
|
18065
18169
|
}
|
|
18066
|
-
|
|
18067
|
-
```
|
|
18068
|
-
Promise Example;
|
|
18069
|
-
```javascript
|
|
18070
|
-
findAuthor().
|
|
18071
|
-
then(findBooksByAuthor).
|
|
18072
|
-
then(function(books){
|
|
18073
|
-
// found books
|
|
18074
|
-
}).catch(function(reason){
|
|
18075
|
-
// something went wrong
|
|
18076
|
-
});
|
|
18077
|
-
```
|
|
18078
|
-
@method then
|
|
18079
|
-
@param {Function} onFulfilled
|
|
18080
|
-
@param {Function} onRejected
|
|
18081
|
-
Useful for tooling.
|
|
18082
|
-
@return {Promise}
|
|
18083
|
-
*/
|
|
18084
|
-
|
|
18085
|
-
/**
|
|
18086
|
-
`catch` is simply sugar for `then(undefined, onRejection)` which makes it the same
|
|
18087
|
-
as the catch block of a try/catch statement.
|
|
18088
|
-
```js
|
|
18089
|
-
function findAuthor(){
|
|
18090
|
-
throw new Error('couldn't find that author');
|
|
18091
|
-
}
|
|
18092
|
-
// synchronous
|
|
18093
|
-
try {
|
|
18094
|
-
findAuthor();
|
|
18095
|
-
} catch(reason) {
|
|
18096
|
-
// something went wrong
|
|
18097
|
-
}
|
|
18098
|
-
// async with promises
|
|
18099
|
-
findAuthor().catch(function(reason){
|
|
18100
|
-
// something went wrong
|
|
18101
|
-
});
|
|
18102
|
-
```
|
|
18103
|
-
@method catch
|
|
18104
|
-
@param {Function} onRejection
|
|
18105
|
-
Useful for tooling.
|
|
18106
|
-
@return {Promise}
|
|
18107
|
-
*/
|
|
18170
|
+
}
|
|
18108
18171
|
|
|
18172
|
+
function drainQueue() {
|
|
18173
|
+
if (draining) {
|
|
18174
|
+
return;
|
|
18175
|
+
}
|
|
18176
|
+
var timeout = runTimeout(cleanUpNextTick);
|
|
18177
|
+
draining = true;
|
|
18109
18178
|
|
|
18110
|
-
|
|
18111
|
-
|
|
18112
|
-
|
|
18179
|
+
var len = queue.length;
|
|
18180
|
+
while(len) {
|
|
18181
|
+
currentQueue = queue;
|
|
18182
|
+
queue = [];
|
|
18183
|
+
while (++queueIndex < len) {
|
|
18184
|
+
if (currentQueue) {
|
|
18185
|
+
currentQueue[queueIndex].run();
|
|
18186
|
+
}
|
|
18187
|
+
}
|
|
18188
|
+
queueIndex = -1;
|
|
18189
|
+
len = queue.length;
|
|
18190
|
+
}
|
|
18191
|
+
currentQueue = null;
|
|
18192
|
+
draining = false;
|
|
18193
|
+
runClearTimeout(timeout);
|
|
18194
|
+
}
|
|
18113
18195
|
|
|
18114
|
-
|
|
18115
|
-
|
|
18116
|
-
|
|
18117
|
-
|
|
18118
|
-
|
|
18119
|
-
|
|
18120
|
-
```js
|
|
18121
|
-
findAuthor() {
|
|
18122
|
-
if (Math.random() > 0.5) {
|
|
18123
|
-
throw new Error();
|
|
18124
|
-
}
|
|
18125
|
-
return new Author();
|
|
18196
|
+
process.nextTick = function (fun) {
|
|
18197
|
+
var args = new Array(arguments.length - 1);
|
|
18198
|
+
if (arguments.length > 1) {
|
|
18199
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
18200
|
+
args[i - 1] = arguments[i];
|
|
18201
|
+
}
|
|
18126
18202
|
}
|
|
18127
|
-
|
|
18128
|
-
|
|
18129
|
-
|
|
18130
|
-
} catch(error) {
|
|
18131
|
-
return findOtherAuther();
|
|
18132
|
-
} finally {
|
|
18133
|
-
// always runs
|
|
18134
|
-
// doesn't affect the return value
|
|
18203
|
+
queue.push(new Item(fun, args));
|
|
18204
|
+
if (queue.length === 1 && !draining) {
|
|
18205
|
+
runTimeout(drainQueue);
|
|
18135
18206
|
}
|
|
18136
|
-
|
|
18137
|
-
|
|
18138
|
-
Asynchronous example:
|
|
18139
|
-
|
|
18140
|
-
```js
|
|
18141
|
-
findAuthor().catch(function(reason){
|
|
18142
|
-
return findOtherAuther();
|
|
18143
|
-
}).finally(function(){
|
|
18144
|
-
// author was either found, or not
|
|
18145
|
-
});
|
|
18146
|
-
```
|
|
18147
|
-
|
|
18148
|
-
@method finally
|
|
18149
|
-
@param {Function} callback
|
|
18150
|
-
@return {Promise}
|
|
18151
|
-
*/
|
|
18152
|
-
|
|
18207
|
+
};
|
|
18153
18208
|
|
|
18154
|
-
|
|
18155
|
-
|
|
18156
|
-
|
|
18209
|
+
// v8 likes predictible objects
|
|
18210
|
+
function Item(fun, array) {
|
|
18211
|
+
this.fun = fun;
|
|
18212
|
+
this.array = array;
|
|
18213
|
+
}
|
|
18214
|
+
Item.prototype.run = function () {
|
|
18215
|
+
this.fun.apply(null, this.array);
|
|
18216
|
+
};
|
|
18217
|
+
process.title = 'browser';
|
|
18218
|
+
process.browser = true;
|
|
18219
|
+
process.env = {};
|
|
18220
|
+
process.argv = [];
|
|
18221
|
+
process.version = ''; // empty string to avoid regexp issues
|
|
18222
|
+
process.versions = {};
|
|
18157
18223
|
|
|
18158
|
-
|
|
18159
|
-
return promise.then(function (value) {
|
|
18160
|
-
return constructor.resolve(callback()).then(function () {
|
|
18161
|
-
return value;
|
|
18162
|
-
});
|
|
18163
|
-
}, function (reason) {
|
|
18164
|
-
return constructor.resolve(callback()).then(function () {
|
|
18165
|
-
throw reason;
|
|
18166
|
-
});
|
|
18167
|
-
});
|
|
18168
|
-
}
|
|
18224
|
+
function noop() {}
|
|
18169
18225
|
|
|
18170
|
-
|
|
18171
|
-
|
|
18226
|
+
process.on = noop;
|
|
18227
|
+
process.addListener = noop;
|
|
18228
|
+
process.once = noop;
|
|
18229
|
+
process.off = noop;
|
|
18230
|
+
process.removeListener = noop;
|
|
18231
|
+
process.removeAllListeners = noop;
|
|
18232
|
+
process.emit = noop;
|
|
18233
|
+
process.prependListener = noop;
|
|
18234
|
+
process.prependOnceListener = noop;
|
|
18172
18235
|
|
|
18173
|
-
|
|
18174
|
-
}();
|
|
18236
|
+
process.listeners = function (name) { return [] }
|
|
18175
18237
|
|
|
18176
|
-
|
|
18177
|
-
|
|
18178
|
-
|
|
18179
|
-
Promise$1.resolve = resolve$1;
|
|
18180
|
-
Promise$1.reject = reject$1;
|
|
18181
|
-
Promise$1._setScheduler = setScheduler;
|
|
18182
|
-
Promise$1._setAsap = setAsap;
|
|
18183
|
-
Promise$1._asap = asap;
|
|
18238
|
+
process.binding = function (name) {
|
|
18239
|
+
throw new Error('process.binding is not supported');
|
|
18240
|
+
};
|
|
18184
18241
|
|
|
18185
|
-
|
|
18186
|
-
function
|
|
18187
|
-
|
|
18242
|
+
process.cwd = function () { return '/' };
|
|
18243
|
+
process.chdir = function (dir) {
|
|
18244
|
+
throw new Error('process.chdir is not supported');
|
|
18245
|
+
};
|
|
18246
|
+
process.umask = function() { return 0; };
|
|
18188
18247
|
|
|
18189
|
-
if (typeof global !== 'undefined') {
|
|
18190
|
-
local = global;
|
|
18191
|
-
} else if (typeof self !== 'undefined') {
|
|
18192
|
-
local = self;
|
|
18193
|
-
} else {
|
|
18194
|
-
try {
|
|
18195
|
-
local = Function('return this')();
|
|
18196
|
-
} catch (e) {
|
|
18197
|
-
throw new Error('polyfill failed because global object is unavailable in this environment');
|
|
18198
|
-
}
|
|
18199
|
-
}
|
|
18200
18248
|
|
|
18201
|
-
|
|
18249
|
+
/***/ }),
|
|
18250
|
+
/* 55 */
|
|
18251
|
+
/***/ (function(module, exports) {
|
|
18202
18252
|
|
|
18203
|
-
|
|
18204
|
-
var promiseToString = null;
|
|
18205
|
-
try {
|
|
18206
|
-
promiseToString = Object.prototype.toString.call(P.resolve());
|
|
18207
|
-
} catch (e) {
|
|
18208
|
-
// silently ignored
|
|
18209
|
-
}
|
|
18253
|
+
var g;
|
|
18210
18254
|
|
|
18211
|
-
|
|
18212
|
-
|
|
18213
|
-
|
|
18214
|
-
|
|
18255
|
+
// This works in non-strict mode
|
|
18256
|
+
g = (function() {
|
|
18257
|
+
return this;
|
|
18258
|
+
})();
|
|
18215
18259
|
|
|
18216
|
-
|
|
18260
|
+
try {
|
|
18261
|
+
// This works if eval is allowed (see CSP)
|
|
18262
|
+
g = g || new Function("return this")();
|
|
18263
|
+
} catch (e) {
|
|
18264
|
+
// This works if the window reference is available
|
|
18265
|
+
if (typeof window === "object") g = window;
|
|
18217
18266
|
}
|
|
18218
18267
|
|
|
18219
|
-
//
|
|
18220
|
-
|
|
18221
|
-
|
|
18222
|
-
|
|
18223
|
-
return Promise$1;
|
|
18224
|
-
|
|
18225
|
-
})));
|
|
18226
|
-
|
|
18227
|
-
|
|
18268
|
+
// g can still be undefined, but nothing to do about it...
|
|
18269
|
+
// We return undefined, instead of nothing here, so it's
|
|
18270
|
+
// easier to handle this case. if(!global) { ...}
|
|
18228
18271
|
|
|
18229
|
-
|
|
18272
|
+
module.exports = g;
|
|
18230
18273
|
|
|
18231
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(53), __webpack_require__(54)))
|
|
18232
18274
|
|
|
18233
18275
|
/***/ }),
|
|
18234
18276
|
/* 56 */
|
|
@@ -19408,7 +19450,7 @@ return Promise$1;
|
|
|
19408
19450
|
|
|
19409
19451
|
//# sourceMappingURL=es6-promise.map
|
|
19410
19452
|
|
|
19411
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
19453
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(54), __webpack_require__(55)))
|
|
19412
19454
|
|
|
19413
19455
|
/***/ }),
|
|
19414
19456
|
/* 57 */
|
|
@@ -19958,7 +20000,7 @@ var BrowserQueryStorage = /** @class */ (function () {
|
|
|
19958
20000
|
}());
|
|
19959
20001
|
|
|
19960
20002
|
//# sourceMappingURL=query_storage.js.map
|
|
19961
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
20003
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(51)))
|
|
19962
20004
|
|
|
19963
20005
|
/***/ }),
|
|
19964
20006
|
/* 64 */
|
|
@@ -19999,7 +20041,7 @@ var EqModelLoader = /** @class */ (function () {
|
|
|
19999
20041
|
}());
|
|
20000
20042
|
|
|
20001
20043
|
//# sourceMappingURL=model_loader.js.map
|
|
20002
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
20044
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(51)))
|
|
20003
20045
|
|
|
20004
20046
|
/***/ }),
|
|
20005
20047
|
/* 65 */
|
|
@@ -20117,7 +20159,7 @@ var DefaultAggregatesCalculator = /** @class */ (function () {
|
|
|
20117
20159
|
}());
|
|
20118
20160
|
|
|
20119
20161
|
//# sourceMappingURL=eq_aggr_container.js.map
|
|
20120
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
20162
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(51)))
|
|
20121
20163
|
|
|
20122
20164
|
/***/ }),
|
|
20123
20165
|
/* 66 */
|
|
@@ -20176,7 +20218,7 @@ var EasyQueryDataLoader = /** @class */ (function () {
|
|
|
20176
20218
|
}());
|
|
20177
20219
|
|
|
20178
20220
|
//# sourceMappingURL=eq_data_loader.js.map
|
|
20179
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
20221
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(51)))
|
|
20180
20222
|
|
|
20181
20223
|
/***/ }),
|
|
20182
20224
|
/* 67 */
|
|
@@ -21518,7 +21560,7 @@ var DefaultDialogSet = /** @class */ (function () {
|
|
|
21518
21560
|
}());
|
|
21519
21561
|
|
|
21520
21562
|
//# sourceMappingURL=default_dialog_service.js.map
|
|
21521
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
21563
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(107)))
|
|
21522
21564
|
|
|
21523
21565
|
/***/ }),
|
|
21524
21566
|
/* 71 */
|
|
@@ -23371,7 +23413,6 @@ var AggrFuncColumnRendererCB = /** @class */ (function (_super) {
|
|
|
23371
23413
|
.getAttributeByIdSafe(this.column.expr.args[0].value);
|
|
23372
23414
|
};
|
|
23373
23415
|
AggrFuncColumnRendererCB.prototype.getDefaultCaption = function () {
|
|
23374
|
-
console.log('Calling getDefaultCaption() AGGR');
|
|
23375
23416
|
return this.getDefaultTitleText(this.baseAttr) + ' '
|
|
23376
23417
|
+ this.bar.getContext().getModel().getAggrFunctionCaption(this.column.expr.func);
|
|
23377
23418
|
};
|
|
@@ -23721,7 +23762,6 @@ var ColumnRendererCB = /** @class */ (function () {
|
|
|
23721
23762
|
.toDOM();
|
|
23722
23763
|
};
|
|
23723
23764
|
ColumnRendererCB.prototype.getDefaultCaption = function () {
|
|
23724
|
-
console.log('Calling getDefaultCaption() BASE');
|
|
23725
23765
|
return this.getDefaultTitleText(this.baseAttr);
|
|
23726
23766
|
};
|
|
23727
23767
|
ColumnRendererCB.prototype.getDefaultTitleText = function (attr) {
|
|
@@ -24024,7 +24064,7 @@ var TextRenderer = /** @class */ (function () {
|
|
|
24024
24064
|
/* harmony import */ var _easydata_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
24025
24065
|
/* harmony import */ var _easyquery_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
|
|
24026
24066
|
/* harmony import */ var _easydata_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
|
|
24027
|
-
/* harmony import */ var _condition_renderer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
24067
|
+
/* harmony import */ var _condition_renderer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(35);
|
|
24028
24068
|
/* harmony import */ var _utils_browser_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3);
|
|
24029
24069
|
/* harmony import */ var _utils_dropdown__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(79);
|
|
24030
24070
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
@@ -25564,7 +25604,7 @@ var ProcessWidget = /** @class */ (function (_super) {
|
|
|
25564
25604
|
/* harmony import */ var _types_facet_type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(13);
|
|
25565
25605
|
/* harmony import */ var _result_facet__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(31);
|
|
25566
25606
|
/* harmony import */ var _widgets_charts_chart_widget_chartjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(46);
|
|
25567
|
-
/* harmony import */ var _widgets_charts_chart_widget_google__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
25607
|
+
/* harmony import */ var _widgets_charts_chart_widget_google__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(53);
|
|
25568
25608
|
/* harmony import */ var _utils_browser_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(3);
|
|
25569
25609
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
25570
25610
|
var extendStatics = function (d, b) {
|
|
@@ -25838,6 +25878,12 @@ var AggrFunc;
|
|
|
25838
25878
|
AggrFunc["Max"] = "MAX";
|
|
25839
25879
|
AggrFunc["Count"] = "COUNT";
|
|
25840
25880
|
})(AggrFunc || (AggrFunc = {}));
|
|
25881
|
+
var FormFieldType;
|
|
25882
|
+
(function (FormFieldType) {
|
|
25883
|
+
FormFieldType[FormFieldType["ColumnField"] = 0] = "ColumnField";
|
|
25884
|
+
FormFieldType[FormFieldType["RowField"] = 1] = "RowField";
|
|
25885
|
+
FormFieldType[FormFieldType["CellData"] = 2] = "CellData";
|
|
25886
|
+
})(FormFieldType || (FormFieldType = {}));
|
|
25841
25887
|
var DFMT_REGEX = /{0:(.*?)}/g;
|
|
25842
25888
|
var PivotTableFacet = /** @class */ (function (_super) {
|
|
25843
25889
|
__extends(PivotTableFacet, _super);
|
|
@@ -25851,21 +25897,25 @@ var PivotTableFacet = /** @class */ (function (_super) {
|
|
|
25851
25897
|
PivotTableFacet.prototype.init = function (slot) {
|
|
25852
25898
|
var _this = this;
|
|
25853
25899
|
_super.prototype.init.call(this, slot);
|
|
25900
|
+
this.options.maxRowCount = this.options.maxRowCount || 500;
|
|
25901
|
+
this.options.viewportRowsCount = this.options.viewportRowsCount || 50;
|
|
25854
25902
|
this.grid = new _easydata_ui__WEBPACK_IMPORTED_MODULE_0__["EasyGrid"]({
|
|
25855
25903
|
slot: this.contentDiv,
|
|
25856
25904
|
dataTable: this.pivotTable,
|
|
25857
25905
|
paging: {
|
|
25858
|
-
enabled: false
|
|
25906
|
+
enabled: false,
|
|
25907
|
+
pageSize: this.options.maxRowCount
|
|
25859
25908
|
},
|
|
25909
|
+
viewportRowsCount: this.options.viewportRowsCount,
|
|
25860
25910
|
useRowNumeration: false,
|
|
25861
|
-
|
|
25911
|
+
showPlusButton: false,
|
|
25862
25912
|
allowDragDrop: false,
|
|
25863
25913
|
onGetCellRenderer: function (column, defaultRenderer) {
|
|
25864
25914
|
if (column.dataColumn) {
|
|
25865
25915
|
if (column.dataColumn.id == "total") {
|
|
25866
25916
|
return function (value, column, cell, rowEl) {
|
|
25867
25917
|
defaultRenderer(value, column, cell, rowEl);
|
|
25868
|
-
cell.
|
|
25918
|
+
cell.classList.add('pivot-cell-total');
|
|
25869
25919
|
};
|
|
25870
25920
|
}
|
|
25871
25921
|
if (_this.settings.totalsRow) {
|
|
@@ -25922,9 +25972,10 @@ var PivotTableFacet = /** @class */ (function (_super) {
|
|
|
25922
25972
|
}
|
|
25923
25973
|
return csb;
|
|
25924
25974
|
};
|
|
25925
|
-
PivotTableFacet.prototype.createColumnsSelectBuilder = function (allowedTypes, colName) {
|
|
25975
|
+
PivotTableFacet.prototype.createColumnsSelectBuilder = function (allowedTypes, colName, formFieldType) {
|
|
25926
25976
|
var dataTable = this.getContextDataTable();
|
|
25927
25977
|
var csb = Object(_easydata_ui__WEBPACK_IMPORTED_MODULE_0__["domel"])('select');
|
|
25978
|
+
var firstNumericColIndex = null;
|
|
25928
25979
|
var _loop_2 = function (i) {
|
|
25929
25980
|
var column = dataTable.columns.get(i);
|
|
25930
25981
|
var colLabel = column.label;
|
|
@@ -25932,6 +25983,9 @@ var PivotTableFacet = /** @class */ (function (_super) {
|
|
|
25932
25983
|
var colId = column.id;
|
|
25933
25984
|
if (allowedTypes && allowedTypes.indexOf(colType) < 0)
|
|
25934
25985
|
return "continue";
|
|
25986
|
+
if (firstNumericColIndex === null && _easydata_core__WEBPACK_IMPORTED_MODULE_1__["utils"].isNumericType(colType)) {
|
|
25987
|
+
firstNumericColIndex = i;
|
|
25988
|
+
}
|
|
25935
25989
|
csb.addChild('option', function (b) {
|
|
25936
25990
|
b
|
|
25937
25991
|
.attr('value', colId)
|
|
@@ -25953,7 +26007,20 @@ var PivotTableFacet = /** @class */ (function (_super) {
|
|
|
25953
26007
|
}
|
|
25954
26008
|
}
|
|
25955
26009
|
else {
|
|
25956
|
-
|
|
26010
|
+
switch (formFieldType) {
|
|
26011
|
+
case FormFieldType.ColumnField: {
|
|
26012
|
+
csb.toDOM().value = options[0].value;
|
|
26013
|
+
break;
|
|
26014
|
+
}
|
|
26015
|
+
case FormFieldType.RowField: {
|
|
26016
|
+
csb.toDOM().value = options.length > 1 ? options[1].value : options[0].value;
|
|
26017
|
+
break;
|
|
26018
|
+
}
|
|
26019
|
+
case FormFieldType.CellData: {
|
|
26020
|
+
csb.toDOM().value = firstNumericColIndex === null ? options[0].value : options[firstNumericColIndex].value;
|
|
26021
|
+
break;
|
|
26022
|
+
}
|
|
26023
|
+
}
|
|
25957
26024
|
}
|
|
25958
26025
|
}
|
|
25959
26026
|
return csb;
|
|
@@ -25998,7 +26065,7 @@ var PivotTableFacet = /** @class */ (function (_super) {
|
|
|
25998
26065
|
.addChild('div', function (b) { return b
|
|
25999
26066
|
.addClass('kfrm-select')
|
|
26000
26067
|
.attr('name', 'column_field')
|
|
26001
|
-
.addChildElement(_this.createColumnsSelectBuilder(colTypes, settings.colName)
|
|
26068
|
+
.addChildElement(_this.createColumnsSelectBuilder(colTypes, settings.colName, FormFieldType.ColumnField)
|
|
26002
26069
|
.id('pivotTableColFieldSelector')
|
|
26003
26070
|
.toDOM()); })
|
|
26004
26071
|
.addChild('button', function (b) { return b
|
|
@@ -26020,7 +26087,7 @@ var PivotTableFacet = /** @class */ (function (_super) {
|
|
|
26020
26087
|
.addChild('div', function (b) { return b
|
|
26021
26088
|
.addClass('kfrm-select')
|
|
26022
26089
|
.attr('name', 'row_field')
|
|
26023
|
-
.addChildElement(_this.createColumnsSelectBuilder(colTypes, settings.rowName)
|
|
26090
|
+
.addChildElement(_this.createColumnsSelectBuilder(colTypes, settings.rowName, FormFieldType.RowField)
|
|
26024
26091
|
.id('pivotTableRowFieldSelector')
|
|
26025
26092
|
.toDOM()); });
|
|
26026
26093
|
current = getCurrent();
|
|
@@ -26040,7 +26107,7 @@ var PivotTableFacet = /** @class */ (function (_super) {
|
|
|
26040
26107
|
.addChild('div', function (b) { return b
|
|
26041
26108
|
.addClass('kfrm-select')
|
|
26042
26109
|
.attr('name', 'data_column')
|
|
26043
|
-
.addChildElement(_this.createColumnsSelectBuilder(fieldTypes, settings.fieldName)
|
|
26110
|
+
.addChildElement(_this.createColumnsSelectBuilder(fieldTypes, settings.fieldName, FormFieldType.CellData)
|
|
26044
26111
|
.on('change', function (ev) {
|
|
26045
26112
|
var colId = ev.target.value;
|
|
26046
26113
|
_this.validateSelectedField(colId);
|
|
@@ -26126,6 +26193,18 @@ var PivotTableFacet = /** @class */ (function (_super) {
|
|
|
26126
26193
|
PivotTableFacet.prototype.refreshCore = function () {
|
|
26127
26194
|
this.updatePivotData();
|
|
26128
26195
|
if (this.grid) {
|
|
26196
|
+
var dataSize = this.pivotTable.getTotal();
|
|
26197
|
+
var maxRow = this.grid.options.paging.pageSize;
|
|
26198
|
+
if (dataSize > maxRow) {
|
|
26199
|
+
this.contentDiv.classList.remove('pivot-grid-with-totals');
|
|
26200
|
+
this.showErrorMessage(_easydata_core__WEBPACK_IMPORTED_MODULE_1__["i18n"].getText('Facets', 'ErrTooMuchData'));
|
|
26201
|
+
}
|
|
26202
|
+
if (this.options.viewportRowsCount > dataSize) {
|
|
26203
|
+
this.grid.options.viewportRowsCount = dataSize;
|
|
26204
|
+
}
|
|
26205
|
+
else {
|
|
26206
|
+
this.grid.options.viewportRowsCount = this.options.viewportRowsCount;
|
|
26207
|
+
}
|
|
26129
26208
|
this.grid.refresh();
|
|
26130
26209
|
}
|
|
26131
26210
|
};
|
|
@@ -26300,10 +26379,10 @@ var PivotTableFacet = /** @class */ (function (_super) {
|
|
|
26300
26379
|
total_row.push(totalByCol);
|
|
26301
26380
|
}
|
|
26302
26381
|
this.pivotTable.addRow(total_row);
|
|
26303
|
-
this.contentDiv.classList.add('pivot-grid-totals
|
|
26382
|
+
this.contentDiv.classList.add('pivot-grid-with-totals');
|
|
26304
26383
|
}
|
|
26305
26384
|
else {
|
|
26306
|
-
this.contentDiv.classList.remove('pivot-grid-totals
|
|
26385
|
+
this.contentDiv.classList.remove('pivot-grid-with-totals');
|
|
26307
26386
|
}
|
|
26308
26387
|
};
|
|
26309
26388
|
PivotTableFacet.prototype.calcAggrFunc = function (func, options) {
|
|
@@ -26795,7 +26874,7 @@ var AggrSettingsDialog = /** @class */ (function () {
|
|
|
26795
26874
|
var ds = _this.context.getServices().getDialogService();
|
|
26796
26875
|
_this.body = _this.renderBody();
|
|
26797
26876
|
var dlg = ds.open({
|
|
26798
|
-
title: '
|
|
26877
|
+
title: _easyquery_core__WEBPACK_IMPORTED_MODULE_1__["i18n"].getText('AggrSettings', 'AggrDialogTitle'),
|
|
26799
26878
|
body: _this.body,
|
|
26800
26879
|
onSubmit: function () {
|
|
26801
26880
|
if (_this.query.enableAggregation && !_this.renderer.isValid())
|
|
@@ -26856,10 +26935,10 @@ var AggrSettingsDialog = /** @class */ (function () {
|
|
|
26856
26935
|
b.on('change', _this.enableAggrCheckBoxChangeHandler.bind(_this));
|
|
26857
26936
|
})
|
|
26858
26937
|
.addChild('span', function (b) { return b
|
|
26859
|
-
.addClass('slider round'); })
|
|
26938
|
+
.addClass('slider round'); })
|
|
26860
26939
|
.addChild('span', function (b) { return b
|
|
26861
26940
|
.addClass('switch-text')
|
|
26862
|
-
.addText(_easyquery_core__WEBPACK_IMPORTED_MODULE_1__["i18n"].getText('AggrSettings', 'EnableAggrLabel')); }); })
|
|
26941
|
+
.addText(_easyquery_core__WEBPACK_IMPORTED_MODULE_1__["i18n"].getText('AggrSettings', 'EnableAggrLabel')); }); }); })
|
|
26863
26942
|
.addChild('div', function (b) { return b
|
|
26864
26943
|
.id('AggrSettingsComponent'); });
|
|
26865
26944
|
return b.toDOM();
|
|
@@ -27038,10 +27117,10 @@ var AggrSettingsRenderer = /** @class */ (function () {
|
|
|
27038
27117
|
b.on('change', _this.countsCheckboxChangeHandler.bind(_this));
|
|
27039
27118
|
})
|
|
27040
27119
|
.addChild('span', function (b) { return b
|
|
27041
|
-
.addClass('slider round'); })
|
|
27120
|
+
.addClass('slider round'); })
|
|
27042
27121
|
.addChild('span', function (b) { return b
|
|
27043
27122
|
.addClass('switch-text')
|
|
27044
|
-
.addText(_easyquery_core__WEBPACK_IMPORTED_MODULE_3__["i18n"].getText('AggrSettings', 'GroupCountsLabel')); }); })
|
|
27123
|
+
.addText(_easyquery_core__WEBPACK_IMPORTED_MODULE_3__["i18n"].getText('AggrSettings', 'GroupCountsLabel')); }); }); })
|
|
27045
27124
|
.addChild('div', function (b) { return b
|
|
27046
27125
|
.addClass(_this.cssPrefix + "-grandtotals")
|
|
27047
27126
|
.addChild('label', function (b) { return b
|
|
@@ -27054,10 +27133,10 @@ var AggrSettingsRenderer = /** @class */ (function () {
|
|
|
27054
27133
|
b.on('change', _this.grandCheckboxChangeHandler.bind(_this));
|
|
27055
27134
|
})
|
|
27056
27135
|
.addChild('span', function (b) { return b
|
|
27057
|
-
.addClass('slider round'); })
|
|
27136
|
+
.addClass('slider round'); })
|
|
27058
27137
|
.addChild('span', function (b) { return b
|
|
27059
27138
|
.addClass('switch-text')
|
|
27060
|
-
.addText(_easyquery_core__WEBPACK_IMPORTED_MODULE_3__["i18n"].getText('AggrSettings', 'GrandTotalsLabel')); }); });
|
|
27139
|
+
.addText(_easyquery_core__WEBPACK_IMPORTED_MODULE_3__["i18n"].getText('AggrSettings', 'GrandTotalsLabel')); }); }); });
|
|
27061
27140
|
var groups = this.slot.querySelectorAll("." + this.cssPrefix + "-group");
|
|
27062
27141
|
groups.forEach(function (el) {
|
|
27063
27142
|
Object(_easydata_ui__WEBPACK_IMPORTED_MODULE_1__["domel"])(el)
|
|
@@ -28415,6 +28494,9 @@ var result_facets_panel_ResultFacetsPanel = /** @class */ (function (_super) {
|
|
|
28415
28494
|
ResultFacetsPanel.prototype.attachQueryObserver = function () {
|
|
28416
28495
|
var _this = this;
|
|
28417
28496
|
var query = this.getQuery();
|
|
28497
|
+
if (this.queryEventCallbackId) {
|
|
28498
|
+
query.removeChangedCallback(this.queryEventCallbackId);
|
|
28499
|
+
}
|
|
28418
28500
|
this.queryEventCallbackId = query.addChangedCallback(function (event) {
|
|
28419
28501
|
//if something has changed, and that change is related to columns
|
|
28420
28502
|
var edata = event.data;
|
|
@@ -30014,7 +30096,7 @@ return Promise$1;
|
|
|
30014
30096
|
|
|
30015
30097
|
//# sourceMappingURL=es6-promise.map
|
|
30016
30098
|
|
|
30017
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
30099
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(113), __webpack_require__(114)))
|
|
30018
30100
|
|
|
30019
30101
|
/***/ }),
|
|
30020
30102
|
/* 101 */
|
|
@@ -30024,8 +30106,8 @@ return Promise$1;
|
|
|
30024
30106
|
/* WEBPACK VAR INJECTION */(function(Promise) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return HttpResponseError; });
|
|
30025
30107
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return HttpClient; });
|
|
30026
30108
|
/* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11);
|
|
30027
|
-
/* harmony import */ var _http_action_result__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
30028
|
-
/* harmony import */ var _http_method__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
30109
|
+
/* harmony import */ var _http_action_result__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(110);
|
|
30110
|
+
/* harmony import */ var _http_method__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36);
|
|
30029
30111
|
/* harmony import */ var _http_request__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(57);
|
|
30030
30112
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
30031
30113
|
var extendStatics = function (d, b) {
|
|
@@ -31348,7 +31430,7 @@ return Promise$1;
|
|
|
31348
31430
|
|
|
31349
31431
|
//# sourceMappingURL=es6-promise.map
|
|
31350
31432
|
|
|
31351
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
31433
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(54), __webpack_require__(55)))
|
|
31352
31434
|
|
|
31353
31435
|
/***/ }),
|
|
31354
31436
|
/* 103 */
|
|
@@ -31520,6 +31602,7 @@ var EasyDataTable = /** @class */ (function () {
|
|
|
31520
31602
|
this.cachedRows = [];
|
|
31521
31603
|
this.total = 0;
|
|
31522
31604
|
this.needTotal = !this._elasticChunks;
|
|
31605
|
+
this.fireUpdated();
|
|
31523
31606
|
};
|
|
31524
31607
|
EasyDataTable.prototype.createRow = function (dataOrRow) {
|
|
31525
31608
|
var _this = this;
|
|
@@ -31782,13 +31865,40 @@ var GoogleDataConverter = /** @class */ (function () {
|
|
|
31782
31865
|
/* 105 */
|
|
31783
31866
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
31784
31867
|
|
|
31868
|
+
"use strict";
|
|
31869
|
+
/* WEBPACK VAR INJECTION */(function(Promise) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return InMemoryModelStorage; });
|
|
31870
|
+
/* harmony import */ var _easydata_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
31871
|
+
|
|
31872
|
+
var InMemoryModelStorage = /** @class */ (function () {
|
|
31873
|
+
function InMemoryModelStorage(models) {
|
|
31874
|
+
this.models = [];
|
|
31875
|
+
if (models) {
|
|
31876
|
+
_easydata_core__WEBPACK_IMPORTED_MODULE_0__["utils"].assign(this.models, [], models);
|
|
31877
|
+
}
|
|
31878
|
+
}
|
|
31879
|
+
InMemoryModelStorage.prototype.getModels = function () {
|
|
31880
|
+
var _this = this;
|
|
31881
|
+
return new Promise(function (resolve, reject) {
|
|
31882
|
+
resolve(_this.models);
|
|
31883
|
+
});
|
|
31884
|
+
};
|
|
31885
|
+
return InMemoryModelStorage;
|
|
31886
|
+
}());
|
|
31887
|
+
|
|
31888
|
+
//# sourceMappingURL=model_storage.js.map
|
|
31889
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(51)))
|
|
31890
|
+
|
|
31891
|
+
/***/ }),
|
|
31892
|
+
/* 106 */
|
|
31893
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
31894
|
+
|
|
31785
31895
|
"use strict";
|
|
31786
31896
|
/* WEBPACK VAR INJECTION */(function(Promise) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return EasyGrid; });
|
|
31787
31897
|
/* harmony import */ var _easydata_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
31788
|
-
/* harmony import */ var _utils_drag_manager__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
31898
|
+
/* harmony import */ var _utils_drag_manager__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(37);
|
|
31789
31899
|
/* harmony import */ var _utils_dom_elem_builder__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6);
|
|
31790
31900
|
/* harmony import */ var _utils_ui_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(18);
|
|
31791
|
-
/* harmony import */ var _easy_grid_options__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
31901
|
+
/* harmony import */ var _easy_grid_options__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(34);
|
|
31792
31902
|
/* harmony import */ var _easy_grid_columns__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(21);
|
|
31793
31903
|
/* harmony import */ var _easy_grid_cell_renderer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(39);
|
|
31794
31904
|
var __assign = (undefined && undefined.__assign) || function () {
|
|
@@ -31843,7 +31953,7 @@ var EasyGrid = /** @class */ (function () {
|
|
|
31843
31953
|
pageSizeItems: [20, 30, 50, 100, 200]
|
|
31844
31954
|
},
|
|
31845
31955
|
columnWidths: {
|
|
31846
|
-
autoResize: _easy_grid_options__WEBPACK_IMPORTED_MODULE_4__[/* AutoResizeColumns */ "a"].
|
|
31956
|
+
autoResize: _easy_grid_options__WEBPACK_IMPORTED_MODULE_4__[/* AutoResizeColumns */ "a"].Always,
|
|
31847
31957
|
stringColumns: {
|
|
31848
31958
|
min: 100,
|
|
31849
31959
|
max: 500,
|
|
@@ -31871,7 +31981,7 @@ var EasyGrid = /** @class */ (function () {
|
|
|
31871
31981
|
default: 60
|
|
31872
31982
|
}
|
|
31873
31983
|
},
|
|
31874
|
-
|
|
31984
|
+
showPlusButton: false,
|
|
31875
31985
|
viewportRowsCount: null,
|
|
31876
31986
|
showActiveRow: true
|
|
31877
31987
|
};
|
|
@@ -31970,8 +32080,8 @@ var EasyGrid = /** @class */ (function () {
|
|
|
31970
32080
|
if (options.onRowDbClick) {
|
|
31971
32081
|
this.addEventListener('rowDbClick', options.onRowDbClick);
|
|
31972
32082
|
}
|
|
31973
|
-
if (options.
|
|
31974
|
-
this.addEventListener('
|
|
32083
|
+
if (options.onPlusButtonClick) {
|
|
32084
|
+
this.addEventListener('plusButtonClick', options.onPlusButtonClick);
|
|
31975
32085
|
}
|
|
31976
32086
|
if (options.onColumnChanged) {
|
|
31977
32087
|
this.addEventListener('columnChanged', options.onColumnChanged);
|
|
@@ -32057,7 +32167,7 @@ var EasyGrid = /** @class */ (function () {
|
|
|
32057
32167
|
};
|
|
32058
32168
|
EasyGrid.prototype.render = function () {
|
|
32059
32169
|
var _this = this;
|
|
32060
|
-
if (!this.hasData() && !this.options.
|
|
32170
|
+
if (!this.hasData() && !this.options.showPlusButton)
|
|
32061
32171
|
return;
|
|
32062
32172
|
this.containerInitialHeight = this.slot.clientHeight;
|
|
32063
32173
|
this.rootDiv = document.createElement('div');
|
|
@@ -32081,9 +32191,6 @@ var EasyGrid = /** @class */ (function () {
|
|
|
32081
32191
|
.then(function () {
|
|
32082
32192
|
_this.firstRender = false;
|
|
32083
32193
|
_this.rowsOnPagePromise = null;
|
|
32084
|
-
if (needAutoResize) {
|
|
32085
|
-
_this.resizeColumns();
|
|
32086
|
-
}
|
|
32087
32194
|
});
|
|
32088
32195
|
}
|
|
32089
32196
|
else {
|
|
@@ -32105,14 +32212,14 @@ var EasyGrid = /** @class */ (function () {
|
|
|
32105
32212
|
var firstRow = _this.bodyCellContainerDiv.firstElementChild;
|
|
32106
32213
|
var rowHeight = firstRow ? firstRow.offsetHeight : DEFAULT_ROW_HEIGHT;
|
|
32107
32214
|
var rowCount = _this.options.viewportRowsCount; // || DEFAULT_ROW_COUNT;
|
|
32108
|
-
var
|
|
32109
|
-
Object(_utils_dom_elem_builder__WEBPACK_IMPORTED_MODULE_2__[/* domel */ "e"])(_this.
|
|
32110
|
-
.setStyle('height',
|
|
32215
|
+
var viewportHeight_1 = rowHeight * rowCount;
|
|
32216
|
+
Object(_utils_dom_elem_builder__WEBPACK_IMPORTED_MODULE_2__[/* domel */ "e"])(_this.bodyViewportDiv)
|
|
32217
|
+
.setStyle('height', viewportHeight_1 + "px");
|
|
32111
32218
|
setTimeout(function () {
|
|
32112
32219
|
var sbHeight = _this.bodyViewportDiv.offsetHeight - _this.bodyViewportDiv.clientHeight;
|
|
32113
|
-
|
|
32114
|
-
Object(_utils_dom_elem_builder__WEBPACK_IMPORTED_MODULE_2__[/* domel */ "e"])(_this.
|
|
32115
|
-
.setStyle('height',
|
|
32220
|
+
viewportHeight_1 = viewportHeight_1 + sbHeight;
|
|
32221
|
+
Object(_utils_dom_elem_builder__WEBPACK_IMPORTED_MODULE_2__[/* domel */ "e"])(_this.bodyViewportDiv)
|
|
32222
|
+
.setStyle('height', viewportHeight_1 + "px");
|
|
32116
32223
|
resolve();
|
|
32117
32224
|
}, 100);
|
|
32118
32225
|
return;
|
|
@@ -32159,7 +32266,7 @@ var EasyGrid = /** @class */ (function () {
|
|
|
32159
32266
|
_this.headerRowDiv.appendChild(hd);
|
|
32160
32267
|
if (column.isRowNum) {
|
|
32161
32268
|
Object(_utils_dom_elem_builder__WEBPACK_IMPORTED_MODULE_2__[/* domel */ "e"])(hd)
|
|
32162
|
-
.addChildElement(_this.
|
|
32269
|
+
.addChildElement(_this.renderHeaderButtons());
|
|
32163
32270
|
}
|
|
32164
32271
|
});
|
|
32165
32272
|
var containerWidth = this.getContainerWidth();
|
|
@@ -32256,9 +32363,15 @@ var EasyGrid = /** @class */ (function () {
|
|
|
32256
32363
|
_this.updateTotalsState(groups_1, row, true);
|
|
32257
32364
|
}
|
|
32258
32365
|
}
|
|
32259
|
-
var
|
|
32260
|
-
|
|
32261
|
-
.
|
|
32366
|
+
var needAutoResize = _this.options.columnWidths.autoResize !== _easy_grid_options__WEBPACK_IMPORTED_MODULE_4__[/* AutoResizeColumns */ "a"].Never;
|
|
32367
|
+
if (needAutoResize) {
|
|
32368
|
+
_this.resizeColumns();
|
|
32369
|
+
}
|
|
32370
|
+
else {
|
|
32371
|
+
var containerWidth = _this.getContainerWidth();
|
|
32372
|
+
Object(_utils_dom_elem_builder__WEBPACK_IMPORTED_MODULE_2__[/* domel */ "e"])(_this.bodyCellContainerDiv)
|
|
32373
|
+
.setStyle('width', containerWidth + "px");
|
|
32374
|
+
}
|
|
32262
32375
|
return rowsToRender;
|
|
32263
32376
|
})
|
|
32264
32377
|
.catch(function (error) { console.error(error); return 0; });
|
|
@@ -32498,23 +32611,26 @@ var EasyGrid = /** @class */ (function () {
|
|
|
32498
32611
|
var pageInfoDiv = Object(_utils_dom_elem_builder__WEBPACK_IMPORTED_MODULE_2__[/* domel */ "e"])('div')
|
|
32499
32612
|
.addClass(this.cssPrefix + "-page-info")
|
|
32500
32613
|
.toDOM();
|
|
32501
|
-
var
|
|
32502
|
-
|
|
32503
|
-
|
|
32504
|
-
|
|
32505
|
-
|
|
32506
|
-
|
|
32507
|
-
|
|
32508
|
-
|
|
32509
|
-
var
|
|
32510
|
-
|
|
32511
|
-
|
|
32512
|
-
|
|
32513
|
-
|
|
32514
|
-
|
|
32515
|
-
|
|
32516
|
-
.
|
|
32517
|
-
|
|
32614
|
+
var rowCount = this.dataTable.getTotal();
|
|
32615
|
+
if (rowCount > 0) {
|
|
32616
|
+
var fistPageRecordNum = count
|
|
32617
|
+
? (this.pagination.page - 1) * this.pagination.pageSize + 1
|
|
32618
|
+
: 0;
|
|
32619
|
+
var lastPageRecordNum = count
|
|
32620
|
+
? fistPageRecordNum + count - 1
|
|
32621
|
+
: 0;
|
|
32622
|
+
var totalStr = this.dataTable.getTotal().toString();
|
|
32623
|
+
if (this.dataTable.elasticChunks) {
|
|
32624
|
+
var count_1 = this.dataTable.getCachedCount();
|
|
32625
|
+
var total = this.dataTable.getTotal();
|
|
32626
|
+
if (count_1 !== total)
|
|
32627
|
+
totalStr = '?';
|
|
32628
|
+
}
|
|
32629
|
+
pageInfoDiv.innerHTML = _easydata_core__WEBPACK_IMPORTED_MODULE_0__["i18n"].getText('GridPageInfo')
|
|
32630
|
+
.replace('{FirstPageRecordNum}', "<span>" + fistPageRecordNum.toString() + "</span>")
|
|
32631
|
+
.replace('{LastPageRecordNum}', "<span>" + lastPageRecordNum.toString() + "</span>")
|
|
32632
|
+
.replace('{Total}', "<span>" + totalStr + "</span>");
|
|
32633
|
+
}
|
|
32518
32634
|
return pageInfoDiv;
|
|
32519
32635
|
};
|
|
32520
32636
|
EasyGrid.prototype.showProgress = function () {
|
|
@@ -32609,7 +32725,8 @@ var EasyGrid = /** @class */ (function () {
|
|
|
32609
32725
|
var _this = this;
|
|
32610
32726
|
var paginateDiv = document.createElement('div');
|
|
32611
32727
|
paginateDiv.className = this.cssPrefix + "-pagination-wrapper";
|
|
32612
|
-
|
|
32728
|
+
var rowCount = this.dataTable.getTotal();
|
|
32729
|
+
if (this.options.paging && this.options.paging.enabled && rowCount > 0) {
|
|
32613
32730
|
var prefix_1 = this.paginationOptions.useBootstrap ? '' : this.cssPrefix + "-";
|
|
32614
32731
|
var buttonClickHandler_1 = function (ev) {
|
|
32615
32732
|
var element = ev.target;
|
|
@@ -32735,18 +32852,18 @@ var EasyGrid = /** @class */ (function () {
|
|
|
32735
32852
|
EasyGrid.prototype.removeEventListener = function (eventType, handlerId) {
|
|
32736
32853
|
this.eventEmitter.unsubscribe(eventType, handlerId);
|
|
32737
32854
|
};
|
|
32738
|
-
EasyGrid.prototype.
|
|
32855
|
+
EasyGrid.prototype.renderHeaderButtons = function () {
|
|
32739
32856
|
var _this = this;
|
|
32740
|
-
if (this.options.
|
|
32857
|
+
if (this.options.showPlusButton) {
|
|
32741
32858
|
return Object(_utils_dom_elem_builder__WEBPACK_IMPORTED_MODULE_2__[/* domel */ "e"])('div')
|
|
32742
|
-
.addClass(this.cssPrefix + "-
|
|
32743
|
-
.title(this.options.
|
|
32859
|
+
.addClass(this.cssPrefix + "-header-btn-plus")
|
|
32860
|
+
.title(this.options.plusButtonTitle || 'Add')
|
|
32744
32861
|
.addChild('a', function (builder) { return builder
|
|
32745
32862
|
.attr('href', 'javascript:void(0)')
|
|
32746
32863
|
.on('click', function (e) {
|
|
32747
32864
|
e.preventDefault();
|
|
32748
32865
|
_this.fireEvent({
|
|
32749
|
-
type: '
|
|
32866
|
+
type: 'plusButtonClick',
|
|
32750
32867
|
sourceEvent: e
|
|
32751
32868
|
});
|
|
32752
32869
|
}); })
|
|
@@ -32942,10 +33059,10 @@ var EasyGrid = /** @class */ (function () {
|
|
|
32942
33059
|
}());
|
|
32943
33060
|
|
|
32944
33061
|
//# sourceMappingURL=easy_grid.js.map
|
|
32945
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
33062
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(107)))
|
|
32946
33063
|
|
|
32947
33064
|
/***/ }),
|
|
32948
|
-
/*
|
|
33065
|
+
/* 107 */
|
|
32949
33066
|
/***/ (function(module, exports, __webpack_require__) {
|
|
32950
33067
|
|
|
32951
33068
|
/* WEBPACK VAR INJECTION */(function(process, global) {/*!
|
|
@@ -34122,10 +34239,10 @@ return Promise$1;
|
|
|
34122
34239
|
|
|
34123
34240
|
//# sourceMappingURL=es6-promise.map
|
|
34124
34241
|
|
|
34125
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
34242
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(54), __webpack_require__(55)))
|
|
34126
34243
|
|
|
34127
34244
|
/***/ }),
|
|
34128
|
-
/*
|
|
34245
|
+
/* 108 */
|
|
34129
34246
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
34130
34247
|
|
|
34131
34248
|
"use strict";
|
|
@@ -34854,7 +34971,7 @@ var AdvancedSearchView = /** @class */ (function (_super) {
|
|
|
34854
34971
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(56)))
|
|
34855
34972
|
|
|
34856
34973
|
/***/ }),
|
|
34857
|
-
/*
|
|
34974
|
+
/* 109 */
|
|
34858
34975
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
34859
34976
|
|
|
34860
34977
|
"use strict";
|
|
@@ -34979,7 +35096,6 @@ var EqServerAggregatesCalculator = /** @class */ (function () {
|
|
|
34979
35096
|
dataTable.addRow(row);
|
|
34980
35097
|
}
|
|
34981
35098
|
var levelData = _this.buildLevelData(options.level, dataTable);
|
|
34982
|
-
console.log('Level', options.level, levelData);
|
|
34983
35099
|
_this.aggrContainer.setAggregateData(options.level, levelData);
|
|
34984
35100
|
if (options.resultObtainedCallback) {
|
|
34985
35101
|
options.resultObtainedCallback(result, options.level);
|
|
@@ -35038,7 +35154,7 @@ var EqServerAggregatesCalculator = /** @class */ (function () {
|
|
|
35038
35154
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(100)))
|
|
35039
35155
|
|
|
35040
35156
|
/***/ }),
|
|
35041
|
-
/*
|
|
35157
|
+
/* 110 */
|
|
35042
35158
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
35043
35159
|
|
|
35044
35160
|
"use strict";
|
|
@@ -35069,7 +35185,7 @@ var HttpActionResult = /** @class */ (function () {
|
|
|
35069
35185
|
//# sourceMappingURL=http_action_result.js.map
|
|
35070
35186
|
|
|
35071
35187
|
/***/ }),
|
|
35072
|
-
/*
|
|
35188
|
+
/* 111 */
|
|
35073
35189
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
35074
35190
|
|
|
35075
35191
|
"use strict";
|
|
@@ -35118,17 +35234,19 @@ var DataTableAggregatesCalculator = /** @class */ (function () {
|
|
|
35118
35234
|
this.levelsTotals.push(levelTotals);
|
|
35119
35235
|
}
|
|
35120
35236
|
var allRows = this.context.resultTable.getCachedRows();
|
|
35121
|
-
|
|
35122
|
-
var
|
|
35123
|
-
|
|
35124
|
-
|
|
35125
|
-
|
|
35126
|
-
|
|
35127
|
-
|
|
35128
|
-
|
|
35129
|
-
|
|
35130
|
-
|
|
35131
|
-
this.
|
|
35237
|
+
if (allRows.length > 0) {
|
|
35238
|
+
for (var _i = 0, allRows_1 = allRows; _i < allRows_1.length; _i++) {
|
|
35239
|
+
var row = allRows_1[_i];
|
|
35240
|
+
this.processDataRow(row);
|
|
35241
|
+
}
|
|
35242
|
+
//flusing the totals for all group levels
|
|
35243
|
+
for (var levelIndex = 1; levelIndex < levelNumber; levelIndex++) {
|
|
35244
|
+
this.flushLevelTotals(levelIndex);
|
|
35245
|
+
}
|
|
35246
|
+
//flusing the grand totals (if they are turned on)
|
|
35247
|
+
if (this.aggrSettings.hasGrandTotals()) {
|
|
35248
|
+
this.flushLevelTotals(0);
|
|
35249
|
+
}
|
|
35132
35250
|
}
|
|
35133
35251
|
return Promise.resolve();
|
|
35134
35252
|
};
|
|
@@ -35242,14 +35360,14 @@ var DataTableAggregatesCalculator = /** @class */ (function () {
|
|
|
35242
35360
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(100)))
|
|
35243
35361
|
|
|
35244
35362
|
/***/ }),
|
|
35245
|
-
/*
|
|
35363
|
+
/* 112 */
|
|
35246
35364
|
/***/ (function(module, exports, __webpack_require__) {
|
|
35247
35365
|
|
|
35248
|
-
module.exports = __webpack_require__(
|
|
35366
|
+
module.exports = __webpack_require__(115);
|
|
35249
35367
|
|
|
35250
35368
|
|
|
35251
35369
|
/***/ }),
|
|
35252
|
-
/*
|
|
35370
|
+
/* 113 */
|
|
35253
35371
|
/***/ (function(module, exports) {
|
|
35254
35372
|
|
|
35255
35373
|
// shim for using process in browser
|
|
@@ -35439,7 +35557,7 @@ process.umask = function() { return 0; };
|
|
|
35439
35557
|
|
|
35440
35558
|
|
|
35441
35559
|
/***/ }),
|
|
35442
|
-
/*
|
|
35560
|
+
/* 114 */
|
|
35443
35561
|
/***/ (function(module, exports) {
|
|
35444
35562
|
|
|
35445
35563
|
var g;
|
|
@@ -35465,7 +35583,7 @@ module.exports = g;
|
|
|
35465
35583
|
|
|
35466
35584
|
|
|
35467
35585
|
/***/ }),
|
|
35468
|
-
/*
|
|
35586
|
+
/* 115 */
|
|
35469
35587
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
35470
35588
|
|
|
35471
35589
|
"use strict";
|
|
@@ -36022,7 +36140,7 @@ var chart_type = __webpack_require__(5);
|
|
|
36022
36140
|
var chart_widget = __webpack_require__(47);
|
|
36023
36141
|
|
|
36024
36142
|
// EXTERNAL MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/packs/ui/dist/lib/widgets/charts/chart_widget_google.js
|
|
36025
|
-
var chart_widget_google = __webpack_require__(
|
|
36143
|
+
var chart_widget_google = __webpack_require__(53);
|
|
36026
36144
|
|
|
36027
36145
|
// EXTERNAL MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/packs/ui/dist/lib/widgets/charts/chart_widget_chartjs.js
|
|
36028
36146
|
var chart_widget_chartjs = __webpack_require__(46);
|
|
@@ -36064,13 +36182,13 @@ var input_expression_renderer = __webpack_require__(80);
|
|
|
36064
36182
|
var datetime_expression_render = __webpack_require__(83);
|
|
36065
36183
|
|
|
36066
36184
|
// EXTERNAL MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/packs/ui/dist/lib/widgets/renderers/querypanel/condition_renderer.js
|
|
36067
|
-
var condition_renderer = __webpack_require__(
|
|
36185
|
+
var condition_renderer = __webpack_require__(35);
|
|
36068
36186
|
|
|
36069
36187
|
// EXTERNAL MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/packs/ui/dist/lib/widgets/renderers/querypanel/condition_group_renderer.js
|
|
36070
36188
|
var condition_group_renderer = __webpack_require__(78);
|
|
36071
36189
|
|
|
36072
36190
|
// EXTERNAL MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/packs/ui/dist/lib/widgets/renderers/querypanel/attribute_expression_renderer.js
|
|
36073
|
-
var attribute_expression_renderer = __webpack_require__(
|
|
36191
|
+
var attribute_expression_renderer = __webpack_require__(52);
|
|
36074
36192
|
|
|
36075
36193
|
// EXTERNAL MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/packs/ui/dist/lib/widgets/renderers/querypanel/expression_renderer.js
|
|
36076
36194
|
var expression_renderer = __webpack_require__(23);
|
|
@@ -36106,7 +36224,7 @@ var pivot_table_facet = __webpack_require__(90);
|
|
|
36106
36224
|
var view = __webpack_require__(32);
|
|
36107
36225
|
|
|
36108
36226
|
// EXTERNAL MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/packs/ui/dist/lib/views/adv_search_view.js
|
|
36109
|
-
var adv_search_view = __webpack_require__(
|
|
36227
|
+
var adv_search_view = __webpack_require__(108);
|
|
36110
36228
|
|
|
36111
36229
|
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/packs/ui/dist/lib/views/data_filter_view.js
|
|
36112
36230
|
var data_filter_view_extends = (undefined && undefined.__extends) || (function () {
|
|
@@ -36130,7 +36248,9 @@ var data_filter_view_extends = (undefined && undefined.__extends) || (function (
|
|
|
36130
36248
|
var data_filter_view_DataFilterView = /** @class */ (function (_super) {
|
|
36131
36249
|
data_filter_view_extends(DataFilterView, _super);
|
|
36132
36250
|
function DataFilterView() {
|
|
36133
|
-
|
|
36251
|
+
var _this = _super.call(this) || this;
|
|
36252
|
+
_this.resultOptions.fetchEmptyQueries = true;
|
|
36253
|
+
return _this;
|
|
36134
36254
|
}
|
|
36135
36255
|
DataFilterView.prototype.initOptions = function (options) {
|
|
36136
36256
|
var _this = this;
|
|
@@ -36208,7 +36328,9 @@ var html_data_filter_view_extends = (undefined && undefined.__extends) || (funct
|
|
|
36208
36328
|
var html_data_filter_view_HtmlDataFilterView = /** @class */ (function (_super) {
|
|
36209
36329
|
html_data_filter_view_extends(HtmlDataFilterView, _super);
|
|
36210
36330
|
function HtmlDataFilterView() {
|
|
36211
|
-
|
|
36331
|
+
var _this = _super.call(this) || this;
|
|
36332
|
+
_this.resultOptions.fetchEmptyQueries = true;
|
|
36333
|
+
return _this;
|
|
36212
36334
|
}
|
|
36213
36335
|
/**
|
|
36214
36336
|
* Creates the widget that represents Grid Widget.
|
|
@@ -36281,7 +36403,7 @@ var report_view_ReportView = /** @class */ (function (_super) {
|
|
|
36281
36403
|
_this.loadReportButtonClickHandler = _this.loadReportButtonClick.bind(_this);
|
|
36282
36404
|
_this.saveReportButtonClickHandler = _this.saveReportButtonClick.bind(_this);
|
|
36283
36405
|
_this.removeReportButtonClickHandler = _this.removeReportButtonClick.bind(_this);
|
|
36284
|
-
_this.
|
|
36406
|
+
_this.reloadReportDataButtonClickHandler = _this.reloadReportDataButtonClick.bind(_this);
|
|
36285
36407
|
browser_utils["a" /* browserUtils */].onMobileModeChanged(function (_) {
|
|
36286
36408
|
document.location.reload();
|
|
36287
36409
|
});
|
|
@@ -36368,7 +36490,7 @@ var report_view_ReportView = /** @class */ (function (_super) {
|
|
|
36368
36490
|
var loadReportButton = "LoadReportButton";
|
|
36369
36491
|
var saveReportButton = "SaveReportButton";
|
|
36370
36492
|
var removeReportButton = "RemoveReportButton";
|
|
36371
|
-
var
|
|
36493
|
+
var reloadReportDataButton = "ReloadReportDataButton";
|
|
36372
36494
|
var resultCountSpan = "ResultCount";
|
|
36373
36495
|
var exportButtons = "ResultExportButtons";
|
|
36374
36496
|
var exportClass = this.exportClass;
|
|
@@ -36380,7 +36502,7 @@ var report_view_ReportView = /** @class */ (function (_super) {
|
|
|
36380
36502
|
loadReportButton = options.slots.loadReportButton || loadReportButton;
|
|
36381
36503
|
saveReportButton = options.slots.saveReportButton || saveReportButton;
|
|
36382
36504
|
removeReportButton = options.slots.removeReportButton || removeReportButton;
|
|
36383
|
-
|
|
36505
|
+
reloadReportDataButton = options.slots.reloadReportDataButton || reloadReportDataButton;
|
|
36384
36506
|
exportClass = options.slots.exportClass || exportClass;
|
|
36385
36507
|
}
|
|
36386
36508
|
this.exportButtons = this.domRoots.reduce(function (elems, root) {
|
|
@@ -36427,10 +36549,14 @@ var report_view_ReportView = /** @class */ (function (_super) {
|
|
|
36427
36549
|
this.removeReportButton.addEventListener('click', this.removeReportButtonClickHandler);
|
|
36428
36550
|
}
|
|
36429
36551
|
}
|
|
36430
|
-
if (!this.
|
|
36431
|
-
this.
|
|
36432
|
-
|
|
36433
|
-
|
|
36552
|
+
if (!this.reloadReportDataButton) {
|
|
36553
|
+
this.reloadReportDataButton = this.resolveElement(reloadReportDataButton);
|
|
36554
|
+
//OBSOLETE: remove the next 3 lines. We just support the old default button ID here
|
|
36555
|
+
if (!this.reloadReportDataButton) {
|
|
36556
|
+
this.reloadReportDataButton = this.resolveElement('UpdateReportButton');
|
|
36557
|
+
}
|
|
36558
|
+
if (this.reloadReportDataButton) {
|
|
36559
|
+
this.reloadReportDataButton.addEventListener('click', this.reloadReportDataButtonClickHandler);
|
|
36434
36560
|
}
|
|
36435
36561
|
}
|
|
36436
36562
|
this.reportListSlot = document.getElementById('ReportList');
|
|
@@ -36508,6 +36634,7 @@ var report_view_ReportView = /** @class */ (function (_super) {
|
|
|
36508
36634
|
var query = self.context.getQuery();
|
|
36509
36635
|
var reportLoaded = function () {
|
|
36510
36636
|
_this.renderReportProps();
|
|
36637
|
+
_this.context.resultTable.clear();
|
|
36511
36638
|
query.fireChangedEvent({
|
|
36512
36639
|
part: public_api["QueryChangePart"].All,
|
|
36513
36640
|
noSync: true,
|
|
@@ -36734,8 +36861,8 @@ var report_view_ReportView = /** @class */ (function (_super) {
|
|
|
36734
36861
|
this.removeReportButton.removeEventListener('click', this.removeReportButtonClickHandler);
|
|
36735
36862
|
this.removeReportButton = null;
|
|
36736
36863
|
}
|
|
36737
|
-
if (this.
|
|
36738
|
-
this.
|
|
36864
|
+
if (this.reloadReportDataButton) {
|
|
36865
|
+
this.reloadReportDataButton.removeEventListener('click', this.reloadReportDataButtonClickHandler);
|
|
36739
36866
|
this.removeReportButton = null;
|
|
36740
36867
|
}
|
|
36741
36868
|
if (this.reportListSlot) {
|
|
@@ -36836,7 +36963,7 @@ var report_view_ReportView = /** @class */ (function (_super) {
|
|
|
36836
36963
|
/**
|
|
36837
36964
|
* The handler of the "Update" button click.
|
|
36838
36965
|
*/
|
|
36839
|
-
ReportView.prototype.
|
|
36966
|
+
ReportView.prototype.reloadReportDataButtonClick = function () {
|
|
36840
36967
|
this.fetchData();
|
|
36841
36968
|
};
|
|
36842
36969
|
/**
|
|
@@ -37158,6 +37285,7 @@ function addEasyQueryUITexts() {
|
|
|
37158
37285
|
TabNameLabel: 'Tab name',
|
|
37159
37286
|
ErrQueryChanged: 'FAILED TO DISPLAY. QUERY WAS CHANGED',
|
|
37160
37287
|
ErrNotEnoughData: "We can't display the graph because not all data for this query is loaded. \n The total number of records: {totalRecs}, currently loaded: {cachedRecs}. \n You can [download the result]. Please note: this may take some time and consume a lot of memory.",
|
|
37288
|
+
ErrTooMuchData: 'Too much data. The grid is not able to display it',
|
|
37161
37289
|
Chart: {
|
|
37162
37290
|
FacetTitle: 'Chart',
|
|
37163
37291
|
DlgTitle: 'Chart settings',
|
|
@@ -37200,6 +37328,7 @@ function addEasyQueryUITexts() {
|
|
|
37200
37328
|
UnaggrBtn: 'Remove column aggregation',
|
|
37201
37329
|
GrandTotalsLabel: 'Show grand totals',
|
|
37202
37330
|
GroupCountsLabel: 'Show record count for groups',
|
|
37331
|
+
AggrDialogTitle: 'Aggregation/grouping',
|
|
37203
37332
|
EnableAggrLabel: 'Enable aggregation',
|
|
37204
37333
|
SelectedError: 'Complete the action with selected column(s)',
|
|
37205
37334
|
NoGroupsOrAggrError: 'Add at least one group or aggregation',
|
|
@@ -37335,7 +37464,7 @@ if (!Array.prototype.findIndex) {
|
|
|
37335
37464
|
//# sourceMappingURL=public_api.js.map
|
|
37336
37465
|
// CONCATENATED MODULE: ./dist/lib/utils/lcv.js
|
|
37337
37466
|
var majVer = 7;
|
|
37338
|
-
var minVer =
|
|
37467
|
+
var minVer = 2;
|
|
37339
37468
|
var magics = [45, 128, 231];
|
|
37340
37469
|
Math.trunc = Math.trunc || function (x) {
|
|
37341
37470
|
if (isNaN(x)) {
|
|
@@ -37820,7 +37949,7 @@ var model_ex_DataModelEx = /** @class */ (function (_super) {
|
|
|
37820
37949
|
|
|
37821
37950
|
//# sourceMappingURL=model_ex.js.map
|
|
37822
37951
|
// EXTERNAL MODULE: ./dist/lib/data/data_table_aggr_calculator.js
|
|
37823
|
-
var data_table_aggr_calculator = __webpack_require__(
|
|
37952
|
+
var data_table_aggr_calculator = __webpack_require__(111);
|
|
37824
37953
|
|
|
37825
37954
|
// CONCATENATED MODULE: ./dist/lib/extensions.js
|
|
37826
37955
|
|
|
@@ -37894,7 +38023,7 @@ function showLCDialog() {
|
|
|
37894
38023
|
break;
|
|
37895
38024
|
default:
|
|
37896
38025
|
title = "Invalid key for EasyQuery!";
|
|
37897
|
-
body = "The EasyQuery product key is either invalid or was issued for a different version of the library.\n The version you are using now is 7.
|
|
38026
|
+
body = "The EasyQuery product key is either invalid or was issued for a different version of the library.\n The version you are using now is 7.2,\n\tso please <a href=\"https://korzh.com/account\">login to your account</a> to get a proper key for version 7.2.";
|
|
37898
38027
|
buttonTitle = 'Get key';
|
|
37899
38028
|
buttonUrl = 'https://korzh.com/account';
|
|
37900
38029
|
break;
|
|
@@ -37974,7 +38103,7 @@ function hideTrialWM() {
|
|
|
37974
38103
|
}
|
|
37975
38104
|
//# sourceMappingURL=extensions.js.map
|
|
37976
38105
|
// EXTERNAL MODULE: ./dist/lib/data/eqs_aggr_calculator.js
|
|
37977
|
-
var eqs_aggr_calculator = __webpack_require__(
|
|
38106
|
+
var eqs_aggr_calculator = __webpack_require__(109);
|
|
37978
38107
|
|
|
37979
38108
|
// CONCATENATED MODULE: ./dist/lib/public_api.js
|
|
37980
38109
|
|