@loxia/mst-viewer 8.1.3-202511132206 → 8.1.3-202511141049

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.
Files changed (174) hide show
  1. package/esm2022/generated/openapi/api/api.mjs +23 -0
  2. package/esm2022/generated/openapi/api/appConfigController.service.mjs +140 -0
  3. package/esm2022/generated/openapi/api/appConfigController.serviceInterface.mjs +2 -0
  4. package/esm2022/generated/openapi/api/bewegingController.service.mjs +155 -0
  5. package/esm2022/generated/openapi/api/bewegingController.serviceInterface.mjs +2 -0
  6. package/esm2022/generated/openapi/api/class0BuildProperties.service.mjs +140 -0
  7. package/esm2022/generated/openapi/api/class0BuildProperties.serviceInterface.mjs +2 -0
  8. package/esm2022/generated/openapi/api/connectorController.service.mjs +146 -0
  9. package/esm2022/generated/openapi/api/connectorController.serviceInterface.mjs +2 -0
  10. package/esm2022/generated/openapi/api/logController.service.mjs +150 -0
  11. package/esm2022/generated/openapi/api/logController.serviceInterface.mjs +2 -0
  12. package/esm2022/generated/openapi/api/p21Controller.service.mjs +236 -0
  13. package/esm2022/generated/openapi/api/p21Controller.serviceInterface.mjs +2 -0
  14. package/esm2022/generated/openapi/api/sbController.service.mjs +202 -0
  15. package/esm2022/generated/openapi/api/sbController.serviceInterface.mjs +2 -0
  16. package/esm2022/generated/openapi/api.module.mjs +40 -0
  17. package/esm2022/generated/openapi/configuration.mjs +99 -0
  18. package/esm2022/generated/openapi/encoder.mjs +19 -0
  19. package/esm2022/generated/openapi/index.mjs +7 -0
  20. package/esm2022/generated/openapi/model/actieDto.mjs +13 -0
  21. package/esm2022/generated/openapi/model/algemeneRitDto.mjs +13 -0
  22. package/esm2022/generated/openapi/model/bewegingDto.mjs +2 -0
  23. package/esm2022/generated/openapi/model/frontendKeycloakConfig.mjs +13 -0
  24. package/esm2022/generated/openapi/model/frontendProperties.mjs +2 -0
  25. package/esm2022/generated/openapi/model/logDto.mjs +2 -0
  26. package/esm2022/generated/openapi/model/models.mjs +10 -0
  27. package/esm2022/generated/openapi/model/ritRequestDto.mjs +2 -0
  28. package/esm2022/generated/openapi/model/signaleringsbeeldDto.mjs +13 -0
  29. package/esm2022/generated/openapi/model/signaleringsbeeldRequestDto.mjs +13 -0
  30. package/esm2022/generated/openapi/param.mjs +2 -0
  31. package/esm2022/generated/openapi/variables.mjs +9 -0
  32. package/esm2022/lib/atomic-components/message/message.component.mjs +3 -3
  33. package/esm2022/lib/atomic-components/progress-indicator/progress-indicator.entity.mjs +7 -4
  34. package/esm2022/lib/components/ritdelen-lijst/ritdelen-lijst.component.mjs +17 -7
  35. package/esm2022/lib/components/svg-visualisatie/svg-visualisatie.component.mjs +6 -4
  36. package/esm2022/lib/components/viewer-controls/viewer-controls.component.mjs +2 -1
  37. package/esm2022/lib/model/ritdeel.mjs +4 -4
  38. package/esm2022/lib/mst-viewer.module.mjs +6 -5
  39. package/esm2022/lib/resources/mstlogging.resource.mjs +12 -145
  40. package/esm2022/lib/resources/signaleringsbeeldinfo.resource.mjs +2 -1
  41. package/esm2022/lib/services/editor.service.mjs +3 -1
  42. package/esm2022/lib/services/rit-lezer.service.mjs +4 -4
  43. package/esm2022/lib/services/viewer-control.service.mjs +3 -4
  44. package/esm2022/lib/state/actions/actions.mjs +1 -1
  45. package/esm2022/lib/state/effect/bepaal-ongeplande-acties.effect.mjs +2 -2
  46. package/esm2022/lib/state/effect/bepaal-sb-infos.effect.mjs +2 -2
  47. package/esm2022/lib/state/effect/beweging-invoegen.effect.mjs +1 -1
  48. package/esm2022/lib/state/effect/delete-ongeplande-actie.effect.mjs +1 -1
  49. package/esm2022/lib/state/effect/laad-route-files.effect.mjs +2 -2
  50. package/esm2022/lib/state/effect/laad-signaleringsbeelden.effect.mjs +10 -10
  51. package/esm2022/lib/state/effect/ritdelen.effect.mjs +22 -22
  52. package/esm2022/lib/state/mst-editor-state.mjs +12 -14
  53. package/esm2022/lib/state/reducer/rit-delen.reducer.mjs +1 -1
  54. package/esm2022/lib/util/actie-helper.mjs +6 -6
  55. package/esm2022/lib/util/actie-popover-bepaler.mjs +2 -2
  56. package/esm2022/lib/util/logging-helper.mjs +9 -12
  57. package/esm2022/lib/util/multi-map.mjs +2 -3
  58. package/esm2022/lib/util/utils.mjs +2 -5
  59. package/esm2022/lib/util/zone-util.mjs +2 -1
  60. package/esm2022/src/generated/openapi/api/api.mjs +23 -0
  61. package/esm2022/src/generated/openapi/api/appConfigController.service.mjs +140 -0
  62. package/esm2022/src/generated/openapi/api/appConfigController.serviceInterface.mjs +2 -0
  63. package/esm2022/src/generated/openapi/api/bewegingController.service.mjs +155 -0
  64. package/esm2022/src/generated/openapi/api/bewegingController.serviceInterface.mjs +2 -0
  65. package/esm2022/src/generated/openapi/api/class0BuildProperties.service.mjs +140 -0
  66. package/esm2022/src/generated/openapi/api/class0BuildProperties.serviceInterface.mjs +2 -0
  67. package/esm2022/src/generated/openapi/api/connectorController.service.mjs +146 -0
  68. package/esm2022/src/generated/openapi/api/connectorController.serviceInterface.mjs +2 -0
  69. package/esm2022/src/generated/openapi/api/logController.service.mjs +150 -0
  70. package/esm2022/src/generated/openapi/api/logController.serviceInterface.mjs +2 -0
  71. package/esm2022/src/generated/openapi/api/p21Controller.service.mjs +236 -0
  72. package/esm2022/src/generated/openapi/api/p21Controller.serviceInterface.mjs +2 -0
  73. package/esm2022/src/generated/openapi/api/sbController.service.mjs +202 -0
  74. package/esm2022/src/generated/openapi/api/sbController.serviceInterface.mjs +2 -0
  75. package/esm2022/src/generated/openapi/api.module.mjs +40 -0
  76. package/esm2022/src/generated/openapi/configuration.mjs +99 -0
  77. package/esm2022/src/generated/openapi/encoder.mjs +19 -0
  78. package/esm2022/src/generated/openapi/index.mjs +7 -0
  79. package/esm2022/src/generated/openapi/loxia-mst-viewer-src-generated-openapi.mjs +5 -0
  80. package/esm2022/src/generated/openapi/model/actieDto.mjs +13 -0
  81. package/esm2022/src/generated/openapi/model/algemeneRitDto.mjs +13 -0
  82. package/esm2022/src/generated/openapi/model/bewegingDto.mjs +2 -0
  83. package/esm2022/src/generated/openapi/model/frontendKeycloakConfig.mjs +13 -0
  84. package/esm2022/src/generated/openapi/model/frontendProperties.mjs +2 -0
  85. package/esm2022/src/generated/openapi/model/logDto.mjs +2 -0
  86. package/esm2022/src/generated/openapi/model/models.mjs +10 -0
  87. package/esm2022/src/generated/openapi/model/ritRequestDto.mjs +2 -0
  88. package/esm2022/src/generated/openapi/model/signaleringsbeeldDto.mjs +13 -0
  89. package/esm2022/src/generated/openapi/model/signaleringsbeeldRequestDto.mjs +13 -0
  90. package/esm2022/src/generated/openapi/param.mjs +2 -0
  91. package/esm2022/src/generated/openapi/variables.mjs +9 -0
  92. package/fesm2022/loxia-mst-viewer-src-generated-openapi.mjs +1341 -0
  93. package/fesm2022/loxia-mst-viewer-src-generated-openapi.mjs.map +1 -0
  94. package/fesm2022/loxia-mst-viewer.mjs +1692 -470
  95. package/fesm2022/loxia-mst-viewer.mjs.map +1 -1
  96. package/generated/openapi/api/api.d.ts +22 -0
  97. package/generated/openapi/api/appConfigController.service.d.ts +38 -0
  98. package/generated/openapi/api/appConfigController.serviceInterface.d.ts +24 -0
  99. package/generated/openapi/api/bewegingController.service.d.ts +40 -0
  100. package/generated/openapi/api/bewegingController.serviceInterface.d.ts +27 -0
  101. package/generated/openapi/api/class0BuildProperties.service.d.ts +36 -0
  102. package/generated/openapi/api/class0BuildProperties.serviceInterface.d.ts +23 -0
  103. package/generated/openapi/api/connectorController.service.d.ts +38 -0
  104. package/generated/openapi/api/connectorController.serviceInterface.d.ts +25 -0
  105. package/generated/openapi/api/logController.service.d.ts +38 -0
  106. package/generated/openapi/api/logController.serviceInterface.d.ts +25 -0
  107. package/generated/openapi/api/p21Controller.service.d.ts +62 -0
  108. package/generated/openapi/api/p21Controller.serviceInterface.d.ts +30 -0
  109. package/generated/openapi/api/sbController.service.d.ts +60 -0
  110. package/generated/openapi/api/sbController.serviceInterface.d.ts +32 -0
  111. package/generated/openapi/api.module.d.ts +11 -0
  112. package/generated/openapi/configuration.d.ts +104 -0
  113. package/generated/openapi/encoder.d.ts +11 -0
  114. package/generated/openapi/index.d.ts +6 -0
  115. package/generated/openapi/model/actieDto.d.ts +35 -0
  116. package/generated/openapi/model/algemeneRitDto.d.ts +28 -0
  117. package/generated/openapi/model/bewegingDto.d.ts +37 -0
  118. package/generated/openapi/model/frontendKeycloakConfig.d.ts +16 -0
  119. package/generated/openapi/model/frontendProperties.d.ts +15 -0
  120. package/generated/openapi/model/logDto.d.ts +22 -0
  121. package/generated/openapi/model/models.d.ts +9 -0
  122. package/generated/openapi/model/ritRequestDto.d.ts +17 -0
  123. package/generated/openapi/model/signaleringsbeeldDto.d.ts +16 -0
  124. package/generated/openapi/model/signaleringsbeeldRequestDto.d.ts +16 -0
  125. package/generated/openapi/param.d.ts +37 -0
  126. package/generated/openapi/variables.d.ts +8 -0
  127. package/lib/atomic-components/message/message.component.d.ts +2 -2
  128. package/lib/atomic-components/progress-indicator/progress-indicator.entity.d.ts +1 -1
  129. package/lib/components/ritdelen-lijst/ritdelen-lijst.component.d.ts +2 -2
  130. package/lib/components/svg-visualisatie/svg-visualisatie.component.d.ts +1 -1
  131. package/lib/model/ritdeel.d.ts +7 -6
  132. package/lib/resources/mstlogging.resource.d.ts +6 -95
  133. package/lib/state/actions/actions.d.ts +4 -4
  134. package/lib/state/effect/delete-ongeplande-actie.effect.d.ts +1 -1
  135. package/lib/state/effect/laad-route-files.effect.d.ts +2 -1
  136. package/lib/state/effect/laad-signaleringsbeelden.effect.d.ts +9 -9
  137. package/lib/state/effect/ritdelen.effect.d.ts +7 -6
  138. package/lib/state/mst-editor-state.d.ts +23 -84
  139. package/lib/util/actie-helper.d.ts +2 -2
  140. package/lib/util/logging-helper.d.ts +4 -6
  141. package/lib/util/utils.d.ts +0 -1
  142. package/package.json +7 -1
  143. package/src/generated/openapi/README.md +226 -0
  144. package/src/generated/openapi/api/api.d.ts +22 -0
  145. package/src/generated/openapi/api/appConfigController.service.d.ts +38 -0
  146. package/src/generated/openapi/api/appConfigController.serviceInterface.d.ts +24 -0
  147. package/src/generated/openapi/api/bewegingController.service.d.ts +40 -0
  148. package/src/generated/openapi/api/bewegingController.serviceInterface.d.ts +27 -0
  149. package/src/generated/openapi/api/class0BuildProperties.service.d.ts +36 -0
  150. package/src/generated/openapi/api/class0BuildProperties.serviceInterface.d.ts +23 -0
  151. package/src/generated/openapi/api/connectorController.service.d.ts +38 -0
  152. package/src/generated/openapi/api/connectorController.serviceInterface.d.ts +25 -0
  153. package/src/generated/openapi/api/logController.service.d.ts +38 -0
  154. package/src/generated/openapi/api/logController.serviceInterface.d.ts +25 -0
  155. package/src/generated/openapi/api/p21Controller.service.d.ts +62 -0
  156. package/src/generated/openapi/api/p21Controller.serviceInterface.d.ts +30 -0
  157. package/src/generated/openapi/api/sbController.service.d.ts +60 -0
  158. package/src/generated/openapi/api/sbController.serviceInterface.d.ts +32 -0
  159. package/src/generated/openapi/api.module.d.ts +11 -0
  160. package/src/generated/openapi/configuration.d.ts +104 -0
  161. package/src/generated/openapi/encoder.d.ts +11 -0
  162. package/src/generated/openapi/index.d.ts +6 -0
  163. package/src/generated/openapi/model/actieDto.d.ts +35 -0
  164. package/src/generated/openapi/model/algemeneRitDto.d.ts +28 -0
  165. package/src/generated/openapi/model/bewegingDto.d.ts +37 -0
  166. package/src/generated/openapi/model/frontendKeycloakConfig.d.ts +16 -0
  167. package/src/generated/openapi/model/frontendProperties.d.ts +15 -0
  168. package/src/generated/openapi/model/logDto.d.ts +22 -0
  169. package/src/generated/openapi/model/models.d.ts +9 -0
  170. package/src/generated/openapi/model/ritRequestDto.d.ts +17 -0
  171. package/src/generated/openapi/model/signaleringsbeeldDto.d.ts +16 -0
  172. package/src/generated/openapi/model/signaleringsbeeldRequestDto.d.ts +16 -0
  173. package/src/generated/openapi/param.d.ts +37 -0
  174. package/src/generated/openapi/variables.d.ts +8 -0
@@ -1,7 +1,7 @@
1
1
  import * as i2 from '@angular/common';
2
2
  import { CommonModule } from '@angular/common';
3
3
  import * as i0 from '@angular/core';
4
- import { EventEmitter, Output, Input, Component, Injectable, ChangeDetectionStrategy, ViewChild, HostListener, NgModule } from '@angular/core';
4
+ import { EventEmitter, Output, Input, Component, Injectable, ChangeDetectionStrategy, ViewChild, InjectionToken, Optional, Inject, SkipSelf, NgModule, HostListener } from '@angular/core';
5
5
  import * as i7 from '@loxia/imx-viewer';
6
6
  import { SelectieInfo, PopoverInfo, Point, SvgInfo, ImxViewerComponent, ImxViewerModule } from '@loxia/imx-viewer';
7
7
  import * as i4 from '@loxia/rijwegen';
@@ -11,13 +11,13 @@ import { createEffect, ofType, EffectsModule } from '@ngrx/effects';
11
11
  import * as i2$1 from '@ngrx/store';
12
12
  import { createAction, union, select, createReducer, on, StoreModule } from '@ngrx/store';
13
13
  import { ResourceModule } from '@ngx-resource/handler-ngx-http';
14
- import { BehaviorSubject, Subscription, from, combineLatest, of, throwError } from 'rxjs';
14
+ import { BehaviorSubject, from, Subscription, combineLatest, of, throwError } from 'rxjs';
15
+ import { filter, map, take, catchError, withLatestFrom, switchMap, tap } from 'rxjs/operators';
16
+ import * as i1 from '@angular/common/http';
17
+ import { HttpHeaders, HttpContext, HttpParams } from '@angular/common/http';
15
18
  import { __decorate } from 'tslib';
16
- import * as i1 from '@ngx-resource/core';
19
+ import * as i1$1 from '@ngx-resource/core';
17
20
  import { Resource, ResourceAction, ResourceRequestMethod, ResourceParams, ResourceModel } from '@ngx-resource/core';
18
- import { take, filter, map, catchError, withLatestFrom, switchMap, tap } from 'rxjs/operators';
19
- import * as i1$1 from '@angular/common/http';
20
- import { HttpHeaders } from '@angular/common/http';
21
21
 
