@veloceapps/sdk 11.0.0-3 → 11.0.0-30

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 (166) hide show
  1. package/cms/cms.actions.d.ts +92 -29
  2. package/cms/components/element-renderer/element-renderer.component.d.ts +3 -10
  3. package/cms/services/element-context.service.d.ts +0 -1
  4. package/cms/types/common.types.d.ts +2 -0
  5. package/cms/types/index.d.ts +0 -1
  6. package/cms/utils/path.utils.d.ts +1 -2
  7. package/cms/vendor-map.d.ts +13 -39
  8. package/core/index.d.ts +0 -1
  9. package/core/modules/configuration/index.d.ts +1 -4
  10. package/core/modules/configuration/services/configuration-runtime.service.d.ts +8 -19
  11. package/core/modules/configuration/services/configuration-state.service.d.ts +8 -8
  12. package/core/modules/configuration/services/configuration.service.d.ts +23 -47
  13. package/core/modules/configuration/types/configuration-runtime.types.d.ts +0 -3
  14. package/core/modules/flow-configuration/index.d.ts +0 -3
  15. package/core/modules/flow-configuration/services/flow-configuration.service.d.ts +11 -40
  16. package/core/services/catalog-products.service.d.ts +11 -0
  17. package/core/services/flow-info.service.d.ts +27 -12
  18. package/core/services/flow-state-configuration.service.d.ts +2 -8
  19. package/core/services/flow-state.service.d.ts +13 -22
  20. package/core/services/index.d.ts +2 -3
  21. package/core/services/integration.state.d.ts +1 -1
  22. package/core/services/product-images.service.d.ts +3 -3
  23. package/core/services/runtime-settings.service.d.ts +1 -1
  24. package/core/services/sales-transaction.service.d.ts +29 -0
  25. package/core/types/flow-customization.types.d.ts +2 -2
  26. package/core/types/flow-state.types.d.ts +2 -2
  27. package/core/types/index.d.ts +0 -1
  28. package/core/utils/index.d.ts +2 -2
  29. package/core/utils/transaction-item.utils.d.ts +7 -0
  30. package/core/utils/transaction-item.worker.d.ts +8 -0
  31. package/esm2020/cms/cms.actions.mjs +93 -71
  32. package/esm2020/cms/cms.default.mjs +2 -3
  33. package/esm2020/cms/components/element-renderer/element-renderer.component.mjs +7 -64
  34. package/esm2020/cms/components/preview/preview.component.mjs +3 -3
  35. package/esm2020/cms/services/element-context.service.mjs +1 -1
  36. package/esm2020/cms/types/common.types.mjs +1 -1
  37. package/esm2020/cms/types/index.mjs +1 -2
  38. package/esm2020/cms/utils/element.utils.mjs +3 -3
  39. package/esm2020/cms/utils/path.utils.mjs +1 -10
  40. package/esm2020/cms/vendor-map.mjs +13 -17
  41. package/esm2020/core/core.module.mjs +9 -7
  42. package/esm2020/core/index.mjs +1 -2
  43. package/esm2020/core/modules/configuration/configuration.module.mjs +3 -4
  44. package/esm2020/core/modules/configuration/index.mjs +2 -5
  45. package/esm2020/core/modules/configuration/services/configuration-runtime.service.mjs +16 -99
  46. package/esm2020/core/modules/configuration/services/configuration-state.service.mjs +60 -76
  47. package/esm2020/core/modules/configuration/services/configuration.service.mjs +97 -223
  48. package/esm2020/core/modules/configuration/types/configuration-runtime.types.mjs +1 -1
  49. package/esm2020/core/modules/flow-configuration/flow-configuration.module.mjs +3 -4
  50. package/esm2020/core/modules/flow-configuration/index.mjs +1 -4
  51. package/esm2020/core/modules/flow-configuration/services/flow-configuration.service.mjs +34 -127
  52. package/esm2020/core/services/catalog-products.service.mjs +25 -0
  53. package/esm2020/core/services/flow-info.service.mjs +92 -31
  54. package/esm2020/core/services/flow-state-configuration.service.mjs +10 -25
  55. package/esm2020/core/services/flow-state.service.mjs +60 -172
  56. package/esm2020/core/services/index.mjs +3 -4
  57. package/esm2020/core/services/integration.state.mjs +2 -2
  58. package/esm2020/core/services/product-images.service.mjs +8 -8
  59. package/esm2020/core/services/runtime-settings.service.mjs +3 -3
  60. package/esm2020/core/services/sales-transaction.service.mjs +65 -0
  61. package/esm2020/core/types/flow-customization.types.mjs +1 -1
  62. package/esm2020/core/types/flow-state.types.mjs +1 -1
  63. package/esm2020/core/types/index.mjs +1 -2
  64. package/esm2020/core/utils/index.mjs +3 -3
  65. package/esm2020/core/utils/transaction-item.utils.mjs +60 -0
  66. package/esm2020/core/utils/transaction-item.worker.mjs +16 -0
  67. package/esm2020/src/components/flow-header/flow-header.component.mjs +8 -12
  68. package/esm2020/src/components/guided-selling/guided-selling.component.mjs +8 -12
  69. package/esm2020/src/flow-routing.module.mjs +12 -41
  70. package/esm2020/src/flow.component.mjs +5 -5
  71. package/esm2020/src/guards/flow.guard.mjs +13 -14
  72. package/esm2020/src/guards/product-unload.guard.mjs +7 -9
  73. package/esm2020/src/index.mjs +1 -3
  74. package/esm2020/src/pages/assets/assets.component.mjs +8 -9
  75. package/esm2020/src/pages/catalog/catalog.component.mjs +8 -9
  76. package/esm2020/src/pages/debug/debug.component.mjs +14 -23
  77. package/esm2020/src/pages/product/product.component.mjs +12 -82
  78. package/esm2020/src/pages/product/product.module.mjs +5 -5
  79. package/esm2020/src/pages/record-not-found/record-not-found.component.mjs +5 -6
  80. package/esm2020/src/pages/shopping-cart/shopping-cart.component.mjs +8 -9
  81. package/esm2020/src/resolvers/flow.resolver.mjs +10 -18
  82. package/esm2020/src/resolvers/pcm-model.resolver.mjs +12 -0
  83. package/esm2020/src/resolvers/sales-transaction.resolver.mjs +83 -0
  84. package/esm2020/src/resolvers/ui-definition.resolver.mjs +42 -0
  85. package/esm2020/src/services/flow-dialog.service.mjs +8 -8
  86. package/esm2020/src/services/flow-router.service.mjs +16 -33
  87. package/esm2020/src/services/flow.service.mjs +13 -54
  88. package/esm2020/src/types/index.mjs +2 -3
  89. package/esm2020/src/types/route.types.mjs +1 -1
  90. package/fesm2015/veloceapps-sdk-cms.mjs +119 -270
  91. package/fesm2015/veloceapps-sdk-cms.mjs.map +1 -1
  92. package/fesm2015/veloceapps-sdk-core.mjs +737 -1655
  93. package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
  94. package/fesm2015/veloceapps-sdk.mjs +191 -778
  95. package/fesm2015/veloceapps-sdk.mjs.map +1 -1
  96. package/fesm2020/veloceapps-sdk-cms.mjs +115 -262
  97. package/fesm2020/veloceapps-sdk-cms.mjs.map +1 -1
  98. package/fesm2020/veloceapps-sdk-core.mjs +792 -1744
  99. package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
  100. package/fesm2020/veloceapps-sdk.mjs +191 -772
  101. package/fesm2020/veloceapps-sdk.mjs.map +1 -1
  102. package/package.json +1 -1
  103. package/src/components/flow-header/flow-header.component.d.ts +3 -3
  104. package/src/components/guided-selling/guided-selling.component.d.ts +3 -3
  105. package/src/flow-routing.module.d.ts +1 -2
  106. package/src/flow.component.d.ts +2 -2
  107. package/src/guards/product-unload.guard.d.ts +5 -6
  108. package/src/index.d.ts +0 -2
  109. package/src/pages/assets/assets.component.d.ts +3 -3
  110. package/src/pages/catalog/catalog.component.d.ts +3 -3
  111. package/src/pages/debug/debug.component.d.ts +2 -5
  112. package/src/pages/product/product.component.d.ts +5 -14
  113. package/src/pages/product/product.module.d.ts +1 -1
  114. package/src/pages/record-not-found/record-not-found.component.d.ts +2 -3
  115. package/src/pages/shopping-cart/shopping-cart.component.d.ts +3 -3
  116. package/src/resolvers/flow.resolver.d.ts +5 -6
  117. package/src/resolvers/pcm-model.resolver.d.ts +3 -0
  118. package/src/resolvers/sales-transaction.resolver.d.ts +18 -0
  119. package/src/resolvers/ui-definition.resolver.d.ts +3 -0
  120. package/src/services/flow-dialog.service.d.ts +5 -4
  121. package/src/services/flow-router.service.d.ts +4 -6
  122. package/src/services/flow.service.d.ts +2 -7
  123. package/src/types/index.d.ts +1 -2
  124. package/src/types/route.types.d.ts +0 -5
  125. package/cms/plugins/configuration.plugin.d.ts +0 -23
  126. package/cms/types/configuration.types.d.ts +0 -21
  127. package/core/modules/configuration/helpers.d.ts +0 -6
  128. package/core/modules/configuration/services/runtime-context.service.d.ts +0 -12
  129. package/core/modules/flow-configuration/services/flow-update.service.d.ts +0 -13
  130. package/core/modules/flow-configuration/types/update.types.d.ts +0 -12
  131. package/core/services/context.service.d.ts +0 -23
  132. package/core/services/quote-draft.service.d.ts +0 -50
  133. package/core/types/runtime.types.d.ts +0 -30
  134. package/core/utils/line-item.utils.d.ts +0 -25
  135. package/core/utils/line-item.worker.d.ts +0 -9
  136. package/esm2020/cms/plugins/configuration.plugin.mjs +0 -109
  137. package/esm2020/cms/types/configuration.types.mjs +0 -2
  138. package/esm2020/core/modules/configuration/helpers.mjs +0 -73
  139. package/esm2020/core/modules/configuration/services/runtime-context.service.mjs +0 -43
  140. package/esm2020/core/modules/flow-configuration/services/flow-update.service.mjs +0 -138
  141. package/esm2020/core/modules/flow-configuration/types/update.types.mjs +0 -2
  142. package/esm2020/core/services/context.service.mjs +0 -91
  143. package/esm2020/core/services/quote-draft.service.mjs +0 -192
  144. package/esm2020/core/types/runtime.types.mjs +0 -16
  145. package/esm2020/core/utils/line-item.utils.mjs +0 -187
  146. package/esm2020/core/utils/line-item.worker.mjs +0 -19
  147. package/esm2020/src/guards/context.guard.mjs +0 -91
  148. package/esm2020/src/guards/index.mjs +0 -2
  149. package/esm2020/src/pages/remote/remote.component.mjs +0 -342
  150. package/esm2020/src/pages/remote/remote.module.mjs +0 -20
  151. package/esm2020/src/pages/remote/remote.types.mjs +0 -2
  152. package/esm2020/src/resolvers/quote.resolver.mjs +0 -82
  153. package/esm2020/src/types/context-route.types.mjs +0 -2
  154. package/esm2020/src/types/metrics.types.mjs +0 -2
  155. package/esm2020/src/utils/flow.utils.mjs +0 -25
  156. package/esm2020/src/utils/index.mjs +0 -2
  157. package/src/guards/context.guard.d.ts +0 -19
  158. package/src/guards/index.d.ts +0 -1
  159. package/src/pages/remote/remote.component.d.ts +0 -46
  160. package/src/pages/remote/remote.module.d.ts +0 -10
  161. package/src/pages/remote/remote.types.d.ts +0 -4
  162. package/src/resolvers/quote.resolver.d.ts +0 -19
  163. package/src/types/context-route.types.d.ts +0 -5
  164. package/src/types/metrics.types.d.ts +0 -5
  165. package/src/utils/flow.utils.d.ts +0 -8
  166. package/src/utils/index.d.ts +0 -1
