@veloceapps/sdk 6.0.0-95 → 6.0.0-97
Sign up to get free protection for your applications and to get access to all the features.
- package/bundles/veloceapps-sdk-cms.umd.js +1 -1
- package/bundles/veloceapps-sdk-cms.umd.js.map +1 -1
- package/bundles/veloceapps-sdk-core.umd.js +7 -0
- package/bundles/veloceapps-sdk-core.umd.js.map +1 -1
- package/bundles/veloceapps-sdk.umd.js +191 -9
- package/bundles/veloceapps-sdk.umd.js.map +1 -1
- package/cms/components/preview/preview.types.d.ts +2 -2
- package/cms/services/integration.state.d.ts +2 -3
- package/cms/types/integration.types.d.ts +5 -0
- package/core/services/context.service.d.ts +1 -0
- package/esm2015/cms/components/preview/preview.component.js +2 -2
- package/esm2015/cms/components/preview/preview.types.js +1 -1
- package/esm2015/cms/services/integration.state.js +1 -1
- package/esm2015/cms/types/integration.types.js +1 -1
- package/esm2015/core/services/context.service.js +4 -1
- package/esm2015/src/components/header/header.component.js +22 -4
- package/esm2015/src/flow-routing.module.js +14 -1
- package/esm2015/src/pages/assets/assets.component.js +117 -0
- package/esm2015/src/pages/assets/assets.module.js +20 -0
- package/esm2015/src/pages/catalog/catalog.component.js +3 -3
- package/esm2015/src/pages/shopping-cart/shopping-cart.component.js +3 -3
- package/esm2015/src/resolvers/quote.resolver.js +11 -6
- package/esm2015/src/services/flow-router.service.js +9 -1
- package/esm2015/src/services/flow.service.js +9 -2
- package/esm2015/src/types/flow-customization.types.js +1 -1
- package/fesm2015/veloceapps-sdk-cms.js +1 -1
- package/fesm2015/veloceapps-sdk-cms.js.map +1 -1
- package/fesm2015/veloceapps-sdk-core.js +3 -0
- package/fesm2015/veloceapps-sdk-core.js.map +1 -1
- package/fesm2015/veloceapps-sdk.js +178 -9
- package/fesm2015/veloceapps-sdk.js.map +1 -1
- package/package.json +1 -1
- package/src/components/header/header.component.d.ts +6 -1
- package/src/flow-routing.module.d.ts +4 -3
- package/src/pages/assets/assets.component.d.ts +32 -0
- package/src/pages/assets/assets.module.d.ts +10 -0
- package/src/resolvers/quote.resolver.d.ts +1 -0
- package/src/services/flow-router.service.d.ts +2 -0
- package/src/services/flow.service.d.ts +1 -0
- package/src/types/flow-customization.types.d.ts +1 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
2
2
|
import { QuoteApiService, SalesforceApiService, ShoppingCartSettingsApiService } from '@veloceapps/api';
|
3
|
-
import { ContextProperties, PriceList } from '@veloceapps/core';
|
3
|
+
import { ContextProperties, LineItem, PriceList } from '@veloceapps/core';
|
4
4
|
import { IntegrationState } from '@veloceapps/sdk/cms';
|
5
5
|
import { ContextService, FlowConfigurationService, QuoteDraftService } from '@veloceapps/sdk/core';
|
6
6
|
import { MenuItem } from 'primeng/api';
|
@@ -26,10 +26,12 @@ export declare class FlowHeaderComponent implements OnInit, OnDestroy {
|
|
26
26
|
isReadonlyMode$: Observable<boolean>;
|
27
27
|
status$: Observable<string>;
|
28
28
|
objectDetails$: Observable<HeaderObjectDetails>;
|
29
|
+
assetsCount$: Observable<number>;
|
29
30
|
products$: Observable<HeaderProduct[]>;
|
30
31
|
isConfigurationRoute$: Observable<boolean>;
|
31
32
|
isCartRoute$: Observable<boolean>;
|
32
33
|
isCatalogRoute$: Observable<boolean>;
|
34
|
+
isAssetsRoute$: Observable<boolean>;
|
33
35
|
isEditMode$: Observable<boolean>;
|
34
36
|
isSaveInProgress$: BehaviorSubject<boolean>;
|
35
37
|
isSubmitInProgress$: BehaviorSubject<boolean>;
|
@@ -49,6 +51,7 @@ export declare class FlowHeaderComponent implements OnInit, OnDestroy {
|
|
49
51
|
getSalesforceObjectLink(objectId?: string): string;
|
50
52
|
navigateToShoppingCart(): void;
|
51
53
|
navigateToCatalog(): void;
|
54
|
+
navigateToAssets(): void;
|
52
55
|
docGenButtonClickHandler(isCartRoute: boolean): void;
|
53
56
|
saveButtonClickHandler(isCartRoute: boolean): void;
|
54
57
|
submitButtonClickHandler(isCartRoute: boolean): void;
|
@@ -58,6 +61,8 @@ export declare class FlowHeaderComponent implements OnInit, OnDestroy {
|
|
58
61
|
private queryName$;
|
59
62
|
private getObjectDetails$;
|
60
63
|
private formatMetric;
|
64
|
+
getDraftItems$(): Observable<LineItem[]>;
|
65
|
+
getAssets$(): Observable<LineItem[]>;
|
61
66
|
private generateProducts;
|
62
67
|
private isReadonlyMode;
|
63
68
|
private isUpsellQuoteWithoutChanges;
|
@@ -4,10 +4,11 @@ import * as i2 from "./pages/product/product.module";
|
|
4
4
|
import * as i3 from "./pages/legacy-product/legacy-product.module";
|
5
5
|
import * as i4 from "./pages/shopping-cart/shopping-cart.module";
|
6
6
|
import * as i5 from "./pages/catalog/catalog.module";
|
7
|
-
import * as i6 from "./pages/
|
8
|
-
import * as i7 from "./pages/
|
7
|
+
import * as i6 from "./pages/assets/assets.module";
|
8
|
+
import * as i7 from "./pages/remote/remote.module";
|
9
|
+
import * as i8 from "./pages/empty-account/empty-account.module";
|
9
10
|
export declare class FlowRoutingModule {
|
10
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlowRoutingModule, never>;
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FlowRoutingModule, never, [typeof i1.RouterModule, typeof i2.ProductModule, typeof i3.LegacyProductModule, typeof i4.ShoppingCartModule, typeof i5.CatalogModule, typeof i6.
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FlowRoutingModule, never, [typeof i1.RouterModule, typeof i2.ProductModule, typeof i3.LegacyProductModule, typeof i4.ShoppingCartModule, typeof i5.CatalogModule, typeof i6.AssetsModule, typeof i7.RemoteModule, typeof i8.EmptyAccountModule], [typeof i1.RouterModule]>;
|
12
13
|
static ɵinj: i0.ɵɵInjectorDeclaration<FlowRoutingModule>;
|
13
14
|
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
2
|
+
import { UITemplatesApiService } from '@veloceapps/api';
|
3
|
+
import { ToastService } from '@veloceapps/components';
|
4
|
+
import { ContextService, UIDefinition } from '@veloceapps/sdk/core';
|
5
|
+
import { BehaviorSubject } from 'rxjs';
|
6
|
+
import { FlowCustomization } from '../../types';
|
7
|
+
import * as i0 from "@angular/core";
|
8
|
+
interface State {
|
9
|
+
loading: boolean;
|
10
|
+
failure: boolean;
|
11
|
+
}
|
12
|
+
export declare class AssetsComponent implements OnInit, OnDestroy {
|
13
|
+
private templatesApi;
|
14
|
+
private contextService;
|
15
|
+
private cdr;
|
16
|
+
private toastService;
|
17
|
+
private customizationService?;
|
18
|
+
uiDefinition?: UIDefinition;
|
19
|
+
state$: BehaviorSubject<State>;
|
20
|
+
private templateApiName;
|
21
|
+
private destroyed$;
|
22
|
+
constructor(templatesApi: UITemplatesApiService, contextService: ContextService, cdr: ChangeDetectorRef, toastService: ToastService, customizationService?: FlowCustomization | undefined);
|
23
|
+
ngOnInit(): void;
|
24
|
+
ngOnDestroy(): void;
|
25
|
+
private getTemplateRootComponent$;
|
26
|
+
private getLocalAssetsComponentMeta$;
|
27
|
+
private getAssetsComponentMeta$;
|
28
|
+
private generateUIDefinition$;
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AssetsComponent, [null, null, null, null, { optional: true; }]>;
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AssetsComponent, "vl-flow-assets", never, {}, {}, never, never>;
|
31
|
+
}
|
32
|
+
export {};
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./assets.component";
|
3
|
+
import * as i2 from "@angular/common";
|
4
|
+
import * as i3 from "@veloceapps/sdk/cms";
|
5
|
+
import * as i4 from "@veloceapps/components";
|
6
|
+
export declare class AssetsModule {
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AssetsModule, never>;
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AssetsModule, [typeof i1.AssetsComponent], [typeof i2.CommonModule, typeof i3.PreviewModule, typeof i4.LoaderModule], [typeof i1.AssetsComponent]>;
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AssetsModule>;
|
10
|
+
}
|
@@ -14,6 +14,7 @@ export declare class QuoteResolver implements Resolve<void | boolean> {
|
|
14
14
|
private calculate$;
|
15
15
|
resolve(route: ActivatedRouteSnapshot): Observable<void | boolean>;
|
16
16
|
private changeNavigation;
|
17
|
+
private shouldNavigateToAssets;
|
17
18
|
private accountHasNotAssets;
|
18
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<QuoteResolver, never>;
|
19
20
|
static ɵprov: i0.ɵɵInjectableDeclaration<QuoteResolver>;
|
@@ -26,10 +26,12 @@ export declare class FlowRouterService {
|
|
26
26
|
isConfigurationRoute$(): Observable<boolean>;
|
27
27
|
isCartRoute$(): Observable<boolean>;
|
28
28
|
isCatalogRoute$(): Observable<boolean>;
|
29
|
+
isAssetsRoute$(): Observable<boolean>;
|
29
30
|
navigateBack(): void;
|
30
31
|
navigateToProductConfiguration(productId: string, lineItemId?: string): void;
|
31
32
|
navigateToShoppingCart(): void;
|
32
33
|
navigateToCatalog(): void;
|
34
|
+
navigateToAssets(): void;
|
33
35
|
switchObject(id: string): void;
|
34
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlowRouterService, never>;
|
35
37
|
static ɵprov: i0.ɵɵInjectableDeclaration<FlowRouterService>;
|
@@ -12,6 +12,7 @@ export declare class FlowService {
|
|
12
12
|
constructor(integrationState: IntegrationState, flowRouterService: FlowRouterService, quoteDraftService: QuoteDraftService, configurationService: ConfigurationService, flowConfigurationService: FlowConfigurationService);
|
13
13
|
initSubscriptions(): void;
|
14
14
|
cleanup(): void;
|
15
|
+
private updateFlowPath;
|
15
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlowService, never>;
|
16
17
|
static ɵprov: i0.ɵɵInjectableDeclaration<FlowService>;
|
17
18
|
}
|
@@ -8,4 +8,5 @@ export interface FlowCustomization {
|
|
8
8
|
getLegacyUiDefinition?(productId: string): Observable<LegacyUIDefinition | null>;
|
9
9
|
getShoppingCartComponent?(templateName: string): Observable<TemplateComponentWithAttachments | null>;
|
10
10
|
getCatalogComponent?(templateName: string): Observable<TemplateComponentWithAttachments | null>;
|
11
|
+
getAssetsComponent?(templateName: string): Observable<TemplateComponentWithAttachments | null>;
|
11
12
|
}
|