22
22
  class Message {
23
23
  constructor(severity, text, timeout = 0) {
@@ -41,7 +41,7 @@ class MessageComponent {
41
41
  this.onClearMessage = new EventEmitter();
42
42
  }
43
43
  ngOnInit() {
44
- if (this.message.timeout > 0) {
44
+ if (this.message && this.message.timeout > 0) {
45
45
  setTimeout(() => {
46
46
  this.closeMessage({ stopPropagation: () => null });
47
47
  }, this.message.timeout);
@@ -53,7 +53,7 @@ class MessageComponent {
53
53
  this.message = undefined;
54
54
  }
55
55
  get severity() {
56
- return this.message.severity;
56
+ return this.message?.severity ?? '?';
57
57
  }
58
58
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: MessageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
59
59
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.7", type: MessageComponent, selector: "loxia-message", inputs: { message: "message" }, outputs: { onClearMessage: "onClearMessage" }, ngImport: i0, template: "<div id=\"alert-1\" *ngIf=\"message\"\n [ngClass]=\"severity\"\n class=\" loxia-message flex items-center p-4 text-white\" role=\"alert\">\n <svg class=\"flex-shrink-0 size-4 mt-0.5\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z\"></path>\n <path d=\"M12 9v4\"></path>\n <path d=\"M12 17h.01\"></path>\n </svg>\n <span class=\"sr-only\">Info</span>\n <div class=\"ms-3 text-sm font-medium\">\n {{message.text}}\n </div>\n <button type=\"button\"\n (click)=\"closeMessage($event)\"\n class=\"ms-auto -mx-1.5 -my-1.5 rounded-lg inline-flex items-center justify-center h-8 w-8\" data-dismiss-target=\"#alert-1\" aria-label=\"Close\">\n <span class=\"sr-only\">Close</span>\n <svg class=\"w-3 h-3\" aria-hidden=\"true\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 14 14\">\n <path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6\"/>\n </svg>\n </button>\n</div>\n", styles: ["svg{background-color:transparent;stroke-width:unset}.loxia-message.information{background-color:#0288d1}.loxia-message.warning{background-color:#ff6a00}.loxia-message.notification{background-color:#f3ed38}.loxia-message.error{background-color:#b5061b}.loxia-message.success{background-color:#297d03}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
@@ -124,6 +124,84 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
124
124
  args: [{ selector: 'loxia-progress-indicator', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"inline-block h-16 w-16 animate-spin rounded-full border-4 border-solid border-current border-e-transparent align-[-0.125em] text-surface motion-reduce:animate-[spin_1.5s_linear_infinite] dark:text-warning\"\n role=\"status\">\n <span class=\"!absolute !-m-px !h-px !w-px !overflow-hidden !whitespace-nowrap !border-0 !p-0 ![clip:rect(0,0,0,0)]\">\n Loading...\n </span>\n</div>\n" }]
125
125
  }] });
126
126
 
127
+ const SET_RIT_DELEN = '[mst] SetRitDelen';
128
+ const SET_RIT_DELEN_AFTER_UPDATE = '[mst] SetRitDelenAfterUpdate';
129
+ const UPDATE_RIT_DELEN = '[mst] UpdateRitDelen';
130
+ const TOGGLE_RITDEEL_ZICHTBAAR = '[mst] ToggleRitdeelZichtbaar';
131
+ const SET_RITDEEL_ZICHTBAAR = '[mst] ZetRitdeelZichtbaar';
132
+ const SET_ZICHTBAARHEID_ALLE_RITDELEN = '[mst] SetZichtbaarheidAlleRitdelen';
133
+ const TOGGLE_ZICHTBAARHEID_VOOR_BEWEGINGEN = '[mst] ToggleZichtbaarheidVoorBewegingen';
134
+ const SET_ALTERNATIEVE_RIT_DELEN = '[mst] SetAlternatieveRitDelen';
135
+ const RITDEEL_INVOEGEN = '[mst] RitdeelInvoegen';
136
+ const DELETE_RITDEEL = '[mst] DeleteRitdeel';
137
+ const DELETE_RITDEEL_ACTIE = '[mst] DeleteRitdeelActie';
138
+ const ADD_RITDEEL_ACTIE = '[mst] AddRitdeelActie';
139
+ const NAVIGEER = '[mst] Navigeer';
140
+ const NAVIGEER_VANAF = '[mst] NavigeerVanaf';
141
+ const setRitDelen = createAction(SET_RIT_DELEN, (ritDelen, paginationSize, iaversieinfo) => ({ ritDelen, paginationSize, iaversieinfo }));
142
+ const setRitdelenAfterUpdate = createAction(SET_RIT_DELEN_AFTER_UPDATE, (ritDelen) => ({ ritDelen }));
143
+ const navigeer = createAction(NAVIGEER, (stapSize, paginationSize, iaversieinfo) => ({ stapSize, paginationSize, iaversieinfo }));
144
+ const navigeerVanaf = createAction(NAVIGEER_VANAF, (paginationSize, iaversieinfo, ritdeel) => ({ paginationSize, iaversieinfo, ritdeel }));
145
+ const updateRitDelen = createAction(UPDATE_RIT_DELEN, (ritDelen) => ({ ritDelen }));
146
+ const toggleRitdeelZichtbaar = createAction(TOGGLE_RITDEEL_ZICHTBAAR, (ritDeel) => ({ ritDeel }));
147
+ const setRitdeelZichtbaar = createAction(SET_RITDEEL_ZICHTBAAR, (ritDeel, zichtbaar) => ({ ritDeel, zichtbaar }));
148
+ const deleteRitdeel = createAction(DELETE_RITDEEL, (ritDeel) => ({ ritDeel }));
149
+ const deleteRitdeelActie = createAction(DELETE_RITDEEL_ACTIE, (ritDeel, actie) => ({ ritDeel, actie }));
150
+ const addRitdeelActie = createAction(ADD_RITDEEL_ACTIE, (ritDeel, actie) => ({ ritDeel, actie }));
151
+ const setZichtbaarheidAlleRitdelen = createAction(SET_ZICHTBAARHEID_ALLE_RITDELEN, (zichtbaarheid) => ({ zichtbaarheid }));
152
+ const toggleZichtbaarheidVoorBewegingen = createAction(TOGGLE_ZICHTBAARHEID_VOOR_BEWEGINGEN, (bewegingIds) => ({ bewegingIds }));
153
+ const setAlternatieveRitDelen = createAction(SET_ALTERNATIEVE_RIT_DELEN, (alternatieveRitDeel) => ({ alternatieveRitDeel }));
154
+ const ritdeelInvoegen = createAction(RITDEEL_INVOEGEN, (nieuweRoute) => ({ nieuweRoute }));
155
+ // do not export return value
156
+ const ritdeelActions = union({
157
+ setRitDelen,
158
+ updateRitDelen,
159
+ setRitdelenAfterUpdate,
160
+ toggleRitdeelZichtbaar,
161
+ setRitdeelZichtbaar,
162
+ deleteRitdeel,
163
+ deleteRitdeelActie,
164
+ addRitdeelActie,
165
+ setZichtbaarheidAlleRitdelen,
166
+ toggleZichtbaarheidVoorBewegingen,
167
+ setAlternatieveRitDelen,
168
+ ritdeelInvoegen
169
+ });
170
+
171
+ class CarouselControlsComponent {
172
+ constructor(store) {
173
+ this.store = store;
174
+ this.paginationSize = 4;
175
+ this.ritdelen$ = this.store.select('ritDelen').pipe(filter(r => r?.length > 0));
176
+ this.kanLinks$ = this.ritdelen$.pipe(map(r => this.kanLinksNavigeren(r)));
177
+ this.kanRechts$ = this.ritdelen$.pipe(map(r => this.kanRechtsNavigeren(r)));
178
+ }
179
+ kanLinksNavigeren(ritDelen) {
180
+ return ritDelen.length > this.paginationSize && !ritDelen[0].isBinnenWindow();
181
+ }
182
+ kanRechtsNavigeren(ritDelen) {
183
+ return ritDelen.length > this.paginationSize && !ritDelen[ritDelen.length - 1].isBinnenWindow();
184
+ }
185
+ navigeerNaarLinks(event) {
186
+ this.store.dispatch(navigeer(event?.ctrlKey ? -1 : -(this.paginationSize - 1), this.paginationSize, this.iaversieinfo));
187
+ }
188
+ navigeerNaarRechts(event) {
189
+ this.store.dispatch(navigeer(event?.ctrlKey ? 1 : this.paginationSize - 1, this.paginationSize, this.iaversieinfo));
190
+ }
191
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: CarouselControlsComponent, deps: [{ token: i2$1.Store }], target: i0.ɵɵFactoryTarget.Component }); }
192
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.7", type: CarouselControlsComponent, selector: "carousel-controls", inputs: { paginationSize: "paginationSize", iaversieinfo: "iaversieinfo", sideNavOpen: "sideNavOpen" }, ngImport: i0, template: "<div *ngIf=\"ritdelen$ | async\">\n <a class=\"loxia-carousel-control-prev\" [ngClass]=\"(sideNavOpen)?'carousel-sidebar-open':'carousel-sidebar'\" role=\"button\"\n data-slide=\"prev\" (click)=\"navigeerNaarLinks($event)\" [hidden]=\"(kanLinks$ | async) === false\">\n <span id=\"previous-page\" class=\"loxia-carousel-control-prev-icon\" aria-hidden=\"true\"></span>\n <span class=\"loxia-sr-only\">Previous</span>\n</a>\n <a class=\"loxia-carousel-control-next\" style=\"width: 2%;\" role=\"button\" data-slide=\"next\" (click)=\"navigeerNaarRechts($event)\"\n [hidden]=\"(kanRechts$ | async) === false\">\n <span id=\"next-page\" class=\"loxia-carousel-control-next-icon\" aria-hidden=\"true\"></span>\n <span class=\"loxia-sr-only\">Next</span>\n </a>\n</div>\n", styles: [".loxia-carousel-control-prev{left:0}.loxia-carousel-control-next{right:0}.loxia-carousel-control-next-icon,.loxia-carousel-control-prev-icon{display:inline-block;width:20px;height:20px;background:50%/100% 100% no-repeat}.loxia-carousel-control-prev-icon{background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5L4.25 4l2.5-2.5L5.25 0z'/%3e%3c/svg%3e\")}.loxia-carousel-control-next-icon{background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5L3.75 4l-2.5 2.5L2.75 8l4-4-4-4z'/%3e%3c/svg%3e\")}.loxia-carousel-control-next:focus,.loxia-carousel-control-next:hover,.loxia-carousel-control-prev:focus,.loxia-carousel-control-prev:hover{color:#fff;text-decoration:none;outline:0;opacity:.9}.loxia-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.loxia-carousel-control-next,.loxia-carousel-control-prev{position:absolute;top:0;bottom:0;z-index:1;display:flex;align-items:center;justify-content:center;padding:0;color:#fff;text-align:center;background:0 0;border:0;opacity:.5;transition:opacity .15s ease}.carousel-sidebar{width:2%}.carousel-sidebar-open{width:2%;transition:all .3s;left:470px}[hidden]{display:none!important}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }] }); }
193
+ }
194
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: CarouselControlsComponent, decorators: [{
195
+ type: Component,
196
+ args: [{ selector: 'carousel-controls', template: "<div *ngIf=\"ritdelen$ | async\">\n <a class=\"loxia-carousel-control-prev\" [ngClass]=\"(sideNavOpen)?'carousel-sidebar-open':'carousel-sidebar'\" role=\"button\"\n data-slide=\"prev\" (click)=\"navigeerNaarLinks($event)\" [hidden]=\"(kanLinks$ | async) === false\">\n <span id=\"previous-page\" class=\"loxia-carousel-control-prev-icon\" aria-hidden=\"true\"></span>\n <span class=\"loxia-sr-only\">Previous</span>\n</a>\n <a class=\"loxia-carousel-control-next\" style=\"width: 2%;\" role=\"button\" data-slide=\"next\" (click)=\"navigeerNaarRechts($event)\"\n [hidden]=\"(kanRechts$ | async) === false\">\n <span id=\"next-page\" class=\"loxia-carousel-control-next-icon\" aria-hidden=\"true\"></span>\n <span class=\"loxia-sr-only\">Next</span>\n </a>\n</div>\n", styles: [".loxia-carousel-control-prev{left:0}.loxia-carousel-control-next{right:0}.loxia-carousel-control-next-icon,.loxia-carousel-control-prev-icon{display:inline-block;width:20px;height:20px;background:50%/100% 100% no-repeat}.loxia-carousel-control-prev-icon{background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5L4.25 4l2.5-2.5L5.25 0z'/%3e%3c/svg%3e\")}.loxia-carousel-control-next-icon{background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5L3.75 4l-2.5 2.5L2.75 8l4-4-4-4z'/%3e%3c/svg%3e\")}.loxia-carousel-control-next:focus,.loxia-carousel-control-next:hover,.loxia-carousel-control-prev:focus,.loxia-carousel-control-prev:hover{color:#fff;text-decoration:none;outline:0;opacity:.9}.loxia-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.loxia-carousel-control-next,.loxia-carousel-control-prev{position:absolute;top:0;bottom:0;z-index:1;display:flex;align-items:center;justify-content:center;padding:0;color:#fff;text-align:center;background:0 0;border:0;opacity:.5;transition:opacity .15s ease}.carousel-sidebar{width:2%}.carousel-sidebar-open{width:2%;transition:all .3s;left:470px}[hidden]{display:none!important}\n"] }]
197
+ }], ctorParameters: () => [{ type: i2$1.Store }], propDecorators: { paginationSize: [{
198
+ type: Input
199
+ }], iaversieinfo: [{
200
+ type: Input
201
+ }], sideNavOpen: [{
202
+ type: Input
203
+ }] } });
204
+
127
205
  const version = '8.1.3-SNAPSHOT';
128
206
 
129
207
  const SET_EDITABLE = '[mst] SetEditable';
@@ -255,235 +333,6 @@ const mstActions = union({
255
333
  setSelectedRitdeel: SetSelectedRitdeel
256
334
  });
257
335
 
