@veloceapps/sdk 3.1.3 → 3.1.4

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.
Files changed (43) hide show
  1. package/bundles/veloce-sdk-cms.umd.js +33 -2
  2. package/bundles/veloce-sdk-cms.umd.js.map +1 -1
  3. package/bundles/veloce-sdk-core.umd.js +7 -1
  4. package/bundles/veloce-sdk-core.umd.js.map +1 -1
  5. package/bundles/veloce-sdk.umd.js +174 -98
  6. package/bundles/veloce-sdk.umd.js.map +1 -1
  7. package/cms/cms.actions.d.ts +12 -0
  8. package/cms/index.d.ts +1 -0
  9. package/cms/services/integration.state.d.ts +1 -4
  10. package/cms/types/index.d.ts +1 -0
  11. package/cms/types/integration.types.d.ts +4 -0
  12. package/cms/vendor-map.d.ts +8 -0
  13. package/core/modules/configuration/services/configuration.service.d.ts +1 -0
  14. package/esm2015/cms/cms.actions.js +17 -0
  15. package/esm2015/cms/index.js +2 -1
  16. package/esm2015/cms/services/integration.state.js +1 -1
  17. package/esm2015/cms/types/index.js +2 -1
  18. package/esm2015/cms/types/integration.types.js +2 -0
  19. package/esm2015/cms/vendor-map.js +4 -3
  20. package/esm2015/core/modules/configuration/services/configuration-runtime.service.js +2 -2
  21. package/esm2015/core/modules/configuration/services/configuration.service.js +7 -1
  22. package/esm2015/src/components/header/cart-overlay/cart-overlay.component.js +4 -4
  23. package/esm2015/src/components/header/header.component.js +3 -2
  24. package/esm2015/src/flow-routing.module.js +21 -3
  25. package/esm2015/src/guards/product-unload.guard.js +30 -0
  26. package/esm2015/src/pages/product/product.component.js +26 -38
  27. package/esm2015/src/services/flow-router.service.js +13 -5
  28. package/esm2015/src/services/flow.service.js +40 -12
  29. package/esm2015/src/services/fow-dialog.service.js +9 -1
  30. package/fesm2015/veloce-sdk-cms.js +28 -3
  31. package/fesm2015/veloce-sdk-cms.js.map +1 -1
  32. package/fesm2015/veloce-sdk-core.js +7 -1
  33. package/fesm2015/veloce-sdk-core.js.map +1 -1
  34. package/fesm2015/veloce-sdk.js +144 -70
  35. package/fesm2015/veloce-sdk.js.map +1 -1
  36. package/package.json +1 -1
  37. package/src/components/header/cart-overlay/cart-overlay.component.d.ts +1 -1
  38. package/src/components/header/header.component.d.ts +1 -0
  39. package/src/guards/product-unload.guard.d.ts +13 -0
  40. package/src/pages/product/product.component.d.ts +3 -6
  41. package/src/services/flow-router.service.d.ts +3 -1
  42. package/src/services/flow.service.d.ts +5 -1
  43. package/src/services/fow-dialog.service.d.ts +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veloceapps/sdk",
3
- "version": "3.1.3",
3
+ "version": "3.1.4",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^12.2.0",
6
6
  "@angular/common": "^12.2.0",
@@ -23,7 +23,7 @@ export declare class HeaderCartOverlayComponent implements OnChanges, AfterViewI
23
23
  ngAfterViewInit(): void;
24
24
  ngOnDestroy(): void;
25
25
  getImageUrl(productId: string): Observable<string | undefined>;
26
- navigateToProductConfiguration(productId: string): void;
26
+ navigateToProductConfiguration(productId: string, lineItemId: string): void;
27
27
  controlBlurHandler(product: HeaderProduct): void;
28
28
  deleteHandler(product: HeaderProduct): void;
29
29
  deleteAllHandler(): void;
@@ -15,6 +15,7 @@ export declare class FlowHeaderComponent implements OnInit, OnDestroy {
15
15
  private flowConfiguration;
16
16
  private routerService;
17
17
  private dialogService;
18
+ readonly disabledActionButtonTooltip = "Available from the Shopping Cart";
18
19
  objectName: string;
19
20
  contextProperties: ContextProperties;
20
21
  objectDetails$: BehaviorSubject<HeaderObjectDetails>;
@@ -0,0 +1,13 @@
1
+ import { CanDeactivate } from '@angular/router';
2
+ import { ConfigurationService, ContextService } from '@veloce/sdk/core';
3
+ import { FlowDialogService } from '../services/fow-dialog.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class ProductUnloadGuard implements CanDeactivate<any> {
6
+ private contextService;
7
+ private configurationService;
8
+ private flowDialogService;
9
+ constructor(contextService: ContextService, configurationService: ConfigurationService, flowDialogService: FlowDialogService);
10
+ canDeactivate(): import("rxjs").Observable<boolean>;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProductUnloadGuard, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<ProductUnloadGuard>;
13
+ }
@@ -1,6 +1,5 @@
1
1
  import { OnDestroy, OnInit } from '@angular/core';
