@eui/tools 6.12.57 → 6.12.59

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.
@@ -1 +1 @@
1
- 6.12.57
1
+ 6.12.59
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## 6.12.59 (2023-09-28)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * improve subscription management for v10 / v15 remotes at init time MWP-10096 [MWP-10096](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-10096) ([01e58d38](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/01e58d3803ddd0259da4e683b6371bf2220fa65f))
7
+
8
+ * * *
9
+ * * *
10
+ ## 6.12.58 (2023-09-28)
11
+
12
+ ##### Chores
13
+
14
+ * **other:**
15
+ * improve subscription management for v16 / v17 remotes at init time MWP-10096 [MWP-10096](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-10096) ([570c702f](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/570c702f1702c4afac11a60807b7048c3ee464dd))
16
+
17
+ * * *
18
+ * * *
1
19
  ## 6.12.57 (2023-09-25)
2
20
 
3
21
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.12.57",
3
+ "version": "6.12.59",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -1,6 +1,7 @@
1
1
  import { Component, OnInit, Inject, ElementRef, OnDestroy } from '@angular/core';
2
2
 
3
- import { take } from 'rxjs/operators';
3
+ import { Subscription } from 'rxjs';
4
+ import { first } from 'rxjs/operators';
4
5
 
5
6
  import { CONFIG_TOKEN } from '@eui/core';
6
7
  import { ElementSetupService, ElementLifeCycleService } from '@csdr/integration/element';