258
- const SET_RIT_DELEN = '[mst] SetRitDelen';
259
- const SET_RIT_DELEN_AFTER_UPDATE = '[mst] SetRitDelenAfterUpdate';
260
- const UPDATE_RIT_DELEN = '[mst] UpdateRitDelen';
261
- const TOGGLE_RITDEEL_ZICHTBAAR = '[mst] ToggleRitdeelZichtbaar';
262
- const SET_RITDEEL_ZICHTBAAR = '[mst] ZetRitdeelZichtbaar';
263
- const SET_ZICHTBAARHEID_ALLE_RITDELEN = '[mst] SetZichtbaarheidAlleRitdelen';
264
- const TOGGLE_ZICHTBAARHEID_VOOR_BEWEGINGEN = '[mst] ToggleZichtbaarheidVoorBewegingen';
265
- const SET_ALTERNATIEVE_RIT_DELEN = '[mst] SetAlternatieveRitDelen';
266
- const RITDEEL_INVOEGEN = '[mst] RitdeelInvoegen';
267
- const DELETE_RITDEEL = '[mst] DeleteRitdeel';
268
- const DELETE_RITDEEL_ACTIE = '[mst] DeleteRitdeelActie';
269
- const ADD_RITDEEL_ACTIE = '[mst] AddRitdeelActie';
270
- const NAVIGEER = '[mst] Navigeer';
271
- const NAVIGEER_VANAF = '[mst] NavigeerVanaf';
272
- const setRitDelen = createAction(SET_RIT_DELEN, (ritDelen, paginationSize, iaversieinfo) => ({ ritDelen, paginationSize, iaversieinfo }));
273
- const setRitdelenAfterUpdate = createAction(SET_RIT_DELEN_AFTER_UPDATE, (ritDelen) => ({ ritDelen }));
274
- const navigeer = createAction(NAVIGEER, (stapSize, paginationSize, iaversieinfo) => ({ stapSize, paginationSize, iaversieinfo }));
275
- const navigeerVanaf = createAction(NAVIGEER_VANAF, (paginationSize, iaversieinfo, ritdeel) => ({ paginationSize, iaversieinfo, ritdeel }));
276
- const updateRitDelen = createAction(UPDATE_RIT_DELEN, (ritDelen) => ({ ritDelen }));
277
- const toggleRitdeelZichtbaar = createAction(TOGGLE_RITDEEL_ZICHTBAAR, (ritDeel) => ({ ritDeel }));
278
- const setRitdeelZichtbaar = createAction(SET_RITDEEL_ZICHTBAAR, (ritDeel, zichtbaar) => ({ ritDeel, zichtbaar }));
279
- const deleteRitdeel = createAction(DELETE_RITDEEL, (ritDeel) => ({ ritDeel }));
280
- const deleteRitdeelActie = createAction(DELETE_RITDEEL_ACTIE, (ritDeel, actie) => ({ ritDeel, actie }));
281
- const addRitdeelActie = createAction(ADD_RITDEEL_ACTIE, (ritDeel, actie) => ({ ritDeel, actie }));
282
- const setZichtbaarheidAlleRitdelen = createAction(SET_ZICHTBAARHEID_ALLE_RITDELEN, (zichtbaarheid) => ({ zichtbaarheid }));
283
- const toggleZichtbaarheidVoorBewegingen = createAction(TOGGLE_ZICHTBAARHEID_VOOR_BEWEGINGEN, (bewegingIds) => ({ bewegingIds }));
284
- const setAlternatieveRitDelen = createAction(SET_ALTERNATIEVE_RIT_DELEN, (alternatieveRitDeel) => ({ alternatieveRitDeel }));
285
- const ritdeelInvoegen = createAction(RITDEEL_INVOEGEN, (nieuweRoute) => ({ nieuweRoute }));
286
- // do not export return value
287
- const ritdeelActions = union({
288
- setRitDelen,
289
- updateRitDelen,
290
- setRitdelenAfterUpdate,
291
- toggleRitdeelZichtbaar,
292
- setRitdeelZichtbaar,
293
- deleteRitdeel,
294
- deleteRitdeelActie,
295
- addRitdeelActie,
296
- setZichtbaarheidAlleRitdelen,
297
- toggleZichtbaarheidVoorBewegingen,
298
- setAlternatieveRitDelen,
299
- ritdeelInvoegen
300
- });
301
-
302
- let MstLoggingResource = class MstLoggingResource extends Resource {
303
- constructor(restHandler, store) {
304
- super(restHandler);
305
- this.store = store;
306
- this.subscriptions = new Subscription();
307
- this.subscriptions.add(this.store.select('baseUrl').subscribe(baseUrl => this.$setUrl(baseUrl)));
308
- }
309
- ngOnDestroy() {
310
- this.subscriptions.unsubscribe();
311
- }
312
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: MstLoggingResource, deps: [{ token: i1.ResourceHandler }, { token: i2$1.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }
313
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: MstLoggingResource }); }
314
- };
315
- __decorate([
316
- ResourceAction({
317
- path: '/',
318
- method: ResourceRequestMethod.Post
319
- })
320
- ], MstLoggingResource.prototype, "logErrorMessages", void 0);
321
- MstLoggingResource = __decorate([
322
- ResourceParams({
323
- pathPrefix: '/mst/services/rest/logging'
324
- })
325
- ], MstLoggingResource);
326
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: MstLoggingResource, decorators: [{
327
- type: Injectable
328
- }], ctorParameters: () => [{ type: i1.ResourceHandler }, { type: i2$1.Store }], propDecorators: { logErrorMessages: [] } });
329
- class MstLoggingDto extends ResourceModel {
330
- constructor(data) {
331
- super();
332
- this.$resource = MstLoggingResource;
333
- this.$setData(data);
334
- }
335
- toJSON() {
336
- return {
337
- iaVersie: this.iaVersie,
338
- meldingLevel: this.meldingLevel,
339
- meldingMessage: this.meldingMessage,
340
- algemeneRitInfoDto: this.algemeneRitInfoDto,
341
- actieDto: this.actieDto,
342
- sbinfoDtos: this.sbinfoDtos
343
- };
344
- }
345
- toString() {
346
- return `${this.iaVersie},${this.meldingLevel},${this.meldingMessage},${this.algemeneRitInfoDto},
347
- ${this.actieDto},${this.sbinfoDtos}`;
348
- }
349
- $setData(data) {
350
- if (data) {
351
- this.iaVersie = data.iaVersie;
352
- this.meldingLevel = data.meldingLevel;
353
- this.meldingMessage = data.meldingMessage;
354
- this.algemeneRitInfoDto = data.algemeneRitInfoDto;
355
- this.actieDto = data.actieDto;
356
- this.sbinfoDtos = data.sbinfoDtos;
357
- }
358
- return this;
359
- }
360
- }
361
- class ActieDto {
362
- constructor(data) {
363
- this.$setData(data);
364
- }
365
- toJSON() {
366
- return {
367
- pplgNaam: this.pplgNaam,
368
- ritActieTypeOmschrijving: this.ritActieTypeOmschrijving,
369
- ritActieStatus: this.ritActieStatus,
370
- bewegingId: this.bewegingId,
371
- wisselType: this.wisselType,
372
- wisselNaam: this.wisselNaam,
373
- wisselKantCode: this.wisselKantCode,
374
- vanKilometerlint: this.vanKilometerlint,
375
- vanKilometrering: this.vanKilometrering,
376
- totKilometerlint: this.totKilometerlint,
377
- totKilometrering: this.totKilometrering
378
- };
379
- }
380
- toString() {
381
- return `${this.pplgNaam},${this.ritActieTypeOmschrijving},${this.ritActieStatus},
382
- ${this.bewegingId},${this.wisselType},${this.wisselNaam},${this.wisselKantCode},
383
- ${this.vanKilometerlint},${this.vanKilometrering},${this.totKilometerlint},${this.totKilometrering}`;
384
- }
385
- $setData(data) {
386
- if (data) {
387
- this.pplgNaam = data.pplgNaam;
388
- this.ritActieTypeOmschrijving = data.ritActieTypeOmschrijving;
389
- this.ritActieStatus = data.ritActieStatus;
390
- this.bewegingId = data.bewegingId;
391
- this.wisselType = data.wisselType;
392
- this.wisselNaam = data.wisselNaam;
393
- this.wisselKantCode = data.wisselKantCode;
394
- this.vanKilometerlint = data.vanKilometerlint;
395
- this.vanKilometrering = data.vanKilometrering;
396
- this.totKilometerlint = data.totKilometerlint;
397
- this.totKilometrering = data.totKilometrering;
398
- }
399
- return this;
400
- }
401
- }
402
- class AlgemeneRitInfoDto {
403
- constructor(data) {
404
- this.$setData(data);
405
- }
406
- toJSON() {
407
- return {
408
- id: this.id,
409
- jaarplanId: this.jaarplanId,
410
- volgnummer: this.volgnummer,
411
- machineTypeId: this.machineTypeId,
412
- machineTypeOmschrijving: this.machineTypeOmschrijving,
413
- ritDatum: this.ritDatum,
414
- startDatum: this.startDatum,
415
- eindDatum: this.eindDatum,
416
- ritNaam: this.ritNaam,
417
- startLocatie: this.startLocatie,
418
- eindLocatie: this.eindLocatie,
419
- ritStatus: this.ritStatus,
420
- modified: this.modified,
421
- modifiedBy: this.modifiedBy,
422
- planJobId: this.planJobId
423
- };
424
- }
425
- toString() {
426
- return `${this.id},${this.jaarplanId},${this.volgnummer},${this.machineTypeId},${this.machineTypeOmschrijving}
427
- ,${this.ritDatum},${this.startDatum},${this.eindDatum},${this.ritNaam},${this.startLocatie}
428
- ,${this.eindLocatie},${this.ritStatus},${this.modified},${this.modifiedBy},${this.planJobId}`;
429
- }
430
- $setData(data) {
431
- if (data) {
432
- this.id = data.id;
433
- this.jaarplanId = data.jaarplanId;
434
- this.volgnummer = data.volgnummer;
435
- this.machineTypeId = data.machineTypeId;
436
- this.machineTypeOmschrijving = data.machineTypeOmschrijving;
437
- this.ritDatum = data.ritDatum;
438
- this.startDatum = data.startDatum;
439
- this.eindDatum = data.eindDatum;
440
- this.ritNaam = data.ritNaam;
441
- this.startLocatie = data.startLocatie;
442
- this.eindLocatie = data.eindLocatie;
443
- this.ritStatus = data.ritStatus;
444
- this.modified = data.modified;
445
- this.modifiedBy = data.modifiedBy;
446
- this.planJobId = data.planJobId;
447
- }
448
- return this;
449
- }
450
- }
451
-
452
- class Utils {
453
- static flatMap(xs, f) {
454
- return xs.reduce((acc, x) => acc.concat(f(x)), []);
455
- }
456
- static getValidErorrMessage(err) {
457
- let errorMsg = '';
458
- if (err.msg) {
459
- errorMsg += err.msg;
460
- }
461
- if (Array.isArray(err.body)) {
462
- err.body.forEach(x => errorMsg += x);
463
- }
464
- else if (err.body) {
465
- if (err.body instanceof ProgressEvent) {
466
- errorMsg = 'Kon geen verbinding maken met de server';
467
- }
468
- else if (err.body.text) {
469
- errorMsg += err.body.text;
470
- }
471
- else {
472
- errorMsg += err.body;
473
- }
474
- }
475
- if (err.message) {
476
- errorMsg += err.message;
477
- }
478
- if (typeof err === 'string' || err instanceof String) {
479
- errorMsg += err;
480
- }
481
- if (errorMsg !== '') {
482
- return errorMsg;
483
- }
484
- }
485
- }
486
-
487
336
  /**
488
337
  * https://gist.github.com/jordanluyke/609a4fffb69d1ebafdadd313ee2ee804
489
338
  *
@@ -547,7 +396,7 @@ class ArrayMultimap {
547
396
  return Array.from(new Set(this._entries.map(entry => entry.key)));
548
397
  }
549
398
  values() {
550
- return Utils.flatMap(this._entries, x => x.value);
399
+ return this._entries.reduce((acc, x) => acc.concat(x.value), []);
551
400
  }
552
401
  put(key, value) {
553
402
  this._entries.push(new MultimapEntry(key, value));
@@ -653,6 +502,7 @@ class EditorService {
653
502
  this.signaleringsBeeldManagerService = signaleringsBeeldManagerService;
654
503
  this.initReadyPromise();
655
504
  }
505
+ // Called from GWT only, can be removed when GWT is gone
656
506
  setEditor(editor) {
657
507
  this.editor = editor;
658
508
  this.resolveReadyPromise();
@@ -660,6 +510,7 @@ class EditorService {
660
510
  isReady() {
661
511
  return this.promise;
662
512
  }
513
+ // Called from GWT only, can be removed when GWT is gone
663
514
  setSignaleringsBeeldManager(signaleringsBeeldManager) {
664
515
  this.signaleringsBeeldManagerService.set(signaleringsBeeldManager);
665
516
  }
@@ -889,7 +740,7 @@ class ViewerControlService {
889
740
  }
890
741
  setOrigineelTreinPad(treinpad) {
891
742
  const rit = JSON.parse(JSON.stringify(treinpad));
892
- this.store.dispatch(SetAlgemeneRitInfo(new AlgemeneRitInfoDto({
743
+ this.store.dispatch(SetAlgemeneRitInfo({
893
744
  id: rit.id,
894
745
  jaarplanId: rit.jaarplanId,
895
746
  volgnummer: rit.volgnummer,
@@ -905,7 +756,7 @@ class ViewerControlService {
905
756
  modified: rit.modified,
906
757
  modifiedBy: rit.modifiedBy,
907
758
  planJobId: rit.planJobId
908
- })));
759
+ }));
909
760
  this.origineelTreinPad = rit;
910
761
  }
911
762
  isValideRit$() {
@@ -1022,154 +873,1535 @@ class PrintBewegingService {
1022
873
  }, 1000);
1023
874
  });
1024
875
  }
1025
- getPuics(topoElementen) {
1026
- return topoElementen.map(e => e.getPuic());
1027
- }
1028
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: PrintBewegingService, deps: [{ token: i2$1.Store }, { token: ViewerControlService }, { token: SignaleringsBeeldManagerService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1029
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: PrintBewegingService, providedIn: 'root' }); }
876
+ getPuics(topoElementen) {
877
+ return topoElementen.map(e => e.getPuic());
878
+ }
879
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: PrintBewegingService, deps: [{ token: i2$1.Store }, { token: ViewerControlService }, { token: SignaleringsBeeldManagerService }], target: i0.ɵɵFactoryTarget.Injectable }); }
880
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: PrintBewegingService, providedIn: 'root' }); }
881
+ }
882
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: PrintBewegingService, decorators: [{
883
+ type: Injectable,
884
+ args: [{
885
+ providedIn: 'root'
886
+ }]
887
+ }], ctorParameters: () => [{ type: i2$1.Store }, { type: ViewerControlService }, { type: SignaleringsBeeldManagerService }] });
888
+
889
+ class RpeComponent {
890
+ convertToScript() {
891
+ const element = this.script.nativeElement;
892
+ const script = document.createElement('script');
893
+ script.type = 'text/javascript';
894
+ if (this.baseurl && this.path) {
895
+ script.src = this.baseurl + this.path;
896
+ // eslint-disable-next-line no-console
897
+ console.log('Code geladen van: ' + script.src); //useful for debugging in GWT environment
898
+ }
899
+ const parent = element.parentElement;
900
+ parent.parentElement.replaceChild(script, parent);
901
+ }
902
+ ngAfterViewInit() {
903
+ this.convertToScript();
904
+ }
905
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: RpeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
906
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.7", type: RpeComponent, selector: "rpe-component", inputs: { baseurl: "baseurl", path: "path" }, viewQueries: [{ propertyName: "script", first: true, predicate: ["rpescript"], descendants: true }], ngImport: i0, template: "<div #rpescript style.display=\"none\">\n <ng-content></ng-content>\n</div>\n" }); }
907
+ }
908
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: RpeComponent, decorators: [{
909
+ type: Component,
910
+ args: [{ selector: 'rpe-component', template: "<div #rpescript style.display=\"none\">\n <ng-content></ng-content>\n</div>\n" }]
911
+ }], propDecorators: { baseurl: [{
912
+ type: Input
913
+ }], path: [{
914
+ type: Input
915
+ }], script: [{
916
+ type: ViewChild,
917
+ args: ['rpescript']
918
+ }] } });
919
+
920
+ class OngeplandeActie {
921
+ constructor(actie, puics) {
922
+ this.actie = actie;
923
+ this.puics = puics;
924
+ }
925
+ }
926
+
927
+ class KmRange {
928
+ constructor(topologyElement, vanKilometreringen, totKilometreringen) {
929
+ this.topologyElement = topologyElement;
930
+ this.vanKilometreringen = vanKilometreringen;
931
+ this.totKilometreringen = totKilometreringen;
932
+ }
933
+ static rangeVoorPuntObject(topologyElement) {
934
+ return new KmRange(topologyElement, JsJavaUtil.listToArray(topologyElement.getKilometreringen()), JsJavaUtil.listToArray(topologyElement.getKilometreringen()));
935
+ }
936
+ static rangeVoorStrekObject(topologyElement, vanKilometreringen, totKilometreringen) {
937
+ return new KmRange(topologyElement, vanKilometreringen, totKilometreringen);
938
+ }
939
+ static getKilometrering(lintNaam, kilometreringen) {
940
+ const result = kilometreringen.filter(kilometrering => kilometrering.getKmLint() === lintNaam);
941
+ if (result.length >= 1) {
942
+ return result[0];
943
+ }
944
+ return null;
945
+ }
946
+ heeftOverlap(kilometrering1, kilometrering2) {
947
+ const vanKilometrering = KmRange.getKilometrering(kilometrering1.getKmLint(), this.vanKilometreringen);
948
+ const totKilometrering = KmRange.getKilometrering(kilometrering2.getKmLint(), this.totKilometreringen);
949
+ if (!vanKilometrering || !totKilometrering) {
950
+ return false;
951
+ }
952
+ let startKmWaarde = vanKilometrering.getKmWaarde();
953
+ let endKmWaarde = totKilometrering.getKmWaarde();
954
+ if (startKmWaarde > endKmWaarde) {
955
+ const temp = { end: endKmWaarde, start: startKmWaarde };
956
+ startKmWaarde = temp.end;
957
+ endKmWaarde = temp.start;
958
+ }
959
+ const actieStartKmWaarde = kilometrering1.getKmWaarde();
960
+ const actieEndKmWaarde = kilometrering2.getKmWaarde();
961
+ return endKmWaarde >= actieStartKmWaarde && actieEndKmWaarde >= startKmWaarde;
962
+ }
963
+ }
964
+
965
+ class WisselKantCode {
966
+ constructor(naam, kantCode) {
967
+ this.naam = naam;
968
+ this.kantCode = kantCode;
969
+ }
970
+ }
971
+
972
+ class MeldingEvent {
973
+ constructor(meldingMessage, meldingLevel) {
974
+ this.meldingMessage = meldingMessage;
975
+ this.meldingLevel = meldingLevel;
976
+ }
977
+ }
978
+
979
+ const MELDING_LEVEL_ERROR = 'error';
980
+ const MELDING_LEVEL_WARNING = 'warn';
981
+ const MELDING_LEVEL_INFO = 'info';
982
+ class MeldingBuilder {
983
+ static nietGevondenTakkenOngeplandeActies(nietGevondenTakken) {
984
+ return new MeldingEvent('Niet gevonden takken uit \'OngeplandeActies\': ' + nietGevondenTakken, MELDING_LEVEL_INFO);
985
+ }
986
+ static actieHighlightError(actieZonderElementen) {
987
+ return new MeldingEvent('Highlight error. Geen elementen kunnen vinden voor actie(s) met id: ' + actieZonderElementen, MELDING_LEVEL_ERROR);
988
+ }
989
+ }
990
+
991
+ class Utils {
992
+ static getValidErorrMessage(err) {
993
+ let errorMsg = '';
994
+ if (err.msg) {
995
+ errorMsg += err.msg;
996
+ }
997
+ if (Array.isArray(err.body)) {
998
+ err.body.forEach((x) => errorMsg += x);
999
+ }
1000
+ else if (err.body) {
1001
+ if (err.body instanceof ProgressEvent) {
1002
+ errorMsg = 'Kon geen verbinding maken met de server';
1003
+ }
1004
+ else if (err.body.text) {
1005
+ errorMsg += err.body.text;
1006
+ }
1007
+ else {
1008
+ errorMsg += err.body;
1009
+ }
1010
+ }
1011
+ if (err.message) {
1012
+ errorMsg += err.message;
1013
+ }
1014
+ if (typeof err === 'string' || err instanceof String) {
1015
+ errorMsg += err;
1016
+ }
1017
+ if (errorMsg !== '') {
1018
+ return errorMsg;
1019
+ }
1020
+ }
1021
+ }
1022
+
1023
+ class MessageBuilder {
1024
+ static rwpDataNietGevonden(err) {
1025
+ return new Message(Severity.ERROR, 'Error bij ophalen van rijwegplan data: ' + err);
1026
+ }
1027
+ static rijwegNietGevonden(beweging) {
1028
+ return new Message(Severity.ERROR, `Rijweg van ${beweging.vanSpoor} in PPLG ${beweging.vanPplg} naar ${beweging.naarSpoor} niet gevonden`);
1029
+ }
1030
+ static rijwegplanNietGevonden(beweging) {
1031
+ return new Message(Severity.ERROR, `Rijwegplan van PPLG ${beweging.vanPplg} niet gevonden`);
1032
+ }
1033
+ static dwangNietGevonden(beweging) {
1034
+ return new Message(Severity.ERROR, `Dwang ${beweging.dwangNummer} voor rijweg van ${beweging.vanSpoor} in PPLG ${beweging.vanPplg} naar ${beweging.naarSpoor} niet gevonden`);
1035
+ }
1036
+ static nietGevondenSBI(err) {
1037
+ return new Message(Severity.ERROR, 'Error bij het ophalen van signaleringsbeeldinfo: ' + Utils.getValidErorrMessage(err));
1038
+ }
1039
+ static actieHighlightError(actieZonderElementen) {
1040
+ return new Message(Severity.ERROR, 'Highlight error. Geen elementen kunnen vinden voor actie(s) met id: ' + actieZonderElementen);
1041
+ }
1042
+ static ritFileAlGewijzigdError(beweging) {
1043
+ return new Message(Severity.ERROR, 'Rit bevat een beweging met status \'Gewijzigd\': Beweging met ID:' + beweging.id);
1044
+ }
1045
+ static meerDan12BladenGevonden(bladAmount) {
1046
+ return new Message(Severity.WARNING, 'Warning, Rit bevat ' + bladAmount + ' bladen. Er worden maximaal 12 bladen ondersteund.');
1047
+ }
1048
+ static nietGevondenTakkenOngeplandeActies(nietGevondenTakken) {
1049
+ return new Message(Severity.INFORMATION, 'Info, Niet gevonden takken uit \'OngeplandeActies\': ' + nietGevondenTakken);
1050
+ }
1051
+ }
1052
+
1053
+ /**
1054
+ * Custom HttpParameterCodec
1055
+ * Workaround for https://github.com/angular/angular/issues/18261
1056
+ */
1057
+ class CustomHttpParameterCodec {
1058
+ encodeKey(k) {
1059
+ return encodeURIComponent(k);
1060
+ }
1061
+ encodeValue(v) {
1062
+ return encodeURIComponent(v);
1063
+ }
1064
+ decodeKey(k) {
1065
+ return decodeURIComponent(k);
1066
+ }
1067
+ decodeValue(v) {
1068
+ return decodeURIComponent(v);
1069
+ }
1070
+ }
1071
+
1072
+ const BASE_PATH = new InjectionToken('basePath');
1073
+ const COLLECTION_FORMATS = {
1074
+ 'csv': ',',
1075
+ 'tsv': ' ',
1076
+ 'ssv': ' ',
1077
+ 'pipes': '|'
1078
+ };
1079
+
1080
+ class Configuration {
1081
+ constructor(configurationParameters = {}) {
1082
+ this.apiKeys = configurationParameters.apiKeys;
1083
+ this.username = configurationParameters.username;
1084
+ this.password = configurationParameters.password;
1085
+ this.accessToken = configurationParameters.accessToken;
1086
+ this.basePath = configurationParameters.basePath;
1087
+ this.withCredentials = configurationParameters.withCredentials;
1088
+ this.encoder = configurationParameters.encoder;
1089
+ if (configurationParameters.encodeParam) {
1090
+ this.encodeParam = configurationParameters.encodeParam;
1091
+ }
1092
+ else {
1093
+ this.encodeParam = param => this.defaultEncodeParam(param);
1094
+ }
1095
+ if (configurationParameters.credentials) {
1096
+ this.credentials = configurationParameters.credentials;
1097
+ }
1098
+ else {
1099
+ this.credentials = {};
1100
+ }
1101
+ // init default keycloak_auth credential
1102
+ if (!this.credentials['keycloak_auth']) {
1103
+ this.credentials['keycloak_auth'] = () => {
1104
+ return typeof this.accessToken === 'function'
1105
+ ? this.accessToken()
1106
+ : this.accessToken;
1107
+ };
1108
+ }
1109
+ }
1110
+ /**
1111
+ * Select the correct content-type to use for a request.
1112
+ * Uses {@link Configuration#isJsonMime} to determine the correct content-type.
1113
+ * If no content type is found return the first found type if the contentTypes is not empty
1114
+ * @param contentTypes - the array of content types that are available for selection
1115
+ * @returns the selected content-type or <code>undefined</code> if no selection could be made.
1116
+ */
1117
+ selectHeaderContentType(contentTypes) {
1118
+ if (contentTypes.length === 0) {
1119
+ return undefined;
1120
+ }
1121
+ const type = contentTypes.find((x) => this.isJsonMime(x));
1122
+ if (type === undefined) {
1123
+ return contentTypes[0];
1124
+ }
1125
+ return type;
1126
+ }
1127
+ /**
1128
+ * Select the correct accept content-type to use for a request.
1129
+ * Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.
1130
+ * If no content type is found return the first found type if the contentTypes is not empty
1131
+ * @param accepts - the array of content types that are available for selection.
1132
+ * @returns the selected content-type or <code>undefined</code> if no selection could be made.
1133
+ */
1134
+ selectHeaderAccept(accepts) {
1135
+ if (accepts.length === 0) {
1136
+ return undefined;
1137
+ }
1138
+ const type = accepts.find((x) => this.isJsonMime(x));
1139
+ if (type === undefined) {
1140
+ return accepts[0];
1141
+ }
1142
+ return type;
1143
+ }
1144
+ /**
1145
+ * Check if the given MIME is a JSON MIME.
1146
+ * JSON MIME examples:
1147
+ * application/json
1148
+ * application/json; charset=UTF8
1149
+ * APPLICATION/JSON
1150
+ * application/vnd.company+json
1151
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
1152
+ * @return True if the given MIME is JSON, false otherwise.
1153
+ */
1154
+ isJsonMime(mime) {
1155
+ const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
1156
+ return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
1157
+ }
1158
+ lookupCredential(key) {
1159
+ const value = this.credentials[key];
1160
+ return typeof value === 'function'
1161
+ ? value()
1162
+ : value;
1163
+ }
1164
+ defaultEncodeParam(param) {
1165
+ // This implementation exists as fallback for missing configuration
1166
+ // and for backwards compatibility to older typescript-angular generator versions.
1167
+ // It only works for the 'simple' parameter style.
1168
+ // Date-handling only works for the 'date-time' format.
1169
+ // All other styles and Date-formats are probably handled incorrectly.
1170
+ //
1171
+ // But: if that's all you need (i.e.: the most common use-case): no need for customization!
1172
+ const value = param.dataFormat === 'date-time' && param.value instanceof Date
1173
+ ? param.value.toISOString()
1174
+ : param.value;
1175
+ return encodeURIComponent(String(value));
1176
+ }
1177
+ }
1178
+
1179
+ /**
1180
+ * MST
1181
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
1182
+ *
1183
+ * The version of the OpenAPI document: 1
1184
+ *
1185
+ *
1186
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1187
+ * https://openapi-generator.tech
1188
+ * Do not edit the class manually.
1189
+ */
1190
+ /* tslint:disable:no-unused-variable member-ordering */
1191
+ class AppConfigControllerService {
1192
+ constructor(httpClient, basePath, configuration) {
1193
+ this.httpClient = httpClient;
1194
+ this.basePath = 'http://localhost:8080/mst';
1195
+ this.defaultHeaders = new HttpHeaders();
1196
+ this.configuration = new Configuration();
1197
+ if (configuration) {
1198
+ this.configuration = configuration;
1199
+ }
1200
+ if (typeof this.configuration.basePath !== 'string') {
1201
+ if (Array.isArray(basePath) && basePath.length > 0) {
1202
+ basePath = basePath[0];
1203
+ }
1204
+ if (typeof basePath !== 'string') {
1205
+ basePath = this.basePath;
1206
+ }
1207
+ this.configuration.basePath = basePath;
1208
+ }
1209
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
1210
+ }
1211
+ // @ts-ignore
1212
+ addToHttpParams(httpParams, value, key) {
1213
+ if (typeof value === "object" && value instanceof Date === false) {
1214
+ httpParams = this.addToHttpParamsRecursive(httpParams, value);
1215
+ }
1216
+ else {
1217
+ httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
1218
+ }
1219
+ return httpParams;
1220
+ }
1221
+ addToHttpParamsRecursive(httpParams, value, key) {
1222
+ if (value == null) {
1223
+ return httpParams;
1224
+ }
1225
+ if (typeof value === "object") {
1226
+ if (Array.isArray(value)) {
1227
+ value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
1228
+ }
1229
+ else if (value instanceof Date) {
1230
+ if (key != null) {
1231
+ httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
1232
+ }
1233
+ else {
1234
+ throw Error("key may not be null if value is Date");
1235
+ }
1236
+ }
1237
+ else {
1238
+ Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
1239
+ }
1240
+ }
1241
+ else if (key != null) {
1242
+ httpParams = httpParams.append(key, value);
1243
+ }
1244
+ else {
1245
+ throw Error("key may not be null if value is not object or array");
1246
+ }
1247
+ return httpParams;
1248
+ }
1249
+ getAppConfig(observe = 'body', reportProgress = false, options) {
1250
+ let localVarHeaders = this.defaultHeaders;
1251
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1252
+ if (localVarHttpHeaderAcceptSelected === undefined) {
1253
+ // to determine the Accept header
1254
+ const httpHeaderAccepts = [
1255
+ '*/*'
1256
+ ];
1257
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1258
+ }
1259
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1260
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1261
+ }
1262
+ let localVarHttpContext = options && options.context;
1263
+ if (localVarHttpContext === undefined) {
1264
+ localVarHttpContext = new HttpContext();
1265
+ }
1266
+ let localVarTransferCache = options && options.transferCache;
1267
+ if (localVarTransferCache === undefined) {
1268
+ localVarTransferCache = true;
1269
+ }
1270
+ let responseType_ = 'json';
1271
+ if (localVarHttpHeaderAcceptSelected) {
1272
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1273
+ responseType_ = 'text';
1274
+ }
1275
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1276
+ responseType_ = 'json';
1277
+ }
1278
+ else {
1279
+ responseType_ = 'blob';
1280
+ }
1281
+ }
1282
+ let localVarPath = `/rest/appconfig`;
1283
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1284
+ context: localVarHttpContext,
1285
+ responseType: responseType_,
1286
+ withCredentials: this.configuration.withCredentials,
1287
+ headers: localVarHeaders,
1288
+ observe: observe,
1289
+ transferCache: localVarTransferCache,
1290
+ reportProgress: reportProgress
1291
+ });
1292
+ }
1293
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: AppConfigControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
1294
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: AppConfigControllerService, providedIn: 'root' }); }
1295
+ }
1296
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: AppConfigControllerService, decorators: [{
1297
+ type: Injectable,
1298
+ args: [{
1299
+ providedIn: 'root'
1300
+ }]
1301
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1302
+ type: Optional
1303
+ }, {
1304
+ type: Inject,
1305
+ args: [BASE_PATH]
1306
+ }] }, { type: Configuration, decorators: [{
1307
+ type: Optional
1308
+ }] }] });
1309
+
1310
+ /**
1311
+ * MST
1312
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
1313
+ *
1314
+ * The version of the OpenAPI document: 1
1315
+ *
1316
+ *
1317
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1318
+ * https://openapi-generator.tech
1319
+ * Do not edit the class manually.
1320
+ */
1321
+ /* tslint:disable:no-unused-variable member-ordering */
1322
+ class BewegingControllerService {
1323
+ constructor(httpClient, basePath, configuration) {
1324
+ this.httpClient = httpClient;
1325
+ this.basePath = 'http://localhost:8080/mst';
1326
+ this.defaultHeaders = new HttpHeaders();
1327
+ this.configuration = new Configuration();
1328
+ if (configuration) {
1329
+ this.configuration = configuration;
1330
+ }
1331
+ if (typeof this.configuration.basePath !== 'string') {
1332
+ if (Array.isArray(basePath) && basePath.length > 0) {
1333
+ basePath = basePath[0];
1334
+ }
1335
+ if (typeof basePath !== 'string') {
1336
+ basePath = this.basePath;
1337
+ }
1338
+ this.configuration.basePath = basePath;
1339
+ }
1340
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
1341
+ }
1342
+ // @ts-ignore
1343
+ addToHttpParams(httpParams, value, key) {
1344
+ if (typeof value === "object" && value instanceof Date === false) {
1345
+ httpParams = this.addToHttpParamsRecursive(httpParams, value);
1346
+ }
1347
+ else {
1348
+ httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
1349
+ }
1350
+ return httpParams;
1351
+ }
1352
+ addToHttpParamsRecursive(httpParams, value, key) {
1353
+ if (value == null) {
1354
+ return httpParams;
1355
+ }
1356
+ if (typeof value === "object") {
1357
+ if (Array.isArray(value)) {
1358
+ value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
1359
+ }
1360
+ else if (value instanceof Date) {
1361
+ if (key != null) {
1362
+ httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
1363
+ }
1364
+ else {
1365
+ throw Error("key may not be null if value is Date");
1366
+ }
1367
+ }
1368
+ else {
1369
+ Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
1370
+ }
1371
+ }
1372
+ else if (key != null) {
1373
+ httpParams = httpParams.append(key, value);
1374
+ }
1375
+ else {
1376
+ throw Error("key may not be null if value is not object or array");
1377
+ }
1378
+ return httpParams;
1379
+ }
1380
+ verrijkBewegingenMetOngeplandeActies(iaVersie, ritRequestDto, observe = 'body', reportProgress = false, options) {
1381
+ if (iaVersie === null || iaVersie === undefined) {
1382
+ throw new Error('Required parameter iaVersie was null or undefined when calling verrijkBewegingenMetOngeplandeActies.');
1383
+ }
1384
+ if (ritRequestDto === null || ritRequestDto === undefined) {
1385
+ throw new Error('Required parameter ritRequestDto was null or undefined when calling verrijkBewegingenMetOngeplandeActies.');
1386
+ }
1387
+ let localVarHeaders = this.defaultHeaders;
1388
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1389
+ if (localVarHttpHeaderAcceptSelected === undefined) {
1390
+ // to determine the Accept header
1391
+ const httpHeaderAccepts = [
1392
+ '*/*'
1393
+ ];
1394
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1395
+ }
1396
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1397
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1398
+ }
1399
+ let localVarHttpContext = options && options.context;
1400
+ if (localVarHttpContext === undefined) {
1401
+ localVarHttpContext = new HttpContext();
1402
+ }
1403
+ let localVarTransferCache = options && options.transferCache;
1404
+ if (localVarTransferCache === undefined) {
1405
+ localVarTransferCache = true;
1406
+ }
1407
+ // to determine the Content-Type header
1408
+ const consumes = [
1409
+ 'application/json'
1410
+ ];
1411
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
1412
+ if (httpContentTypeSelected !== undefined) {
1413
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
1414
+ }
1415
+ let responseType_ = 'json';
1416
+ if (localVarHttpHeaderAcceptSelected) {
1417
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1418
+ responseType_ = 'text';
1419
+ }
1420
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1421
+ responseType_ = 'json';
1422
+ }
1423
+ else {
1424
+ responseType_ = 'blob';
1425
+ }
1426
+ }
1427
+ let localVarPath = `/rest/beweging/${this.configuration.encodeParam({ name: "iaVersie", value: iaVersie, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
1428
+ return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
1429
+ context: localVarHttpContext,
1430
+ body: ritRequestDto,
1431
+ responseType: responseType_,
1432
+ withCredentials: this.configuration.withCredentials,
1433
+ headers: localVarHeaders,
1434
+ observe: observe,
1435
+ transferCache: localVarTransferCache,
1436
+ reportProgress: reportProgress
1437
+ });
1438
+ }
1439
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: BewegingControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
1440
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: BewegingControllerService, providedIn: 'root' }); }
1441
+ }
1442
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: BewegingControllerService, decorators: [{
1443
+ type: Injectable,
1444
+ args: [{
1445
+ providedIn: 'root'
1446
+ }]
1447
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1448
+ type: Optional
1449
+ }, {
1450
+ type: Inject,
1451
+ args: [BASE_PATH]
1452
+ }] }, { type: Configuration, decorators: [{
1453
+ type: Optional
1454
+ }] }] });
1455
+
1456
+ /**
1457
+ * MST
1458
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
1459
+ *
1460
+ * The version of the OpenAPI document: 1
1461
+ *
1462
+ *
1463
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1464
+ * https://openapi-generator.tech
1465
+ * Do not edit the class manually.
1466
+ */
1467
+ /* tslint:disable:no-unused-variable member-ordering */
1468
+ class Class0BuildPropertiesService {
1469
+ constructor(httpClient, basePath, configuration) {
1470
+ this.httpClient = httpClient;
1471
+ this.basePath = 'http://localhost:8080/mst';
1472
+ this.defaultHeaders = new HttpHeaders();
1473
+ this.configuration = new Configuration();
1474
+ if (configuration) {
1475
+ this.configuration = configuration;
1476
+ }
1477
+ if (typeof this.configuration.basePath !== 'string') {
1478
+ if (Array.isArray(basePath) && basePath.length > 0) {
1479
+ basePath = basePath[0];
1480
+ }
1481
+ if (typeof basePath !== 'string') {
1482
+ basePath = this.basePath;
1483
+ }
1484
+ this.configuration.basePath = basePath;
1485
+ }
1486
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
1487
+ }
1488
+ // @ts-ignore
1489
+ addToHttpParams(httpParams, value, key) {
1490
+ if (typeof value === "object" && value instanceof Date === false) {
1491
+ httpParams = this.addToHttpParamsRecursive(httpParams, value);
1492
+ }
1493
+ else {
1494
+ httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
1495
+ }
1496
+ return httpParams;
1497
+ }
1498
+ addToHttpParamsRecursive(httpParams, value, key) {
1499
+ if (value == null) {
1500
+ return httpParams;
1501
+ }
1502
+ if (typeof value === "object") {
1503
+ if (Array.isArray(value)) {
1504
+ value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
1505
+ }
1506
+ else if (value instanceof Date) {
1507
+ if (key != null) {
1508
+ httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
1509
+ }
1510
+ else {
1511
+ throw Error("key may not be null if value is Date");
1512
+ }
1513
+ }
1514
+ else {
1515
+ Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
1516
+ }
1517
+ }
1518
+ else if (key != null) {
1519
+ httpParams = httpParams.append(key, value);
1520
+ }
1521
+ else {
1522
+ throw Error("key may not be null if value is not object or array");
1523
+ }
1524
+ return httpParams;
1525
+ }
1526
+ getBuildProperties(observe = 'body', reportProgress = false, options) {
1527
+ let localVarHeaders = this.defaultHeaders;
1528
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1529
+ if (localVarHttpHeaderAcceptSelected === undefined) {
1530
+ // to determine the Accept header
1531
+ const httpHeaderAccepts = [
1532
+ 'application/json'
1533
+ ];
1534
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1535
+ }
1536
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1537
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1538
+ }
1539
+ let localVarHttpContext = options && options.context;
1540
+ if (localVarHttpContext === undefined) {
1541
+ localVarHttpContext = new HttpContext();
1542
+ }
1543
+ let localVarTransferCache = options && options.transferCache;
1544
+ if (localVarTransferCache === undefined) {
1545
+ localVarTransferCache = true;
1546
+ }
1547
+ let responseType_ = 'json';
1548
+ if (localVarHttpHeaderAcceptSelected) {
1549
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1550
+ responseType_ = 'text';
1551
+ }
1552
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1553
+ responseType_ = 'json';
1554
+ }
1555
+ else {
1556
+ responseType_ = 'blob';
1557
+ }
1558
+ }
1559
+ let localVarPath = `/build.properties`;
1560
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1561
+ context: localVarHttpContext,
1562
+ responseType: responseType_,
1563
+ withCredentials: this.configuration.withCredentials,
1564
+ headers: localVarHeaders,
1565
+ observe: observe,
1566
+ transferCache: localVarTransferCache,
1567
+ reportProgress: reportProgress
1568
+ });
1569
+ }
1570
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: Class0BuildPropertiesService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
1571
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: Class0BuildPropertiesService, providedIn: 'root' }); }
1572
+ }
1573
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: Class0BuildPropertiesService, decorators: [{
1574
+ type: Injectable,
1575
+ args: [{
1576
+ providedIn: 'root'
1577
+ }]
1578
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1579
+ type: Optional
1580
+ }, {
1581
+ type: Inject,
1582
+ args: [BASE_PATH]
1583
+ }] }, { type: Configuration, decorators: [{
1584
+ type: Optional
1585
+ }] }] });
1586
+
1587
+ /**
1588
+ * MST
1589
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
1590
+ *
1591
+ * The version of the OpenAPI document: 1
1592
+ *
1593
+ *
1594
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1595
+ * https://openapi-generator.tech
1596
+ * Do not edit the class manually.
1597
+ */
1598
+ /* tslint:disable:no-unused-variable member-ordering */
1599
+ class ConnectorControllerService {
1600
+ constructor(httpClient, basePath, configuration) {
1601
+ this.httpClient = httpClient;
1602
+ this.basePath = 'http://localhost:8080/mst';
1603
+ this.defaultHeaders = new HttpHeaders();
1604
+ this.configuration = new Configuration();
1605
+ if (configuration) {
1606
+ this.configuration = configuration;
1607
+ }
1608
+ if (typeof this.configuration.basePath !== 'string') {
1609
+ if (Array.isArray(basePath) && basePath.length > 0) {
1610
+ basePath = basePath[0];
1611
+ }
1612
+ if (typeof basePath !== 'string') {
1613
+ basePath = this.basePath;
1614
+ }
1615
+ this.configuration.basePath = basePath;
1616
+ }
1617
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
1618
+ }
1619
+ // @ts-ignore
1620
+ addToHttpParams(httpParams, value, key) {
1621
+ if (typeof value === "object" && value instanceof Date === false) {
1622
+ httpParams = this.addToHttpParamsRecursive(httpParams, value);
1623
+ }
1624
+ else {
1625
+ httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
1626
+ }
1627
+ return httpParams;
1628
+ }
1629
+ addToHttpParamsRecursive(httpParams, value, key) {
1630
+ if (value == null) {
1631
+ return httpParams;
1632
+ }
1633
+ if (typeof value === "object") {
1634
+ if (Array.isArray(value)) {
1635
+ value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
1636
+ }
1637
+ else if (value instanceof Date) {
1638
+ if (key != null) {
1639
+ httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
1640
+ }
1641
+ else {
1642
+ throw Error("key may not be null if value is Date");
1643
+ }
1644
+ }
1645
+ else {
1646
+ Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
1647
+ }
1648
+ }
1649
+ else if (key != null) {
1650
+ httpParams = httpParams.append(key, value);
1651
+ }
1652
+ else {
1653
+ throw Error("key may not be null if value is not object or array");
1654
+ }
1655
+ return httpParams;
1656
+ }
1657
+ getOtherConnector(iaVersie, connectorPuic, observe = 'body', reportProgress = false, options) {
1658
+ if (iaVersie === null || iaVersie === undefined) {
1659
+ throw new Error('Required parameter iaVersie was null or undefined when calling getOtherConnector.');
1660
+ }
1661
+ if (connectorPuic === null || connectorPuic === undefined) {
1662
+ throw new Error('Required parameter connectorPuic was null or undefined when calling getOtherConnector.');
1663
+ }
1664
+ let localVarHeaders = this.defaultHeaders;
1665
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1666
+ if (localVarHttpHeaderAcceptSelected === undefined) {
1667
+ // to determine the Accept header
1668
+ const httpHeaderAccepts = [
1669
+ '*/*'
1670
+ ];
1671
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1672
+ }
1673
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1674
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1675
+ }
1676
+ let localVarHttpContext = options && options.context;
1677
+ if (localVarHttpContext === undefined) {
1678
+ localVarHttpContext = new HttpContext();
1679
+ }
1680
+ let localVarTransferCache = options && options.transferCache;
1681
+ if (localVarTransferCache === undefined) {
1682
+ localVarTransferCache = true;
1683
+ }
1684
+ let responseType_ = 'json';
1685
+ if (localVarHttpHeaderAcceptSelected) {
1686
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1687
+ responseType_ = 'text';
1688
+ }
1689
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1690
+ responseType_ = 'json';
1691
+ }
1692
+ else {
1693
+ responseType_ = 'blob';
1694
+ }
1695
+ }
1696
+ let localVarPath = `/rest/connector/${this.configuration.encodeParam({ name: "iaVersie", value: iaVersie, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/${this.configuration.encodeParam({ name: "connectorPuic", value: connectorPuic, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
1697
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1698
+ context: localVarHttpContext,
1699
+ responseType: responseType_,
1700
+ withCredentials: this.configuration.withCredentials,
1701
+ headers: localVarHeaders,
1702
+ observe: observe,
1703
+ transferCache: localVarTransferCache,
1704
+ reportProgress: reportProgress
1705
+ });
1706
+ }
1707
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: ConnectorControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
1708
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: ConnectorControllerService, providedIn: 'root' }); }
1709
+ }
1710
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: ConnectorControllerService, decorators: [{
1711
+ type: Injectable,
1712
+ args: [{
1713
+ providedIn: 'root'
1714
+ }]
1715
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1716
+ type: Optional
1717
+ }, {
1718
+ type: Inject,
1719
+ args: [BASE_PATH]
1720
+ }] }, { type: Configuration, decorators: [{
1721
+ type: Optional
1722
+ }] }] });
1723
+
1724
+ /**
1725
+ * MST
1726
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
1727
+ *
1728
+ * The version of the OpenAPI document: 1
1729
+ *
1730
+ *
1731
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1732
+ * https://openapi-generator.tech
1733
+ * Do not edit the class manually.
1734
+ */
1735
+ /* tslint:disable:no-unused-variable member-ordering */
1736
+ class LogControllerService {
1737
+ constructor(httpClient, basePath, configuration) {
1738
+ this.httpClient = httpClient;
1739
+ this.basePath = 'http://localhost:8080/mst';
1740
+ this.defaultHeaders = new HttpHeaders();
1741
+ this.configuration = new Configuration();
1742
+ if (configuration) {
1743
+ this.configuration = configuration;
1744
+ }
1745
+ if (typeof this.configuration.basePath !== 'string') {
1746
+ if (Array.isArray(basePath) && basePath.length > 0) {
1747
+ basePath = basePath[0];
1748
+ }
1749
+ if (typeof basePath !== 'string') {
1750
+ basePath = this.basePath;
1751
+ }
1752
+ this.configuration.basePath = basePath;
1753
+ }
1754
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
1755
+ }
1756
+ // @ts-ignore
1757
+ addToHttpParams(httpParams, value, key) {
1758
+ if (typeof value === "object" && value instanceof Date === false) {
1759
+ httpParams = this.addToHttpParamsRecursive(httpParams, value);
1760
+ }
1761
+ else {
1762
+ httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
1763
+ }
1764
+ return httpParams;
1765
+ }
1766
+ addToHttpParamsRecursive(httpParams, value, key) {
1767
+ if (value == null) {
1768
+ return httpParams;
1769
+ }
1770
+ if (typeof value === "object") {
1771
+ if (Array.isArray(value)) {
1772
+ value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
1773
+ }
1774
+ else if (value instanceof Date) {
1775
+ if (key != null) {
1776
+ httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
1777
+ }
1778
+ else {
1779
+ throw Error("key may not be null if value is Date");
1780
+ }
1781
+ }
1782
+ else {
1783
+ Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
1784
+ }
1785
+ }
1786
+ else if (key != null) {
1787
+ httpParams = httpParams.append(key, value);
1788
+ }
1789
+ else {
1790
+ throw Error("key may not be null if value is not object or array");
1791
+ }
1792
+ return httpParams;
1793
+ }
1794
+ log(logDto, observe = 'body', reportProgress = false, options) {
1795
+ if (logDto === null || logDto === undefined) {
1796
+ throw new Error('Required parameter logDto was null or undefined when calling log.');
1797
+ }
1798
+ let localVarHeaders = this.defaultHeaders;
1799
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1800
+ if (localVarHttpHeaderAcceptSelected === undefined) {
1801
+ // to determine the Accept header
1802
+ const httpHeaderAccepts = [];
1803
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1804
+ }
1805
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1806
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1807
+ }
1808
+ let localVarHttpContext = options && options.context;
1809
+ if (localVarHttpContext === undefined) {
1810
+ localVarHttpContext = new HttpContext();
1811
+ }
1812
+ let localVarTransferCache = options && options.transferCache;
1813
+ if (localVarTransferCache === undefined) {
1814
+ localVarTransferCache = true;
1815
+ }
1816
+ // to determine the Content-Type header
1817
+ const consumes = [
1818
+ 'application/json'
1819
+ ];
1820
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
1821
+ if (httpContentTypeSelected !== undefined) {
1822
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
1823
+ }
1824
+ let responseType_ = 'json';
1825
+ if (localVarHttpHeaderAcceptSelected) {
1826
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1827
+ responseType_ = 'text';
1828
+ }
1829
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1830
+ responseType_ = 'json';
1831
+ }
1832
+ else {
1833
+ responseType_ = 'blob';
1834
+ }
1835
+ }
1836
+ let localVarPath = `/rest/logging/`;
1837
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
1838
+ context: localVarHttpContext,
1839
+ body: logDto,
1840
+ responseType: responseType_,
1841
+ withCredentials: this.configuration.withCredentials,
1842
+ headers: localVarHeaders,
1843
+ observe: observe,
1844
+ transferCache: localVarTransferCache,
1845
+ reportProgress: reportProgress
1846
+ });
1847
+ }
1848
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: LogControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
1849
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: LogControllerService, providedIn: 'root' }); }
1850
+ }
1851
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: LogControllerService, decorators: [{
1852
+ type: Injectable,
1853
+ args: [{
1854
+ providedIn: 'root'
1855
+ }]
1856
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1857
+ type: Optional
1858
+ }, {
1859
+ type: Inject,
1860
+ args: [BASE_PATH]
1861
+ }] }, { type: Configuration, decorators: [{
1862
+ type: Optional
1863
+ }] }] });
1864
+
1865
+ /**
1866
+ * MST
1867
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
1868
+ *
1869
+ * The version of the OpenAPI document: 1
1870
+ *
1871
+ *
1872
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1873
+ * https://openapi-generator.tech
1874
+ * Do not edit the class manually.
1875
+ */
1876
+ /* tslint:disable:no-unused-variable member-ordering */
1877
+ class P21ControllerService {
1878
+ constructor(httpClient, basePath, configuration) {
1879
+ this.httpClient = httpClient;
1880
+ this.basePath = 'http://localhost:8080/mst';
1881
+ this.defaultHeaders = new HttpHeaders();
1882
+ this.configuration = new Configuration();
1883
+ if (configuration) {
1884
+ this.configuration = configuration;
1885
+ }
1886
+ if (typeof this.configuration.basePath !== 'string') {
1887
+ if (Array.isArray(basePath) && basePath.length > 0) {
1888
+ basePath = basePath[0];
1889
+ }
1890
+ if (typeof basePath !== 'string') {
1891
+ basePath = this.basePath;
1892
+ }
1893
+ this.configuration.basePath = basePath;
1894
+ }
1895
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
1896
+ }
1897
+ /**
1898
+ * @param consumes string[] mime-types
1899
+ * @return true: consumes contains 'multipart/form-data', false: otherwise
1900
+ */
1901
+ canConsumeForm(consumes) {
1902
+ const form = 'multipart/form-data';
1903
+ for (const consume of consumes) {
1904
+ if (form === consume) {
1905
+ return true;
1906
+ }
1907
+ }
1908
+ return false;
1909
+ }
1910
+ // @ts-ignore
1911
+ addToHttpParams(httpParams, value, key) {
1912
+ if (typeof value === "object" && value instanceof Date === false) {
1913
+ httpParams = this.addToHttpParamsRecursive(httpParams, value);
1914
+ }
1915
+ else {
1916
+ httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
1917
+ }
1918
+ return httpParams;
1919
+ }
1920
+ addToHttpParamsRecursive(httpParams, value, key) {
1921
+ if (value == null) {
1922
+ return httpParams;
1923
+ }
1924
+ if (typeof value === "object") {
1925
+ if (Array.isArray(value)) {
1926
+ value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
1927
+ }
1928
+ else if (value instanceof Date) {
1929
+ if (key != null) {
1930
+ httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
1931
+ }
1932
+ else {
1933
+ throw Error("key may not be null if value is Date");
1934
+ }
1935
+ }
1936
+ else {
1937
+ Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
1938
+ }
1939
+ }
1940
+ else if (key != null) {
1941
+ httpParams = httpParams.append(key, value);
1942
+ }
1943
+ else {
1944
+ throw Error("key may not be null if value is not object or array");
1945
+ }
1946
+ return httpParams;
1947
+ }
1948
+ createP21Levering(p21Levering, update, observe = 'body', reportProgress = false, options) {
1949
+ if (p21Levering === null || p21Levering === undefined) {
1950
+ throw new Error('Required parameter p21Levering was null or undefined when calling createP21Levering.');
1951
+ }
1952
+ let localVarHeaders = this.defaultHeaders;
1953
+ let localVarCredential;
1954
+ // authentication (keycloak_auth) required
1955
+ localVarCredential = this.configuration.lookupCredential('keycloak_auth');
1956
+ if (localVarCredential) {
1957
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
1958
+ }
1959
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1960
+ if (localVarHttpHeaderAcceptSelected === undefined) {
1961
+ // to determine the Accept header
1962
+ const httpHeaderAccepts = [
1963
+ '*/*'
1964
+ ];
1965
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1966
+ }
1967
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1968
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1969
+ }
1970
+ let localVarHttpContext = options && options.context;
1971
+ if (localVarHttpContext === undefined) {
1972
+ localVarHttpContext = new HttpContext();
1973
+ }
1974
+ let localVarTransferCache = options && options.transferCache;
1975
+ if (localVarTransferCache === undefined) {
1976
+ localVarTransferCache = true;
1977
+ }
1978
+ // to determine the Content-Type header
1979
+ const consumes = [
1980
+ 'multipart/form-data'
1981
+ ];
1982
+ const canConsumeForm = this.canConsumeForm(consumes);
1983
+ let localVarFormParams;
1984
+ let localVarUseForm = false;
1985
+ let localVarConvertFormParamsToString = false;
1986
+ // use FormData to transmit files using content-type "multipart/form-data"
1987
+ // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
1988
+ localVarUseForm = canConsumeForm;
1989
+ if (localVarUseForm) {
1990
+ localVarFormParams = new FormData();
1991
+ }
1992
+ else {
1993
+ localVarFormParams = new HttpParams({ encoder: this.encoder });
1994
+ }
1995
+ if (update !== undefined) {
1996
+ localVarFormParams = localVarFormParams.append('update', update) || localVarFormParams;
1997
+ }
1998
+ if (p21Levering !== undefined) {
1999
+ localVarFormParams = localVarFormParams.append('p21Levering', p21Levering) || localVarFormParams;
2000
+ }
2001
+ let responseType_ = 'json';
2002
+ if (localVarHttpHeaderAcceptSelected) {
2003
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2004
+ responseType_ = 'text';
2005
+ }
2006
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2007
+ responseType_ = 'json';
2008
+ }
2009
+ else {
2010
+ responseType_ = 'blob';
2011
+ }
2012
+ }
2013
+ let localVarPath = `/services/secure/rest/backend/uploadversie`;
2014
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
2015
+ context: localVarHttpContext,
2016
+ body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
2017
+ responseType: responseType_,
2018
+ withCredentials: this.configuration.withCredentials,
2019
+ headers: localVarHeaders,
2020
+ observe: observe,
2021
+ transferCache: localVarTransferCache,
2022
+ reportProgress: reportProgress
2023
+ });
2024
+ }
2025
+ getVersies(observe = 'body', reportProgress = false, options) {
2026
+ let localVarHeaders = this.defaultHeaders;
2027
+ let localVarCredential;
2028
+ // authentication (keycloak_auth) required
2029
+ localVarCredential = this.configuration.lookupCredential('keycloak_auth');
2030
+ if (localVarCredential) {
2031
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
2032
+ }
2033
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
2034
+ if (localVarHttpHeaderAcceptSelected === undefined) {
2035
+ // to determine the Accept header
2036
+ const httpHeaderAccepts = [
2037
+ 'application/json'
2038
+ ];
2039
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2040
+ }
2041
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2042
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2043
+ }
2044
+ let localVarHttpContext = options && options.context;
2045
+ if (localVarHttpContext === undefined) {
2046
+ localVarHttpContext = new HttpContext();
2047
+ }
2048
+ let localVarTransferCache = options && options.transferCache;
2049
+ if (localVarTransferCache === undefined) {
2050
+ localVarTransferCache = true;
2051
+ }
2052
+ let responseType_ = 'json';
2053
+ if (localVarHttpHeaderAcceptSelected) {
2054
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2055
+ responseType_ = 'text';
2056
+ }
2057
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2058
+ responseType_ = 'json';
2059
+ }
2060
+ else {
2061
+ responseType_ = 'blob';
2062
+ }
2063
+ }
2064
+ let localVarPath = `/services/secure/rest/backend/versies`;
2065
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2066
+ context: localVarHttpContext,
2067
+ responseType: responseType_,
2068
+ withCredentials: this.configuration.withCredentials,
2069
+ headers: localVarHeaders,
2070
+ observe: observe,
2071
+ transferCache: localVarTransferCache,
2072
+ reportProgress: reportProgress
2073
+ });
2074
+ }
2075
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: P21ControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
2076
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: P21ControllerService, providedIn: 'root' }); }
1030
2077
  }
