@veloceapps/sdk 8.0.0-83 → 8.0.0-85

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. package/core/services/context.service.d.ts +1 -0
  2. package/esm2020/cms/components/element-tools-panel/element-tools-panel.component.mjs +3 -3
  3. package/esm2020/core/services/context.service.mjs +4 -1
  4. package/esm2020/core/services/quote-draft.service.mjs +2 -1
  5. package/esm2020/src/components/doc-gen/doc-gen.component.mjs +11 -8
  6. package/esm2020/src/components/guided-selling/guided-selling.component.mjs +12 -10
  7. package/esm2020/src/flow-routing.module.mjs +5 -4
  8. package/esm2020/src/flow.component.mjs +8 -4
  9. package/esm2020/src/guards/context.guard.mjs +1 -1
  10. package/esm2020/src/guards/flow.guard.mjs +23 -0
  11. package/esm2020/src/guards/root.guard.mjs +5 -2
  12. package/esm2020/src/pages/assets/assets.component.mjs +11 -11
  13. package/esm2020/src/pages/catalog/catalog.component.mjs +11 -11
  14. package/esm2020/src/pages/debug/debug.component.mjs +10 -14
  15. package/esm2020/src/pages/shopping-cart/shopping-cart.component.mjs +11 -11
  16. package/esm2020/src/resolvers/flow.resolver.mjs +15 -9
  17. package/esm2020/src/resolvers/quote.resolver.mjs +10 -6
  18. package/esm2020/src/services/flow.service.mjs +23 -8
  19. package/esm2020/src/utils/flow.utils.mjs +6 -2
  20. package/fesm2015/veloceapps-sdk-cms.mjs +2 -2
  21. package/fesm2015/veloceapps-sdk-cms.mjs.map +1 -1
  22. package/fesm2015/veloceapps-sdk-core.mjs +5 -1
  23. package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
  24. package/fesm2015/veloceapps-sdk.mjs +377 -333
  25. package/fesm2015/veloceapps-sdk.mjs.map +1 -1
  26. package/fesm2020/veloceapps-sdk-cms.mjs +2 -2
  27. package/fesm2020/veloceapps-sdk-cms.mjs.map +1 -1
  28. package/fesm2020/veloceapps-sdk-core.mjs +5 -1
  29. package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
  30. package/fesm2020/veloceapps-sdk.mjs +370 -324
  31. package/fesm2020/veloceapps-sdk.mjs.map +1 -1
  32. package/package.json +1 -1
  33. package/src/components/doc-gen/doc-gen.component.d.ts +4 -2
  34. package/src/components/guided-selling/guided-selling.component.d.ts +4 -3
  35. package/src/guards/context.guard.d.ts +4 -4
  36. package/src/guards/flow.guard.d.ts +2 -0
  37. package/src/pages/assets/assets.component.d.ts +3 -3
  38. package/src/pages/catalog/catalog.component.d.ts +3 -3
  39. package/src/pages/debug/debug.component.d.ts +5 -8
  40. package/src/pages/shopping-cart/shopping-cart.component.d.ts +3 -3
  41. package/src/resolvers/flow.resolver.d.ts +3 -1
  42. package/src/resolvers/quote.resolver.d.ts +3 -1
  43. package/src/services/flow.service.d.ts +11 -2
@@ -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) {