@cubejs-client/react 1.5.10 → 1.5.12
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/cubejs-client-react.cjs.js +113 -109
- package/dist/cubejs-client-react.cjs.js.map +1 -1
- package/dist/cubejs-client-react.esm.js +4 -1
- package/dist/cubejs-client-react.esm.js.map +1 -1
- package/dist/cubejs-client-react.umd.js +113 -109
- package/dist/cubejs-client-react.umd.js.map +1 -1
- package/package.json +3 -3
- package/src/hooks/cube-fetch.js +1 -0
|
@@ -324,36 +324,36 @@
|
|
|
324
324
|
_classCallCheck__default['default'](this, QueryBuilder);
|
|
325
325
|
_this = _callSuper(this, QueryBuilder, [props]);
|
|
326
326
|
_defineProperty__default['default'](_this, "fetchMeta", /*#__PURE__*/_asyncToGenerator__default['default'](/*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee() {
|
|
327
|
-
var meta, metaError, richMetaError, metaErrorStack, _error$response, _error$response2;
|
|
328
|
-
return _regeneratorRuntime__default['default'].wrap(function
|
|
327
|
+
var meta, metaError, richMetaError, metaErrorStack, _error$response, _error$response2, _t;
|
|
328
|
+
return _regeneratorRuntime__default['default'].wrap(function (_context) {
|
|
329
329
|
while (1) switch (_context.prev = _context.next) {
|
|
330
330
|
case 0:
|
|
331
331
|
if (_this.cubeApi()) {
|
|
332
|
-
_context.next =
|
|
332
|
+
_context.next = 1;
|
|
333
333
|
break;
|
|
334
334
|
}
|
|
335
335
|
return _context.abrupt("return");
|
|
336
|
-
case
|
|
336
|
+
case 1:
|
|
337
337
|
metaError = null;
|
|
338
338
|
richMetaError = null;
|
|
339
339
|
metaErrorStack = null;
|
|
340
|
-
_context.prev =
|
|
340
|
+
_context.prev = 2;
|
|
341
341
|
_this.setState({
|
|
342
342
|
isFetchingMeta: true
|
|
343
343
|
});
|
|
344
|
-
_context.next =
|
|
344
|
+
_context.next = 3;
|
|
345
345
|
return _this.cubeApi().meta();
|
|
346
|
-
case
|
|
346
|
+
case 3:
|
|
347
347
|
meta = _context.sent;
|
|
348
|
-
_context.next =
|
|
348
|
+
_context.next = 5;
|
|
349
349
|
break;
|
|
350
|
-
case
|
|
351
|
-
_context.prev =
|
|
352
|
-
|
|
353
|
-
metaError = ((_error$response =
|
|
354
|
-
richMetaError =
|
|
355
|
-
metaErrorStack = ((_error$response2 =
|
|
356
|
-
case
|
|
350
|
+
case 4:
|
|
351
|
+
_context.prev = 4;
|
|
352
|
+
_t = _context["catch"](2);
|
|
353
|
+
metaError = ((_error$response = _t.response) === null || _error$response === void 0 ? void 0 : _error$response.plainError) || _t;
|
|
354
|
+
richMetaError = _t;
|
|
355
|
+
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 || '', '')) || '';
|
|
356
|
+
case 5:
|
|
357
357
|
_this.setState({
|
|
358
358
|
meta: meta,
|
|
359
359
|
metaError: metaError ? new Error(metaError.message || metaError.toString()) : null,
|
|
@@ -365,11 +365,11 @@
|
|
|
365
365
|
// This will catch any new missing members, and also validate the query against the new meta
|
|
366
366
|
_this.updateQuery({});
|
|
367
367
|
});
|
|
368
|
-
case
|
|
368
|
+
case 6:
|
|
369
369
|
case "end":
|
|
370
370
|
return _context.stop();
|
|
371
371
|
}
|
|
372
|
-
}, _callee, null, [[
|
|
372
|
+
}, _callee, null, [[2, 4]]);
|
|
373
373
|
})));
|
|
374
374
|
_this.state = _objectSpread$4(_objectSpread$4({
|
|
375
375
|
query: props.defaultQuery || props.query,
|
|
@@ -390,13 +390,13 @@
|
|
|
390
390
|
key: "componentDidMount",
|
|
391
391
|
value: function () {
|
|
392
392
|
var _componentDidMount = _asyncToGenerator__default['default'](/*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee2() {
|
|
393
|
-
return _regeneratorRuntime__default['default'].wrap(function
|
|
393
|
+
return _regeneratorRuntime__default['default'].wrap(function (_context2) {
|
|
394
394
|
while (1) switch (_context2.prev = _context2.next) {
|
|
395
395
|
case 0:
|
|
396
396
|
this.prevContext = this.context;
|
|
397
|
-
_context2.next =
|
|
397
|
+
_context2.next = 1;
|
|
398
398
|
return this.fetchMeta();
|
|
399
|
-
case
|
|
399
|
+
case 1:
|
|
400
400
|
case "end":
|
|
401
401
|
return _context2.stop();
|
|
402
402
|
}
|
|
@@ -414,40 +414,40 @@
|
|
|
414
414
|
var _this$prevContext,
|
|
415
415
|
_this$context,
|
|
416
416
|
_this2 = this;
|
|
417
|
-
var _this$props, schemaVersion, onSchemaChange, meta, newMeta;
|
|
418
|
-
return _regeneratorRuntime__default['default'].wrap(function
|
|
417
|
+
var _this$props, schemaVersion, onSchemaChange, meta, newMeta, _t2;
|
|
418
|
+
return _regeneratorRuntime__default['default'].wrap(function (_context4) {
|
|
419
419
|
while (1) switch (_context4.prev = _context4.next) {
|
|
420
420
|
case 0:
|
|
421
421
|
_this$props = this.props, schemaVersion = _this$props.schemaVersion, onSchemaChange = _this$props.onSchemaChange;
|
|
422
422
|
meta = this.state.meta;
|
|
423
423
|
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))) {
|
|
424
|
-
_context4.next =
|
|
424
|
+
_context4.next = 1;
|
|
425
425
|
break;
|
|
426
426
|
}
|
|
427
427
|
this.prevContext = this.context;
|
|
428
|
-
_context4.next =
|
|
428
|
+
_context4.next = 1;
|
|
429
429
|
return this.fetchMeta();
|
|
430
|
-
case
|
|
430
|
+
case 1:
|
|
431
431
|
if (!(prevProps.schemaVersion !== schemaVersion)) {
|
|
432
|
-
_context4.next =
|
|
432
|
+
_context4.next = 5;
|
|
433
433
|
break;
|
|
434
434
|
}
|
|
435
|
-
_context4.prev =
|
|
436
|
-
_context4.next =
|
|
435
|
+
_context4.prev = 2;
|
|
436
|
+
_context4.next = 3;
|
|
437
437
|
return this.cubeApi().meta();
|
|
438
|
-
case
|
|
438
|
+
case 3:
|
|
439
439
|
newMeta = _context4.sent;
|
|
440
440
|
if (!ramda.equals(newMeta, meta) && typeof onSchemaChange === 'function') {
|
|
441
441
|
onSchemaChange({
|
|
442
442
|
schemaVersion: schemaVersion,
|
|
443
443
|
refresh: function () {
|
|
444
444
|
var _refresh = _asyncToGenerator__default['default'](/*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee3() {
|
|
445
|
-
return _regeneratorRuntime__default['default'].wrap(function
|
|
445
|
+
return _regeneratorRuntime__default['default'].wrap(function (_context3) {
|
|
446
446
|
while (1) switch (_context3.prev = _context3.next) {
|
|
447
447
|
case 0:
|
|
448
|
-
_context3.next =
|
|
448
|
+
_context3.next = 1;
|
|
449
449
|
return _this2.fetchMeta();
|
|
450
|
-
case
|
|
450
|
+
case 1:
|
|
451
451
|
case "end":
|
|
452
452
|
return _context3.stop();
|
|
453
453
|
}
|
|
@@ -460,20 +460,20 @@
|
|
|
460
460
|
}()
|
|
461
461
|
});
|
|
462
462
|
}
|
|
463
|
-
_context4.next =
|
|
463
|
+
_context4.next = 5;
|
|
464
464
|
break;
|
|
465
|
-
case
|
|
466
|
-
_context4.prev =
|
|
467
|
-
|
|
465
|
+
case 4:
|
|
466
|
+
_context4.prev = 4;
|
|
467
|
+
_t2 = _context4["catch"](2);
|
|
468
468
|
// eslint-disable-next-line
|
|
469
469
|
this.setState({
|
|
470
|
-
metaError:
|
|
470
|
+
metaError: _t2
|
|
471
471
|
});
|
|
472
|
-
case
|
|
472
|
+
case 5:
|
|
473
473
|
case "end":
|
|
474
474
|
return _context4.stop();
|
|
475
475
|
}
|
|
476
|
-
}, _callee4, this, [[
|
|
476
|
+
}, _callee4, this, [[2, 4]]);
|
|
477
477
|
}));
|
|
478
478
|
function componentDidUpdate(_x) {
|
|
479
479
|
return _componentDidUpdate.apply(this, arguments);
|
|
@@ -763,8 +763,8 @@
|
|
|
763
763
|
value: function () {
|
|
764
764
|
var _updateVizState = _asyncToGenerator__default['default'](/*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee5(state) {
|
|
765
765
|
var _this4 = this;
|
|
766
|
-
var _this$props2, setQuery, setVizState, _this$state2, stateQuery, statePivotConfig, chartType, meta, finalState, vizStateSent, handleVizStateChange, runSetters, shouldFetchDryRun, response, _error$response3;
|
|
767
|
-
return _regeneratorRuntime__default['default'].wrap(function
|
|
766
|
+
var _this$props2, setQuery, setVizState, _this$state2, stateQuery, statePivotConfig, chartType, meta, finalState, vizStateSent, handleVizStateChange, runSetters, shouldFetchDryRun, response, _error$response3, _t3;
|
|
767
|
+
return _regeneratorRuntime__default['default'].wrap(function (_context5) {
|
|
768
768
|
while (1) switch (_context5.prev = _context5.next) {
|
|
769
769
|
case 0:
|
|
770
770
|
_this$props2 = this.props, setQuery = _this$props2.setQuery, setVizState = _this$props2.setVizState;
|
|
@@ -813,15 +813,15 @@
|
|
|
813
813
|
handleVizStateChange(finalState);
|
|
814
814
|
shouldFetchDryRun = !ramda.equals(ramda.pick(['measures', 'dimensions', 'timeDimensions'], stateQuery), ramda.pick(['measures', 'dimensions', 'timeDimensions'], finalState.query));
|
|
815
815
|
if (!(shouldFetchDryRun && core.isQueryPresent(finalState.query) && finalState.missingMembers.length === 0)) {
|
|
816
|
-
_context5.next =
|
|
816
|
+
_context5.next = 4;
|
|
817
817
|
break;
|
|
818
818
|
}
|
|
819
|
-
_context5.prev =
|
|
820
|
-
_context5.next =
|
|
819
|
+
_context5.prev = 1;
|
|
820
|
+
_context5.next = 2;
|
|
821
821
|
return this.cubeApi().dryRun(finalState.query, {
|
|
822
822
|
mutexObj: this.mutexObj
|
|
823
823
|
});
|
|
824
|
-
case
|
|
824
|
+
case 2:
|
|
825
825
|
response = _context5.sent;
|
|
826
826
|
if (finalState.shouldApplyHeuristicOrder) {
|
|
827
827
|
finalState.query.order = (response.queryOrder || []).reduce(function (memo, current) {
|
|
@@ -836,24 +836,24 @@
|
|
|
836
836
|
if (core.isQueryPresent(stateQuery)) {
|
|
837
837
|
runSetters(_objectSpread$4(_objectSpread$4({}, this.state), finalState));
|
|
838
838
|
}
|
|
839
|
-
_context5.next =
|
|
839
|
+
_context5.next = 4;
|
|
840
840
|
break;
|
|
841
|
-
case
|
|
842
|
-
_context5.prev =
|
|
843
|
-
|
|
841
|
+
case 3:
|
|
842
|
+
_context5.prev = 3;
|
|
843
|
+
_t3 = _context5["catch"](1);
|
|
844
844
|
this.setState({
|
|
845
|
-
queryError: new Error(((_error$response3 =
|
|
846
|
-
richQueryError: new Error(
|
|
845
|
+
queryError: new Error(((_error$response3 = _t3.response) === null || _error$response3 === void 0 ? void 0 : _error$response3.plainError) || _t3.message),
|
|
846
|
+
richQueryError: new Error(_t3.message || _t3.toString())
|
|
847
847
|
});
|
|
848
|
-
case
|
|
848
|
+
case 4:
|
|
849
849
|
this.setState(finalState, function () {
|
|
850
850
|
return handleVizStateChange(_this4.state);
|
|
851
851
|
});
|
|
852
|
-
case
|
|
852
|
+
case 5:
|
|
853
853
|
case "end":
|
|
854
854
|
return _context5.stop();
|
|
855
855
|
}
|
|
856
|
-
}, _callee5, this, [[
|
|
856
|
+
}, _callee5, this, [[1, 3]]);
|
|
857
857
|
}));
|
|
858
858
|
function updateVizState(_x2) {
|
|
859
859
|
return _updateVizState.apply(this, arguments);
|
|
@@ -937,9 +937,9 @@
|
|
|
937
937
|
}
|
|
938
938
|
}, {
|
|
939
939
|
key: "resolveMember",
|
|
940
|
-
value: function resolveMember(type,
|
|
941
|
-
var meta =
|
|
942
|
-
query =
|
|
940
|
+
value: function resolveMember(type, _ref0) {
|
|
941
|
+
var meta = _ref0.meta,
|
|
942
|
+
query = _ref0.query;
|
|
943
943
|
if (!meta) {
|
|
944
944
|
return [];
|
|
945
945
|
}
|
|
@@ -1041,8 +1041,9 @@
|
|
|
1041
1041
|
coreOptions,
|
|
1042
1042
|
args,
|
|
1043
1043
|
_response,
|
|
1044
|
-
_args = arguments
|
|
1045
|
-
|
|
1044
|
+
_args = arguments,
|
|
1045
|
+
_t;
|
|
1046
|
+
return _regeneratorRuntime__default['default'].wrap(function (_context) {
|
|
1046
1047
|
while (1) switch (_context.prev = _context.next) {
|
|
1047
1048
|
case 0:
|
|
1048
1049
|
loadOptions = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
@@ -1051,7 +1052,7 @@
|
|
|
1051
1052
|
query = loadOptions.query || options.query;
|
|
1052
1053
|
queryCondition = method === 'meta' ? true : query && core.isQueryPresent(query);
|
|
1053
1054
|
if (!(cubeApi && (ignoreSkip || !skip) && queryCondition)) {
|
|
1054
|
-
_context.next =
|
|
1055
|
+
_context.next = 4;
|
|
1055
1056
|
break;
|
|
1056
1057
|
}
|
|
1057
1058
|
setError(null);
|
|
@@ -1059,35 +1060,37 @@
|
|
|
1059
1060
|
isLoading: true,
|
|
1060
1061
|
response: null
|
|
1061
1062
|
});
|
|
1062
|
-
coreOptions = {
|
|
1063
|
+
coreOptions = _objectSpread$3({
|
|
1063
1064
|
mutexObj: mutexRef.current,
|
|
1064
1065
|
mutexKey: method
|
|
1065
|
-
}
|
|
1066
|
+
}, options.baseRequestId ? {
|
|
1067
|
+
baseRequestId: options.baseRequestId
|
|
1068
|
+
} : {});
|
|
1066
1069
|
args = method === 'meta' ? [coreOptions] : [query, coreOptions];
|
|
1067
|
-
_context.prev =
|
|
1068
|
-
_context.next =
|
|
1070
|
+
_context.prev = 1;
|
|
1071
|
+
_context.next = 2;
|
|
1069
1072
|
return cubeApi[method].apply(cubeApi, args);
|
|
1070
|
-
case
|
|
1073
|
+
case 2:
|
|
1071
1074
|
_response = _context.sent;
|
|
1072
1075
|
setResponse({
|
|
1073
1076
|
response: _response,
|
|
1074
1077
|
isLoading: false
|
|
1075
1078
|
});
|
|
1076
|
-
_context.next =
|
|
1079
|
+
_context.next = 4;
|
|
1077
1080
|
break;
|
|
1078
|
-
case
|
|
1079
|
-
_context.prev =
|
|
1080
|
-
|
|
1081
|
-
setError(
|
|
1081
|
+
case 3:
|
|
1082
|
+
_context.prev = 3;
|
|
1083
|
+
_t = _context["catch"](1);
|
|
1084
|
+
setError(_t);
|
|
1082
1085
|
setResponse({
|
|
1083
1086
|
isLoading: false,
|
|
1084
1087
|
response: null
|
|
1085
1088
|
});
|
|
1086
|
-
case
|
|
1089
|
+
case 4:
|
|
1087
1090
|
case "end":
|
|
1088
1091
|
return _context.stop();
|
|
1089
1092
|
}
|
|
1090
|
-
}, _callee, null, [[
|
|
1093
|
+
}, _callee, null, [[1, 3]]);
|
|
1091
1094
|
}));
|
|
1092
1095
|
return _load.apply(this, arguments);
|
|
1093
1096
|
}
|
|
@@ -1154,9 +1157,9 @@
|
|
|
1154
1157
|
progress = _useState8[0],
|
|
1155
1158
|
setProgress = _useState8[1];
|
|
1156
1159
|
var _useState9 = React.useState(null),
|
|
1157
|
-
|
|
1158
|
-
error =
|
|
1159
|
-
setError =
|
|
1160
|
+
_useState0 = _slicedToArray__default['default'](_useState9, 2),
|
|
1161
|
+
error = _useState0[0],
|
|
1162
|
+
setError = _useState0[1];
|
|
1160
1163
|
var context = React.useContext(CubeContext);
|
|
1161
1164
|
var subscribeRequest = null;
|
|
1162
1165
|
var progressCallback = function progressCallback(_ref) {
|
|
@@ -1168,50 +1171,50 @@
|
|
|
1168
1171
|
}
|
|
1169
1172
|
function _fetch() {
|
|
1170
1173
|
_fetch = _asyncToGenerator__default['default'](/*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee2() {
|
|
1171
|
-
var resetResultSetOnChange, cubeApi, _context$options, response;
|
|
1172
|
-
return _regeneratorRuntime__default['default'].wrap(function
|
|
1174
|
+
var resetResultSetOnChange, cubeApi, _context$options, response, _t2;
|
|
1175
|
+
return _regeneratorRuntime__default['default'].wrap(function (_context2) {
|
|
1173
1176
|
while (1) switch (_context2.prev = _context2.next) {
|
|
1174
1177
|
case 0:
|
|
1175
1178
|
resetResultSetOnChange = options.resetResultSetOnChange;
|
|
1176
1179
|
cubeApi = options.cubeApi || (context === null || context === void 0 ? void 0 : context.cubeApi);
|
|
1177
1180
|
if (cubeApi) {
|
|
1178
|
-
_context2.next =
|
|
1181
|
+
_context2.next = 1;
|
|
1179
1182
|
break;
|
|
1180
1183
|
}
|
|
1181
1184
|
throw new Error('Cube API client is not provided');
|
|
1182
|
-
case
|
|
1185
|
+
case 1:
|
|
1183
1186
|
if (resetResultSetOnChange) {
|
|
1184
1187
|
setResultSet(null);
|
|
1185
1188
|
}
|
|
1186
1189
|
setError(null);
|
|
1187
1190
|
setLoading(true);
|
|
1188
|
-
_context2.prev =
|
|
1189
|
-
_context2.next =
|
|
1191
|
+
_context2.prev = 2;
|
|
1192
|
+
_context2.next = 3;
|
|
1190
1193
|
return cubeApi.load(query, {
|
|
1191
1194
|
mutexObj: mutexRef.current,
|
|
1192
1195
|
mutexKey: 'query',
|
|
1193
1196
|
progressCallback: progressCallback,
|
|
1194
1197
|
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)
|
|
1195
1198
|
});
|
|
1196
|
-
case
|
|
1199
|
+
case 3:
|
|
1197
1200
|
response = _context2.sent;
|
|
1198
1201
|
setResultSet(response);
|
|
1199
1202
|
setProgress(null);
|
|
1200
|
-
_context2.next =
|
|
1203
|
+
_context2.next = 5;
|
|
1201
1204
|
break;
|
|
1202
|
-
case
|
|
1203
|
-
_context2.prev =
|
|
1204
|
-
|
|
1205
|
-
setError(
|
|
1205
|
+
case 4:
|
|
1206
|
+
_context2.prev = 4;
|
|
1207
|
+
_t2 = _context2["catch"](2);
|
|
1208
|
+
setError(_t2);
|
|
1206
1209
|
setResultSet(null);
|
|
1207
1210
|
setProgress(null);
|
|
1208
|
-
case
|
|
1211
|
+
case 5:
|
|
1209
1212
|
setLoading(false);
|
|
1210
|
-
case
|
|
1213
|
+
case 6:
|
|
1211
1214
|
case "end":
|
|
1212
1215
|
return _context2.stop();
|
|
1213
1216
|
}
|
|
1214
|
-
}, _callee2, null, [[
|
|
1217
|
+
}, _callee2, null, [[2, 4]]);
|
|
1215
1218
|
}));
|
|
1216
1219
|
return _fetch.apply(this, arguments);
|
|
1217
1220
|
}
|
|
@@ -1228,11 +1231,12 @@
|
|
|
1228
1231
|
}
|
|
1229
1232
|
function _loadQuery() {
|
|
1230
1233
|
_loadQuery = _asyncToGenerator__default['default'](/*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee() {
|
|
1231
|
-
|
|
1234
|
+
var _t;
|
|
1235
|
+
return _regeneratorRuntime__default['default'].wrap(function (_context) {
|
|
1232
1236
|
while (1) switch (_context.prev = _context.next) {
|
|
1233
1237
|
case 0:
|
|
1234
1238
|
if (!(!skip && core.isQueryPresent(query))) {
|
|
1235
|
-
_context.next =
|
|
1239
|
+
_context.next = 7;
|
|
1236
1240
|
break;
|
|
1237
1241
|
}
|
|
1238
1242
|
if (!core.areQueriesEqual(currentQuery, query)) {
|
|
@@ -1243,18 +1247,18 @@
|
|
|
1243
1247
|
}
|
|
1244
1248
|
setError(null);
|
|
1245
1249
|
setLoading(true);
|
|
1246
|
-
_context.prev =
|
|
1250
|
+
_context.prev = 1;
|
|
1247
1251
|
if (!subscribeRequest) {
|
|
1248
|
-
_context.next =
|
|
1252
|
+
_context.next = 3;
|
|
1249
1253
|
break;
|
|
1250
1254
|
}
|
|
1251
|
-
_context.next =
|
|
1255
|
+
_context.next = 2;
|
|
1252
1256
|
return subscribeRequest.unsubscribe();
|
|
1253
|
-
case
|
|
1257
|
+
case 2:
|
|
1254
1258
|
subscribeRequest = null;
|
|
1255
|
-
case
|
|
1259
|
+
case 3:
|
|
1256
1260
|
if (!options.subscribe) {
|
|
1257
|
-
_context.next =
|
|
1261
|
+
_context.next = 4;
|
|
1258
1262
|
break;
|
|
1259
1263
|
}
|
|
1260
1264
|
subscribeRequest = cubeApi.subscribe(query, {
|
|
@@ -1270,26 +1274,26 @@
|
|
|
1270
1274
|
setLoading(false);
|
|
1271
1275
|
setProgress(null);
|
|
1272
1276
|
});
|
|
1273
|
-
_context.next =
|
|
1277
|
+
_context.next = 5;
|
|
1274
1278
|
break;
|
|
1275
|
-
case
|
|
1276
|
-
_context.next =
|
|
1279
|
+
case 4:
|
|
1280
|
+
_context.next = 5;
|
|
1277
1281
|
return fetch();
|
|
1278
|
-
case
|
|
1279
|
-
_context.next =
|
|
1282
|
+
case 5:
|
|
1283
|
+
_context.next = 7;
|
|
1280
1284
|
break;
|
|
1281
|
-
case
|
|
1282
|
-
_context.prev =
|
|
1283
|
-
|
|
1284
|
-
setError(
|
|
1285
|
+
case 6:
|
|
1286
|
+
_context.prev = 6;
|
|
1287
|
+
_t = _context["catch"](1);
|
|
1288
|
+
setError(_t);
|
|
1285
1289
|
setResultSet(null);
|
|
1286
1290
|
setLoading(false);
|
|
1287
1291
|
setProgress(null);
|
|
1288
|
-
case
|
|
1292
|
+
case 7:
|
|
1289
1293
|
case "end":
|
|
1290
1294
|
return _context.stop();
|
|
1291
1295
|
}
|
|
1292
|
-
}, _callee, null, [[
|
|
1296
|
+
}, _callee, null, [[1, 6]]);
|
|
1293
1297
|
}));
|
|
1294
1298
|
return _loadQuery.apply(this, arguments);
|
|
1295
1299
|
}
|