1031
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: PrintBewegingService, decorators: [{
2078
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: P21ControllerService, decorators: [{
1032
2079
  type: Injectable,
1033
2080
  args: [{
1034
2081
  providedIn: 'root'
1035
2082
  }]
1036
- }], ctorParameters: () => [{ type: i2$1.Store }, { type: ViewerControlService }, { type: SignaleringsBeeldManagerService }] });
2083
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
2084
+ type: Optional
2085
+ }, {
2086
+ type: Inject,
2087
+ args: [BASE_PATH]
2088
+ }] }, { type: Configuration, decorators: [{
2089
+ type: Optional
2090
+ }] }] });
1037
2091
 
1038
- class RpeComponent {
1039
- convertToScript() {
1040
- const element = this.script.nativeElement;
1041
- const script = document.createElement('script');
1042
- script.type = 'text/javascript';
1043
- if (this.baseurl && this.path) {
1044
- script.src = this.baseurl + this.path;
1045
- // eslint-disable-next-line no-console
1046
- console.log('Code geladen van: ' + script.src); //useful for debugging in GWT environment
2092
+ /**
2093
+ * MST
2094
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
2095
+ *
2096
+ * The version of the OpenAPI document: 1
2097
+ *
2098
+ *
2099
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2100
+ * https://openapi-generator.tech
2101
+ * Do not edit the class manually.
2102
+ */
2103
+ /* tslint:disable:no-unused-variable member-ordering */
2104
+ class SbControllerService {
2105
+ constructor(httpClient, basePath, configuration) {
2106
+ this.httpClient = httpClient;
2107
+ this.basePath = 'http://localhost:8080/mst';
2108
+ this.defaultHeaders = new HttpHeaders();
2109
+ this.configuration = new Configuration();
2110
+ if (configuration) {
2111
+ this.configuration = configuration;
2112
+ }
2113
+ if (typeof this.configuration.basePath !== 'string') {
2114
+ if (Array.isArray(basePath) && basePath.length > 0) {
2115
+ basePath = basePath[0];
2116
+ }
2117
+ if (typeof basePath !== 'string') {
2118
+ basePath = this.basePath;
2119
+ }
2120
+ this.configuration.basePath = basePath;
1047
2121
  }
1048
- const parent = element.parentElement;
1049
- parent.parentElement.replaceChild(script, parent);
1050
- }
1051
- ngAfterViewInit() {
1052
- this.convertToScript();
1053
- }
1054
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: RpeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1055
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.7", type: RpeComponent, selector: "rpe-component", inputs: { baseurl: "baseurl", path: "path" }, viewQueries: [{ propertyName: "script", first: true, predicate: ["rpescript"], descendants: true }], ngImport: i0, template: "<div #rpescript style.display=\"none\">\n <ng-content></ng-content>\n</div>\n" }); }
1056
- }
1057
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: RpeComponent, decorators: [{
1058
- type: Component,
1059
- args: [{ selector: 'rpe-component', template: "<div #rpescript style.display=\"none\">\n <ng-content></ng-content>\n</div>\n" }]
1060
- }], propDecorators: { baseurl: [{
1061
- type: Input
1062
- }], path: [{
1063
- type: Input
1064
- }], script: [{
1065
- type: ViewChild,
1066
- args: ['rpescript']
1067
- }] } });
1068
-
1069
- class OngeplandeActie {
1070
- constructor(actie, puics) {
1071
- this.actie = actie;
1072
- this.puics = puics;
1073
- }
1074
- }
1075
-
1076
- class KmRange {
1077
- constructor(topologyElement, vanKilometreringen, totKilometreringen) {
1078
- this.topologyElement = topologyElement;
1079
- this.vanKilometreringen = vanKilometreringen;
1080
- this.totKilometreringen = totKilometreringen;
1081
- }
1082
- static rangeVoorPuntObject(topologyElement) {
1083
- return new KmRange(topologyElement, JsJavaUtil.listToArray(topologyElement.getKilometreringen()), JsJavaUtil.listToArray(topologyElement.getKilometreringen()));
2122
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
1084
2123
  }
1085
- static rangeVoorStrekObject(topologyElement, vanKilometreringen, totKilometreringen) {
1086
- return new KmRange(topologyElement, vanKilometreringen, totKilometreringen);
2124
+ // @ts-ignore
2125
+ addToHttpParams(httpParams, value, key) {
2126
+ if (typeof value === "object" && value instanceof Date === false) {
2127
+ httpParams = this.addToHttpParamsRecursive(httpParams, value);
2128
+ }
2129
+ else {
2130
+ httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
2131
+ }
2132
+ return httpParams;
1087
2133
  }
1088
- static getKilometrering(lintNaam, kilometreringen) {
1089
- const result = kilometreringen.filter(kilometrering => kilometrering.getKmLint() === lintNaam);
1090
- if (result.length >= 1) {
1091
- return result[0];
2134
+ addToHttpParamsRecursive(httpParams, value, key) {
2135
+ if (value == null) {
2136
+ return httpParams;
1092
2137
  }
1093
- return null;
2138
+ if (typeof value === "object") {
2139
+ if (Array.isArray(value)) {
2140
+ value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
2141
+ }
2142
+ else if (value instanceof Date) {
2143
+ if (key != null) {
2144
+ httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
2145
+ }
2146
+ else {
2147
+ throw Error("key may not be null if value is Date");
2148
+ }
2149
+ }
2150
+ else {
2151
+ Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
2152
+ }
2153
+ }
2154
+ else if (key != null) {
2155
+ httpParams = httpParams.append(key, value);
2156
+ }
2157
+ else {
2158
+ throw Error("key may not be null if value is not object or array");
2159
+ }
2160
+ return httpParams;
2161
+ }
2162
+ getSignaleringsbeelden(signaleringsbeeldRequestDto, observe = 'body', reportProgress = false, options) {
2163
+ if (signaleringsbeeldRequestDto === null || signaleringsbeeldRequestDto === undefined) {
2164
+ throw new Error('Required parameter signaleringsbeeldRequestDto was null or undefined when calling getSignaleringsbeelden.');
2165
+ }
2166
+ let localVarHeaders = this.defaultHeaders;
2167
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
2168
+ if (localVarHttpHeaderAcceptSelected === undefined) {
2169
+ // to determine the Accept header
2170
+ const httpHeaderAccepts = [
2171
+ '*/*'
2172
+ ];
2173
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2174
+ }
2175
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2176
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2177
+ }
2178
+ let localVarHttpContext = options && options.context;
2179
+ if (localVarHttpContext === undefined) {
2180
+ localVarHttpContext = new HttpContext();
2181
+ }
2182
+ let localVarTransferCache = options && options.transferCache;
2183
+ if (localVarTransferCache === undefined) {
2184
+ localVarTransferCache = true;
2185
+ }
2186
+ // to determine the Content-Type header
2187
+ const consumes = [
2188
+ 'application/json'
2189
+ ];
2190
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
2191
+ if (httpContentTypeSelected !== undefined) {
2192
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
2193
+ }
2194
+ let responseType_ = 'json';
2195
+ if (localVarHttpHeaderAcceptSelected) {
2196
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2197
+ responseType_ = 'text';
2198
+ }
2199
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2200
+ responseType_ = 'json';
2201
+ }
2202
+ else {
2203
+ responseType_ = 'blob';
2204
+ }
2205
+ }
2206
+ let localVarPath = `/rest/signaleringsbeeldeninfo`;
2207
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
2208
+ context: localVarHttpContext,
2209
+ body: signaleringsbeeldRequestDto,
2210
+ responseType: responseType_,
2211
+ withCredentials: this.configuration.withCredentials,
2212
+ headers: localVarHeaders,
2213
+ observe: observe,
2214
+ transferCache: localVarTransferCache,
2215
+ reportProgress: reportProgress
2216
+ });
1094
2217
  }
