@veloceapps/sdk 7.0.2-60 → 7.0.2-61
Sign up to get free protection for your applications and to get access to all the features.
- package/cms/cms.actions.d.ts +72 -10
- package/cms/types/integration.types.d.ts +1 -0
- package/cms/vendor-map.d.ts +4 -12
- package/core/modules/configuration/helpers.d.ts +3 -1
- package/core/modules/configuration/index.d.ts +1 -0
- package/core/modules/configuration/services/configuration.service.d.ts +4 -2
- package/core/modules/configuration/types/configuration-runtime.types.d.ts +1 -0
- package/core/modules/configuration/types/configuration.types.d.ts +10 -0
- package/core/modules/flow-configuration/services/flow-configuration.service.d.ts +2 -1
- package/core/utils/line-item.utils.d.ts +5 -13
- package/core/utils/line-item.worker.d.ts +2 -5
- package/esm2020/cms/cms.actions.mjs +99 -39
- package/esm2020/cms/types/integration.types.mjs +1 -1
- package/esm2020/core/modules/configuration/helpers.mjs +35 -2
- package/esm2020/core/modules/configuration/index.mjs +2 -1
- package/esm2020/core/modules/configuration/services/configuration.service.mjs +30 -6
- package/esm2020/core/modules/configuration/types/configuration-runtime.types.mjs +1 -1
- package/esm2020/core/modules/configuration/types/configuration.types.mjs +2 -0
- package/esm2020/core/modules/flow-configuration/services/flow-configuration.service.mjs +4 -4
- package/esm2020/core/utils/line-item.utils.mjs +5 -2
- package/esm2020/core/utils/line-item.worker.mjs +1 -1
- package/esm2020/src/components/doc-gen/doc-gen.component.mjs +29 -6
- package/esm2020/src/components/guided-selling/guided-selling.component.mjs +117 -0
- package/esm2020/src/components/guided-selling/guided-selling.module.mjs +19 -0
- package/esm2020/src/components/header/header.component.mjs +3 -3
- package/esm2020/src/flow.component.mjs +4 -3
- package/esm2020/src/flow.module.mjs +11 -6
- package/esm2020/src/pages/product/product.component.mjs +15 -8
- package/esm2020/src/services/flow-router.service.mjs +10 -5
- package/esm2020/src/services/flow.service.mjs +2 -2
- package/esm2020/src/services/guided-selling.service.mjs +33 -0
- package/esm2020/src/types/flow-customization.types.mjs +1 -1
- package/fesm2015/veloceapps-sdk-cms.mjs +98 -38
- package/fesm2015/veloceapps-sdk-cms.mjs.map +1 -1
- package/fesm2015/veloceapps-sdk-core.mjs +75 -15
- package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
- package/fesm2015/veloceapps-sdk.mjs +238 -52
- package/fesm2015/veloceapps-sdk.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk-cms.mjs +98 -38
- package/fesm2020/veloceapps-sdk-cms.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk-core.mjs +71 -11
- package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk.mjs +230 -52
- package/fesm2020/veloceapps-sdk.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/doc-gen/doc-gen.component.d.ts +5 -2
- package/src/components/guided-selling/guided-selling.component.d.ts +29 -0
- package/src/components/guided-selling/guided-selling.module.d.ts +9 -0
- package/src/flow.module.d.ts +6 -5
- package/src/pages/product/product.component.d.ts +4 -2
- package/src/services/flow-router.service.d.ts +3 -1
- package/src/services/guided-selling.service.d.ts +13 -0
- package/src/types/flow-customization.types.d.ts +1 -0
package/package.json
CHANGED
@@ -5,6 +5,7 @@ import { UIDefinition } from '@veloceapps/core';
|
|
5
5
|
import { ContextService, QuoteDraftService } from '@veloceapps/sdk/core';
|
6
6
|
import { BehaviorSubject, Observable } from 'rxjs';
|
7
7
|
import { FlowDocGenService } from '../../services/doc-gen.service';
|
8
|
+
import { FlowCustomization } from '../../types';
|
8
9
|
import * as i0 from "@angular/core";
|
9
10
|
export declare class DocGenComponent implements OnDestroy {
|
10
11
|
private quoteDraftService;
|
@@ -12,16 +13,18 @@ export declare class DocGenComponent implements OnDestroy {
|
|
12
13
|
private templatesApi;
|
13
14
|
private docGenService;
|
14
15
|
private toastService;
|
16
|
+
private customizationService?;
|
15
17
|
uiDefinition$: BehaviorSubject<UIDefinition | null>;
|
16
18
|
isVisible$: Observable<boolean>;
|
17
19
|
private templateApiName;
|
18
20
|
private destroy$;
|
19
|
-
constructor(quoteDraftService: QuoteDraftService, contextService: ContextService, templatesApi: UITemplatesApiService, docGenService: FlowDocGenService, toastService: ToastService);
|
21
|
+
constructor(quoteDraftService: QuoteDraftService, contextService: ContextService, templatesApi: UITemplatesApiService, docGenService: FlowDocGenService, toastService: ToastService, customizationService?: FlowCustomization | undefined);
|
20
22
|
ngOnDestroy(): void;
|
21
23
|
private initialize;
|
22
24
|
private getTemplateRootComponent$;
|
25
|
+
private getLocalTemplateComponentMeta$;
|
23
26
|
private getDocGenComponentMeta$;
|
24
27
|
private generateUIDefinition$;
|
25
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DocGenComponent,
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DocGenComponent, [null, null, null, null, null, { optional: true; }]>;
|
26
29
|
static ɵcmp: i0.ɵɵComponentDeclaration<DocGenComponent, "vl-flow-doc-gen", never, {}, {}, never, never, false, never>;
|
27
30
|
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
2
|
+
import { UITemplatesApiService } from '@veloceapps/api';
|
3
|
+
import { ToastService } from '@veloceapps/components';
|
4
|
+
import { UIDefinition } from '@veloceapps/core';
|
5
|
+
import { ContextService, QuoteDraftService } from '@veloceapps/sdk/core';
|
6
|
+
import { BehaviorSubject } from 'rxjs';
|
7
|
+
import { FlowGuidedSellingService } from '../../services/guided-selling.service';
|
8
|
+
import { FlowCustomization } from '../../types';
|
9
|
+
import * as i0 from "@angular/core";
|
10
|
+
export declare class GuidedSellingComponent implements OnDestroy {
|
11
|
+
private quoteDraftService;
|
12
|
+
private contextService;
|
13
|
+
private templatesApi;
|
14
|
+
private guidedSellingService;
|
15
|
+
private toastService;
|
16
|
+
private customizationService?;
|
17
|
+
uiDefinition$: BehaviorSubject<UIDefinition | null>;
|
18
|
+
private templateApiName;
|
19
|
+
private destroy$;
|
20
|
+
constructor(quoteDraftService: QuoteDraftService, contextService: ContextService, templatesApi: UITemplatesApiService, guidedSellingService: FlowGuidedSellingService, toastService: ToastService, customizationService?: FlowCustomization | undefined);
|
21
|
+
ngOnDestroy(): void;
|
22
|
+
private initialize;
|
23
|
+
private getTemplateRootComponent$;
|
24
|
+
private getLocalTemplateComponentMeta$;
|
25
|
+
private getGuidedSellingComponentMeta$;
|
26
|
+
private generateUIDefinition$;
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GuidedSellingComponent, [null, null, null, null, null, { optional: true; }]>;
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GuidedSellingComponent, "vl-flow-guided-selling", never, {}, {}, never, never, false, never>;
|
29
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./guided-selling.component";
|
3
|
+
import * as i2 from "@angular/common";
|
4
|
+
import * as i3 from "@veloceapps/sdk/cms";
|
5
|
+
export declare class GuidedSellingModule {
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GuidedSellingModule, never>;
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<GuidedSellingModule, [typeof i1.GuidedSellingComponent], [typeof i2.CommonModule, typeof i3.PreviewModule], [typeof i1.GuidedSellingComponent]>;
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<GuidedSellingModule>;
|
9
|
+
}
|
package/src/flow.module.d.ts
CHANGED
@@ -1,16 +1,17 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
2
|
import * as i1 from "./flow.component";
|
3
3
|
import * as i2 from "@angular/common";
|
4
|
-
import * as i3 from "
|
5
|
-
import * as i4 from "
|
6
|
-
import * as i5 from "@veloceapps/
|
7
|
-
import * as i6 from "@veloceapps/
|
4
|
+
import * as i3 from "@veloceapps/components";
|
5
|
+
import * as i4 from "./flow-routing.module";
|
6
|
+
import * as i5 from "@veloceapps/api";
|
7
|
+
import * as i6 from "@veloceapps/sdk/cms";
|
8
8
|
import * as i7 from "./components/header/header.module";
|
9
9
|
import * as i8 from "./components/dialog/dialog.module";
|
10
10
|
import * as i9 from "@veloceapps/sdk/core";
|
11
11
|
import * as i10 from "./components/doc-gen/doc-gen.module";
|
12
|
+
import * as i11 from "./components/guided-selling/guided-selling.module";
|
12
13
|
export declare class FlowModule {
|
13
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlowModule, never>;
|
14
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FlowModule, [typeof i1.FlowComponent], [typeof i2.CommonModule, typeof i3.
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FlowModule, [typeof i1.FlowComponent], [typeof i2.CommonModule, typeof i3.LetDirectiveModule, typeof i4.FlowRoutingModule, typeof i5.ApiModule, typeof i6.LauncherModule, typeof i3.LoaderModule, typeof i7.FlowHeaderModule, typeof i8.FlowDialogModule, typeof i9.SdkCoreModule, typeof i10.DocGenModule, typeof i11.GuidedSellingModule], never>;
|
15
16
|
static ɵinj: i0.ɵɵInjectorDeclaration<FlowModule>;
|
16
17
|
}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
2
2
|
import { UIDefinition } from '@veloceapps/core';
|
3
|
+
import { IntegrationState } from '@veloceapps/sdk/cms';
|
3
4
|
import { ConfigurationRuntimeService, ConfigurationService, ContextService, QuoteDraftService } from '@veloceapps/sdk/core';
|
4
5
|
import { MessageService } from 'primeng/api';
|
5
6
|
import { BehaviorSubject } from 'rxjs';
|
@@ -15,18 +16,19 @@ export declare class ProductComponent implements OnInit, OnDestroy {
|
|
15
16
|
private configurationService;
|
16
17
|
private quoteDraftService;
|
17
18
|
private messageService;
|
19
|
+
private integrationState;
|
18
20
|
private customizationService?;
|
19
21
|
private destroy$;
|
20
22
|
uiDefinition?: UIDefinition;
|
21
23
|
state$: BehaviorSubject<State>;
|
22
|
-
constructor(contextService: ContextService, runtimeService: ConfigurationRuntimeService, configurationService: ConfigurationService, quoteDraftService: QuoteDraftService, messageService: MessageService, customizationService?: FlowCustomization | undefined);
|
24
|
+
constructor(contextService: ContextService, runtimeService: ConfigurationRuntimeService, configurationService: ConfigurationService, quoteDraftService: QuoteDraftService, messageService: MessageService, integrationState: IntegrationState, customizationService?: FlowCustomization | undefined);
|
23
25
|
ngOnInit(): void;
|
24
26
|
ngOnDestroy(): void;
|
25
27
|
private customize;
|
26
28
|
private init;
|
27
29
|
private throwIfNoUIDefinition;
|
28
30
|
private getLineItemId;
|
29
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ProductComponent, [null, null, null, null, null, { optional: true; }]>;
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductComponent, [null, null, null, null, null, null, { optional: true; }]>;
|
30
32
|
static ɵcmp: i0.ɵɵComponentDeclaration<ProductComponent, "vl-flow-product", never, {}, {}, never, never, false, never>;
|
31
33
|
}
|
32
34
|
export {};
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { ActivatedRoute, ActivatedRouteSnapshot, Params, Router } from '@angular/router';
|
2
|
+
import { IntegrationState } from '@veloceapps/sdk/cms';
|
2
3
|
import { ContextService } from '@veloceapps/sdk/core';
|
3
4
|
import { Observable } from 'rxjs';
|
4
5
|
import * as i0 from "@angular/core";
|
@@ -6,12 +7,13 @@ export declare class FlowRouterService {
|
|
6
7
|
private router;
|
7
8
|
private route;
|
8
9
|
private contextService;
|
10
|
+
private integrationState;
|
9
11
|
private routeChange$;
|
10
12
|
private lastChildParams$;
|
11
13
|
private lastChildRoute$;
|
12
14
|
private urlHistory;
|
13
15
|
loading$: Observable<boolean>;
|
14
|
-
constructor(router: Router, route: ActivatedRoute, contextService: ContextService);
|
16
|
+
constructor(router: Router, route: ActivatedRoute, contextService: ContextService, integrationState: IntegrationState);
|
15
17
|
getFlowRootRoute(route: ActivatedRouteSnapshot): ActivatedRouteSnapshot | undefined;
|
16
18
|
getFlowRootPath(route: ActivatedRouteSnapshot): string;
|
17
19
|
get route$(): Observable<ActivatedRouteSnapshot>;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { IntegrationState } from '@veloceapps/sdk/cms';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class FlowGuidedSellingService {
|
4
|
+
private integrationState;
|
5
|
+
private cleanup$;
|
6
|
+
private isVisibleSubj$;
|
7
|
+
isVisible$: import("rxjs").Observable<boolean>;
|
8
|
+
constructor(integrationState: IntegrationState);
|
9
|
+
cleanup(): void;
|
10
|
+
private initSubscriptions;
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FlowGuidedSellingService, never>;
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FlowGuidedSellingService>;
|
13
|
+
}
|
@@ -8,4 +8,5 @@ export interface FlowCustomization {
|
|
8
8
|
getShoppingCartComponent?(templateName: string): Observable<TemplateComponentWithAttachments | null>;
|
9
9
|
getCatalogComponent?(templateName: string): Observable<TemplateComponentWithAttachments | null>;
|
10
10
|
getAssetsComponent?(templateName: string): Observable<TemplateComponentWithAttachments | null>;
|
11
|
+
getTemplateComponent?(templateName: string): Observable<TemplateComponentWithAttachments | null>;
|
11
12
|
}
|