@veloceapps/sdk 7.0.2-9 → 8.0.0-0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (201) hide show
  1. package/cms/cms.actions.d.ts +102 -11
  2. package/cms/cms.default.d.ts +2 -2
  3. package/cms/components/element-children/element-children.component.d.ts +3 -1
  4. package/cms/components/element-tools-panel/element-tools-panel.component.d.ts +14 -0
  5. package/cms/components/preview/preview.component.d.ts +10 -12
  6. package/cms/components/preview/preview.module.d.ts +2 -1
  7. package/cms/components/preview/preview.types.d.ts +9 -0
  8. package/cms/definitions/index.d.ts +1 -0
  9. package/cms/definitions/ui-builder.definitions.d.ts +6 -0
  10. package/cms/index.d.ts +2 -0
  11. package/cms/injection-tokens.d.ts +2 -4
  12. package/cms/modules/migrations/services/migrations.service.d.ts +1 -1
  13. package/cms/modules/migrations/types/migrations.types.d.ts +1 -1
  14. package/cms/modules/runtime/index.d.ts +1 -0
  15. package/cms/modules/runtime/services/compilation.service.d.ts +3 -2
  16. package/cms/modules/runtime/services/runtime-editor.service.d.ts +6 -4
  17. package/cms/modules/runtime/services/runtime.service.d.ts +6 -2
  18. package/cms/modules/runtime/types/runtime.actions.d.ts +5 -2
  19. package/cms/plugins/element-hover.plugin.d.ts +33 -0
  20. package/cms/plugins/page.plugin.d.ts +15 -0
  21. package/cms/plugins/script.plugin.d.ts +0 -3
  22. package/cms/services/resources.service.d.ts +9 -0
  23. package/cms/types/common.types.d.ts +11 -1
  24. package/cms/types/index.d.ts +2 -0
  25. package/cms/types/integration.types.d.ts +1 -0
  26. package/cms/types/layouts.types.d.ts +30 -2
  27. package/cms/types/pages.types.d.ts +1 -0
  28. package/cms/utils/element.utils.d.ts +1 -1
  29. package/cms/utils/elements-resolver.d.ts +6 -2
  30. package/cms/utils/encoding.utils.d.ts +2 -0
  31. package/cms/utils/index.d.ts +1 -0
  32. package/cms/utils/script.utils.d.ts +2 -0
  33. package/cms/utils/ui-builder-layout.utils.d.ts +4 -0
  34. package/cms/vendor-map.d.ts +16 -19
  35. package/core/core.module.d.ts +2 -0
  36. package/core/directives/directives.module.d.ts +7 -0
  37. package/core/directives/index.d.ts +2 -0
  38. package/core/directives/primeng-calendar.directive.d.ts +14 -0
  39. package/core/index.d.ts +2 -0
  40. package/core/modules/configuration/helpers.d.ts +4 -2
  41. package/core/modules/configuration/index.d.ts +2 -0
  42. package/core/modules/configuration/services/configuration-runtime.service.d.ts +5 -4
  43. package/core/modules/configuration/services/configuration.service.d.ts +13 -7
  44. package/core/modules/configuration/services/configuration.state.d.ts +30 -0
  45. package/core/modules/configuration/services/runtime-context.service.d.ts +1 -1
  46. package/core/modules/configuration/types/configuration-runtime.types.d.ts +1 -0
  47. package/core/modules/configuration/types/configuration.types.d.ts +10 -0
  48. package/core/modules/flow-configuration/services/flow-configuration.service.d.ts +2 -1
  49. package/core/pipes/date.pipe.d.ts +12 -0
  50. package/core/pipes/index.d.ts +4 -0
  51. package/core/pipes/number.pipe.d.ts +10 -0
  52. package/core/pipes/pipes.module.d.ts +9 -0
  53. package/core/pipes/price.pipe.d.ts +10 -0
  54. package/core/services/index.d.ts +1 -0
  55. package/core/services/runtime-settings.service.d.ts +21 -0
  56. package/core/types/formatting-settings.types.d.ts +11 -0
  57. package/core/types/index.d.ts +1 -0
  58. package/core/types/runtime.types.d.ts +2 -3
  59. package/core/types/ui-definition.types.d.ts +0 -40
  60. package/core/utils/line-item.utils.d.ts +10 -15
  61. package/core/utils/line-item.worker.d.ts +3 -6
  62. package/core/utils/ui-definition.utils.d.ts +1 -1
  63. package/esm2020/cms/cms.actions.mjs +140 -40
  64. package/esm2020/cms/cms.default.mjs +1 -1
  65. package/esm2020/cms/cms.elements.mjs +16 -4
  66. package/esm2020/cms/cms.layouts.mjs +73 -13
  67. package/esm2020/cms/components/element-children/element-children.component.mjs +11 -6
  68. package/esm2020/cms/components/element-drop-handle/element-drop-handle.component.mjs +2 -2
  69. package/esm2020/cms/components/element-tools-panel/element-tools-panel.component.mjs +35 -0
  70. package/esm2020/cms/components/preview/preview.component.mjs +30 -48
  71. package/esm2020/cms/components/preview/preview.module.mjs +22 -4
  72. package/esm2020/cms/components/preview/preview.types.mjs +1 -1
  73. package/esm2020/cms/definitions/index.mjs +2 -0
  74. package/esm2020/cms/definitions/ui-builder.definitions.mjs +18 -0
  75. package/esm2020/cms/index.mjs +3 -1
  76. package/esm2020/cms/injection-tokens.mjs +1 -2
  77. package/esm2020/cms/modules/migrations/migrations.mjs +10 -3
  78. package/esm2020/cms/modules/migrations/services/migrations.service.mjs +1 -1
  79. package/esm2020/cms/modules/migrations/types/migrations.types.mjs +1 -1
  80. package/esm2020/cms/modules/runtime/index.mjs +2 -1
  81. package/esm2020/cms/modules/runtime/services/compilation.service.mjs +5 -3
  82. package/esm2020/cms/modules/runtime/services/runtime-editor.service.mjs +5 -3
  83. package/esm2020/cms/modules/runtime/services/runtime.service.mjs +41 -6
  84. package/esm2020/cms/modules/runtime/types/runtime.actions.mjs +1 -1
  85. package/esm2020/cms/plugins/element-hover.plugin.mjs +121 -0
  86. package/esm2020/cms/plugins/page.plugin.mjs +37 -0
  87. package/esm2020/cms/plugins/region.plugin.mjs +3 -2
  88. package/esm2020/cms/plugins/script.plugin.mjs +6 -40
  89. package/esm2020/cms/services/integration.state.mjs +3 -6
  90. package/esm2020/cms/services/io-provider.service.mjs +7 -5
  91. package/esm2020/cms/services/resources.service.mjs +19 -1
  92. package/esm2020/cms/types/common.types.mjs +1 -1
  93. package/esm2020/cms/types/index.mjs +3 -1
  94. package/esm2020/cms/types/integration.types.mjs +1 -1
  95. package/esm2020/cms/types/layouts.types.mjs +70 -1
  96. package/esm2020/cms/types/pages.types.mjs +2 -0
  97. package/esm2020/cms/utils/element.utils.mjs +9 -9
  98. package/esm2020/cms/utils/elements-resolver.mjs +22 -8
  99. package/esm2020/cms/utils/encoding.utils.mjs +28 -0
  100. package/esm2020/cms/utils/index.mjs +2 -1
  101. package/esm2020/cms/utils/script.utils.mjs +42 -0
  102. package/esm2020/cms/utils/ui-builder-layout.utils.mjs +46 -0
  103. package/esm2020/cms/vendor-map.mjs +6 -3
  104. package/esm2020/core/core.module.mjs +33 -4
  105. package/esm2020/core/directives/directives.module.mjs +16 -0
  106. package/esm2020/core/directives/index.mjs +3 -0
  107. package/esm2020/core/directives/primeng-calendar.directive.mjs +41 -0
  108. package/esm2020/core/index.mjs +3 -1
  109. package/esm2020/core/modules/configuration/configuration.module.mjs +5 -2
  110. package/esm2020/core/modules/configuration/helpers.mjs +37 -7
  111. package/esm2020/core/modules/configuration/index.mjs +3 -1
  112. package/esm2020/core/modules/configuration/services/configuration-runtime.service.mjs +28 -19
  113. package/esm2020/core/modules/configuration/services/configuration.service.mjs +68 -28
  114. package/esm2020/core/modules/configuration/services/configuration.state.mjs +142 -0
  115. package/esm2020/core/modules/configuration/services/runtime-context.service.mjs +10 -17
  116. package/esm2020/core/modules/configuration/types/configuration-runtime.types.mjs +1 -1
  117. package/esm2020/core/modules/configuration/types/configuration.types.mjs +2 -0
  118. package/esm2020/core/modules/flow-configuration/services/flow-configuration.service.mjs +4 -4
  119. package/esm2020/core/pipes/date.pipe.mjs +38 -0
  120. package/esm2020/core/pipes/index.mjs +5 -0
  121. package/esm2020/core/pipes/number.pipe.mjs +27 -0
  122. package/esm2020/core/pipes/pipes.module.mjs +18 -0
  123. package/esm2020/core/pipes/price.pipe.mjs +30 -0
  124. package/esm2020/core/services/index.mjs +2 -1
  125. package/esm2020/core/services/quote-draft.service.mjs +1 -1
  126. package/esm2020/core/services/runtime-settings.service.mjs +95 -0
  127. package/esm2020/core/types/formatting-settings.types.mjs +3 -0
  128. package/esm2020/core/types/index.mjs +2 -1
  129. package/esm2020/core/types/runtime.types.mjs +1 -1
  130. package/esm2020/core/types/ui-definition.types.mjs +1 -1
  131. package/esm2020/core/utils/line-item.utils.mjs +24 -11
  132. package/esm2020/core/utils/line-item.worker.mjs +5 -5
  133. package/esm2020/core/utils/ui-definition.utils.mjs +1 -1
  134. package/esm2020/runtime/components/ui-runtime-preview/runtime-preview.component.mjs +2 -2
  135. package/esm2020/runtime/services/runtime-context.service.mjs +8 -5
  136. package/esm2020/runtime/services/runtime.service.mjs +1 -1
  137. package/esm2020/runtime/types/runtime.types.mjs +1 -1
  138. package/esm2020/src/components/dialog/dialog.component.mjs +3 -3
  139. package/esm2020/src/components/doc-gen/doc-gen.component.mjs +31 -8
  140. package/esm2020/src/components/guided-selling/guided-selling.component.mjs +117 -0
  141. package/esm2020/src/components/guided-selling/guided-selling.module.mjs +19 -0
  142. package/esm2020/src/components/header/cart-overlay/cart-preview.component.mjs +5 -6
  143. package/esm2020/src/components/header/cart-overlay/cart-preview.module.mjs +7 -4
  144. package/esm2020/src/components/header/header.component.mjs +46 -36
  145. package/esm2020/src/components/header/header.module.mjs +7 -3
  146. package/esm2020/src/components/header/metrics/metrics.component.mjs +35 -7
  147. package/esm2020/src/components/header/metrics/metrics.module.mjs +7 -3
  148. package/esm2020/src/flow-routing.module.mjs +1 -1
  149. package/esm2020/src/flow.component.mjs +4 -3
  150. package/esm2020/src/flow.module.mjs +11 -6
  151. package/esm2020/src/guards/context.guard.mjs +11 -8
  152. package/esm2020/src/pages/assets/assets.component.mjs +3 -3
  153. package/esm2020/src/pages/catalog/catalog.component.mjs +4 -4
  154. package/esm2020/src/pages/legacy-product/legacy-product.component.mjs +4 -4
  155. package/esm2020/src/pages/product/product.component.mjs +52 -61
  156. package/esm2020/src/pages/remote/remote.component.mjs +19 -19
  157. package/esm2020/src/pages/shopping-cart/shopping-cart.component.mjs +4 -4
  158. package/esm2020/src/services/flow-dialog.service.mjs +15 -15
  159. package/esm2020/src/services/flow-router.service.mjs +10 -5
  160. package/esm2020/src/services/flow.service.mjs +2 -2
  161. package/esm2020/src/services/guided-selling.service.mjs +33 -0
  162. package/esm2020/src/types/flow-customization.types.mjs +1 -1
  163. package/fesm2015/veloceapps-sdk-cms.mjs +947 -440
  164. package/fesm2015/veloceapps-sdk-cms.mjs.map +1 -1
  165. package/fesm2015/veloceapps-sdk-core.mjs +578 -89
  166. package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
  167. package/fesm2015/veloceapps-sdk-runtime.mjs +7 -4
  168. package/fesm2015/veloceapps-sdk-runtime.mjs.map +1 -1
  169. package/fesm2015/veloceapps-sdk.mjs +408 -186
  170. package/fesm2015/veloceapps-sdk.mjs.map +1 -1
  171. package/fesm2020/veloceapps-sdk-cms.mjs +1027 -442
  172. package/fesm2020/veloceapps-sdk-cms.mjs.map +1 -1
  173. package/fesm2020/veloceapps-sdk-core.mjs +563 -85
  174. package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
  175. package/fesm2020/veloceapps-sdk-runtime.mjs +7 -4
  176. package/fesm2020/veloceapps-sdk-runtime.mjs.map +1 -1
  177. package/fesm2020/veloceapps-sdk.mjs +397 -182
  178. package/fesm2020/veloceapps-sdk.mjs.map +1 -1
  179. package/package.json +4 -4
  180. package/runtime/components/ui-runtime-preview/runtime-preview.component.d.ts +3 -3
  181. package/runtime/services/runtime.service.d.ts +2 -2
  182. package/runtime/types/runtime.types.d.ts +2 -2
  183. package/src/components/doc-gen/doc-gen.component.d.ts +7 -3
  184. package/src/components/guided-selling/guided-selling.component.d.ts +29 -0
  185. package/src/components/guided-selling/guided-selling.module.d.ts +9 -0
  186. package/src/components/header/cart-overlay/cart-preview.component.d.ts +1 -1
  187. package/src/components/header/cart-overlay/cart-preview.module.d.ts +1 -1
  188. package/src/components/header/header.component.d.ts +3 -4
  189. package/src/components/header/header.module.d.ts +2 -1
  190. package/src/components/header/metrics/metrics.component.d.ts +10 -2
  191. package/src/components/header/metrics/metrics.module.d.ts +2 -1
  192. package/src/flow.module.d.ts +6 -5
  193. package/src/guards/context.guard.d.ts +3 -2
  194. package/src/pages/assets/assets.component.d.ts +2 -1
  195. package/src/pages/catalog/catalog.component.d.ts +2 -1
  196. package/src/pages/product/product.component.d.ts +13 -21
  197. package/src/pages/remote/remote.component.d.ts +4 -4
  198. package/src/pages/shopping-cart/shopping-cart.component.d.ts +2 -1
  199. package/src/services/flow-router.service.d.ts +3 -1
  200. package/src/services/guided-selling.service.d.ts +13 -0
  201. package/src/types/flow-customization.types.d.ts +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veloceapps/sdk",
