@veloceapps/sdk 3.1.24 → 3.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/veloce-sdk-cms.umd.js +13 -1
- package/bundles/veloce-sdk-cms.umd.js.map +1 -1
- package/bundles/veloce-sdk-core.umd.js +6 -9
- package/bundles/veloce-sdk-core.umd.js.map +1 -1
- package/bundles/veloce-sdk.umd.js +344 -145
- package/bundles/veloce-sdk.umd.js.map +1 -1
- package/cms/cms.actions.d.ts +5 -1
- package/cms/vendor-map.d.ts +2 -0
- package/core/services/quote-draft.service.d.ts +3 -4
- package/esm2015/cms/cms.actions.js +9 -1
- package/esm2015/core/services/quote-draft.service.js +7 -10
- package/esm2015/src/components/doc-gen/doc-gen.component.js +109 -0
- package/esm2015/src/components/doc-gen/doc-gen.module.js +19 -0
- package/esm2015/src/components/header/cart-overlay/cart-preview.component.js +3 -4
- package/esm2015/src/components/header/header.component.js +50 -25
- package/esm2015/src/flow.component.js +13 -9
- package/esm2015/src/flow.module.js +9 -4
- package/esm2015/src/services/doc-gen.service.js +33 -0
- package/esm2015/src/services/flow-dialog.service.js +23 -1
- package/esm2015/src/services/flow.service.js +6 -6
- package/fesm2015/veloce-sdk-cms.js +12 -2
- package/fesm2015/veloce-sdk-cms.js.map +1 -1
- package/fesm2015/veloce-sdk-core.js +6 -9
- package/fesm2015/veloce-sdk-core.js.map +1 -1
- package/fesm2015/veloce-sdk.js +275 -87
- package/fesm2015/veloce-sdk.js.map +1 -1
- package/package.json +1 -1
- package/src/components/doc-gen/doc-gen.component.d.ts +26 -0
- package/src/components/doc-gen/doc-gen.module.d.ts +9 -0
- package/src/components/header/cart-overlay/cart-preview.component.d.ts +1 -1
- package/src/components/header/header.component.d.ts +5 -1
- package/src/flow.component.d.ts +3 -1
- package/src/flow.module.d.ts +2 -1
- package/src/services/doc-gen.service.d.ts +13 -0
- package/src/services/flow-dialog.service.d.ts +3 -0
package/package.json
CHANGED
@@ -0,0 +1,26 @@
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
2
|
+
import { UITemplatesApiService } from '@veloce/api';
|
3
|
+
import { ToastService } from '@veloce/components';
|
4
|
+
import { ContextService, QuoteDraftService, UIDefinition } from '@veloce/sdk/core';
|
5
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
6
|
+
import { FlowDocGenService } from '../../services/doc-gen.service';
|
7
|
+
import * as i0 from "@angular/core";
|
8
|
+
export declare class DocGenComponent implements OnDestroy {
|
9
|
+
private quoteDraftService;
|
10
|
+
private contextService;
|
11
|
+
private templatesApi;
|
12
|
+
private docGenService;
|
13
|
+
private toastService;
|
14
|
+
uiDefinition$: BehaviorSubject<UIDefinition | null>;
|
15
|
+
isVisible$: Observable<boolean>;
|
16
|
+
private templateApiName;
|
17
|
+
private destroy$;
|
18
|
+
constructor(quoteDraftService: QuoteDraftService, contextService: ContextService, templatesApi: UITemplatesApiService, docGenService: FlowDocGenService, toastService: ToastService);
|
19
|
+
ngOnDestroy(): void;
|
20
|
+
private initialize;
|
21
|
+
private getTemplateRootComponent$;
|
22
|
+
private getDocGenComponentMeta$;
|
23
|
+
private generateUIDefinition$;
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DocGenComponent, never>;
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DocGenComponent, "vl-flow-doc-gen", never, {}, {}, never, never>;
|
26
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./doc-gen.component";
|
3
|
+
import * as i2 from "@angular/common";
|
4
|
+
import * as i3 from "@veloce/sdk/cms";
|
5
|
+
export declare class DocGenModule {
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DocGenModule, never>;
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DocGenModule, [typeof i1.DocGenComponent], [typeof i2.CommonModule, typeof i3.PreviewModule], [typeof i1.DocGenComponent]>;
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DocGenModule>;
|
9
|
+
}
|
@@ -17,7 +17,7 @@ export declare class CartPreviewComponent implements OnChanges, AfterViewInit, O
|
|
17
17
|
readonlyProductId$: Observable<string | null>;
|
18
18
|
private shouldUpdate$;
|
19
19
|
private destroyed$;
|
20
|
-
isEditMode
|
20
|
+
isEditMode$: Observable<boolean>;
|
21
21
|
constructor(flowConfiguration: FlowConfigurationService, routerService: FlowRouterService, productImagesService: ProductImagesService, quoteDraftService: QuoteDraftService);
|
22
22
|
ngOnChanges(changes: SimpleChanges): void;
|
23
23
|
ngAfterViewInit(): void;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
2
2
|
import { QuoteApiService, SalesforceApiService } from '@veloce/api';
|
3
3
|
import { ContextProperties, PriceList } from '@veloce/core';
|
4
|
+
import { IntegrationState } from '@veloce/sdk/cms';
|
4
5
|
import { ContextService, FlowConfigurationService, QuoteDraftService } from '@veloce/sdk/core';
|
5
6
|
import { BehaviorSubject, Observable } from 'rxjs';
|
6
7
|
import { FlowDialogService } from '../../services/flow-dialog.service';
|
@@ -15,6 +16,7 @@ export declare class FlowHeaderComponent implements OnInit, OnDestroy {
|
|
15
16
|
private flowConfiguration;
|
16
17
|
private routerService;
|
17
18
|
private dialogService;
|
19
|
+
private integrationState;
|
18
20
|
readonly disabledActionButtonTooltip = "Available from the Shopping Cart";
|
19
21
|
objectName: string;
|
20
22
|
contextProperties: ContextProperties;
|
@@ -31,7 +33,7 @@ export declare class FlowHeaderComponent implements OnInit, OnDestroy {
|
|
31
33
|
isSubmitInProgress$: BehaviorSubject<boolean>;
|
32
34
|
private mode?;
|
33
35
|
private destroyed$;
|
34
|
-
constructor(contextService: ContextService, quoteDraftService: QuoteDraftService, quoteApiService: QuoteApiService, sfApiService: SalesforceApiService, flowConfiguration: FlowConfigurationService, routerService: FlowRouterService, dialogService: FlowDialogService);
|
36
|
+
constructor(contextService: ContextService, quoteDraftService: QuoteDraftService, quoteApiService: QuoteApiService, sfApiService: SalesforceApiService, flowConfiguration: FlowConfigurationService, routerService: FlowRouterService, dialogService: FlowDialogService, integrationState: IntegrationState);
|
35
37
|
ngOnInit(): void;
|
36
38
|
ngOnDestroy(): void;
|
37
39
|
get isAccountMode(): boolean;
|
@@ -40,9 +42,11 @@ export declare class FlowHeaderComponent implements OnInit, OnDestroy {
|
|
40
42
|
getSalesforceObjectLink(objectId?: string): string;
|
41
43
|
navigateToShoppingCart(): void;
|
42
44
|
navigateToCatalog(): void;
|
45
|
+
docGenButtonClickHandler(): void;
|
43
46
|
saveButtonClickHandler(): void;
|
44
47
|
submitButtonClickHandler(): void;
|
45
48
|
selectPriceList(priceListId: string): void;
|
49
|
+
private saveQuote$;
|
46
50
|
private queryName$;
|
47
51
|
private populateObjectDetails;
|
48
52
|
private generateProducts;
|
package/src/flow.component.d.ts
CHANGED
@@ -2,15 +2,17 @@ import { OnDestroy } from '@angular/core';
|
|
2
2
|
import { QuoteDraftService } from '@veloce/sdk/core';
|
3
3
|
import { Observable } from 'rxjs';
|
4
4
|
import { FlowService } from './services';
|
5
|
+
import { FlowDocGenService } from './services/doc-gen.service';
|
5
6
|
import { FlowRouterService } from './services/flow-router.service';
|
6
7
|
import * as i0 from "@angular/core";
|
7
8
|
export declare class FlowComponent implements OnDestroy {
|
8
9
|
private routerService;
|
9
10
|
private quoteDraftService;
|
10
11
|
private flowService;
|
12
|
+
private docGenService;
|
11
13
|
isLoading$: Observable<boolean>;
|
12
14
|
showHeader$: Observable<boolean>;
|
13
|
-
constructor(routerService: FlowRouterService, quoteDraftService: QuoteDraftService, flowService: FlowService);
|
15
|
+
constructor(routerService: FlowRouterService, quoteDraftService: QuoteDraftService, flowService: FlowService, docGenService: FlowDocGenService);
|
14
16
|
ngOnDestroy(): void;
|
15
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlowComponent, never>;
|
16
18
|
static ɵcmp: i0.ɵɵComponentDeclaration<FlowComponent, "vl-flow", never, {}, {}, never, never>;
|
package/src/flow.module.d.ts
CHANGED
@@ -8,8 +8,9 @@ import * as i6 from "@veloce/components";
|
|
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 "@veloce/sdk/core";
|
11
|
+
import * as i10 from "./components/doc-gen/doc-gen.module";
|
11
12
|
export declare class FlowModule {
|
12
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlowModule, never>;
|
13
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FlowModule, [typeof i1.FlowComponent], [typeof i2.CommonModule, typeof i3.FlowRoutingModule, typeof i4.ApiModule, typeof i5.LauncherModule, typeof i6.LoaderModule, typeof i7.FlowHeaderModule, typeof i8.FlowDialogModule, typeof i9.SdkCoreModule], never>;
|
14
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FlowModule, [typeof i1.FlowComponent], [typeof i2.CommonModule, typeof i3.FlowRoutingModule, typeof i4.ApiModule, typeof i5.LauncherModule, typeof i6.LoaderModule, typeof i7.FlowHeaderModule, typeof i8.FlowDialogModule, typeof i9.SdkCoreModule, typeof i10.DocGenModule], never>;
|
14
15
|
static ɵinj: i0.ɵɵInjectorDeclaration<FlowModule>;
|
15
16
|
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { IntegrationState } from '@veloce/sdk/cms';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class FlowDocGenService {
|
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<FlowDocGenService, never>;
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FlowDocGenService>;
|
13
|
+
}
|
@@ -15,6 +15,9 @@ export declare class FlowDialogService {
|
|
15
15
|
showUnsavedChangesDialog(): Observable<boolean>;
|
16
16
|
showReadonlyQuoteSubmitFailureDialog(): Observable<boolean>;
|
17
17
|
showAccountSubmitFailureDialog(): Observable<boolean>;
|
18
|
+
showDocgenAccountUnsavedChangesDialog(): Observable<boolean>;
|
19
|
+
showDocgenReadonlyDialog(): Observable<boolean>;
|
20
|
+
showDocgenUnsavedChangesDialog(): Observable<boolean>;
|
18
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlowDialogService, never>;
|
19
22
|
static ɵprov: i0.ɵɵInjectableDeclaration<FlowDialogService>;
|
20
23
|
}
|