@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.
- 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/flow-routing.module.mjs +4 -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 +7 -3
- 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 +15 -7
- 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 +15 -7
- package/fesm2020/veloceapps-sdk.mjs.map +1 -1
- package/package.json +1 -1
- package/src/guards/context.guard.d.ts +4 -4
- package/src/guards/flow.guard.d.ts +1 -1
@@ -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,
|
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) {
|