@@ -50,6 +51,8 @@ export class ModuleComponent implements OnInit, OnDestroy {
50
51
  ElementStatus = ElementStatus;
51
52
  moduleStatus: ElementStatus;
52
53
 
54
+ private initSubscription: Subscription;
55
+
53
56
  constructor(private elRef: ElementRef,
54
57
  @Inject(CONFIG_TOKEN) public config: any,
55
58
  private elementLifeCycleService: ElementLifeCycleService,
@@ -63,14 +66,18 @@ export class ModuleComponent implements OnInit, OnDestroy {
63
66
  }
64
67
 
65
68
  ngOnDestroy(): void {
69
+ this.initSubscription?.unsubscribe();
66
70
  this.elementLifeCycleService.cleanup();
67
71
  }
68
72
 
69
73
  private loadData() {
70
74
  this.setStatus(ElementStatus.Loading);
71
75
  try {
72
- this.elementSetupService.init()
73
- .pipe(take(1))
76
+ this.initSubscription?.unsubscribe();
77
+
78
+ this.initSubscription = this.elementSetupService
79
+ .init()
80
+ .pipe(first())
74
81
  .subscribe((loadStatus: { success: boolean; error?: string }) => {
75
82
  if (!loadStatus.success) {
76
83
  this.setStatus(ElementStatus.Error);
@@ -1,6 +1,7 @@
1
1
  import { Component, OnInit, Inject, ElementRef, OnDestroy } from '@angular/core';
2
2
 
3
- import { take } from 'rxjs/operators';
3
+ import { Subscription } from 'rxjs';
4
+ import { first } from 'rxjs/operators';
4
5
 
5
6
  import { CONFIG_TOKEN } from '@eui/core';
6
7
  import { ElementSetupService, ElementLifeCycleService } from '@csdr/integration/element';
@@ -52,6 +53,8 @@ export class ModuleComponent implements OnInit, OnDestroy {
52
53
 
53
54
  block: any;
54
55
 
56
+ private initSubscription: Subscription;
57
+
55
58
  constructor(private elRef: ElementRef,
56
59
  @Inject(CONFIG_TOKEN) public config: any,
57
60
  private elementLifeCycleService: ElementLifeCycleService,
@@ -66,14 +69,18 @@ export class ModuleComponent implements OnInit, OnDestroy {
66
69
  }
67
70
 
68
71
  ngOnDestroy(): void {
72
+ this.initSubscription?.unsubscribe();
69
73
  this.elementLifeCycleService.cleanup();
70
74
  }
71
75
 
72
76
  private loadData() {
73
77
  this.setStatus(ElementStatus.Loading);
74
78
  try {
75
- this.elementSetupService.init()
76
- .pipe(take(1))
79
+ this.initSubscription?.unsubscribe();
80
+
81
+ this.initSubscription = this.elementSetupService
82
+ .init()
83
+ .pipe(first())
77
84
  .subscribe((loadStatus: { success: boolean, error?: string }) => {
78
85
  if (!loadStatus.success) {
79
86
  this.setStatus(ElementStatus.Error);
@@ -1,6 +1,7 @@
1
1
  import { Component, OnInit, Inject, ElementRef, OnDestroy } from '@angular/core';
2
2
 
3
- import { take } from 'rxjs/operators';
3
+ import { Subscription } from 'rxjs';
4
+ import { first } from 'rxjs/operators';
4
5
 
5
6
  import { CONFIG_TOKEN } from '@eui/core';
6
7
  import { ElementSetupService, ElementLifeCycleService } from '@csdr/integration/element';
@@ -50,6 +51,8 @@ export class ModuleComponent implements OnInit, OnDestroy {
50
51
  ElementStatus = ElementStatus;
51
52
  moduleStatus: ElementStatus;
52
53
 
54
+ private initSubscription: Subscription;
55
+
53
56
  constructor(private elRef: ElementRef,
54
57
  @Inject(CONFIG_TOKEN) public config: any,
55
58
  private elementLifeCycleService: ElementLifeCycleService,
@@ -63,14 +66,18 @@ export class ModuleComponent implements OnInit, OnDestroy {
63
66
  }
64
67
 
65
68
  ngOnDestroy(): void {
69
+ this.initSubscription?.unsubscribe();
66
70
  this.elementLifeCycleService.cleanup();
67
71
  }
68
72
 
69
73
  private loadData() {
70
74
  this.setStatus(ElementStatus.Loading);
71
75
  try {
72
- this.elementSetupService.init()
73
- .pipe(take(1))
76
+ this.initSubscription?.unsubscribe();
77
+
78
+ this.initSubscription = this.elementSetupService
79
+ .init()
80
+ .pipe(first())
74
81
  .subscribe((loadStatus: { success: boolean; error?: string }) => {
75
82
  if (!loadStatus.success) {
76
83
  this.setStatus(ElementStatus.Error);
@@ -1,6 +1,7 @@
1
1
  import { Component, OnInit, Inject, ElementRef, OnDestroy } from '@angular/core';
2
2
 
3
- import { take } from 'rxjs/operators';
3
+ import { Subscription } from 'rxjs';
4
+ import { first } from 'rxjs/operators';
4
5
 
5
6
  import { CONFIG_TOKEN } from '@eui/core';
6
7
  import { ElementSetupService, ElementLifeCycleService } from '@csdr/integration/element';
@@ -52,6 +53,8 @@ export class ModuleComponent implements OnInit, OnDestroy {
52
53
 
53
54
  block: any;
54
55
 
56
+ private initSubscription: Subscription;
57
+
55
58
  constructor(private elRef: ElementRef,
56
59
  @Inject(CONFIG_TOKEN) public config: any,
57
60
  private elementLifeCycleService: ElementLifeCycleService,
@@ -66,14 +69,18 @@ export class ModuleComponent implements OnInit, OnDestroy {
66
69
  }
67
70
 
68
71
  ngOnDestroy(): void {
72
+ this.initSubscription?.unsubscribe();
69
73
  this.elementLifeCycleService.cleanup();
70
74
  }
71
75
 
72
76
  private loadData() {
73
77
  this.setStatus(ElementStatus.Loading);
74
78
  try {
75
- this.elementSetupService.init()
76
- .pipe(take(1))
79
+ this.initSubscription?.unsubscribe();
80
+
81
+ this.initSubscription = this.elementSetupService
82
+ .init()
83
+ .pipe(first())
77
84
  .subscribe((loadStatus: { success: boolean, error?: string }) => {
78
85
  if (!loadStatus.success) {
79
86
  this.setStatus(ElementStatus.Error);
@@ -1,6 +1,7 @@
1
1
  import { Component, OnInit, Inject, ElementRef, OnDestroy } from '@angular/core';
2
2
 
3
- import { take } from 'rxjs/operators';
3
+ import { Subscription } from 'rxjs';
4
+ import { first } from 'rxjs/operators';
4
5
 
5
6
  import { CONFIG_TOKEN } from '@eui/core';
6
7
  import { ElementSetupService, ElementLifeCycleService } from '@csdr/integration/element';
@@ -50,6 +51,8 @@ export class ModuleComponent implements OnInit, OnDestroy {
50
51
  ElementStatus = ElementStatus;
51
52
  moduleStatus: ElementStatus;
52
53
 
54
+ private initSubscription: Subscription;
55
+
53
56
  constructor(private elRef: ElementRef,
54
57
  @Inject(CONFIG_TOKEN) public config: any,
55
58
  private elementLifeCycleService: ElementLifeCycleService,
@@ -63,14 +66,18 @@ export class ModuleComponent implements OnInit, OnDestroy {
63
66
  }
64
67
 
65
68
  ngOnDestroy(): void {
69
+ this.initSubscription?.unsubscribe();
66
70
  this.elementLifeCycleService.cleanup();
67
71
  }
68
72
 
69
73
  private loadData() {
70
74
  this.setStatus(ElementStatus.Loading);
71
75
  try {
72
- this.elementSetupService.init()
73
- .pipe(take(1))
76
+ this.initSubscription?.unsubscribe();
77
+
78
+ this.initSubscription = this.elementSetupService
79
+ .init()
80
+ .pipe(first())
74
81
  .subscribe((loadStatus: { success: boolean; error?: string }) => {
75
82
  if (!loadStatus.success) {
76
83
  this.setStatus(ElementStatus.Error);
@@ -1,6 +1,7 @@
1
1
  import { Component, OnInit, Inject, ElementRef, OnDestroy } from '@angular/core';
2
2
 
3
- import { take } from 'rxjs/operators';
3
+ import { Subscription } from 'rxjs';
4
+ import { first } from 'rxjs/operators';
4
5
 
5
6
  import { CONFIG_TOKEN } from '@eui/core';
6
7
  import { ElementSetupService, ElementLifeCycleService } from '@csdr/integration/element';
@@ -52,6 +53,8 @@ export class ModuleComponent implements OnInit, OnDestroy {
52
53
 
53
54
  block: any;
54
55
 
56
+ private initSubscription: Subscription;
57
+
55
58
  constructor(private elRef: ElementRef,
56
59
  @Inject(CONFIG_TOKEN) public config: any,
57
60
  private elementLifeCycleService: ElementLifeCycleService,
@@ -66,14 +69,18 @@ export class ModuleComponent implements OnInit, OnDestroy {
66
69
  }
67
70
 
68
71
  ngOnDestroy(): void {
72
+ this.initSubscription?.unsubscribe();
69
73
  this.elementLifeCycleService.cleanup();
70
74
  }
71
75
 
72
76
  private loadData() {
73
77
  this.setStatus(ElementStatus.Loading);
74
78
  try {
75
- this.elementSetupService.init()
76
- .pipe(take(1))
79
+ this.initSubscription?.unsubscribe();
80
+
81
+ this.initSubscription = this.elementSetupService
82
+ .init()
83
+ .pipe(first())
77
84
  .subscribe((loadStatus: { success: boolean, error?: string }) => {
78
85
  if (!loadStatus.success) {
79
86
  this.setStatus(ElementStatus.Error);
@@ -1,6 +1,7 @@
1
1
  import { Component, OnInit, Inject, ElementRef, OnDestroy } from '@angular/core';
2
2
 
3
- import { take } from 'rxjs/operators';
3
+ import { Subscription } from 'rxjs';
4
+ import { first } from 'rxjs/operators';
4
5
 
5
6
  import { CONFIG_TOKEN } from '@eui/core';
6
7
  import { ElementSetupService, ElementLifeCycleService } from '@csdr/integration/element';
@@ -50,6 +51,8 @@ export class ModuleComponent implements OnInit, OnDestroy {
50
51
  ElementStatus = ElementStatus;
51
52
  moduleStatus: ElementStatus;
52
53
 
54
+ private initSubscription: Subscription;
55
+
53
56
  constructor(private elRef: ElementRef,
54
57
  @Inject(CONFIG_TOKEN) public config: any,
55
58
  private elementLifeCycleService: ElementLifeCycleService,
@@ -63,14 +66,18 @@ export class ModuleComponent implements OnInit, OnDestroy {
63
66
  }
64
67
 
65
68
  ngOnDestroy(): void {
69
+ this.initSubscription?.unsubscribe();
66
70
  this.elementLifeCycleService.cleanup();
67
71
  }
68
72
 
69
73
  private loadData() {
70
74
  this.setStatus(ElementStatus.Loading);
71
75
  try {
72
- this.elementSetupService.init()
73
- .pipe(take(1))
76
+ this.initSubscription?.unsubscribe();
77
+
78
+ this.initSubscription = this.elementSetupService
79
+ .init()
80
+ .pipe(first())
74
81
  .subscribe((loadStatus: { success: boolean; error?: string }) => {
75
82
  if (!loadStatus.success) {
76
83
  this.setStatus(ElementStatus.Error);
@@ -1,6 +1,7 @@
1
1
  import { Component, OnInit, Inject, ElementRef, OnDestroy } from '@angular/core';
2
2
 
3
- import { take } from 'rxjs/operators';
3
+ import { Subscription } from 'rxjs';
4
+ import { first } from 'rxjs/operators';
4
5
 
5
6
  import { CONFIG_TOKEN } from '@eui/core';
6
7
  import { ElementSetupService, ElementLifeCycleService } from '@csdr/integration/element';
@@ -52,6 +53,8 @@ export class ModuleComponent implements OnInit, OnDestroy {
52
53
 
53
54
  block: any;
54
55
 
56
+ private initSubscription: Subscription;
57
+
55
58
  constructor(private elRef: ElementRef,
56
59
  @Inject(CONFIG_TOKEN) public config: any,
57
60
  private elementLifeCycleService: ElementLifeCycleService,
@@ -66,14 +69,18 @@ export class ModuleComponent implements OnInit, OnDestroy {
66
69
  }
67
70
 
68
71
  ngOnDestroy(): void {
72
+ this.initSubscription?.unsubscribe();
69
73
  this.elementLifeCycleService.cleanup();
70
74
  }
71
75
 
72
76
  private loadData() {
73
77
  this.setStatus(ElementStatus.Loading);
74
78
  try {
75
- this.elementSetupService.init()
76
- .pipe(take(1))
79
+ this.initSubscription?.unsubscribe();
80
+
81
+ this.initSubscription = this.elementSetupService
82
+ .init()
83
+ .pipe(first())
77
84
  .subscribe((loadStatus: { success: boolean, error?: string }) => {
78
85
  if (!loadStatus.success) {
79
86
  this.setStatus(ElementStatus.Error);