1095
- heeftOverlap(kilometrering1, kilometrering2) {
1096
- const vanKilometrering = KmRange.getKilometrering(kilometrering1.getKmLint(), this.vanKilometreringen);
1097
- const totKilometrering = KmRange.getKilometrering(kilometrering2.getKmLint(), this.totKilometreringen);
1098
- if (!vanKilometrering || !totKilometrering) {
1099
- return false;
2218
+ valideerIaVersie(versie, observe = 'body', reportProgress = false, options) {
2219
+ if (versie === null || versie === undefined) {
2220
+ throw new Error('Required parameter versie was null or undefined when calling valideerIaVersie.');
1100
2221
  }
1101
- let startKmWaarde = vanKilometrering.getKmWaarde();
1102
- let endKmWaarde = totKilometrering.getKmWaarde();
1103
- if (startKmWaarde > endKmWaarde) {
1104
- const temp = { end: endKmWaarde, start: startKmWaarde };
1105
- startKmWaarde = temp.end;
1106
- endKmWaarde = temp.start;
2222
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
2223
+ if (versie !== undefined && versie !== null) {
2224
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, versie, 'versie');
1107
2225
  }
1108
- const actieStartKmWaarde = kilometrering1.getKmWaarde();
1109
- const actieEndKmWaarde = kilometrering2.getKmWaarde();
1110
- return endKmWaarde >= actieStartKmWaarde && actieEndKmWaarde >= startKmWaarde;
2226
+ let localVarHeaders = this.defaultHeaders;
2227
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
2228
+ if (localVarHttpHeaderAcceptSelected === undefined) {
2229
+ // to determine the Accept header
2230
+ const httpHeaderAccepts = [];
2231
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2232
+ }
2233
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2234
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2235
+ }
2236
+ let localVarHttpContext = options && options.context;
2237
+ if (localVarHttpContext === undefined) {
2238
+ localVarHttpContext = new HttpContext();
2239
+ }
2240
+ let localVarTransferCache = options && options.transferCache;
2241
+ if (localVarTransferCache === undefined) {
2242
+ localVarTransferCache = true;
2243
+ }
2244
+ let responseType_ = 'json';
2245
+ if (localVarHttpHeaderAcceptSelected) {
2246
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2247
+ responseType_ = 'text';
2248
+ }
2249
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2250
+ responseType_ = 'json';
2251
+ }
2252
+ else {
2253
+ responseType_ = 'blob';
2254
+ }
2255
+ }
2256
+ let localVarPath = `/rest/signaleringsbeeldeninfo/valideeriaversie`;
2257
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2258
+ context: localVarHttpContext,
2259
+ params: localVarQueryParameters,
2260
+ responseType: responseType_,
2261
+ withCredentials: this.configuration.withCredentials,
2262
+ headers: localVarHeaders,
2263
+ observe: observe,
2264
+ transferCache: localVarTransferCache,
2265
+ reportProgress: reportProgress
2266
+ });
1111
2267
  }
