@veloceapps/sdk 3.1.0 → 3.1.2
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-core.umd.js +2 -2
- package/bundles/veloce-sdk-core.umd.js.map +1 -1
- package/bundles/veloce-sdk-runtime.umd.js.map +1 -1
- package/bundles/veloce-sdk.umd.js +263 -94
- package/bundles/veloce-sdk.umd.js.map +1 -1
- package/esm2015/core/modules/flow-configuration/services/flow-update.service.js +3 -3
- package/esm2015/runtime/components/ui-runtime-preview/runtime-preview.component.js +1 -1
- package/esm2015/runtime/execution/directives/vl-document-attachments.directive.js +1 -1
- package/esm2015/runtime/execution/directives/vl-document-templates.directive.js +1 -1
- package/esm2015/runtime/types/bound-data.types.js +1 -1
- package/esm2015/src/components/header/header.component.js +6 -2
- package/esm2015/src/flow-routing.module.js +15 -5
- package/esm2015/src/pages/catalog/catalog.component.js +117 -0
- package/esm2015/src/pages/catalog/catalog.module.js +20 -0
- package/esm2015/src/pages/shopping-cart/shopping-cart.component.js +40 -21
- package/esm2015/src/pages/shopping-cart/shopping-cart.module.js +20 -0
- package/esm2015/src/services/flow-router.service.js +10 -1
- package/esm2015/src/services/flow.service.js +1 -1
- package/esm2015/src/types/flow-customization.types.js +1 -1
- package/fesm2015/veloce-sdk-core.js +2 -2
- package/fesm2015/veloce-sdk-core.js.map +1 -1
- package/fesm2015/veloce-sdk-runtime.js.map +1 -1
- package/fesm2015/veloce-sdk.js +218 -59
- package/fesm2015/veloce-sdk.js.map +1 -1
- package/package.json +1 -1
- package/runtime/execution/directives/vl-document-attachments.directive.d.ts +4 -4
- package/runtime/execution/directives/vl-document-templates.directive.d.ts +2 -2
- package/runtime/types/bound-data.types.d.ts +2 -2
- package/src/components/header/header.component.d.ts +2 -0
- package/src/flow-routing.module.d.ts +3 -2
- package/src/pages/catalog/catalog.component.d.ts +32 -0
- package/src/pages/catalog/catalog.module.d.ts +10 -0
- package/src/pages/shopping-cart/shopping-cart.component.d.ts +6 -3
- package/src/pages/shopping-cart/{product.module.d.ts → shopping-cart.module.d.ts} +0 -0
- package/src/services/flow-router.service.d.ts +2 -0
- package/src/services/flow.service.d.ts +1 -1
- package/src/types/flow-customization.types.d.ts +2 -1
- package/esm2015/src/pages/shopping-cart/product.module.js +0 -20
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { DocumentAttachmentApiService } from '@veloce/api';
|
|
2
|
-
import {
|
|
2
|
+
import { Attachment, TemplateAttachmentSearchRequest } from '@veloce/core';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class VlDocumentAttachmentsDirective {
|
|
6
6
|
private service;
|
|
7
7
|
constructor(service: DocumentAttachmentApiService);
|
|
8
|
-
getAttachments(searchRequest: TemplateAttachmentSearchRequest): Promise<
|
|
9
|
-
createAttachment(attachment:
|
|
10
|
-
updateAttachment(id: string, attachment:
|
|
8
|
+
getAttachments(searchRequest: TemplateAttachmentSearchRequest): Promise<Attachment[]>;
|
|
9
|
+
createAttachment(attachment: Attachment, file?: File, reportProgress?: boolean): Promise<Attachment> | Observable<Attachment>;
|
|
10
|
+
updateAttachment(id: string, attachment: Attachment): Promise<Attachment>;
|
|
11
11
|
getAttachmentFile(id: string, isPreventDownload?: boolean): Promise<any>;
|
|
12
12
|
removeAttachment(id: string): Promise<unknown>;
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<VlDocumentAttachmentsDirective, never>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DocumentTemplatesApiService } from '@veloce/api';
|
|
2
|
-
import { DocumentTemplate, QuoteDraft,
|
|
2
|
+
import { Attachment, DocumentTemplate, QuoteDraft, TemplateAttachmentSearchRequest } from '@veloce/core';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class VlDocumentTemplatesDirective {
|
|
@@ -26,7 +26,7 @@ export declare class VlDocumentTemplatesDirective {
|
|
|
26
26
|
}): Observable<any>;
|
|
27
27
|
getAttachments(searchRequest: TemplateAttachmentSearchRequest): Promise<any>;
|
|
28
28
|
getAttachmentFile(id: string): Promise<any>;
|
|
29
|
-
createAttachment(attachment:
|
|
29
|
+
createAttachment(attachment: Attachment, file?: File): Promise<any>;
|
|
30
30
|
removeAttachment(id: string): Promise<any>;
|
|
31
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<VlDocumentTemplatesDirective, never>;
|
|
32
32
|
static ɵdir: i0.ɵɵDirectiveDeclaration<VlDocumentTemplatesDirective, "[vlQuoteTemplates]", ["quoteTemplateApi"], {}, {}, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ProductModelAttribute, ProductPort, ProductType, SectionPath } from '@veloce/core';
|
|
2
2
|
export declare enum BoundDataType {
|
|
3
3
|
TYPE = 0,
|
|
4
4
|
ATTRIBUTE = 1,
|
|
@@ -6,7 +6,7 @@ export declare enum BoundDataType {
|
|
|
6
6
|
}
|
|
7
7
|
export interface BoundData {
|
|
8
8
|
name: string;
|
|
9
|
-
entity: ProductType |
|
|
9
|
+
entity: ProductType | ProductModelAttribute | ProductPort;
|
|
10
10
|
entityType: string;
|
|
11
11
|
host?: string;
|
|
12
12
|
path: SectionPath;
|
|
@@ -21,6 +21,7 @@ export declare class FlowHeaderComponent implements OnInit, OnDestroy {
|
|
|
21
21
|
products$: Observable<HeaderProduct[]>;
|
|
22
22
|
isConfigurationRoute$: Observable<boolean>;
|
|
23
23
|
isCartRoute$: Observable<boolean>;
|
|
24
|
+
isCatalogRoute$: Observable<boolean>;
|
|
24
25
|
isSaveInProgress$: BehaviorSubject<boolean>;
|
|
25
26
|
private mode?;
|
|
26
27
|
private isEditMode;
|
|
@@ -33,6 +34,7 @@ export declare class FlowHeaderComponent implements OnInit, OnDestroy {
|
|
|
33
34
|
back(): void;
|
|
34
35
|
getSalesforceObjectLink(objectId?: string): string;
|
|
35
36
|
navigateToShoppingCart(): void;
|
|
37
|
+
navigateToCatalog(): void;
|
|
36
38
|
saveButtonClickHandler(): void;
|
|
37
39
|
private queryName$;
|
|
38
40
|
private populateObjectDetails;
|
|
@@ -2,9 +2,10 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "@angular/router";
|
|
3
3
|
import * as i2 from "./pages/product/product.module";
|
|
4
4
|
import * as i3 from "./pages/legacy-product/legacy-product.module";
|
|
5
|
-
import * as i4 from "./pages/shopping-cart/
|
|
5
|
+
import * as i4 from "./pages/shopping-cart/shopping-cart.module";
|
|
6
|
+
import * as i5 from "./pages/catalog/catalog.module";
|
|
6
7
|
export declare class FlowRoutingModule {
|
|
7
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlowRoutingModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FlowRoutingModule, never, [typeof i1.RouterModule, typeof i2.ProductModule, typeof i3.LegacyProductModule, typeof i4.ShoppingCartModule], [typeof i1.RouterModule]>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FlowRoutingModule, never, [typeof i1.RouterModule, typeof i2.ProductModule, typeof i3.LegacyProductModule, typeof i4.ShoppingCartModule, typeof i5.CatalogModule], [typeof i1.RouterModule]>;
|
|
9
10
|
static ɵinj: i0.ɵɵInjectorDeclaration<FlowRoutingModule>;
|
|
10
11
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { UITemplatesApiService } from '@veloce/api';
|
|
3
|
+
import { ToastService } from '@veloce/components';
|
|
4
|
+
import { ContextService, UIDefinition } from '@veloce/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 CatalogComponent 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 getLocalCatalogComponentMeta$;
|
|
27
|
+
private getCatalogComponentMeta$;
|
|
28
|
+
private generateUIDefinition$;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogComponent, [null, null, null, null, { optional: true; }]>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CatalogComponent, "vl-flow-catalog", never, {}, {}, never, never>;
|
|
31
|
+
}
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./catalog.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@veloce/sdk/cms";
|
|
5
|
+
import * as i4 from "@veloce/components";
|
|
6
|
+
export declare class CatalogModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CatalogModule, [typeof i1.CatalogComponent], [typeof i2.CommonModule, typeof i3.PreviewModule, typeof i4.LoaderModule], [typeof i1.CatalogComponent]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CatalogModule>;
|
|
10
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { UITemplatesApiService } from '@veloce/api';
|
|
3
3
|
import { ToastService } from '@veloce/components';
|
|
4
|
-
import { UIDefinition } from '@veloce/sdk/core';
|
|
4
|
+
import { ContextService, UIDefinition } from '@veloce/sdk/core';
|
|
5
5
|
import { BehaviorSubject } from 'rxjs';
|
|
6
6
|
import { FlowCustomization } from '../../types';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
@@ -11,19 +11,22 @@ interface State {
|
|
|
11
11
|
}
|
|
12
12
|
export declare class ShoppingCartComponent implements OnInit, OnDestroy {
|
|
13
13
|
private templatesApi;
|
|
14
|
+
private contextService;
|
|
14
15
|
private cdr;
|
|
15
16
|
private toastService;
|
|
16
17
|
private customizationService?;
|
|
17
18
|
uiDefinition?: UIDefinition;
|
|
18
19
|
state$: BehaviorSubject<State>;
|
|
20
|
+
private templateApiName;
|
|
19
21
|
private destroyed$;
|
|
20
|
-
constructor(templatesApi: UITemplatesApiService, cdr: ChangeDetectorRef, toastService: ToastService, customizationService?: FlowCustomization | undefined);
|
|
22
|
+
constructor(templatesApi: UITemplatesApiService, contextService: ContextService, cdr: ChangeDetectorRef, toastService: ToastService, customizationService?: FlowCustomization | undefined);
|
|
21
23
|
ngOnInit(): void;
|
|
22
24
|
ngOnDestroy(): void;
|
|
23
25
|
private getTemplateRootComponent$;
|
|
26
|
+
private getLocalShoppingCartComponentMeta$;
|
|
24
27
|
private getShoppingCartComponentMeta$;
|
|
25
28
|
private generateUIDefinition$;
|
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ShoppingCartComponent, [null, null, null, { optional: true; }]>;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ShoppingCartComponent, [null, null, null, null, { optional: true; }]>;
|
|
27
30
|
static ɵcmp: i0.ɵɵComponentDeclaration<ShoppingCartComponent, "vl-flow-shopping-cart", never, {}, {}, never, never>;
|
|
28
31
|
}
|
|
29
32
|
export {};
|
|
File without changes
|
|
@@ -24,8 +24,10 @@ export declare class FlowRouterService {
|
|
|
24
24
|
getFlowSubpath$: () => Observable<string>;
|
|
25
25
|
isConfigurationRoute$(): Observable<boolean>;
|
|
26
26
|
isCartRoute$(): Observable<boolean>;
|
|
27
|
+
isCatalogRoute$(): Observable<boolean>;
|
|
27
28
|
navigateToProductConfiguration(productId: string): void;
|
|
28
29
|
navigateToShoppingCart(): void;
|
|
30
|
+
navigateToCatalog(): void;
|
|
29
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlowRouterService, never>;
|
|
30
32
|
static ɵprov: i0.ɵɵInjectableDeclaration<FlowRouterService>;
|
|
31
33
|
}
|
|
@@ -4,8 +4,8 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export declare class FlowService {
|
|
5
5
|
private integrationState;
|
|
6
6
|
private flowRouterService;
|
|
7
|
-
constructor(integrationState: IntegrationState, flowRouterService: FlowRouterService);
|
|
8
7
|
private cleanup$;
|
|
8
|
+
constructor(integrationState: IntegrationState, flowRouterService: FlowRouterService);
|
|
9
9
|
initSubscriptions(): void;
|
|
10
10
|
cleanup(): void;
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlowService, never>;
|
|
@@ -6,5 +6,6 @@ export declare const FLOW_CUSTOMIZATION: InjectionToken<FlowCustomization>;
|
|
|
6
6
|
export interface FlowCustomization {
|
|
7
7
|
getUiDefinition?(productId: string): Observable<UIDefinition | null>;
|
|
8
8
|
getLegacyUiDefinition?(productId: string): Observable<LegacyUIDefinition | null>;
|
|
9
|
-
getShoppingCartComponent?(): Observable<TemplateComponentWithAttachments | null>;
|
|
9
|
+
getShoppingCartComponent?(templateName: string): Observable<TemplateComponentWithAttachments | null>;
|
|
10
|
+
getCatalogComponent?(templateName: string): Observable<TemplateComponentWithAttachments | null>;
|
|
10
11
|
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { NgModule } from '@angular/core';
|
|
3
|
-
import { LoaderModule } from '@veloce/components';
|
|
4
|
-
import { PreviewModule } from '@veloce/sdk/cms';
|
|
5
|
-
import { ShoppingCartComponent } from './shopping-cart.component';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export class ShoppingCartModule {
|
|
8
|
-
}
|
|
9
|
-
ShoppingCartModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ShoppingCartModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
10
|
-
ShoppingCartModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ShoppingCartModule, declarations: [ShoppingCartComponent], imports: [CommonModule, PreviewModule, LoaderModule], exports: [ShoppingCartComponent] });
|
|
11
|
-
ShoppingCartModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ShoppingCartModule, imports: [[CommonModule, PreviewModule, LoaderModule]] });
|
|
12
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ShoppingCartModule, decorators: [{
|
|
13
|
-
type: NgModule,
|
|
14
|
-
args: [{
|
|
15
|
-
declarations: [ShoppingCartComponent],
|
|
16
|
-
imports: [CommonModule, PreviewModule, LoaderModule],
|
|
17
|
-
exports: [ShoppingCartComponent],
|
|
18
|
-
}]
|
|
19
|
-
}] });
|
|
20
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZHVjdC5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3Nkay9zcmMvcGFnZXMvc2hvcHBpbmctY2FydC9wcm9kdWN0Lm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxP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