@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.
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
2
2
  import { InjectionToken, Injectable, NgModule, inject, Directive, Input, LOCALE_ID, Pipe } from '@angular/core';
3
3
  import { UUID, ConfigurationContextMode, ConfigurationContext, ChargeGroupUtils, DEFAULT_CURRENCY_ISO_CODE, DEFAULT_CURRENCY_SYMBOL, validateDateFormat, DEFAULT_DATE_FORMAT, DEFAULT_DECIMALS_COUNT, getSupportedDateFormats, DEFAULT_DECIMAL_SEPARATOR, DEFAULT_THOUSANDS_SEPARATOR, DEFAULT_ACTION_CODE_LABELS, parseJsonSafely, ConfigurationMode, ConfigurationTranslatorUtils, RuntimeModel, isNotLegacyUIDefinition, SalesforceIdUtils, EntityUtil, formatNumber } from '@veloceapps/core';
4
4
  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';
5
- import { filter, tap, map, switchMap, skip, take, shareReplay, catchError, finalize, first } from 'rxjs/operators';
5
+ import { map, filter, tap, switchMap, skip, take, shareReplay, catchError, finalize, first } from 'rxjs/operators';
6
6
  import * as i1 from '@veloceapps/api';
7
7
  import { PriceApiService, ContextApiService, ProductModelApiService, ConfigurationApiService } from '@veloceapps/api';
8
8
  import { merge, isEqual, flatten, sortBy, map as map$1, omit, uniqBy, transform, cloneDeep, uniq } from 'lodash';
@@ -82,6 +82,9 @@ class ContextService {
82
82
  get isInitialized() {
83
83
  return Boolean(this.context.value);
84
84
  }
85
+ get isInitialized$() {
86
+ return this.context.pipe(map(Boolean));
87
+ }
85
88
  get mode() {
86
89
  return this.resolve().properties.mode;
87
90
  }
@@ -215,6 +218,7 @@ class QuoteDraftService {
215
218
  reset() {
216
219
  this.resetSubj$.next(true);
217
220
  this.quoteSubj$.next(null);
221
+ this.isInitialized = false;
218
222
  this.hasUnsavedChanges = false;
219
223
  }
220
224
  init(quoteId, params) {