@coolon/angular-ui-powerups 14.29.1 → 14.29.2
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/esm2020/lib/place/visit.mjs +8 -5
- package/fesm2015/coolon-angular-ui-powerups.mjs +7 -4
- package/fesm2015/coolon-angular-ui-powerups.mjs.map +1 -1
- package/fesm2020/coolon-angular-ui-powerups.mjs +7 -4
- package/fesm2020/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/place/visit.d.ts +1 -1
- package/package.json +1 -1
|
@@ -6527,9 +6527,9 @@ class Visit {
|
|
|
6527
6527
|
return this;
|
|
6528
6528
|
}
|
|
6529
6529
|
get segments() {
|
|
6530
|
-
return this.resolveSegments(this.definedSegments);
|
|
6530
|
+
return this.resolveSegments([this.definedSegments]);
|
|
6531
6531
|
}
|
|
6532
|
-
resolveSegments(
|
|
6532
|
+
resolveSegments(defaults) {
|
|
6533
6533
|
return this.destinationPlaceDef.ancestorsAndSelf()
|
|
6534
6534
|
.map(a => {
|
|
6535
6535
|
const visit = new VisitSegment(a, {});
|
|
@@ -6540,8 +6540,11 @@ class Visit {
|
|
|
6540
6540
|
});
|
|
6541
6541
|
}
|
|
6542
6542
|
copyWithDefaultsFrom(other) {
|
|
6543
|
-
const
|
|
6544
|
-
|
|
6543
|
+
const defaults = [this.definedSegments];
|
|
6544
|
+
if (other) {
|
|
6545
|
+
defaults.push(other.definedSegments);
|
|
6546
|
+
}
|
|
6547
|
+
return new Visit(this.resolveSegments(defaults));
|
|
6545
6548
|
}
|
|
6546
6549
|
copyAndReplaceSegment(replace) {
|
|
6547
6550
|
// console.log("copyAndReplaceSegment", replace.toDebugString());
|