@cubejs-client/react 1.5.9 → 1.5.11
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.
|
@@ -370,36 +370,36 @@ var QueryBuilder = /*#__PURE__*/function (_React$Component) {
|
|
|
370
370
|
_classCallCheck__default['default'](this, QueryBuilder);
|
|
371
371
|
_this = _callSuper(this, QueryBuilder, [props]);
|
|
372
372
|
_defineProperty__default['default'](_this, "fetchMeta", /*#__PURE__*/_asyncToGenerator__default['default'](/*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee() {
|
|
373
|
-
var meta, metaError, richMetaError, metaErrorStack, _error$response, _error$response2;
|
|
374
|
-
return _regeneratorRuntime__default['default'].wrap(function
|
|
373
|
+
var meta, metaError, richMetaError, metaErrorStack, _error$response, _error$response2, _t;
|
|
374
|
+
return _regeneratorRuntime__default['default'].wrap(function (_context) {
|
|
375
375
|
while (1) switch (_context.prev = _context.next) {
|
|
376
376
|
case 0:
|
|
377
377
|
if (_this.cubeApi()) {
|
|
378
|
-
_context.next =
|
|
378
|
+
_context.next = 1;
|
|
379
379
|
break;
|
|
380
380
|
}
|
|
381
381
|
return _context.abrupt("return");
|
|
382
|
-
case
|
|
382
|
+
case 1:
|
|
383
383
|
metaError = null;
|
|
384
384
|
richMetaError = null;
|
|
385
385
|
metaErrorStack = null;
|
|
386
|
-
_context.prev =
|
|
386
|
+
_context.prev = 2;
|
|
387
387
|
_this.setState({
|
|
388
388
|
isFetchingMeta: true
|
|
389
389
|
});
|
|
390
|
-
_context.next =
|
|
390
|
+
_context.next = 3;
|
|
391
391
|
return _this.cubeApi().meta();
|
|
392
|
-
case
|
|
392
|
+
case 3:
|
|
393
393
|
meta = _context.sent;
|
|
394
|
-
_context.next =
|
|
394
|
+
_context.next = 5;
|
|
395
395
|
break;
|
|
396
|
-
case
|
|
397
|
-
_context.prev =
|
|
398
|
-
|
|
399
|
-
metaError = ((_error$response =
|
|
400
|
-
richMetaError =
|
|
401
|
-
metaErrorStack = ((_error$response2 =
|
|
402
|
-
case
|
|
396
|
+
case 4:
|
|
397
|
+
_context.prev = 4;
|
|
398
|
+
_t = _context["catch"](2);
|
|
399
|
+
metaError = ((_error$response = _t.response) === null || _error$response === void 0 ? void 0 : _error$response.plainError) || _t;
|
|
400
|
+
richMetaError = _t;
|
|
401
|
+
metaErrorStack = ((_error$response2 = _t.response) === null || _error$response2 === void 0 || (_error$response2 = _error$response2.stack) === null || _error$response2 === void 0 ? void 0 : _error$response2.replace(_t.message || '', '')) || '';
|
|
402
|
+
case 5:
|
|
403
403
|
_this.setState({
|
|
404
404
|
meta: meta,
|
|
405
405
|
metaError: metaError ? new Error(metaError.message || metaError.toString()) : null,
|
|
@@ -411,11 +411,11 @@ var QueryBuilder = /*#__PURE__*/function (_React$Component) {
|
|
|
411
411
|
// This will catch any new missing members, and also validate the query against the new meta
|
|
412
412
|
_this.updateQuery({});
|
|
413
413
|
});
|
|
414
|
-
case
|
|
414
|
+
case 6:
|
|
415
415
|
case "end":
|
|
416
416
|
return _context.stop();
|
|
417
417
|
}
|
|
418
|
-
}, _callee, null, [[
|
|
418
|
+
}, _callee, null, [[2, 4]]);
|
|
419
419
|
})));
|
|
420
420
|
_this.state = _objectSpread$4(_objectSpread$4({
|
|
421
421
|
query: props.defaultQuery || props.query,
|
|
@@ -436,13 +436,13 @@ var QueryBuilder = /*#__PURE__*/function (_React$Component) {
|
|
|
436
436
|
key: "componentDidMount",
|
|
437
437
|
value: function () {
|
|
438
438
|
var _componentDidMount = _asyncToGenerator__default['default'](/*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee2() {
|
|
439
|
-
return _regeneratorRuntime__default['default'].wrap(function
|
|
439
|
+
return _regeneratorRuntime__default['default'].wrap(function (_context2) {
|
|
440
440
|
while (1) switch (_context2.prev = _context2.next) {
|
|
441
441
|
case 0:
|
|
442
442
|
this.prevContext = this.context;
|
|
443
|
-
_context2.next =
|
|
443
|
+
_context2.next = 1;
|
|
444
444
|
return this.fetchMeta();
|
|
445
|
-
case
|
|
445
|
+
case 1:
|
|
446
446
|
case "end":
|
|
447
447
|
return _context2.stop();
|
|
448
448
|
}
|
|
@@ -460,40 +460,40 @@ var QueryBuilder = /*#__PURE__*/function (_React$Component) {
|
|
|
460
460
|
var _this$prevContext,
|
|
461
461
|
_this$context,
|
|
462
462
|
_this2 = this;
|
|
463
|
-
var _this$props, schemaVersion, onSchemaChange, meta, newMeta;
|
|
464
|
-
return _regeneratorRuntime__default['default'].wrap(function
|
|
463
|
+
var _this$props, schemaVersion, onSchemaChange, meta, newMeta, _t2;
|
|
464
|
+
return _regeneratorRuntime__default['default'].wrap(function (_context4) {
|
|
465
465
|
while (1) switch (_context4.prev = _context4.next) {
|
|
466
466
|
case 0:
|
|
467
467
|
_this$props = this.props, schemaVersion = _this$props.schemaVersion, onSchemaChange = _this$props.onSchemaChange;
|
|
468
468
|
meta = this.state.meta;
|
|
469
469
|
if (!(((_this$prevContext = this.prevContext) === null || _this$prevContext === void 0 ? void 0 : _this$prevContext.cubeApi) !== ((_this$context = this.context) === null || _this$context === void 0 ? void 0 : _this$context.cubeApi))) {
|
|
470
|
-
_context4.next =
|
|
470
|
+
_context4.next = 1;
|
|
471
471
|
break;
|
|
472
472
|
}
|
|
473
473
|
this.prevContext = this.context;
|
|
474
|
-
_context4.next =
|
|
474
|
+
_context4.next = 1;
|
|
475
475
|
return this.fetchMeta();
|
|
476
|
-
case
|
|
476
|
+
case 1:
|
|
477
477
|
if (!(prevProps.schemaVersion !== schemaVersion)) {
|
|
478
|
-
_context4.next =
|
|
478
|
+
_context4.next = 5;
|
|
479
479
|
break;
|
|
480
480
|
}
|
|
481
|
-
_context4.prev =
|
|
482
|
-
_context4.next =
|
|
481
|
+
_context4.prev = 2;
|
|
482
|
+
_context4.next = 3;
|
|
483
483
|
return this.cubeApi().meta();
|
|
484
|
-
case
|
|
484
|
+
case 3:
|
|
485
485
|
newMeta = _context4.sent;
|
|
486
486
|
if (!ramda.equals(newMeta, meta) && typeof onSchemaChange === 'function') {
|
|
487
487
|
onSchemaChange({
|
|
488
488
|
schemaVersion: schemaVersion,
|
|
489
489
|
refresh: function () {
|
|
490
490
|
var _refresh = _asyncToGenerator__default['default'](/*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee3() {
|
|
491
|
-
return _regeneratorRuntime__default['default'].wrap(function
|
|
491
|
+
return _regeneratorRuntime__default['default'].wrap(function (_context3) {
|
|
492
492
|
while (1) switch (_context3.prev = _context3.next) {
|
|
493
493
|
case 0:
|
|
494
|
-
_context3.next =
|
|
494
|
+
_context3.next = 1;
|
|
495
495
|
return _this2.fetchMeta();
|
|
496
|
-
case
|
|
496
|
+
case 1:
|
|
497
497
|
case "end":
|
|
498
498
|
return _context3.stop();
|
|
499
499
|
}
|
|
@@ -506,20 +506,20 @@ var QueryBuilder = /*#__PURE__*/function (_React$Component) {
|
|
|
506
506
|
}()
|
|
507
507
|
});
|
|
508
508
|
}
|
|
509
|
-
_context4.next =
|
|
509
|
+
_context4.next = 5;
|
|
510
510
|
break;
|
|
511
|
-
case
|
|
512
|
-
_context4.prev =
|
|
513
|
-
|
|
511
|
+
case 4:
|
|
512
|
+
_context4.prev = 4;
|
|
513
|
+
_t2 = _context4["catch"](2);
|
|
514
514
|
// eslint-disable-next-line
|
|
515
515
|
this.setState({
|
|
516
|
-
metaError:
|
|
516
|
+
metaError: _t2
|
|
517
517
|
});
|
|
518
|
-
case
|
|
518
|
+
case 5:
|
|
519
519
|
case "end":
|
|
520
520
|
return _context4.stop();
|
|
521
521
|
}
|
|
522
|
-
}, _callee4, this, [[
|
|
522
|
+
}, _callee4, this, [[2, 4]]);
|
|
523
523
|
}));
|
|
524
524
|
function componentDidUpdate(_x) {
|
|
525
525
|
return _componentDidUpdate.apply(this, arguments);
|
|
@@ -809,8 +809,8 @@ var QueryBuilder = /*#__PURE__*/function (_React$Component) {
|
|
|
809
809
|
value: function () {
|
|
810
810
|
var _updateVizState = _asyncToGenerator__default['default'](/*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee5(state) {
|
|
811
811
|
var _this4 = this;
|
|
812
|
-
var _this$props2, setQuery, setVizState, _this$state2, stateQuery, statePivotConfig, chartType, meta, finalState, vizStateSent, handleVizStateChange, runSetters, shouldFetchDryRun, response, _error$response3;
|
|
813
|
-
return _regeneratorRuntime__default['default'].wrap(function
|
|
812
|
+
var _this$props2, setQuery, setVizState, _this$state2, stateQuery, statePivotConfig, chartType, meta, finalState, vizStateSent, handleVizStateChange, runSetters, shouldFetchDryRun, response, _error$response3, _t3;
|
|
813
|
+
return _regeneratorRuntime__default['default'].wrap(function (_context5) {
|
|
814
814
|
while (1) switch (_context5.prev = _context5.next) {
|
|
815
815
|
case 0:
|
|
816
816
|
_this$props2 = this.props, setQuery = _this$props2.setQuery, setVizState = _this$props2.setVizState;
|
|
@@ -859,15 +859,15 @@ var QueryBuilder = /*#__PURE__*/function (_React$Component) {
|
|
|
859
859
|
handleVizStateChange(finalState);
|
|
860
860
|
shouldFetchDryRun = !ramda.equals(ramda.pick(['measures', 'dimensions', 'timeDimensions'], stateQuery), ramda.pick(['measures', 'dimensions', 'timeDimensions'], finalState.query));
|
|
861
861
|
if (!(shouldFetchDryRun && core.isQueryPresent(finalState.query) && finalState.missingMembers.length === 0)) {
|
|
862
|
-
_context5.next =
|
|
862
|
+
_context5.next = 4;
|
|
863
863
|
break;
|
|
864
864
|
}
|
|
865
|
-
_context5.prev =
|
|
866
|
-
_context5.next =
|
|
865
|
+
_context5.prev = 1;
|
|
866
|
+
_context5.next = 2;
|
|
867
867
|
return this.cubeApi().dryRun(finalState.query, {
|
|
868
868
|
mutexObj: this.mutexObj
|
|
869
869
|
});
|
|
870
|
-
case
|
|
870
|
+
case 2:
|
|
871
871
|
response = _context5.sent;
|
|
872
872
|
if (finalState.shouldApplyHeuristicOrder) {
|
|
873
873
|
finalState.query.order = (response.queryOrder || []).reduce(function (memo, current) {
|
|
@@ -882,24 +882,24 @@ var QueryBuilder = /*#__PURE__*/function (_React$Component) {
|
|
|
882
882
|
if (core.isQueryPresent(stateQuery)) {
|
|
883
883
|
runSetters(_objectSpread$4(_objectSpread$4({}, this.state), finalState));
|
|
884
884
|
}
|
|
885
|
-
_context5.next =
|
|
885
|
+
_context5.next = 4;
|
|
886
886
|
break;
|
|
887
|
-
case
|
|
888
|
-
_context5.prev =
|
|
889
|
-
|
|
887
|
+
case 3:
|
|
888
|
+
_context5.prev = 3;
|
|
889
|
+
_t3 = _context5["catch"](1);
|
|
890
890
|
this.setState({
|
|
891
|
-
queryError: new Error(((_error$response3 =
|
|
892
|
-
richQueryError: new Error(
|
|
891
|
+
queryError: new Error(((_error$response3 = _t3.response) === null || _error$response3 === void 0 ? void 0 : _error$response3.plainError) || _t3.message),
|
|
892
|
+
richQueryError: new Error(_t3.message || _t3.toString())
|
|
893
893
|
});
|
|
894
|
-
case
|
|
894
|
+
case 4:
|
|
895
895
|
this.setState(finalState, function () {
|
|
896
896
|
return handleVizStateChange(_this4.state);
|
|
897
897
|
});
|
|
898
|
-
case
|
|
898
|
+
case 5:
|
|
899
899
|
case "end":
|
|
900
900
|
return _context5.stop();
|
|
901
901
|
}
|
|
902
|
-
}, _callee5, this, [[
|
|
902
|
+
}, _callee5, this, [[1, 3]]);
|
|
903
903
|
}));
|
|
904
904
|
function updateVizState(_x2) {
|
|
905
905
|
return _updateVizState.apply(this, arguments);
|
|
@@ -983,9 +983,9 @@ var QueryBuilder = /*#__PURE__*/function (_React$Component) {
|
|
|
983
983
|
}
|
|
984
984
|
}, {
|
|
985
985
|
key: "resolveMember",
|
|
986
|
-
value: function resolveMember(type,
|
|
987
|
-
var meta =
|
|
988
|
-
query =
|
|
986
|
+
value: function resolveMember(type, _ref0) {
|
|
987
|
+
var meta = _ref0.meta,
|
|
988
|
+
query = _ref0.query;
|
|
989
989
|
if (!meta) {
|
|
990
990
|
return [];
|
|
991
991
|
}
|
|
@@ -1087,8 +1087,9 @@ function useCubeFetch(method) {
|
|
|
1087
1087
|
coreOptions,
|
|
1088
1088
|
args,
|
|
1089
1089
|
_response,
|
|
1090
|
-
_args = arguments
|
|
1091
|
-
|
|
1090
|
+
_args = arguments,
|
|
1091
|
+
_t;
|
|
1092
|
+
return _regeneratorRuntime__default['default'].wrap(function (_context) {
|
|
1092
1093
|
while (1) switch (_context.prev = _context.next) {
|
|
1093
1094
|
case 0:
|
|
1094
1095
|
loadOptions = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
@@ -1097,7 +1098,7 @@ function useCubeFetch(method) {
|
|
|
1097
1098
|
query = loadOptions.query || options.query;
|
|
1098
1099
|
queryCondition = method === 'meta' ? true : query && core.isQueryPresent(query);
|
|
1099
1100
|
if (!(cubeApi && (ignoreSkip || !skip) && queryCondition)) {
|
|
1100
|
-
_context.next =
|
|
1101
|
+
_context.next = 4;
|
|
1101
1102
|
break;
|
|
1102
1103
|
}
|
|
1103
1104
|
setError(null);
|
|
@@ -1110,30 +1111,30 @@ function useCubeFetch(method) {
|
|
|
1110
1111
|
mutexKey: method
|
|
1111
1112
|
};
|
|
1112
1113
|
args = method === 'meta' ? [coreOptions] : [query, coreOptions];
|
|
1113
|
-
_context.prev =
|
|
1114
|
-
_context.next =
|
|
1114
|
+
_context.prev = 1;
|
|
1115
|
+
_context.next = 2;
|
|
1115
1116
|
return cubeApi[method].apply(cubeApi, args);
|
|
1116
|
-
case
|
|
1117
|
+
case 2:
|
|
1117
1118
|
_response = _context.sent;
|
|
1118
1119
|
setResponse({
|
|
1119
1120
|
response: _response,
|
|
1120
1121
|
isLoading: false
|
|
1121
1122
|
});
|
|
1122
|
-
_context.next =
|
|
1123
|
+
_context.next = 4;
|
|
1123
1124
|
break;
|
|
1124
|
-
case
|
|
1125
|
-
_context.prev =
|
|
1126
|
-
|
|
1127
|
-
setError(
|
|
1125
|
+
case 3:
|
|
1126
|
+
_context.prev = 3;
|
|
1127
|
+
_t = _context["catch"](1);
|
|
1128
|
+
setError(_t);
|
|
1128
1129
|
setResponse({
|
|
1129
1130
|
isLoading: false,
|
|
1130
1131
|
response: null
|
|
1131
1132
|
});
|
|
1132
|
-
case
|
|
1133
|
+
case 4:
|
|
1133
1134
|
case "end":
|
|
1134
1135
|
return _context.stop();
|
|
1135
1136
|
}
|
|
1136
|
-
}, _callee, null, [[
|
|
1137
|
+
}, _callee, null, [[1, 3]]);
|
|
1137
1138
|
}));
|
|
1138
1139
|
return _load.apply(this, arguments);
|
|
1139
1140
|
}
|
|
@@ -1200,9 +1201,9 @@ function useCubeQuery(query) {
|
|
|
1200
1201
|
progress = _useState8[0],
|
|
1201
1202
|
setProgress = _useState8[1];
|
|
1202
1203
|
var _useState9 = React.useState(null),
|
|
1203
|
-
|
|
1204
|
-
error =
|
|
1205
|
-
setError =
|
|
1204
|
+
_useState0 = _slicedToArray__default['default'](_useState9, 2),
|
|
1205
|
+
error = _useState0[0],
|
|
1206
|
+
setError = _useState0[1];
|
|
1206
1207
|
var context = React.useContext(CubeContext);
|
|
1207
1208
|
var subscribeRequest = null;
|
|
1208
1209
|
var progressCallback = function progressCallback(_ref) {
|
|
@@ -1214,50 +1215,50 @@ function useCubeQuery(query) {
|
|
|
1214
1215
|
}
|
|
1215
1216
|
function _fetch() {
|
|
1216
1217
|
_fetch = _asyncToGenerator__default['default'](/*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee2() {
|
|
1217
|
-
var resetResultSetOnChange, cubeApi, _context$options, response;
|
|
1218
|
-
return _regeneratorRuntime__default['default'].wrap(function
|
|
1218
|
+
var resetResultSetOnChange, cubeApi, _context$options, response, _t2;
|
|
1219
|
+
return _regeneratorRuntime__default['default'].wrap(function (_context2) {
|
|
1219
1220
|
while (1) switch (_context2.prev = _context2.next) {
|
|
1220
1221
|
case 0:
|
|
1221
1222
|
resetResultSetOnChange = options.resetResultSetOnChange;
|
|
1222
1223
|
cubeApi = options.cubeApi || (context === null || context === void 0 ? void 0 : context.cubeApi);
|
|
1223
1224
|
if (cubeApi) {
|
|
1224
|
-
_context2.next =
|
|
1225
|
+
_context2.next = 1;
|
|
1225
1226
|
break;
|
|
1226
1227
|
}
|
|
1227
1228
|
throw new Error('Cube API client is not provided');
|
|
1228
|
-
case
|
|
1229
|
+
case 1:
|
|
1229
1230
|
if (resetResultSetOnChange) {
|
|
1230
1231
|
setResultSet(null);
|
|
1231
1232
|
}
|
|
1232
1233
|
setError(null);
|
|
1233
1234
|
setLoading(true);
|
|
1234
|
-
_context2.prev =
|
|
1235
|
-
_context2.next =
|
|
1235
|
+
_context2.prev = 2;
|
|
1236
|
+
_context2.next = 3;
|
|
1236
1237
|
return cubeApi.load(query, {
|
|
1237
1238
|
mutexObj: mutexRef.current,
|
|
1238
1239
|
mutexKey: 'query',
|
|
1239
1240
|
progressCallback: progressCallback,
|
|
1240
1241
|
castNumerics: Boolean(typeof options.castNumerics === 'boolean' ? options.castNumerics : context === null || context === void 0 || (_context$options = context.options) === null || _context$options === void 0 ? void 0 : _context$options.castNumerics)
|
|
1241
1242
|
});
|
|
1242
|
-
case
|
|
1243
|
+
case 3:
|
|
1243
1244
|
response = _context2.sent;
|
|
1244
1245
|
setResultSet(response);
|
|
1245
1246
|
setProgress(null);
|
|
1246
|
-
_context2.next =
|
|
1247
|
+
_context2.next = 5;
|
|
1247
1248
|
break;
|
|
1248
|
-
case
|
|
1249
|
-
_context2.prev =
|
|
1250
|
-
|
|
1251
|
-
setError(
|
|
1249
|
+
case 4:
|
|
1250
|
+
_context2.prev = 4;
|
|
1251
|
+
_t2 = _context2["catch"](2);
|
|
1252
|
+
setError(_t2);
|
|
1252
1253
|
setResultSet(null);
|
|
1253
1254
|
setProgress(null);
|
|
1254
|
-
case
|
|
1255
|
+
case 5:
|
|
1255
1256
|
setLoading(false);
|
|
1256
|
-
case
|
|
1257
|
+
case 6:
|
|
1257
1258
|
case "end":
|
|
1258
1259
|
return _context2.stop();
|
|
1259
1260
|
}
|
|
1260
|
-
}, _callee2, null, [[
|
|
1261
|
+
}, _callee2, null, [[2, 4]]);
|
|
1261
1262
|
}));
|
|
1262
1263
|
return _fetch.apply(this, arguments);
|
|
1263
1264
|
}
|
|
@@ -1274,11 +1275,12 @@ function useCubeQuery(query) {
|
|
|
1274
1275
|
}
|
|
1275
1276
|
function _loadQuery() {
|
|
1276
1277
|
_loadQuery = _asyncToGenerator__default['default'](/*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee() {
|
|
1277
|
-
|
|
1278
|
+
var _t;
|
|
1279
|
+
return _regeneratorRuntime__default['default'].wrap(function (_context) {
|
|
1278
1280
|
while (1) switch (_context.prev = _context.next) {
|
|
1279
1281
|
case 0:
|
|
1280
1282
|
if (!(!skip && core.isQueryPresent(query))) {
|
|
1281
|
-
_context.next =
|
|
1283
|
+
_context.next = 7;
|
|
1282
1284
|
break;
|
|
1283
1285
|
}
|
|
1284
1286
|
if (!core.areQueriesEqual(currentQuery, query)) {
|
|
@@ -1289,18 +1291,18 @@ function useCubeQuery(query) {
|
|
|
1289
1291
|
}
|
|
1290
1292
|
setError(null);
|
|
1291
1293
|
setLoading(true);
|
|
1292
|
-
_context.prev =
|
|
1294
|
+
_context.prev = 1;
|
|
1293
1295
|
if (!subscribeRequest) {
|
|
1294
|
-
_context.next =
|
|
1296
|
+
_context.next = 3;
|
|
1295
1297
|
break;
|
|
1296
1298
|
}
|
|
1297
|
-
_context.next =
|
|
1299
|
+
_context.next = 2;
|
|
1298
1300
|
return subscribeRequest.unsubscribe();
|
|
1299
|
-
case
|
|
1301
|
+
case 2:
|
|
1300
1302
|
subscribeRequest = null;
|
|
1301
|
-
case
|
|
1303
|
+
case 3:
|
|
1302
1304
|
if (!options.subscribe) {
|
|
1303
|
-
_context.next =
|
|
1305
|
+
_context.next = 4;
|
|
1304
1306
|
break;
|
|
1305
1307
|
}
|
|
1306
1308
|
subscribeRequest = cubeApi.subscribe(query, {
|
|
@@ -1316,26 +1318,26 @@ function useCubeQuery(query) {
|
|
|
1316
1318
|
setLoading(false);
|
|
1317
1319
|
setProgress(null);
|
|
1318
1320
|
});
|
|
1319
|
-
_context.next =
|
|
1321
|
+
_context.next = 5;
|
|
1320
1322
|
break;
|
|
1321
|
-
case
|
|
1322
|
-
_context.next =
|
|
1323
|
+
case 4:
|
|
1324
|
+
_context.next = 5;
|
|
1323
1325
|
return fetch();
|
|
1324
|
-
case
|
|
1325
|
-
_context.next =
|
|
1326
|
+
case 5:
|
|
1327
|
+
_context.next = 7;
|
|
1326
1328
|
break;
|
|
1327
|
-
case
|
|
1328
|
-
_context.prev =
|
|
1329
|
-
|
|
1330
|
-
setError(
|
|
1329
|
+
case 6:
|
|
1330
|
+
_context.prev = 6;
|
|
1331
|
+
_t = _context["catch"](1);
|
|
1332
|
+
setError(_t);
|
|
1331
1333
|
setResultSet(null);
|
|
1332
1334
|
setLoading(false);
|
|
1333
1335
|
setProgress(null);
|
|
1334
|
-
case
|
|
1336
|
+
case 7:
|
|
1335
1337
|
case "end":
|
|
1336
1338
|
return _context.stop();
|
|
1337
1339
|
}
|
|
1338
|
-
}, _callee, null, [[
|
|
1340
|
+
}, _callee, null, [[1, 6]]);
|
|
1339
1341
|
}));
|
|
1340
1342
|
return _loadQuery.apply(this, arguments);
|
|
1341
1343
|
}
|