@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.
- package/core/services/context.service.d.ts +1 -0
- package/esm2020/cms/components/element-tools-panel/element-tools-panel.component.mjs +3 -3
- package/esm2020/core/services/context.service.mjs +4 -1
- package/esm2020/core/services/quote-draft.service.mjs +2 -1
- package/esm2020/src/components/doc-gen/doc-gen.component.mjs +11 -8
- package/esm2020/src/components/guided-selling/guided-selling.component.mjs +12 -10
- package/esm2020/src/flow-routing.module.mjs +5 -4
- package/esm2020/src/flow.component.mjs +8 -4
- package/esm2020/src/guards/context.guard.mjs +1 -1
- package/esm2020/src/guards/flow.guard.mjs +23 -0
- package/esm2020/src/guards/root.guard.mjs +5 -2
- package/esm2020/src/pages/assets/assets.component.mjs +11 -11
- package/esm2020/src/pages/catalog/catalog.component.mjs +11 -11
- package/esm2020/src/pages/debug/debug.component.mjs +10 -14
- package/esm2020/src/pages/shopping-cart/shopping-cart.component.mjs +11 -11
- package/esm2020/src/resolvers/flow.resolver.mjs +15 -9
- package/esm2020/src/resolvers/quote.resolver.mjs +10 -6
- package/esm2020/src/services/flow.service.mjs +23 -8
- package/esm2020/src/utils/flow.utils.mjs +6 -2
- package/fesm2015/veloceapps-sdk-cms.mjs +2 -2
- package/fesm2015/veloceapps-sdk-cms.mjs.map +1 -1
- package/fesm2015/veloceapps-sdk-core.mjs +5 -1
- package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
- package/fesm2015/veloceapps-sdk.mjs +377 -333
- package/fesm2015/veloceapps-sdk.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk-cms.mjs +2 -2
- package/fesm2020/veloceapps-sdk-cms.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk-core.mjs +5 -1
- package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk.mjs +370 -324
- package/fesm2020/veloceapps-sdk.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/doc-gen/doc-gen.component.d.ts +4 -2
- package/src/components/guided-selling/guided-selling.component.d.ts +4 -3
- package/src/guards/context.guard.d.ts +4 -4
- package/src/guards/flow.guard.d.ts +2 -0
- package/src/pages/assets/assets.component.d.ts +3 -3
- package/src/pages/catalog/catalog.component.d.ts +3 -3
- package/src/pages/debug/debug.component.d.ts +5 -8
- package/src/pages/shopping-cart/shopping-cart.component.d.ts +3 -3
- package/src/resolvers/flow.resolver.d.ts +3 -1
- package/src/resolvers/quote.resolver.d.ts +3 -1
- 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,
|
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) {
|