3
- "version": "7.0.2-9",
3
+ "version": "8.0.0-0",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/animations": "~15.2.0",
@@ -9,9 +9,9 @@
9
9
  "@angular/forms": "~15.2.0",
10
10
  "@angular/platform-browser-dynamic": "~15.2.0",
11
11
  "@angular/platform-browser": "~15.2.0",
12
- "@veloceapps/core": "^7.0.2-0",
13
- "@veloceapps/api": "^7.0.2-0",
14
- "@veloceapps/components": "^7.0.2-0",
12
+ "@veloceapps/core": "^8.0.0-0",
13
+ "@veloceapps/api": "^8.0.0-0",
14
+ "@veloceapps/components": "^8.0.0-0",
15
15
  "ionicons": "^4.6.3",
16
16
  "rxjs": "~7.8.0",
17
17
  "zone.js": "~0.12.0"
@@ -1,6 +1,6 @@
1
1
  import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { ConfigurationApiService } from '@veloceapps/api';
3
- import { LineItem, UIDefinition } from '@veloceapps/core';
3
+ import { LegacyUIDefinition, LineItem } from '@veloceapps/core';
4
4
  import { ContextService } from '@veloceapps/sdk/core';
5
5
  import { ProductModelCacheService } from '../../services/product-model-cache.service';
