@veloceapps/sdk 4.0.20 → 4.0.21
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.umd.js +601 -154
- 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/esm2015/cms/cms.actions.js +9 -1
- package/esm2015/src/flow-routing.module.js +13 -1
- package/esm2015/src/guards/context.guard.js +14 -5
- package/esm2015/src/pages/remote/remote.component.js +353 -0
- package/esm2015/src/pages/remote/remote.module.js +20 -0
- package/esm2015/src/pages/remote/remote.types.js +2 -0
- package/esm2015/src/resolvers/flow.resolver.js +3 -3
- package/esm2015/src/utils/flow.utils.js +10 -2
- package/fesm2015/veloce-sdk-cms.js +12 -2
- package/fesm2015/veloce-sdk-cms.js.map +1 -1
- package/fesm2015/veloce-sdk.js +464 -83
- package/fesm2015/veloce-sdk.js.map +1 -1
- package/package.json +2 -2
- package/src/flow-routing.module.d.ts +3 -2
- package/src/guards/context.guard.d.ts +1 -0
- package/src/pages/remote/remote.component.d.ts +47 -0
- package/src/pages/remote/remote.module.d.ts +10 -0
- package/src/pages/remote/remote.types.d.ts +4 -0
- package/src/utils/flow.utils.d.ts +7 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@veloceapps/sdk",
|
3
|
-
"version": "4.0.
|
3
|
+
"version": "4.0.21",
|
4
4
|
"peerDependencies": {
|
5
5
|
"@angular/animations": "^12.2.0",
|
6
6
|
"@angular/common": "^12.2.0",
|
@@ -25,7 +25,7 @@
|
|
25
25
|
"monaco-editor": "^0.30.1",
|
26
26
|
"@angular/router": "^12.2.0",
|
27
27
|
"jshashes": "^1.0.8",
|
28
|
-
"@veloce/elements": "^1.1.
|
28
|
+
"@veloce/elements": "^1.1.2",
|
29
29
|
"ngx-bootstrap": "^5.6.2"
|
30
30
|
},
|
31
31
|
"dependencies": {
|
@@ -4,9 +4,10 @@ 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/
|
7
|
+
import * as i6 from "./pages/remote/remote.module";
|
8
|
+
import * as i7 from "./pages/empty-account/empty-account.module";
|
8
9
|
export declare class FlowRoutingModule {
|
9
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlowRoutingModule, never>;
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FlowRoutingModule, never, [typeof i1.RouterModule, typeof i2.ProductModule, typeof i3.LegacyProductModule, typeof i4.ShoppingCartModule, typeof i5.CatalogModule, typeof i6.EmptyAccountModule], [typeof i1.RouterModule]>;
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FlowRoutingModule, never, [typeof i1.RouterModule, typeof i2.ProductModule, typeof i3.LegacyProductModule, typeof i4.ShoppingCartModule, typeof i5.CatalogModule, typeof i6.RemoteModule, typeof i7.EmptyAccountModule], [typeof i1.RouterModule]>;
|
11
12
|
static ɵinj: i0.ɵɵInjectorDeclaration<FlowRoutingModule>;
|
12
13
|
}
|
@@ -11,6 +11,7 @@ export declare class ContextGuard implements CanActivate, CanActivateChild {
|
|
11
11
|
checkActivation(route: ActivatedRouteSnapshot): Observable<boolean>;
|
12
12
|
canActivate(route: ActivatedRouteSnapshot): Observable<boolean> | Promise<boolean> | boolean;
|
13
13
|
canActivateChild(childRoute: ActivatedRouteSnapshot): Observable<boolean> | Promise<boolean> | boolean;
|
14
|
+
private get rpcMessageId();
|
14
15
|
private getConfigurationContextMode;
|
15
16
|
private handleError;
|
16
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<ContextGuard, never>;
|
@@ -0,0 +1,47 @@
|
|
1
|
+
import { Location } from '@angular/common';
|
2
|
+
import { OnDestroy } from '@angular/core';
|
3
|
+
import { QuoteApiService } from '@veloce/api';
|
4
|
+
import { IntegrationState } from '@veloce/sdk/cms';
|
5
|
+
import { ConfigurationRuntimeService, ConfigurationService, ContextService, QuoteDraftService, UIDefinition } from '@veloce/sdk/core';
|
6
|
+
import { MessageService } from 'primeng/api';
|
7
|
+
import { BehaviorSubject } from 'rxjs';
|
8
|
+
import * as i0 from "@angular/core";
|
9
|
+
interface State {
|
10
|
+
loading: boolean;
|
11
|
+
failure: boolean;
|
12
|
+
}
|
13
|
+
export declare class RemoteComponent implements OnDestroy {
|
14
|
+
private contextService;
|
15
|
+
private quoteDraftService;
|
16
|
+
private quoteApiService;
|
17
|
+
private runtimeService;
|
18
|
+
private configurationService;
|
19
|
+
private messageService;
|
20
|
+
private integrationState;
|
21
|
+
private location;
|
22
|
+
uiDefinition?: UIDefinition;
|
23
|
+
state$: BehaviorSubject<State>;
|
24
|
+
private readonly DYNAMIC_OPTION_PRODUCTS_KEY;
|
25
|
+
private rpcMessage;
|
26
|
+
private destroyed$;
|
27
|
+
constructor(contextService: ContextService, quoteDraftService: QuoteDraftService, quoteApiService: QuoteApiService, runtimeService: ConfigurationRuntimeService, configurationService: ConfigurationService, messageService: MessageService, integrationState: IntegrationState, location: Location);
|
28
|
+
ngOnDestroy(): void;
|
29
|
+
private initConfiguration;
|
30
|
+
private throwIfNoUIDefinition;
|
31
|
+
private initSubscriptions;
|
32
|
+
private createLineItem;
|
33
|
+
private createRootLineItem;
|
34
|
+
private toParentChildMap;
|
35
|
+
private saveRpcMessage;
|
36
|
+
private updateHasChildrenFlag;
|
37
|
+
private flattenChildLineItems;
|
38
|
+
private updateContentData;
|
39
|
+
private computeNetPrice;
|
40
|
+
private getChargeNameSet;
|
41
|
+
private sumNetPrice;
|
42
|
+
private mapAttributesTo;
|
43
|
+
private getOptionConfigurations;
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RemoteComponent, never>;
|
45
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RemoteComponent, "vl-flow-remote", never, {}, {}, never, never>;
|
46
|
+
}
|
47
|
+
export {};
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./remote.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 RemoteModule {
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RemoteModule, never>;
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<RemoteModule, [typeof i1.RemoteComponent], [typeof i2.CommonModule, typeof i3.PreviewModule, typeof i4.LoaderModule], [typeof i1.RemoteComponent]>;
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<RemoteModule>;
|
10
|
+
}
|
@@ -1 +1,8 @@
|
|
1
|
+
import { ConfigurationContextMode, ContextProperties, FlowProperties } from '@veloce/core';
|
1
2
|
export declare const getFlowObjectIdPropertyName: (id: string) => string;
|
3
|
+
interface DefaultPropertiesFnParams {
|
4
|
+
mode?: ConfigurationContextMode;
|
5
|
+
flowParams?: FlowProperties;
|
6
|
+
}
|
7
|
+
export declare const getDefaultProperties: (params: DefaultPropertiesFnParams) => ContextProperties;
|
8
|
+
export {};
|