@veloceapps/sdk 7.0.2-7 → 7.0.2-71

Sign up to get free protection for your applications and to get access to all the features.
Files changed (192) 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 +6 -5
  6. package/cms/components/preview/preview.module.d.ts +2 -1
  7. package/cms/components/preview/preview.types.d.ts +4 -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/types/common.types.d.ts +11 -1
  23. package/cms/types/index.d.ts +2 -0
  24. package/cms/types/integration.types.d.ts +1 -0
  25. package/cms/types/layouts.types.d.ts +30 -2
  26. package/cms/types/pages.types.d.ts +1 -0
  27. package/cms/utils/element.utils.d.ts +1 -1
  28. package/cms/utils/elements-resolver.d.ts +6 -2
  29. package/cms/utils/index.d.ts +1 -0
  30. package/cms/utils/script.utils.d.ts +2 -0
  31. package/cms/utils/ui-builder-layout.utils.d.ts +4 -0
  32. package/cms/vendor-map.d.ts +15 -19
  33. package/core/core.module.d.ts +2 -0
  34. package/core/directives/directives.module.d.ts +7 -0
  35. package/core/directives/index.d.ts +2 -0
  36. package/core/directives/primeng-calendar.directive.d.ts +14 -0
  37. package/core/index.d.ts +2 -0
  38. package/core/modules/configuration/helpers.d.ts +4 -2
  39. package/core/modules/configuration/index.d.ts +1 -0
  40. package/core/modules/configuration/services/configuration-runtime.service.d.ts +2 -2
  41. package/core/modules/configuration/services/configuration.service.d.ts +6 -4
  42. package/core/modules/configuration/types/configuration-runtime.types.d.ts +1 -0
  43. package/core/modules/configuration/types/configuration.types.d.ts +10 -0
  44. package/core/modules/flow-configuration/services/flow-configuration.service.d.ts +2 -1
  45. package/core/pipes/date.pipe.d.ts +12 -0
  46. package/core/pipes/index.d.ts +4 -0
  47. package/core/pipes/number.pipe.d.ts +10 -0
  48. package/core/pipes/pipes.module.d.ts +9 -0
  49. package/core/pipes/price.pipe.d.ts +10 -0
  50. package/core/services/index.d.ts +1 -0
  51. package/core/services/runtime-settings.service.d.ts +21 -0
  52. package/core/types/formatting-settings.types.d.ts +11 -0
  53. package/core/types/index.d.ts +1 -0
  54. package/core/types/runtime.types.d.ts +1 -2
  55. package/core/types/ui-definition.types.d.ts +0 -40
  56. package/core/utils/line-item.utils.d.ts +10 -15
  57. package/core/utils/line-item.worker.d.ts +3 -6
  58. package/core/utils/ui-definition.utils.d.ts +1 -1
  59. package/esm2020/cms/cms.actions.mjs +140 -40
  60. package/esm2020/cms/cms.default.mjs +1 -1
  61. package/esm2020/cms/cms.elements.mjs +16 -4
  62. package/esm2020/cms/cms.layouts.mjs +73 -13
  63. package/esm2020/cms/components/element-children/element-children.component.mjs +11 -6
  64. package/esm2020/cms/components/element-drop-handle/element-drop-handle.component.mjs +2 -2
  65. package/esm2020/cms/components/element-tools-panel/element-tools-panel.component.mjs +35 -0
  66. package/esm2020/cms/components/preview/preview.component.mjs +18 -16
  67. package/esm2020/cms/components/preview/preview.module.mjs +22 -4
  68. package/esm2020/cms/components/preview/preview.types.mjs +1 -1
  69. package/esm2020/cms/definitions/index.mjs +2 -0
  70. package/esm2020/cms/definitions/ui-builder.definitions.mjs +18 -0
  71. package/esm2020/cms/index.mjs +3 -1
  72. package/esm2020/cms/injection-tokens.mjs +1 -2
  73. package/esm2020/cms/modules/migrations/migrations.mjs +10 -3
  74. package/esm2020/cms/modules/migrations/services/migrations.service.mjs +1 -1
  75. package/esm2020/cms/modules/migrations/types/migrations.types.mjs +1 -1
  76. package/esm2020/cms/modules/runtime/index.mjs +2 -1
  77. package/esm2020/cms/modules/runtime/services/compilation.service.mjs +5 -3
  78. package/esm2020/cms/modules/runtime/services/runtime-editor.service.mjs +5 -3
  79. package/esm2020/cms/modules/runtime/services/runtime.service.mjs +41 -6
  80. package/esm2020/cms/modules/runtime/types/runtime.actions.mjs +1 -1
  81. package/esm2020/cms/plugins/element-hover.plugin.mjs +121 -0
  82. package/esm2020/cms/plugins/page.plugin.mjs +37 -0
  83. package/esm2020/cms/plugins/region.plugin.mjs +3 -2
  84. package/esm2020/cms/plugins/script.plugin.mjs +6 -40
  85. package/esm2020/cms/services/integration.state.mjs +3 -6
  86. package/esm2020/cms/services/io-provider.service.mjs +7 -5
  87. package/esm2020/cms/types/common.types.mjs +1 -1
  88. package/esm2020/cms/types/index.mjs +3 -1
  89. package/esm2020/cms/types/integration.types.mjs +1 -1
  90. package/esm2020/cms/types/layouts.types.mjs +70 -1
  91. package/esm2020/cms/types/pages.types.mjs +2 -0
  92. package/esm2020/cms/utils/element.utils.mjs +1 -1
  93. package/esm2020/cms/utils/elements-resolver.mjs +22 -8
  94. package/esm2020/cms/utils/index.mjs +2 -1
  95. package/esm2020/cms/utils/script.utils.mjs +42 -0
  96. package/esm2020/cms/utils/ui-builder-layout.utils.mjs +46 -0
  97. package/esm2020/cms/vendor-map.mjs +5 -3
  98. package/esm2020/core/core.module.mjs +33 -4
  99. package/esm2020/core/directives/directives.module.mjs +16 -0
  100. package/esm2020/core/directives/index.mjs +3 -0
  101. package/esm2020/core/directives/primeng-calendar.directive.mjs +41 -0
  102. package/esm2020/core/index.mjs +3 -1
  103. package/esm2020/core/modules/configuration/configuration.module.mjs +2 -2
  104. package/esm2020/core/modules/configuration/helpers.mjs +37 -7
  105. package/esm2020/core/modules/configuration/index.mjs +2 -1
  106. package/esm2020/core/modules/configuration/services/configuration-runtime.service.mjs +3 -2
  107. package/esm2020/core/modules/configuration/services/configuration.service.mjs +35 -10
  108. package/esm2020/core/modules/configuration/services/runtime-context.service.mjs +6 -12
  109. package/esm2020/core/modules/configuration/types/configuration-runtime.types.mjs +1 -1
  110. package/esm2020/core/modules/configuration/types/configuration.types.mjs +2 -0
  111. package/esm2020/core/modules/flow-configuration/services/flow-configuration.service.mjs +4 -4
  112. package/esm2020/core/pipes/date.pipe.mjs +38 -0
  113. package/esm2020/core/pipes/index.mjs +5 -0
  114. package/esm2020/core/pipes/number.pipe.mjs +27 -0
  115. package/esm2020/core/pipes/pipes.module.mjs +18 -0
  116. package/esm2020/core/pipes/price.pipe.mjs +30 -0
  117. package/esm2020/core/services/index.mjs +2 -1
  118. package/esm2020/core/services/runtime-settings.service.mjs +88 -0
  119. package/esm2020/core/types/formatting-settings.types.mjs +3 -0
  120. package/esm2020/core/types/index.mjs +2 -1
  121. package/esm2020/core/types/runtime.types.mjs +1 -1
  122. package/esm2020/core/types/ui-definition.types.mjs +1 -1
  123. package/esm2020/core/utils/line-item.utils.mjs +22 -9
  124. package/esm2020/core/utils/line-item.worker.mjs +5 -5
  125. package/esm2020/core/utils/ui-definition.utils.mjs +1 -1
  126. package/esm2020/runtime/components/ui-runtime-preview/runtime-preview.component.mjs +2 -2
  127. package/esm2020/runtime/services/runtime-context.service.mjs +8 -5
  128. package/esm2020/runtime/services/runtime.service.mjs +1 -1
  129. package/esm2020/runtime/types/runtime.types.mjs +1 -1
  130. package/esm2020/src/components/dialog/dialog.component.mjs +3 -3
  131. package/esm2020/src/components/doc-gen/doc-gen.component.mjs +30 -7
  132. package/esm2020/src/components/guided-selling/guided-selling.component.mjs +117 -0
  133. package/esm2020/src/components/guided-selling/guided-selling.module.mjs +19 -0
  134. package/esm2020/src/components/header/cart-overlay/cart-preview.component.mjs +5 -6
  135. package/esm2020/src/components/header/cart-overlay/cart-preview.module.mjs +7 -4
  136. package/esm2020/src/components/header/header.component.mjs +59 -45
  137. package/esm2020/src/components/header/header.module.mjs +7 -3
  138. package/esm2020/src/components/header/metrics/metrics.component.mjs +35 -7
  139. package/esm2020/src/components/header/metrics/metrics.module.mjs +7 -3
  140. package/esm2020/src/flow-routing.module.mjs +1 -1
  141. package/esm2020/src/flow.component.mjs +4 -3
  142. package/esm2020/src/flow.module.mjs +11 -6
  143. package/esm2020/src/guards/context.guard.mjs +11 -8
  144. package/esm2020/src/pages/assets/assets.component.mjs +2 -2
  145. package/esm2020/src/pages/catalog/catalog.component.mjs +3 -3
  146. package/esm2020/src/pages/product/product.component.mjs +16 -9
  147. package/esm2020/src/pages/remote/remote.component.mjs +1 -1
  148. package/esm2020/src/pages/shopping-cart/shopping-cart.component.mjs +3 -3
  149. package/esm2020/src/services/flow-dialog.service.mjs +15 -15
  150. package/esm2020/src/services/flow-router.service.mjs +10 -5
  151. package/esm2020/src/services/flow.service.mjs +2 -2
  152. package/esm2020/src/services/guided-selling.service.mjs +33 -0
  153. package/esm2020/src/types/flow-customization.types.mjs +1 -1
  154. package/fesm2015/veloceapps-sdk-cms.mjs +872 -394
  155. package/fesm2015/veloceapps-sdk-cms.mjs.map +1 -1
  156. package/fesm2015/veloceapps-sdk-core.mjs +371 -47
  157. package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
  158. package/fesm2015/veloceapps-sdk-runtime.mjs +7 -4
  159. package/fesm2015/veloceapps-sdk-runtime.mjs.map +1 -1
  160. package/fesm2015/veloceapps-sdk.mjs +374 -135
  161. package/fesm2015/veloceapps-sdk.mjs.map +1 -1
  162. package/fesm2020/veloceapps-sdk-cms.mjs +955 -396
  163. package/fesm2020/veloceapps-sdk-cms.mjs.map +1 -1
  164. package/fesm2020/veloceapps-sdk-core.mjs +361 -44
  165. package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
  166. package/fesm2020/veloceapps-sdk-runtime.mjs +7 -4
  167. package/fesm2020/veloceapps-sdk-runtime.mjs.map +1 -1
  168. package/fesm2020/veloceapps-sdk.mjs +364 -133
  169. package/fesm2020/veloceapps-sdk.mjs.map +1 -1
  170. package/package.json +1 -1
  171. package/runtime/components/ui-runtime-preview/runtime-preview.component.d.ts +3 -3
  172. package/runtime/services/runtime.service.d.ts +2 -2
  173. package/runtime/types/runtime.types.d.ts +2 -2
  174. package/src/components/doc-gen/doc-gen.component.d.ts +7 -3
  175. package/src/components/guided-selling/guided-selling.component.d.ts +29 -0
  176. package/src/components/guided-selling/guided-selling.module.d.ts +9 -0
  177. package/src/components/header/cart-overlay/cart-preview.component.d.ts +1 -1
  178. package/src/components/header/cart-overlay/cart-preview.module.d.ts +1 -1
  179. package/src/components/header/header.component.d.ts +3 -4
  180. package/src/components/header/header.module.d.ts +2 -1
  181. package/src/components/header/metrics/metrics.component.d.ts +10 -2
  182. package/src/components/header/metrics/metrics.module.d.ts +2 -1
  183. package/src/flow.module.d.ts +6 -5
  184. package/src/guards/context.guard.d.ts +3 -2
  185. package/src/pages/assets/assets.component.d.ts +2 -1
  186. package/src/pages/catalog/catalog.component.d.ts +2 -1
  187. package/src/pages/product/product.component.d.ts +6 -3
  188. package/src/pages/remote/remote.component.d.ts +2 -1
  189. package/src/pages/shopping-cart/shopping-cart.component.d.ts +2 -1
  190. package/src/services/flow-router.service.d.ts +3 -1
  191. package/src/services/guided-selling.service.d.ts +13 -0
  192. package/src/types/flow-customization.types.d.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veloceapps/sdk",