2268
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: SbControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
2269
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: SbControllerService, providedIn: 'root' }); }
1112
2270
  }
2271
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: SbControllerService, decorators: [{
2272
+ type: Injectable,
2273
+ args: [{
2274
+ providedIn: 'root'
2275
+ }]
2276
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
2277
+ type: Optional
2278
+ }, {
2279
+ type: Inject,
2280
+ args: [BASE_PATH]
2281
+ }] }, { type: Configuration, decorators: [{
2282
+ type: Optional
2283
+ }] }] });
1113
2284
 
1114
- class WisselKantCode {
1115
- constructor(naam, kantCode) {
1116
- this.naam = naam;
1117
- this.kantCode = kantCode;
1118
- }
1119
- }
2285
+ const APIS = [AppConfigControllerService, BewegingControllerService, Class0BuildPropertiesService, ConnectorControllerService, LogControllerService, P21ControllerService, SbControllerService];
1120
2286
 
1121
- class MeldingEvent {
1122
- constructor(meldingMessage, meldingLevel) {
1123
- this.meldingMessage = meldingMessage;
1124
- this.meldingLevel = meldingLevel;
1125
- }
1126
- }
2287
+ /**
2288
+ * MST
2289
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
2290
+ *
2291
+ * The version of the OpenAPI document: 1
2292
+ *
2293
+ *
2294
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2295
+ * https://openapi-generator.tech
2296
+ * Do not edit the class manually.
2297
+ */
1127
2298
 
1128
- const MELDING_LEVEL_ERROR = 'error';
1129
- const MELDING_LEVEL_WARNING = 'warn';
1130
- const MELDING_LEVEL_INFO = 'info';
1131
- class MeldingBuilder {
1132
- static nietGevondenTakkenOngeplandeActies(nietGevondenTakken) {
1133
- return new MeldingEvent('Niet gevonden takken uit \'OngeplandeActies\': ' + nietGevondenTakken, MELDING_LEVEL_INFO);
2299
+ /**
2300
+ * MST
2301
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
2302
+ *
2303
+ * The version of the OpenAPI document: 1
2304
+ *
2305
+ *
2306
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2307
+ * https://openapi-generator.tech
2308
+ * Do not edit the class manually.
2309
+ */
2310
+
2311
+ /**
2312
+ * MST
2313
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
2314
+ *
2315
+ * The version of the OpenAPI document: 1
2316
+ *
2317
+ *
2318
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2319
+ * https://openapi-generator.tech
2320
+ * Do not edit the class manually.
2321
+ */
2322
+
2323
+ /**
2324
+ * MST
2325
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
2326
+ *
2327
+ * The version of the OpenAPI document: 1
2328
+ *
2329
+ *
2330
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2331
+ * https://openapi-generator.tech
2332
+ * Do not edit the class manually.
2333
+ */
2334
+
2335
+ /**
2336
+ * MST
2337
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
2338
+ *
2339
+ * The version of the OpenAPI document: 1
2340
+ *
2341
+ *
2342
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2343
+ * https://openapi-generator.tech
2344
+ * Do not edit the class manually.
2345
+ */
2346
+
2347
+ class ApiModule {
2348
+ static forRoot(configurationFactory) {
2349
+ return {
2350
+ ngModule: ApiModule,
2351
+ providers: [{ provide: Configuration, useFactory: configurationFactory }]
2352
+ };
1134
2353
  }
1135
- static actieHighlightError(actieZonderElementen) {
1136
- return new MeldingEvent('Highlight error. Geen elementen kunnen vinden voor actie(s) met id: ' + actieZonderElementen, MELDING_LEVEL_ERROR);
2354
+ constructor(parentModule, http) {
2355
+ if (parentModule) {
2356
+ throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
2357
+ }
2358
+ if (!http) {
2359
+ throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
2360
+ 'See also https://github.com/angular/angular/issues/20575');
2361
+ }
1137
2362
  }
2363
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: ApiModule, deps: [{ token: ApiModule, optional: true, skipSelf: true }, { token: i1.HttpClient, optional: true }], target: i0.ɵɵFactoryTarget.NgModule }); }
2364
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.7", ngImport: i0, type: ApiModule }); }
2365
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: ApiModule }); }
1138
2366
  }
2367
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: ApiModule, decorators: [{
2368
+ type: NgModule,
2369
+ args: [{
2370
+ imports: [],
2371
+ declarations: [],
2372
+ exports: [],
2373
+ providers: []
2374
+ }]
2375
+ }], ctorParameters: () => [{ type: ApiModule, decorators: [{
2376
+ type: Optional
2377
+ }, {
2378
+ type: SkipSelf
2379
+ }] }, { type: i1.HttpClient, decorators: [{
2380
+ type: Optional
2381
+ }] }] });
1139
2382
 
1140
- class MessageBuilder {
1141
- static rwpDataNietGevonden(err) {
1142
- return new Message(Severity.ERROR, 'Error bij ophalen van rijwegplan data: ' + err);
1143
- }
1144
- static rijwegNietGevonden(beweging) {
1145
- return new Message(Severity.ERROR, `Rijweg van ${beweging.vanSpoor} in PPLG ${beweging.vanPplg} naar ${beweging.naarSpoor} niet gevonden`);
1146
- }
1147
- static rijwegplanNietGevonden(beweging) {
1148
- return new Message(Severity.ERROR, `Rijwegplan van PPLG ${beweging.vanPplg} niet gevonden`);
1149
- }
1150
- static dwangNietGevonden(beweging) {
1151
- return new Message(Severity.ERROR, `Dwang ${beweging.dwangNummer} voor rijweg van ${beweging.vanSpoor} in PPLG ${beweging.vanPplg} naar ${beweging.naarSpoor} niet gevonden`);
1152
- }
1153
- static nietGevondenSBI(err) {
1154
- return new Message(Severity.ERROR, 'Error bij het ophalen van signaleringsbeeldinfo: ' + Utils.getValidErorrMessage(err));
1155
- }
1156
- static actieHighlightError(actieZonderElementen) {
1157
- return new Message(Severity.ERROR, 'Highlight error. Geen elementen kunnen vinden voor actie(s) met id: ' + actieZonderElementen);
1158
- }
1159
- static ritFileAlGewijzigdError(beweging) {
1160
- return new Message(Severity.ERROR, 'Rit bevat een beweging met status \'Gewijzigd\': Beweging met ID:' + beweging.id);
2383
+ class MstLoggingResource {
2384
+ constructor(controller, store) {
2385
+ this.controller = controller;
2386
+ this.store = store;
2387
+ this.subscriptions = new Subscription();
2388
+ this.subscriptions.add(this.store.select('baseUrl').subscribe(baseUrl => controller.configuration.basePath = baseUrl + '/mst'));
1161
2389
  }
1162
- static meerDan12BladenGevonden(bladAmount) {
1163
- return new Message(Severity.WARNING, 'Warning, Rit bevat ' + bladAmount + ' bladen. Er worden maximaal 12 bladen ondersteund.');
2390
+ ngOnDestroy() {
2391
+ this.subscriptions.unsubscribe();
1164
2392
  }
1165
- static nietGevondenTakkenOngeplandeActies(nietGevondenTakken) {
1166
- return new Message(Severity.INFORMATION, 'Info, Niet gevonden takken uit \'OngeplandeActies\': ' + nietGevondenTakken);
2393
+ logMessages(logDto) {
2394
+ this.controller.log(logDto).subscribe();
1167
2395
  }
2396
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: MstLoggingResource, deps: [{ token: LogControllerService }, { token: i2$1.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }
2397
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: MstLoggingResource }); }
1168
2398
  }
2399
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: MstLoggingResource, decorators: [{
2400
+ type: Injectable
2401
+ }], ctorParameters: () => [{ type: LogControllerService }, { type: i2$1.Store }] });
1169
2402
 
1170
2403
  class LoggingHelper {
1171
- constructor(sbmService, store) {
1172
- this.sbmService = sbmService;
2404
+ constructor(store) {
1173
2405
  this.store = store;
1174
2406
  }
1175
2407
  maakLogDTO(melding, actie) {
@@ -1183,7 +2415,7 @@ class LoggingHelper {
1183
2415
  iaVersie = ia.versie;
1184
2416
  });
1185
2417
  if (actie) {
1186
- actieDto = new ActieDto({
2418
+ actieDto = {
1187
2419
  pplgNaam: actie.pplgNaam,
1188
2420
  ritActieTypeOmschrijving: actie.ritActieTypeOmschrijving,
1189
2421
  ritActieStatus: actie.ritActieStatus,
@@ -1195,16 +2427,16 @@ class LoggingHelper {
1195
2427
  vanKilometrering: actie.vanKilometrering,
1196
2428
  totKilometerlint: actie.totKilometerlint,
1197
2429
  totKilometrering: actie.totKilometrering
1198
- });
2430
+ };
1199
2431
  }
1200
- return new MstLoggingDto({
2432
+ return {
1201
2433
  iaVersie,
1202
2434
  meldingLevel: melding.meldingLevel,
1203
2435
  meldingMessage: melding.meldingMessage,
1204
2436
  actieDto,
1205
2437
  algemeneRitInfoDto,
1206
2438
  sbinfoDtos: this.getSbInfoDtos()
1207
- });
2439
+ };
1208
2440
  }
1209
2441
  getSbInfoDtos() {
1210
2442
  const sbInfoDtos = [];
@@ -1215,12 +2447,12 @@ class LoggingHelper {
1215
2447
  });
1216
2448
  return sbInfoDtos;
1217
2449
  }
1218
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: LoggingHelper, deps: [{ token: SignaleringsBeeldManagerService }, { token: i2$1.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }
2450
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: LoggingHelper, deps: [{ token: i2$1.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }
1219
2451
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: LoggingHelper }); }
1220
2452
  }
1221
2453
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: LoggingHelper, decorators: [{
1222
2454
  type: Injectable
1223
- }], ctorParameters: () => [{ type: SignaleringsBeeldManagerService }, { type: i2$1.Store }] });
2455
+ }], ctorParameters: () => [{ type: i2$1.Store }] });
1224
2456
 
