@openrail/netzgrafik-editor-frontend 2.13.0 → 2.13.1
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/main.js +37 -27
- package/dist/main.js.map +1 -1
- package/dist/out-tsc/src/app/services/util/trainrun.iterator.js +20 -0
- package/dist/out-tsc/src/app/services/util/trainrun.iterator.js.map +1 -1
- package/dist/types/src/app/services/util/trainrun.iterator.d.ts +5 -0
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -129673,6 +129673,18 @@ var DirectedTrainrunSectionProxy = class {
|
|
|
129673
129673
|
getHeadArrival() {
|
|
129674
129674
|
return this.direction === "sourceToTarget" ? this.trainrunSection.getTargetArrival() : this.trainrunSection.getSourceArrival();
|
|
129675
129675
|
}
|
|
129676
|
+
getTailDepartureDto() {
|
|
129677
|
+
return this.direction === "sourceToTarget" ? this.trainrunSection.getSourceDepartureDto() : this.trainrunSection.getTargetDepartureDto();
|
|
129678
|
+
}
|
|
129679
|
+
getTailArrivalDto() {
|
|
129680
|
+
return this.direction === "sourceToTarget" ? this.trainrunSection.getSourceArrivalDto() : this.trainrunSection.getTargetArrivalDto();
|
|
129681
|
+
}
|
|
129682
|
+
getHeadDepartureDto() {
|
|
129683
|
+
return this.direction === "sourceToTarget" ? this.trainrunSection.getTargetDepartureDto() : this.trainrunSection.getSourceDepartureDto();
|
|
129684
|
+
}
|
|
129685
|
+
getHeadArrivalDto() {
|
|
129686
|
+
return this.direction === "sourceToTarget" ? this.trainrunSection.getTargetArrivalDto() : this.trainrunSection.getSourceArrivalDto();
|
|
129687
|
+
}
|
|
129676
129688
|
getTravelTime() {
|
|
129677
129689
|
return this.direction === "sourceToTarget" ? this.trainrunSection.getTravelTime() : this.trainrunSection.getBackwardTravelTime();
|
|
129678
129690
|
}
|
|
@@ -149883,7 +149895,7 @@ var AppRoutingModule = class _AppRoutingModule {
|
|
|
149883
149895
|
// package.json
|
|
149884
149896
|
var package_default = {
|
|
149885
149897
|
name: "@openrail/netzgrafik-editor-frontend",
|
|
149886
|
-
version: "2.13.
|
|
149898
|
+
version: "2.13.1",
|
|
149887
149899
|
repository: {
|
|
149888
149900
|
type: "git",
|
|
149889
149901
|
url: "https://github.com/OpenRailAssociation/netzgrafik-editor-frontend.git"
|
|
@@ -182547,25 +182559,30 @@ var PerlenketteSectionComponent = class _PerlenketteSectionComponent {
|
|
|
182547
182559
|
getRightDepartureTime() {
|
|
182548
182560
|
return this.roundTime(this.trainrunSectionTimesService.getTimeStructure().rightDepartureTime);
|
|
182549
182561
|
}
|
|
182562
|
+
getTimeClassTag({ consecutiveTime, hasWarning }) {
|
|
182563
|
+
return " " + TrainrunSectionsView.getTrainrunSectionTimeElementOddOffsetTag(consecutiveTime, this.getTrainrun()) + (hasWarning ? " " + StaticDomTags.TAG_WARNING : "");
|
|
182564
|
+
}
|
|
182565
|
+
getTailDepartureTimeClassTag(section) {
|
|
182566
|
+
return this.getTimeClassTag({
|
|
182567
|
+
consecutiveTime: section.getTailDepartureDto().consecutiveTime,
|
|
182568
|
+
hasWarning: Boolean(section.getTailDepartureDto().warning)
|
|
182569
|
+
});
|
|
182570
|
+
}
|
|
182571
|
+
getHeadArrivalTimeClassTag(section) {
|
|
182572
|
+
return this.getTimeClassTag({
|
|
182573
|
+
consecutiveTime: section.getHeadArrivalDto().consecutiveTime,
|
|
182574
|
+
hasWarning: Boolean(section.getHeadArrivalDto().warning)
|
|
182575
|
+
});
|
|
182576
|
+
}
|
|
182550
182577
|
getRightDepartureTimeClassTag() {
|
|
182551
|
-
|
|
182552
|
-
const toId = this.perlenketteSection.toNode.getId();
|
|
182553
|
-
if (targetId === toId) {
|
|
182554
|
-
return " " + TrainrunSectionsView.getTrainrunSectionTimeElementOddOffsetTag(this.trainrunSection.getTargetDepartureConsecutiveTime(), this.getTrainrun()) + (this.trainrunSection.hasTargetDepartureWarning() ? " " + StaticDomTags.TAG_WARNING : "");
|
|
182555
|
-
}
|
|
182556
|
-
return " " + TrainrunSectionsView.getTrainrunSectionTimeElementOddOffsetTag(this.trainrunSection.getSourceDepartureConsecutiveTime(), this.getTrainrun()) + (this.trainrunSection.hasSourceDepartureWarning() ? " " + StaticDomTags.TAG_WARNING : "");
|
|
182578
|
+
return this.getTailDepartureTimeClassTag(this.getDirectedTrainrunSectionProxy("bottom"));
|
|
182557
182579
|
}
|
|
182558
182580
|
/* right arrival time */
|
|
182559
182581
|
getRightArrivalTime() {
|
|
182560
182582
|
return this.roundTime(this.trainrunSectionTimesService.getTimeStructure().rightArrivalTime);
|
|
182561
182583
|
}
|
|
182562
182584
|
getRightArrivalTimeClassTag() {
|
|
182563
|
-
|
|
182564
|
-
const toId = this.perlenketteSection.toNode.getId();
|
|
182565
|
-
if (targetId === toId) {
|
|
182566
|
-
return " " + TrainrunSectionsView.getTrainrunSectionTimeElementOddOffsetTag(this.trainrunSection.getTargetArrivalConsecutiveTime(), this.getTrainrun()) + (this.trainrunSection.hasTargetArrivalWarning() ? " " + StaticDomTags.TAG_WARNING : "");
|
|
182567
|
-
}
|
|
182568
|
-
return " " + TrainrunSectionsView.getTrainrunSectionTimeElementOddOffsetTag(this.trainrunSection.getSourceArrivalConsecutiveTime(), this.getTrainrun()) + (this.trainrunSection.hasSourceArrivalWarning() ? " " + StaticDomTags.TAG_WARNING : "");
|
|
182585
|
+
return this.getHeadArrivalTimeClassTag(this.getDirectedTrainrunSectionProxy("top"));
|
|
182569
182586
|
}
|
|
182570
182587
|
isFromNodeStop() {
|
|
182571
182588
|
const trans = this.perlenketteSection.fromNode.getTransition(this.trainrunSection.getId());
|
|
@@ -182589,24 +182606,14 @@ var PerlenketteSectionComponent = class _PerlenketteSectionComponent {
|
|
|
182589
182606
|
return this.roundTime(this.trainrunSectionTimesService.getTimeStructure().leftDepartureTime);
|
|
182590
182607
|
}
|
|
182591
182608
|
getLeftDepartureTimeClassTag() {
|
|
182592
|
-
|
|
182593
|
-
const fromId = this.perlenketteSection.fromNode.getId();
|
|
182594
|
-
if (sourceId === fromId) {
|
|
182595
|
-
return " " + TrainrunSectionsView.getTrainrunSectionTimeElementOddOffsetTag(this.trainrunSection.getSourceDepartureConsecutiveTime(), this.getTrainrun()) + (this.trainrunSection.hasSourceDepartureWarning() ? " " + StaticDomTags.TAG_WARNING : "");
|
|
182596
|
-
}
|
|
182597
|
-
return " " + TrainrunSectionsView.getTrainrunSectionTimeElementOddOffsetTag(this.trainrunSection.getTargetDepartureConsecutiveTime(), this.getTrainrun()) + (this.trainrunSection.hasTargetDepartureWarning() ? " " + StaticDomTags.TAG_WARNING : "");
|
|
182609
|
+
return this.getTailDepartureTimeClassTag(this.getDirectedTrainrunSectionProxy("top"));
|
|
182598
182610
|
}
|
|
182599
182611
|
/* left arrival time */
|
|
182600
182612
|
getLeftArrivalTime() {
|
|
182601
182613
|
return this.roundTime(this.trainrunSectionTimesService.getTimeStructure().leftArrivalTime);
|
|
182602
182614
|
}
|
|
182603
182615
|
getLeftArrivalTimeClassTag() {
|
|
182604
|
-
|
|
182605
|
-
const fromId = this.perlenketteSection.fromNode.getId();
|
|
182606
|
-
if (sourceId === fromId) {
|
|
182607
|
-
return " " + TrainrunSectionsView.getTrainrunSectionTimeElementOddOffsetTag(this.trainrunSection.getSourceArrivalConsecutiveTime(), this.getTrainrun()) + (this.trainrunSection.hasSourceArrivalWarning() ? " " + StaticDomTags.TAG_WARNING : "");
|
|
182608
|
-
}
|
|
182609
|
-
return " " + TrainrunSectionsView.getTrainrunSectionTimeElementOddOffsetTag(this.trainrunSection.getTargetArrivalConsecutiveTime(), this.getTrainrun()) + (this.trainrunSection.hasTargetArrivalWarning() ? " " + StaticDomTags.TAG_WARNING : "");
|
|
182616
|
+
return this.getHeadArrivalTimeClassTag(this.getDirectedTrainrunSectionProxy("bottom"));
|
|
182610
182617
|
}
|
|
182611
182618
|
showLeftArrivalTime() {
|
|
182612
182619
|
return this.showArrivalAndDepartureTime() && this.isFromNodeStop();
|
|
@@ -182866,6 +182873,9 @@ var PerlenketteSectionComponent = class _PerlenketteSectionComponent {
|
|
|
182866
182873
|
return direction === "sourceToTarget" ? "targetToSource" : "sourceToTarget";
|
|
182867
182874
|
}
|
|
182868
182875
|
}
|
|
182876
|
+
getDirectedTrainrunSectionProxy(side) {
|
|
182877
|
+
return new DirectedTrainrunSectionProxy(this.trainrunSection, this.getLeftToRightDirection(side));
|
|
182878
|
+
}
|
|
182869
182879
|
getTextAnchorForTimeElement(element) {
|
|
182870
182880
|
const isLeftHandTraffic = this.trafficSide === "leftHand";
|
|
182871
182881
|
if (element === "leftDepartureTime" || element === "rightArrivalTime") {
|
|
@@ -183818,7 +183828,7 @@ var PerlenketteSectionComponent = class _PerlenketteSectionComponent {
|
|
|
183818
183828
|
}] });
|
|
183819
183829
|
})();
|
|
183820
183830
|
(() => {
|
|
183821
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(PerlenketteSectionComponent, { className: "PerlenketteSectionComponent", filePath: "src/app/perlenkette/perlenkette-section/perlenkette-section.component.ts", lineNumber:
|
|
183831
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(PerlenketteSectionComponent, { className: "PerlenketteSectionComponent", filePath: "src/app/perlenkette/perlenkette-section/perlenkette-section.component.ts", lineNumber: 72 });
|
|
183822
183832
|
})();
|
|
183823
183833
|
|
|
183824
183834
|
// src/app/perlenkette/perlenkette.component.ts
|
|
@@ -185774,5 +185784,5 @@ if (environment.production) {
|
|
|
185774
185784
|
enableProdMode();
|
|
185775
185785
|
}
|
|
185776
185786
|
platformBrowser().bootstrapModule(AppModule, { applicationProviders: [provideZoneChangeDetection()] }).catch((err) => console.error(err));
|
|
185777
|
-
//# debugId=
|
|
185787
|
+
//# debugId=83c0085b-39d2-5e00-b363-8840822ec94d
|
|
185778
185788
|
//# sourceMappingURL=main.js.map
|