6
6
  import { RuntimeService } from '../../services/runtime.service';
@@ -11,7 +11,7 @@ export declare class RuntimePreviewComponent implements OnInit, OnDestroy {
11
11
  private configurationApiService;
12
12
  private contextService;
13
13
  modelId?: string;
14
- set uiDefinition(value: UIDefinition);
14
+ set uiDefinition(value: LegacyUIDefinition);
15
15
  private _uiDefinition?;
16
16
  private initialisedUiDefinition?;
17
17
  private productModelContainer?;
@@ -19,7 +19,7 @@ export declare class RuntimePreviewComponent implements OnInit, OnDestroy {
19
19
  constructor(runtimeService: RuntimeService, modelCacheService: ProductModelCacheService, configurationApiService: ConfigurationApiService, contextService: ContextService);
20
20
  ngOnInit(): void;
21
21
  ngOnDestroy(): void;
22
- initDefinition(uiDefinition: UIDefinition): void;
22
+ initDefinition(uiDefinition: LegacyUIDefinition): void;
23
23
  onSolutionUpdated(lineItem: LineItem): void;
24
24
  private launchRuntime;
25
25
  static ɵfac: i0.ɵɵFactoryDeclaration<RuntimePreviewComponent, never>;
@@ -1,5 +1,5 @@
1
1
  import { HttpErrorResponse } from '@angular/common/http';
2
- import { LineItem, UIDefinition } from '@veloceapps/core';
2
+ import { LegacyUIDefinition, LineItem } from '@veloceapps/core';
3
3
  import { ContextService } from '@veloceapps/sdk/core';
4
4
  import { MessageService } from 'primeng/api';
5
5
  import { LegacyRuntimeContext } from '../types';
@@ -36,7 +36,7 @@ export declare class RuntimeService {
36
36
  setRuntimeContext(runtimeContext: LegacyRuntimeContext): void;
37
37
  getRuntimeContext(): LegacyRuntimeContext | undefined;
38
38
  solutionProcessed(lineItem: LineItem): void;
39
- refreshUI(uiDefinition: UIDefinition): void;
39
+ refreshUI(uiDefinition: LegacyUIDefinition): void;
40
40
  private updateRuntimeContext;
41
41
  private setRuntimeStep;
42
42
  static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeService, never>;
@@ -1,4 +1,4 @@
1
- import { LineItem, UIDefinition } from '@veloceapps/core';
1
+ import { LegacyUIDefinition, LineItem } from '@veloceapps/core';
2
2
  import { RuntimeContext } from '@veloceapps/sdk/core';
3
3
  import { Dictionary } from 'lodash';
4
4
  export interface SolutionReadyAware {
@@ -15,5 +15,5 @@ export interface UpdateData {
15
15
  options?: Dictionary<any>;
16
16
  }
17
17
  export interface LegacyRuntimeContext extends Omit<RuntimeContext, 'uiDefinition'> {
18
- uiDefinition?: UIDefinition;
18
+ uiDefinition?: LegacyUIDefinition;
19
19
  }
@@ -1,9 +1,11 @@
1
1
  import { OnDestroy } from '@angular/core';
2
2
  import { UITemplatesApiService } from '@veloceapps/api';
3
3
  import { ToastService } from '@veloceapps/components';
4
- import { ContextService, QuoteDraftService, UIDefinition } from '@veloceapps/sdk/core';
4
+ import { UIDefinition } from '@veloceapps/core';
5
+ import { ContextService, QuoteDraftService } from '@veloceapps/sdk/core';
5
6
  import { BehaviorSubject, Observable } from 'rxjs';
6
7
  import { FlowDocGenService } from '../../services/doc-gen.service';
8
+ import { FlowCustomization } from '../../types';
7
9
  import * as i0 from "@angular/core";
8
10
  export declare class DocGenComponent implements OnDestroy {
9
11
  private quoteDraftService;
@@ -11,16 +13,18 @@ export declare class DocGenComponent implements OnDestroy {
11
13
  private templatesApi;
12
14
  private docGenService;
13
15
  private toastService;
16
+ private customizationService?;
14
17
  uiDefinition$: BehaviorSubject<UIDefinition | null>;
15
18
  isVisible$: Observable<boolean>;
16
19
  private templateApiName;
17
20
  private destroy$;
18
- constructor(quoteDraftService: QuoteDraftService, contextService: ContextService, templatesApi: UITemplatesApiService, docGenService: FlowDocGenService, toastService: ToastService);
21
+ constructor(quoteDraftService: QuoteDraftService, contextService: ContextService, templatesApi: UITemplatesApiService, docGenService: FlowDocGenService, toastService: ToastService, customizationService?: FlowCustomization | undefined);
19
22
  ngOnDestroy(): void;
20
23
  private initialize;
21
24
  private getTemplateRootComponent$;
25
+ private getLocalTemplateComponentMeta$;
22
26
  private getDocGenComponentMeta$;
23
27
  private generateUIDefinition$;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<DocGenComponent, never>;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<DocGenComponent, [null, null, null, null, null, { optional: true; }]>;
25
29
  static ɵcmp: i0.ɵɵComponentDeclaration<DocGenComponent, "vl-flow-doc-gen", never, {}, {}, never, never, false, never>;
26
30
  }
@@ -0,0 +1,29 @@
1
+ import { OnDestroy } from '@angular/core';
2
+ import { UITemplatesApiService } from '@veloceapps/api';
3
+ import { ToastService } from '@veloceapps/components';
4
+ import { UIDefinition } from '@veloceapps/core';
5
+ import { ContextService, QuoteDraftService } from '@veloceapps/sdk/core';
6
+ import { BehaviorSubject } from 'rxjs';
7
+ import { FlowGuidedSellingService } from '../../services/guided-selling.service';
8
+ import { FlowCustomization } from '../../types';
9
+ import * as i0 from "@angular/core";
10
+ export declare class GuidedSellingComponent implements OnDestroy {
11
+ private quoteDraftService;
12
+ private contextService;
13
+ private templatesApi;
14
+ private guidedSellingService;
15
+ private toastService;
16
+ private customizationService?;
17
+ uiDefinition$: BehaviorSubject<UIDefinition | null>;
18
+ private templateApiName;
19
+ private destroy$;
20
+ constructor(quoteDraftService: QuoteDraftService, contextService: ContextService, templatesApi: UITemplatesApiService, guidedSellingService: FlowGuidedSellingService, toastService: ToastService, customizationService?: FlowCustomization | undefined);
21
+ ngOnDestroy(): void;
22
+ private initialize;
23
+ private getTemplateRootComponent$;
24
+ private getLocalTemplateComponentMeta$;
25
+ private getGuidedSellingComponentMeta$;
26
+ private generateUIDefinition$;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<GuidedSellingComponent, [null, null, null, null, null, { optional: true; }]>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<GuidedSellingComponent, "vl-flow-guided-selling", never, {}, {}, never, never, false, never>;
29
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./guided-selling.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@veloceapps/sdk/cms";
5
+ export declare class GuidedSellingModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<GuidedSellingModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<GuidedSellingModule, [typeof i1.GuidedSellingComponent], [typeof i2.CommonModule, typeof i3.PreviewModule], [typeof i1.GuidedSellingComponent]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<GuidedSellingModule>;
9
+ }
@@ -13,7 +13,7 @@ export declare class CartPreviewComponent implements OnChanges, AfterViewInit, O
13
13
  private quoteDraftService;
14
14
  overlayPanel: OverlayPanel;
15
15
  products: HeaderProduct[];
16
- readonly productRowHeight = 97;
16
+ readonly productRowHeight = 65;
17
17
  form: FormGroup<{}>;
18
18
  lockedProductId$: Observable<string | null>;
19
19
  isEditMode$: Observable<boolean>;
@@ -9,6 +9,6 @@ import * as i7 from "primeng/inputnumber";
9
9
  import * as i8 from "primeng/virtualscroller";
10
10
  export declare class CartPreviewModule {
11
11
  static ɵfac: i0.ɵɵFactoryDeclaration<CartPreviewModule, never>;
12
- static ɵmod: i0.ɵɵNgModuleDeclaration<CartPreviewModule, [typeof i1.CartPreviewComponent], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.ButtonModule, typeof i5.OverlayPanelModule, typeof i6.LetDirectiveModule, typeof i7.InputNumberModule, typeof i8.VirtualScrollerModule], [typeof i1.CartPreviewComponent]>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CartPreviewModule, [typeof i1.CartPreviewComponent], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.ButtonModule, typeof i5.OverlayPanelModule, typeof i6.LetDirectiveModule, typeof i7.InputNumberModule, typeof i8.VirtualScrollerModule, typeof i6.QuantityControlModule], [typeof i1.CartPreviewComponent]>;
13
13
  static ɵinj: i0.ɵɵInjectorDeclaration<CartPreviewModule>;
14
14
  }
@@ -1,5 +1,5 @@
1
1
  import { OnDestroy, OnInit } from '@angular/core';
2
- import { QuoteApiService, SalesforceApiService, ShoppingCartSettingsApiService } from '@veloceapps/api';
2
+ import { QuoteApiService, SalesforceApiService } from '@veloceapps/api';
3
3
  import { ContextProperties, LineItem, PriceList } from '@veloceapps/core';
4
4
  import { IntegrationState } from '@veloceapps/sdk/cms';
5
5
  import { ContextService, FlowConfigurationService, QuoteDraftService } from '@veloceapps/sdk/core';
@@ -19,7 +19,6 @@ export declare class FlowHeaderComponent implements OnInit, OnDestroy {
19
19
  private routerService;
20
20
  private dialogService;
21
21
  private integrationState;
22
- private shoppingCartSettingsApiService;
23
22
  objectName$: Observable<string>;
24
23
  contextProperties$: Observable<ContextProperties>;
25
24
  activePriceList$: Observable<PriceList | null>;
@@ -39,7 +38,7 @@ export declare class FlowHeaderComponent implements OnInit, OnDestroy {
39
38
  assetPriceLists$: BehaviorSubject<PriceList[]>;
40
39
  private mode$;
41
40
  private destroyed$;
42
- constructor(contextService: ContextService, quoteDraftService: QuoteDraftService, quoteApiService: QuoteApiService, sfApiService: SalesforceApiService, flowConfiguration: FlowConfigurationService, routerService: FlowRouterService, dialogService: FlowDialogService, integrationState: IntegrationState, shoppingCartSettingsApiService: ShoppingCartSettingsApiService);
41
+ constructor(contextService: ContextService, quoteDraftService: QuoteDraftService, quoteApiService: QuoteApiService, sfApiService: SalesforceApiService, flowConfiguration: FlowConfigurationService, routerService: FlowRouterService, dialogService: FlowDialogService, integrationState: IntegrationState);
43
42
  ngOnInit(): void;
44
43
  ngOnDestroy(): void;
45
44
  get isAccountMode(): boolean;
@@ -53,7 +52,7 @@ export declare class FlowHeaderComponent implements OnInit, OnDestroy {
53
52
  navigateToCatalog(): void;
54
53
  navigateToAssets(): void;
55
54
  docGenButtonClickHandler(isCartRoute: boolean): void;
56
- saveButtonClickHandler(isCartRoute: boolean): void;
55
+ saveButtonClickHandler(isCartRoute: boolean, stayOnPage?: boolean): void;
57
56
  submitButtonClickHandler(isCartRoute: boolean): void;
58
57
  selectPriceList(priceListId: string): void;
59
58
  toggleCartOverlay(cart: CartPreviewComponent, event: Event): void;
@@ -8,8 +8,9 @@ import * as i6 from "primeng/button";
8
8
  import * as i7 from "./cart-overlay/cart-preview.module";
9
9
  import * as i8 from "primeng/splitbutton";
10
10
  import * as i9 from "./metrics/metrics.module";
11
+ import * as i10 from "@veloceapps/sdk/core";
11
12
  export declare class FlowHeaderModule {
12
13
  static ɵfac: i0.ɵɵFactoryDeclaration<FlowHeaderModule, never>;
13
- static ɵmod: i0.ɵɵNgModuleDeclaration<FlowHeaderModule, [typeof i1.FlowHeaderComponent], [typeof i2.CommonModule, typeof i3.OverlayPanelModule, typeof i4.LetDirectiveModule, typeof i5.TooltipModule, typeof i6.ButtonModule, typeof i7.CartPreviewModule, typeof i8.SplitButtonModule, typeof i9.MetricsModule], [typeof i1.FlowHeaderComponent]>;
14
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FlowHeaderModule, [typeof i1.FlowHeaderComponent], [typeof i2.CommonModule, typeof i3.OverlayPanelModule, typeof i4.LetDirectiveModule, typeof i5.TooltipModule, typeof i6.ButtonModule, typeof i7.CartPreviewModule, typeof i8.SplitButtonModule, typeof i9.MetricsModule, typeof i10.SdkPipesModule], [typeof i1.FlowHeaderComponent]>;
14
15
  static ɵinj: i0.ɵɵInjectorDeclaration<FlowHeaderModule>;
15
16
  }
@@ -2,7 +2,7 @@ import { CdkDragDrop } from '@angular/cdk/drag-drop';
2
2
  import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
3
3
  import { FormControl } from '@angular/forms';
4
4
  import { ShoppingCartSettingsApiService } from '@veloceapps/api';
5
- import { ContextService, FlowConfigurationService, MetricsCalculationService, QuoteDraftService } from '@veloceapps/sdk/core';
5
+ import { ContextService, FlowConfigurationService, MetricsCalculationService, QuoteDraftService, RuntimeSettingsService } from '@veloceapps/sdk/core';
6
6
  import { OverlayPanel } from 'primeng/overlaypanel';
7
7
  import { Metric } from '../../../types';
8
8
  import * as i0 from "@angular/core";
@@ -13,6 +13,7 @@ export declare class MetricsComponent implements OnInit, OnDestroy {
13
13
  private metricsCalculationService;
14
14
  private flowConfiguration;
15
15
  private shoppingCartSettingsApiService;
16
+ private runtimeSettings;
16
17
  overlayPanel: OverlayPanel;
17
18
  emptyStateMetrics: {
18
19
  name: string;
@@ -23,8 +24,10 @@ export declare class MetricsComponent implements OnInit, OnDestroy {
23
24
  metrics: Metric[];
24
25
  filteredMetrics: Metric[];
25
26
  editingMetric: Metric | undefined;
27
+ currencySymbol: string;
26
28
  sidebarVisible: boolean;
27
29
  searchControl: FormControl;
30
+ isFocused: boolean;
28
31
  nameControl: FormControl;
29
32
  private activeMetricRules;
30
33
  private activeMetricRuleNames;
@@ -32,9 +35,10 @@ export declare class MetricsComponent implements OnInit, OnDestroy {
32
35
  private metricKeys;
33
36
  private lastSavedMetrics;
34
37
  private destroyed$;
35
- constructor(contextService: ContextService, quoteDraftService: QuoteDraftService, cdr: ChangeDetectorRef, metricsCalculationService: MetricsCalculationService, flowConfiguration: FlowConfigurationService, shoppingCartSettingsApiService: ShoppingCartSettingsApiService);
38
+ constructor(contextService: ContextService, quoteDraftService: QuoteDraftService, cdr: ChangeDetectorRef, metricsCalculationService: MetricsCalculationService, flowConfiguration: FlowConfigurationService, shoppingCartSettingsApiService: ShoppingCartSettingsApiService, runtimeSettings: RuntimeSettingsService);
36
39
  ngOnInit(): void;
37
40
  ngOnDestroy(): void;
41
+ toggleOverlay(event: MouseEvent, overlay: OverlayPanel, target: HTMLElement): void;
38
42
  openSidebar(): void;
39
43
  closeSidebar(): void;
40
44
  getMetricValue(key: string): number;
@@ -42,7 +46,11 @@ export declare class MetricsComponent implements OnInit, OnDestroy {
42
46
  changeMetricOrder(event: CdkDragDrop<string[]>): void;
43
47
  editMetric(metric: Metric): void;
44
48
  saveMetric(): void;
49
+ cancelMetric(): void;
45
50
  resetToDefault(): void;
51
+ onFocus(): void;
52
+ onBlur(): void;
53
+ clearSearch(event: MouseEvent): void;
46
54
  private collectMetricKeys;
47
55
  private setMetrics;
48
56
  private collectAvailableMetrics;
@@ -10,8 +10,9 @@ import * as i8 from "primeng/inputtext";
10
10
  import * as i9 from "primeng/checkbox";
11
11
  import * as i10 from "@veloceapps/components";
12
12
  import * as i11 from "primeng/virtualscroller";
13
+ import * as i12 from "@veloceapps/sdk/core";
13
14
  export declare class MetricsModule {
14
15
  static ɵfac: i0.ɵɵFactoryDeclaration<MetricsModule, never>;
15
- static ɵmod: i0.ɵɵNgModuleDeclaration<MetricsModule, [typeof i1.MetricsComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.DragDropModule, typeof i5.ButtonModule, typeof i6.OverlayPanelModule, typeof i7.SidebarModule, typeof i8.InputTextModule, typeof i9.CheckboxModule, typeof i10.LetDirectiveModule, typeof i11.VirtualScrollerModule, typeof i10.ErrorTooltipModule, typeof i10.HiddenTextTooltipModule], [typeof i1.MetricsComponent]>;
16
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MetricsModule, [typeof i1.MetricsComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.DragDropModule, typeof i5.ButtonModule, typeof i6.OverlayPanelModule, typeof i7.SidebarModule, typeof i8.InputTextModule, typeof i9.CheckboxModule, typeof i10.LetDirectiveModule, typeof i11.VirtualScrollerModule, typeof i10.ErrorTooltipModule, typeof i10.HiddenTextTooltipModule, typeof i12.SdkPipesModule], [typeof i1.MetricsComponent]>;
16
17
  static ɵinj: i0.ɵɵInjectorDeclaration<MetricsModule>;
17
18
  }
@@ -1,16 +1,17 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./flow.component";
3
3
  import * as i2 from "@angular/common";
4
- import * as i3 from "./flow-routing.module";
5
- import * as i4 from "@veloceapps/api";
6
- import * as i5 from "@veloceapps/sdk/cms";
7
- import * as i6 from "@veloceapps/components";
4
+ import * as i3 from "@veloceapps/components";
5
+ import * as i4 from "./flow-routing.module";
6
+ import * as i5 from "@veloceapps/api";
7
+ import * as i6 from "@veloceapps/sdk/cms";
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 "@veloceapps/sdk/core";
11
11
  import * as i10 from "./components/doc-gen/doc-gen.module";
12
+ import * as i11 from "./components/guided-selling/guided-selling.module";
12
13
  export declare class FlowModule {
13
14
  static ɵfac: i0.ɵɵFactoryDeclaration<FlowModule, 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, typeof i6.LetDirectiveModule], never>;
15
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FlowModule, [typeof i1.FlowComponent], [typeof i2.CommonModule, typeof i3.LetDirectiveModule, typeof i4.FlowRoutingModule, typeof i5.ApiModule, typeof i6.LauncherModule, typeof i3.LoaderModule, typeof i7.FlowHeaderModule, typeof i8.FlowDialogModule, typeof i9.SdkCoreModule, typeof i10.DocGenModule, typeof i11.GuidedSellingModule], never>;
15
16
  static ɵinj: i0.ɵɵInjectorDeclaration<FlowModule>;
16
17
  }
@@ -1,5 +1,5 @@
1
1
  import { ActivatedRouteSnapshot, CanActivate, CanActivateChild, Router } from '@angular/router';
2
- import { ContextService } from '@veloceapps/sdk/core';
2
+ import { ContextService, RuntimeSettingsService } from '@veloceapps/sdk/core';
3
3
  import { Observable } from 'rxjs';
4
4
  import { FlowRouterService } from '../services/flow-router.service';
5
5
  import * as i0 from "@angular/core";
@@ -7,7 +7,8 @@ export declare class ContextGuard implements CanActivate, CanActivateChild {
7
7
  private router;
8
8
  private routerService;
9
9
  private contextService;
10
- constructor(router: Router, routerService: FlowRouterService, contextService: ContextService);
10
+ private runtimeSettingsService;
11
+ constructor(router: Router, routerService: FlowRouterService, contextService: ContextService, runtimeSettingsService: RuntimeSettingsService);
11
12
  checkActivation(route: ActivatedRouteSnapshot): Observable<boolean>;
12
13
  canActivate(route: ActivatedRouteSnapshot): Observable<boolean> | Promise<boolean> | boolean;
13
14
  canActivateChild(childRoute: ActivatedRouteSnapshot): Observable<boolean> | Promise<boolean> | boolean;
@@ -1,7 +1,8 @@
1
1
  import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { UITemplatesApiService } from '@veloceapps/api';
3
3
  import { ToastService } from '@veloceapps/components';
4
- import { ContextService, UIDefinition } from '@veloceapps/sdk/core';
4
+ import { UIDefinition } from '@veloceapps/core';
5
+ import { ContextService } from '@veloceapps/sdk/core';
5
6
  import { BehaviorSubject } from 'rxjs';
6
7
  import { FlowCustomization } from '../../types';
7
8
  import * as i0 from "@angular/core";
@@ -1,7 +1,8 @@
1
1
  import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { UITemplatesApiService } from '@veloceapps/api';
3
3
  import { ToastService } from '@veloceapps/components';
4
- import { ContextService, UIDefinition } from '@veloceapps/sdk/core';
4
+ import { UIDefinition } from '@veloceapps/core';
5
+ import { ContextService } from '@veloceapps/sdk/core';
5
6
  import { BehaviorSubject } from 'rxjs';
6
7
  import { FlowCustomization } from '../../types';
7
8
  import * as i0 from "@angular/core";
@@ -1,31 +1,23 @@
1
- import { OnDestroy, OnInit } from '@angular/core';
2
- import { ConfigurationRuntimeService, ConfigurationService, ContextService, QuoteDraftService, UIDefinition } from '@veloceapps/sdk/core';
3
- import { MessageService } from 'primeng/api';
1
+ import { UIDefinition } from '@veloceapps/core';
2
+ import { CMSPreviewConfig, IntegrationState } from '@veloceapps/sdk/cms';
3
+ import { ConfigurationRuntimeService, ConfigurationService, ConfigurationState, ContextService, QuoteDraftService } from '@veloceapps/sdk/core';
4
4
  import { BehaviorSubject } from 'rxjs';
5
5
  import { FlowCustomization } from '../../types/flow-customization.types';
6
6
  import * as i0 from "@angular/core";
7
- interface State {
8
- loading: boolean;
9
- failure: boolean;
10
- }
11
- export declare class ProductComponent implements OnInit, OnDestroy {
7
+ export declare class ProductComponent {
12
8
  private contextService;
13
- private runtimeService;
9
+ private configurationRuntimeService;
14
10
  private configurationService;
11
+ private configurationState;
15
12
  private quoteDraftService;
16
- private messageService;
13
+ private integrationState;
17
14
  private customizationService?;
18
- private destroy$;
19
- uiDefinition?: UIDefinition;
20
- state$: BehaviorSubject<State>;
21
- constructor(contextService: ContextService, runtimeService: ConfigurationRuntimeService, configurationService: ConfigurationService, quoteDraftService: QuoteDraftService, messageService: MessageService, customizationService?: FlowCustomization | undefined);
22
- ngOnInit(): void;
23
- ngOnDestroy(): void;
24
- private customize;
25
- private init;
26
- private throwIfNoUIDefinition;
15
+ config: CMSPreviewConfig;
16
+ uiDefinition$: BehaviorSubject<UIDefinition | undefined>;
17
+ constructor(contextService: ContextService, configurationRuntimeService: ConfigurationRuntimeService, configurationService: ConfigurationService, configurationState: ConfigurationState, quoteDraftService: QuoteDraftService, integrationState: IntegrationState, customizationService?: FlowCustomization | undefined);
18
+ private customizeUI$;
19
+ private init$;
27
20
  private getLineItemId;
28
- static ɵfac: i0.ɵɵFactoryDeclaration<ProductComponent, [null, null, null, null, null, { optional: true; }]>;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProductComponent, [null, null, null, null, null, null, { optional: true; }]>;
29
22
  static ɵcmp: i0.ɵɵComponentDeclaration<ProductComponent, "vl-flow-product", never, {}, {}, never, never, false, never>;
30
23
  }
31
- export {};
@@ -1,8 +1,8 @@
1
1
  import { Location } from '@angular/common';
2
2
  import { OnDestroy } from '@angular/core';
3
- import { QuoteApiService } from '@veloceapps/api';
3
+ import { UIDefinition } from '@veloceapps/core';
4
4
  import { IntegrationState } from '@veloceapps/sdk/cms';
5
- import { ConfigurationRuntimeService, ConfigurationService, ContextService, QuoteDraftService, UIDefinition } from '@veloceapps/sdk/core';
5
+ import { ConfigurationRuntimeService, ConfigurationService, ConfigurationState, ContextService, QuoteDraftService } from '@veloceapps/sdk/core';
6
6
  import { MessageService } from 'primeng/api';
7
7
  import { BehaviorSubject } from 'rxjs';
8
8
  import * as i0 from "@angular/core";
@@ -13,9 +13,9 @@ interface State {
13
13
  export declare class RemoteComponent implements OnDestroy {
14
14
  private contextService;
15
15
  private quoteDraftService;
16
- private quoteApiService;
17
16
  private runtimeService;
18
17
  private configurationService;
18
+ private configurationState;
19
19
  private messageService;
20
20
  private integrationState;
21
21
  private location;
@@ -24,7 +24,7 @@ export declare class RemoteComponent implements OnDestroy {
24
24
  private readonly DYNAMIC_OPTION_PRODUCTS_KEY;
25
25
  private rpcMessage;
26
26
  private destroyed$;
27
- constructor(contextService: ContextService, quoteDraftService: QuoteDraftService, quoteApiService: QuoteApiService, runtimeService: ConfigurationRuntimeService, configurationService: ConfigurationService, messageService: MessageService, integrationState: IntegrationState, location: Location);
27
+ constructor(contextService: ContextService, quoteDraftService: QuoteDraftService, runtimeService: ConfigurationRuntimeService, configurationService: ConfigurationService, configurationState: ConfigurationState, messageService: MessageService, integrationState: IntegrationState, location: Location);
28
28
  ngOnDestroy(): void;
29
29
  private initConfiguration;
30
30
  private throwIfNoUIDefinition;
@@ -1,7 +1,8 @@
1
1
  import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { UITemplatesApiService } from '@veloceapps/api';
3
3
  import { ToastService } from '@veloceapps/components';
4
- import { ContextService, UIDefinition } from '@veloceapps/sdk/core';
4
+ import { UIDefinition } from '@veloceapps/core';
5
+ import { ContextService } from '@veloceapps/sdk/core';
5
6
  import { BehaviorSubject } from 'rxjs';
6
7
  import { FlowCustomization } from '../../types';
7
8
  import * as i0 from "@angular/core";
@@ -1,4 +1,5 @@
1
1
  import { ActivatedRoute, ActivatedRouteSnapshot, Params, Router } from '@angular/router';
2
+ import { IntegrationState } from '@veloceapps/sdk/cms';
2
3
  import { ContextService } from '@veloceapps/sdk/core';
3
4
  import { Observable } from 'rxjs';
4
5
  import * as i0 from "@angular/core";
@@ -6,12 +7,13 @@ export declare class FlowRouterService {
6
7
  private router;
7
8
  private route;
8
9
  private contextService;
10
+ private integrationState;
9
11
  private routeChange$;
10
12
  private lastChildParams$;
11
13
  private lastChildRoute$;
12
14
  private urlHistory;
13
15
  loading$: Observable<boolean>;
14
- constructor(router: Router, route: ActivatedRoute, contextService: ContextService);
16
+ constructor(router: Router, route: ActivatedRoute, contextService: ContextService, integrationState: IntegrationState);
15
17
  getFlowRootRoute(route: ActivatedRouteSnapshot): ActivatedRouteSnapshot | undefined;
16
18
  getFlowRootPath(route: ActivatedRouteSnapshot): string;
17
19
  get route$(): Observable<ActivatedRouteSnapshot>;
@@ -0,0 +1,13 @@
1
+ import { IntegrationState } from '@veloceapps/sdk/cms';
2
+ import * as i0 from "@angular/core";
3
+ export declare class FlowGuidedSellingService {
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<FlowGuidedSellingService, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<FlowGuidedSellingService>;
13
+ }
@@ -1,12 +1,12 @@
1
1
  import { InjectionToken } from '@angular/core';
2
- import { TemplateComponentWithAttachments, UIDefinition as LegacyUIDefinition } from '@veloceapps/core';
3
- import { UIDefinition } from '@veloceapps/sdk/core';
2
+ import { TemplateComponentWithAttachments, UIDefinitionContainer } from '@veloceapps/core';
4
3
  import { Observable } from 'rxjs';
5
4
  export declare const FLOW_CUSTOMIZATION: InjectionToken<FlowCustomization>;
6
5
  export interface FlowCustomization {
7
- getUiDefinition?(productId: string): Observable<UIDefinition | null>;
8
- getLegacyUiDefinition?(productId: string): Observable<LegacyUIDefinition | null>;
6
+ getUiDefinition?(productId: string): Observable<UIDefinitionContainer | null>;
7
+ getLegacyUiDefinition?(productId: string): Observable<UIDefinitionContainer | null>;
9
8
  getShoppingCartComponent?(templateName: string): Observable<TemplateComponentWithAttachments | null>;
10
9
  getCatalogComponent?(templateName: string): Observable<TemplateComponentWithAttachments | null>;
11
10
  getAssetsComponent?(templateName: string): Observable<TemplateComponentWithAttachments | null>;
11
+ getTemplateComponent?(templateName: string): Observable<TemplateComponentWithAttachments | null>;
12
12
  }