1225
2457
  /**
1226
2458
  * export const RIT_ACTIE_1 = 1;
@@ -1543,9 +2775,9 @@ class ActieHelper {
1543
2775
  this.logLegeMeldingDto(logMeldingDTOs);
1544
2776
  return retval;
1545
2777
  }
1546
- logLegeMeldingDto(logMeldingDTOs) {
1547
- if (logMeldingDTOs.length > 0) {
1548
- this.mstLogResource.logErrorMessages(logMeldingDTOs);
2778
+ logLegeMeldingDto(logDto) {
2779
+ if (logDto.length > 0) {
2780
+ return this.mstLogResource.logMessages(logDto);
1549
2781
  }
1550
2782
  }
1551
2783
  verwerkTopoElementen(topoElementen) {
@@ -1628,14 +2860,14 @@ class ActieHelper {
1628
2860
  if (ActieHelper.isKantCodeLinks(kantcode)) {
1629
2861
  return wissel.getLeft();
1630
2862
  }
1631
- return null;
2863
+ return undefined;
1632
2864
  }
1633
2865
  bepaalPuicVoorWisselSlijpenActie(actie) {
1634
2866
  const storingsSymboolPuic = this.sbmService.getSBWissel(actie.wisselNaam, actie.pplgNaam)?.getStoringSymboolPuic();
1635
2867
  if (!storingsSymboolPuic && this.debug) {
1636
2868
  const melding = MeldingBuilder.actieHighlightError([actie.id]);
1637
2869
  this.messagesService.showMessage(MessageBuilder.actieHighlightError([actie.id]));
1638
- this.mstLogResource.logErrorMessages([this.loggingHelper.maakLogDTO(melding, actie)]);
2870
+ this.mstLogResource.logMessages([this.loggingHelper.maakLogDTO(melding, actie)]);
1639
2871
  }
1640
2872
  return storingsSymboolPuic ? [storingsSymboolPuic] : [];
1641
2873
  }
@@ -1650,10 +2882,16 @@ class RitdelenLijstComponent {
1650
2882
  constructor(store, sbmService) {
1651
2883
  this.store = store;
1652
2884
  this.sbmService = sbmService;
2885
+ this.nietGeplandeActies = [];
1653
2886
  this.focusEmitter = new EventEmitter();
1654
2887
  this.keurAlleActiesGoed = new EventEmitter();
2888
+ this.ritdeelViewModels = [];
1655
2889
  this.selectedRitdeelActies = [];
1656
2890
  this.selectedRitdeelOngeplandeActies = [];
2891
+ this.disableActieKnoppenVanRitdeel = true;
2892
+ this.editable = false;
2893
+ this.ongeplandeActiesMap = new ArrayMultimap();
2894
+ this.geplandeActies = new ArrayMultimap();
1657
2895
  this.NG_ACTIE_PREFIX = '* ';
1658
2896
  this.subscriptions = [];
1659
2897
  this.subscriptions.push(store.select('ritDelen').subscribe((ritdelen) => {
@@ -1703,12 +2941,14 @@ class RitdelenLijstComponent {
1703
2941
  this.store.dispatch(deleteRitdeel(ritdeel));
1704
2942
  }
1705
2943
  deleteActiesUitRit() {
1706
- this.selectedRitdeel.acties.slice().forEach(actie => {
2944
+ this.selectedRitdeel?.acties.slice().forEach(actie => {
1707
2945
  this.deleteActieUitRit(actie);
1708
2946
  });
1709
2947
  }
1710
2948
  deleteActieUitRit(actie) {
1711
- const acties = this.selectedRitdeel.acties;
2949
+ if (!this.selectedRitdeel)
2950
+ return;
2951
+ const acties = this.selectedRitdeel.acties ?? [];
1712
2952
  const idx = acties.indexOf(actie);
1713
2953
  if (idx >= 0) {
1714
2954
  this.verhuisActieNaarOngepland(actie);
@@ -1836,13 +3076,13 @@ class RitdelenLijstComponent {
1836
3076
  return `${prefix}${ActieHelper.getVSTActieOmschrijving(actie)}`;
1837
3077
  }
1838
3078
  bepaalPrefixVoorActieOmschrijving(actie) {
1839
- const prefix = '';
1840
- if (this.selectedRitdeel.acties.includes(actie)) {
3079
+ const noPrefix = '';
3080
+ if (this.selectedRitdeel?.acties.includes(actie)) {
1841
3081
  // Afwijkende naam bij niet gevisualiseerde actie in rit
1842
3082
  const puics = this.geplandeActies.get(actie);
1843
- return puics.length > 0 ? prefix : this.NG_ACTIE_PREFIX;
3083
+ return puics.length > 0 ? noPrefix : this.NG_ACTIE_PREFIX;
1844
3084
  }
1845
- return prefix;
3085
+ return noPrefix;
1846
3086
  }
1847
3087
  actieVanKmTekst(actie) {
1848
3088
  if (ActieHelper.isWisselSlijpenActie(actie)) {
@@ -1863,6 +3103,7 @@ class RitdelenLijstComponent {
1863
3103
  return ritdeel.getPplgString();
1864
3104
  }
1865
3105
  getKantCode(stand) {
3106
+ // @ts-ignore
1866
3107
  if (stand === window['domein'].Stand.LINKS) {
1867
3108
  return 'L';
1868
3109
  }
@@ -1999,40 +3240,6 @@ class RitdeelViewModel {
1999
3240
  }
2000
3241
  }
2001
3242
 
2002
- class CarouselControlsComponent {
2003
- constructor(store) {
2004
- this.store = store;
2005
- this.paginationSize = 4;
2006
- this.ritdelen$ = this.store.select('ritDelen').pipe(filter(r => r?.length > 0));
2007
- this.kanLinks$ = this.ritdelen$.pipe(map(r => this.kanLinksNavigeren(r)));
2008
- this.kanRechts$ = this.ritdelen$.pipe(map(r => this.kanRechtsNavigeren(r)));
2009
- }
2010
- kanLinksNavigeren(ritDelen) {
2011
- return ritDelen.length > this.paginationSize && !ritDelen[0].isBinnenWindow();
2012
- }
2013
- kanRechtsNavigeren(ritDelen) {
2014
- return ritDelen.length > this.paginationSize && !ritDelen[ritDelen.length - 1].isBinnenWindow();
2015
- }
2016
- navigeerNaarLinks(event) {
2017
- this.store.dispatch(navigeer(event?.ctrlKey ? -1 : -(this.paginationSize - 1), this.paginationSize, this.iaversieinfo));
2018
- }
2019
- navigeerNaarRechts(event) {
2020
- this.store.dispatch(navigeer(event?.ctrlKey ? 1 : this.paginationSize - 1, this.paginationSize, this.iaversieinfo));
2021
- }
2022
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: CarouselControlsComponent, deps: [{ token: i2$1.Store }], target: i0.ɵɵFactoryTarget.Component }); }
2023
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.7", type: CarouselControlsComponent, selector: "carousel-controls", inputs: { paginationSize: "paginationSize", iaversieinfo: "iaversieinfo", sideNavOpen: "sideNavOpen" }, ngImport: i0, template: "<div *ngIf=\"ritdelen$ | async\">\n <a class=\"loxia-carousel-control-prev\" [ngClass]=\"(sideNavOpen)?'carousel-sidebar-open':'carousel-sidebar'\" role=\"button\"\n data-slide=\"prev\" (click)=\"navigeerNaarLinks($event)\" [hidden]=\"(kanLinks$ | async) === false\">\n <span id=\"previous-page\" class=\"loxia-carousel-control-prev-icon\" aria-hidden=\"true\"></span>\n <span class=\"loxia-sr-only\">Previous</span>\n</a>\n <a class=\"loxia-carousel-control-next\" style=\"width: 2%;\" role=\"button\" data-slide=\"next\" (click)=\"navigeerNaarRechts($event)\"\n [hidden]=\"(kanRechts$ | async) === false\">\n <span id=\"next-page\" class=\"loxia-carousel-control-next-icon\" aria-hidden=\"true\"></span>\n <span class=\"loxia-sr-only\">Next</span>\n </a>\n</div>\n", styles: [".loxia-carousel-control-prev{left:0}.loxia-carousel-control-next{right:0}.loxia-carousel-control-next-icon,.loxia-carousel-control-prev-icon{display:inline-block;width:20px;height:20px;background:50%/100% 100% no-repeat}.loxia-carousel-control-prev-icon{background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5L4.25 4l2.5-2.5L5.25 0z'/%3e%3c/svg%3e\")}.loxia-carousel-control-next-icon{background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5L3.75 4l-2.5 2.5L2.75 8l4-4-4-4z'/%3e%3c/svg%3e\")}.loxia-carousel-control-next:focus,.loxia-carousel-control-next:hover,.loxia-carousel-control-prev:focus,.loxia-carousel-control-prev:hover{color:#fff;text-decoration:none;outline:0;opacity:.9}.loxia-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.loxia-carousel-control-next,.loxia-carousel-control-prev{position:absolute;top:0;bottom:0;z-index:1;display:flex;align-items:center;justify-content:center;padding:0;color:#fff;text-align:center;background:0 0;border:0;opacity:.5;transition:opacity .15s ease}.carousel-sidebar{width:2%}.carousel-sidebar-open{width:2%;transition:all .3s;left:470px}[hidden]{display:none!important}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }] }); }
2024
- }
2025
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: CarouselControlsComponent, decorators: [{
2026
- type: Component,
2027
- args: [{ selector: 'carousel-controls', template: "<div *ngIf=\"ritdelen$ | async\">\n <a class=\"loxia-carousel-control-prev\" [ngClass]=\"(sideNavOpen)?'carousel-sidebar-open':'carousel-sidebar'\" role=\"button\"\n data-slide=\"prev\" (click)=\"navigeerNaarLinks($event)\" [hidden]=\"(kanLinks$ | async) === false\">\n <span id=\"previous-page\" class=\"loxia-carousel-control-prev-icon\" aria-hidden=\"true\"></span>\n <span class=\"loxia-sr-only\">Previous</span>\n</a>\n <a class=\"loxia-carousel-control-next\" style=\"width: 2%;\" role=\"button\" data-slide=\"next\" (click)=\"navigeerNaarRechts($event)\"\n [hidden]=\"(kanRechts$ | async) === false\">\n <span id=\"next-page\" class=\"loxia-carousel-control-next-icon\" aria-hidden=\"true\"></span>\n <span class=\"loxia-sr-only\">Next</span>\n </a>\n</div>\n", styles: [".loxia-carousel-control-prev{left:0}.loxia-carousel-control-next{right:0}.loxia-carousel-control-next-icon,.loxia-carousel-control-prev-icon{display:inline-block;width:20px;height:20px;background:50%/100% 100% no-repeat}.loxia-carousel-control-prev-icon{background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5L4.25 4l2.5-2.5L5.25 0z'/%3e%3c/svg%3e\")}.loxia-carousel-control-next-icon{background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5L3.75 4l-2.5 2.5L2.75 8l4-4-4-4z'/%3e%3c/svg%3e\")}.loxia-carousel-control-next:focus,.loxia-carousel-control-next:hover,.loxia-carousel-control-prev:focus,.loxia-carousel-control-prev:hover{color:#fff;text-decoration:none;outline:0;opacity:.9}.loxia-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.loxia-carousel-control-next,.loxia-carousel-control-prev{position:absolute;top:0;bottom:0;z-index:1;display:flex;align-items:center;justify-content:center;padding:0;color:#fff;text-align:center;background:0 0;border:0;opacity:.5;transition:opacity .15s ease}.carousel-sidebar{width:2%}.carousel-sidebar-open{width:2%;transition:all .3s;left:470px}[hidden]{display:none!important}\n"] }]
2028
- }], ctorParameters: () => [{ type: i2$1.Store }], propDecorators: { paginationSize: [{
2029
- type: Input
2030
- }], iaversieinfo: [{
2031
- type: Input
2032
- }], sideNavOpen: [{
2033
- type: Input
2034
- }] } });
2035
-
2036
3243
  class ViewerControlsComponent {
2037
3244
  constructor(store, viewerControlsService, bewegingUtils) {
2038
3245
  this.store = store;
@@ -2042,6 +3249,7 @@ class ViewerControlsComponent {
2042
3249
  this.printing$ = this.viewerControlsService.isPrinting$();
2043
3250
  this.valideRit$ = this.viewerControlsService.isValideRit$();
2044
3251
  this.subscriptions = new Subscription();
3252
+ this.editable = false;
2045
3253
  this.subscriptions.add(this.store.select('editable').subscribe(editable => this.editable = editable));
2046
3254
  }
2047
3255
  ngOnChanges({ treinpad }) {
@@ -2125,7 +3333,7 @@ class ActiePopoverBepaler {
2125
3333
  ongeplandeActies.entries.forEach(entry => {
2126
3334
  const treinNummerActieInfos = puicNaarOngeplandeActieMap.get(entry.key);
2127
3335
  if (!treinNummerActieInfos?.map(({ actie }) => actie).includes(entry.value.actie)) {
2128
- puicNaarOngeplandeActieMap.put(entry.key, { treinNummer: undefined, actie: entry.value.actie });
3336
+ puicNaarOngeplandeActieMap.put(entry.key, { actie: entry.value.actie });
2129
3337
  }
2130
3338
  });
2131
3339
  }
@@ -2185,12 +3393,15 @@ class SvgVisualisatieComponent {
2185
3393
  this.actieHelper = actieHelper;
2186
3394
  this.sbmService = sbmService;
2187
3395
  this.editorService = editorService;
3396
+ this.nietGeplandeActies = [];
3397
+ this.useClickArea = false;
2188
3398
  this.svgInfos$ = this.store.select('svgInfos');
2189
3399
  this.popoverInfos = [];
2190
3400
  this.clickableIds = [];
2191
3401
  this.rightClickableIds = [];
2192
3402
  this.contextMenuActions = [];
2193
3403
  this.contextMenuStyle = { display: 'none' };
3404
+ this.editable = false;
2194
3405
  this.puicNaarBeginSeinRitdeel = new Map();
2195
3406
  this.puicNaarEindSeinCombinatie = new Map();
2196
3407
  this.puicNaarAlternatieveRoute = new Map();
@@ -2214,7 +3425,7 @@ class SvgVisualisatieComponent {
2214
3425
  }));
2215
3426
  }
2216
3427
  ngOnInit() {
2217
- document.getElementById('contextMenu').addEventListener('mouseleave', () => this.hideContextMenu());
3428
+ document.getElementById('contextMenu')?.addEventListener('mouseleave', () => this.hideContextMenu());
2218
3429
  }
2219
3430
  ngOnDestroy() {
2220
3431
  this.subscriptions.forEach(s => s.unsubscribe());
@@ -2385,7 +3596,7 @@ class SvgVisualisatieComponent {
2385
3596
  });
2386
3597
  this.viewerControlsService.setValideRit(!gebrokenRit);
2387
3598
  this.store.dispatch(SetGeplandeActies(actieOpRitSelectiePuics));
2388
- const actieOpRitSelectiePuicsArray = Utils.flatMap(Array.from(actieOpRitSelectiePuics.values()), x => x);
3599
+ const actieOpRitSelectiePuicsArray = Array.from(actieOpRitSelectiePuics.values()).reduce((acc, val) => acc.concat(val), []);
2389
3600
  this.store.dispatch(SetActieOpRitSelectieIds(actieOpRitSelectiePuicsArray));
2390
3601
  ritSelectiePuics = ritSelectiePuics.filter(item => actieOpRitSelectiePuicsArray.indexOf(item) < 0); // make mutually exclusive
2391
3602
  this.store.dispatch(SetRitSelectieIds(ritSelectiePuics));
@@ -2532,7 +3743,7 @@ let SignaleringsbeeldInfoResource = class SignaleringsbeeldInfoResource extends
2532
3743
  ngOnDestroy() {
2533
3744
  this.subscriptions.unsubscribe();
2534
3745
  }
2535
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: SignaleringsbeeldInfoResource, deps: [{ token: i1.ResourceHandler }, { token: i2$1.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }
3746
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: SignaleringsbeeldInfoResource, deps: [{ token: i1$1.ResourceHandler }, { token: i2$1.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }
2536
3747
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: SignaleringsbeeldInfoResource }); }
2537
3748
  };
2538
3749
  __decorate([
@@ -2553,7 +3764,7 @@ SignaleringsbeeldInfoResource = __decorate([
2553
3764
  ], SignaleringsbeeldInfoResource);
2554
3765
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: SignaleringsbeeldInfoResource, decorators: [{
2555
3766
  type: Injectable
2556
- }], ctorParameters: () => [{ type: i1.ResourceHandler }, { type: i2$1.Store }], propDecorators: { laadSignaleringsbeeldInfo: [], getBestaatIALevering: [] } });
3767
+ }], ctorParameters: () => [{ type: i1$1.ResourceHandler }, { type: i2$1.Store }], propDecorators: { laadSignaleringsbeeldInfo: [], getBestaatIALevering: [] } });
2557
3768
  class SignaleringsbeeldInfoDto extends ResourceModel {
2558
3769
  constructor(data) {
2559
3770
  super();
@@ -2587,7 +3798,7 @@ class BaseRestService {
2587
3798
  ngOnDestroy() {
2588
3799
  this.subscriptions.unsubscribe();
2589
3800
  }
2590
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: BaseRestService, deps: [{ token: i1$1.HttpClient }, { token: i2$1.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }
3801
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: BaseRestService, deps: [{ token: i1.HttpClient }, { token: i2$1.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }
2591
3802
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: BaseRestService, providedIn: 'root' }); }
2592
3803
  }
2593
3804
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: BaseRestService, decorators: [{
@@ -2595,7 +3806,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
2595
3806
  args: [{
2596
3807
  providedIn: 'root'
2597
3808
  }]
2598
- }], ctorParameters: () => [{ type: i1$1.HttpClient }, { type: i2$1.Store }] });
3809
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2$1.Store }] });
2599
3810
 
2600
3811
  class BewegingVerrijkerService extends BaseRestService {
2601
3812
  getBewegingen(bewegingen, ongeplandeActies) {
@@ -2837,10 +4048,10 @@ class Ritdeel {
2837
4048
  getZichtbaarheidBuitenPaginatie() {
2838
4049
  return this.zichtbaarBuitenPaginatie;
2839
4050
  }
2840
- bepaalTopologieElementen(signaleringsBeeldManagerService) {
2841
- const topoElementen = signaleringsBeeldManagerService.bepaalRouteElementen(this.getRoute());
4051
+ bepaalTopologieElementen(sbmService) {
4052
+ const topoElementen = sbmService.bepaalRouteElementen(this.getRoute());
2842
4053
  if (this.heeftVrijebaanInfo()) {
2843
- const vrijebaanTopoElementen = signaleringsBeeldManagerService.bepaalRouteElementen(this.getVrijebaanPrlRoute());
4054
+ const vrijebaanTopoElementen = sbmService.bepaalRouteElementen(this.getVrijebaanPrlRoute());
2844
4055
  topoElementen.push(...vrijebaanTopoElementen);
2845
4056
  }
2846
4057
  this.topoElementen = topoElementen;
@@ -2886,7 +4097,7 @@ class RitLezerService {
2886
4097
  ritDelen.push(new Ritdeel(dwangInfo, beweging.ritActies, beweging, vrijebaanDwangInfo, vervolgSpoor, []));
2887
4098
  }
2888
4099
  extractVrijebaanDwangInfo(beweging, rijwegPlan, rijweg) {
2889
- let vrijebaanDwangInfo = null;
4100
+ let vrijebaanDwangInfo = undefined;
2890
4101
  let vervolgSpoor;
2891
4102
  if (beweging.naarSpoor.endsWith(SPOOR_NAAR_VRIJEBAAN_POSTFIX) ||
2892
4103
  beweging.naarSpoor.endsWith(SPOOR_NAAR_VEERWISSEL_VRIJEBAAN_POSTFIX)) {
@@ -2900,9 +4111,9 @@ class RitLezerService {
2900
4111
  vrijebaanRijweg = vrijebaanRijwegen[0];
2901
4112
  vrijebaanDwang = vrijebaanRijweg.getDwangVoorDwangNummer(0);
2902
4113
  vervolgSpoor = vrijebaanRijwegplan.getVervolgSpoor(vrijebaanRijweg);
4114
+ vrijebaanDwangInfo =
4115
+ new RijwegplanRijwegDwangCombinatie(vrijebaanRijwegplan, vrijebaanRijweg, vrijebaanDwang);
2903
4116
  }
2904
- vrijebaanDwangInfo =
2905
- new RijwegplanRijwegDwangCombinatie(vrijebaanRijwegplan, vrijebaanRijweg, vrijebaanDwang);
2906
4117
  }
2907
4118
  }
2908
4119
  return { vrijebaanDwangInfo, vervolgSpoor };
@@ -2985,7 +4196,7 @@ class BepaalOngeplandeActiesEffect {
2985
4196
  this.messagesService.showMessage(MessageBuilder.nietGevondenTakkenOngeplandeActies(nietGevondenTakken));
2986
4197
  }
2987
4198
  if (logMeldingDTOs.length > 0) {
2988
- this.mstLogResource.logErrorMessages(logMeldingDTOs);
4199
+ this.mstLogResource.logMessages(logMeldingDTOs);
2989
4200
  }
2990
4201
  this.store.dispatch(SetOngeplandeActies(puicActieMap));
2991
4202
  this.store.dispatch(SetOngeplandeActieSelectieIds(Array.from(puicActieMap.keys())));
@@ -3055,7 +4266,7 @@ class BepaalSbInfosEffect {
3055
4266
  next: _res => this.store.dispatch(laadEnVerwerkSignaleringsbeeldInfo(treinpad, paginationSize, pplgs, ritGewijzigdToegestaan)),
3056
4267
  error: err => {
3057
4268
  this.messagesService.showMessage(new Message(Severity.INFORMATION, Utils.getValidErorrMessage(err)));
3058
- const iaVersieInfo = { versie: 'DONNA_77136_VER_1', ingangsDatum: this.dateService.getCurrentDate() };
4269
+ const iaVersieInfo = { versie: 'DONNA_97207_VER_1', ingangsDatum: this.dateService.getCurrentDate() };
3059
4270
  this.store.dispatch(SetIaVersie(iaVersieInfo));
3060
4271
  this.store.dispatch(laadEnVerwerkSignaleringsbeeldInfo(treinpad, paginationSize, pplgs, ritGewijzigdToegestaan));
3061
4272
  }
@@ -3209,7 +4420,7 @@ class LaadRouteFilesEffect {
3209
4420
  const promise = this.editorService.laadRouteFiles(actie.iaversieinfo.versie, pplgs);
3210
4421
  promise.then(() => {
3211
4422
  this.updateRitdelen(actie);
3212
- }, err => {
4423
+ }, (err) => {
3213
4424
  this.messagesService.showMessage(MessageBuilder.rwpDataNietGevonden(Utils.getValidErorrMessage(err)));
3214
4425
  });
3215
4426
  });
@@ -3269,14 +4480,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
3269
4480
  }] });
3270
4481
 
3271
4482
  class LaadSignaleringsbeeldenEffect {
3272
- constructor(actions$, store, signaleringsBeeldManagerService, editorService, sbiResource, connectorService, messagesSerivce) {
4483
+ constructor(actions$, store, signaleringsBeeldManagerService, editorService, sbiResource, connectorService, messagesService) {
3273
4484
  this.actions$ = actions$;
3274
4485
  this.store = store;
3275
4486
  this.signaleringsBeeldManagerService = signaleringsBeeldManagerService;
3276
4487
  this.editorService = editorService;
3277
4488
  this.sbiResource = sbiResource;
3278
4489
  this.connectorService = connectorService;
3279
- this.messagesSerivce = messagesSerivce;
4490
+ this.messagesService = messagesService;
3280
4491
  this.SVG_PIXEL_RUIMTE = 30;
3281
4492
  this.verwerkRitdelen$ = createEffect(() => this.actions$.pipe(ofType(setRitDelen, navigeer, navigeerVanaf), withLatestFrom(this.store), map(([actie, storeState]) => {
3282
4493
  this.store.dispatch(SetOngeplandeActiesBepaald(false));
@@ -3291,13 +4502,13 @@ class LaadSignaleringsbeeldenEffect {
3291
4502
  }
3292
4503
  handleSignaleringsbeeldInfo({ actie, storeState }) {
3293
4504
  return this.sbiResource.laadSignaleringsbeeldInfo(this.createSignaleringsbeeldInfoQueryDto(actie.pplgs, storeState.iaVersie)).pipe(take(1), tap((dtos) => this.processResponse({ dtos, storeState, actie })), catchError((err) => {
3294
- this.messagesSerivce.showMessage(MessageBuilder.nietGevondenSBI(err));
4505
+ this.messagesService.showMessage(MessageBuilder.nietGevondenSBI(err));
3295
4506
  return throwError(() => err);
3296
4507
  }));
3297
4508
  }
3298
4509
  processResponse({ dtos, storeState, actie }) {
3299
4510
  if (dtos && dtos.filter(dto => dto.metVisualisatie).length > 12) {
3300
- this.messagesSerivce.showMessage(MessageBuilder.meerDan12BladenGevonden(dtos.length));
4511
+ this.messagesService.showMessage(MessageBuilder.meerDan12BladenGevonden(dtos.length));
3301
4512
  }
3302
4513
  this.store.dispatch(SetSignaleringsbeeldInfoDtos(dtos, storeState.iaVersie, actie.rit, actie.paginationSize, actie.ritGewijzigdToegestaan));
3303
4514
  this.store.dispatch(SetVisibleSignaleringsbeeldInfoDtos(dtos));
@@ -3331,7 +4542,7 @@ class LaadSignaleringsbeeldenEffect {
3331
4542
  this.verwerkSvgs(svgDataUrls);
3332
4543
  this.updateState(ritDelen, visibleDtos, storeState, visibleRitPplgs, loadingDtos, isInit, storeDtos);
3333
4544
  }), catchError(err => {
3334
- this.messagesSerivce.showMessage(MessageBuilder.rwpDataNietGevonden(Utils.getValidErorrMessage(err)));
4545
+ this.messagesService.showMessage(MessageBuilder.rwpDataNietGevonden(Utils.getValidErorrMessage(err)));
3335
4546
  throw err;
3336
4547
  })).subscribe();
3337
4548
  }
@@ -3386,8 +4597,8 @@ class LaadSignaleringsbeeldenEffect {
3386
4597
  dtos.filter(d => !visibleDtos.includes(d)).forEach(d => d.metVisualisatie = false);
3387
4598
  return visibleDtos;
3388
4599
  }
3389
- distinct(value, index, self) {
3390
- return self.indexOf(value) === index;
4600
+ distinct(value, index, values) {
4601
+ return values.indexOf(value) === index;
3391
4602
  }
3392
4603
  addPrevNonVisibleDto(firstIdx, ritdelen, loadingDtos, visibleRitPplgs, allDtos) {
3393
4604
  if (firstIdx >= 0) {
@@ -3476,7 +4687,7 @@ class LaadSignaleringsbeeldenEffect {
3476
4687
  }
3477
4688
  }
3478
4689
  }
3479
- this.updateZichtbaarheidAangrezendeRitdelen(min, max, ritdelen, visibleDtos);
4690
+ this.updateZichtbaarheidAangrenzendeRitdelen(min, max, ritdelen, visibleDtos);
3480
4691
  return this.updateZichtbaarheidBuitenWindow(ritdelen, visibleDtos);
3481
4692
  }
3482
4693
  updateZichtbaarheidBuitenWindow(nieuweRitdelen, visibleDtos) {
@@ -3492,7 +4703,7 @@ class LaadSignaleringsbeeldenEffect {
3492
4703
  }
3493
4704
  return nieuweRitdelen;
3494
4705
  }
3495
- updateZichtbaarheidAangrezendeRitdelen(min, max, nieuweRitdelen, visibleDtos) {
4706
+ updateZichtbaarheidAangrenzendeRitdelen(min, max, nieuweRitdelen, visibleDtos) {
3496
4707
  let i = min - 1;
3497
4708
  while (i >= 0) {
3498
4709
  i = this.updateZichtbaarHeid(i, 0, visibleDtos, nieuweRitdelen) - 1;
@@ -3627,11 +4838,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
3627
4838
  }], ctorParameters: () => [{ type: i1$2.Actions }, { type: i2$1.Store }, { type: BewegingVerrijkerService }] });
3628
4839
 
3629
4840
  class RitdelenEffect {
3630
- constructor(actions$, store, sbmService, rijwegPlanEditorService) {
4841
+ constructor(actions$, store, sbmService, editorService) {
3631
4842
  this.actions$ = actions$;
3632
4843
  this.store = store;
3633
4844
  this.sbmService = sbmService;
3634
- this.rijwegPlanEditorService = rijwegPlanEditorService;
4845
+ this.editorService = editorService;
3635
4846
  this.updateRitDelen$ = createEffect(() => this.actions$.pipe(ofType(updateRitDelen), withLatestFrom(this.store), map(([actie, _storeState]) => {
3636
4847
  const nieuweRitDelen = actie.ritDelen.map(ritDeel => ritDeel.isZichtbaar() ?
3637
4848
  ritDeel.copyMetAlternatieveRoutes(this.sbmService.bepaalAlternativeRoutes(ritDeel.getRijweg())) : ritDeel);
@@ -3649,25 +4860,25 @@ class RitdelenEffect {
3649
4860
  return setRitdelenAfterUpdate(ritDelen);
3650
4861
  })));
3651
4862
  this.ritdeelInvoegen$ = createEffect(() => this.actions$.pipe(ofType(ritdeelInvoegen), withLatestFrom(this.store), map(([actie, storeState]) => {
3652
- const ritDelen = this.ritdeelInvoegenFunc(storeState.ritDelen, actie.nieuweRoute, this.rijwegPlanEditorService, this.sbmService);
4863
+ const ritDelen = this.ritdeelInvoegenFunc(storeState.ritDelen, actie.nieuweRoute);
3653
4864
  return setRitdelenAfterUpdate(ritDelen);
3654
4865
  })));
3655
4866
  }
3656
- ritdeelInvoegenFunc(ritDelen, nieuweRoute, rijwegPlanEditorService, sbmService) {
4867
+ ritdeelInvoegenFunc(ritDelen, nieuweRoute) {
3657
4868
  const origineelRitdeel = nieuweRoute.beginSeinOpRitdeel.ritdeel;
3658
4869
  const beginSein = nieuweRoute.beginSeinOpRitdeel.sein;
3659
- const rijwegplan = rijwegPlanEditorService.getRijwegplan(beginSein.getPPLG());
4870
+ const rijwegplan = this.editorService.getRijwegplan(beginSein.getPPLG());
3660
4871
  const dwangen = JsJavaUtil.listToArray(rijwegplan.getOnderliggendeDwangenTotEnVanSein(origineelRitdeel.getDwang(), beginSein));
3661
4872
  const isSamengesteldeRoute = dwangen[0] && dwangen[1];
3662
4873
  let newRitdeel1 = origineelRitdeel;
3663
4874
  if (isSamengesteldeRoute) {
3664
- newRitdeel1 = this.verwerkSamengesteldeRoute(origineelRitdeel, rijwegplan, dwangen, sbmService, ritDelen);
4875
+ newRitdeel1 = this.verwerkSamengesteldeRoute(origineelRitdeel, rijwegplan, dwangen, ritDelen);
3665
4876
  }
3666
4877
  if (nieuweRoute.combinatieVoorEindsein.isVrijeBaanRijweg()) {
3667
- this.extendRitdeelMetVrijebaanInfo(newRitdeel1, nieuweRoute, sbmService);
4878
+ this.extendRitdeelMetVrijebaanInfo(newRitdeel1, nieuweRoute);
3668
4879
  }
3669
4880
  else {
3670
- this.maakNieuwRitdeel(newRitdeel1, nieuweRoute, sbmService, ritDelen);
4881
+ this.maakNieuwRitdeel(newRitdeel1, nieuweRoute, ritDelen);
3671
4882
  }
3672
4883
  if (isSamengesteldeRoute) {
3673
4884
  ritDelen.splice(ritDelen.indexOf(origineelRitdeel), 1);
@@ -3682,38 +4893,38 @@ class RitdelenEffect {
3682
4893
  }
3683
4894
  }
3684
4895
  }
3685
- verwerkSamengesteldeRoute(origineelRitdeel, rijwegplan, dwangen, sbmService, ritDelen) {
4896
+ verwerkSamengesteldeRoute(origineelRitdeel, rijwegplan, dwangen, ritDelen) {
3686
4897
  // dwangen in 2 nieuwe ritdelen verwerken voor de knip
3687
4898
  const nieuweRijweg1 = rijwegplan.getRijwegVoorSeinen(dwangen[0].getRoute().getBeginSein(), dwangen[0].getRoute().getEindSein());
3688
4899
  const dwangInfo1 = new RijwegplanRijwegDwangCombinatie(rijwegplan, nieuweRijweg1, dwangen[0]);
3689
- const newRitdeel1 = new Ritdeel(dwangInfo1, [], null, null, null, []);
4900
+ const newRitdeel1 = new Ritdeel(dwangInfo1, [], undefined, undefined, undefined, []);
3690
4901
  // remove vrijbaan info uit ritdeel
3691
- newRitdeel1.vrijebaanRijwegplanRijwegDwangCombi = null;
3692
- newRitdeel1.vervolgSpoor = null;
3693
- newRitdeel1.bepaalTopologieElementen(sbmService);
4902
+ newRitdeel1.vrijebaanRijwegplanRijwegDwangCombi = undefined;
4903
+ newRitdeel1.vervolgSpoor = undefined;
4904
+ newRitdeel1.bepaalTopologieElementen(this.sbmService);
3694
4905
  this.insertRitdeel(ritDelen, origineelRitdeel, newRitdeel1);
3695
4906
  const nieuweRijweg2 = rijwegplan.getRijwegVoorSeinen(dwangen[1].getRoute().getBeginSein(), dwangen[1].getRoute().getEindSein());
3696
4907
  const dwangInfo2 = new RijwegplanRijwegDwangCombinatie(rijwegplan, nieuweRijweg2, dwangen[1]);
3697
- const newRitdeel2 = new Ritdeel(dwangInfo2, [], null, null, null, []);
3698
- newRitdeel2.bepaalTopologieElementen(sbmService);
4908
+ const newRitdeel2 = new Ritdeel(dwangInfo2, [], undefined, undefined, undefined, []);
4909
+ newRitdeel2.bepaalTopologieElementen(this.sbmService);
3699
4910
  this.insertRitdeel(ritDelen, newRitdeel1, newRitdeel2);
3700
4911
  return newRitdeel1;
3701
4912
  }
3702
- extendRitdeelMetVrijebaanInfo(newRitdeel1, nieuweRoute, sbmService) {
4913
+ extendRitdeelMetVrijebaanInfo(newRitdeel1, nieuweRoute) {
3703
4914
  newRitdeel1.vrijebaanRijwegplanRijwegDwangCombi = nieuweRoute.combinatieVoorEindsein;
3704
4915
  const vbrwp = nieuweRoute.combinatieVoorEindsein.rijwegplan;
3705
4916
  newRitdeel1.vervolgSpoor = vbrwp.getVervolgSpoor(nieuweRoute.combinatieVoorEindsein.rijweg);
3706
- newRitdeel1.bepaalTopologieElementen(sbmService);
4917
+ newRitdeel1.bepaalTopologieElementen(this.sbmService);
3707
4918
  }
3708
- maakNieuwRitdeel(newRitdeel1, nieuweRoute, sbmService, ritDelen) {
4919
+ maakNieuwRitdeel(newRitdeel1, nieuweRoute, ritDelen) {
3709
4920
  let newRitdeel = this.createRitdeel(nieuweRoute);
3710
- const altRoutes = sbmService.bepaalAlternativeRoutes(newRitdeel.getRijweg());
4921
+ const altRoutes = this.sbmService.bepaalAlternativeRoutes(newRitdeel.getRijweg());
3711
4922
  newRitdeel = newRitdeel.copyMetAlternatieveRoutes(altRoutes);
3712
- newRitdeel.bepaalTopologieElementen(sbmService);
4923
+ newRitdeel.bepaalTopologieElementen(this.sbmService);
3713
4924
  this.insertRitdeel(ritDelen, newRitdeel1, newRitdeel);
3714
4925
  }
3715
4926
  createRitdeel(nieuweRoute) {
3716
- return new Ritdeel(nieuweRoute.combinatieVoorEindsein, [], null, null, null, []);
4927
+ return new Ritdeel(nieuweRoute.combinatieVoorEindsein, [], undefined, undefined, undefined, []);
3717
4928
  }
3718
4929
  insertRitdeel(ritdelen, naRitdeelPositie, newRitdeel) {
3719
4930
  const idx = ritdelen.indexOf(naRitdeelPositie);
@@ -3764,6 +4975,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
3764
4975
  type: Injectable
3765
4976
  }], ctorParameters: () => [{ type: i1$2.Actions }, { type: i2$1.Store }, { type: SignaleringsBeeldManagerService }, { type: i4.SignaleringsbeeldSvgUtilityService }] });
3766
4977
 
4978
+ class ProgressIndicator {
4979
+ constructor(lowerText, upperText, iconClass) {
4980
+ this.lowerText = '';
4981
+ this.upperText = '';
4982
+ this.iconClass = '';
4983
+ this.lowerText = lowerText ?? this.lowerText;
4984
+ this.upperText = upperText ?? this.upperText;
4985
+ this.iconClass = iconClass ?? this.iconClass;
4986
+ }
4987
+ }
4988
+
3767
4989
  class NieuweRoute {
3768
4990
  constructor(beginSeinOpRitdeel, combinatieVoorEindsein) {
3769
4991
  this.beginSeinOpRitdeel = beginSeinOpRitdeel;
@@ -3836,7 +5058,7 @@ function addRitdeelActieFunc(ritDelen, { ritDeel, actie }) {
3836
5058
  const onIdsActionHandler = (action) => on(action, (_, { ids }) => ids);
3837
5059
  const createIdsReducer = (action) => createReducer([], onIdsActionHandler(action));
3838
5060
  const editableReducer = createReducer(true, on(setEditable, (_, { editable }) => editable));
3839
- const progressIndicatorReducer = createReducer(undefined, on(ShowProgress, () => ({ progressIndicator: {} })), on(ClearProgress, () => undefined));
5061
+ const progressIndicatorReducer = createReducer({}, on(ShowProgress, () => ({ progressIndicator: new ProgressIndicator() })), on(ClearProgress, () => ({})));
3840
5062
  const svgInfoReducer = createReducer([], on(SetSvgInfos, (_, { svgInfos }) => svgInfos));
3841
5063
  const debugReducer = createReducer(false, on(SetDebug, (_, { debug }) => debug));
3842
5064
  const ritSelectieIdsReducer = createIdsReducer(SetRitSelectieIds);
@@ -3862,12 +5084,10 @@ const ongeplandeActieReducer = createReducer(new ArrayMultimap(), on(SetOngeplan
3862
5084
  ongeplandeActie.puics.forEach(puic => ongeplandeActies.delete(puic, ongeplandeActie));
3863
5085
  return new ArrayMultimap(ongeplandeActies);
3864
5086
  }));
3865
- const ongeplandeActieSelectieIdsReducer = createReducer([],
3866
- // on(MstActions.SetOngeplandeActieSelectieIds, (_, { ids }) => ids),
3867
- onIdsActionHandler(SetOngeplandeActieSelectieIds), on(AddOngeplandeActie, (ids, { ongeplandeActie }) => {
5087
+ const ongeplandeActieSelectieIdsReducer = createReducer([], onIdsActionHandler(SetOngeplandeActieSelectieIds), on(AddOngeplandeActie, (ids, { ongeplandeActie }) => {
3868
5088
  ongeplandeActie.puics.filter(puic => !ids.includes(puic)).forEach(puic => ids.push(puic));
3869
5089
  return [...ids];
3870
- }), on(DeleteOngeplandeActieSelectieId, (ids, { id }) => [].concat(ids.includes(id) ? ids.filter(_id => _id !== id) : ids)));
5090
+ }), on(DeleteOngeplandeActieSelectieId, (ids, { id }) => ids.includes(id) ? ids.filter(_id => _id !== id) : ids));
3871
5091
  const gebrokenRitSelectieIdsReducer = createIdsReducer(SetGebrokenRitSelectieIds);
3872
5092
  const alternatievenSelectieIdsReducer = createIdsReducer(SetAlternatievenSelectieIds);
3873
5093
  const beginSeinSelectieIdsReducer = createIdsReducer(SetBeginSeinSelectieIds);
@@ -3876,16 +5096,16 @@ const alternatievenClickableIdsReducer = createIdsReducer(SetAlternatievenClicka
3876
5096
  const eindSeinenClickableIdsReducer = createIdsReducer(SetEindSeinenClickableIds);
3877
5097
  const connectorClickableIdsReducer = createIdsReducer(SetConnectorenClickableIds);
3878
5098
  const beginSeinRightClickableIdsReducer = createIdsReducer(SetBeginSeinRightClickableIds);
3879
- const nieuweRouteReducer = createReducer(new NieuweRoute(null, null), on(SetNieuwRouteBeginSein, (_, { startSeinOpRitdeel }) => new NieuweRoute(startSeinOpRitdeel, null)), on(SetNieuwRouteEindSein, (nieuweRoute, { combinatieVoorEindsein }) => new NieuweRoute(nieuweRoute.beginSeinOpRitdeel, combinatieVoorEindsein)), on(ResetNieuweRoute, () => new NieuweRoute(null, null)));
5099
+ const nieuweRouteReducer = createReducer(undefined, on(SetNieuwRouteBeginSein, (_, { startSeinOpRitdeel }) => new NieuweRoute(startSeinOpRitdeel, null)), on(SetNieuwRouteEindSein, (nieuweRoute, { combinatieVoorEindsein }) => new NieuweRoute(nieuweRoute.beginSeinOpRitdeel, combinatieVoorEindsein)), on(ResetNieuweRoute, () => undefined));
3880
5100
  const signaleringsbeeldInfoDtosReducer = createReducer([], on(SetSignaleringsbeeldInfoDtos, (_, { dtos }) => dtos), on(UpdateSignaleringsbeeldInfoDtos, (_, { dtos }) => [...dtos]));
3881
5101
  const visibleSbInfoDtosReducer = createReducer([], on(SetVisibleSignaleringsbeeldInfoDtos, (_, { dtos }) => dtos), on(UpdateVisibleSignaleringsbeeldInfoDtos, (_, { dtos }) => [...dtos]));
3882
- const iaVersieReducer = createReducer({}, on(SetIaVersie, (_, { iaVersie }) => Object.assign({}, iaVersie, { versie: iaVersie.versie.toUpperCase() })));
3883
- const algemeneRitInfoDtoReducer = createReducer(new AlgemeneRitInfoDto(), on(SetAlgemeneRitInfo, (_, { algemeneRitInfoDto }) => algemeneRitInfoDto));
5102
+ const iaVersieReducer = createReducer({ versie: 'unknown', ingangsDatum: new Date() }, on(SetIaVersie, (_, { iaVersie }) => Object.assign({}, iaVersie, { versie: iaVersie.versie.toUpperCase() })));
5103
+ const algemeneRitInfoDtoReducer = createReducer({}, on(SetAlgemeneRitInfo, (_, { algemeneRitInfoDto }) => algemeneRitInfoDto));
3884
5104
  const ongeplandeActiesBepaaldReducer = createReducer(false, on(SetOngeplandeActiesBepaald, (_, { bepaald }) => bepaald));
3885
- const nieuweBewegingReducer = createReducer({}, on(UpdateRit, (_, { bewegingen }) => bewegingen));
3886
- const baseUrlReducer = createReducer(undefined, on(SetBaseUrl, (_, { baseUrl }) => baseUrl));
3887
- const focusIdsReducer = createReducer({}, on(focusOpIds, (_, { puics }) => puics));
3888
- const selectedRitdeelIdReducer = createReducer({}, on(SetSelectedRitdeel, (_, { id }) => id));
5105
+ const nieuweBewegingReducer = createReducer([], on(UpdateRit, (_, { bewegingen }) => bewegingen));
5106
+ const baseUrlReducer = createReducer('', on(SetBaseUrl, (_, { baseUrl }) => baseUrl));
5107
+ const focusIdsReducer = createReducer([], on(focusOpIds, (_, { puics }) => puics));
5108
+ const selectedRitdeelIdReducer = createReducer(-1, on(SetSelectedRitdeel, (_, { id }) => id));
3889
5109
  const storeReducers = {
3890
5110
  ritDelen: ritdelenReducer,
3891
5111
  ritSelectieIds: ritSelectieIdsReducer,
@@ -3917,6 +5137,7 @@ const storeReducers = {
3917
5137
  selectedRitdeelId: selectedRitdeelIdReducer
3918
5138
  };
3919
5139
 
5140
+ // @ts-nocheck
3920
5141
  class ZoneUtil {
3921
5142
  constructor(ngZone) {
3922
5143
  this.ngZone = ngZone;
@@ -3979,6 +5200,7 @@ class MstViewerModule {
3979
5200
  constructor(service, zoneUtil) {
3980
5201
  this.service = service;
3981
5202
  // maak de EditorService toegankelijk voor GWT code
5203
+ // @ts-ignore
3982
5204
  window['rpe'] = {
3983
5205
  EditorService: zoneUtil.proxy(service)
3984
5206
  };
@@ -3996,7 +5218,7 @@ class MstViewerModule {
3996
5218
  SvgVisualisatieComponent,
3997
5219
  MessagesComponent], imports: [CommonModule,
3998
5220
  ImxViewerModule,
3999
- RijwegenModule, i1.ResourceModule, i2$1.StoreRootModule, i1$2.EffectsRootModule], exports: [MstviewerComponent] }); }
5221
+ RijwegenModule, i1$1.ResourceModule, i2$1.StoreRootModule, i1$2.EffectsRootModule], exports: [MstviewerComponent] }); }
4000
5222
  static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: MstViewerModule, providers: [
4001
5223
  ZoneUtil,
4002
5224
  SignaleringsbeeldInfoResource,