@easyquery/ui 7.1.2 → 7.2.0-rc02
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/css/easyfacets.css +11 -1
- package/dist/browser/eq.community.css.map +1 -1
- package/dist/browser/eq.community.js +1602 -1172
- package/dist/browser/eq.community.js.map +1 -1
- package/dist/browser/eq.community.min.js +2 -2
- package/dist/browser/eq.community.min.js.LICENSE.txt +0 -2
- package/dist/browser/eq.community.min.js.map +1 -1
- package/dist/browser/eq.core.css +200 -367
- package/dist/browser/eq.core.min.css +2 -2
- package/dist/browser/eq.view.css +5 -12
- package/dist/browser/eq.view.css.map +1 -1
- package/dist/browser/eq.view.min.css +2 -2
- package/dist/bundles/easyquery.ui.js +916 -599
- package/dist/bundles/easyquery.ui.js.map +1 -1
- package/dist/bundles/easyquery.ui.min.js +1 -1
- package/dist/bundles/easyquery.ui.min.js.LICENSE.txt +0 -2
- package/dist/bundles/easyquery.ui.min.js.map +1 -1
- package/dist/lib/facets/pivot_table_facet.js +24 -5
- package/dist/lib/facets/pivot_table_facet.js.map +1 -1
- package/dist/lib/facets/result_facet.d.ts +1 -1
- package/dist/lib/facets/result_facet.js +26 -54
- package/dist/lib/facets/result_facet.js.map +1 -1
- package/dist/lib/i18n/text_resources.js +1 -0
- package/dist/lib/i18n/text_resources.js.map +1 -1
- package/dist/lib/public_api.d.ts +2 -2
- package/dist/lib/public_api.js +2 -2
- package/dist/lib/public_api.js.map +1 -1
- package/dist/lib/utils/popup_menu.d.ts +3 -3
- package/dist/lib/widgets/aggregation_bar.d.ts +1 -1
- package/dist/lib/widgets/charts/chart_widget.d.ts +1 -1
- package/dist/lib/widgets/columns_bar.d.ts +1 -1
- package/dist/lib/widgets/columns_panel.d.ts +1 -1
- package/dist/lib/widgets/columns_panel.js +4 -3
- package/dist/lib/widgets/columns_panel.js.map +1 -1
- package/dist/lib/widgets/easy_grid_widget.js +2 -2
- package/dist/lib/widgets/easy_grid_widget.js.map +1 -1
- package/dist/lib/widgets/entities_panel.d.ts +1 -1
- package/dist/lib/widgets/filter_bar.d.ts +1 -1
- package/dist/lib/widgets/query_panel.d.ts +1 -1
- package/dist/lib/widgets/query_panel.js +4 -3
- package/dist/lib/widgets/query_panel.js.map +1 -1
- package/dist/lib/widgets/queryname_widget.d.ts +1 -1
- package/dist/lib/widgets/renderers/aggr_settings/aggr_settings_renderer.d.ts +1 -1
- package/dist/lib/widgets/renderers/aggr_settings/aggr_settings_renderer.js.map +1 -1
- package/dist/lib/widgets/renderers/columnsbar/aggrfunc_column_renderer.d.ts +1 -1
- package/dist/lib/widgets/renderers/columnsbar/aggrfunc_column_renderer.js +2 -1
- package/dist/lib/widgets/renderers/columnsbar/aggrfunc_column_renderer.js.map +1 -1
- package/dist/lib/widgets/renderers/columnsbar/{column_renderer.d.ts → column_renderer_cb.d.ts} +3 -3
- package/dist/lib/widgets/renderers/columnsbar/{column_renderer.js → column_renderer_cb.js} +4 -7
- package/dist/lib/widgets/renderers/columnsbar/column_renderer_cb.js.map +1 -0
- package/dist/lib/widgets/renderers/columnsbar/simple_column_renderer.d.ts +2 -2
- package/dist/lib/widgets/renderers/columnsbar/simple_column_renderer.js +2 -2
- package/dist/lib/widgets/renderers/columnsbar/simple_column_renderer.js.map +1 -1
- package/dist/lib/widgets/renderers/columnspanel/aggrfunc_column_renderer.d.ts +1 -1
- package/dist/lib/widgets/renderers/columnspanel/{column_renderer.d.ts → column_renderer_cp.d.ts} +2 -2
- package/dist/lib/widgets/renderers/columnspanel/{column_renderer.js → column_renderer_cp.js} +11 -4
- package/dist/lib/widgets/renderers/columnspanel/column_renderer_cp.js.map +1 -0
- package/dist/lib/widgets/renderers/columnspanel/customsql_column_renderer.d.ts +1 -1
- package/dist/lib/widgets/renderers/columnspanel/simple_column_renderer.d.ts +1 -1
- package/dist/lib/widgets/renderers/columnspanel/simple_column_renderer.js +1 -1
- package/dist/lib/widgets/renderers/columnspanel/simple_column_renderer.js.map +1 -1
- package/dist/lib/widgets/renderers/querypanel/addrow_renderer.d.ts +1 -1
- package/dist/lib/widgets/renderers/querypanel/condition_renderer.d.ts +1 -1
- package/dist/lib/widgets/renderers/querypanel/datetime_expression_render.js +0 -1
- package/dist/lib/widgets/renderers/querypanel/datetime_expression_render.js.map +1 -1
- package/dist/lib/widgets/renderers/querypanel/expression_renderer.d.ts +1 -1
- package/dist/lib/widgets/renderers/querypanel/operator_renderer.d.ts +1 -1
- package/dist/lib/widgets/renderers/querypanel/text_renderer.d.ts +1 -1
- package/dist/lib/widgets/renderers/sortingbar/{column_renderer.d.ts → column_renderer_sp.d.ts} +2 -2
- package/dist/lib/widgets/renderers/sortingbar/{column_renderer.js → column_renderer_sp.js} +1 -1
- package/dist/lib/widgets/renderers/sortingbar/column_renderer_sp.js.map +1 -0
- package/dist/lib/widgets/result_facets_panel.d.ts +1 -1
- package/dist/lib/widgets/result_facets_panel.js.map +1 -1
- package/dist/lib/widgets/sorting_bar.d.ts +1 -1
- package/dist/lib/widgets/sorting_bar.js +1 -1
- package/dist/lib/widgets/sorting_bar.js.map +1 -1
- package/package.json +8 -10
- package/dist/lib/widgets/renderers/columnsbar/column_renderer.js.map +0 -1
- package/dist/lib/widgets/renderers/columnspanel/column_renderer.js.map +0 -1
- package/dist/lib/widgets/renderers/sortingbar/column_renderer.js.map +0 -1
|
@@ -100,7 +100,20 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
100
100
|
|
|
101
101
|
"use strict";
|
|
102
102
|
|
|
103
|
-
//
|
|
103
|
+
// EXPORTS
|
|
104
|
+
__webpack_require__.d(__webpack_exports__, "d", function() { return /* reexport */ DataType; });
|
|
105
|
+
__webpack_require__.d(__webpack_exports__, "a", function() { return /* reexport */ AggregationSettings; });
|
|
106
|
+
__webpack_require__.d(__webpack_exports__, "b", function() { return /* reexport */ ColumnAlignment; });
|
|
107
|
+
__webpack_require__.d(__webpack_exports__, "c", function() { return /* reexport */ DataRow; });
|
|
108
|
+
__webpack_require__.d(__webpack_exports__, "e", function() { return /* reexport */ easy_data_table_EasyDataTable; });
|
|
109
|
+
__webpack_require__.d(__webpack_exports__, "f", function() { return /* reexport */ event_emitter_EventEmitter; });
|
|
110
|
+
__webpack_require__.d(__webpack_exports__, "g", function() { return /* reexport */ i18n_i18n; });
|
|
111
|
+
__webpack_require__.d(__webpack_exports__, "i", function() { return /* reexport */ utils_utils; });
|
|
112
|
+
__webpack_require__.d(__webpack_exports__, "h", function() { return /* reexport */ liquid; });
|
|
113
|
+
|
|
114
|
+
// UNUSED EXPORTS: EntityAttrKind, EditorTag, HttpMethod, HttpRequest, HttpResponseError, HttpClient, MetaData, MetaEntity, MetaEntityAttr, ValueEditor, DataColumn, DataColumnList, EasyGuid, repeatString, reverseString, strEndsWith, combinePath
|
|
115
|
+
|
|
116
|
+
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/core/dist/lib/types/data_type.js
|
|
104
117
|
/** Represents the common types of the data. */
|
|
105
118
|
var DataType;
|
|
106
119
|
(function (DataType) {
|
|
@@ -147,7 +160,7 @@ var DataType;
|
|
|
147
160
|
DataType[DataType["Geography"] = 19] = "Geography";
|
|
148
161
|
})(DataType || (DataType = {}));
|
|
149
162
|
//# sourceMappingURL=data_type.js.map
|
|
150
|
-
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/
|
|
163
|
+
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/core/dist/lib/types/entity_attr_kind.js
|
|
151
164
|
var EntityAttrKind;
|
|
152
165
|
(function (EntityAttrKind) {
|
|
153
166
|
EntityAttrKind[EntityAttrKind["Data"] = 0] = "Data";
|
|
@@ -155,7 +168,7 @@ var EntityAttrKind;
|
|
|
155
168
|
EntityAttrKind[EntityAttrKind["Lookup"] = 2] = "Lookup";
|
|
156
169
|
})(EntityAttrKind || (EntityAttrKind = {}));
|
|
157
170
|
//# sourceMappingURL=entity_attr_kind.js.map
|
|
158
|
-
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/
|
|
171
|
+
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/core/dist/lib/types/editor_tag.js
|
|
159
172
|
var EditorTag = {
|
|
160
173
|
/** Unknown tag value */
|
|
161
174
|
Unknown: "Unknown",
|
|
@@ -171,7 +184,7 @@ var EditorTag = {
|
|
|
171
184
|
File: "FILE"
|
|
172
185
|
};
|
|
173
186
|
//# sourceMappingURL=editor_tag.js.map
|
|
174
|
-
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/
|
|
187
|
+
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/core/dist/lib/http/http_method.js
|
|
175
188
|
var HttpMethod;
|
|
176
189
|
(function (HttpMethod) {
|
|
177
190
|
HttpMethod["Trace"] = "TRACE";
|
|
@@ -182,7 +195,7 @@ var HttpMethod;
|
|
|
182
195
|
HttpMethod["Delete"] = "DELETE";
|
|
183
196
|
})(HttpMethod || (HttpMethod = {}));
|
|
184
197
|
//# sourceMappingURL=http_method.js.map
|
|
185
|
-
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/
|
|
198
|
+
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/core/dist/lib/http/http_request.js
|
|
186
199
|
var HttpRequest = /** @class */ (function () {
|
|
187
200
|
function HttpRequest(xhr, descriptor) {
|
|
188
201
|
this.xhr = xhr;
|
|
@@ -241,7 +254,7 @@ var HttpRequest = /** @class */ (function () {
|
|
|
241
254
|
}());
|
|
242
255
|
|
|
243
256
|
//# sourceMappingURL=http_request.js.map
|
|
244
|
-
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/
|
|
257
|
+
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/core/dist/lib/utils/string_utils.js
|
|
245
258
|
function repeatString(str, times) {
|
|
246
259
|
var result = "";
|
|
247
260
|
for (var i = 0; i < times; i++) {
|
|
@@ -274,7 +287,7 @@ function combinePath(path1, path2) {
|
|
|
274
287
|
return result;
|
|
275
288
|
}
|
|
276
289
|
//# sourceMappingURL=string_utils.js.map
|
|
277
|
-
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/
|
|
290
|
+
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/core/dist/lib/i18n/i18n.js
|
|
278
291
|
|
|
279
292
|
|
|
280
293
|
/**
|
|
@@ -743,14 +756,14 @@ var i18n_i18n;
|
|
|
743
756
|
}
|
|
744
757
|
})(i18n_i18n || (i18n_i18n = {}));
|
|
745
758
|
//# sourceMappingURL=i18n.js.map
|
|
746
|
-
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/
|
|
759
|
+
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/core/dist/lib/utils/utils.js
|
|
747
760
|
|
|
748
761
|
|
|
749
762
|
|
|
750
763
|
var utils_utils;
|
|
751
764
|
(function (utils) {
|
|
752
765
|
function getAllDataTypes() {
|
|
753
|
-
return Object.values(DataType);
|
|
766
|
+
return Object.values(DataType).filter(function (item) { return typeof item === "number"; });
|
|
754
767
|
}
|
|
755
768
|
utils.getAllDataTypes = getAllDataTypes;
|
|
756
769
|
function getDateDataTypes() {
|
|
@@ -758,12 +771,16 @@ var utils_utils;
|
|
|
758
771
|
}
|
|
759
772
|
utils.getDateDataTypes = getDateDataTypes;
|
|
760
773
|
function getStringDataTypes() {
|
|
761
|
-
return [DataType.String, DataType.Memo];
|
|
774
|
+
return [DataType.String, DataType.Memo, DataType.FixedChar];
|
|
762
775
|
}
|
|
763
776
|
utils.getStringDataTypes = getStringDataTypes;
|
|
764
777
|
var _numericTypes = [DataType.Byte, DataType.Word, DataType.Int32,
|
|
765
|
-
DataType.Int64, DataType.Float, DataType.Currency];
|
|
766
|
-
|
|
778
|
+
DataType.Int64, DataType.Float, DataType.Currency, DataType.Autoinc];
|
|
779
|
+
function getNumericDataTypes() {
|
|
780
|
+
return _numericTypes;
|
|
781
|
+
}
|
|
782
|
+
utils.getNumericDataTypes = getNumericDataTypes;
|
|
783
|
+
var _intTypes = [DataType.Byte, DataType.Word, DataType.Int32, DataType.Int64, DataType.Autoinc];
|
|
767
784
|
//-------------- object functions -------------------
|
|
768
785
|
/**
|
|
769
786
|
* Copy the content of all objests passed in `args` parameters into `target`
|
|
@@ -828,7 +845,7 @@ var utils_utils;
|
|
|
828
845
|
hashSet.set(sourceVal, target[key]);
|
|
829
846
|
}
|
|
830
847
|
else {
|
|
831
|
-
if (typeof target[key] == 'undefined') {
|
|
848
|
+
if (typeof target[key] == 'undefined' || target[key] == null) {
|
|
832
849
|
target[key] = Object.create(Object.getPrototypeOf(sourceVal));
|
|
833
850
|
}
|
|
834
851
|
hashSet.set(sourceVal, target[key]);
|
|
@@ -1132,10 +1149,10 @@ var utils_utils;
|
|
|
1132
1149
|
return (621355968e9 + (new Date()).getTime() * 1e4);
|
|
1133
1150
|
}
|
|
1134
1151
|
function safeParseInt(str) {
|
|
1135
|
-
var
|
|
1136
|
-
if (
|
|
1137
|
-
throw "
|
|
1138
|
-
return
|
|
1152
|
+
var res = parseInt(str);
|
|
1153
|
+
if (isNaN(res))
|
|
1154
|
+
throw "\"" + str + "\" is not a valid number";
|
|
1155
|
+
return res;
|
|
1139
1156
|
}
|
|
1140
1157
|
function getDaysInMonth(month, year) {
|
|
1141
1158
|
return new Date(year, month + 1, 0).getDate();
|
|
@@ -1145,10 +1162,10 @@ var utils_utils;
|
|
|
1145
1162
|
function strToDateTime(value, format) {
|
|
1146
1163
|
if (!value || value.length == 0)
|
|
1147
1164
|
return new Date();
|
|
1148
|
-
var
|
|
1165
|
+
var normalizedValue = value.replace(/[^a-zA-Z0-9_]/g, '-');
|
|
1149
1166
|
var normalizedFormat = format.replace(/[^a-zA-Z0-9_]/g, '-');
|
|
1150
1167
|
var formatItems = normalizedFormat.split('-');
|
|
1151
|
-
var dateItems =
|
|
1168
|
+
var dateItems = normalizedValue.split('-');
|
|
1152
1169
|
var monthIndex = formatItems.indexOf("MM");
|
|
1153
1170
|
var dayIndex = formatItems.indexOf("dd");
|
|
1154
1171
|
var yearIndex = formatItems.indexOf("yyyy");
|
|
@@ -1157,41 +1174,58 @@ var utils_utils;
|
|
|
1157
1174
|
var secondsIndex = formatItems.indexOf("ss");
|
|
1158
1175
|
var today = new Date();
|
|
1159
1176
|
try {
|
|
1160
|
-
var year = yearIndex > -1 && yearIndex < dateItems.length
|
|
1161
|
-
|
|
1177
|
+
var year = yearIndex > -1 && yearIndex < dateItems.length
|
|
1178
|
+
? safeParseInt(dateItems[yearIndex])
|
|
1179
|
+
: today.getFullYear();
|
|
1180
|
+
var month = monthIndex > -1 && monthIndex < dateItems.length
|
|
1181
|
+
? safeParseInt(dateItems[monthIndex]) - 1
|
|
1182
|
+
: today.getMonth() - 1;
|
|
1162
1183
|
if (month > 11)
|
|
1163
1184
|
throw '';
|
|
1164
|
-
var day = dayIndex > -1 && dayIndex < dateItems.length
|
|
1185
|
+
var day = dayIndex > -1 && dayIndex < dateItems.length
|
|
1186
|
+
? safeParseInt(dateItems[dayIndex])
|
|
1187
|
+
: today.getDate();
|
|
1165
1188
|
if (day > getDaysInMonth(month, year))
|
|
1166
1189
|
throw '';
|
|
1167
|
-
var hour = hourIndex > -1 && hourIndex < dateItems.length
|
|
1190
|
+
var hour = hourIndex > -1 && hourIndex < dateItems.length
|
|
1191
|
+
? safeParseInt(dateItems[hourIndex])
|
|
1192
|
+
: 0;
|
|
1168
1193
|
if (hour > 23)
|
|
1169
1194
|
throw '';
|
|
1170
|
-
var minute = minutesIndex > -1 && minutesIndex < dateItems.length
|
|
1195
|
+
var minute = minutesIndex > -1 && minutesIndex < dateItems.length
|
|
1196
|
+
? safeParseInt(dateItems[minutesIndex])
|
|
1197
|
+
: 0;
|
|
1171
1198
|
if (minute > 59)
|
|
1172
1199
|
throw '';
|
|
1173
|
-
var second = secondsIndex > -1 && secondsIndex < dateItems.length
|
|
1200
|
+
var second = secondsIndex > -1 && secondsIndex < dateItems.length
|
|
1201
|
+
? safeParseInt(dateItems[secondsIndex])
|
|
1202
|
+
: 0;
|
|
1174
1203
|
if (second > 59)
|
|
1175
1204
|
throw '';
|
|
1176
1205
|
return new Date(year, month, day, hour, minute, second);
|
|
1177
1206
|
}
|
|
1178
1207
|
catch (_a) {
|
|
1179
|
-
throw "
|
|
1208
|
+
throw value + " is not a valid date.";
|
|
1180
1209
|
}
|
|
1181
1210
|
}
|
|
1182
1211
|
utils.strToDateTime = strToDateTime;
|
|
1183
1212
|
function strToTime(str) {
|
|
1184
1213
|
var timeItems = str.split(':');
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1214
|
+
try {
|
|
1215
|
+
var hour = timeItems.length > 0 ? safeParseInt(timeItems[0]) : 0;
|
|
1216
|
+
if (hour > 23)
|
|
1217
|
+
throw '';
|
|
1218
|
+
var minute = timeItems.length > 1 ? safeParseInt(timeItems[1]) : 0;
|
|
1219
|
+
if (minute > 59)
|
|
1220
|
+
throw '';
|
|
1221
|
+
var second = timeItems.length > 1 ? safeParseInt(timeItems[1]) : 0;
|
|
1222
|
+
if (second > 59)
|
|
1223
|
+
throw '';
|
|
1224
|
+
return new Date(0, 0, 0, hour, minute, second);
|
|
1225
|
+
}
|
|
1226
|
+
catch (_a) {
|
|
1227
|
+
throw str + " is not a valid time.";
|
|
1228
|
+
}
|
|
1195
1229
|
}
|
|
1196
1230
|
utils.strToTime = strToTime;
|
|
1197
1231
|
var DT_FORMAT_RGEX = /\[([^\]]+)]|y{4}|M{1,4}|d{1,2}|H{1,2}|h{1,2}|m{2}|s{2}|t{2}/g;
|
|
@@ -1243,7 +1277,7 @@ var utils_utils;
|
|
|
1243
1277
|
utils.numberToStr = numberToStr;
|
|
1244
1278
|
})(utils_utils || (utils_utils = {}));
|
|
1245
1279
|
//# sourceMappingURL=utils.js.map
|
|
1246
|
-
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/
|
|
1280
|
+
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/core/dist/lib/http/http_action_result.js
|
|
1247
1281
|
var HttpActionResult = /** @class */ (function () {
|
|
1248
1282
|
function HttpActionResult(request, promise) {
|
|
1249
1283
|
this.request = request;
|
|
@@ -1268,7 +1302,7 @@ var HttpActionResult = /** @class */ (function () {
|
|
|
1268
1302
|
}());
|
|
1269
1303
|
|
|
1270
1304
|
//# sourceMappingURL=http_action_result.js.map
|
|
1271
|
-
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/
|
|
1305
|
+
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/core/dist/lib/http/http_client.js
|
|
1272
1306
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
1273
1307
|
var extendStatics = function (d, b) {
|
|
1274
1308
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -1340,7 +1374,7 @@ var http_client_HttpClient = /** @class */ (function () {
|
|
|
1340
1374
|
var desc = {
|
|
1341
1375
|
method: method,
|
|
1342
1376
|
url: url,
|
|
1343
|
-
headers: __assign({}, this.defaultHeaders, options.headers || {}),
|
|
1377
|
+
headers: __assign(__assign({}, this.defaultHeaders), options.headers || {}),
|
|
1344
1378
|
queryParams: options.queryParams || {},
|
|
1345
1379
|
data: data
|
|
1346
1380
|
};
|
|
@@ -1368,7 +1402,7 @@ var http_client_HttpClient = /** @class */ (function () {
|
|
|
1368
1402
|
}
|
|
1369
1403
|
var responseContentType = xhr.getResponseHeader('Content-Type') || '';
|
|
1370
1404
|
var status = xhr.status;
|
|
1371
|
-
if (status >=
|
|
1405
|
+
if (status >= 400) {
|
|
1372
1406
|
var rtPromise = (xhr.responseType === 'arraybuffer'
|
|
1373
1407
|
|| xhr.responseType === 'blob')
|
|
1374
1408
|
? HttpClient.decodeArrayBuffer(xhr.response)
|
|
@@ -1410,7 +1444,7 @@ var http_client_HttpClient = /** @class */ (function () {
|
|
|
1410
1444
|
}());
|
|
1411
1445
|
|
|
1412
1446
|
//# sourceMappingURL=http_client.js.map
|
|
1413
|
-
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/
|
|
1447
|
+
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/core/dist/lib/meta/meta_entity.js
|
|
1414
1448
|
|
|
1415
1449
|
|
|
1416
1450
|
|
|
@@ -1420,6 +1454,8 @@ var http_client_HttpClient = /** @class */ (function () {
|
|
|
1420
1454
|
var MetaEntity = /** @class */ (function () {
|
|
1421
1455
|
/** The default constructor. */
|
|
1422
1456
|
function MetaEntity(parent) {
|
|
1457
|
+
/** Returns false if this entity is read-only */
|
|
1458
|
+
this.isEditable = true;
|
|
1423
1459
|
this.name = "";
|
|
1424
1460
|
this.caption = "";
|
|
1425
1461
|
this.description = "";
|
|
@@ -1439,6 +1475,8 @@ var MetaEntity = /** @class */ (function () {
|
|
|
1439
1475
|
this.captionPlural = dto.namePlur;
|
|
1440
1476
|
this.caption = dto.name;
|
|
1441
1477
|
this.description = dto.desc;
|
|
1478
|
+
if (typeof (dto.ied) !== 'undefined')
|
|
1479
|
+
this.isEditable = dto.ied;
|
|
1442
1480
|
this.subEntities = new Array();
|
|
1443
1481
|
if (dto.ents) {
|
|
1444
1482
|
for (var i = 0; i < dto.ents.length; i++) {
|
|
@@ -1482,6 +1520,12 @@ var MetaEntity = /** @class */ (function () {
|
|
|
1482
1520
|
};
|
|
1483
1521
|
internalProcessEntity(this);
|
|
1484
1522
|
};
|
|
1523
|
+
MetaEntity.prototype.getFirstPrimaryAttr = function () {
|
|
1524
|
+
return this.getPrimaryAttrs()[0];
|
|
1525
|
+
};
|
|
1526
|
+
MetaEntity.prototype.getPrimaryAttrs = function () {
|
|
1527
|
+
return this.attributes.filter(function (attr) { return attr.isPrimaryKey; });
|
|
1528
|
+
};
|
|
1485
1529
|
return MetaEntity;
|
|
1486
1530
|
}());
|
|
1487
1531
|
|
|
@@ -1542,7 +1586,7 @@ var meta_entity_MetaEntityAttr = /** @class */ (function () {
|
|
|
1542
1586
|
}());
|
|
1543
1587
|
|
|
1544
1588
|
//# sourceMappingURL=meta_entity.js.map
|
|
1545
|
-
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/
|
|
1589
|
+
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/core/dist/lib/meta/value_editor.js
|
|
1546
1590
|
|
|
1547
1591
|
|
|
1548
1592
|
/**
|
|
@@ -1608,7 +1652,7 @@ var value_editor_ValueEditor = /** @class */ (function () {
|
|
|
1608
1652
|
}());
|
|
1609
1653
|
|
|
1610
1654
|
//# sourceMappingURL=value_editor.js.map
|
|
1611
|
-
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/
|
|
1655
|
+
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/core/dist/lib/meta/meta_data.js
|
|
1612
1656
|
|
|
1613
1657
|
|
|
1614
1658
|
|
|
@@ -2100,9 +2144,9 @@ var meta_data_MetaData = /** @class */ (function () {
|
|
|
2100
2144
|
}());
|
|
2101
2145
|
|
|
2102
2146
|
//# sourceMappingURL=meta_data.js.map
|
|
2103
|
-
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/
|
|
2104
|
-
var
|
|
2105
|
-
|
|
2147
|
+
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/core/dist/lib/data/aggr_settings.js
|
|
2148
|
+
var aggr_settings_assign = (undefined && undefined.__assign) || function () {
|
|
2149
|
+
aggr_settings_assign = Object.assign || function(t) {
|
|
2106
2150
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
2107
2151
|
s = arguments[i];
|
|
2108
2152
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -2110,7 +2154,7 @@ var aggr_calculator_assign = (undefined && undefined.__assign) || function () {
|
|
|
2110
2154
|
}
|
|
2111
2155
|
return t;
|
|
2112
2156
|
};
|
|
2113
|
-
return
|
|
2157
|
+
return aggr_settings_assign.apply(this, arguments);
|
|
2114
2158
|
};
|
|
2115
2159
|
/**
|
|
2116
2160
|
* Defines aggregations settings for the current context.
|
|
@@ -2123,16 +2167,32 @@ var AggregationSettings = /** @class */ (function () {
|
|
|
2123
2167
|
this.groups = [];
|
|
2124
2168
|
this.useGrandTotals = false;
|
|
2125
2169
|
this.useRecordCount = false;
|
|
2126
|
-
this.
|
|
2170
|
+
this._caseSensitiveGroups = false;
|
|
2127
2171
|
this.COUNT_FIELD_NAME = 'GRPRECCNT';
|
|
2128
2172
|
}
|
|
2173
|
+
Object.defineProperty(AggregationSettings.prototype, "caseSensitiveGroups", {
|
|
2174
|
+
get: function () {
|
|
2175
|
+
return this._caseSensitiveGroups;
|
|
2176
|
+
},
|
|
2177
|
+
set: function (value) {
|
|
2178
|
+
this._caseSensitiveGroups = value;
|
|
2179
|
+
this.updateCompareProc();
|
|
2180
|
+
},
|
|
2181
|
+
enumerable: true,
|
|
2182
|
+
configurable: true
|
|
2183
|
+
});
|
|
2184
|
+
AggregationSettings.prototype.updateCompareProc = function () {
|
|
2185
|
+
this.compareValues = this._caseSensitiveGroups
|
|
2186
|
+
? this.strictCompare
|
|
2187
|
+
: this.caseInsensitiveCompare;
|
|
2188
|
+
};
|
|
2129
2189
|
AggregationSettings.prototype.addGroup = function (settings) {
|
|
2130
2190
|
var cols = settings.columns || this.colStore.getColumnIds(settings.from, settings.to);
|
|
2131
2191
|
if (!this.colStore.validateColumns(cols))
|
|
2132
2192
|
throw "Invalid columns: " + cols;
|
|
2133
2193
|
if (this.hasColumnsInUse(cols))
|
|
2134
2194
|
throw "Can't add same columns to different groups/aggregates";
|
|
2135
|
-
this.groups.push(
|
|
2195
|
+
this.groups.push(aggr_settings_assign({ columns: cols }, settings));
|
|
2136
2196
|
return this;
|
|
2137
2197
|
};
|
|
2138
2198
|
AggregationSettings.prototype.addAggregateColumn = function (colIndexOrId, funcId) {
|
|
@@ -2157,7 +2217,7 @@ var AggregationSettings = /** @class */ (function () {
|
|
|
2157
2217
|
var cols = [];
|
|
2158
2218
|
var mappedGrops = this.groups.map(function (grp) {
|
|
2159
2219
|
cols = cols.concat(grp.columns);
|
|
2160
|
-
return
|
|
2220
|
+
return aggr_settings_assign(aggr_settings_assign({}, grp), { columns: Array.from(cols), aggregates: Array.from(_this.aggregates) });
|
|
2161
2221
|
});
|
|
2162
2222
|
return mappedGrops;
|
|
2163
2223
|
};
|
|
@@ -2249,11 +2309,36 @@ var AggregationSettings = /** @class */ (function () {
|
|
|
2249
2309
|
}
|
|
2250
2310
|
}
|
|
2251
2311
|
};
|
|
2312
|
+
AggregationSettings.prototype.buildGroupKey = function (group, row) {
|
|
2313
|
+
var caseInsensitive = !this.caseSensitiveGroups;
|
|
2314
|
+
var result = {};
|
|
2315
|
+
if (group) {
|
|
2316
|
+
for (var _i = 0, _a = group.columns; _i < _a.length; _i++) {
|
|
2317
|
+
var colId = _a[_i];
|
|
2318
|
+
var keyVal = row.getValue(colId);
|
|
2319
|
+
if (caseInsensitive && typeof (keyVal) === 'string') {
|
|
2320
|
+
keyVal = keyVal.toLowerCase();
|
|
2321
|
+
}
|
|
2322
|
+
result[colId] = keyVal;
|
|
2323
|
+
}
|
|
2324
|
+
}
|
|
2325
|
+
return result;
|
|
2326
|
+
};
|
|
2327
|
+
//returns true if value1 == value2
|
|
2328
|
+
AggregationSettings.prototype.strictCompare = function (value1, value2) {
|
|
2329
|
+
return value1 === value2;
|
|
2330
|
+
};
|
|
2331
|
+
//makes a case insensative comparision of two values and return true if there are equal
|
|
2332
|
+
AggregationSettings.prototype.caseInsensitiveCompare = function (value1, value2) {
|
|
2333
|
+
var val1 = (typeof value1 === 'string') ? value1.toLowerCase() : value1;
|
|
2334
|
+
var val2 = (typeof value2 === 'string') ? value2.toLowerCase() : value2;
|
|
2335
|
+
return val1 === val2;
|
|
2336
|
+
};
|
|
2252
2337
|
return AggregationSettings;
|
|
2253
2338
|
}());
|
|
2254
2339
|
|
|
2255
|
-
//# sourceMappingURL=
|
|
2256
|
-
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/
|
|
2340
|
+
//# sourceMappingURL=aggr_settings.js.map
|
|
2341
|
+
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/core/dist/lib/data/data_column.js
|
|
2257
2342
|
|
|
2258
2343
|
|
|
2259
2344
|
var ColumnAlignment;
|
|
@@ -2279,6 +2364,8 @@ var data_column_DataColumn = /** @class */ (function () {
|
|
|
2279
2364
|
this.displayFormat = desc.dfmt;
|
|
2280
2365
|
this.groupFooterColumnTemplate = desc.gfct;
|
|
2281
2366
|
this.style = desc.style || {};
|
|
2367
|
+
this.description = desc.description;
|
|
2368
|
+
this.calculatedWidth = 0;
|
|
2282
2369
|
}
|
|
2283
2370
|
return DataColumn;
|
|
2284
2371
|
}());
|
|
@@ -2318,9 +2405,10 @@ var data_column_DataColumnList = /** @class */ (function () {
|
|
|
2318
2405
|
.map(function (col, index) { return index; });
|
|
2319
2406
|
};
|
|
2320
2407
|
DataColumnList.prototype.put = function (index, col) {
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2408
|
+
if (index >= 0 && index < this.count) {
|
|
2409
|
+
this.items[index] = col;
|
|
2410
|
+
this.updateDateColumnIdx();
|
|
2411
|
+
}
|
|
2324
2412
|
};
|
|
2325
2413
|
DataColumnList.prototype.move = function (col, newIndex) {
|
|
2326
2414
|
var oldIndex = this.items.indexOf(col);
|
|
@@ -2330,8 +2418,12 @@ var data_column_DataColumnList = /** @class */ (function () {
|
|
|
2330
2418
|
}
|
|
2331
2419
|
};
|
|
2332
2420
|
DataColumnList.prototype.get = function (index) {
|
|
2333
|
-
|
|
2334
|
-
|
|
2421
|
+
if (index >= 0 && index < this.count) {
|
|
2422
|
+
return this.items[index];
|
|
2423
|
+
}
|
|
2424
|
+
else {
|
|
2425
|
+
return null;
|
|
2426
|
+
}
|
|
2335
2427
|
};
|
|
2336
2428
|
DataColumnList.prototype.getIndex = function (id) {
|
|
2337
2429
|
return this.mapper[id];
|
|
@@ -2360,7 +2452,7 @@ var data_column_DataColumnList = /** @class */ (function () {
|
|
|
2360
2452
|
}());
|
|
2361
2453
|
|
|
2362
2454
|
//# sourceMappingURL=data_column.js.map
|
|
2363
|
-
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/
|
|
2455
|
+
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/core/dist/lib/data/data_row.js
|
|
2364
2456
|
var DataRow = /** @class */ (function () {
|
|
2365
2457
|
function DataRow(columns, values) {
|
|
2366
2458
|
this.columns = columns;
|
|
@@ -2406,7 +2498,7 @@ var DataRow = /** @class */ (function () {
|
|
|
2406
2498
|
}());
|
|
2407
2499
|
|
|
2408
2500
|
//# sourceMappingURL=data_row.js.map
|
|
2409
|
-
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/
|
|
2501
|
+
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/core/dist/lib/data/easy_data_table.js
|
|
2410
2502
|
|
|
2411
2503
|
|
|
2412
2504
|
|
|
@@ -2415,16 +2507,23 @@ var easy_data_table_EasyDataTable = /** @class */ (function () {
|
|
|
2415
2507
|
function EasyDataTable(options) {
|
|
2416
2508
|
this._chunkSize = 1000;
|
|
2417
2509
|
this._elasticChunks = false;
|
|
2418
|
-
|
|
2419
|
-
this.chunkMap = {};
|
|
2510
|
+
this.cachedRows = [];
|
|
2420
2511
|
this.total = 0;
|
|
2421
2512
|
this.loader = null;
|
|
2422
2513
|
this.needTotal = true;
|
|
2514
|
+
this.isInMemory = false;
|
|
2423
2515
|
options = options || {};
|
|
2424
2516
|
this._chunkSize = options.chunkSize || this._chunkSize;
|
|
2425
2517
|
this._elasticChunks = options.elasticChunks || this._elasticChunks;
|
|
2426
2518
|
this.loader = options.loader;
|
|
2519
|
+
if (typeof options.inMemory !== 'undefined') {
|
|
2520
|
+
this.isInMemory = options.inMemory;
|
|
2521
|
+
}
|
|
2522
|
+
if (this.isInMemory) {
|
|
2523
|
+
this.needTotal = false;
|
|
2524
|
+
}
|
|
2427
2525
|
this._columns = new data_column_DataColumnList();
|
|
2526
|
+
this.onUpdate = options.onUpdate;
|
|
2428
2527
|
if (options.columns) {
|
|
2429
2528
|
for (var _i = 0, _a = options.columns; _i < _a.length; _i++) {
|
|
2430
2529
|
var colDesc = _a[_i];
|
|
@@ -2455,7 +2554,7 @@ var easy_data_table_EasyDataTable = /** @class */ (function () {
|
|
|
2455
2554
|
this._chunkSize = value;
|
|
2456
2555
|
this.total = 0;
|
|
2457
2556
|
this.needTotal = !this.elasticChunks;
|
|
2458
|
-
this.
|
|
2557
|
+
this.cachedRows = [];
|
|
2459
2558
|
},
|
|
2460
2559
|
enumerable: true,
|
|
2461
2560
|
configurable: true
|
|
@@ -2468,7 +2567,7 @@ var easy_data_table_EasyDataTable = /** @class */ (function () {
|
|
|
2468
2567
|
this._elasticChunks = value;
|
|
2469
2568
|
this.total = 0;
|
|
2470
2569
|
this.needTotal = !this.elasticChunks;
|
|
2471
|
-
this.
|
|
2570
|
+
this.cachedRows = [];
|
|
2472
2571
|
},
|
|
2473
2572
|
enumerable: true,
|
|
2474
2573
|
configurable: true
|
|
@@ -2496,22 +2595,12 @@ var easy_data_table_EasyDataTable = /** @class */ (function () {
|
|
|
2496
2595
|
endIndex = this.total;
|
|
2497
2596
|
}
|
|
2498
2597
|
}
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
var allChunksCached = true;
|
|
2502
|
-
for (var i = lbChunk; i <= ubChunk; i++) {
|
|
2503
|
-
if (!this.chunkMap[i]) {
|
|
2504
|
-
allChunksCached = false;
|
|
2505
|
-
break;
|
|
2506
|
-
}
|
|
2598
|
+
if (this.isInMemory && endIndex > this.cachedRows.length) {
|
|
2599
|
+
endIndex = this.cachedRows.length;
|
|
2507
2600
|
}
|
|
2601
|
+
var allChunksCached = endIndex <= this.cachedRows.length;
|
|
2508
2602
|
if (allChunksCached) {
|
|
2509
|
-
|
|
2510
|
-
for (var i = lbChunk; i <= ubChunk; i++) {
|
|
2511
|
-
resultArr = resultArr.concat(this.chunkMap[i].rows);
|
|
2512
|
-
}
|
|
2513
|
-
var firstChunkOffset = this.chunkMap[lbChunk].offset;
|
|
2514
|
-
return Promise.resolve(resultArr.slice(fromIndex - firstChunkOffset, endIndex - firstChunkOffset));
|
|
2603
|
+
return Promise.resolve(this.cachedRows.slice(fromIndex, endIndex));
|
|
2515
2604
|
}
|
|
2516
2605
|
//if loader is not defined
|
|
2517
2606
|
if (!this.loader) {
|
|
@@ -2522,53 +2611,34 @@ var easy_data_table_EasyDataTable = /** @class */ (function () {
|
|
|
2522
2611
|
if (this.needTotal) {
|
|
2523
2612
|
this.needTotal = false;
|
|
2524
2613
|
}
|
|
2525
|
-
var
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2614
|
+
var offset = this.cachedRows.length;
|
|
2615
|
+
var limit = endIndex - offset;
|
|
2616
|
+
if (limit < this._chunkSize) {
|
|
2617
|
+
limit = this._chunkSize;
|
|
2618
|
+
}
|
|
2619
|
+
var resultPromise = this.loader.loadChunk({
|
|
2620
|
+
offset: offset,
|
|
2530
2621
|
limit: limit,
|
|
2531
2622
|
needTotal: needTotal
|
|
2532
2623
|
})
|
|
2533
2624
|
.then(function (result) {
|
|
2534
|
-
var chunks = result.table.getCachedChunks();
|
|
2535
2625
|
if (needTotal) {
|
|
2536
2626
|
_this.total = result.total;
|
|
2537
|
-
if (endIndex > _this.total) {
|
|
2538
|
-
endIndex = _this.total;
|
|
2539
|
-
}
|
|
2540
2627
|
}
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
_this.chunkMap[index] = {
|
|
2545
|
-
offset: index * _this._chunkSize,
|
|
2546
|
-
rows: chunk.rows
|
|
2547
|
-
};
|
|
2548
|
-
index++;
|
|
2628
|
+
Array.prototype.push.apply(_this.cachedRows, result.table.getCachedRows());
|
|
2629
|
+
if (endIndex > _this.cachedRows.length) {
|
|
2630
|
+
endIndex = _this.cachedRows.length;
|
|
2549
2631
|
}
|
|
2550
2632
|
if (_this.elasticChunks) {
|
|
2551
2633
|
var count_1 = result.table.getCachedCount();
|
|
2552
|
-
if (count_1
|
|
2553
|
-
|
|
2554
|
-
if (count_1 === limit) {
|
|
2555
|
-
chunk.rows.splice(chunk.rows.length - 1, 1);
|
|
2556
|
-
if (chunk.rows.length == 0) {
|
|
2557
|
-
delete _this.chunkMap[index - 1];
|
|
2558
|
-
}
|
|
2559
|
-
}
|
|
2560
|
-
if (count_1 < limit) {
|
|
2561
|
-
_this.total = _this.getCachedCount();
|
|
2562
|
-
}
|
|
2634
|
+
if (count_1 < limit) {
|
|
2635
|
+
_this.total = _this.cachedRows.length;
|
|
2563
2636
|
}
|
|
2564
2637
|
}
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
resultArr = resultArr.concat(_this.chunkMap[i].rows);
|
|
2568
|
-
}
|
|
2569
|
-
var firstChunkOffset = _this.chunkMap[lbChunk].offset;
|
|
2570
|
-
return resultArr.slice(fromIndex - firstChunkOffset, endIndex - firstChunkOffset);
|
|
2638
|
+
_this.fireUpdated();
|
|
2639
|
+
return _this.cachedRows.slice(fromIndex, endIndex);
|
|
2571
2640
|
});
|
|
2641
|
+
return resultPromise;
|
|
2572
2642
|
};
|
|
2573
2643
|
EasyDataTable.prototype.getRow = function (index) {
|
|
2574
2644
|
return this.getRows({ offset: index, limit: 1 })
|
|
@@ -2580,14 +2650,13 @@ var easy_data_table_EasyDataTable = /** @class */ (function () {
|
|
|
2580
2650
|
EasyDataTable.prototype.setTotal = function (total) {
|
|
2581
2651
|
this.total = total;
|
|
2582
2652
|
this.needTotal = false;
|
|
2583
|
-
this.chunkMap = {};
|
|
2584
2653
|
};
|
|
2585
2654
|
EasyDataTable.prototype.getCachedCount = function () {
|
|
2586
|
-
return this.
|
|
2655
|
+
return this.cachedRows.length;
|
|
2587
2656
|
};
|
|
2588
2657
|
EasyDataTable.prototype.clear = function () {
|
|
2589
2658
|
this.columns.clear();
|
|
2590
|
-
this.
|
|
2659
|
+
this.cachedRows = [];
|
|
2591
2660
|
this.total = 0;
|
|
2592
2661
|
this.needTotal = !this._elasticChunks;
|
|
2593
2662
|
};
|
|
@@ -2620,60 +2689,33 @@ var easy_data_table_EasyDataTable = /** @class */ (function () {
|
|
|
2620
2689
|
}
|
|
2621
2690
|
return null;
|
|
2622
2691
|
};
|
|
2623
|
-
EasyDataTable.prototype.addRow = function (
|
|
2692
|
+
EasyDataTable.prototype.addRow = function (rowOrValues) {
|
|
2624
2693
|
var newRow;
|
|
2625
|
-
if (Array.isArray(
|
|
2694
|
+
if (Array.isArray(rowOrValues)) {
|
|
2695
|
+
var values = rowOrValues;
|
|
2626
2696
|
var dateIdx = this._columns.getDateColumnIndexes();
|
|
2627
2697
|
if (dateIdx.length > 0) {
|
|
2628
2698
|
for (var _i = 0, dateIdx_1 = dateIdx; _i < dateIdx_1.length; _i++) {
|
|
2629
2699
|
var idx = dateIdx_1[_i];
|
|
2630
|
-
if (
|
|
2631
|
-
|
|
2700
|
+
if (values[idx]) {
|
|
2701
|
+
values[idx] = this.mapDate(values[idx], this._columns.get(idx).type);
|
|
2632
2702
|
}
|
|
2633
2703
|
}
|
|
2634
2704
|
}
|
|
2635
|
-
newRow = new DataRow(this._columns,
|
|
2705
|
+
newRow = new DataRow(this._columns, values);
|
|
2636
2706
|
}
|
|
2637
2707
|
else {
|
|
2638
|
-
newRow = this.createRow(
|
|
2708
|
+
newRow = this.createRow(rowOrValues);
|
|
2639
2709
|
}
|
|
2640
|
-
|
|
2641
|
-
if (!lastChunk || lastChunk.rows.length >= this._chunkSize) {
|
|
2642
|
-
lastChunk = this.createChunk();
|
|
2643
|
-
}
|
|
2644
|
-
lastChunk.rows.push(newRow);
|
|
2710
|
+
this.cachedRows.push(newRow);
|
|
2645
2711
|
var cachedTotal = this.getCachedCount();
|
|
2646
2712
|
if (cachedTotal > this.total) {
|
|
2647
2713
|
this.total = cachedTotal;
|
|
2648
2714
|
}
|
|
2649
2715
|
return newRow;
|
|
2650
2716
|
};
|
|
2651
|
-
EasyDataTable.prototype.createChunk = function (index) {
|
|
2652
|
-
if (typeof index == 'undefined') {
|
|
2653
|
-
index = this.getLastChunkIndex() + 1;
|
|
2654
|
-
}
|
|
2655
|
-
var chunk = { offset: index * this._chunkSize, rows: [] };
|
|
2656
|
-
this.chunkMap[index] = chunk;
|
|
2657
|
-
return chunk;
|
|
2658
|
-
};
|
|
2659
|
-
EasyDataTable.prototype.getLastChunkIndex = function () {
|
|
2660
|
-
var keys = Object.keys(this.chunkMap);
|
|
2661
|
-
return keys.length > 0
|
|
2662
|
-
? parseInt(keys[keys.length - 1])
|
|
2663
|
-
: -1;
|
|
2664
|
-
};
|
|
2665
|
-
EasyDataTable.prototype.getLastChunk = function () {
|
|
2666
|
-
var index = this.getLastChunkIndex();
|
|
2667
|
-
return index > -1
|
|
2668
|
-
? this.chunkMap[index]
|
|
2669
|
-
: null;
|
|
2670
|
-
};
|
|
2671
2717
|
EasyDataTable.prototype.getCachedRows = function () {
|
|
2672
|
-
return this.
|
|
2673
|
-
.reduce(function (acc, v) { return acc.concat(v.rows); }, []);
|
|
2674
|
-
};
|
|
2675
|
-
EasyDataTable.prototype.getCachedChunks = function () {
|
|
2676
|
-
return Object.values(this.chunkMap);
|
|
2718
|
+
return this.cachedRows;
|
|
2677
2719
|
};
|
|
2678
2720
|
EasyDataTable.prototype.totalIsKnown = function () {
|
|
2679
2721
|
if (this.elasticChunks) {
|
|
@@ -2682,11 +2724,16 @@ var easy_data_table_EasyDataTable = /** @class */ (function () {
|
|
|
2682
2724
|
}
|
|
2683
2725
|
return !this.needTotal;
|
|
2684
2726
|
};
|
|
2727
|
+
EasyDataTable.prototype.fireUpdated = function () {
|
|
2728
|
+
if (this.onUpdate) {
|
|
2729
|
+
this.onUpdate(this);
|
|
2730
|
+
}
|
|
2731
|
+
};
|
|
2685
2732
|
return EasyDataTable;
|
|
2686
2733
|
}());
|
|
2687
2734
|
|
|
2688
2735
|
//# sourceMappingURL=easy_data_table.js.map
|
|
2689
|
-
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/
|
|
2736
|
+
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/core/dist/lib/utils/easy_guid.js
|
|
2690
2737
|
/**
|
|
2691
2738
|
* EasyData representation of GUID.
|
|
2692
2739
|
*/
|
|
@@ -2707,7 +2754,7 @@ var EasyGuid = /** @class */ (function () {
|
|
|
2707
2754
|
}());
|
|
2708
2755
|
|
|
2709
2756
|
//# sourceMappingURL=easy_guid.js.map
|
|
2710
|
-
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/
|
|
2757
|
+
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/core/dist/lib/event/event_emitter.js
|
|
2711
2758
|
|
|
2712
2759
|
/**
|
|
2713
2760
|
* The representation of event emitter.
|
|
@@ -2833,36 +2880,27 @@ var event_emitter_EventEmitter = /** @class */ (function () {
|
|
|
2833
2880
|
}());
|
|
2834
2881
|
|
|
2835
2882
|
//# sourceMappingURL=event_emitter.js.map
|
|
2836
|
-
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/
|
|
2883
|
+
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/core/dist/lib/utils/liquid.js
|
|
2884
|
+
var liquid;
|
|
2885
|
+
(function (liquid) {
|
|
2886
|
+
function renderLiquidTemplate(template, vars) {
|
|
2887
|
+
var result = template;
|
|
2888
|
+
if (vars) {
|
|
2889
|
+
for (var v in vars) {
|
|
2890
|
+
var liquidVarRegexp = new RegExp('\{\{' + v + '\}\}', 'g');
|
|
2891
|
+
result = result.replace(liquidVarRegexp, vars[v]);
|
|
2892
|
+
}
|
|
2893
|
+
}
|
|
2894
|
+
return result;
|
|
2895
|
+
}
|
|
2896
|
+
liquid.renderLiquidTemplate = renderLiquidTemplate;
|
|
2897
|
+
})(liquid || (liquid = {}));
|
|
2898
|
+
//# sourceMappingURL=liquid.js.map
|
|
2899
|
+
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/core/dist/lib/i18n/load_default_locale_settings.js
|
|
2837
2900
|
|
|
2838
2901
|
i18n_i18n.resetLocales();
|
|
2839
2902
|
//# sourceMappingURL=load_default_locale_settings.js.map
|
|
2840
|
-
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/
|
|
2841
|
-
/* concated harmony reexport DataType */__webpack_require__.d(__webpack_exports__, "d", function() { return DataType; });
|
|
2842
|
-
/* unused concated harmony import EntityAttrKind */
|
|
2843
|
-
/* unused concated harmony import EditorTag */
|
|
2844
|
-
/* unused concated harmony import HttpMethod */
|
|
2845
|
-
/* unused concated harmony import HttpRequest */
|
|
2846
|
-
/* unused concated harmony import HttpResponseError */
|
|
2847
|
-
/* unused concated harmony import HttpClient */
|
|
2848
|
-
/* unused concated harmony import MetaData */
|
|
2849
|
-
/* unused concated harmony import MetaEntity */
|
|
2850
|
-
/* unused concated harmony import MetaEntityAttr */
|
|
2851
|
-
/* unused concated harmony import ValueEditor */
|
|
2852
|
-
/* concated harmony reexport AggregationSettings */__webpack_require__.d(__webpack_exports__, "a", function() { return AggregationSettings; });
|
|
2853
|
-
/* concated harmony reexport ColumnAlignment */__webpack_require__.d(__webpack_exports__, "b", function() { return ColumnAlignment; });
|
|
2854
|
-
/* unused concated harmony import DataColumn */
|
|
2855
|
-
/* unused concated harmony import DataColumnList */
|
|
2856
|
-
/* concated harmony reexport DataRow */__webpack_require__.d(__webpack_exports__, "c", function() { return DataRow; });
|
|
2857
|
-
/* concated harmony reexport EasyDataTable */__webpack_require__.d(__webpack_exports__, "e", function() { return easy_data_table_EasyDataTable; });
|
|
2858
|
-
/* concated harmony reexport EventEmitter */__webpack_require__.d(__webpack_exports__, "f", function() { return event_emitter_EventEmitter; });
|
|
2859
|
-
/* concated harmony reexport i18n */__webpack_require__.d(__webpack_exports__, "g", function() { return i18n_i18n; });
|
|
2860
|
-
/* unused concated harmony import EasyGuid */
|
|
2861
|
-
/* unused concated harmony import repeatString */
|
|
2862
|
-
/* unused concated harmony import reverseString */
|
|
2863
|
-
/* unused concated harmony import strEndsWith */
|
|
2864
|
-
/* unused concated harmony import combinePath */
|
|
2865
|
-
/* concated harmony reexport utils */__webpack_require__.d(__webpack_exports__, "h", function() { return utils_utils; });
|
|
2903
|
+
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/core/dist/lib/public_api.js
|
|
2866
2904
|
//types
|
|
2867
2905
|
|
|
2868
2906
|
|
|
@@ -2875,7 +2913,6 @@ i18n_i18n.resetLocales();
|
|
|
2875
2913
|
|
|
2876
2914
|
|
|
2877
2915
|
|
|
2878
|
-
//data
|
|
2879
2916
|
|
|
2880
2917
|
|
|
2881
2918
|
|
|
@@ -2889,6 +2926,7 @@ i18n_i18n.resetLocales();
|
|
|
2889
2926
|
|
|
2890
2927
|
|
|
2891
2928
|
|
|
2929
|
+
|
|
2892
2930
|
if (typeof Object.values !== 'function') {
|
|
2893
2931
|
Object.values = function (obj) {
|
|
2894
2932
|
return Object.keys(obj).map(function (key) { return obj[key]; });
|
|
@@ -2913,13 +2951,37 @@ if (typeof Math.trunc !== 'function') {
|
|
|
2913
2951
|
|
|
2914
2952
|
"use strict";
|
|
2915
2953
|
|
|
2916
|
-
//
|
|
2954
|
+
// EXPORTS
|
|
2955
|
+
__webpack_require__.d(__webpack_exports__, "e", function() { return /* reexport */ easy_grid_EasyGrid; });
|
|
2956
|
+
__webpack_require__.d(__webpack_exports__, "a", function() { return /* reexport */ default_date_time_picker_DefaultDateTimePicker; });
|
|
2957
|
+
__webpack_require__.d(__webpack_exports__, "c", function() { return /* reexport */ DomElementBuilder; });
|
|
2958
|
+
__webpack_require__.d(__webpack_exports__, "i", function() { return /* reexport */ domel; });
|
|
2959
|
+
__webpack_require__.d(__webpack_exports__, "d", function() { return /* reexport */ DropEffect; });
|
|
2960
|
+
__webpack_require__.d(__webpack_exports__, "j", function() { return /* reexport */ eqDragManager; });
|
|
2961
|
+
__webpack_require__.d(__webpack_exports__, "g", function() { return /* reexport */ addElement; });
|
|
2962
|
+
__webpack_require__.d(__webpack_exports__, "f", function() { return /* reexport */ addCssClass; });
|
|
2963
|
+
__webpack_require__.d(__webpack_exports__, "o", function() { return /* reexport */ hideElement; });
|
|
2964
|
+
__webpack_require__.d(__webpack_exports__, "q", function() { return /* reexport */ showElement; });
|
|
2965
|
+
__webpack_require__.d(__webpack_exports__, "t", function() { return /* reexport */ toggleVisibility; });
|
|
2966
|
+
__webpack_require__.d(__webpack_exports__, "p", function() { return /* reexport */ isVisible; });
|
|
2967
|
+
__webpack_require__.d(__webpack_exports__, "h", function() { return /* reexport */ createBrowserEvent; });
|
|
2968
|
+
__webpack_require__.d(__webpack_exports__, "m", function() { return /* reexport */ getViewportSize; });
|
|
2969
|
+
__webpack_require__.d(__webpack_exports__, "l", function() { return /* reexport */ getScrollPos; });
|
|
2970
|
+
__webpack_require__.d(__webpack_exports__, "k", function() { return /* reexport */ getElementAbsolutePos; });
|
|
2971
|
+
__webpack_require__.d(__webpack_exports__, "n", function() { return /* reexport */ getWinSize; });
|
|
2972
|
+
__webpack_require__.d(__webpack_exports__, "r", function() { return /* reexport */ slideDown; });
|
|
2973
|
+
__webpack_require__.d(__webpack_exports__, "s", function() { return /* reexport */ slideUp; });
|
|
2974
|
+
__webpack_require__.d(__webpack_exports__, "b", function() { return /* reexport */ DefaultDialogService; });
|
|
2975
|
+
|
|
2976
|
+
// UNUSED EXPORTS: AutoResizeColumns, GridColumnAlign, GridColumn, GridColumnList, DFMT_REGEX, CellRendererType, GridCellRendererStore, Calendar, DateTimePicker, DefaultCalendar, DefaultTimePicker, TimePicker, browserUtils, DomTextAreaElementBuilder, DomInputElementBuilder, DomSelectElementBuilder, EqDragEvent, DragManager, mask, wrapInner, getDocSize, eqCssPrefix, eqCssMobile, DefaultDialog, DefaultProgressDialog, DefaultDialogSet, DialogFooterAlignment, dialogs
|
|
2977
|
+
|
|
2978
|
+
// EXTERNAL MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/core/dist/lib/public_api.js + 21 modules
|
|
2917
2979
|
var public_api = __webpack_require__(0);
|
|
2918
2980
|
|
|
2919
|
-
// EXTERNAL MODULE: c:/azuredevops-agents/korzhdev/_work/
|
|
2981
|
+
// EXTERNAL MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/ui/dist/lib/utils/browser_utils.js
|
|
2920
2982
|
var browser_utils = __webpack_require__(5);
|
|
2921
2983
|
|
|
2922
|
-
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/
|
|
2984
|
+
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/ui/dist/lib/utils/ui-utils.js
|
|
2923
2985
|
|
|
2924
2986
|
/**
|
|
2925
2987
|
* Wraps all the elements inside "parent" by "wrapper" element
|
|
@@ -3147,7 +3209,7 @@ function slideUp(target, duration, callback) {
|
|
|
3147
3209
|
var eqCssPrefix = 'eqjs';
|
|
3148
3210
|
var eqCssMobile = 'eqjs-mobile';
|
|
3149
3211
|
//# sourceMappingURL=ui-utils.js.map
|
|
3150
|
-
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/
|
|
3212
|
+
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/ui/dist/lib/utils/mask.js
|
|
3151
3213
|
function mask(input, maskPattern) {
|
|
3152
3214
|
var d = { 9: '[0-9]', a: '[a-z]' };
|
|
3153
3215
|
var mask = maskPattern.split('');
|
|
@@ -3244,7 +3306,7 @@ function mask(input, maskPattern) {
|
|
|
3244
3306
|
input.addEventListener('focus', inputHandler);
|
|
3245
3307
|
}
|
|
3246
3308
|
//# sourceMappingURL=mask.js.map
|
|
3247
|
-
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/
|
|
3309
|
+
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/ui/dist/lib/utils/dom_elem_builder.js
|
|
3248
3310
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
3249
3311
|
var extendStatics = function (d, b) {
|
|
3250
3312
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -3258,6 +3320,13 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
|
|
3258
3320
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
3259
3321
|
};
|
|
3260
3322
|
})();
|
|
3323
|
+
var __spreadArrays = (undefined && undefined.__spreadArrays) || function () {
|
|
3324
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
3325
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
3326
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
3327
|
+
r[k] = a[j];
|
|
3328
|
+
return r;
|
|
3329
|
+
};
|
|
3261
3330
|
|
|
3262
3331
|
var DomElementBuilder = /** @class */ (function () {
|
|
3263
3332
|
function DomElementBuilder(tag, parent) {
|
|
@@ -3328,7 +3397,7 @@ var DomElementBuilder = /** @class */ (function () {
|
|
|
3328
3397
|
classNames[_i - 1] = arguments[_i];
|
|
3329
3398
|
}
|
|
3330
3399
|
if (className) {
|
|
3331
|
-
var fullList = className.trim().split(" ")
|
|
3400
|
+
var fullList = __spreadArrays(className.trim().split(" "), classNames);
|
|
3332
3401
|
for (var i = 0; i < fullList.length; i++)
|
|
3333
3402
|
this.element.classList.add(fullList[i]);
|
|
3334
3403
|
}
|
|
@@ -3340,7 +3409,7 @@ var DomElementBuilder = /** @class */ (function () {
|
|
|
3340
3409
|
classNames[_i - 1] = arguments[_i];
|
|
3341
3410
|
}
|
|
3342
3411
|
if (className) {
|
|
3343
|
-
var fullList = className.trim().split(" ")
|
|
3412
|
+
var fullList = __spreadArrays(className.trim().split(" "), classNames);
|
|
3344
3413
|
for (var i = 0; i < fullList.length; i++)
|
|
3345
3414
|
this.element.classList.remove(fullList[i]);
|
|
3346
3415
|
}
|
|
@@ -3540,7 +3609,7 @@ function domel(tag, parent) {
|
|
|
3540
3609
|
return new DomElementBuilder(tag, parent);
|
|
3541
3610
|
}
|
|
3542
3611
|
//# sourceMappingURL=dom_elem_builder.js.map
|
|
3543
|
-
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/
|
|
3612
|
+
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/ui/dist/lib/utils/drag_manager.js
|
|
3544
3613
|
|
|
3545
3614
|
|
|
3546
3615
|
|
|
@@ -3746,7 +3815,7 @@ var drag_manager_DragManager = /** @class */ (function () {
|
|
|
3746
3815
|
if (descs) {
|
|
3747
3816
|
for (var _i = 0, descs_1 = descs; _i < descs_1.length; _i++) {
|
|
3748
3817
|
var desc = descs_1[_i];
|
|
3749
|
-
public_api["
|
|
3818
|
+
public_api["i" /* utils */].removeArrayItem(this.containerDescriptors, desc);
|
|
3750
3819
|
}
|
|
3751
3820
|
}
|
|
3752
3821
|
};
|
|
@@ -3907,7 +3976,15 @@ var drag_manager_DragManager = /** @class */ (function () {
|
|
|
3907
3976
|
//global variable
|
|
3908
3977
|
var eqDragManager = new drag_manager_DragManager();
|
|
3909
3978
|
//# sourceMappingURL=drag_manager.js.map
|
|
3910
|
-
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/
|
|
3979
|
+
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/ui/dist/lib/grid/easy_grid_options.js
|
|
3980
|
+
var AutoResizeColumns;
|
|
3981
|
+
(function (AutoResizeColumns) {
|
|
3982
|
+
AutoResizeColumns[AutoResizeColumns["Always"] = 0] = "Always";
|
|
3983
|
+
AutoResizeColumns[AutoResizeColumns["Once"] = 1] = "Once";
|
|
3984
|
+
AutoResizeColumns[AutoResizeColumns["Never"] = 2] = "Never";
|
|
3985
|
+
})(AutoResizeColumns || (AutoResizeColumns = {}));
|
|
3986
|
+
//# sourceMappingURL=easy_grid_options.js.map
|
|
3987
|
+
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/ui/dist/lib/grid/easy_grid_cell_renderer.js
|
|
3911
3988
|
|
|
3912
3989
|
|
|
3913
3990
|
|
|
@@ -4055,16 +4132,10 @@ var easy_grid_cell_renderer_GridCellRendererStore = /** @class */ (function () {
|
|
|
4055
4132
|
}());
|
|
4056
4133
|
|
|
4057
4134
|
//# sourceMappingURL=easy_grid_cell_renderer.js.map
|
|
4058
|
-
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/
|
|
4135
|
+
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/ui/dist/lib/grid/easy_grid_columns.js
|
|
4059
4136
|
|
|
4060
4137
|
|
|
4061
|
-
var DEFAULT_WIDTH = 150;
|
|
4062
|
-
var DEFAULT_WIDTH_NUMBER = 120;
|
|
4063
|
-
var DEFAULT_WIDTH_DATE = 200;
|
|
4064
|
-
var DEFAULT_WIDTH_BOOL = 80;
|
|
4065
4138
|
var DEFAULT_WIDTH_STRING = 250;
|
|
4066
|
-
var MIN_WIDTH_STRING = 100;
|
|
4067
|
-
var MAX_WIDTH_STRING = 500;
|
|
4068
4139
|
var ROW_NUM_WIDTH = 60;
|
|
4069
4140
|
var GridColumnAlign;
|
|
4070
4141
|
(function (GridColumnAlign) {
|
|
@@ -4089,36 +4160,25 @@ var easy_grid_columns_GridColumn = /** @class */ (function () {
|
|
|
4089
4160
|
function GridColumn(column, grid, isRowNum) {
|
|
4090
4161
|
if (isRowNum === void 0) { isRowNum = false; }
|
|
4091
4162
|
this._label = null;
|
|
4163
|
+
this._description = null;
|
|
4092
4164
|
//public left: number;
|
|
4093
4165
|
this.align = GridColumnAlign.NONE;
|
|
4094
4166
|
this.isVisible = true;
|
|
4095
4167
|
this.isRowNum = false;
|
|
4096
4168
|
this.dataColumn = column;
|
|
4097
4169
|
this.grid = grid;
|
|
4170
|
+
var widthOptions = grid.options.columnWidths || {};
|
|
4098
4171
|
if (column) {
|
|
4099
4172
|
if (column.style.alignment) {
|
|
4100
4173
|
this.align = MapAlignment(column.style.alignment);
|
|
4101
4174
|
}
|
|
4102
|
-
|
|
4103
|
-
var cellType = this.grid.cellRendererStore.getCellType(coltype);
|
|
4104
|
-
switch (cellType) {
|
|
4105
|
-
case CellRendererType.NUMBER:
|
|
4106
|
-
this.width = DEFAULT_WIDTH_NUMBER;
|
|
4107
|
-
break;
|
|
4108
|
-
case CellRendererType.DATETIME:
|
|
4109
|
-
this.width = DEFAULT_WIDTH_DATE;
|
|
4110
|
-
break;
|
|
4111
|
-
case CellRendererType.BOOL:
|
|
4112
|
-
this.width = DEFAULT_WIDTH_BOOL;
|
|
4113
|
-
break;
|
|
4114
|
-
default:
|
|
4115
|
-
this.width = DEFAULT_WIDTH_STRING;
|
|
4116
|
-
}
|
|
4175
|
+
this.width = (widthOptions && widthOptions[this.type]) ? widthOptions[this.type].default : DEFAULT_WIDTH_STRING;
|
|
4117
4176
|
this.cellRenderer = this.grid.cellRendererStore.getDefaultRenderer(column.type);
|
|
4177
|
+
this._description = column.description;
|
|
4118
4178
|
}
|
|
4119
4179
|
else if (isRowNum) {
|
|
4120
4180
|
this.isRowNum = true;
|
|
4121
|
-
this.width = ROW_NUM_WIDTH;
|
|
4181
|
+
this.width = (widthOptions && widthOptions.rowNumColumn) ? widthOptions.rowNumColumn.default : ROW_NUM_WIDTH;
|
|
4122
4182
|
this._label = '';
|
|
4123
4183
|
this.cellRenderer = this.grid.cellRendererStore.getDefaultRendererByType(CellRendererType.NUMBER);
|
|
4124
4184
|
}
|
|
@@ -4137,6 +4197,14 @@ var easy_grid_columns_GridColumn = /** @class */ (function () {
|
|
|
4137
4197
|
configurable: true
|
|
4138
4198
|
});
|
|
4139
4199
|
;
|
|
4200
|
+
Object.defineProperty(GridColumn.prototype, "description", {
|
|
4201
|
+
/** Get column description. */
|
|
4202
|
+
get: function () {
|
|
4203
|
+
return this._description;
|
|
4204
|
+
},
|
|
4205
|
+
enumerable: true,
|
|
4206
|
+
configurable: true
|
|
4207
|
+
});
|
|
4140
4208
|
Object.defineProperty(GridColumn.prototype, "type", {
|
|
4141
4209
|
get: function () {
|
|
4142
4210
|
return this.dataColumn ? this.dataColumn.type : null;
|
|
@@ -4156,9 +4224,10 @@ var easy_grid_columns_GridColumnList = /** @class */ (function () {
|
|
|
4156
4224
|
GridColumnList.prototype.sync = function (columnList, hasRowNumCol) {
|
|
4157
4225
|
if (hasRowNumCol === void 0) { hasRowNumCol = true; }
|
|
4158
4226
|
this.clear();
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4227
|
+
var rowNumCol = new easy_grid_columns_GridColumn(null, this.grid, true);
|
|
4228
|
+
this.add(rowNumCol);
|
|
4229
|
+
if (!hasRowNumCol) {
|
|
4230
|
+
rowNumCol.isVisible = false;
|
|
4162
4231
|
}
|
|
4163
4232
|
if (columnList) {
|
|
4164
4233
|
for (var _i = 0, _a = columnList.getItems(); _i < _a.length; _i++) {
|
|
@@ -4191,7 +4260,7 @@ var easy_grid_columns_GridColumnList = /** @class */ (function () {
|
|
|
4191
4260
|
GridColumnList.prototype.move = function (col, newIndex) {
|
|
4192
4261
|
var oldIndex = this.items.indexOf(col);
|
|
4193
4262
|
if (oldIndex >= 0 && oldIndex != newIndex)
|
|
4194
|
-
public_api["
|
|
4263
|
+
public_api["i" /* utils */].moveArrayItem(this.items, oldIndex, newIndex);
|
|
4195
4264
|
};
|
|
4196
4265
|
GridColumnList.prototype.get = function (index) {
|
|
4197
4266
|
if (index >= 0 && index < this.items.length) {
|
|
@@ -4220,7 +4289,7 @@ var easy_grid_columns_GridColumnList = /** @class */ (function () {
|
|
|
4220
4289
|
}());
|
|
4221
4290
|
|
|
4222
4291
|
//# sourceMappingURL=easy_grid_columns.js.map
|
|
4223
|
-
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/
|
|
4292
|
+
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/ui/dist/lib/grid/easy_grid.js
|
|
4224
4293
|
var __assign = (undefined && undefined.__assign) || function () {
|
|
4225
4294
|
__assign = Object.assign || function(t) {
|
|
4226
4295
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -4232,6 +4301,14 @@ var __assign = (undefined && undefined.__assign) || function () {
|
|
|
4232
4301
|
};
|
|
4233
4302
|
return __assign.apply(this, arguments);
|
|
4234
4303
|
};
|
|
4304
|
+
var easy_grid_spreadArrays = (undefined && undefined.__spreadArrays) || function () {
|
|
4305
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
4306
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
4307
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
4308
|
+
r[k] = a[j];
|
|
4309
|
+
return r;
|
|
4310
|
+
};
|
|
4311
|
+
|
|
4235
4312
|
|
|
4236
4313
|
|
|
4237
4314
|
|
|
@@ -4264,14 +4341,42 @@ var easy_grid_EasyGrid = /** @class */ (function () {
|
|
|
4264
4341
|
pageSize: 30,
|
|
4265
4342
|
pageSizeItems: [20, 30, 50, 100, 200]
|
|
4266
4343
|
},
|
|
4267
|
-
|
|
4344
|
+
columnWidths: {
|
|
4345
|
+
autoResize: AutoResizeColumns.Once,
|
|
4346
|
+
stringColumns: {
|
|
4347
|
+
min: 100,
|
|
4348
|
+
max: 500,
|
|
4349
|
+
default: 250
|
|
4350
|
+
},
|
|
4351
|
+
numberColumns: {
|
|
4352
|
+
min: 60,
|
|
4353
|
+
default: 120
|
|
4354
|
+
},
|
|
4355
|
+
boolColumns: {
|
|
4356
|
+
min: 50,
|
|
4357
|
+
default: 80
|
|
4358
|
+
},
|
|
4359
|
+
dateColumns: {
|
|
4360
|
+
min: 80,
|
|
4361
|
+
default: 200
|
|
4362
|
+
},
|
|
4363
|
+
otherColumns: {
|
|
4364
|
+
min: 100,
|
|
4365
|
+
max: 500,
|
|
4366
|
+
default: 250
|
|
4367
|
+
},
|
|
4368
|
+
rowNumColumn: {
|
|
4369
|
+
min: 40,
|
|
4370
|
+
default: 60
|
|
4371
|
+
}
|
|
4372
|
+
},
|
|
4373
|
+
showPlusButton: false,
|
|
4268
4374
|
viewportRowsCount: null,
|
|
4269
4375
|
showActiveRow: true
|
|
4270
4376
|
};
|
|
4271
4377
|
this.rowsOnPagePromise = null;
|
|
4272
4378
|
this.containerInitialHeight = 0;
|
|
4273
4379
|
this.firstRender = true;
|
|
4274
|
-
this.compareValues = this.strictCompare;
|
|
4275
4380
|
this.prevRowTotals = null;
|
|
4276
4381
|
this.landingIndex = -1;
|
|
4277
4382
|
this.landingSlot = domel('div')
|
|
@@ -4281,9 +4386,10 @@ var easy_grid_EasyGrid = /** @class */ (function () {
|
|
|
4281
4386
|
.toDOM();
|
|
4282
4387
|
this._activeRowIndex = -1;
|
|
4283
4388
|
if (options && options.paging) {
|
|
4284
|
-
options.paging = public_api["
|
|
4389
|
+
options.paging = public_api["i" /* utils */].assign(this.defaultDataGridOptions.paging, options.paging);
|
|
4285
4390
|
}
|
|
4286
|
-
this.options =
|
|
4391
|
+
this.options = this.mergeOptions(options);
|
|
4392
|
+
this.processColumnWidthsOptions();
|
|
4287
4393
|
if (!this.options.slot)
|
|
4288
4394
|
throw Error('"slot" parameter is required to initialize EasyDataGrid');
|
|
4289
4395
|
if (!this.options.dataTable)
|
|
@@ -4295,6 +4401,42 @@ var easy_grid_EasyGrid = /** @class */ (function () {
|
|
|
4295
4401
|
this.setSlot(this.options.slot);
|
|
4296
4402
|
this.init(this.options);
|
|
4297
4403
|
}
|
|
4404
|
+
EasyGrid.prototype.mergeOptions = function (options) {
|
|
4405
|
+
var colWidthOptions = public_api["i" /* utils */].assignDeep({}, this.defaultDataGridOptions.columnWidths, options.columnWidths);
|
|
4406
|
+
var pagingOptions = public_api["i" /* utils */].assignDeep({}, this.defaultDataGridOptions.paging, options.paging);
|
|
4407
|
+
var result = public_api["i" /* utils */].assign({}, this.defaultDataGridOptions, options);
|
|
4408
|
+
result.columnWidths = colWidthOptions;
|
|
4409
|
+
result.paging = pagingOptions;
|
|
4410
|
+
return result;
|
|
4411
|
+
};
|
|
4412
|
+
EasyGrid.prototype.processColumnWidthsOptions = function () {
|
|
4413
|
+
var widthOptions = this.options.columnWidths;
|
|
4414
|
+
if (!widthOptions)
|
|
4415
|
+
return;
|
|
4416
|
+
//string columns
|
|
4417
|
+
public_api["i" /* utils */].getStringDataTypes().forEach(function (dataType) {
|
|
4418
|
+
widthOptions[dataType] = __assign(__assign({}, widthOptions.stringColumns), widthOptions[dataType]);
|
|
4419
|
+
});
|
|
4420
|
+
//numeric columns
|
|
4421
|
+
public_api["i" /* utils */].getNumericDataTypes().forEach(function (dataType) {
|
|
4422
|
+
widthOptions[dataType] = __assign(__assign({}, widthOptions.numberColumns), widthOptions[dataType]);
|
|
4423
|
+
});
|
|
4424
|
+
//bool columns
|
|
4425
|
+
widthOptions[public_api["d" /* DataType */].Bool] = __assign(__assign({}, widthOptions.boolColumns), widthOptions[public_api["d" /* DataType */].Bool]);
|
|
4426
|
+
//date columns
|
|
4427
|
+
public_api["i" /* utils */].getDateDataTypes().forEach(function (dataType) {
|
|
4428
|
+
widthOptions[dataType] = __assign(__assign({}, widthOptions.dateColumns), widthOptions[dataType]);
|
|
4429
|
+
});
|
|
4430
|
+
//other columns
|
|
4431
|
+
var knownTypes = easy_grid_spreadArrays(public_api["i" /* utils */].getStringDataTypes(), public_api["i" /* utils */].getNumericDataTypes(), public_api["i" /* utils */].getDateDataTypes(), [
|
|
4432
|
+
public_api["d" /* DataType */].Bool
|
|
4433
|
+
]);
|
|
4434
|
+
public_api["i" /* utils */].getAllDataTypes().forEach(function (dataType) {
|
|
4435
|
+
if (!(dataType in knownTypes)) {
|
|
4436
|
+
widthOptions[dataType] = __assign(__assign({}, widthOptions.otherColumns), widthOptions[dataType]);
|
|
4437
|
+
}
|
|
4438
|
+
});
|
|
4439
|
+
};
|
|
4298
4440
|
EasyGrid.prototype.setSlot = function (slot) {
|
|
4299
4441
|
if (typeof slot === 'string') {
|
|
4300
4442
|
if (slot.length) {
|
|
@@ -4327,8 +4469,8 @@ var easy_grid_EasyGrid = /** @class */ (function () {
|
|
|
4327
4469
|
if (options.onRowDbClick) {
|
|
4328
4470
|
this.addEventListener('rowDbClick', options.onRowDbClick);
|
|
4329
4471
|
}
|
|
4330
|
-
if (options.
|
|
4331
|
-
this.addEventListener('
|
|
4472
|
+
if (options.onPlusButtonClick) {
|
|
4473
|
+
this.addEventListener('plusButtonClick', options.onPlusButtonClick);
|
|
4332
4474
|
}
|
|
4333
4475
|
if (options.onColumnChanged) {
|
|
4334
4476
|
this.addEventListener('columnChanged', options.onColumnChanged);
|
|
@@ -4346,7 +4488,7 @@ var easy_grid_EasyGrid = /** @class */ (function () {
|
|
|
4346
4488
|
this.addEventListener('activeRowChanged', options.onActiveRowChanged);
|
|
4347
4489
|
}
|
|
4348
4490
|
this.addEventListener('pageChanged', function (ev) { return _this.activeRowIndex = -1; });
|
|
4349
|
-
public_api["
|
|
4491
|
+
public_api["i" /* utils */].assignDeep(this.paginationOptions, options.pagination);
|
|
4350
4492
|
this.pagination.pageSize = this.options.paging.pageSize
|
|
4351
4493
|
|| this.pagination.pageSize;
|
|
4352
4494
|
if (this.options.allowDragDrop) {
|
|
@@ -4414,7 +4556,7 @@ var easy_grid_EasyGrid = /** @class */ (function () {
|
|
|
4414
4556
|
};
|
|
4415
4557
|
EasyGrid.prototype.render = function () {
|
|
4416
4558
|
var _this = this;
|
|
4417
|
-
if (!this.hasData() && !this.options.
|
|
4559
|
+
if (!this.hasData() && !this.options.showPlusButton)
|
|
4418
4560
|
return;
|
|
4419
4561
|
this.containerInitialHeight = this.slot.clientHeight;
|
|
4420
4562
|
this.rootDiv = document.createElement('div');
|
|
@@ -4431,18 +4573,27 @@ var easy_grid_EasyGrid = /** @class */ (function () {
|
|
|
4431
4573
|
gridContainer.classList.add(this.cssPrefix + "-container");
|
|
4432
4574
|
gridContainer.appendChild(this.rootDiv);
|
|
4433
4575
|
this.slot.appendChild(gridContainer);
|
|
4576
|
+
var needAutoResize = this.options.columnWidths.autoResize !== AutoResizeColumns.Never;
|
|
4434
4577
|
if (this.rowsOnPagePromise) {
|
|
4435
4578
|
this.rowsOnPagePromise
|
|
4436
4579
|
.then(function () { return _this.updateHeight(); })
|
|
4437
4580
|
.then(function () {
|
|
4438
4581
|
_this.firstRender = false;
|
|
4439
4582
|
_this.rowsOnPagePromise = null;
|
|
4583
|
+
if (needAutoResize) {
|
|
4584
|
+
_this.resizeColumns();
|
|
4585
|
+
}
|
|
4440
4586
|
});
|
|
4441
4587
|
}
|
|
4442
4588
|
else {
|
|
4443
4589
|
setTimeout(function () {
|
|
4444
|
-
_this.updateHeight()
|
|
4445
|
-
|
|
4590
|
+
_this.updateHeight()
|
|
4591
|
+
.then(function () {
|
|
4592
|
+
_this.firstRender = false;
|
|
4593
|
+
if (needAutoResize) {
|
|
4594
|
+
_this.resizeColumns();
|
|
4595
|
+
}
|
|
4596
|
+
});
|
|
4446
4597
|
}, 100);
|
|
4447
4598
|
}
|
|
4448
4599
|
};
|
|
@@ -4453,14 +4604,14 @@ var easy_grid_EasyGrid = /** @class */ (function () {
|
|
|
4453
4604
|
var firstRow = _this.bodyCellContainerDiv.firstElementChild;
|
|
4454
4605
|
var rowHeight = firstRow ? firstRow.offsetHeight : DEFAULT_ROW_HEIGHT;
|
|
4455
4606
|
var rowCount = _this.options.viewportRowsCount; // || DEFAULT_ROW_COUNT;
|
|
4456
|
-
var
|
|
4457
|
-
domel(_this.
|
|
4458
|
-
.setStyle('height',
|
|
4607
|
+
var viewportHeight_1 = rowHeight * rowCount;
|
|
4608
|
+
domel(_this.bodyViewportDiv)
|
|
4609
|
+
.setStyle('height', viewportHeight_1 + "px");
|
|
4459
4610
|
setTimeout(function () {
|
|
4460
4611
|
var sbHeight = _this.bodyViewportDiv.offsetHeight - _this.bodyViewportDiv.clientHeight;
|
|
4461
|
-
|
|
4462
|
-
domel(_this.
|
|
4463
|
-
.setStyle('height',
|
|
4612
|
+
viewportHeight_1 = viewportHeight_1 + sbHeight;
|
|
4613
|
+
domel(_this.bodyViewportDiv)
|
|
4614
|
+
.setStyle('height', viewportHeight_1 + "px");
|
|
4464
4615
|
resolve();
|
|
4465
4616
|
}, 100);
|
|
4466
4617
|
return;
|
|
@@ -4479,6 +4630,12 @@ var easy_grid_EasyGrid = /** @class */ (function () {
|
|
|
4479
4630
|
}
|
|
4480
4631
|
});
|
|
4481
4632
|
};
|
|
4633
|
+
EasyGrid.prototype.getContainerWidth = function () {
|
|
4634
|
+
return this.columns.getItems()
|
|
4635
|
+
.filter(function (col) { return col.isVisible; })
|
|
4636
|
+
.map(function (col) { return col.width; })
|
|
4637
|
+
.reduce(function (sum, current) { return sum + current; });
|
|
4638
|
+
};
|
|
4482
4639
|
EasyGrid.prototype.renderHeader = function () {
|
|
4483
4640
|
var _this = this;
|
|
4484
4641
|
this.headerDiv = domel('div')
|
|
@@ -4501,10 +4658,10 @@ var easy_grid_EasyGrid = /** @class */ (function () {
|
|
|
4501
4658
|
_this.headerRowDiv.appendChild(hd);
|
|
4502
4659
|
if (column.isRowNum) {
|
|
4503
4660
|
domel(hd)
|
|
4504
|
-
.addChildElement(_this.
|
|
4661
|
+
.addChildElement(_this.renderHeaderButtons());
|
|
4505
4662
|
}
|
|
4506
4663
|
});
|
|
4507
|
-
var containerWidth = this.
|
|
4664
|
+
var containerWidth = this.getContainerWidth();
|
|
4508
4665
|
domel(this.headerCellContainerDiv)
|
|
4509
4666
|
.setStyle('width', containerWidth + "px");
|
|
4510
4667
|
};
|
|
@@ -4515,7 +4672,7 @@ var easy_grid_EasyGrid = /** @class */ (function () {
|
|
|
4515
4672
|
var _this = this;
|
|
4516
4673
|
var colBuilder = domel('div')
|
|
4517
4674
|
.addClass(this.cssPrefix + "-header-cell")
|
|
4518
|
-
.data('col-idx', "" +
|
|
4675
|
+
.data('col-idx', "" + index)
|
|
4519
4676
|
.setStyle('width', column.width + "px");
|
|
4520
4677
|
if (column.dataColumn) {
|
|
4521
4678
|
colBuilder
|
|
@@ -4529,6 +4686,11 @@ var easy_grid_EasyGrid = /** @class */ (function () {
|
|
|
4529
4686
|
.addClass(this.cssPrefix + "-header-cell-label")
|
|
4530
4687
|
.text(column.label);
|
|
4531
4688
|
}
|
|
4689
|
+
if (column.description) {
|
|
4690
|
+
domel('div', colDiv)
|
|
4691
|
+
.addClass('question-mark')
|
|
4692
|
+
.title(column.description);
|
|
4693
|
+
}
|
|
4532
4694
|
if (this.options.allowDragDrop) {
|
|
4533
4695
|
eqDragManager.registerDraggableItem({
|
|
4534
4696
|
element: colDiv,
|
|
@@ -4548,14 +4710,6 @@ var easy_grid_EasyGrid = /** @class */ (function () {
|
|
|
4548
4710
|
}
|
|
4549
4711
|
return colDiv;
|
|
4550
4712
|
};
|
|
4551
|
-
EasyGrid.prototype.strictCompare = function (value1, value2) {
|
|
4552
|
-
return value1 !== value2;
|
|
4553
|
-
};
|
|
4554
|
-
EasyGrid.prototype.caseInsensitiveCompare = function (value1, value2) {
|
|
4555
|
-
var val1 = (typeof value1 === 'string') ? value1.toLowerCase() : value1;
|
|
4556
|
-
var val2 = (typeof value2 === 'string') ? value2.toLowerCase() : value2;
|
|
4557
|
-
return val1 !== val2;
|
|
4558
|
-
};
|
|
4559
4713
|
EasyGrid.prototype.renderBody = function () {
|
|
4560
4714
|
var _this = this;
|
|
4561
4715
|
this.bodyDiv = domel('div')
|
|
@@ -4569,10 +4723,6 @@ var easy_grid_EasyGrid = /** @class */ (function () {
|
|
|
4569
4723
|
.addClass(this.cssPrefix + "-cell-container")
|
|
4570
4724
|
.toDOM();
|
|
4571
4725
|
var showAggrs = this.canShowAggregates();
|
|
4572
|
-
this.compareValues = this.caseInsensitiveCompare;
|
|
4573
|
-
if (showAggrs && this.options.aggregates.settings.caseSensitiveGroups) {
|
|
4574
|
-
this.compareValues = this.strictCompare;
|
|
4575
|
-
}
|
|
4576
4726
|
if (this.dataTable) {
|
|
4577
4727
|
this.showProgress();
|
|
4578
4728
|
this.rowsOnPagePromise = this.getRowsToRender()
|
|
@@ -4582,15 +4732,22 @@ var easy_grid_EasyGrid = /** @class */ (function () {
|
|
|
4582
4732
|
//prevent double rendering (bad solution, we have to figure out how to avoid this behavior properly)
|
|
4583
4733
|
_this.bodyCellContainerDiv.innerHTML = '';
|
|
4584
4734
|
_this.prevRowTotals = null;
|
|
4735
|
+
var rowsToRender = 0;
|
|
4585
4736
|
if (rows.length) {
|
|
4586
4737
|
var groups_1 = showAggrs
|
|
4587
4738
|
? _this.options.aggregates.settings.getGroups()
|
|
4588
4739
|
: [];
|
|
4740
|
+
rowsToRender = (rows.length < _this.pagination.pageSize)
|
|
4741
|
+
? rows.length
|
|
4742
|
+
: _this.pagination.pageSize;
|
|
4589
4743
|
rows.forEach(function (row, index) {
|
|
4590
4744
|
if (showAggrs)
|
|
4591
4745
|
_this.updateTotalsState(groups_1, row);
|
|
4592
|
-
|
|
4593
|
-
|
|
4746
|
+
//we don't actually render the last row
|
|
4747
|
+
if (index < rowsToRender) {
|
|
4748
|
+
var tr = _this.renderRow(row, index);
|
|
4749
|
+
_this.bodyCellContainerDiv.appendChild(tr);
|
|
4750
|
+
}
|
|
4594
4751
|
});
|
|
4595
4752
|
var showGrandTotalsOnEachPage = _this.options.aggregates && _this.options.aggregates.showGrandTotalsOnEachPage;
|
|
4596
4753
|
if (showAggrs && (_this.isLastPage() || showGrandTotalsOnEachPage)) {
|
|
@@ -4598,11 +4755,10 @@ var easy_grid_EasyGrid = /** @class */ (function () {
|
|
|
4598
4755
|
_this.updateTotalsState(groups_1, row, true);
|
|
4599
4756
|
}
|
|
4600
4757
|
}
|
|
4601
|
-
var containerWidth = _this.
|
|
4602
|
-
.map(function (column) { return column.width; }).reduce(function (sum, current) { return sum + current; });
|
|
4758
|
+
var containerWidth = _this.getContainerWidth();
|
|
4603
4759
|
domel(_this.bodyCellContainerDiv)
|
|
4604
4760
|
.setStyle('width', containerWidth + "px");
|
|
4605
|
-
return
|
|
4761
|
+
return rowsToRender;
|
|
4606
4762
|
})
|
|
4607
4763
|
.catch(function (error) { console.error(error); return 0; });
|
|
4608
4764
|
}
|
|
@@ -4610,7 +4766,7 @@ var easy_grid_EasyGrid = /** @class */ (function () {
|
|
|
4610
4766
|
domel(_this.headerViewportDiv)
|
|
4611
4767
|
.setStyle('margin-left', "-" + _this.bodyViewportDiv.scrollLeft + "px");
|
|
4612
4768
|
});
|
|
4613
|
-
this.bodyViewportDiv.addEventListener('keydown', this.
|
|
4769
|
+
this.bodyViewportDiv.addEventListener('keydown', this.onViewportKeydown.bind(this));
|
|
4614
4770
|
};
|
|
4615
4771
|
EasyGrid.prototype.isLastPage = function () {
|
|
4616
4772
|
if (this.dataTable.elasticChunks) {
|
|
@@ -4636,7 +4792,7 @@ var easy_grid_EasyGrid = /** @class */ (function () {
|
|
|
4636
4792
|
var group = groups[level - 1];
|
|
4637
4793
|
for (var _i = 0, _a = group.columns; _i < _a.length; _i++) {
|
|
4638
4794
|
var col = _a[_i];
|
|
4639
|
-
if (
|
|
4795
|
+
if (!aggrSettings.compareValues(this.prevRowTotals.getValue(col), newRow.getValue(col))) {
|
|
4640
4796
|
changeLevel = level;
|
|
4641
4797
|
break;
|
|
4642
4798
|
}
|
|
@@ -4697,8 +4853,8 @@ var easy_grid_EasyGrid = /** @class */ (function () {
|
|
|
4697
4853
|
});
|
|
4698
4854
|
var aggrContainer = this.options.aggregates.calculator.getAggrContainer();
|
|
4699
4855
|
var aggrCols = aggrSettings.getAggregates().map(function (c) { return c.colId; });
|
|
4700
|
-
var key =
|
|
4701
|
-
aggrContainer.
|
|
4856
|
+
var key = aggrSettings.buildGroupKey(group, row);
|
|
4857
|
+
aggrContainer.getAggregateData(level, key)
|
|
4702
4858
|
.then(function (values) {
|
|
4703
4859
|
for (var _i = 0, aggrCols_1 = aggrCols; _i < aggrCols_1.length; _i++) {
|
|
4704
4860
|
var aggrColId = aggrCols_1[_i];
|
|
@@ -4739,34 +4895,20 @@ var easy_grid_EasyGrid = /** @class */ (function () {
|
|
|
4739
4895
|
}
|
|
4740
4896
|
}
|
|
4741
4897
|
if (groupFooterTemplate) {
|
|
4742
|
-
var cellDiv_1 = _this.renderCell(column,
|
|
4898
|
+
var cellDiv_1 = _this.renderCell(column, index, val, rowElement);
|
|
4743
4899
|
var innerCell = cellDiv_1.firstChild;
|
|
4744
4900
|
val = innerCell.innerHTML;
|
|
4745
4901
|
val = _this.applyGroupColumnTemplate(groupFooterTemplate, val, values[aggrSettings.COUNT_FIELD_NAME]);
|
|
4746
4902
|
}
|
|
4747
4903
|
}
|
|
4748
|
-
var cellDiv = _this.renderCell(column,
|
|
4904
|
+
var cellDiv = _this.renderCell(column, index, val, rowElement);
|
|
4749
4905
|
rowElement.appendChild(cellDiv);
|
|
4750
4906
|
});
|
|
4751
4907
|
})
|
|
4752
4908
|
.catch(function (error) { return console.error(error); });
|
|
4753
4909
|
return rowElement;
|
|
4754
4910
|
};
|
|
4755
|
-
EasyGrid.prototype.
|
|
4756
|
-
var aggrSettings = this.options.aggregates.settings;
|
|
4757
|
-
var caseInsensitive = aggrSettings && !aggrSettings.caseSensitiveGroups;
|
|
4758
|
-
var result = {};
|
|
4759
|
-
for (var _i = 0, _a = group.columns; _i < _a.length; _i++) {
|
|
4760
|
-
var colId = _a[_i];
|
|
4761
|
-
var keyVal = row.getValue(colId);
|
|
4762
|
-
if (caseInsensitive) {
|
|
4763
|
-
keyVal = keyVal.toLowerCase();
|
|
4764
|
-
}
|
|
4765
|
-
result[colId] = keyVal;
|
|
4766
|
-
}
|
|
4767
|
-
return result;
|
|
4768
|
-
};
|
|
4769
|
-
EasyGrid.prototype.onVieportKeydown = function (ev) {
|
|
4911
|
+
EasyGrid.prototype.onViewportKeydown = function (ev) {
|
|
4770
4912
|
if (this.options.showActiveRow) {
|
|
4771
4913
|
var rowCount = this.bodyCellContainerDiv.querySelectorAll("." + this.cssPrefix + "-row").length;
|
|
4772
4914
|
var newValue = void 0;
|
|
@@ -4820,13 +4962,17 @@ var easy_grid_EasyGrid = /** @class */ (function () {
|
|
|
4820
4962
|
}
|
|
4821
4963
|
}
|
|
4822
4964
|
};
|
|
4965
|
+
/** Returns a promise with the list of the rows to render on one page.
|
|
4966
|
+
* The list contains pageSize+1 row to make it possible
|
|
4967
|
+
* to render the totals row (if it appears to be on the edge between pages)
|
|
4968
|
+
*/
|
|
4823
4969
|
EasyGrid.prototype.getRowsToRender = function () {
|
|
4824
4970
|
if (this.options.paging.enabled === false) {
|
|
4825
4971
|
return Promise.resolve(this.dataTable.getCachedRows());
|
|
4826
4972
|
}
|
|
4827
4973
|
return this.dataTable.getRows({
|
|
4828
|
-
|
|
4829
|
-
|
|
4974
|
+
offset: (this.pagination.page - 1) * this.pagination.pageSize,
|
|
4975
|
+
limit: this.pagination.pageSize + 1
|
|
4830
4976
|
})
|
|
4831
4977
|
.catch(function (error) {
|
|
4832
4978
|
console.error(error);
|
|
@@ -4851,23 +4997,26 @@ var easy_grid_EasyGrid = /** @class */ (function () {
|
|
|
4851
4997
|
var pageInfoDiv = domel('div')
|
|
4852
4998
|
.addClass(this.cssPrefix + "-page-info")
|
|
4853
4999
|
.toDOM();
|
|
4854
|
-
var
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
var
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
.
|
|
4870
|
-
|
|
5000
|
+
var rowCount = this.dataTable.getTotal();
|
|
5001
|
+
if (rowCount > 0) {
|
|
5002
|
+
var fistPageRecordNum = count
|
|
5003
|
+
? (this.pagination.page - 1) * this.pagination.pageSize + 1
|
|
5004
|
+
: 0;
|
|
5005
|
+
var lastPageRecordNum = count
|
|
5006
|
+
? fistPageRecordNum + count - 1
|
|
5007
|
+
: 0;
|
|
5008
|
+
var totalStr = this.dataTable.getTotal().toString();
|
|
5009
|
+
if (this.dataTable.elasticChunks) {
|
|
5010
|
+
var count_1 = this.dataTable.getCachedCount();
|
|
5011
|
+
var total = this.dataTable.getTotal();
|
|
5012
|
+
if (count_1 !== total)
|
|
5013
|
+
totalStr = '?';
|
|
5014
|
+
}
|
|
5015
|
+
pageInfoDiv.innerHTML = public_api["g" /* i18n */].getText('GridPageInfo')
|
|
5016
|
+
.replace('{FirstPageRecordNum}', "<span>" + fistPageRecordNum.toString() + "</span>")
|
|
5017
|
+
.replace('{LastPageRecordNum}', "<span>" + lastPageRecordNum.toString() + "</span>")
|
|
5018
|
+
.replace('{Total}', "<span>" + totalStr + "</span>");
|
|
5019
|
+
}
|
|
4871
5020
|
return pageInfoDiv;
|
|
4872
5021
|
};
|
|
4873
5022
|
EasyGrid.prototype.showProgress = function () {
|
|
@@ -4922,13 +5071,13 @@ var easy_grid_EasyGrid = /** @class */ (function () {
|
|
|
4922
5071
|
if (this.options.showActiveRow && index == this.activeRowIndex) {
|
|
4923
5072
|
rowBuilder.addClass(this.cssPrefix + "-row-active");
|
|
4924
5073
|
}
|
|
4925
|
-
this.columns.getItems().forEach(function (column) {
|
|
5074
|
+
this.columns.getItems().forEach(function (column, index) {
|
|
4926
5075
|
if (!column.isVisible) {
|
|
4927
5076
|
return;
|
|
4928
5077
|
}
|
|
4929
5078
|
var colindex = column.isRowNum ? -1 : _this.dataTable.columns.getIndex(column.dataColumn.id);
|
|
4930
5079
|
var val = column.isRowNum ? indexGlobal + 1 : row.getValue(colindex);
|
|
4931
|
-
rowElement.appendChild(_this.renderCell(column,
|
|
5080
|
+
rowElement.appendChild(_this.renderCell(column, index, val, rowElement));
|
|
4932
5081
|
});
|
|
4933
5082
|
return rowElement;
|
|
4934
5083
|
};
|
|
@@ -4962,7 +5111,8 @@ var easy_grid_EasyGrid = /** @class */ (function () {
|
|
|
4962
5111
|
var _this = this;
|
|
4963
5112
|
var paginateDiv = document.createElement('div');
|
|
4964
5113
|
paginateDiv.className = this.cssPrefix + "-pagination-wrapper";
|
|
4965
|
-
|
|
5114
|
+
var rowCount = this.dataTable.getTotal();
|
|
5115
|
+
if (this.options.paging && this.options.paging.enabled && rowCount > 0) {
|
|
4966
5116
|
var prefix_1 = this.paginationOptions.useBootstrap ? '' : this.cssPrefix + "-";
|
|
4967
5117
|
var buttonClickHandler_1 = function (ev) {
|
|
4968
5118
|
var element = ev.target;
|
|
@@ -5088,18 +5238,18 @@ var easy_grid_EasyGrid = /** @class */ (function () {
|
|
|
5088
5238
|
EasyGrid.prototype.removeEventListener = function (eventType, handlerId) {
|
|
5089
5239
|
this.eventEmitter.unsubscribe(eventType, handlerId);
|
|
5090
5240
|
};
|
|
5091
|
-
EasyGrid.prototype.
|
|
5241
|
+
EasyGrid.prototype.renderHeaderButtons = function () {
|
|
5092
5242
|
var _this = this;
|
|
5093
|
-
if (this.options.
|
|
5243
|
+
if (this.options.showPlusButton) {
|
|
5094
5244
|
return domel('div')
|
|
5095
|
-
.addClass(this.cssPrefix + "-
|
|
5096
|
-
.title(this.options.
|
|
5245
|
+
.addClass(this.cssPrefix + "-header-btn-plus")
|
|
5246
|
+
.title(this.options.plusButtonTitle || 'Add')
|
|
5097
5247
|
.addChild('a', function (builder) { return builder
|
|
5098
5248
|
.attr('href', 'javascript:void(0)')
|
|
5099
5249
|
.on('click', function (e) {
|
|
5100
5250
|
e.preventDefault();
|
|
5101
5251
|
_this.fireEvent({
|
|
5102
|
-
type: '
|
|
5252
|
+
type: 'plusButtonClick',
|
|
5103
5253
|
sourceEvent: e
|
|
5104
5254
|
});
|
|
5105
5255
|
}); })
|
|
@@ -5200,11 +5350,102 @@ var easy_grid_EasyGrid = /** @class */ (function () {
|
|
|
5200
5350
|
EasyGrid.prototype.focus = function () {
|
|
5201
5351
|
this.bodyViewportDiv.focus();
|
|
5202
5352
|
};
|
|
5353
|
+
EasyGrid.prototype.resizeColumns = function () {
|
|
5354
|
+
if (this.options.columnWidths.autoResize === AutoResizeColumns.Never)
|
|
5355
|
+
return;
|
|
5356
|
+
var containerWidth = this.bodyCellContainerDiv.style.width;
|
|
5357
|
+
this.bodyCellContainerDiv.style.visibility = 'hidden';
|
|
5358
|
+
this.bodyCellContainerDiv.style.width = '1px';
|
|
5359
|
+
//this.headerRowDiv.style.visibility = 'hidden';
|
|
5360
|
+
this.headerRowDiv.style.width = '1px';
|
|
5361
|
+
var sumWidth = 0;
|
|
5362
|
+
var columns = this.columns.getItems();
|
|
5363
|
+
var headerCells = this.headerCellContainerDiv.querySelectorAll("." + this.cssPrefix + "-header-cell");
|
|
5364
|
+
var headerIdx = 0;
|
|
5365
|
+
var _loop_1 = function (idx) {
|
|
5366
|
+
var column = columns[idx];
|
|
5367
|
+
if (!column.isVisible)
|
|
5368
|
+
return "continue";
|
|
5369
|
+
var calculatedWidth = this_1.options.columnWidths.autoResize !== AutoResizeColumns.Always && column.dataColumn
|
|
5370
|
+
? column.dataColumn.calculatedWidth
|
|
5371
|
+
: 0;
|
|
5372
|
+
var cellValues = this_1.bodyCellContainerDiv.querySelectorAll("." + this_1.cssPrefix + "-cell[data-col-idx=\"" + idx + "\"] > ." + this_1.cssPrefix + "-cell-value");
|
|
5373
|
+
var maxWidth = 0;
|
|
5374
|
+
if (calculatedWidth > 0) {
|
|
5375
|
+
sumWidth += calculatedWidth;
|
|
5376
|
+
column.width = calculatedWidth;
|
|
5377
|
+
cellValues.forEach(function (value) {
|
|
5378
|
+
value.parentElement.style.width = calculatedWidth + "px";
|
|
5379
|
+
});
|
|
5380
|
+
headerCells[headerIdx].style.width = calculatedWidth + "px";
|
|
5381
|
+
}
|
|
5382
|
+
else {
|
|
5383
|
+
if (cellValues.length == 0) {
|
|
5384
|
+
headerCells[headerIdx].style.width = null;
|
|
5385
|
+
headerCells[headerIdx].style.whiteSpace = 'nowrap';
|
|
5386
|
+
}
|
|
5387
|
+
maxWidth = headerCells[headerIdx].offsetWidth;
|
|
5388
|
+
if (cellValues.length > 0) {
|
|
5389
|
+
cellValues.forEach(function (value) {
|
|
5390
|
+
value.parentElement.style.width = null;
|
|
5391
|
+
var width = value.parentElement.offsetWidth;
|
|
5392
|
+
if (width > maxWidth) {
|
|
5393
|
+
maxWidth = width;
|
|
5394
|
+
}
|
|
5395
|
+
});
|
|
5396
|
+
maxWidth += 3;
|
|
5397
|
+
var maxOption = column.isRowNum
|
|
5398
|
+
? this_1.options.columnWidths.rowNumColumn.max || 500
|
|
5399
|
+
: this_1.options.columnWidths[column.dataColumn.type].max || 2000;
|
|
5400
|
+
var minOption = column.isRowNum
|
|
5401
|
+
? this_1.options.columnWidths.rowNumColumn.min || 0
|
|
5402
|
+
: this_1.options.columnWidths[column.dataColumn.type].min || 20;
|
|
5403
|
+
if (maxWidth > maxOption) {
|
|
5404
|
+
maxWidth = maxOption;
|
|
5405
|
+
}
|
|
5406
|
+
if (maxWidth < minOption) {
|
|
5407
|
+
maxWidth = minOption;
|
|
5408
|
+
}
|
|
5409
|
+
if (public_api["i" /* utils */].isNumericType(column.type)) {
|
|
5410
|
+
//increase the calculated width in 1.3 times for numeric columns
|
|
5411
|
+
maxWidth = Math.round(maxWidth * 1.3);
|
|
5412
|
+
}
|
|
5413
|
+
sumWidth += maxWidth;
|
|
5414
|
+
column.width = maxWidth;
|
|
5415
|
+
cellValues.forEach(function (value) {
|
|
5416
|
+
value.parentElement.style.width = maxWidth + "px";
|
|
5417
|
+
});
|
|
5418
|
+
headerCells[headerIdx].style.width = maxWidth + "px";
|
|
5419
|
+
if (column.dataColumn) {
|
|
5420
|
+
column.dataColumn.calculatedWidth = maxWidth;
|
|
5421
|
+
}
|
|
5422
|
+
}
|
|
5423
|
+
else {
|
|
5424
|
+
sumWidth += maxWidth;
|
|
5425
|
+
}
|
|
5426
|
+
}
|
|
5427
|
+
headerIdx++;
|
|
5428
|
+
};
|
|
5429
|
+
var this_1 = this;
|
|
5430
|
+
for (var idx = 0; idx < this.columns.count; idx++) {
|
|
5431
|
+
_loop_1(idx);
|
|
5432
|
+
}
|
|
5433
|
+
if (sumWidth > 0) {
|
|
5434
|
+
this.bodyCellContainerDiv.style.width = sumWidth + "px";
|
|
5435
|
+
this.headerCellContainerDiv.style.width = sumWidth + "px";
|
|
5436
|
+
}
|
|
5437
|
+
else {
|
|
5438
|
+
this.bodyCellContainerDiv.style.width = containerWidth;
|
|
5439
|
+
this.headerCellContainerDiv.style.width = containerWidth;
|
|
5440
|
+
}
|
|
5441
|
+
this.bodyCellContainerDiv.style.visibility = null;
|
|
5442
|
+
this.headerRowDiv.removeAttribute('style');
|
|
5443
|
+
};
|
|
5203
5444
|
return EasyGrid;
|
|
5204
5445
|
}());
|
|
5205
5446
|
|
|
5206
5447
|
//# sourceMappingURL=easy_grid.js.map
|
|
5207
|
-
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/
|
|
5448
|
+
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/ui/dist/lib/datetimepicker/calendar.js
|
|
5208
5449
|
var Calendar = /** @class */ (function () {
|
|
5209
5450
|
function Calendar(slot, options) {
|
|
5210
5451
|
this.slot = slot;
|
|
@@ -5235,7 +5476,7 @@ var Calendar = /** @class */ (function () {
|
|
|
5235
5476
|
}());
|
|
5236
5477
|
|
|
5237
5478
|
//# sourceMappingURL=calendar.js.map
|
|
5238
|
-
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/
|
|
5479
|
+
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/ui/dist/lib/datetimepicker/date_time_picker.js
|
|
5239
5480
|
|
|
5240
5481
|
var date_time_picker_DateTimePicker = /** @class */ (function () {
|
|
5241
5482
|
function DateTimePicker(options) {
|
|
@@ -5343,7 +5584,7 @@ var date_time_picker_DateTimePicker = /** @class */ (function () {
|
|
|
5343
5584
|
}());
|
|
5344
5585
|
|
|
5345
5586
|
//# sourceMappingURL=date_time_picker.js.map
|
|
5346
|
-
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/
|
|
5587
|
+
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/ui/dist/lib/datetimepicker/default_calendar.js
|
|
5347
5588
|
var default_calendar_extends = (undefined && undefined.__extends) || (function () {
|
|
5348
5589
|
var extendStatics = function (d, b) {
|
|
5349
5590
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -5423,7 +5664,7 @@ var default_calendar_DefaultCalendar = /** @class */ (function (_super) {
|
|
|
5423
5664
|
builder.removeClass('error');
|
|
5424
5665
|
try {
|
|
5425
5666
|
_this.isManualInputChanging = true;
|
|
5426
|
-
var newDate = public_api["
|
|
5667
|
+
var newDate = public_api["i" /* utils */].strToDateTime(_this.manualInputElem.value, format);
|
|
5427
5668
|
_this.currentDate = newDate;
|
|
5428
5669
|
_this.jump(_this.currentDate.getFullYear(), _this.currentDate.getMonth());
|
|
5429
5670
|
_this.dateChanged(false);
|
|
@@ -5457,7 +5698,7 @@ var default_calendar_DefaultCalendar = /** @class */ (function (_super) {
|
|
|
5457
5698
|
if (this.manualInputElem) {
|
|
5458
5699
|
if (!this.isManualInputChanging) {
|
|
5459
5700
|
var format = this.getInputDateFormat();
|
|
5460
|
-
this.manualInputElem.value = public_api["
|
|
5701
|
+
this.manualInputElem.value = public_api["i" /* utils */].dateTimeToStr(this.currentDate, format);
|
|
5461
5702
|
this.manualInputElem.focus();
|
|
5462
5703
|
}
|
|
5463
5704
|
}
|
|
@@ -5607,7 +5848,7 @@ var default_calendar_DefaultCalendar = /** @class */ (function (_super) {
|
|
|
5607
5848
|
}(Calendar));
|
|
5608
5849
|
|
|
5609
5850
|
//# sourceMappingURL=default_calendar.js.map
|
|
5610
|
-
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/
|
|
5851
|
+
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/ui/dist/lib/datetimepicker/time_picker.js
|
|
5611
5852
|
var TimePicker = /** @class */ (function () {
|
|
5612
5853
|
function TimePicker(slot, options) {
|
|
5613
5854
|
this.slot = slot;
|
|
@@ -5635,7 +5876,7 @@ var TimePicker = /** @class */ (function () {
|
|
|
5635
5876
|
}());
|
|
5636
5877
|
|
|
5637
5878
|
//# sourceMappingURL=time_picker.js.map
|
|
5638
|
-
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/
|
|
5879
|
+
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/ui/dist/lib/datetimepicker/default_time_picker.js
|
|
5639
5880
|
var default_time_picker_extends = (undefined && undefined.__extends) || (function () {
|
|
5640
5881
|
var extendStatics = function (d, b) {
|
|
5641
5882
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -5717,7 +5958,7 @@ var default_time_picker_DefaultTimePicker = /** @class */ (function (_super) {
|
|
|
5717
5958
|
}(TimePicker));
|
|
5718
5959
|
|
|
5719
5960
|
//# sourceMappingURL=default_time_picker.js.map
|
|
5720
|
-
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/
|
|
5961
|
+
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/ui/dist/lib/datetimepicker/default_date_time_picker.js
|
|
5721
5962
|
var default_date_time_picker_extends = (undefined && undefined.__extends) || (function () {
|
|
5722
5963
|
var extendStatics = function (d, b) {
|
|
5723
5964
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -5845,7 +6086,15 @@ var default_date_time_picker_DefaultDateTimePicker = /** @class */ (function (_s
|
|
|
5845
6086
|
}(date_time_picker_DateTimePicker));
|
|
5846
6087
|
|
|
5847
6088
|
//# sourceMappingURL=default_date_time_picker.js.map
|
|
5848
|
-
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/
|
|
6089
|
+
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/ui/dist/lib/dialogs/dialog_service.js
|
|
6090
|
+
var DialogFooterAlignment;
|
|
6091
|
+
(function (DialogFooterAlignment) {
|
|
6092
|
+
DialogFooterAlignment[DialogFooterAlignment["Left"] = 1] = "Left";
|
|
6093
|
+
DialogFooterAlignment[DialogFooterAlignment["Center"] = 2] = "Center";
|
|
6094
|
+
DialogFooterAlignment[DialogFooterAlignment["Right"] = 3] = "Right";
|
|
6095
|
+
})(DialogFooterAlignment || (DialogFooterAlignment = {}));
|
|
6096
|
+
//# sourceMappingURL=dialog_service.js.map
|
|
6097
|
+
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/ui/dist/lib/dialogs/default_dialog_service.js
|
|
5849
6098
|
var default_dialog_service_extends = (undefined && undefined.__extends) || (function () {
|
|
5850
6099
|
var extendStatics = function (d, b) {
|
|
5851
6100
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -5861,6 +6110,7 @@ var default_dialog_service_extends = (undefined && undefined.__extends) || (func
|
|
|
5861
6110
|
})();
|
|
5862
6111
|
|
|
5863
6112
|
|
|
6113
|
+
|
|
5864
6114
|
var default_dialog_service_cssPrefix = "kdlg";
|
|
5865
6115
|
var DefaultDialogService = /** @class */ (function () {
|
|
5866
6116
|
function DefaultDialogService() {
|
|
@@ -5944,17 +6194,20 @@ var DefaultDialogService = /** @class */ (function () {
|
|
|
5944
6194
|
_this.open(options);
|
|
5945
6195
|
});
|
|
5946
6196
|
};
|
|
5947
|
-
DefaultDialogService.prototype.open = function (options) {
|
|
6197
|
+
DefaultDialogService.prototype.open = function (options, data) {
|
|
5948
6198
|
var _this = this;
|
|
6199
|
+
var dialog = new default_dialog_service_DefaultDialog(options, data);
|
|
5949
6200
|
var onDestroy = options.onDestroy;
|
|
5950
|
-
options.onDestroy = function () {
|
|
6201
|
+
options.onDestroy = function (dlg) {
|
|
5951
6202
|
_this.untrack(dlg);
|
|
5952
|
-
onDestroy && onDestroy();
|
|
6203
|
+
onDestroy && onDestroy(dlg);
|
|
5953
6204
|
};
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
|
|
6205
|
+
dialog.open();
|
|
6206
|
+
this.track(dialog);
|
|
6207
|
+
return dialog;
|
|
6208
|
+
};
|
|
6209
|
+
DefaultDialogService.prototype.createSet = function (options) {
|
|
6210
|
+
return new DefaultDialogSet(options, this);
|
|
5958
6211
|
};
|
|
5959
6212
|
DefaultDialogService.prototype.untrack = function (dlg) {
|
|
5960
6213
|
var index = DefaultDialogService.openDialogs.indexOf(dlg);
|
|
@@ -5967,15 +6220,15 @@ var DefaultDialogService = /** @class */ (function () {
|
|
|
5967
6220
|
};
|
|
5968
6221
|
DefaultDialogService.prototype.openProgress = function (options) {
|
|
5969
6222
|
var _this = this;
|
|
6223
|
+
var dialog = new default_dialog_service_DefaultProgressDialog(options);
|
|
5970
6224
|
var onDestroy = options.onDestroy;
|
|
5971
|
-
options.onDestroy = function () {
|
|
6225
|
+
options.onDestroy = function (dlg) {
|
|
5972
6226
|
_this.untrack(dlg);
|
|
5973
|
-
onDestroy && onDestroy();
|
|
6227
|
+
onDestroy && onDestroy(dlg);
|
|
5974
6228
|
};
|
|
5975
|
-
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
return dlg;
|
|
6229
|
+
dialog.open();
|
|
6230
|
+
this.track(dialog);
|
|
6231
|
+
return dialog;
|
|
5979
6232
|
};
|
|
5980
6233
|
DefaultDialogService.prototype.getAllDialogs = function () {
|
|
5981
6234
|
return Array.from(DefaultDialogService.openDialogs);
|
|
@@ -5991,11 +6244,11 @@ var DefaultDialogService = /** @class */ (function () {
|
|
|
5991
6244
|
}());
|
|
5992
6245
|
|
|
5993
6246
|
var default_dialog_service_DefaultDialog = /** @class */ (function () {
|
|
5994
|
-
function DefaultDialog(options) {
|
|
6247
|
+
function DefaultDialog(options, data) {
|
|
5995
6248
|
var _this = this;
|
|
5996
6249
|
this.options = options;
|
|
5997
|
-
this.submitHandler = function () {
|
|
5998
|
-
if (_this.options.onSubmit && _this.options.onSubmit() === false) {
|
|
6250
|
+
this.submitHandler = function (token) {
|
|
6251
|
+
if (_this.options.onSubmit && _this.options.onSubmit(_this, token) === false) {
|
|
5999
6252
|
return false;
|
|
6000
6253
|
}
|
|
6001
6254
|
_this.destroy();
|
|
@@ -6003,7 +6256,7 @@ var default_dialog_service_DefaultDialog = /** @class */ (function () {
|
|
|
6003
6256
|
};
|
|
6004
6257
|
this.cancelHandler = function () {
|
|
6005
6258
|
if (_this.options.onCancel) {
|
|
6006
|
-
_this.options.onCancel();
|
|
6259
|
+
_this.options.onCancel(_this);
|
|
6007
6260
|
}
|
|
6008
6261
|
_this.destroy();
|
|
6009
6262
|
};
|
|
@@ -6018,11 +6271,12 @@ var default_dialog_service_DefaultDialog = /** @class */ (function () {
|
|
|
6018
6271
|
}
|
|
6019
6272
|
return true;
|
|
6020
6273
|
};
|
|
6021
|
-
|
|
6274
|
+
this.dialogId = public_api["i" /* utils */].generateId('dlg');
|
|
6275
|
+
this.data = data;
|
|
6022
6276
|
this.slot =
|
|
6023
6277
|
domel('div', document.body)
|
|
6024
6278
|
.attr('tab-index', '-1')
|
|
6025
|
-
.data('dialog-id',
|
|
6279
|
+
.data('dialog-id', this.dialogId)
|
|
6026
6280
|
.addClass(default_dialog_service_cssPrefix + "-modal", 'is-active')
|
|
6027
6281
|
.focus()
|
|
6028
6282
|
.addChild('div', function (b) { return b
|
|
@@ -6043,36 +6297,68 @@ var default_dialog_service_DefaultDialog = /** @class */ (function () {
|
|
|
6043
6297
|
_this.cancelHandler();
|
|
6044
6298
|
})
|
|
6045
6299
|
.focus(); });
|
|
6300
|
+
})
|
|
6301
|
+
.addChild('div', function (b) {
|
|
6302
|
+
b.addClass(default_dialog_service_cssPrefix + "-alert-container");
|
|
6303
|
+
_this.alertElement = b.toDOM();
|
|
6046
6304
|
})
|
|
6047
6305
|
.addChild('section', function (b) {
|
|
6048
6306
|
_this.bodyElement = b
|
|
6049
6307
|
.addClass(default_dialog_service_cssPrefix + "-body")
|
|
6050
6308
|
.toDOM();
|
|
6051
6309
|
if (typeof options.body === 'string') {
|
|
6052
|
-
|
|
6310
|
+
var html = public_api["h" /* liquid */].renderLiquidTemplate(options.body, data);
|
|
6311
|
+
b.addHtml(html);
|
|
6053
6312
|
}
|
|
6054
6313
|
else {
|
|
6055
6314
|
b.addChildElement(options.body);
|
|
6056
6315
|
}
|
|
6057
6316
|
})
|
|
6058
|
-
.addChild('div', function (b) { return _this.alertElement = b
|
|
6059
|
-
.addClass(default_dialog_service_cssPrefix + "-alert-container")
|
|
6060
|
-
.toDOM(); })
|
|
6061
6317
|
.addChild('footer', function (b) {
|
|
6318
|
+
var alignClass = null;
|
|
6319
|
+
if (options.footerAlignment && options.footerAlignment == DialogFooterAlignment.Center) {
|
|
6320
|
+
alignClass = 'align-center';
|
|
6321
|
+
}
|
|
6322
|
+
else {
|
|
6323
|
+
alignClass = 'align-right';
|
|
6324
|
+
}
|
|
6062
6325
|
_this.footerElement = b
|
|
6063
|
-
.addClass(default_dialog_service_cssPrefix + "-footer"
|
|
6326
|
+
.addClass(default_dialog_service_cssPrefix + "-footer")
|
|
6064
6327
|
.toDOM();
|
|
6328
|
+
b.addClass(alignClass);
|
|
6065
6329
|
if (options.submitable === false)
|
|
6066
6330
|
return;
|
|
6067
|
-
b.addChild('button', function (
|
|
6068
|
-
.
|
|
6069
|
-
|
|
6070
|
-
|
|
6071
|
-
|
|
6072
|
-
|
|
6073
|
-
|
|
6331
|
+
b.addChild('button', function (bb) {
|
|
6332
|
+
bb.id(_this.dialogId + '-btn-submit')
|
|
6333
|
+
.addClass('kfrm-button', 'is-info')
|
|
6334
|
+
.addText(options.submitButtonText || public_api["g" /* i18n */].getText('ButtonOK'));
|
|
6335
|
+
if (options.recaptchaSiteKey) {
|
|
6336
|
+
bb.data('sitekey', options.recaptchaSiteKey);
|
|
6337
|
+
bb.addClass('g-recaptcha');
|
|
6338
|
+
bb.on('click', function (e) {
|
|
6339
|
+
if (grecaptcha) {
|
|
6340
|
+
grecaptcha.ready(function () {
|
|
6341
|
+
grecaptcha.execute(options.recaptchaSiteKey, { action: 'submit' })
|
|
6342
|
+
.then(function (token) {
|
|
6343
|
+
_this.submitHandler(token);
|
|
6344
|
+
});
|
|
6345
|
+
});
|
|
6346
|
+
}
|
|
6347
|
+
else {
|
|
6348
|
+
_this.submitHandler();
|
|
6349
|
+
}
|
|
6350
|
+
});
|
|
6351
|
+
}
|
|
6352
|
+
else {
|
|
6353
|
+
bb.on('click', function (e) {
|
|
6354
|
+
_this.submitHandler();
|
|
6355
|
+
});
|
|
6356
|
+
}
|
|
6357
|
+
bb.focus();
|
|
6358
|
+
});
|
|
6074
6359
|
if (options.cancelable !== false)
|
|
6075
|
-
b.addChild('button', function (
|
|
6360
|
+
b.addChild('button', function (bb) { return bb
|
|
6361
|
+
.id(_this.dialogId + '-btn-cancel')
|
|
6076
6362
|
.addClass('kfrm-button')
|
|
6077
6363
|
.addText(options.cancelButtonText || public_api["g" /* i18n */].getText('ButtonCancel'))
|
|
6078
6364
|
.on('click', function (e) {
|
|
@@ -6082,12 +6368,22 @@ var default_dialog_service_DefaultDialog = /** @class */ (function () {
|
|
|
6082
6368
|
.toDOM(); })
|
|
6083
6369
|
.toDOM();
|
|
6084
6370
|
}
|
|
6371
|
+
DefaultDialog.prototype.getData = function () {
|
|
6372
|
+
return this.data;
|
|
6373
|
+
};
|
|
6085
6374
|
DefaultDialog.prototype.getRootElement = function () {
|
|
6086
6375
|
return this.slot;
|
|
6087
6376
|
};
|
|
6377
|
+
DefaultDialog.prototype.getSubmitButtonElement = function () {
|
|
6378
|
+
return document.getElementById(this.dialogId + '-btn-submit');
|
|
6379
|
+
};
|
|
6380
|
+
DefaultDialog.prototype.getCancelButtonElement = function () {
|
|
6381
|
+
return document.getElementById(this.dialogId + '-btn-cancel');
|
|
6382
|
+
};
|
|
6088
6383
|
DefaultDialog.prototype.open = function () {
|
|
6384
|
+
var _this = this;
|
|
6089
6385
|
if (this.options.beforeOpen) {
|
|
6090
|
-
this.options.beforeOpen();
|
|
6386
|
+
this.options.beforeOpen(this);
|
|
6091
6387
|
}
|
|
6092
6388
|
domel(this.slot).show();
|
|
6093
6389
|
if (this.options.arrangeParents) {
|
|
@@ -6108,6 +6404,19 @@ var default_dialog_service_DefaultDialog = /** @class */ (function () {
|
|
|
6108
6404
|
if (this.options.submitOnEnter) {
|
|
6109
6405
|
window.addEventListener('keydown', this.keydownHandler, false);
|
|
6110
6406
|
}
|
|
6407
|
+
//clear alert on change in any input element
|
|
6408
|
+
this.slot.querySelectorAll('input')
|
|
6409
|
+
.forEach(function (element) {
|
|
6410
|
+
return element.addEventListener('input', function () {
|
|
6411
|
+
_this.clearAlert();
|
|
6412
|
+
if (_this.options.onInput) {
|
|
6413
|
+
_this.options.onInput(_this);
|
|
6414
|
+
}
|
|
6415
|
+
});
|
|
6416
|
+
});
|
|
6417
|
+
if (this.options.onShow) {
|
|
6418
|
+
this.options.onShow(this);
|
|
6419
|
+
}
|
|
6111
6420
|
};
|
|
6112
6421
|
DefaultDialog.prototype.submit = function () {
|
|
6113
6422
|
this.submitHandler();
|
|
@@ -6147,6 +6456,9 @@ var default_dialog_service_DefaultDialog = /** @class */ (function () {
|
|
|
6147
6456
|
this.alertElement.innerHTML = '';
|
|
6148
6457
|
};
|
|
6149
6458
|
DefaultDialog.prototype.destroy = function () {
|
|
6459
|
+
var elem = document.querySelectorAll("[data-dialog-id=\"" + this.dialogId + "\"]");
|
|
6460
|
+
if (elem.length <= 0)
|
|
6461
|
+
return;
|
|
6150
6462
|
if (this.options.arrangeParents) {
|
|
6151
6463
|
this.arrangeParents(false);
|
|
6152
6464
|
}
|
|
@@ -6155,7 +6467,7 @@ var default_dialog_service_DefaultDialog = /** @class */ (function () {
|
|
|
6155
6467
|
window.removeEventListener('keydown', this.keydownHandler, false);
|
|
6156
6468
|
}
|
|
6157
6469
|
if (this.options.onDestroy) {
|
|
6158
|
-
this.options.onDestroy();
|
|
6470
|
+
this.options.onDestroy(this);
|
|
6159
6471
|
}
|
|
6160
6472
|
};
|
|
6161
6473
|
DefaultDialog.prototype.isActiveDialog = function () {
|
|
@@ -6183,7 +6495,7 @@ var default_dialog_service_DefaultDialog = /** @class */ (function () {
|
|
|
6183
6495
|
|
|
6184
6496
|
var default_dialog_service_DefaultProgressDialog = /** @class */ (function (_super) {
|
|
6185
6497
|
default_dialog_service_extends(DefaultProgressDialog, _super);
|
|
6186
|
-
function DefaultProgressDialog(options) {
|
|
6498
|
+
function DefaultProgressDialog(options, data) {
|
|
6187
6499
|
var _this = this;
|
|
6188
6500
|
var contentElement;
|
|
6189
6501
|
var progressElement;
|
|
@@ -6218,7 +6530,7 @@ var default_dialog_service_DefaultProgressDialog = /** @class */ (function (_sup
|
|
|
6218
6530
|
cancelable: false,
|
|
6219
6531
|
closable: false,
|
|
6220
6532
|
onDestroy: options.onDestroy
|
|
6221
|
-
}) || this;
|
|
6533
|
+
}, data) || this;
|
|
6222
6534
|
_this.contentElement = contentElement;
|
|
6223
6535
|
_this.progressElement = progressElement;
|
|
6224
6536
|
return _this;
|
|
@@ -6247,8 +6559,55 @@ var default_dialog_service_DefaultProgressDialog = /** @class */ (function (_sup
|
|
|
6247
6559
|
return DefaultProgressDialog;
|
|
6248
6560
|
}(default_dialog_service_DefaultDialog));
|
|
6249
6561
|
|
|
6562
|
+
var DefaultDialogSet = /** @class */ (function () {
|
|
6563
|
+
function DefaultDialogSet(options, dialogService) {
|
|
6564
|
+
this.options = options;
|
|
6565
|
+
this.dialogService = dialogService;
|
|
6566
|
+
this.currentDialog = null;
|
|
6567
|
+
this.currentIndex = 0;
|
|
6568
|
+
this.options = options;
|
|
6569
|
+
this.dialogService = dialogService;
|
|
6570
|
+
}
|
|
6571
|
+
DefaultDialogSet.prototype.getCurrent = function () {
|
|
6572
|
+
return this.currentDialog;
|
|
6573
|
+
};
|
|
6574
|
+
DefaultDialogSet.prototype.openNext = function (data) {
|
|
6575
|
+
return this.open(this.currentIndex + 1, data);
|
|
6576
|
+
};
|
|
6577
|
+
DefaultDialogSet.prototype.openPrev = function (data) {
|
|
6578
|
+
return this.open(this.currentIndex - 1, data);
|
|
6579
|
+
};
|
|
6580
|
+
DefaultDialogSet.prototype.open = function (page, data) {
|
|
6581
|
+
if (page < 0) {
|
|
6582
|
+
this.currentIndex = 0;
|
|
6583
|
+
}
|
|
6584
|
+
else if (page >= this.options.length) {
|
|
6585
|
+
this.currentIndex = this.options.length - 1;
|
|
6586
|
+
}
|
|
6587
|
+
else {
|
|
6588
|
+
this.currentIndex = page;
|
|
6589
|
+
}
|
|
6590
|
+
if (this.currentDialog) {
|
|
6591
|
+
try {
|
|
6592
|
+
this.currentDialog.close();
|
|
6593
|
+
}
|
|
6594
|
+
catch (e) { }
|
|
6595
|
+
}
|
|
6596
|
+
var dlgOptions = this.options[this.currentIndex];
|
|
6597
|
+
this.currentDialog = this.dialogService.open(dlgOptions, data);
|
|
6598
|
+
return this.currentDialog;
|
|
6599
|
+
};
|
|
6600
|
+
DefaultDialogSet.prototype.close = function () {
|
|
6601
|
+
if (this.currentDialog) {
|
|
6602
|
+
this.currentDialog.close();
|
|
6603
|
+
this.currentDialog = null;
|
|
6604
|
+
}
|
|
6605
|
+
};
|
|
6606
|
+
return DefaultDialogSet;
|
|
6607
|
+
}());
|
|
6608
|
+
|
|
6250
6609
|
//# sourceMappingURL=default_dialog_service.js.map
|
|
6251
|
-
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/
|
|
6610
|
+
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/ui/dist/lib/i18n/text_resources.js
|
|
6252
6611
|
|
|
6253
6612
|
function addEasyDataUITexts() {
|
|
6254
6613
|
public_api["g" /* i18n */].updateDefaultTexts({
|
|
@@ -6263,56 +6622,12 @@ function addEasyDataUITexts() {
|
|
|
6263
6622
|
}
|
|
6264
6623
|
addEasyDataUITexts();
|
|
6265
6624
|
//# sourceMappingURL=text_resources.js.map
|
|
6266
|
-
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/
|
|
6267
|
-
/* unused harmony export dialogs */
|
|
6268
|
-
/* concated harmony reexport EasyGrid */__webpack_require__.d(__webpack_exports__, "e", function() { return easy_grid_EasyGrid; });
|
|
6269
|
-
/* unused concated harmony import GridColumnAlign */
|
|
6270
|
-
/* unused concated harmony import GridColumn */
|
|
6271
|
-
/* unused concated harmony import GridColumnList */
|
|
6272
|
-
/* unused concated harmony import DFMT_REGEX */
|
|
6273
|
-
/* unused concated harmony import CellRendererType */
|
|
6274
|
-
/* unused concated harmony import GridCellRendererStore */
|
|
6275
|
-
/* unused concated harmony import Calendar */
|
|
6276
|
-
/* unused concated harmony import DateTimePicker */
|
|
6277
|
-
/* unused concated harmony import DefaultCalendar */
|
|
6278
|
-
/* concated harmony reexport DefaultDateTimePicker */__webpack_require__.d(__webpack_exports__, "a", function() { return default_date_time_picker_DefaultDateTimePicker; });
|
|
6279
|
-
/* unused concated harmony import DefaultTimePicker */
|
|
6280
|
-
/* unused concated harmony import TimePicker */
|
|
6281
|
-
/* unused concated harmony import browserUtils */
|
|
6282
|
-
/* concated harmony reexport DomElementBuilder */__webpack_require__.d(__webpack_exports__, "c", function() { return DomElementBuilder; });
|
|
6283
|
-
/* unused concated harmony import DomTextAreaElementBuilder */
|
|
6284
|
-
/* unused concated harmony import DomInputElementBuilder */
|
|
6285
|
-
/* unused concated harmony import DomSelectElementBuilder */
|
|
6286
|
-
/* concated harmony reexport domel */__webpack_require__.d(__webpack_exports__, "i", function() { return domel; });
|
|
6287
|
-
/* concated harmony reexport DropEffect */__webpack_require__.d(__webpack_exports__, "d", function() { return DropEffect; });
|
|
6288
|
-
/* unused concated harmony import EqDragEvent */
|
|
6289
|
-
/* unused concated harmony import DragManager */
|
|
6290
|
-
/* concated harmony reexport eqDragManager */__webpack_require__.d(__webpack_exports__, "j", function() { return eqDragManager; });
|
|
6291
|
-
/* unused concated harmony import mask */
|
|
6292
|
-
/* unused concated harmony import wrapInner */
|
|
6293
|
-
/* concated harmony reexport addElement */__webpack_require__.d(__webpack_exports__, "g", function() { return addElement; });
|
|
6294
|
-
/* concated harmony reexport addCssClass */__webpack_require__.d(__webpack_exports__, "f", function() { return addCssClass; });
|
|
6295
|
-
/* concated harmony reexport hideElement */__webpack_require__.d(__webpack_exports__, "o", function() { return hideElement; });
|
|
6296
|
-
/* concated harmony reexport showElement */__webpack_require__.d(__webpack_exports__, "q", function() { return showElement; });
|
|
6297
|
-
/* concated harmony reexport toggleVisibility */__webpack_require__.d(__webpack_exports__, "t", function() { return toggleVisibility; });
|
|
6298
|
-
/* concated harmony reexport isVisible */__webpack_require__.d(__webpack_exports__, "p", function() { return isVisible; });
|
|
6299
|
-
/* concated harmony reexport createBrowserEvent */__webpack_require__.d(__webpack_exports__, "h", function() { return createBrowserEvent; });
|
|
6300
|
-
/* concated harmony reexport getViewportSize */__webpack_require__.d(__webpack_exports__, "m", function() { return getViewportSize; });
|
|
6301
|
-
/* unused concated harmony import getDocSize */
|
|
6302
|
-
/* concated harmony reexport getScrollPos */__webpack_require__.d(__webpack_exports__, "l", function() { return getScrollPos; });
|
|
6303
|
-
/* concated harmony reexport getElementAbsolutePos */__webpack_require__.d(__webpack_exports__, "k", function() { return getElementAbsolutePos; });
|
|
6304
|
-
/* concated harmony reexport getWinSize */__webpack_require__.d(__webpack_exports__, "n", function() { return getWinSize; });
|
|
6305
|
-
/* concated harmony reexport slideDown */__webpack_require__.d(__webpack_exports__, "r", function() { return slideDown; });
|
|
6306
|
-
/* concated harmony reexport slideUp */__webpack_require__.d(__webpack_exports__, "s", function() { return slideUp; });
|
|
6307
|
-
/* unused concated harmony import eqCssPrefix */
|
|
6308
|
-
/* unused concated harmony import eqCssMobile */
|
|
6309
|
-
/* concated harmony reexport DefaultDialogService */__webpack_require__.d(__webpack_exports__, "b", function() { return DefaultDialogService; });
|
|
6310
|
-
/* unused concated harmony import DefaultDialog */
|
|
6311
|
-
/* unused concated harmony import DefaultProgressDialog */
|
|
6625
|
+
// CONCATENATED MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/ui/dist/lib/public_api.js
|
|
6312
6626
|
// grid
|
|
6313
6627
|
|
|
6314
6628
|
|
|
6315
6629
|
|
|
6630
|
+
|
|
6316
6631
|
//datetimepicker
|
|
6317
6632
|
|
|
6318
6633
|
|
|
@@ -6330,6 +6645,7 @@ addEasyDataUITexts();
|
|
|
6330
6645
|
|
|
6331
6646
|
|
|
6332
6647
|
|
|
6648
|
+
|
|
6333
6649
|
// export dialogs to use outside of context as global
|
|
6334
6650
|
var dialogs = new DefaultDialogService();
|
|
6335
6651
|
|
|
@@ -6554,15 +6870,81 @@ var browserUtils;
|
|
|
6554
6870
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
6555
6871
|
|
|
6556
6872
|
"use strict";
|
|
6873
|
+
// ESM COMPAT FLAG
|
|
6557
6874
|
__webpack_require__.r(__webpack_exports__);
|
|
6558
6875
|
|
|
6559
|
-
//
|
|
6876
|
+
// EXPORTS
|
|
6877
|
+
__webpack_require__.d(__webpack_exports__, "EntitiesPanel", function() { return /* reexport */ entities_panel_EntitiesPanel; });
|
|
6878
|
+
__webpack_require__.d(__webpack_exports__, "ColumnsPanel", function() { return /* reexport */ columns_panel_ColumnsPanel; });
|
|
6879
|
+
__webpack_require__.d(__webpack_exports__, "ColumnsBar", function() { return /* reexport */ columns_bar_ColumnsBar; });
|
|
6880
|
+
__webpack_require__.d(__webpack_exports__, "SortingBar", function() { return /* reexport */ sorting_bar_SortingBar; });
|
|
6881
|
+
__webpack_require__.d(__webpack_exports__, "QueryPanel", function() { return /* reexport */ query_panel_QueryPanel; });
|
|
6882
|
+
__webpack_require__.d(__webpack_exports__, "FilterBar", function() { return /* reexport */ filter_bar_FilterBar; });
|
|
6883
|
+
__webpack_require__.d(__webpack_exports__, "HtmlContentWidget", function() { return /* reexport */ html_content_widget_HtmlContentWidget; });
|
|
6884
|
+
__webpack_require__.d(__webpack_exports__, "EqHtmlGrid", function() { return /* reexport */ eq_result_html_grid_EqHtmlGrid; });
|
|
6885
|
+
__webpack_require__.d(__webpack_exports__, "Grid", function() { return /* reexport */ grid_Grid; });
|
|
6886
|
+
__webpack_require__.d(__webpack_exports__, "EasyGridWidget", function() { return /* reexport */ easy_grid_widget_EasyGridWidget; });
|
|
6887
|
+
__webpack_require__.d(__webpack_exports__, "StatementPanel", function() { return /* reexport */ statement_panel_StatementPanel; });
|
|
6888
|
+
__webpack_require__.d(__webpack_exports__, "ProcessWidget", function() { return /* reexport */ process_widget_ProcessWidget; });
|
|
6889
|
+
__webpack_require__.d(__webpack_exports__, "ManageDrillDownWidget", function() { return /* reexport */ manage_drilldown_widget_ManageDrillDownWidget; });
|
|
6890
|
+
__webpack_require__.d(__webpack_exports__, "ResultFacetsPanel", function() { return /* reexport */ result_facets_panel_ResultFacetsPanel; });
|
|
6891
|
+
__webpack_require__.d(__webpack_exports__, "ExportWidget", function() { return /* reexport */ export_widget_ExportWidget; });
|
|
6892
|
+
__webpack_require__.d(__webpack_exports__, "AggregationBar", function() { return /* reexport */ aggregation_bar_AggregationBar; });
|
|
6893
|
+
__webpack_require__.d(__webpack_exports__, "ChartType", function() { return /* reexport */ ChartType; });
|
|
6894
|
+
__webpack_require__.d(__webpack_exports__, "ChartWidget", function() { return /* reexport */ chart_widget_ChartWidget; });
|
|
6895
|
+
__webpack_require__.d(__webpack_exports__, "GoogleChartWidget", function() { return /* reexport */ chart_widget_google_GoogleChartWidget; });
|
|
6896
|
+
__webpack_require__.d(__webpack_exports__, "ChartJsWidget", function() { return /* reexport */ chart_widget_chartjs_ChartJsWidget; });
|
|
6897
|
+
__webpack_require__.d(__webpack_exports__, "BaseElementRenderer", function() { return /* reexport */ base_element_renderer_BaseElementRenderer; });
|
|
6898
|
+
__webpack_require__.d(__webpack_exports__, "DropDownRenderer", function() { return /* reexport */ DropDownRenderer; });
|
|
6899
|
+
__webpack_require__.d(__webpack_exports__, "AggrSettingsRenderer", function() { return /* reexport */ aggr_settings_renderer_AggrSettingsRenderer; });
|
|
6900
|
+
__webpack_require__.d(__webpack_exports__, "AggrFuncColumnRendererCB", function() { return /* reexport */ aggrfunc_column_renderer_AggrFuncColumnRendererCB; });
|
|
6901
|
+
__webpack_require__.d(__webpack_exports__, "SimpleColumnRendererCB", function() { return /* reexport */ simple_column_renderer_SimpleColumnRendererCB; });
|
|
6902
|
+
__webpack_require__.d(__webpack_exports__, "ColumnRendererCB", function() { return /* reexport */ column_renderer_cb_ColumnRendererCB; });
|
|
6903
|
+
__webpack_require__.d(__webpack_exports__, "AggrFuncColumnRendererCP", function() { return /* reexport */ aggrfunc_column_renderer_AggrFuncColumnRendererCP; });
|
|
6904
|
+
__webpack_require__.d(__webpack_exports__, "SimpleColumnRendererCP", function() { return /* reexport */ simple_column_renderer_SimpleColumnRendererCP; });
|
|
6905
|
+
__webpack_require__.d(__webpack_exports__, "ColumnAction", function() { return /* reexport */ ColumnAction; });
|
|
6906
|
+
__webpack_require__.d(__webpack_exports__, "ColumnRendererCP", function() { return /* reexport */ column_renderer_cp_ColumnRendererCP; });
|
|
6907
|
+
__webpack_require__.d(__webpack_exports__, "CustomSqlColumnRendererCP", function() { return /* reexport */ customsql_column_renderer_CustomSqlColumnRendererCP; });
|
|
6908
|
+
__webpack_require__.d(__webpack_exports__, "InputExpressionRenderer", function() { return /* reexport */ input_expression_renderer_InputExpressionRenderer; });
|
|
6909
|
+
__webpack_require__.d(__webpack_exports__, "DateTimeExpressionRenderer", function() { return /* reexport */ datetime_expression_render_DateTimeExpressionRenderer; });
|
|
6910
|
+
__webpack_require__.d(__webpack_exports__, "ConditionAction", function() { return /* reexport */ ConditionAction; });
|
|
6911
|
+
__webpack_require__.d(__webpack_exports__, "ConditionRenderer", function() { return /* reexport */ condition_renderer_ConditionRenderer; });
|
|
6912
|
+
__webpack_require__.d(__webpack_exports__, "SimpleConditionRenderer", function() { return /* reexport */ condition_renderer_SimpleConditionRenderer; });
|
|
6913
|
+
__webpack_require__.d(__webpack_exports__, "ConditionGroupRenderer", function() { return /* reexport */ condition_group_renderer_ConditionGroupRenderer; });
|
|
6914
|
+
__webpack_require__.d(__webpack_exports__, "ConditionGroupRowRenderer", function() { return /* reexport */ condition_group_renderer_ConditionGroupRowRenderer; });
|
|
6915
|
+
__webpack_require__.d(__webpack_exports__, "AttributeExpressionRenderer", function() { return /* reexport */ attribute_expression_renderer_AttributeExpressionRenderer; });
|
|
6916
|
+
__webpack_require__.d(__webpack_exports__, "ExpressionRenderer", function() { return /* reexport */ expression_renderer_ExpressionRenderer; });
|
|
6917
|
+
__webpack_require__.d(__webpack_exports__, "OperatorRenderer", function() { return /* reexport */ operator_renderer_OperatorRenderer; });
|
|
6918
|
+
__webpack_require__.d(__webpack_exports__, "SubQueryExpressionRenderer", function() { return /* reexport */ subquery_expression_renderer_SubQueryExpressionRenderer; });
|
|
6919
|
+
__webpack_require__.d(__webpack_exports__, "ListExpressionRenderer", function() { return /* reexport */ list_expression_renderer_ListExpressionRenderer; });
|
|
6920
|
+
__webpack_require__.d(__webpack_exports__, "CustomListExpressionRenderer", function() { return /* reexport */ list_expression_renderer_CustomListExpressionRenderer; });
|
|
6921
|
+
__webpack_require__.d(__webpack_exports__, "SqlListExpressionRenderer", function() { return /* reexport */ SqlListExpressionRenderer; });
|
|
6922
|
+
__webpack_require__.d(__webpack_exports__, "TextRenderer", function() { return /* reexport */ text_renderer_TextRenderer; });
|
|
6923
|
+
__webpack_require__.d(__webpack_exports__, "AddRowRenderer", function() { return /* reexport */ addrow_renderer_AddRowRenderer; });
|
|
6924
|
+
__webpack_require__.d(__webpack_exports__, "ResultFacet", function() { return /* reexport */ result_facet_ResultFacet; });
|
|
6925
|
+
__webpack_require__.d(__webpack_exports__, "DataTableFacet", function() { return /* reexport */ datatable_facet_DataTableFacet; });
|
|
6926
|
+
__webpack_require__.d(__webpack_exports__, "ChartFacet", function() { return /* reexport */ chart_facet_ChartFacet; });
|
|
6927
|
+
__webpack_require__.d(__webpack_exports__, "PivotTableFacet", function() { return /* reexport */ pivot_table_facet_PivotTableFacet; });
|
|
6928
|
+
__webpack_require__.d(__webpack_exports__, "View", function() { return /* reexport */ view_View; });
|
|
6929
|
+
__webpack_require__.d(__webpack_exports__, "AdvancedSearchView", function() { return /* reexport */ adv_search_view_AdvancedSearchView; });
|
|
6930
|
+
__webpack_require__.d(__webpack_exports__, "DataFilterView", function() { return /* reexport */ data_filter_view_DataFilterView; });
|
|
6931
|
+
__webpack_require__.d(__webpack_exports__, "HtmlDataFilterView", function() { return /* reexport */ html_data_filter_view_HtmlDataFilterView; });
|
|
6932
|
+
__webpack_require__.d(__webpack_exports__, "ReportView", function() { return /* reexport */ report_view_ReportView; });
|
|
6933
|
+
__webpack_require__.d(__webpack_exports__, "DomDropDownElementBuilder", function() { return /* reexport */ DomDropDownElementBuilder; });
|
|
6934
|
+
__webpack_require__.d(__webpack_exports__, "dropdown", function() { return /* reexport */ dropdown; });
|
|
6935
|
+
__webpack_require__.d(__webpack_exports__, "PopupMenu", function() { return /* reexport */ popup_menu_PopupMenu; });
|
|
6936
|
+
__webpack_require__.d(__webpack_exports__, "QPEditablePart", function() { return /* reexport */ QPEditablePart; });
|
|
6937
|
+
__webpack_require__.d(__webpack_exports__, "FacetType", function() { return /* reexport */ FacetType; });
|
|
6938
|
+
__webpack_require__.d(__webpack_exports__, "ExportDialog", function() { return /* reexport */ export_dialog_ExportDialog; });
|
|
6939
|
+
__webpack_require__.d(__webpack_exports__, "AggrSettingsDialog", function() { return /* reexport */ aggr_settings_dialog_AggrSettingsDialog; });
|
|
6940
|
+
|
|
6941
|
+
// EXTERNAL MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/core/dist/lib/public_api.js + 21 modules
|
|
6560
6942
|
var public_api = __webpack_require__(0);
|
|
6561
6943
|
|
|
6562
6944
|
// EXTERNAL MODULE: external "easyqueryCore"
|
|
6563
6945
|
var external_easyqueryCore_ = __webpack_require__(2);
|
|
6564
6946
|
|
|
6565
|
-
// EXTERNAL MODULE: c:/azuredevops-agents/korzhdev/_work/
|
|
6947
|
+
// EXTERNAL MODULE: c:/azuredevops-agents/korzhdev/_work/1/s/easydata/easydata.js/packs/ui/dist/lib/public_api.js + 17 modules
|
|
6566
6948
|
var lib_public_api = __webpack_require__(1);
|
|
6567
6949
|
|
|
6568
6950
|
// EXTERNAL MODULE: ./src/utils/utils.ts
|
|
@@ -6675,7 +7057,7 @@ var entities_panel_EntitiesPanel = /** @class */ (function (_super) {
|
|
|
6675
7057
|
columnTitleFormat: '{attr}'
|
|
6676
7058
|
};
|
|
6677
7059
|
if (options) {
|
|
6678
|
-
public_api["
|
|
7060
|
+
public_api["i" /* utils */].assignDeep(this.options, options);
|
|
6679
7061
|
}
|
|
6680
7062
|
if (this.queryChangedCallbackId) {
|
|
6681
7063
|
var query = this.context.getQuery();
|
|
@@ -7705,13 +8087,13 @@ var popup_menu_MenuLevel = /** @class */ (function () {
|
|
|
7705
8087
|
for (var i = 0; i < items.length; i++) {
|
|
7706
8088
|
var item = items[i];
|
|
7707
8089
|
if (item.items) {
|
|
7708
|
-
var groupItem = public_api["
|
|
8090
|
+
var groupItem = public_api["i" /* utils */].assign({}, item);
|
|
7709
8091
|
var groupItemMatches = this.matchesFilter(item.text, filterRegexp);
|
|
7710
8092
|
//if we have only one filter section (or an empty filter)
|
|
7711
8093
|
if (filterSections.length < 2) {
|
|
7712
8094
|
//if current group item matches the filter -> show all sub-items
|
|
7713
8095
|
if (groupItemMatches && filterSections.length < 2) {
|
|
7714
|
-
groupItem.items = public_api["
|
|
8096
|
+
groupItem.items = public_api["i" /* utils */].createArrayFrom(item.items);
|
|
7715
8097
|
}
|
|
7716
8098
|
else {
|
|
7717
8099
|
groupItem.items = this.filterItems(item.items, restFilterSections);
|
|
@@ -8225,7 +8607,7 @@ var popup_menu_PopupMenu = /** @class */ (function () {
|
|
|
8225
8607
|
itemRenderedCallback: null
|
|
8226
8608
|
};
|
|
8227
8609
|
if (options) {
|
|
8228
|
-
public_api["
|
|
8610
|
+
public_api["i" /* utils */].assignDeep(this.options, options);
|
|
8229
8611
|
}
|
|
8230
8612
|
if (this.options.hideButtons) {
|
|
8231
8613
|
this.options.submitOnBlur = true;
|
|
@@ -8518,7 +8900,14 @@ var DisplayFormatParser = /** @class */ (function () {
|
|
|
8518
8900
|
}());
|
|
8519
8901
|
|
|
8520
8902
|
|
|
8521
|
-
// CONCATENATED MODULE: ./src/widgets/renderers/columnspanel/
|
|
8903
|
+
// CONCATENATED MODULE: ./src/widgets/renderers/columnspanel/column_renderer_cp.ts
|
|
8904
|
+
var __spreadArrays = (undefined && undefined.__spreadArrays) || function () {
|
|
8905
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
8906
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
8907
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
8908
|
+
r[k] = a[j];
|
|
8909
|
+
return r;
|
|
8910
|
+
};
|
|
8522
8911
|
|
|
8523
8912
|
|
|
8524
8913
|
|
|
@@ -8541,7 +8930,7 @@ var ColumnAction;
|
|
|
8541
8930
|
ColumnAction[ColumnAction["Type"] = 11] = "Type";
|
|
8542
8931
|
ColumnAction[ColumnAction["Format"] = 12] = "Format";
|
|
8543
8932
|
})(ColumnAction || (ColumnAction = {}));
|
|
8544
|
-
var
|
|
8933
|
+
var column_renderer_cp_ColumnRendererCP = /** @class */ (function () {
|
|
8545
8934
|
function ColumnRendererCP(panel, column, slot) {
|
|
8546
8935
|
this.functionMenu = null;
|
|
8547
8936
|
this.formatsMenu = null;
|
|
@@ -8917,7 +9306,7 @@ var column_renderer_ColumnRendererCP = /** @class */ (function () {
|
|
|
8917
9306
|
};
|
|
8918
9307
|
ColumnRendererCP.prototype.renderColumnTypeButton = function () {
|
|
8919
9308
|
var _this = this;
|
|
8920
|
-
return (this.isEditable() && this.panel.options.allowAggrColumns !== false
|
|
9309
|
+
return (this.isEditable() && this.panel.options.allowAggrColumns !== false)
|
|
8921
9310
|
? Object(lib_public_api["i" /* domel */])('div')
|
|
8922
9311
|
.addClass(utils["b" /* eqCssPrefix */] + "-button-placeholder", this.cssPrefix + "-button-placeholder", this.cssPrefix + "-typebutton-placeholder", this.cssPrefix + "-button-active")
|
|
8923
9312
|
.data("btnplaceholder", "")
|
|
@@ -9259,7 +9648,7 @@ var column_renderer_ColumnRendererCP = /** @class */ (function () {
|
|
|
9259
9648
|
text: ' ',
|
|
9260
9649
|
items: common
|
|
9261
9650
|
});
|
|
9262
|
-
var sortItems = this.panel.options.allowSorting ? this.panel.getSortMenuList()
|
|
9651
|
+
var sortItems = this.panel.options.allowSorting ? __spreadArrays(this.panel.getSortMenuList(), this.panel.getMoveMenuList()) :
|
|
9263
9652
|
this.panel.getMoveMenuList();
|
|
9264
9653
|
items.push({
|
|
9265
9654
|
id: '__group',
|
|
@@ -9268,7 +9657,7 @@ var column_renderer_ColumnRendererCP = /** @class */ (function () {
|
|
|
9268
9657
|
});
|
|
9269
9658
|
var extra = this.getExtraButtonMenuItems();
|
|
9270
9659
|
if (extra && Array.isArray(extra)) {
|
|
9271
|
-
items = items
|
|
9660
|
+
items = __spreadArrays(items, extra);
|
|
9272
9661
|
}
|
|
9273
9662
|
var formatItems = this.getFormatsMenuItems();
|
|
9274
9663
|
if (formatItems.length > 1) {
|
|
@@ -9509,7 +9898,7 @@ var simple_column_renderer_SimpleColumnRendererCP = /** @class */ (function (_su
|
|
|
9509
9898
|
}];
|
|
9510
9899
|
};
|
|
9511
9900
|
return SimpleColumnRendererCP;
|
|
9512
|
-
}(
|
|
9901
|
+
}(column_renderer_cp_ColumnRendererCP));
|
|
9513
9902
|
|
|
9514
9903
|
|
|
9515
9904
|
// CONCATENATED MODULE: ./src/widgets/renderers/columnspanel/aggrfunc_column_renderer.ts
|
|
@@ -10249,7 +10638,7 @@ var columns_panel_ColumnsPanel = /** @class */ (function (_super) {
|
|
|
10249
10638
|
}, 10);
|
|
10250
10639
|
};
|
|
10251
10640
|
ColumnsPanel.prototype.setOptions = function (options) {
|
|
10252
|
-
public_api["
|
|
10641
|
+
public_api["i" /* utils */].assignDeep(this.options, options);
|
|
10253
10642
|
if (browser_utils["a" /* browserUtils */].isMobileMode()) {
|
|
10254
10643
|
this.options.buttons = ["menu"];
|
|
10255
10644
|
this.options.showHeader = false;
|
|
@@ -10282,11 +10671,12 @@ var columns_panel_ColumnsPanel = /** @class */ (function (_super) {
|
|
|
10282
10671
|
this.columnsBlock.appendChild(this.renderColumn(column));
|
|
10283
10672
|
}
|
|
10284
10673
|
}
|
|
10285
|
-
catch (
|
|
10674
|
+
catch (err) {
|
|
10675
|
+
var error = err;
|
|
10286
10676
|
this.context.throwError({
|
|
10287
10677
|
action: "ColumnsPanel rendering",
|
|
10288
|
-
text:
|
|
10289
|
-
sourceError:
|
|
10678
|
+
text: error.message,
|
|
10679
|
+
sourceError: error
|
|
10290
10680
|
});
|
|
10291
10681
|
}
|
|
10292
10682
|
};
|
|
@@ -10499,7 +10889,7 @@ var columns_panel_ColumnsPanel = /** @class */ (function (_super) {
|
|
|
10499
10889
|
adjustHeight: this.options.adjustEntitiesMenuHeight,
|
|
10500
10890
|
domWriteItemsId: this.options.domWriteItemsId
|
|
10501
10891
|
};
|
|
10502
|
-
public_api["
|
|
10892
|
+
public_api["i" /* utils */].assign(options, this.options.menuOptions);
|
|
10503
10893
|
this.entitiesMenu = new popup_menu_PopupMenu(options);
|
|
10504
10894
|
};
|
|
10505
10895
|
ColumnsPanel.prototype.getSortMenuList = function () {
|
|
@@ -10533,7 +10923,7 @@ var columns_panel_ColumnsPanel = /** @class */ (function (_super) {
|
|
|
10533
10923
|
domWriteItemsId: this.options.domWriteItemsId,
|
|
10534
10924
|
showSelected: true
|
|
10535
10925
|
};
|
|
10536
|
-
public_api["
|
|
10926
|
+
public_api["i" /* utils */].assign(menuOptions, this.options.menuOptions);
|
|
10537
10927
|
menuOptions.searchBoxAlwaysShown = false;
|
|
10538
10928
|
this.sortMenu = new popup_menu_PopupMenu(menuOptions);
|
|
10539
10929
|
};
|
|
@@ -10545,7 +10935,7 @@ var columns_panel_ColumnsPanel = /** @class */ (function (_super) {
|
|
|
10545
10935
|
if (menuId) {
|
|
10546
10936
|
menuId += '-MoveMenu';
|
|
10547
10937
|
}
|
|
10548
|
-
var items = public_api["
|
|
10938
|
+
var items = public_api["i" /* utils */].createArrayFrom(this.getMoveMenuList());
|
|
10549
10939
|
if (this.options.allowHiddenColumns) {
|
|
10550
10940
|
items.push({ id: '---', text: '---' });
|
|
10551
10941
|
items.push({ id: 'IsHidden', text: public_api["g" /* i18n */].getText('CmdHiddenColumn') });
|
|
@@ -10556,7 +10946,7 @@ var columns_panel_ColumnsPanel = /** @class */ (function (_super) {
|
|
|
10556
10946
|
domWriteItemsId: this.options.domWriteItemsId,
|
|
10557
10947
|
showSelected: true
|
|
10558
10948
|
};
|
|
10559
|
-
public_api["
|
|
10949
|
+
public_api["i" /* utils */].assign(menuOptions, this.options.menuOptions);
|
|
10560
10950
|
this.moveMenu = new popup_menu_PopupMenu(menuOptions);
|
|
10561
10951
|
menuOptions.searchBoxAlwaysShown = false;
|
|
10562
10952
|
};
|
|
@@ -10630,14 +11020,14 @@ var columns_panel_ColumnsPanel = /** @class */ (function (_super) {
|
|
|
10630
11020
|
}(external_easyqueryCore_["Widget"]));
|
|
10631
11021
|
|
|
10632
11022
|
|
|
10633
|
-
// CONCATENATED MODULE: ./src/widgets/renderers/columnsbar/
|
|
11023
|
+
// CONCATENATED MODULE: ./src/widgets/renderers/columnsbar/column_renderer_cb.ts
|
|
10634
11024
|
|
|
10635
11025
|
|
|
10636
11026
|
|
|
10637
11027
|
|
|
10638
11028
|
|
|
10639
11029
|
|
|
10640
|
-
var
|
|
11030
|
+
var column_renderer_cb_ColumnRendererCB = /** @class */ (function () {
|
|
10641
11031
|
function ColumnRendererCB(panel, column, slot) {
|
|
10642
11032
|
this.functionMenu = null;
|
|
10643
11033
|
this.formatsMenu = null;
|
|
@@ -10937,6 +11327,7 @@ var column_renderer_ColumnRendererCB = /** @class */ (function () {
|
|
|
10937
11327
|
.toDOM();
|
|
10938
11328
|
};
|
|
10939
11329
|
ColumnRendererCB.prototype.getDefaultCaption = function () {
|
|
11330
|
+
console.log('Calling getDefaultCaption() BASE');
|
|
10940
11331
|
return this.getDefaultTitleText(this.baseAttr);
|
|
10941
11332
|
};
|
|
10942
11333
|
ColumnRendererCB.prototype.getDefaultTitleText = function (attr) {
|
|
@@ -10955,7 +11346,7 @@ var column_renderer_ColumnRendererCB = /** @class */ (function () {
|
|
|
10955
11346
|
ColumnRendererCB.prototype.buttonTypeClickHandler = function (ev) {
|
|
10956
11347
|
ev.stopPropagation();
|
|
10957
11348
|
this.keepShowingButtons = true;
|
|
10958
|
-
this.
|
|
11349
|
+
this.changeColumnTypeHandler(ev);
|
|
10959
11350
|
return false;
|
|
10960
11351
|
};
|
|
10961
11352
|
ColumnRendererCB.prototype.buttonFormatClickHandler = function (ev) {
|
|
@@ -11006,8 +11397,7 @@ var column_renderer_ColumnRendererCB = /** @class */ (function () {
|
|
|
11006
11397
|
};
|
|
11007
11398
|
ColumnRendererCB.prototype.renderColumnTypeButton = function () {
|
|
11008
11399
|
var _this = this;
|
|
11009
|
-
if (!this.isEditable() || this.bar.options.allowAggrColumns === false
|
|
11010
|
-
|| this.column.getQuery().enableAggregation) {
|
|
11400
|
+
if (!this.isEditable() || this.bar.options.allowAggrColumns === false) {
|
|
11011
11401
|
return null;
|
|
11012
11402
|
}
|
|
11013
11403
|
return Object(lib_public_api["i" /* domel */])('div')
|
|
@@ -11043,9 +11433,6 @@ var column_renderer_ColumnRendererCB = /** @class */ (function () {
|
|
|
11043
11433
|
ColumnRendererCB.prototype.onMouseClick = function (ev) {
|
|
11044
11434
|
this.bar.toggleColumnPicked(this.column);
|
|
11045
11435
|
this.adjustButtonsVisibility();
|
|
11046
|
-
// if (!browserUtils.isMobileMode()) {
|
|
11047
|
-
// this.element.dispatchEvent(createBrowserEvent("mouseenter"));
|
|
11048
|
-
// }
|
|
11049
11436
|
};
|
|
11050
11437
|
ColumnRendererCB.prototype.onMouseEnter = function (e) {
|
|
11051
11438
|
if (browser_utils["a" /* browserUtils */].isMobileMode())
|
|
@@ -11239,7 +11626,7 @@ var simple_column_renderer_SimpleColumnRendererCB = /** @class */ (function (_su
|
|
|
11239
11626
|
query.changeColumnType(this.column, external_easyqueryCore_["ExprTag"].AggregateFunction, { funcId: funcId });
|
|
11240
11627
|
this.fireColumnChanged();
|
|
11241
11628
|
};
|
|
11242
|
-
SimpleColumnRendererCB.prototype.
|
|
11629
|
+
SimpleColumnRendererCB.prototype.changeColumnTypeHandler = function (ev) {
|
|
11243
11630
|
var _this = this;
|
|
11244
11631
|
this.functionMenu.showMenu({
|
|
11245
11632
|
anchor: ev.target,
|
|
@@ -11262,7 +11649,7 @@ var simple_column_renderer_SimpleColumnRendererCB = /** @class */ (function (_su
|
|
|
11262
11649
|
});
|
|
11263
11650
|
};
|
|
11264
11651
|
return SimpleColumnRendererCB;
|
|
11265
|
-
}(
|
|
11652
|
+
}(column_renderer_cb_ColumnRendererCB));
|
|
11266
11653
|
|
|
11267
11654
|
|
|
11268
11655
|
// CONCATENATED MODULE: ./src/widgets/renderers/columnsbar/aggrfunc_column_renderer.ts
|
|
@@ -11297,6 +11684,7 @@ var aggrfunc_column_renderer_AggrFuncColumnRendererCB = /** @class */ (function
|
|
|
11297
11684
|
.getAttributeByIdSafe(this.column.expr.args[0].value);
|
|
11298
11685
|
};
|
|
11299
11686
|
AggrFuncColumnRendererCB.prototype.getDefaultCaption = function () {
|
|
11687
|
+
console.log('Calling getDefaultCaption() AGGR');
|
|
11300
11688
|
return this.getDefaultTitleText(this.baseAttr) + ' '
|
|
11301
11689
|
+ this.bar.getContext().getModel().getAggrFunctionCaption(this.column.expr.func);
|
|
11302
11690
|
};
|
|
@@ -11320,7 +11708,7 @@ var aggrfunc_column_renderer_AggrFuncColumnRendererCB = /** @class */ (function
|
|
|
11320
11708
|
query.changeColumnType(this.column, external_easyqueryCore_["ExprTag"].EntityAttribute);
|
|
11321
11709
|
this.fireColumnChanged();
|
|
11322
11710
|
};
|
|
11323
|
-
AggrFuncColumnRendererCB.prototype.
|
|
11711
|
+
AggrFuncColumnRendererCB.prototype.changeColumnTypeHandler = function (ev) {
|
|
11324
11712
|
this.changeTypeToSimple();
|
|
11325
11713
|
};
|
|
11326
11714
|
return AggrFuncColumnRendererCB;
|
|
@@ -11542,7 +11930,7 @@ var columns_bar_ColumnsBar = /** @class */ (function (_super) {
|
|
|
11542
11930
|
}
|
|
11543
11931
|
};
|
|
11544
11932
|
ColumnsBar.prototype.setOptions = function (options) {
|
|
11545
|
-
this.options = public_api["
|
|
11933
|
+
this.options = public_api["i" /* utils */].assignDeep(this.options, options);
|
|
11546
11934
|
};
|
|
11547
11935
|
ColumnsBar.prototype.showLandingSlot = function (pageX, pageY) {
|
|
11548
11936
|
var elements = this.columnsBlock.querySelectorAll("[class*=" + this.cssPrefix + "-row]");
|
|
@@ -11958,7 +12346,7 @@ var columns_bar_ColumnsBar = /** @class */ (function (_super) {
|
|
|
11958
12346
|
}
|
|
11959
12347
|
var entitiesList = model.getEntitiesTree({ addUIC: false, addUIR: true, addUIS: false, attrPlacement: this.options.attrPlacement, sortEntities: this.options.sortEntities });
|
|
11960
12348
|
var options = { items: entitiesList, adjustHeight: this.options.adjustEntitiesMenuHeight, id: menuId, domWriteItemsId: this.options.domWriteItemsId };
|
|
11961
|
-
public_api["
|
|
12349
|
+
public_api["i" /* utils */].assign(options, this.options.menuOptions);
|
|
11962
12350
|
this.entitiesMenu = new popup_menu_PopupMenu(options);
|
|
11963
12351
|
};
|
|
11964
12352
|
ColumnsBar.prototype.createSortMenu = function () {
|
|
@@ -11971,7 +12359,7 @@ var columns_bar_ColumnsBar = /** @class */ (function (_super) {
|
|
|
11971
12359
|
}
|
|
11972
12360
|
var items = this.sortMenuList.concat(this.moveMenuList);
|
|
11973
12361
|
var menuOptions = { "items": items, id: menuId, domWriteItemsId: this.options.domWriteItemsId };
|
|
11974
|
-
public_api["
|
|
12362
|
+
public_api["i" /* utils */].assign(menuOptions, this.options.menuOptions);
|
|
11975
12363
|
menuOptions.searchBoxAlwaysShown = false;
|
|
11976
12364
|
this.sortMenu = new popup_menu_PopupMenu(menuOptions);
|
|
11977
12365
|
};
|
|
@@ -11985,7 +12373,7 @@ var columns_bar_ColumnsBar = /** @class */ (function (_super) {
|
|
|
11985
12373
|
}
|
|
11986
12374
|
var items = this.moveMenuList;
|
|
11987
12375
|
var menuOptions = { "items": items, id: menuId, domWriteItemsId: this.options.domWriteItemsId };
|
|
11988
|
-
public_api["
|
|
12376
|
+
public_api["i" /* utils */].assign(menuOptions, this.options.menuOptions);
|
|
11989
12377
|
this.moveMenu = new popup_menu_PopupMenu(menuOptions);
|
|
11990
12378
|
menuOptions.searchBoxAlwaysShown = false;
|
|
11991
12379
|
};
|
|
@@ -12050,13 +12438,13 @@ var columns_bar_ColumnsBar = /** @class */ (function (_super) {
|
|
|
12050
12438
|
}(external_easyqueryCore_["Widget"]));
|
|
12051
12439
|
|
|
12052
12440
|
|
|
12053
|
-
// CONCATENATED MODULE: ./src/widgets/renderers/sortingbar/
|
|
12441
|
+
// CONCATENATED MODULE: ./src/widgets/renderers/sortingbar/column_renderer_sp.ts
|
|
12054
12442
|
|
|
12055
12443
|
|
|
12056
12444
|
|
|
12057
12445
|
|
|
12058
12446
|
|
|
12059
|
-
var
|
|
12447
|
+
var column_renderer_sp_ColumnRendererSB = /** @class */ (function () {
|
|
12060
12448
|
function ColumnRendererSB(bar, column, slot) {
|
|
12061
12449
|
this.functionMenu = null;
|
|
12062
12450
|
this.isMouseOverBlock = false;
|
|
@@ -12280,7 +12668,7 @@ var sorting_bar_SortingBar = /** @class */ (function (_super) {
|
|
|
12280
12668
|
this.attachQueryObserver();
|
|
12281
12669
|
};
|
|
12282
12670
|
SortingBar.prototype.setOptions = function (options) {
|
|
12283
|
-
public_api["
|
|
12671
|
+
public_api["i" /* utils */].assignDeep(this.options, options);
|
|
12284
12672
|
};
|
|
12285
12673
|
SortingBar.prototype.attachQueryObserver = function () {
|
|
12286
12674
|
var _this = this;
|
|
@@ -12523,7 +12911,7 @@ var sorting_bar_SortingBar = /** @class */ (function (_super) {
|
|
|
12523
12911
|
return col;
|
|
12524
12912
|
};
|
|
12525
12913
|
SortingBar.prototype.renderColumn = function (column, elem) {
|
|
12526
|
-
var renderer = new
|
|
12914
|
+
var renderer = new column_renderer_sp_ColumnRendererSB(this, column, elem);
|
|
12527
12915
|
if (renderer) {
|
|
12528
12916
|
var columnSlot = renderer.render();
|
|
12529
12917
|
return columnSlot;
|
|
@@ -12792,7 +13180,7 @@ var condition_renderer_SimpleConditionRenderer = /** @class */ (function (_super
|
|
|
12792
13180
|
var parent = this.condition.getParent();
|
|
12793
13181
|
if (!parent)
|
|
12794
13182
|
return null;
|
|
12795
|
-
var isFirstConditionInGroup = public_api["
|
|
13183
|
+
var isFirstConditionInGroup = public_api["i" /* utils */].findItemIndexById(parent.getConditions(), this.condition.id) == 0;
|
|
12796
13184
|
if (this.panel.options.showConjunctions && !isFirstConditionInGroup) {
|
|
12797
13185
|
var linkTypeStr = external_easyqueryCore_["equtils"].linkTypeToStr(this.condition.getParent().linkType);
|
|
12798
13186
|
var conjuctionText = public_api["g" /* i18n */].getText("Conj" + linkTypeStr);
|
|
@@ -13344,7 +13732,7 @@ var condition_group_renderer_ConditionGroupRowRenderer = /** @class */ (function
|
|
|
13344
13732
|
});
|
|
13345
13733
|
}
|
|
13346
13734
|
var linkTypeStr = external_easyqueryCore_["equtils"].linkTypeToStr(this.condition.linkType);
|
|
13347
|
-
var curType_1 = public_api["
|
|
13735
|
+
var curType_1 = public_api["i" /* utils */].findItemById(external_easyqueryCore_["eqconsts"].predicateLinkTypeList, linkTypeStr);
|
|
13348
13736
|
if (!curType_1) {
|
|
13349
13737
|
curType_1 = external_easyqueryCore_["eqconsts"].predicateLinkTypeList[0];
|
|
13350
13738
|
}
|
|
@@ -13696,13 +14084,13 @@ var input_expression_renderer_InputExpressionRenderer = /** @class */ (function
|
|
|
13696
14084
|
InputExpressionRenderer.prototype.validateScalarInput = function (inputValue, result) {
|
|
13697
14085
|
if (!inputValue)
|
|
13698
14086
|
return;
|
|
13699
|
-
if (public_api["
|
|
14087
|
+
if (public_api["i" /* utils */].isNumericType(this.expression.dataType)) {
|
|
13700
14088
|
var parsedVal = +inputValue;
|
|
13701
14089
|
if (isNaN(parsedVal)) {
|
|
13702
14090
|
result.success = false;
|
|
13703
14091
|
result.message = '"' + inputValue + '" ' + public_api["g" /* i18n */].getText('ErrNotNumber');
|
|
13704
14092
|
}
|
|
13705
|
-
if (public_api["
|
|
14093
|
+
if (public_api["i" /* utils */].isIntType(this.expression.dataType) && parsedVal != parseInt(inputValue, 10)) {
|
|
13706
14094
|
result.success = false;
|
|
13707
14095
|
result.message = '"' + inputValue + '" ' + public_api["g" /* i18n */].getText('ErrIncorrectInteger');
|
|
13708
14096
|
}
|
|
@@ -13856,7 +14244,7 @@ var list_expression_renderer_ListExpressionRenderer = /** @class */ (function (_
|
|
|
13856
14244
|
showSelected: true
|
|
13857
14245
|
};
|
|
13858
14246
|
if (queryPanel) {
|
|
13859
|
-
public_api["
|
|
14247
|
+
public_api["i" /* utils */].assignDeep(options, queryPanel.options.menuOptions);
|
|
13860
14248
|
}
|
|
13861
14249
|
;
|
|
13862
14250
|
var menuId = this.element.id;
|
|
@@ -14296,10 +14684,10 @@ var operator_renderer_OperatorRenderer = /** @class */ (function (_super) {
|
|
|
14296
14684
|
var options = {
|
|
14297
14685
|
items: items,
|
|
14298
14686
|
adjustHeight: this.panel.options.adjustEntitiesMenuHeight,
|
|
14299
|
-
id: public_api["
|
|
14687
|
+
id: public_api["i" /* utils */].generateId('opmn'),
|
|
14300
14688
|
domWriteItemsId: this.panel.options.domWriteItemsId
|
|
14301
14689
|
};
|
|
14302
|
-
public_api["
|
|
14690
|
+
public_api["i" /* utils */].assign(options, this.panel.options.menuOptions);
|
|
14303
14691
|
this.menu = new popup_menu_PopupMenu(options);
|
|
14304
14692
|
};
|
|
14305
14693
|
OperatorRenderer.prototype.getLabelText = function () {
|
|
@@ -14409,7 +14797,6 @@ var datetime_expression_render_DateTimeExpressionRenderer = /** @class */ (funct
|
|
|
14409
14797
|
var defValue = '${{Today}}';
|
|
14410
14798
|
var value = this.expression.value;
|
|
14411
14799
|
var model = this.expression.getModel();
|
|
14412
|
-
console.log('DateTimeExpressionRenderer.getLabelText / value', value);
|
|
14413
14800
|
if (!model) {
|
|
14414
14801
|
throw new Error('DataModel is not defined for ' + this.expression.value);
|
|
14415
14802
|
}
|
|
@@ -14426,10 +14813,10 @@ var datetime_expression_render_DateTimeExpressionRenderer = /** @class */ (funct
|
|
|
14426
14813
|
&& ((this.panel.options.editableParts & QPEditablePart.Value) === QPEditablePart.Value);
|
|
14427
14814
|
};
|
|
14428
14815
|
DateTimeExpressionRenderer.prototype.convertFromInternalFormat = function (dateTime) {
|
|
14429
|
-
return public_api["
|
|
14816
|
+
return public_api["i" /* utils */].strToDateTime(dateTime, this.internalDateFormat + ' ' + this.internalTimeFormat);
|
|
14430
14817
|
};
|
|
14431
14818
|
DateTimeExpressionRenderer.prototype.convertToInternalFormat = function (dateTime) {
|
|
14432
|
-
return public_api["
|
|
14819
|
+
return public_api["i" /* utils */].dateTimeToStr(dateTime, this.internalDateFormat + ' ' + this.internalTimeFormat);
|
|
14433
14820
|
};
|
|
14434
14821
|
return DateTimeExpressionRenderer;
|
|
14435
14822
|
}(expression_renderer_ExpressionRenderer));
|
|
@@ -14508,7 +14895,7 @@ var subquery_expression_renderer_SubQueryExpressionRenderer = /** @class */ (fun
|
|
|
14508
14895
|
isSubQuery: true,
|
|
14509
14896
|
domWriteItemsId: this.panel.options.domWriteItemsId
|
|
14510
14897
|
};
|
|
14511
|
-
public_api["
|
|
14898
|
+
public_api["i" /* utils */].assign(options, this.panel.options.menuOptions);
|
|
14512
14899
|
this.colEntitiesMenu = new popup_menu_PopupMenu(options);
|
|
14513
14900
|
};
|
|
14514
14901
|
SubQueryExpressionRenderer.prototype.renderColumnBlock = function () {
|
|
@@ -14605,7 +14992,7 @@ var subquery_expression_renderer_SubQueryExpressionRenderer = /** @class */ (fun
|
|
|
14605
14992
|
if (this.expression.subQuery) {
|
|
14606
14993
|
subQuery.loadFromData(this.expression.subQuery.toJSONData());
|
|
14607
14994
|
}
|
|
14608
|
-
var subOptions = public_api["
|
|
14995
|
+
var subOptions = public_api["i" /* utils */].assign({}, parentPanel.options);
|
|
14609
14996
|
subOptions.isSubQuery = true;
|
|
14610
14997
|
subOptions.showAddRow = true;
|
|
14611
14998
|
subOptions.menuContainer = document.body;
|
|
@@ -15023,7 +15410,7 @@ var query_panel_QueryPanel = /** @class */ (function (_super) {
|
|
|
15023
15410
|
this.render();
|
|
15024
15411
|
};
|
|
15025
15412
|
QueryPanel.prototype.setOptions = function (options) {
|
|
15026
|
-
public_api["
|
|
15413
|
+
public_api["i" /* utils */].assignDeep(this.options, options);
|
|
15027
15414
|
// dateFormatValue & dateFormatDisplay back compatibility
|
|
15028
15415
|
if (this.options.dateFormatValue) {
|
|
15029
15416
|
public_api["g" /* i18n */].updateLocaleSettings({
|
|
@@ -15071,11 +15458,12 @@ var query_panel_QueryPanel = /** @class */ (function (_super) {
|
|
|
15071
15458
|
addrowRenderer.render();
|
|
15072
15459
|
}
|
|
15073
15460
|
}
|
|
15074
|
-
catch (
|
|
15461
|
+
catch (err) {
|
|
15462
|
+
var error = err;
|
|
15075
15463
|
this.context.throwError({
|
|
15076
15464
|
action: "QueryPanel rendering",
|
|
15077
|
-
text:
|
|
15078
|
-
sourceError:
|
|
15465
|
+
text: error.message,
|
|
15466
|
+
sourceError: error
|
|
15079
15467
|
});
|
|
15080
15468
|
}
|
|
15081
15469
|
};
|
|
@@ -15205,7 +15593,7 @@ var query_panel_QueryPanel = /** @class */ (function (_super) {
|
|
|
15205
15593
|
id: menuId,
|
|
15206
15594
|
domWriteItemsId: this.options.domWriteItemsId
|
|
15207
15595
|
};
|
|
15208
|
-
public_api["
|
|
15596
|
+
public_api["i" /* utils */].assign(options, this.options.menuOptions);
|
|
15209
15597
|
return new popup_menu_PopupMenu(options);
|
|
15210
15598
|
};
|
|
15211
15599
|
QueryPanel.prototype.showEntitiesMenu = function (options) {
|
|
@@ -15248,7 +15636,7 @@ var query_panel_QueryPanel = /** @class */ (function (_super) {
|
|
|
15248
15636
|
;
|
|
15249
15637
|
}
|
|
15250
15638
|
var options = { items: items, adjustHeight: this.options.adjustEntitiesMenuHeight, id: menuId, domWriteItemsId: this.options.domWriteItemsId, showSearchBoxAfter: 100, showSelected: true };
|
|
15251
|
-
public_api["
|
|
15639
|
+
public_api["i" /* utils */].assign(options, this.options.menuOptions);
|
|
15252
15640
|
this.conditionMenu = new popup_menu_PopupMenu(options);
|
|
15253
15641
|
}
|
|
15254
15642
|
//groupMenu
|
|
@@ -15278,7 +15666,7 @@ var query_panel_QueryPanel = /** @class */ (function (_super) {
|
|
|
15278
15666
|
}
|
|
15279
15667
|
];
|
|
15280
15668
|
var options = { items: items, adjustHeight: this.options.adjustEntitiesMenuHeight, id: menuId, domWriteItemsId: this.options.domWriteItemsId, showSearchBoxAfter: 100, showSelected: true };
|
|
15281
|
-
public_api["
|
|
15669
|
+
public_api["i" /* utils */].assign(options, this.options.menuOptions);
|
|
15282
15670
|
this.groupMenu = new popup_menu_PopupMenu(options);
|
|
15283
15671
|
}
|
|
15284
15672
|
//rootGroupMenu
|
|
@@ -15296,7 +15684,7 @@ var query_panel_QueryPanel = /** @class */ (function (_super) {
|
|
|
15296
15684
|
}
|
|
15297
15685
|
];
|
|
15298
15686
|
var options = { items: items, adjustHeight: this.options.adjustEntitiesMenuHeight, id: menuId, domWriteItemsId: this.options.domWriteItemsId, showSearchBoxAfter: 100, showSelected: true };
|
|
15299
|
-
public_api["
|
|
15687
|
+
public_api["i" /* utils */].assign(options, this.options.menuOptions);
|
|
15300
15688
|
this.rootGroupMenu = new popup_menu_PopupMenu(options);
|
|
15301
15689
|
}
|
|
15302
15690
|
};
|
|
@@ -15313,7 +15701,7 @@ var query_panel_QueryPanel = /** @class */ (function (_super) {
|
|
|
15313
15701
|
};
|
|
15314
15702
|
});
|
|
15315
15703
|
var options = { items: itemList, adjustHeight: this.options.adjustEntitiesMenuHeight, id: menuId, domWriteItemsId: this.options.domWriteItemsId };
|
|
15316
|
-
public_api["
|
|
15704
|
+
public_api["i" /* utils */].assign(options, this.options.menuOptions);
|
|
15317
15705
|
this.linkTypeMenu = new popup_menu_PopupMenu(options);
|
|
15318
15706
|
};
|
|
15319
15707
|
QueryPanel.prototype.toggleConditionPicked = function (condition, force) {
|
|
@@ -15427,7 +15815,7 @@ var filter_bar_FilterBar = /** @class */ (function (_super) {
|
|
|
15427
15815
|
this.attachQueryObserver();
|
|
15428
15816
|
};
|
|
15429
15817
|
FilterBar.prototype.setOptions = function (options) {
|
|
15430
|
-
this.options = public_api["
|
|
15818
|
+
this.options = public_api["i" /* utils */].assignDeep(this.options, options);
|
|
15431
15819
|
};
|
|
15432
15820
|
FilterBar.prototype.applyBtnClick = function (ev) {
|
|
15433
15821
|
this.applyFilter();
|
|
@@ -15744,7 +16132,7 @@ var eq_result_html_grid_EqHtmlGrid = /** @class */ (function (_super) {
|
|
|
15744
16132
|
this.setOptions(options);
|
|
15745
16133
|
};
|
|
15746
16134
|
EqHtmlGrid.prototype.setOptions = function (options) {
|
|
15747
|
-
public_api["
|
|
16135
|
+
public_api["i" /* utils */].assignDeep(this.options, options);
|
|
15748
16136
|
};
|
|
15749
16137
|
/**
|
|
15750
16138
|
* Refresh widget implementation
|
|
@@ -15927,7 +16315,7 @@ var grid_Grid = /** @class */ (function (_super) {
|
|
|
15927
16315
|
Grid.prototype.init = function (context, options) {
|
|
15928
16316
|
_super.prototype.init.call(this, context, options);
|
|
15929
16317
|
if (options) {
|
|
15930
|
-
public_api["
|
|
16318
|
+
public_api["i" /* utils */].assignDeep(this.options, options);
|
|
15931
16319
|
}
|
|
15932
16320
|
};
|
|
15933
16321
|
/**
|
|
@@ -16016,9 +16404,9 @@ var easy_grid_widget_EasyGridWidget = /** @class */ (function (_super) {
|
|
|
16016
16404
|
EasyGridWidget.prototype.init = function (context, options) {
|
|
16017
16405
|
var _this = this;
|
|
16018
16406
|
_super.prototype.init.call(this, context, options);
|
|
16019
|
-
var gridOptions = __assign({}, options, { slot: this.slot, dataTable: context.resultTable });
|
|
16020
|
-
this.options = public_api["
|
|
16021
|
-
gridOptions.
|
|
16407
|
+
var gridOptions = __assign(__assign({}, options), { slot: this.slot, dataTable: context.resultTable });
|
|
16408
|
+
this.options = public_api["i" /* utils */].assign(this.options, options);
|
|
16409
|
+
gridOptions.onPlusButtonClick = function (ev) { return _this.addColumnClickHandler(ev); };
|
|
16022
16410
|
gridOptions.onColumnMoved = function (ev) { return _this.columnMovedHandler(ev); };
|
|
16023
16411
|
if (gridOptions.aggregates) {
|
|
16024
16412
|
this.hasCustomTotalsSettings = true;
|
|
@@ -16089,7 +16477,7 @@ var easy_grid_widget_EasyGridWidget = /** @class */ (function (_super) {
|
|
|
16089
16477
|
}
|
|
16090
16478
|
var entitiesList = model.getEntitiesTree({ addUIC: false, addUIR: true, addUIS: false });
|
|
16091
16479
|
var options = { items: entitiesList, id: menuId };
|
|
16092
|
-
public_api["
|
|
16480
|
+
public_api["i" /* utils */].assign(options, this.options.menuOptions);
|
|
16093
16481
|
this.entitiesMenu = new popup_menu_PopupMenu(options);
|
|
16094
16482
|
};
|
|
16095
16483
|
EasyGridWidget.prototype.getModel = function () {
|
|
@@ -16116,7 +16504,7 @@ var easy_grid_widget_EasyGridWidget = /** @class */ (function (_super) {
|
|
|
16116
16504
|
};
|
|
16117
16505
|
EasyGridWidget.prototype.columnMovedHandler = function (ev) {
|
|
16118
16506
|
var query = this.getQuery();
|
|
16119
|
-
var oldIndex = public_api["
|
|
16507
|
+
var oldIndex = public_api["i" /* utils */].findItemIndexById(query.getColumns(), ev.columnId);
|
|
16120
16508
|
if (oldIndex >= 0) {
|
|
16121
16509
|
query.moveColumn(oldIndex, ev.newIndex);
|
|
16122
16510
|
query.fireChangedEvent({
|
|
@@ -16382,7 +16770,7 @@ var manage_drilldown_widget_ManageDrillDownWidget = /** @class */ (function (_su
|
|
|
16382
16770
|
model.runThroughEntities(function (attr) {
|
|
16383
16771
|
var opIdx = attr.operators.indexOf(op.id);
|
|
16384
16772
|
if (opIdx > 0) {
|
|
16385
|
-
public_api["
|
|
16773
|
+
public_api["i" /* utils */].moveArrayItem(attr.operators, opIdx, 0);
|
|
16386
16774
|
}
|
|
16387
16775
|
}, null);
|
|
16388
16776
|
this.ddQuery = new external_easyqueryCore_["Query"](model, null, {
|
|
@@ -16544,10 +16932,11 @@ var export_dialog_ExportDialog = /** @class */ (function () {
|
|
|
16544
16932
|
|
|
16545
16933
|
// CONCATENATED MODULE: ./src/facets/result_facet.ts
|
|
16546
16934
|
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16935
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16547
16936
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
16548
16937
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
16549
16938
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
16550
|
-
function step(result) { result.done ? resolve(result.value) :
|
|
16939
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
16551
16940
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
16552
16941
|
});
|
|
16553
16942
|
};
|
|
@@ -16593,7 +16982,7 @@ var result_facet_ResultFacet = /** @class */ (function () {
|
|
|
16593
16982
|
this.downloadAllClickHandler = function () {
|
|
16594
16983
|
var resultTable = _this.getContext().resultTable;
|
|
16595
16984
|
if (!resultTable.elasticChunks) {
|
|
16596
|
-
var
|
|
16985
|
+
var nextChunkStart_1 = resultTable.getCachedRows().length;
|
|
16597
16986
|
var recordsToLoad_1 = resultTable.getTotal() - resultTable.getCachedCount();
|
|
16598
16987
|
var ds = _this.getDialogService();
|
|
16599
16988
|
var dlg_1 = ds.openProgress({
|
|
@@ -16605,27 +16994,21 @@ var result_facet_ResultFacet = /** @class */ (function () {
|
|
|
16605
16994
|
determinated: true
|
|
16606
16995
|
});
|
|
16607
16996
|
var loadedRecords_1 = 0;
|
|
16608
|
-
|
|
16609
|
-
|
|
16610
|
-
|
|
16611
|
-
|
|
16612
|
-
|
|
16613
|
-
|
|
16614
|
-
|
|
16615
|
-
|
|
16616
|
-
|
|
16617
|
-
|
|
16618
|
-
|
|
16619
|
-
|
|
16620
|
-
|
|
16621
|
-
|
|
16622
|
-
|
|
16623
|
-
}, 10);
|
|
16624
|
-
};
|
|
16625
|
-
for (var _i = 0, chunksToLoad_1 = chunksToLoad; _i < chunksToLoad_1.length; _i++) {
|
|
16626
|
-
var chunk = chunksToLoad_1[_i];
|
|
16627
|
-
_loop_1(chunk);
|
|
16628
|
-
}
|
|
16997
|
+
setTimeout(function () {
|
|
16998
|
+
resultTable.getRows({ offset: nextChunkStart_1, limit: recordsToLoad_1 })
|
|
16999
|
+
.then(function (_) {
|
|
17000
|
+
loadedRecords_1 += _.length;
|
|
17001
|
+
var progress = loadedRecords_1 / recordsToLoad_1;
|
|
17002
|
+
dlg_1.updateContent(public_api["g" /* i18n */].getText('Facets', 'LoadDataDlgContent')
|
|
17003
|
+
.replace('{loadedRecs}', "" + loadedRecords_1)
|
|
17004
|
+
.replace('{totalRecs}', "" + recordsToLoad_1));
|
|
17005
|
+
dlg_1.updateProgress(progress);
|
|
17006
|
+
})
|
|
17007
|
+
.catch(function (error) {
|
|
17008
|
+
dlg_1.submit();
|
|
17009
|
+
_this.getContext().throwError(error);
|
|
17010
|
+
});
|
|
17011
|
+
}, 10);
|
|
16629
17012
|
}
|
|
16630
17013
|
else {
|
|
16631
17014
|
var ds = _this.getDialogService();
|
|
@@ -16644,7 +17027,7 @@ var result_facet_ResultFacet = /** @class */ (function () {
|
|
|
16644
17027
|
});
|
|
16645
17028
|
}
|
|
16646
17029
|
};
|
|
16647
|
-
public_api["
|
|
17030
|
+
public_api["i" /* utils */].assignDeep(this.options, options);
|
|
16648
17031
|
}
|
|
16649
17032
|
ResultFacet.prototype.init = function (slot) {
|
|
16650
17033
|
this.slot = slot;
|
|
@@ -16726,6 +17109,11 @@ var result_facet_ResultFacet = /** @class */ (function () {
|
|
|
16726
17109
|
var resultTable = context.resultTable;
|
|
16727
17110
|
return (resultTable.getCachedCount() == resultTable.getTotal());
|
|
16728
17111
|
};
|
|
17112
|
+
ResultFacet.prototype.showErrorMessage = function (message) {
|
|
17113
|
+
this.displayMessageDiv.innerHTML = message;
|
|
17114
|
+
this.displayMessageDiv.classList.add(this.cssPrefix + "-error-message");
|
|
17115
|
+
Object(lib_public_api["i" /* domel */])(this.displayMessageDiv).show();
|
|
17116
|
+
};
|
|
16729
17117
|
ResultFacet.prototype.showUnableDisplayMessage = function (message) {
|
|
16730
17118
|
var context = this.getContext();
|
|
16731
17119
|
var resultTable = context.resultTable;
|
|
@@ -16769,14 +17157,13 @@ var result_facet_ResultFacet = /** @class */ (function () {
|
|
|
16769
17157
|
};
|
|
16770
17158
|
ResultFacet.prototype.loadElasticChunk = function () {
|
|
16771
17159
|
return __awaiter(this, void 0, void 0, function () {
|
|
16772
|
-
var resultTable,
|
|
17160
|
+
var resultTable, nextChunkStart;
|
|
16773
17161
|
var _this = this;
|
|
16774
17162
|
return __generator(this, function (_a) {
|
|
16775
17163
|
resultTable = this.getContext().resultTable;
|
|
16776
|
-
|
|
16777
|
-
lastChunk = chunks[chunks.length - 1];
|
|
17164
|
+
nextChunkStart = resultTable.getCachedRows().length;
|
|
16778
17165
|
//next chunk
|
|
16779
|
-
return [2 /*return*/, resultTable.getRows({ offset:
|
|
17166
|
+
return [2 /*return*/, resultTable.getRows({ offset: nextChunkStart, limit: resultTable.chunkSize })
|
|
16780
17167
|
.then(function (_) {
|
|
16781
17168
|
return resultTable.totalIsKnown()
|
|
16782
17169
|
? Promise.resolve()
|
|
@@ -16785,33 +17172,6 @@ var result_facet_ResultFacet = /** @class */ (function () {
|
|
|
16785
17172
|
});
|
|
16786
17173
|
});
|
|
16787
17174
|
};
|
|
16788
|
-
ResultFacet.prototype.getChunksForLoading = function () {
|
|
16789
|
-
var resultTable = this.getContext().resultTable;
|
|
16790
|
-
var chunkSize = resultTable.chunkSize;
|
|
16791
|
-
var cachedChunks = resultTable.getCachedChunks();
|
|
16792
|
-
var chunksToLoad = [];
|
|
16793
|
-
if (cachedChunks[0].offset != 0) {
|
|
16794
|
-
chunksToLoad.push({ offset: 0 });
|
|
16795
|
-
}
|
|
16796
|
-
for (var i = 1; i < cachedChunks.length; i++) {
|
|
16797
|
-
var diffOffset = cachedChunks[i].offset - cachedChunks[i - 1].offset - chunkSize;
|
|
16798
|
-
if (diffOffset >= chunkSize) {
|
|
16799
|
-
var numbOfChunks = diffOffset / chunkSize;
|
|
16800
|
-
for (var j = 1; j <= numbOfChunks; j++) {
|
|
16801
|
-
chunksToLoad.push({ offset: cachedChunks[i - 1].offset + j * chunkSize });
|
|
16802
|
-
}
|
|
16803
|
-
}
|
|
16804
|
-
}
|
|
16805
|
-
var lastChunk = cachedChunks[cachedChunks.length - 1];
|
|
16806
|
-
var diff = resultTable.getTotal() - lastChunk.offset;
|
|
16807
|
-
if (diff >= chunkSize) {
|
|
16808
|
-
var numbOfChunks = diff / chunkSize;
|
|
16809
|
-
for (var j = 1; j <= numbOfChunks; j++) {
|
|
16810
|
-
chunksToLoad.push({ offset: lastChunk.offset + j * chunkSize });
|
|
16811
|
-
}
|
|
16812
|
-
}
|
|
16813
|
-
return chunksToLoad;
|
|
16814
|
-
};
|
|
16815
17175
|
ResultFacet.prototype.onResize = function () {
|
|
16816
17176
|
};
|
|
16817
17177
|
return ResultFacet;
|
|
@@ -16925,7 +17285,7 @@ var chart_widget_ChartWidget = /** @class */ (function (_super) {
|
|
|
16925
17285
|
this.render();
|
|
16926
17286
|
};
|
|
16927
17287
|
ChartWidget.prototype.setOptions = function (options) {
|
|
16928
|
-
public_api["
|
|
17288
|
+
public_api["i" /* utils */].assignDeep(this.options, options);
|
|
16929
17289
|
this.supportedChartTypes = this.getSupportedChartTypes();
|
|
16930
17290
|
if (this.supportedChartTypes.length == 0) {
|
|
16931
17291
|
throw Error("Chart widget should support at least one chart type");
|
|
@@ -16992,7 +17352,7 @@ var chart_widget_ChartWidget = /** @class */ (function (_super) {
|
|
|
16992
17352
|
var colType = column.type;
|
|
16993
17353
|
var colLabel = column.label;
|
|
16994
17354
|
this.potentialLabelColumns.push({ idx: i, label: colLabel });
|
|
16995
|
-
if (public_api["
|
|
17355
|
+
if (public_api["i" /* utils */].isNumericType(colType)) {
|
|
16996
17356
|
this.potentialDataColumns.push({ idx: i, label: colLabel });
|
|
16997
17357
|
}
|
|
16998
17358
|
}
|
|
@@ -17845,21 +18205,25 @@ var pivot_table_facet_PivotTableFacet = /** @class */ (function (_super) {
|
|
|
17845
18205
|
PivotTableFacet.prototype.init = function (slot) {
|
|
17846
18206
|
var _this = this;
|
|
17847
18207
|
_super.prototype.init.call(this, slot);
|
|
18208
|
+
this.options.maxRowCount = this.options.maxRowCount || 500;
|
|
18209
|
+
this.options.viewportRowsCount = this.options.viewportRowsCount || 50;
|
|
17848
18210
|
this.grid = new lib_public_api["e" /* EasyGrid */]({
|
|
17849
18211
|
slot: this.contentDiv,
|
|
17850
18212
|
dataTable: this.pivotTable,
|
|
17851
18213
|
paging: {
|
|
17852
|
-
enabled: false
|
|
18214
|
+
enabled: false,
|
|
18215
|
+
pageSize: this.options.maxRowCount
|
|
17853
18216
|
},
|
|
18217
|
+
viewportRowsCount: this.options.viewportRowsCount,
|
|
17854
18218
|
useRowNumeration: false,
|
|
17855
|
-
|
|
18219
|
+
showPlusButton: false,
|
|
17856
18220
|
allowDragDrop: false,
|
|
17857
18221
|
onGetCellRenderer: function (column, defaultRenderer) {
|
|
17858
18222
|
if (column.dataColumn) {
|
|
17859
18223
|
if (column.dataColumn.id == "total") {
|
|
17860
18224
|
return function (value, column, cell, rowEl) {
|
|
17861
18225
|
defaultRenderer(value, column, cell, rowEl);
|
|
17862
|
-
cell.
|
|
18226
|
+
cell.classList.add('pivot-cell-total');
|
|
17863
18227
|
};
|
|
17864
18228
|
}
|
|
17865
18229
|
if (_this.settings.totalsRow) {
|
|
@@ -18104,14 +18468,14 @@ var pivot_table_facet_PivotTableFacet = /** @class */ (function (_super) {
|
|
|
18104
18468
|
PivotTableFacet.prototype.saveToData = function () {
|
|
18105
18469
|
var data = _super.prototype.saveToData.call(this);
|
|
18106
18470
|
if (this.settings) {
|
|
18107
|
-
public_api["
|
|
18471
|
+
public_api["i" /* utils */].assignDeep(data, this.settings);
|
|
18108
18472
|
}
|
|
18109
18473
|
return data;
|
|
18110
18474
|
};
|
|
18111
18475
|
PivotTableFacet.prototype.loadFromData = function (data) {
|
|
18112
18476
|
_super.prototype.loadFromData.call(this, data);
|
|
18113
18477
|
if (data) {
|
|
18114
|
-
this.settings = public_api["
|
|
18478
|
+
this.settings = public_api["i" /* utils */].assignDeep(this.settings, data);
|
|
18115
18479
|
if (this.settings.aggrFunc == 'AVERAGE') {
|
|
18116
18480
|
this.settings.aggrFunc = AggrFunc.Average;
|
|
18117
18481
|
}
|
|
@@ -18120,6 +18484,18 @@ var pivot_table_facet_PivotTableFacet = /** @class */ (function (_super) {
|
|
|
18120
18484
|
PivotTableFacet.prototype.refreshCore = function () {
|
|
18121
18485
|
this.updatePivotData();
|
|
18122
18486
|
if (this.grid) {
|
|
18487
|
+
var dataSize = this.pivotTable.getTotal();
|
|
18488
|
+
var maxRow = this.grid.options.paging.pageSize;
|
|
18489
|
+
if (dataSize > maxRow) {
|
|
18490
|
+
this.contentDiv.classList.remove('pivot-grid-with-totals');
|
|
18491
|
+
this.showErrorMessage(public_api["g" /* i18n */].getText('Facets', 'ErrTooMuchData'));
|
|
18492
|
+
}
|
|
18493
|
+
if (this.options.viewportRowsCount > dataSize) {
|
|
18494
|
+
this.grid.options.viewportRowsCount = dataSize;
|
|
18495
|
+
}
|
|
18496
|
+
else {
|
|
18497
|
+
this.grid.options.viewportRowsCount = this.options.viewportRowsCount;
|
|
18498
|
+
}
|
|
18123
18499
|
this.grid.refresh();
|
|
18124
18500
|
}
|
|
18125
18501
|
};
|
|
@@ -18168,16 +18544,17 @@ var pivot_table_facet_PivotTableFacet = /** @class */ (function (_super) {
|
|
|
18168
18544
|
this.pivotTable.columns.add({
|
|
18169
18545
|
id: rowLabel + '\\' + colLabel,
|
|
18170
18546
|
label: rowLabel + '\\' + colLabel,
|
|
18547
|
+
description: '',
|
|
18171
18548
|
type: rowType,
|
|
18172
18549
|
dfmt: columnRow.displayFormat,
|
|
18173
18550
|
style: columnRow.style
|
|
18174
18551
|
});
|
|
18175
18552
|
var null_columns = [];
|
|
18176
18553
|
var colFieldFormatter = null;
|
|
18177
|
-
if (public_api["
|
|
18554
|
+
if (public_api["i" /* utils */].isNumericType(columnCol.type)) {
|
|
18178
18555
|
colFieldFormatter = this.formatNumber;
|
|
18179
18556
|
}
|
|
18180
|
-
else if (public_api["
|
|
18557
|
+
else if (public_api["i" /* utils */].getDateDataTypes().indexOf(columnCol.type) >= 0) {
|
|
18181
18558
|
colFieldFormatter = this.formatDate;
|
|
18182
18559
|
}
|
|
18183
18560
|
for (var i = 0; i < colValues.length; i++) {
|
|
@@ -18192,6 +18569,7 @@ var pivot_table_facet_PivotTableFacet = /** @class */ (function (_super) {
|
|
|
18192
18569
|
this.pivotTable.columns.add({
|
|
18193
18570
|
id: colValue,
|
|
18194
18571
|
label: label,
|
|
18572
|
+
description: '',
|
|
18195
18573
|
dfmt: columnField.displayFormat,
|
|
18196
18574
|
type: this.settings.aggrFunc !== AggrFunc.Count
|
|
18197
18575
|
? columnField.type : public_api["d" /* DataType */].Int64,
|
|
@@ -18221,6 +18599,7 @@ var pivot_table_facet_PivotTableFacet = /** @class */ (function (_super) {
|
|
|
18221
18599
|
this.pivotTable.columns.add({
|
|
18222
18600
|
id: "total",
|
|
18223
18601
|
label: public_api["g" /* i18n */].getText('Facets', 'Pivot', 'TotalGridLabel'),
|
|
18602
|
+
description: '',
|
|
18224
18603
|
dfmt: columnField.displayFormat,
|
|
18225
18604
|
type: this.settings.aggrFunc !== AggrFunc.Count
|
|
18226
18605
|
? columnField.type : public_api["d" /* DataType */].Int64
|
|
@@ -18291,10 +18670,10 @@ var pivot_table_facet_PivotTableFacet = /** @class */ (function (_super) {
|
|
|
18291
18670
|
total_row.push(totalByCol);
|
|
18292
18671
|
}
|
|
18293
18672
|
this.pivotTable.addRow(total_row);
|
|
18294
|
-
this.contentDiv.classList.add('pivot-grid-totals
|
|
18673
|
+
this.contentDiv.classList.add('pivot-grid-with-totals');
|
|
18295
18674
|
}
|
|
18296
18675
|
else {
|
|
18297
|
-
this.contentDiv.classList.remove('pivot-grid-totals
|
|
18676
|
+
this.contentDiv.classList.remove('pivot-grid-with-totals');
|
|
18298
18677
|
}
|
|
18299
18678
|
};
|
|
18300
18679
|
PivotTableFacet.prototype.calcAggrFunc = function (func, options) {
|
|
@@ -18633,7 +19012,7 @@ var result_facets_panel_ResultFacetsPanel = /** @class */ (function (_super) {
|
|
|
18633
19012
|
}
|
|
18634
19013
|
if (item.id === FacetType.Chart) {
|
|
18635
19014
|
return _this.context.resultTable.columns.getItems()
|
|
18636
|
-
.filter(function (col) { return public_api["
|
|
19015
|
+
.filter(function (col) { return public_api["i" /* utils */].isNumericType(col.type); })
|
|
18637
19016
|
.length > 0;
|
|
18638
19017
|
}
|
|
18639
19018
|
return true;
|
|
@@ -19037,7 +19416,7 @@ var result_facets_panel_ResultFacetsPanel = /** @class */ (function (_super) {
|
|
|
19037
19416
|
}
|
|
19038
19417
|
};
|
|
19039
19418
|
ResultFacetsPanel.prototype.setOptions = function (options) {
|
|
19040
|
-
public_api["
|
|
19419
|
+
public_api["i" /* utils */].assignDeep(this.options, options);
|
|
19041
19420
|
};
|
|
19042
19421
|
ResultFacetsPanel.prototype.getDialogService = function () {
|
|
19043
19422
|
return this.getContext()
|
|
@@ -19126,7 +19505,7 @@ var export_widget_ExportWidget = /** @class */ (function (_super) {
|
|
|
19126
19505
|
};
|
|
19127
19506
|
ExportWidget.prototype.init = function (context, options) {
|
|
19128
19507
|
_super.prototype.init.call(this, context, options);
|
|
19129
|
-
this.options = public_api["
|
|
19508
|
+
this.options = public_api["i" /* utils */].assignDeep(this.options, options);
|
|
19130
19509
|
this.slot.addEventListener('click', this.clickHandler);
|
|
19131
19510
|
};
|
|
19132
19511
|
ExportWidget.prototype.refreshCore = function () {
|
|
@@ -20087,7 +20466,7 @@ var view_View = /** @class */ (function () {
|
|
|
20087
20466
|
};
|
|
20088
20467
|
View.prototype.initOptions = function (options) {
|
|
20089
20468
|
if (options) {
|
|
20090
|
-
options = public_api["
|
|
20469
|
+
options = public_api["i" /* utils */].assignDeep({}, this.defaultViewOptions, options);
|
|
20091
20470
|
}
|
|
20092
20471
|
else {
|
|
20093
20472
|
options = this.defaultViewOptions;
|
|
@@ -20098,7 +20477,7 @@ var view_View = /** @class */ (function () {
|
|
|
20098
20477
|
if (!options.widgets) {
|
|
20099
20478
|
options.widgets = {};
|
|
20100
20479
|
}
|
|
20101
|
-
this.resultOptions = public_api["
|
|
20480
|
+
this.resultOptions = public_api["i" /* utils */].assignDeep(this.resultOptions, options.result);
|
|
20102
20481
|
if (typeof this.resultOptions.showProcessIndicator == 'undefined') {
|
|
20103
20482
|
this.resultOptions.showProcessIndicator = true;
|
|
20104
20483
|
}
|
|
@@ -20120,7 +20499,7 @@ var view_View = /** @class */ (function () {
|
|
|
20120
20499
|
options.widgets.columnsPanel.titleElementFormat = options.widgets.columnsPanel.titleElementFormat || options.columnTitleFormat;
|
|
20121
20500
|
}
|
|
20122
20501
|
options.widgets.easyGrid.paging =
|
|
20123
|
-
public_api["
|
|
20502
|
+
public_api["i" /* utils */].assignDeep(this.resultOptions.paging, options.widgets.easyGrid.paging);
|
|
20124
20503
|
this.enableExport = options.enableExport || false;
|
|
20125
20504
|
if (!options.widgets.exportWidget) {
|
|
20126
20505
|
options.widgets.exportWidget = {};
|
|
@@ -21737,7 +22116,7 @@ var report_view_ReportView = /** @class */ (function (_super) {
|
|
|
21737
22116
|
var input = document.getElementById("kdlg-dialog-form-input");
|
|
21738
22117
|
var value = input.value;
|
|
21739
22118
|
if (value && value.replace(/\s/g, '').length > 0) {
|
|
21740
|
-
query.setId(public_api["
|
|
22119
|
+
query.setId(public_api["i" /* utils */].generateId(value.replace(/\s/g, '')));
|
|
21741
22120
|
dlg.clearAlert();
|
|
21742
22121
|
dlg.disableButtons();
|
|
21743
22122
|
var header_2 = dlg.getRootElement().querySelector('header');
|
|
@@ -22314,6 +22693,7 @@ function addEasyQueryUITexts() {
|
|
|
22314
22693
|
TabNameLabel: 'Tab name',
|
|
22315
22694
|
ErrQueryChanged: 'FAILED TO DISPLAY. QUERY WAS CHANGED',
|
|
22316
22695
|
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.",
|
|
22696
|
+
ErrTooMuchData: 'Too much data. The grid is not able to display it',
|
|
22317
22697
|
Chart: {
|
|
22318
22698
|
FacetTitle: 'Chart',
|
|
22319
22699
|
DlgTitle: 'Chart settings',
|
|
@@ -22399,69 +22779,6 @@ external_easyqueryCore_["EqServiceProvider"].prototype.getDialogService = functi
|
|
|
22399
22779
|
};
|
|
22400
22780
|
|
|
22401
22781
|
// CONCATENATED MODULE: ./src/public_api.ts
|
|
22402
|
-
/* concated harmony reexport EntitiesPanel */__webpack_require__.d(__webpack_exports__, "EntitiesPanel", function() { return entities_panel_EntitiesPanel; });
|
|
22403
|
-
/* concated harmony reexport ColumnsPanel */__webpack_require__.d(__webpack_exports__, "ColumnsPanel", function() { return columns_panel_ColumnsPanel; });
|
|
22404
|
-
/* concated harmony reexport ColumnsBar */__webpack_require__.d(__webpack_exports__, "ColumnsBar", function() { return columns_bar_ColumnsBar; });
|
|
22405
|
-
/* concated harmony reexport SortingBar */__webpack_require__.d(__webpack_exports__, "SortingBar", function() { return sorting_bar_SortingBar; });
|
|
22406
|
-
/* concated harmony reexport QueryPanel */__webpack_require__.d(__webpack_exports__, "QueryPanel", function() { return query_panel_QueryPanel; });
|
|
22407
|
-
/* concated harmony reexport FilterBar */__webpack_require__.d(__webpack_exports__, "FilterBar", function() { return filter_bar_FilterBar; });
|
|
22408
|
-
/* concated harmony reexport HtmlContentWidget */__webpack_require__.d(__webpack_exports__, "HtmlContentWidget", function() { return html_content_widget_HtmlContentWidget; });
|
|
22409
|
-
/* concated harmony reexport EqHtmlGrid */__webpack_require__.d(__webpack_exports__, "EqHtmlGrid", function() { return eq_result_html_grid_EqHtmlGrid; });
|
|
22410
|
-
/* concated harmony reexport Grid */__webpack_require__.d(__webpack_exports__, "Grid", function() { return grid_Grid; });
|
|
22411
|
-
/* concated harmony reexport EasyGridWidget */__webpack_require__.d(__webpack_exports__, "EasyGridWidget", function() { return easy_grid_widget_EasyGridWidget; });
|
|
22412
|
-
/* concated harmony reexport StatementPanel */__webpack_require__.d(__webpack_exports__, "StatementPanel", function() { return statement_panel_StatementPanel; });
|
|
22413
|
-
/* concated harmony reexport ProcessWidget */__webpack_require__.d(__webpack_exports__, "ProcessWidget", function() { return process_widget_ProcessWidget; });
|
|
22414
|
-
/* concated harmony reexport ManageDrillDownWidget */__webpack_require__.d(__webpack_exports__, "ManageDrillDownWidget", function() { return manage_drilldown_widget_ManageDrillDownWidget; });
|
|
22415
|
-
/* concated harmony reexport ResultFacetsPanel */__webpack_require__.d(__webpack_exports__, "ResultFacetsPanel", function() { return result_facets_panel_ResultFacetsPanel; });
|
|
22416
|
-
/* concated harmony reexport ExportWidget */__webpack_require__.d(__webpack_exports__, "ExportWidget", function() { return export_widget_ExportWidget; });
|
|
22417
|
-
/* concated harmony reexport AggregationBar */__webpack_require__.d(__webpack_exports__, "AggregationBar", function() { return aggregation_bar_AggregationBar; });
|
|
22418
|
-
/* concated harmony reexport ChartType */__webpack_require__.d(__webpack_exports__, "ChartType", function() { return ChartType; });
|
|
22419
|
-
/* concated harmony reexport ChartWidget */__webpack_require__.d(__webpack_exports__, "ChartWidget", function() { return chart_widget_ChartWidget; });
|
|
22420
|
-
/* concated harmony reexport GoogleChartWidget */__webpack_require__.d(__webpack_exports__, "GoogleChartWidget", function() { return chart_widget_google_GoogleChartWidget; });
|
|
22421
|
-
/* concated harmony reexport ChartJsWidget */__webpack_require__.d(__webpack_exports__, "ChartJsWidget", function() { return chart_widget_chartjs_ChartJsWidget; });
|
|
22422
|
-
/* concated harmony reexport BaseElementRenderer */__webpack_require__.d(__webpack_exports__, "BaseElementRenderer", function() { return base_element_renderer_BaseElementRenderer; });
|
|
22423
|
-
/* concated harmony reexport DropDownRenderer */__webpack_require__.d(__webpack_exports__, "DropDownRenderer", function() { return DropDownRenderer; });
|
|
22424
|
-
/* concated harmony reexport AggrSettingsRenderer */__webpack_require__.d(__webpack_exports__, "AggrSettingsRenderer", function() { return aggr_settings_renderer_AggrSettingsRenderer; });
|
|
22425
|
-
/* concated harmony reexport AggrFuncColumnRendererCB */__webpack_require__.d(__webpack_exports__, "AggrFuncColumnRendererCB", function() { return aggrfunc_column_renderer_AggrFuncColumnRendererCB; });
|
|
22426
|
-
/* concated harmony reexport SimpleColumnRendererCB */__webpack_require__.d(__webpack_exports__, "SimpleColumnRendererCB", function() { return simple_column_renderer_SimpleColumnRendererCB; });
|
|
22427
|
-
/* concated harmony reexport ColumnRendererCB */__webpack_require__.d(__webpack_exports__, "ColumnRendererCB", function() { return column_renderer_ColumnRendererCB; });
|
|
22428
|
-
/* concated harmony reexport AggrFuncColumnRendererCP */__webpack_require__.d(__webpack_exports__, "AggrFuncColumnRendererCP", function() { return aggrfunc_column_renderer_AggrFuncColumnRendererCP; });
|
|
22429
|
-
/* concated harmony reexport SimpleColumnRendererCP */__webpack_require__.d(__webpack_exports__, "SimpleColumnRendererCP", function() { return simple_column_renderer_SimpleColumnRendererCP; });
|
|
22430
|
-
/* concated harmony reexport ColumnAction */__webpack_require__.d(__webpack_exports__, "ColumnAction", function() { return ColumnAction; });
|
|
22431
|
-
/* concated harmony reexport ColumnRendererCP */__webpack_require__.d(__webpack_exports__, "ColumnRendererCP", function() { return column_renderer_ColumnRendererCP; });
|
|
22432
|
-
/* concated harmony reexport CustomSqlColumnRendererCP */__webpack_require__.d(__webpack_exports__, "CustomSqlColumnRendererCP", function() { return customsql_column_renderer_CustomSqlColumnRendererCP; });
|
|
22433
|
-
/* concated harmony reexport InputExpressionRenderer */__webpack_require__.d(__webpack_exports__, "InputExpressionRenderer", function() { return input_expression_renderer_InputExpressionRenderer; });
|
|
22434
|
-
/* concated harmony reexport DateTimeExpressionRenderer */__webpack_require__.d(__webpack_exports__, "DateTimeExpressionRenderer", function() { return datetime_expression_render_DateTimeExpressionRenderer; });
|
|
22435
|
-
/* concated harmony reexport ConditionAction */__webpack_require__.d(__webpack_exports__, "ConditionAction", function() { return ConditionAction; });
|
|
22436
|
-
/* concated harmony reexport ConditionRenderer */__webpack_require__.d(__webpack_exports__, "ConditionRenderer", function() { return condition_renderer_ConditionRenderer; });
|
|
22437
|
-
/* concated harmony reexport SimpleConditionRenderer */__webpack_require__.d(__webpack_exports__, "SimpleConditionRenderer", function() { return condition_renderer_SimpleConditionRenderer; });
|
|
22438
|
-
/* concated harmony reexport ConditionGroupRenderer */__webpack_require__.d(__webpack_exports__, "ConditionGroupRenderer", function() { return condition_group_renderer_ConditionGroupRenderer; });
|
|
22439
|
-
/* concated harmony reexport ConditionGroupRowRenderer */__webpack_require__.d(__webpack_exports__, "ConditionGroupRowRenderer", function() { return condition_group_renderer_ConditionGroupRowRenderer; });
|
|
22440
|
-
/* concated harmony reexport AttributeExpressionRenderer */__webpack_require__.d(__webpack_exports__, "AttributeExpressionRenderer", function() { return attribute_expression_renderer_AttributeExpressionRenderer; });
|
|
22441
|
-
/* concated harmony reexport ExpressionRenderer */__webpack_require__.d(__webpack_exports__, "ExpressionRenderer", function() { return expression_renderer_ExpressionRenderer; });
|
|
22442
|
-
/* concated harmony reexport OperatorRenderer */__webpack_require__.d(__webpack_exports__, "OperatorRenderer", function() { return operator_renderer_OperatorRenderer; });
|
|
22443
|
-
/* concated harmony reexport SubQueryExpressionRenderer */__webpack_require__.d(__webpack_exports__, "SubQueryExpressionRenderer", function() { return subquery_expression_renderer_SubQueryExpressionRenderer; });
|
|
22444
|
-
/* concated harmony reexport ListExpressionRenderer */__webpack_require__.d(__webpack_exports__, "ListExpressionRenderer", function() { return list_expression_renderer_ListExpressionRenderer; });
|
|
22445
|
-
/* concated harmony reexport CustomListExpressionRenderer */__webpack_require__.d(__webpack_exports__, "CustomListExpressionRenderer", function() { return list_expression_renderer_CustomListExpressionRenderer; });
|
|
22446
|
-
/* concated harmony reexport SqlListExpressionRenderer */__webpack_require__.d(__webpack_exports__, "SqlListExpressionRenderer", function() { return SqlListExpressionRenderer; });
|
|
22447
|
-
/* concated harmony reexport TextRenderer */__webpack_require__.d(__webpack_exports__, "TextRenderer", function() { return text_renderer_TextRenderer; });
|
|
22448
|
-
/* concated harmony reexport AddRowRenderer */__webpack_require__.d(__webpack_exports__, "AddRowRenderer", function() { return addrow_renderer_AddRowRenderer; });
|
|
22449
|
-
/* concated harmony reexport ResultFacet */__webpack_require__.d(__webpack_exports__, "ResultFacet", function() { return result_facet_ResultFacet; });
|
|
22450
|
-
/* concated harmony reexport DataTableFacet */__webpack_require__.d(__webpack_exports__, "DataTableFacet", function() { return datatable_facet_DataTableFacet; });
|
|
22451
|
-
/* concated harmony reexport ChartFacet */__webpack_require__.d(__webpack_exports__, "ChartFacet", function() { return chart_facet_ChartFacet; });
|
|
22452
|
-
/* concated harmony reexport PivotTableFacet */__webpack_require__.d(__webpack_exports__, "PivotTableFacet", function() { return pivot_table_facet_PivotTableFacet; });
|
|
22453
|
-
/* concated harmony reexport View */__webpack_require__.d(__webpack_exports__, "View", function() { return view_View; });
|
|
22454
|
-
/* concated harmony reexport AdvancedSearchView */__webpack_require__.d(__webpack_exports__, "AdvancedSearchView", function() { return adv_search_view_AdvancedSearchView; });
|
|
22455
|
-
/* concated harmony reexport DataFilterView */__webpack_require__.d(__webpack_exports__, "DataFilterView", function() { return data_filter_view_DataFilterView; });
|
|
22456
|
-
/* concated harmony reexport HtmlDataFilterView */__webpack_require__.d(__webpack_exports__, "HtmlDataFilterView", function() { return html_data_filter_view_HtmlDataFilterView; });
|
|
22457
|
-
/* concated harmony reexport ReportView */__webpack_require__.d(__webpack_exports__, "ReportView", function() { return report_view_ReportView; });
|
|
22458
|
-
/* concated harmony reexport DomDropDownElementBuilder */__webpack_require__.d(__webpack_exports__, "DomDropDownElementBuilder", function() { return DomDropDownElementBuilder; });
|
|
22459
|
-
/* concated harmony reexport dropdown */__webpack_require__.d(__webpack_exports__, "dropdown", function() { return dropdown; });
|
|
22460
|
-
/* concated harmony reexport PopupMenu */__webpack_require__.d(__webpack_exports__, "PopupMenu", function() { return popup_menu_PopupMenu; });
|
|
22461
|
-
/* concated harmony reexport QPEditablePart */__webpack_require__.d(__webpack_exports__, "QPEditablePart", function() { return QPEditablePart; });
|
|
22462
|
-
/* concated harmony reexport FacetType */__webpack_require__.d(__webpack_exports__, "FacetType", function() { return FacetType; });
|
|
22463
|
-
/* concated harmony reexport ExportDialog */__webpack_require__.d(__webpack_exports__, "ExportDialog", function() { return export_dialog_ExportDialog; });
|
|
22464
|
-
/* concated harmony reexport AggrSettingsDialog */__webpack_require__.d(__webpack_exports__, "AggrSettingsDialog", function() { return aggr_settings_dialog_AggrSettingsDialog; });
|
|
22465
22782
|
|
|
22466
22783
|
|
|
22467
22784
|
|