3
- "version": "7.0.2-7",
3
+ "version": "7.0.2-71",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/animations": "~15.2.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,5 +1,7 @@
1
1
  import { OnDestroy, OnInit } from '@angular/core';
2
- import { ConfigurationRuntimeService, ConfigurationService, ContextService, QuoteDraftService, UIDefinition } from '@veloceapps/sdk/core';
2
+ import { UIDefinition } from '@veloceapps/core';
3
+ import { IntegrationState } from '@veloceapps/sdk/cms';
4
+ import { ConfigurationRuntimeService, ConfigurationService, ContextService, QuoteDraftService } from '@veloceapps/sdk/core';
3
5
  import { MessageService } from 'primeng/api';
4
6
  import { BehaviorSubject } from 'rxjs';
5
7
  import { FlowCustomization } from '../../types/flow-customization.types';
@@ -14,18 +16,19 @@ export declare class ProductComponent implements OnInit, OnDestroy {
14
16
  private configurationService;
15
17
  private quoteDraftService;
16
18
  private messageService;
19
+ private integrationState;
17
20
  private customizationService?;
18
21
  private destroy$;
19
22
  uiDefinition?: UIDefinition;
20
23
  state$: BehaviorSubject<State>;
21
- constructor(contextService: ContextService, runtimeService: ConfigurationRuntimeService, configurationService: ConfigurationService, quoteDraftService: QuoteDraftService, messageService: MessageService, customizationService?: FlowCustomization | undefined);
24
+ constructor(contextService: ContextService, runtimeService: ConfigurationRuntimeService, configurationService: ConfigurationService, quoteDraftService: QuoteDraftService, messageService: MessageService, integrationState: IntegrationState, customizationService?: FlowCustomization | undefined);
22
25
  ngOnInit(): void;
23
26
  ngOnDestroy(): void;
24
27
  private customize;
25
28
  private init;
26
29
  private throwIfNoUIDefinition;
27
30
  private getLineItemId;
28
- static ɵfac: i0.ɵɵFactoryDeclaration<ProductComponent, [null, null, null, null, null, { optional: true; }]>;
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProductComponent, [null, null, null, null, null, null, { optional: true; }]>;
29
32
  static ɵcmp: i0.ɵɵComponentDeclaration<ProductComponent, "vl-flow-product", never, {}, {}, never, never, false, never>;
30
33
  }
31
34
  export {};
@@ -1,8 +1,9 @@
1
1
  import { Location } from '@angular/common';
2
2
  import { OnDestroy } from '@angular/core';
3
3
  import { QuoteApiService } from '@veloceapps/api';
4
+ import { UIDefinition } from '@veloceapps/core';
4
5
  import { IntegrationState } from '@veloceapps/sdk/cms';
5
- import { ConfigurationRuntimeService, ConfigurationService, ContextService, QuoteDraftService, UIDefinition } from '@veloceapps/sdk/core';
6
+ import { ConfigurationRuntimeService, ConfigurationService, ContextService, QuoteDraftService } from '@veloceapps/sdk/core';
6
7
  import { MessageService } from 'primeng/api';
7
8
  import { BehaviorSubject } from 'rxjs';
8
9
  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,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,6 +1,5 @@
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 { LegacyUIDefinition, TemplateComponentWithAttachments, UIDefinition } from '@veloceapps/core';
4
3
  import { Observable } from 'rxjs';
5
4
  export declare const FLOW_CUSTOMIZATION: InjectionToken<FlowCustomization>;
6
5
  export interface FlowCustomization {
@@ -9,4 +8,5 @@ export interface FlowCustomization {
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
  }