targetj 1.0.237 → 1.0.239

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.
@@ -46,6 +46,7 @@ var TargetUtil = exports.TargetUtil = /*#__PURE__*/function () {
46
46
  completeCount: 0,
47
47
  completeTime: 0,
48
48
  executionCount: 0,
49
+ visibleCompleteCount: 0,
49
50
  status: '',
50
51
  executionFlag: false,
51
52
  isImperative: false,
@@ -301,6 +302,7 @@ var TargetUtil = exports.TargetUtil = /*#__PURE__*/function () {
301
302
  }, {
302
303
  key: "cleanupTarget",
303
304
  value: function cleanupTarget(tmodel, key) {
305
+ TargetUtil.cleanupVisibleComplete(tmodel, key);
304
306
  if (tmodel.isTargetComplete(key) || !TargetUtil.isTargetFullyCompleted(tmodel, key)) {
305
307
  return false;
306
308
  }
@@ -321,6 +323,36 @@ var TargetUtil = exports.TargetUtil = /*#__PURE__*/function () {
321
323
  TargetUtil.bubbleInvokerCompletion(tmodel, key);
322
324
  return true;
323
325
  }
326
+ }, {
327
+ key: "cleanupVisibleComplete",
328
+ value: function cleanupVisibleComplete(tmodel, key) {
329
+ var target = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : tmodel.targets[key];
330
+ if (!target || typeof target.onVisibleComplete !== "function") {
331
+ return false;
332
+ }
333
+ var targetValue = tmodel.targetValues[key];
334
+ if (!targetValue) {
335
+ return false;
336
+ }
337
+ if (TargetUtil.isTargetTreeComplete(tmodel, key, 'visible') !== true) {
338
+ return false;
339
+ }
340
+ var signature = TargetUtil.getVisibleCompletionSignature(tmodel);
341
+ if (targetValue.visibleCompleteSignature === signature) {
342
+ return false;
343
+ }
344
+ targetValue.visibleCompleteSignature = signature;
345
+ target.onVisibleComplete.call(tmodel);
346
+ tmodel.setTargetMethodName(key, "onVisibleComplete");
347
+ return true;
348
+ }
349
+ }, {
350
+ key: "getVisibleCompletionSignature",
351
+ value: function getVisibleCompletionSignature(tmodel) {
352
+ return tmodel.visibleChildren.map(function (child) {
353
+ return child.oid;
354
+ }).sort().join('|');
355
+ }
324
356
  }, {
325
357
  key: "bubbleInvokerCompletion",
326
358
  value: function bubbleInvokerCompletion(tmodel, key) {
@@ -377,12 +409,17 @@ var TargetUtil = exports.TargetUtil = /*#__PURE__*/function () {
377
409
  }, {
378
410
  key: "isTModelComplete",
379
411
  value: function isTModelComplete(tmodel) {
380
- var _state$updatingTarget, _state$activeTargetLi, _state$activatedTarge, _state$lastChildrenUp, _state$lastChildrenUp2;
381
- if (!tmodel) {
382
- return false;
383
- }
412
+ var _state$updatingTarget2, _state$activeTargetLi2, _state$activatedTarge2, _state$lastChildrenUp3, _state$lastChildrenUp4;
413
+ var completionScope = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "all";
384
414
  var state = tmodel.state();
385
- return !((_state$updatingTarget = state.updatingTargetList) !== null && _state$updatingTarget !== void 0 && _state$updatingTarget.length) && !((_state$activeTargetLi = state.activeTargetList) !== null && _state$activeTargetLi !== void 0 && _state$activeTargetLi.length) && !((_state$activatedTarge = state.activatedTargets) !== null && _state$activatedTarge !== void 0 && _state$activatedTarge.length) && !tmodel.hasAnimatingTargets() && TargetUtil.isFetchingComplete(tmodel) && !tmodel.hasAnimatingChildren() && !tmodel.hasUpdatingChildren() && !tmodel.hasActiveChildren() && !((_state$lastChildrenUp = state.lastChildrenUpdate) !== null && _state$lastChildrenUp !== void 0 && (_state$lastChildrenUp = _state$lastChildrenUp.deletions) !== null && _state$lastChildrenUp !== void 0 && _state$lastChildrenUp.length) && !((_state$lastChildrenUp2 = state.lastChildrenUpdate) !== null && _state$lastChildrenUp2 !== void 0 && (_state$lastChildrenUp2 = _state$lastChildrenUp2.additions) !== null && _state$lastChildrenUp2 !== void 0 && _state$lastChildrenUp2.length) && !tmodel.pausedBatch && !(0, _App.getManager)().needsReattach(tmodel);
415
+ if (completionScope === "visible") {
416
+ var _state$updatingTarget, _state$activeTargetLi, _state$activatedTarge, _state$lastChildrenUp, _state$lastChildrenUp2;
417
+ if (TargetUtil.shouldIgnoreChildForCompletion(tmodel, "visible")) {
418
+ return true;
419
+ }
420
+ return !((_state$updatingTarget = state.updatingTargetList) !== null && _state$updatingTarget !== void 0 && _state$updatingTarget.length) && !((_state$activeTargetLi = state.activeTargetList) !== null && _state$activeTargetLi !== void 0 && _state$activeTargetLi.length) && !((_state$activatedTarge = state.activatedTargets) !== null && _state$activatedTarge !== void 0 && _state$activatedTarge.length) && !tmodel.hasAnimatingTargets() && TargetUtil.isFetchingComplete(tmodel) && TargetUtil.getUpdatingChildren(tmodel, undefined, "visible").size === 0 && TargetUtil.getActiveChildren(tmodel, "visible").size === 0 && !((_state$lastChildrenUp = state.lastChildrenUpdate) !== null && _state$lastChildrenUp !== void 0 && (_state$lastChildrenUp = _state$lastChildrenUp.deletions) !== null && _state$lastChildrenUp !== void 0 && _state$lastChildrenUp.length) && !((_state$lastChildrenUp2 = state.lastChildrenUpdate) !== null && _state$lastChildrenUp2 !== void 0 && (_state$lastChildrenUp2 = _state$lastChildrenUp2.additions) !== null && _state$lastChildrenUp2 !== void 0 && _state$lastChildrenUp2.length) && !tmodel.noDomUpdatingTargets && !tmodel.pendingTargets && !(0, _App.getManager)().needsReattach(tmodel);
421
+ }
422
+ 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 && !(0, _App.getManager)().needsReattach(tmodel);
386
423
  }
387
424
  }, {
388
425
  key: "isFetchingComplete",
@@ -447,10 +484,11 @@ var TargetUtil = exports.TargetUtil = /*#__PURE__*/function () {
447
484
  }
448
485
  }, {
449
486
  key: "isTargetTreeComplete",
450
- value: function isTargetTreeComplete(tmodel, key) {
487
+ value: function isTargetTreeComplete(tmodel, key, completionScopeOverride) {
451
488
  var target = tmodel.targets[key];
452
489
  if (target) {
453
490
  var _target$childAction, _target$childAction2, _target$childAction3;
491
+ var completionScope = completionScopeOverride !== null && completionScopeOverride !== void 0 ? completionScopeOverride : target.completionScope;
454
492
  var targetType = _typeof(target.value);
455
493
  if (_TargetData.TargetData.controlTargetMap[key]) {
456
494
  return true;
@@ -467,13 +505,13 @@ var TargetUtil = exports.TargetUtil = /*#__PURE__*/function () {
467
505
  if (!tmodel.isTargetComplete(key) && !tmodel.isTargetDone(key)) {
468
506
  return 'not done';
469
507
  }
470
- if (((_target$childAction = target.childAction) === null || _target$childAction === void 0 ? void 0 : _target$childAction.length) > 0 && TargetUtil.getUpdatingChildren(tmodel, key, target.completionScope).size > 0) {
508
+ if (((_target$childAction = target.childAction) === null || _target$childAction === void 0 ? void 0 : _target$childAction.length) > 0 && TargetUtil.getUpdatingChildren(tmodel, key, completionScope).size > 0) {
471
509
  return 'updating children';
472
510
  }
473
- if (((_target$childAction2 = target.childAction) === null || _target$childAction2 === void 0 ? void 0 : _target$childAction2.length) > 0 && TargetUtil.getActiveChildren(tmodel, target.completionScope).size > 0) {
511
+ if (((_target$childAction2 = target.childAction) === null || _target$childAction2 === void 0 ? void 0 : _target$childAction2.length) > 0 && TargetUtil.getActiveChildren(tmodel, completionScope).size > 0) {
474
512
  return 'active children';
475
513
  }
476
- if (((_target$childAction3 = target.childAction) === null || _target$childAction3 === void 0 ? void 0 : _target$childAction3.length) > 0 && TargetUtil.areTargetChildrenComplete(target.childAction, target.completionScope) !== true) {
514
+ if (((_target$childAction3 = target.childAction) === null || _target$childAction3 === void 0 ? void 0 : _target$childAction3.length) > 0 && TargetUtil.areTargetChildrenComplete(target.childAction, completionScope) !== true) {
477
515
  return 'incomplete children';
478
516
  }
479
517
  if (target.fetchAction && !(0, _App.getLoader)().isLoadingSuccessful(tmodel, key)) {
@@ -497,12 +535,13 @@ var TargetUtil = exports.TargetUtil = /*#__PURE__*/function () {
497
535
  if (TargetUtil.shouldIgnoreChildForCompletion(child, completionScope)) {
498
536
  continue;
499
537
  }
500
- if (child.exists() && !TargetUtil.isTModelComplete(child)) {
538
+ if (child.exists() && !TargetUtil.isTModelComplete(child, completionScope)) {
501
539
  return child.oid;
502
540
  }
503
541
  if (child.hasChildren()) {
504
- if (!TargetUtil.areTargetChildrenComplete(child.getChildren(), completionScope)) {
505
- return child.oid;
542
+ var result = TargetUtil.areTargetChildrenComplete(child.getChildren(), completionScope);
543
+ if (result !== true) {
544
+ return result;
506
545
  }
507
546
  }
508
547
  }
@@ -559,6 +598,32 @@ var TargetUtil = exports.TargetUtil = /*#__PURE__*/function () {
559
598
  });
560
599
  return childrenMap;
561
600
  }
601
+ }, {
602
+ key: "hasVisibleActiveChild",
603
+ value: function hasVisibleActiveChild(tmodel) {
604
+ var _tmodel$activeTargetL, _tmodel$getChildren, _tmodel$getChildren2;
605
+ if (TargetUtil.shouldIgnoreChildForCompletion(tmodel, "visible")) {
606
+ return false;
607
+ }
608
+ if (((_tmodel$activeTargetL = tmodel.activeTargetList) === null || _tmodel$activeTargetL === void 0 ? void 0 : _tmodel$activeTargetL.length) > 0) {
609
+ return true;
610
+ }
611
+ var _iterator4 = _createForOfIteratorHelper((_tmodel$getChildren = (_tmodel$getChildren2 = tmodel.getChildren) === null || _tmodel$getChildren2 === void 0 ? void 0 : _tmodel$getChildren2.call(tmodel)) !== null && _tmodel$getChildren !== void 0 ? _tmodel$getChildren : []),
612
+ _step4;
613
+ try {
614
+ for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
615
+ var child = _step4.value;
616
+ if (TargetUtil.hasVisibleActiveChild(child)) {
617
+ return true;
618
+ }
619
+ }
620
+ } catch (err) {
621
+ _iterator4.e(err);
622
+ } finally {
623
+ _iterator4.f();
624
+ }
625
+ return false;
626
+ }
562
627
  }, {
563
628
  key: "getActiveChildren",
564
629
  value: function getActiveChildren(tmodel) {
@@ -567,6 +632,12 @@ var TargetUtil = exports.TargetUtil = /*#__PURE__*/function () {
567
632
  var childrenMap = new Map();
568
633
  var children = _toConsumableArray((_tmodel$activeChildre = (_tmodel$activeChildre2 = tmodel.activeChildrenMap) === null || _tmodel$activeChildre2 === void 0 ? void 0 : _tmodel$activeChildre2.values()) !== null && _tmodel$activeChildre !== void 0 ? _tmodel$activeChildre : []);
569
634
  children.forEach(function (child) {
635
+ if (completionScope === "visible") {
636
+ if (TargetUtil.hasVisibleActiveChild(child)) {
637
+ childrenMap.set(child.oid, child);
638
+ }
639
+ return;
640
+ }
570
641
  if (TargetUtil.shouldIgnoreChildForCompletion(child, completionScope)) {
571
642
  return;
572
643
  }
@@ -586,7 +657,8 @@ var TargetUtil = exports.TargetUtil = /*#__PURE__*/function () {
586
657
  return true;
587
658
  }
588
659
  if (completionScope === "visible") {
589
- return child.visibilityStatus && !child.isVisible();
660
+ var _child$visibilityStat;
661
+ return ((_child$visibilityStat = child.visibilityStatus) === null || _child$visibilityStat === void 0 ? void 0 : _child$visibilityStat.isVisible) !== true;
590
662
  }
591
663
  return false;
592
664
  }
@@ -689,44 +761,33 @@ var TargetUtil = exports.TargetUtil = /*#__PURE__*/function () {
689
761
  }, {
690
762
  key: "resetTargetState",
691
763
  value: function resetTargetState(tmodel, targetName) {
692
- var visited = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : new Set();
764
+ var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
765
+ var visited = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : new Set();
693
766
  if (!tmodel || !targetName) {
694
767
  return;
695
768
  }
696
769
  TargetUtil.resetSingleTargetState(tmodel, targetName);
770
+ TargetUtil.resetTargetChildActions(tmodel, targetName, options, visited);
697
771
  var target = tmodel.targets[targetName];
698
772
  var nextTarget = target === null || target === void 0 ? void 0 : target.activateNextTarget;
699
773
  var nextTargetDef = tmodel.targets[nextTarget];
700
774
  if (!nextTargetDef || !nextTarget.endsWith('$') && nextTargetDef.active === false) {
701
775
  return;
702
776
  }
703
- TargetUtil.resetTargetsBetween(tmodel, targetName, nextTarget, visited);
704
- TargetUtil.resetTargetPipelineState(tmodel, nextTarget, visited);
777
+ TargetUtil.resetTargetsBetween(tmodel, targetName, nextTarget, options, visited);
778
+ TargetUtil.resetTargetPipelineState(tmodel, nextTarget, options, visited);
705
779
  }
706
780
  }, {
707
781
  key: "resetTargetPipelineState",
708
782
  value: function resetTargetPipelineState(tmodel, targetName) {
709
- var _target$childAction4, _target$addChildActio;
710
- var visited = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : new Set();
783
+ var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
784
+ var visited = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : new Set();
711
785
  if (!tmodel || !targetName) {
712
786
  return;
713
787
  }
714
- var target = tmodel.targets[targetName];
715
788
  TargetUtil.resetSingleTargetState(tmodel, targetName);
716
- if ((_target$childAction4 = target.childAction) !== null && _target$childAction4 !== void 0 && _target$childAction4.length) {
717
- target.childAction.forEach(function (child) {
718
- if (child) {
719
- TargetUtil.resetTargetChildState(child, visited);
720
- }
721
- });
722
- }
723
- if ((_target$addChildActio = target.addChildAction) !== null && _target$addChildActio !== void 0 && _target$addChildActio.length) {
724
- target.addChildAction.forEach(function (child) {
725
- if (child) {
726
- TargetUtil.resetTargetChildState(child, visited);
727
- }
728
- });
729
- }
789
+ TargetUtil.resetTargetChildActions(tmodel, targetName, options, visited);
790
+ var target = tmodel.targets[targetName];
730
791
  var nextTarget = target === null || target === void 0 ? void 0 : target.activateNextTarget;
731
792
  if (!nextTarget) {
732
793
  return;
@@ -735,12 +796,14 @@ var TargetUtil = exports.TargetUtil = /*#__PURE__*/function () {
735
796
  if (!nextTargetDef || !nextTarget.endsWith('$') && nextTargetDef.active === false) {
736
797
  return;
737
798
  }
738
- TargetUtil.resetTargetsBetween(tmodel, targetName, nextTarget, visited);
739
- TargetUtil.resetTargetPipelineState(tmodel, nextTarget, visited);
799
+ TargetUtil.resetTargetsBetween(tmodel, targetName, nextTarget, options, visited);
800
+ TargetUtil.resetTargetPipelineState(tmodel, nextTarget, options, visited);
740
801
  }
741
802
  }, {
742
803
  key: "resetTargetsBetween",
743
- value: function resetTargetsBetween(tmodel, fromTarget, toTarget, visited) {
804
+ value: function resetTargetsBetween(tmodel, fromTarget, toTarget) {
805
+ var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
806
+ var visited = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : new Set();
744
807
  var names = tmodel.functionTargetNames;
745
808
  var fromIndex = names.indexOf(fromTarget);
746
809
  var toIndex = names.indexOf(toTarget);
@@ -748,29 +811,16 @@ var TargetUtil = exports.TargetUtil = /*#__PURE__*/function () {
748
811
  return;
749
812
  }
750
813
  for (var i = fromIndex + 1; i < toIndex; i++) {
751
- var _target$childAction5, _target$addChildActio2;
752
814
  var key = names[i];
753
815
  TargetUtil.resetSingleTargetState(tmodel, key);
754
- var target = tmodel.targets[key];
755
- if (target !== null && target !== void 0 && (_target$childAction5 = target.childAction) !== null && _target$childAction5 !== void 0 && _target$childAction5.length) {
756
- target.childAction.forEach(function (child) {
757
- if (child) {
758
- TargetUtil.resetTargetChildState(child, visited);
759
- }
760
- });
761
- }
762
- if (target !== null && target !== void 0 && (_target$addChildActio2 = target.addChildAction) !== null && _target$addChildActio2 !== void 0 && _target$addChildActio2.length) {
763
- target.addChildAction.forEach(function (child) {
764
- if (child) {
765
- TargetUtil.resetTargetChildState(child, visited);
766
- }
767
- });
768
- }
816
+ TargetUtil.resetTargetChildActions(tmodel, key, options, visited);
769
817
  }
770
818
  }
771
819
  }, {
772
820
  key: "resetTargetChildState",
773
- value: function resetTargetChildState(tmodel, visited) {
821
+ value: function resetTargetChildState(tmodel) {
822
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
823
+ var visited = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : new Set();
774
824
  var sig = "".concat(tmodel.oid);
775
825
  if (visited.has(sig)) {
776
826
  return;
@@ -778,25 +828,38 @@ var TargetUtil = exports.TargetUtil = /*#__PURE__*/function () {
778
828
  visited.add(sig);
779
829
  var names = Object.keys(tmodel.targetValues);
780
830
  for (var i = 0; i < names.length; i++) {
781
- var _target$childAction6, _target$addChildActio3;
782
831
  var key = names[i];
783
- var target = tmodel.targets[key];
784
832
  TargetUtil.resetSingleTargetState(tmodel, key);
785
- if (target !== null && target !== void 0 && (_target$childAction6 = target.childAction) !== null && _target$childAction6 !== void 0 && _target$childAction6.length) {
786
- target.childAction.forEach(function (child) {
787
- if (child) {
788
- TargetUtil.resetTargetChildState(child, visited);
789
- }
790
- });
791
- target.childAction = [];
833
+ TargetUtil.resetTargetChildActions(tmodel, key, options, visited);
834
+ }
835
+ }
836
+ }, {
837
+ key: "resetTargetChildActions",
838
+ value: function resetTargetChildActions(tmodel, key) {
839
+ var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
840
+ var visited = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : new Set();
841
+ var target = tmodel.targets[key];
842
+ if (!target) {
843
+ return;
844
+ }
845
+ var childActions = target.childAction ? _toConsumableArray(target.childAction) : [];
846
+ var addChildActions = target.addChildAction ? _toConsumableArray(target.addChildAction) : [];
847
+ childActions.forEach(function (child) {
848
+ if (child) {
849
+ TargetUtil.resetTargetChildState(child, options, visited);
792
850
  }
793
- if (target !== null && target !== void 0 && (_target$addChildActio3 = target.addChildAction) !== null && _target$addChildActio3 !== void 0 && _target$addChildActio3.length) {
794
- target.addChildAction.forEach(function (child) {
795
- if (child) {
796
- TargetUtil.resetTargetChildState(child, visited);
797
- }
798
- });
799
- target.addChildAction = [];
851
+ });
852
+ addChildActions.forEach(function (child) {
853
+ if (child) {
854
+ TargetUtil.resetTargetChildState(child, options, visited);
855
+ }
856
+ });
857
+ if (options.clearChildActions) {
858
+ if (Array.isArray(target.childAction)) {
859
+ target.childAction.length = 0;
860
+ }
861
+ if (Array.isArray(target.addChildAction)) {
862
+ target.addChildAction.length = 0;
800
863
  }
801
864
  }
802
865
  }
@@ -809,6 +872,7 @@ var TargetUtil = exports.TargetUtil = /*#__PURE__*/function () {
809
872
  targetValue.triggeredByCompleteCount = 0;
810
873
  targetValue.resetFlag = true;
811
874
  targetValue.nextTargetUpdateCount = 0;
875
+ targetValue.visibleCompleteSignature = undefined;
812
876
  targetValue.status = '';
813
877
  }
814
878
  tmodel.cancelAnimation();
@@ -819,25 +883,13 @@ var TargetUtil = exports.TargetUtil = /*#__PURE__*/function () {
819
883
  TargetUtil.clearPendingTarget(tmodel, key);
820
884
  }
821
885
  }, {
822
- key: "removeChildFromTargetActions",
823
- value: function removeChildFromTargetActions(parent, child) {
824
- if (!parent || !child) {
825
- return;
826
- }
827
- for (var _i2 = 0, _Object$values = Object.values(parent.targets); _i2 < _Object$values.length; _i2++) {
828
- var _target$childAction7, _target$addChildActio4;
829
- var target = _Object$values[_i2];
830
- if ((_target$childAction7 = target.childAction) !== null && _target$childAction7 !== void 0 && _target$childAction7.length) {
831
- target.childAction = target.childAction.filter(function (c) {
832
- return c !== child;
833
- });
834
- }
835
- if ((_target$addChildActio4 = target.addChildAction) !== null && _target$addChildActio4 !== void 0 && _target$addChildActio4.length) {
836
- target.addChildAction = target.addChildAction.filter(function (c) {
837
- return c !== child;
838
- });
839
- }
840
- }
886
+ key: "getResetOptions",
887
+ value: function getResetOptions(options) {
888
+ var reset = options === null || options === void 0 ? void 0 : options.reset;
889
+ return {
890
+ shouldReset: reset === true || reset === 'pipeline' || reset === 'tree' || reset === 'all',
891
+ clearChildActions: reset === 'tree' || reset === 'all'
892
+ };
841
893
  }
842
894
  }]);
843
895
  }();
@@ -45,7 +45,7 @@ var VisibilityUtil = exports.VisibilityUtil = /*#__PURE__*/function () {
45
45
  status.right = x - visibilityMargin <= clip.r;
46
46
  status.left = x + width + visibilityMargin >= clip.x;
47
47
  status.bottom = y - child.getTopMargin() - visibilityMargin <= clip.b;
48
- status.top = y + height + visibilityMargin >= clip.y;
48
+ status.top = y + height + child.getBottomMargin() + visibilityMargin >= clip.y;
49
49
  status.clipX = clip.x;
50
50
  status.clipY = clip.y;
51
51
  status.clipR = clip.r;
package/build/index.js CHANGED
@@ -211,4 +211,15 @@ Object.keys(_VisibilityUtil).forEach(function (key) {
211
211
  return _VisibilityUtil[key];
212
212
  }
213
213
  });
214
+ });
215
+ var _ScheduleUtil = require("./ScheduleUtil.js");
216
+ Object.keys(_ScheduleUtil).forEach(function (key) {
217
+ if (key === "default" || key === "__esModule") return;
218
+ if (key in exports && exports[key] === _ScheduleUtil[key]) return;
219
+ Object.defineProperty(exports, key, {
220
+ enumerable: true,
221
+ get: function get() {
222
+ return _ScheduleUtil[key];
223
+ }
224
+ });
214
225
  });