2
- import { ActivatedRoute } from '@angular/router';
3
- import { ConfigurationRuntimeService, ConfigurationService, ContextService, FlowConfigurationService, QuoteDraftService, UIDefinition } from '@veloce/sdk/core';
2
+ import { ConfigurationRuntimeService, ConfigurationService, ContextService, QuoteDraftService, UIDefinition } from '@veloce/sdk/core';
4
3
  import { MessageService } from 'primeng/api';
5
4
  import { BehaviorSubject } from 'rxjs';
6
5
  import { FlowCustomization } from '../../types/flow-customization.types';
@@ -13,21 +12,19 @@ export declare class ProductComponent implements OnInit, OnDestroy {
13
12
  private contextService;
14
13
  private runtimeService;
15
14
  private conigurationService;
16
- private flowConfigurationService;
17
15
  private quoteDraftService;
18
- private route;
19
16
  private messageService;
20
17
  private customizationService?;
21
18
  private destroy$;
22
19
  uiDefinition?: UIDefinition;
23
20
  state$: BehaviorSubject<State>;
24
- constructor(contextService: ContextService, runtimeService: ConfigurationRuntimeService, conigurationService: ConfigurationService, flowConfigurationService: FlowConfigurationService, quoteDraftService: QuoteDraftService, route: ActivatedRoute, messageService: MessageService, customizationService?: FlowCustomization | undefined);
21
+ constructor(contextService: ContextService, runtimeService: ConfigurationRuntimeService, conigurationService: ConfigurationService, quoteDraftService: QuoteDraftService, messageService: MessageService, customizationService?: FlowCustomization | undefined);
25
22
  ngOnInit(): void;
26
23
  ngOnDestroy(): void;
27
24
  private customize;
28
25
  private init;
29
26
  private getLineItemId;
30
- static ɵfac: i0.ɵɵFactoryDeclaration<ProductComponent, [null, null, null, null, null, null, null, { optional: true; }]>;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProductComponent, [null, null, null, null, null, { optional: true; }]>;
31
28
  static ɵcmp: i0.ɵɵComponentDeclaration<ProductComponent, "vl-flow-product", never, {}, {}, never, never>;
32
29
  }
33
30
  export {};
@@ -9,6 +9,7 @@ export declare class FlowRouterService {
9
9
  private routeChange$;
10
10
  private lastChildParams$;
11
11
  private lastChildRoute$;
12
+ private urlHistory;
12
13
  loading$: Observable<boolean>;
13
14
  constructor(router: Router, route: ActivatedRoute, contextService: ContextService);
14
15
  getFlowRootRoute(route: ActivatedRouteSnapshot): ActivatedRouteSnapshot | undefined;
@@ -25,7 +26,8 @@ export declare class FlowRouterService {
25
26
  isConfigurationRoute$(): Observable<boolean>;
26
27
  isCartRoute$(): Observable<boolean>;
27
28
  isCatalogRoute$(): Observable<boolean>;
28
- navigateToProductConfiguration(productId: string): void;
29
+ navigateBack(): void;
30
+ navigateToProductConfiguration(productId: string, lineItemId?: string): void;
29
31
  navigateToShoppingCart(): void;
30
32
  navigateToCatalog(): void;
31
33
  static ɵfac: i0.ɵɵFactoryDeclaration<FlowRouterService, never>;
@@ -1,11 +1,15 @@
1
1
  import { IntegrationState } from '@veloce/sdk/cms';
2
+ import { ConfigurationService, FlowConfigurationService, QuoteDraftService } from '@veloce/sdk/core';
2
3
  import { FlowRouterService } from './flow-router.service';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class FlowService {
5
6
  private integrationState;
6
7
  private flowRouterService;
8
+ private quoteDraftService;
9
+ private configurationService;
10
+ private flowConfigurationService;
7
11
  private cleanup$;
8
- constructor(integrationState: IntegrationState, flowRouterService: FlowRouterService);
12
+ constructor(integrationState: IntegrationState, flowRouterService: FlowRouterService, quoteDraftService: QuoteDraftService, configurationService: ConfigurationService, flowConfigurationService: FlowConfigurationService);
9
13
  initSubscriptions(): void;
10
14
  cleanup(): void;
11
15
  static ɵfac: i0.ɵɵFactoryDeclaration<FlowService, never>;
@@ -12,6 +12,7 @@ export declare class FlowDialogService {
12
12
  showReadonlyModeDialog(): Observable<boolean>;
13
13
  showQuoteReadonlyModeDialog(): Observable<boolean>;
14
14
  showAccountNoChangesDialog(): Observable<boolean>;
15
+ showUnsavedChangesDialog(): Observable<boolean>;
15
16
  static ɵfac: i0.ɵɵFactoryDeclaration<FlowDialogService, never>;
16
17
  static ɵprov: i0.ɵɵInjectableDeclaration<FlowDialogService>;
17
18
  }