@veloceapps/sdk 8.0.0-84 → 8.0.0-86

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,7 @@ import { UUID, ConfigurationContextMode, ConfigurationContext, DEFAULT_CURRENCY_
4
4
  import * as i1 from '@veloceapps/api';
5
5
  import { PriceApiService, ContextApiService, ProductModelApiService, ConfigurationApiService } from '@veloceapps/api';
6
6
  import { BehaviorSubject, zip, noop, combineLatest, map as map$2, tap as tap$1, throwError, shareReplay as shareReplay$1, of, switchMap as switchMap$1, catchError as catchError$1, Subject, take as take$1, distinctUntilChanged } from 'rxjs';
7
- import { filter, tap, map, switchMap, skip, take, shareReplay, catchError, finalize, first } from 'rxjs/operators';
7
+ import { map, filter, tap, switchMap, skip, take, shareReplay, catchError, finalize, first } from 'rxjs/operators';
8
8
  import { merge, isEqual, flatten, sortBy, map as map$1, uniqBy, transform, omit, cloneDeep, uniq } from 'lodash';
9
9
  import { HttpErrorResponse } from '@angular/common/http';
10
10
  import * as i4 from '@veloceapps/components';
@@ -71,6 +71,9 @@ class ContextService {
71
71
  get isInitialized() {
72
72
  return Boolean(this.context.value);
73
73
  }
74
+ get isInitialized$() {
75
+ return this.context.pipe(map(Boolean));
76
+ }
74
77
  get mode() {
75
78
  return this.resolve().properties.mode;
76
79
  }
@@ -176,6 +179,7 @@ class QuoteDraftService {
176
179
  reset() {
177
180
  this.resetSubj$.next(true);
178
181
  this.quoteSubj$.next(null);
182
+ this.isInitialized = false;
179
183
  this.hasUnsavedChanges = false;
180
184
  }
181
185
  init(quoteId, params) {