@@ -1,46 +0,0 @@
1
- import { Location } from '@angular/common';
2
- import { OnDestroy } from '@angular/core';
3
- import { UIDefinition } from '@veloceapps/core';
4
- import { ConfigurationRuntimeService, ConfigurationService, ConfigurationStateService, ContextService, IntegrationState, QuoteDraftService } from '@veloceapps/sdk/core';
5
- import { MessageService } from 'primeng/api';
6
- import { BehaviorSubject } from 'rxjs';
7
- import * as i0 from "@angular/core";
8
- interface State {
9
- loading: boolean;
10
- failure: boolean;
11
- }
12
- export declare class RemoteComponent implements OnDestroy {
13
- private contextService;
14
- private quoteDraftService;
15
- private runtimeService;
16
- private configurationService;
17
- private configurationState;
18
- private messageService;
19
- private integrationState;
20
- private location;
21
- uiDefinition?: UIDefinition;
22
- state$: BehaviorSubject<State>;
23
- private readonly DYNAMIC_OPTION_PRODUCTS_KEY;
24
- private rpcMessage;
25
- private destroyed$;
26
- constructor(contextService: ContextService, quoteDraftService: QuoteDraftService, runtimeService: ConfigurationRuntimeService, configurationService: ConfigurationService, configurationState: ConfigurationStateService, messageService: MessageService, integrationState: IntegrationState, location: Location);
27
- ngOnDestroy(): void;
28
- private initConfiguration;
29
- private throwIfNoUIDefinition;
30
- private initSubscriptions;
31
- private createLineItem;
32
- private createRootLineItem;
33
- private toParentChildMap;
34
- private saveRpcMessage;
35
- private updateHasChildrenFlag;
36
- private flattenChildLineItems;
37
- private updateContentData;
38
- private computeNetPrice;
39
- private getChargeNameSet;
40
- private sumNetPrice;
41
- private mapAttributesTo;
42
- private getOptionConfigurations;
43
- static ɵfac: i0.ɵɵFactoryDeclaration<RemoteComponent, never>;
44
- static ɵcmp: i0.ɵɵComponentDeclaration<RemoteComponent, "vl-flow-remote", never, {}, {}, never, never, false, never>;
45
- }
46
- export {};
@@ -1,10 +0,0 @@
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 "@veloceapps/sdk/cms";
5
- import * as i4 from "@veloceapps/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,4 +0,0 @@
1
- import { LineItem } from '@veloceapps/core';
2
- export interface LineItemWithParent extends LineItem {
3
- parentLineItem?: LineItem;
4
- }
@@ -1,19 +0,0 @@
1
- import { ActivatedRouteSnapshot, Resolve, Router } from '@angular/router';
2
- import { ContextService, FlowInfoService, FlowStateService, QuoteDraftService } from '@veloceapps/sdk/core';
3
- import { Observable } from 'rxjs';
4
- import { FlowRouterService } from '../services/flow-router.service';
5
- import * as i0 from "@angular/core";
6
- export declare class QuoteResolver implements Resolve<void | boolean> {
7
- private router;
8
- private quoteDraftService;
9
- private routerService;
10
- private contextService;
11
- private flowInfo;
12
- private flowStateService;
13
- constructor(router: Router, quoteDraftService: QuoteDraftService, routerService: FlowRouterService, contextService: ContextService, flowInfo: FlowInfoService, flowStateService: FlowStateService);
14
- resolve(route: ActivatedRouteSnapshot): Observable<boolean>;
15
- private checkDynamicNavigation$;
16
- private getNavigateTo;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<QuoteResolver, never>;
18
- static ɵprov: i0.ɵɵInjectableDeclaration<QuoteResolver>;
19
- }
@@ -1,5 +0,0 @@
1
- import { ConfigurationContextMode } from '@veloceapps/core';
2
- export interface ContextRouteData {
3
- mode: ConfigurationContextMode;
4
- headerId: string;
5
- }
@@ -1,5 +0,0 @@
1
- export interface Metric {
2
- key: string;
3
- name: string;
4
- visible: boolean;
5
- }
@@ -1,8 +0,0 @@
1
- import { ConfigurationContextMode, ContextProperties, FlowProperties } from '@veloceapps/core';
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 {};
@@ -1 +0,0 @@
1
- export * from './flow.utils';