targetj 1.0.245 → 1.0.247

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/build/App.js CHANGED
@@ -145,8 +145,6 @@ var AppFn = function AppFn() {
145
145
  case 0:
146
146
  my.manager.getVisibles().forEach(function (tmodel) {
147
147
  var _tmodel$allStyleTarge;
148
- tmodel.tfMap = {};
149
- tmodel.styleMap = {};
150
148
  if ((_tmodel$allStyleTarge = tmodel.allStyleTargetMap) !== null && _tmodel$allStyleTarge !== void 0 && _tmodel$allStyleTarge.size) {
151
149
  var _iterator = _createForOfIteratorHelper(tmodel.allStyleTargetMap),
152
150
  _step;
@@ -246,10 +244,11 @@ App.unmount = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime()
246
244
  _context4.next = 14;
247
245
  return tApp.reset();
248
246
  case 14:
247
+ tApp.loader.clearAll();
249
248
  App.oids = {};
250
249
  App.tmodelIdMap = {};
251
250
  tApp = undefined;
252
- case 17:
251
+ case 18:
253
252
  case "end":
254
253
  return _context4.stop();
255
254
  }
@@ -60,6 +60,7 @@ var EventListener = /*#__PURE__*/function () {
60
60
  this.currentKey = '';
61
61
  this.currentHandlers = {
62
62
  touch: null,
63
+ click: null,
63
64
  scrollLeft: null,
64
65
  scrollTop: null,
65
66
  swipe: null,
@@ -311,20 +312,48 @@ var EventListener = /*#__PURE__*/function () {
311
312
  if (this.canFindHandlers && !lastEvent.synthetic) {
312
313
  this.findEventHandlers(lastEvent);
313
314
  }
314
- if (lastEvent.eventType === 'end' || lastEvent.eventType === 'click') {
315
- if (lastEvent.eventType === 'end') {
316
- var _this$currentHandlers;
317
- this.currentHandlers.end = this.currentHandlers.start;
318
- (_this$currentHandlers = this.currentHandlers.end) === null || _this$currentHandlers === void 0 || _this$currentHandlers.markLayoutDirty('end-event');
319
- this.currentHandlers.start = undefined;
320
- }
321
- this.canFindHandlers = true;
315
+ if (lastEvent.eventType === 'end') {
316
+ this.currentHandlers.end = this.currentHandlers.start;
317
+ this.currentHandlers.start = undefined;
322
318
  }
323
319
  this.currentEventName = lastEvent.eventName;
324
320
  this.currentEventType = lastEvent.eventType;
325
321
  this.currentEventTModel = lastEvent.tmodel;
326
322
  this.currentOriginalEvent = lastEvent.originalEvent;
327
323
  this.currentTouch.key = '';
324
+ this.markCapturedEventDirty(lastEvent);
325
+ if (lastEvent.eventType === 'end' || lastEvent.eventType === 'click') {
326
+ this.canFindHandlers = true;
327
+ }
328
+ }
329
+ }, {
330
+ key: "markCapturedEventDirty",
331
+ value: function markCapturedEventDirty(lastEvent) {
332
+ var mark = function mark(tmodel, reason) {
333
+ if (!tmodel) {
334
+ return;
335
+ }
336
+ tmodel.markEventDirty();
337
+ tmodel.markLayoutDirty(reason);
338
+ };
339
+ mark(lastEvent.tmodel, "".concat(lastEvent.eventType, "-event"));
340
+ switch (lastEvent.eventType) {
341
+ case "click":
342
+ mark(this.currentHandlers.click, "click-event");
343
+ break;
344
+ case "start":
345
+ mark(this.currentHandlers.start, "start-event");
346
+ break;
347
+ case "end":
348
+ mark(this.currentHandlers.end, "end-event");
349
+ break;
350
+ case "move":
351
+ mark(this.currentHandlers.swipe, "swipe-event");
352
+ mark(this.currentHandlers.scrollLeft, "scrollleft-event");
353
+ mark(this.currentHandlers.scrollTop, "scrolltop-event");
354
+ mark(this.currentHandlers.pinch, "pinch-event");
355
+ break;
356
+ }
328
357
  }
329
358
  }, {
330
359
  key: "handleDocEvent",
@@ -342,12 +371,12 @@ var EventListener = /*#__PURE__*/function () {
342
371
  var _this$lastEvent,
343
372
  _tmodel,
344
373
  _tmodel2,
374
+ _this$currentHandlers,
345
375
  _this$currentHandlers2,
346
376
  _this$currentHandlers3,
347
377
  _this$currentHandlers4,
348
- _this$currentHandlers5,
378
+ _this$currentHandlers6,
349
379
  _this$currentHandlers7,
350
- _this$currentHandlers8,
351
380
  _this7 = this,
352
381
  _tmodel3;
353
382
  if (!event) {
@@ -435,8 +464,8 @@ var EventListener = /*#__PURE__*/function () {
435
464
  this.currentHandlers.start = tmodel;
436
465
  this.findEventHandlers(newEvent);
437
466
  this.canFindHandlers = false;
438
- this.swipeStartX = this.start0.x - ((_this$currentHandlers2 = (_this$currentHandlers3 = this.currentHandlers.swipe) === null || _this$currentHandlers3 === void 0 ? void 0 : _this$currentHandlers3.getX()) !== null && _this$currentHandlers2 !== void 0 ? _this$currentHandlers2 : 0);
439
- this.swipeStartY = this.start0.y - ((_this$currentHandlers4 = (_this$currentHandlers5 = this.currentHandlers.swipe) === null || _this$currentHandlers5 === void 0 ? void 0 : _this$currentHandlers5.getY()) !== null && _this$currentHandlers4 !== void 0 ? _this$currentHandlers4 : 0);
467
+ this.swipeStartX = this.start0.x - ((_this$currentHandlers = (_this$currentHandlers2 = this.currentHandlers.swipe) === null || _this$currentHandlers2 === void 0 ? void 0 : _this$currentHandlers2.getX()) !== null && _this$currentHandlers !== void 0 ? _this$currentHandlers : 0);
468
+ this.swipeStartY = this.start0.y - ((_this$currentHandlers3 = (_this$currentHandlers4 = this.currentHandlers.swipe) === null || _this$currentHandlers4 === void 0 ? void 0 : _this$currentHandlers4.getY()) !== null && _this$currentHandlers3 !== void 0 ? _this$currentHandlers3 : 0);
440
469
  event.stopPropagation();
441
470
  this.detachDocumentEvents('documentDragEvents');
442
471
  this.attachDocumentEvents('documentDragEvents');
@@ -451,12 +480,12 @@ var EventListener = /*#__PURE__*/function () {
451
480
  event.preventDefault();
452
481
  }
453
482
  if (this.touchCount > 0) {
454
- var _this$currentHandlers6;
483
+ var _this$currentHandlers5;
455
484
  this.scrollEndTimeStamp.x = 0;
456
485
  this.scrollEndTimeStamp.y = 0;
457
486
  this.move(event);
458
487
  event.stopPropagation();
459
- (_this$currentHandlers6 = this.currentHandlers.swipe) === null || _this$currentHandlers6 === void 0 || _this$currentHandlers6.markLayoutDirty('swipe-event');
488
+ (_this$currentHandlers5 = this.currentHandlers.swipe) === null || _this$currentHandlers5 === void 0 || _this$currentHandlers5.markLayoutDirty('swipe-event');
460
489
  } else if (this.isCurrentSource('wheel')) {
461
490
  this.clearTouch();
462
491
  }
@@ -482,8 +511,6 @@ var EventListener = /*#__PURE__*/function () {
482
511
  var clickHandler = SearchUtil.findFirstClickHandler(tmodel);
483
512
  var canAcceptClick = !this.start0 || clickHandler === this.currentHandlers.click && (clickHandler !== this.currentHandlers.swipe || this.getSwipeDistance() < 5);
484
513
  if (clickHandler && canAcceptClick) {
485
- clickHandler.markEventDirty();
486
- clickHandler.markLayoutDirty('event');
487
514
  this.eventQueue.length = 0;
488
515
  this.eventQueue.push({
489
516
  eventName: eventName,
@@ -533,11 +560,11 @@ var EventListener = /*#__PURE__*/function () {
533
560
  break;
534
561
  case 'key':
535
562
  this.currentTouch.key = event.which || event.keyCode;
536
- (_this$currentHandlers7 = this.currentHandlers.focus) === null || _this$currentHandlers7 === void 0 || _this$currentHandlers7.markLayoutDirty('key-event');
563
+ (_this$currentHandlers6 = this.currentHandlers.focus) === null || _this$currentHandlers6 === void 0 || _this$currentHandlers6.markLayoutDirty('key-event');
537
564
  break;
538
565
  case 'keydown':
539
566
  this.currentTouch.key = event.which || event.keyCode;
540
- (_this$currentHandlers8 = this.currentHandlers.focus) === null || _this$currentHandlers8 === void 0 || _this$currentHandlers8.markLayoutDirty('keydown-event');
567
+ (_this$currentHandlers7 = this.currentHandlers.focus) === null || _this$currentHandlers7 === void 0 || _this$currentHandlers7.markLayoutDirty('keydown-event');
541
568
  break;
542
569
  case 'resize':
543
570
  this.windowEpoch++;
@@ -699,6 +726,22 @@ var EventListener = /*#__PURE__*/function () {
699
726
  this.windowScrollEndTimer = 0;
700
727
  this.scrollEndTimeStamp.x = 0;
701
728
  this.scrollEndTimeStamp.y = 0;
729
+ this.currentHandlers = {
730
+ touch: null,
731
+ click: null,
732
+ scrollLeft: null,
733
+ scrollTop: null,
734
+ swipe: null,
735
+ pinch: null,
736
+ focus: null,
737
+ justFocused: null,
738
+ blur: null,
739
+ leave: null,
740
+ enter: null,
741
+ start: null,
742
+ end: null,
743
+ hover: null
744
+ };
702
745
  }
703
746
  }, {
704
747
  key: "deltaX",
@@ -31,20 +31,48 @@ var LoadingManager = /*#__PURE__*/function () {
31
31
  this.tmodelKeyMap = {};
32
32
  this.fetchingAPIMap = {};
33
33
  this.fetchingImageMap = {};
34
+ this.targetPageKeyMap = new WeakMap();
34
35
  this.fetchSeq = 0;
35
36
  }
36
37
  return _createClass(LoadingManager, [{
37
38
  key: "clear",
38
39
  value: function clear() {
40
+ this.fetchingAPIMap = {};
41
+ this.fetchingImageMap = {};
42
+ }
43
+ }, {
44
+ key: "clearAll",
45
+ value: function clearAll() {
46
+ this.cacheMap = {};
39
47
  this.tmodelKeyMap = {};
40
48
  this.fetchingAPIMap = {};
41
49
  this.fetchingImageMap = {};
50
+ this.targetPageKeyMap = new WeakMap();
42
51
  this.fetchSeq = 0;
43
52
  }
53
+ }, {
54
+ key: "setTargetPageKey",
55
+ value: function setTargetPageKey(tmodel, targetName, pageKey) {
56
+ var map = this.targetPageKeyMap.get(tmodel);
57
+ if (!map) {
58
+ map = new Map();
59
+ this.targetPageKeyMap.set(tmodel, map);
60
+ }
61
+ map.set(targetName, pageKey);
62
+ }
63
+ }, {
64
+ key: "getTargetPageKey",
65
+ value: function getTargetPageKey(tmodel, targetName) {
66
+ var _this$targetPageKeyMa, _this$targetPageKeyMa2;
67
+ return (_this$targetPageKeyMa = (_this$targetPageKeyMa2 = this.targetPageKeyMap.get(tmodel)) === null || _this$targetPageKeyMa2 === void 0 ? void 0 : _this$targetPageKeyMa2.get(targetName)) !== null && _this$targetPageKeyMa !== void 0 ? _this$targetPageKeyMa : document.URL;
68
+ }
44
69
  }, {
45
70
  key: "fetchCommon",
46
71
  value: function fetchCommon(fetchId, cacheId, tmodel, fetchMap, fetchFn) {
47
72
  TargetUtil.markFetchAction(tmodel);
73
+ var pageKey = document.URL;
74
+ var targetName = tmodel.key;
75
+ this.setTargetPageKey(tmodel, targetName, pageKey);
48
76
  if (!this.isFetched(cacheId)) {
49
77
  if (!fetchMap[fetchId]) {
50
78
  fetchMap[fetchId] = {
@@ -71,7 +99,7 @@ var LoadingManager = /*#__PURE__*/function () {
71
99
  fetchMap: fetchMap
72
100
  };
73
101
  }
74
- this.addToTModelKeyMap(tmodel, tmodel.key, fetchId, cacheId);
102
+ this.addToTModelKeyMap(tmodel, tmodel.key, fetchId, cacheId, fetchMap);
75
103
  return fetchId;
76
104
  }
77
105
  }, {
@@ -120,11 +148,12 @@ var LoadingManager = /*#__PURE__*/function () {
120
148
  }, {
121
149
  key: "getTModelKey",
122
150
  value: function getTModelKey(tmodel, targetName) {
123
- return "".concat(document.URL, "_").concat(tmodel.oid, "_").concat(targetName);
151
+ var pageKey = this.getTargetPageKey(tmodel, targetName);
152
+ return "".concat(pageKey, "_").concat(tmodel.oid, "_").concat(targetName);
124
153
  }
125
154
  }, {
126
155
  key: "addToTModelKeyMap",
127
- value: function addToTModelKeyMap(tmodel, targetName, fetchId, cacheId) {
156
+ value: function addToTModelKeyMap(tmodel, targetName, fetchId, cacheId, fetchMap) {
128
157
  var key = this.getTModelKey(tmodel, targetName);
129
158
  var loadTargetName = TUtil.getLoadTargetName(targetName);
130
159
  var loadingComplete = this.isLoadingComplete(tmodel, targetName);
@@ -149,8 +178,8 @@ var LoadingManager = /*#__PURE__*/function () {
149
178
  this.tmodelKeyMap[key].entryCount++;
150
179
  tmodel.val(loadTargetName).push(undefined);
151
180
  if (cacheId && this.isFetched(cacheId)) {
152
- this.fetchingAPIMap[fetchId].startTime = TUtil.now();
153
- this.handleSuccess(this.fetchingAPIMap[fetchId], this.cacheMap[cacheId].result);
181
+ fetchMap[fetchId].startTime = TUtil.now();
182
+ this.handleSuccess(fetchMap[fetchId], this.cacheMap[cacheId].result);
154
183
  }
155
184
  }
156
185
  }, {
@@ -85,7 +85,7 @@ var PageManager = /*#__PURE__*/function () {
85
85
  _context.next = 16;
86
86
  return tApp.start();
87
87
  case 16:
88
- _context.next = 34;
88
+ _context.next = 35;
89
89
  break;
90
90
  case 18:
91
91
  tApp.tRoot = this.pageCache[link].tRoot;
@@ -101,17 +101,20 @@ var PageManager = /*#__PURE__*/function () {
101
101
  tApp.manager.activatePendingTargetsAfterDom(visibles, {
102
102
  restoredDoneTargets: true
103
103
  });
104
+ tApp.manager.activatePendingTargetsAfterDom(newVisibles, {
105
+ restoredDoneTargets: true
106
+ });
104
107
  tApp.manager.visibleOidMap = _objectSpread({}, this.pageCache[link].visibleOidMap);
105
108
  newVisibles.forEach(function (visible) {
106
109
  tApp.manager.visibleOidMap[visible.oid] = visible;
107
110
  });
108
111
  window.scrollTo(this.pageCache[link].scrollLeft, this.pageCache[link].scrollTop);
109
112
  this.lastLink = link;
110
- _context.next = 33;
113
+ _context.next = 34;
111
114
  return tApp.start();
112
- case 33:
113
- getRunScheduler().restoreSnapshot(this.pageCache[link].runSnapshot);
114
115
  case 34:
116
+ getRunScheduler().restoreSnapshot(this.pageCache[link].runSnapshot);
117
+ case 35:
115
118
  case "end":
116
119
  return _context.stop();
117
120
  }
package/build/TModel.js CHANGED
@@ -590,6 +590,8 @@ var TModel = /*#__PURE__*/function (_BaseModel) {
590
590
  targets: this.originalTargetNames
591
591
  }, {
592
592
  activeTargetList: this.activeTargetList
593
+ }, {
594
+ activatedTargets: this.activatedTargets
593
595
  }, {
594
596
  updatingTargetList: this.updatingTargetList
595
597
  }, {
@@ -505,7 +505,7 @@ var TModelManager = /*#__PURE__*/function () {
505
505
  value: function activatePendingTargetsAfterDom(tmodels) {
506
506
  var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
507
507
  _ref$restoredDoneTarg = _ref.restoredDoneTargets,
508
- restoredDoneTargets = _ref$restoredDoneTarg === void 0 ? false : _ref$restoredDoneTarg;
508
+ restoredDoneTargets = _ref$restoredDoneTarg === void 0 ? true : _ref$restoredDoneTarg;
509
509
  var _iterator8 = _createForOfIteratorHelper(tmodels),
510
510
  _step8;
511
511
  try {
@@ -522,19 +522,20 @@ var TModelManager = /*#__PURE__*/function () {
522
522
  tmodel.noDomUpdatingTargets = undefined;
523
523
  }
524
524
  var pending = tmodel.pendingTargets;
525
+ var visited = new Set();
525
526
  if (pending) {
526
527
  for (var _i2 = 0, _arr2 = _toConsumableArray(pending); _i2 < _arr2.length; _i2++) {
527
528
  var key = _arr2[_i2];
529
+ visited.add(key);
528
530
  TargetUtil.cleanupTarget(tmodel, key);
529
531
  TargetUtil.shouldActivateNextTarget(tmodel, key);
530
532
  }
531
- tmodel.pendingTargets = undefined;
532
533
  }
533
534
  if (restoredDoneTargets) {
534
535
  for (var _i3 = 0, _Object$keys = Object.keys(tmodel.targetValues); _i3 < _Object$keys.length; _i3++) {
535
536
  var _key = _Object$keys[_i3];
536
537
  var targetValue = tmodel.targetValues[_key];
537
- if (targetValue.status !== 'done') {
538
+ if (targetValue.status !== 'done' || visited.has(_key)) {
538
539
  continue;
539
540
  }
540
541
  if (tmodel.isTargetInLoop(_key) || tmodel.isTargetPassiveLoop(_key)) {
@@ -217,7 +217,6 @@ var TargetUtil = /*#__PURE__*/function () {
217
217
  }
218
218
  } else if (isEndTrigger) {
219
219
  if (prevOk === true) {
220
- tmodel.removeFromActiveTargets(nextTarget);
221
220
  TargetUtil.activateTarget(tmodel, nextTarget);
222
221
  nextTargetActivated = true;
223
222
  TargetUtil.clearPendingTargetsForNextTarget(tmodel, nextTarget);
@@ -266,9 +265,7 @@ var TargetUtil = /*#__PURE__*/function () {
266
265
  }, {
267
266
  key: "markPendingTargets",
268
267
  value: function markPendingTargets(tmodel, key) {
269
- if (!tmodel.isTargetComplete(key)) {
270
- (tmodel.pendingTargets || (tmodel.pendingTargets = new Set())).add(key);
271
- }
268
+ (tmodel.pendingTargets || (tmodel.pendingTargets = new Set())).add(key);
272
269
  }
273
270
  }, {
274
271
  key: "clearPendingTarget",
@@ -306,11 +303,9 @@ var TargetUtil = /*#__PURE__*/function () {
306
303
  TargetUtil.cleanupVisibleComplete(tmodel, key);
307
304
  var cannotBeCleaned = tmodel.isTargetComplete(key) || !TargetUtil.isTargetFullyCompleted(tmodel, key);
308
305
  if (cannotBeCleaned) {
309
- TargetUtil.markPendingTargets(tmodel, key);
310
306
  return false;
311
307
  }
312
308
  tmodel.setTargetComplete(key);
313
- TargetUtil.clearPendingTarget(tmodel, key);
314
309
  var target = tmodel.targets[key];
315
310
  if (typeof (target === null || target === void 0 ? void 0 : target.onComplete) === "function") {
316
311
  target.onComplete.call(tmodel);
@@ -440,6 +435,83 @@ var TargetUtil = /*#__PURE__*/function () {
440
435
  }
441
436
  return !((_state$updatingTarget2 = state.updatingTargetList) !== null && _state$updatingTarget2 !== void 0 && _state$updatingTarget2.length) && !((_state$activeTargetLi2 = state.activeTargetList) !== null && _state$activeTargetLi2 !== void 0 && _state$activeTargetLi2.length) && !((_state$activatedTarge2 = state.activatedTargets) !== null && _state$activatedTarge2 !== void 0 && _state$activatedTarge2.length) && !tmodel.hasAnimatingTargets() && TargetUtil.isFetchingComplete(tmodel) && !tmodel.hasAnimatingChildren() && !tmodel.hasUpdatingChildren() && !tmodel.hasActiveChildren() && !((_state$lastChildrenUp3 = state.lastChildrenUpdate) !== null && _state$lastChildrenUp3 !== void 0 && (_state$lastChildrenUp3 = _state$lastChildrenUp3.deletions) !== null && _state$lastChildrenUp3 !== void 0 && _state$lastChildrenUp3.length) && !((_state$lastChildrenUp4 = state.lastChildrenUpdate) !== null && _state$lastChildrenUp4 !== void 0 && (_state$lastChildrenUp4 = _state$lastChildrenUp4.additions) !== null && _state$lastChildrenUp4 !== void 0 && _state$lastChildrenUp4.length) && !tmodel.noDomUpdatingTargets && !tmodel.pendingTargets && !getManager().needsReattach(tmodel);
442
437
  }
438
+ }, {
439
+ key: "getCompletionBlockers",
440
+ value: function getCompletionBlockers(tmodel) {
441
+ var _state$lastChildrenUp7, _state$lastChildrenUp8;
442
+ var completionScope = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "all";
443
+ var state = tmodel.state();
444
+ var blockers = [];
445
+ var add = function add(name, value) {
446
+ if (!value) {
447
+ return;
448
+ }
449
+ blockers.push({
450
+ name: name,
451
+ value: value
452
+ });
453
+ };
454
+ var list = function list(value) {
455
+ if (!value) {
456
+ return [];
457
+ }
458
+ if (value instanceof Set) {
459
+ return _toConsumableArray(value);
460
+ }
461
+ if (value instanceof Map) {
462
+ return _toConsumableArray(value.keys());
463
+ }
464
+ if (Array.isArray(value)) {
465
+ return value;
466
+ }
467
+ return [value];
468
+ };
469
+ if (completionScope === "visible") {
470
+ var _state$lastChildrenUp5, _state$lastChildrenUp6;
471
+ if (TargetUtil.shouldIgnoreChildForCompletion(tmodel, "visible")) {
472
+ return [];
473
+ }
474
+ var updatingChildren = TargetUtil.getUpdatingChildren(tmodel, undefined, "visible");
475
+ var activeChildren = TargetUtil.getActiveChildren(tmodel, "visible");
476
+ add("updatingTargetList", list(state.updatingTargetList));
477
+ add("activeTargetList", list(state.activeTargetList));
478
+ add("activatedTargets", list(state.activatedTargets));
479
+ add("animatingTargets", tmodel.hasAnimatingTargets() ? list(tmodel.animatingMap) : []);
480
+ add("fetching", !TargetUtil.isFetchingComplete(tmodel) ? true : false);
481
+ add("updatingChildren", _toConsumableArray(updatingChildren.keys()));
482
+ add("activeChildren", _toConsumableArray(activeChildren.keys()));
483
+ add("deletedChildren", list((_state$lastChildrenUp5 = state.lastChildrenUpdate) === null || _state$lastChildrenUp5 === void 0 ? void 0 : _state$lastChildrenUp5.deletions));
484
+ add("addedChildren", list((_state$lastChildrenUp6 = state.lastChildrenUpdate) === null || _state$lastChildrenUp6 === void 0 ? void 0 : _state$lastChildrenUp6.additions));
485
+ add("noDomUpdatingTargets", list(tmodel.noDomUpdatingTargets));
486
+ add("pendingTargets", list(tmodel.pendingTargets));
487
+ add("needsReattach", getManager().needsReattach(tmodel) ? true : false);
488
+ return blockers.filter(function (blocker) {
489
+ if (Array.isArray(blocker.value)) {
490
+ return blocker.value.length > 0;
491
+ }
492
+ return !!blocker.value;
493
+ });
494
+ }
495
+ add("updatingTargetList", list(state.updatingTargetList));
496
+ add("activeTargetList", list(state.activeTargetList));
497
+ add("activatedTargets", list(state.activatedTargets));
498
+ add("animatingTargets", tmodel.hasAnimatingTargets() ? list(tmodel.animatingMap) : []);
499
+ add("fetching", !TargetUtil.isFetchingComplete(tmodel) ? true : false);
500
+ add("animatingChildren", tmodel.hasAnimatingChildren() ? true : false);
501
+ add("updatingChildren", tmodel.hasUpdatingChildren() ? list(tmodel.updatingChildrenMap) : []);
502
+ add("activeChildren", tmodel.hasActiveChildren() ? list(tmodel.activeChildrenMap) : []);
503
+ add("deletedChildren", list((_state$lastChildrenUp7 = state.lastChildrenUpdate) === null || _state$lastChildrenUp7 === void 0 ? void 0 : _state$lastChildrenUp7.deletions));
504
+ add("addedChildren", list((_state$lastChildrenUp8 = state.lastChildrenUpdate) === null || _state$lastChildrenUp8 === void 0 ? void 0 : _state$lastChildrenUp8.additions));
505
+ add("noDomUpdatingTargets", list(tmodel.noDomUpdatingTargets));
506
+ add("pendingTargets", list(tmodel.pendingTargets));
507
+ add("needsReattach", getManager().needsReattach(tmodel) ? true : false);
508
+ return blockers.filter(function (blocker) {
509
+ if (Array.isArray(blocker.value)) {
510
+ return blocker.value.length > 0;
511
+ }
512
+ return !!blocker.value;
513
+ });
514
+ }
443
515
  }, {
444
516
  key: "isFetchingComplete",
445
517
  value: function isFetchingComplete(tmodel) {