@veloceapps/sdk 3.0.16 → 3.1.0

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 (192) hide show
  1. package/bundles/veloce-sdk-cms.umd.js +74 -836
  2. package/bundles/veloce-sdk-cms.umd.js.map +1 -1
  3. package/bundles/veloce-sdk-core.umd.js +1269 -0
  4. package/bundles/veloce-sdk-core.umd.js.map +1 -0
  5. package/bundles/veloce-sdk-runtime.umd.js +53 -166
  6. package/bundles/veloce-sdk-runtime.umd.js.map +1 -1
  7. package/bundles/veloce-sdk.umd.js +322 -155
  8. package/bundles/veloce-sdk.umd.js.map +1 -1
  9. package/cms/cms.default.d.ts +1 -1
  10. package/cms/components/element-renderer/element-renderer.component.d.ts +1 -1
  11. package/cms/components/preview/preview.component.d.ts +1 -3
  12. package/cms/decorators/element.decorator.d.ts +2 -2
  13. package/cms/index.d.ts +1 -1
  14. package/cms/injection-tokens.d.ts +1 -1
  15. package/cms/launcher.module.d.ts +2 -3
  16. package/cms/plugins/script.plugin.d.ts +1 -0
  17. package/cms/services/launcher.service.d.ts +1 -1
  18. package/cms/types/common.types.d.ts +4 -9
  19. package/cms/types/configuration.types.d.ts +0 -5
  20. package/cms/types/index.d.ts +1 -2
  21. package/cms/types/path.types.d.ts +11 -0
  22. package/cms/utils/element.utils.d.ts +6 -5
  23. package/cms/utils/elements-resolver.d.ts +2 -1
  24. package/cms/utils/index.d.ts +3 -1
  25. package/cms/utils/path.utils.d.ts +2 -1
  26. package/cms/vendor-map.d.ts +677 -2
  27. package/core/core.module.d.ts +8 -0
  28. package/core/index.d.ts +6 -0
  29. package/{cms → core}/modules/configuration/configuration.module.d.ts +0 -0
  30. package/{cms → core}/modules/configuration/helpers.d.ts +1 -2
  31. package/{cms → core}/modules/configuration/index.d.ts +0 -1
  32. package/{cms → core}/modules/configuration/services/configuration-runtime.service.d.ts +2 -3
  33. package/{cms → core}/modules/configuration/services/configuration.service.d.ts +2 -2
  34. package/{cms → core}/modules/configuration/services/runtime-context.service.d.ts +1 -1
  35. package/{cms → core}/modules/configuration/types/configuration-runtime.types.d.ts +0 -0
  36. package/{cms → core}/modules/flow-configuration/flow-configuration.module.d.ts +0 -0
  37. package/{cms → core}/modules/flow-configuration/index.d.ts +0 -0
  38. package/{cms → core}/modules/flow-configuration/services/flow-configuration.service.d.ts +7 -4
  39. package/{cms → core}/modules/flow-configuration/services/flow-update.service.d.ts +0 -0
  40. package/{cms → core}/modules/flow-configuration/types/update.types.d.ts +0 -0
  41. package/{cms → core}/modules/index.d.ts +0 -0
  42. package/core/package.json +10 -0
  43. package/{runtime → core}/services/context.service.d.ts +0 -0
  44. package/core/services/index.d.ts +2 -0
  45. package/{runtime/services/quote.service.d.ts → core/services/quote-draft.service.d.ts} +11 -6
  46. package/core/types/index.d.ts +3 -0
  47. package/core/types/quote-states.types.d.ts +6 -0
  48. package/{runtime/types/runtime-context.types.d.ts → core/types/runtime.types.d.ts} +4 -5
  49. package/{cms → core}/types/ui-definition.types.d.ts +0 -4
  50. package/core/utils/index.d.ts +2 -0
  51. package/{cms → core}/utils/line-item.utils.d.ts +0 -2
  52. package/{cms/types/line-item.types.d.ts → core/utils/line-item.worker.d.ts} +0 -0
  53. package/core/veloce-sdk-core.d.ts +5 -0
  54. package/esm2015/cms/cms.default.js +1 -1
  55. package/esm2015/cms/components/element-renderer/element-renderer.component.js +3 -3
  56. package/esm2015/cms/components/preview/preview.component.js +9 -10
  57. package/esm2015/cms/decorators/element.decorator.js +1 -1
  58. package/esm2015/cms/index.js +1 -2
  59. package/esm2015/cms/injection-tokens.js +1 -1
  60. package/esm2015/cms/launcher.module.js +5 -6
  61. package/esm2015/cms/plugins/configuration.plugin.js +3 -4
  62. package/esm2015/cms/plugins/script.plugin.js +27 -14
  63. package/esm2015/cms/services/launcher.service.js +1 -1
  64. package/esm2015/cms/types/common.types.js +1 -1
  65. package/esm2015/cms/types/configuration.types.js +1 -1
  66. package/esm2015/cms/types/index.js +2 -3
  67. package/esm2015/cms/types/path.types.js +2 -0
  68. package/esm2015/cms/utils/element.utils.js +1 -1
  69. package/esm2015/cms/utils/elements-resolver.js +1 -1
  70. package/esm2015/cms/utils/index.js +4 -2
  71. package/esm2015/cms/utils/path.utils.js +11 -1
  72. package/esm2015/cms/vendor-map.js +6 -5
  73. package/esm2015/core/core.module.js +18 -0
  74. package/esm2015/core/index.js +7 -0
  75. package/esm2015/core/modules/configuration/configuration.module.js +34 -0
  76. package/esm2015/core/modules/configuration/helpers.js +10 -0
  77. package/esm2015/core/modules/configuration/index.js +5 -0
  78. package/esm2015/core/modules/configuration/services/configuration-runtime.service.js +93 -0
  79. package/esm2015/core/modules/configuration/services/configuration.service.js +147 -0
  80. package/esm2015/core/modules/configuration/services/runtime-context.service.js +61 -0
  81. package/esm2015/core/modules/configuration/types/configuration-runtime.types.js +2 -0
  82. package/esm2015/core/modules/flow-configuration/flow-configuration.module.js +18 -0
  83. package/esm2015/core/modules/flow-configuration/index.js +5 -0
  84. package/esm2015/core/modules/flow-configuration/services/flow-configuration.service.js +90 -0
  85. package/esm2015/core/modules/flow-configuration/services/flow-update.service.js +114 -0
  86. package/esm2015/core/modules/flow-configuration/types/update.types.js +2 -0
  87. package/esm2015/core/modules/index.js +3 -0
  88. package/esm2015/core/services/context.service.js +41 -0
  89. package/esm2015/core/services/index.js +3 -0
  90. package/esm2015/core/services/quote-draft.service.js +67 -0
  91. package/esm2015/core/types/index.js +4 -0
  92. package/esm2015/core/types/quote-states.types.js +2 -0
  93. package/esm2015/core/types/runtime.types.js +16 -0
  94. package/esm2015/core/types/ui-definition.types.js +2 -0
  95. package/esm2015/core/utils/index.js +3 -0
  96. package/esm2015/core/utils/line-item.utils.js +98 -0
  97. package/esm2015/core/utils/line-item.worker.js +19 -0
  98. package/esm2015/core/veloce-sdk-core.js +5 -0
  99. package/esm2015/runtime/components/component-preview/component-preview.component.js +2 -2
  100. package/esm2015/runtime/components/ui-runtime/runtime.component.js +10 -9
  101. package/esm2015/runtime/components/ui-runtime-preview/runtime-preview.component.js +3 -3
  102. package/esm2015/runtime/execution/directives/section-script.directive.js +19 -20
  103. package/esm2015/runtime/execution/directives/velo-port.directive.js +1 -1
  104. package/esm2015/runtime/execution/directives/vl-quote.directive.js +1 -1
  105. package/esm2015/runtime/execution/directives/vl-ramp.directive.js +2 -2
  106. package/esm2015/runtime/execution/runtime-execution.module.js +6 -8
  107. package/esm2015/runtime/runtime.module.js +7 -9
  108. package/esm2015/runtime/services/cart.service.js +5 -6
  109. package/esm2015/runtime/services/configuration.service.js +9 -9
  110. package/esm2015/runtime/services/index.js +1 -3
  111. package/esm2015/runtime/services/runtime-context.service.js +4 -4
  112. package/esm2015/runtime/services/runtime.service.js +3 -3
  113. package/esm2015/runtime/types/index.js +1 -2
  114. package/esm2015/runtime/types/runtime.types.js +1 -1
  115. package/esm2015/src/components/dialog/dialog.component.js +30 -0
  116. package/esm2015/src/components/dialog/dialog.module.js +19 -0
  117. package/esm2015/src/components/dialog/dialog.types.js +2 -0
  118. package/esm2015/src/components/header/cart-overlay/cart-overlay.component.js +2 -2
  119. package/esm2015/src/components/header/header.component.js +51 -11
  120. package/esm2015/src/flow.component.js +2 -2
  121. package/esm2015/src/flow.module.js +33 -6
  122. package/esm2015/src/pages/debug/debug.component.js +14 -16
  123. package/esm2015/src/pages/legacy-product/legacy-product.component.js +12 -11
  124. package/esm2015/src/pages/product/product.component.js +12 -12
  125. package/esm2015/src/pages/shopping-cart/shopping-cart.component.js +1 -1
  126. package/esm2015/src/resolvers/context.resolver.js +2 -2
  127. package/esm2015/src/resolvers/quote.resolver.js +9 -16
  128. package/esm2015/src/services/flow-router.service.js +2 -2
  129. package/esm2015/src/services/fow-dialog.service.js +58 -0
  130. package/esm2015/src/types/flow-customization.types.js +1 -1
  131. package/esm2015/src/utils/flow.utils.js +11 -1
  132. package/fesm2015/veloce-sdk-cms.js +64 -714
  133. package/fesm2015/veloce-sdk-cms.js.map +1 -1
  134. package/fesm2015/veloce-sdk-core.js +785 -0
  135. package/fesm2015/veloce-sdk-core.js.map +1 -0
  136. package/fesm2015/veloce-sdk-runtime.js +48 -144
  137. package/fesm2015/veloce-sdk-runtime.js.map +1 -1
  138. package/fesm2015/veloce-sdk.js +260 -99
  139. package/fesm2015/veloce-sdk.js.map +1 -1
  140. package/package.json +2 -2
  141. package/runtime/components/ui-runtime/runtime.component.d.ts +3 -3
  142. package/runtime/components/ui-runtime-preview/runtime-preview.component.d.ts +1 -1
  143. package/runtime/execution/directives/section-script.directive.d.ts +2 -3
  144. package/runtime/execution/directives/velo-port.directive.d.ts +2 -2
  145. package/runtime/execution/directives/vl-ramp.directive.d.ts +1 -1
  146. package/runtime/execution/runtime-execution.module.d.ts +2 -1
  147. package/runtime/runtime.module.d.ts +2 -1
  148. package/runtime/services/cart.service.d.ts +2 -3
  149. package/runtime/services/configuration.service.d.ts +4 -5
  150. package/runtime/services/index.d.ts +0 -2
  151. package/runtime/services/runtime-context.service.d.ts +3 -3
  152. package/runtime/services/runtime.service.d.ts +5 -6
  153. package/runtime/types/index.d.ts +0 -1
  154. package/runtime/types/runtime.types.d.ts +5 -6
  155. package/src/components/dialog/dialog.component.d.ts +13 -0
  156. package/src/components/dialog/dialog.module.d.ts +9 -0
  157. package/src/components/dialog/dialog.types.d.ts +6 -0
  158. package/src/components/header/cart-overlay/cart-overlay.component.d.ts +1 -1
  159. package/src/components/header/header.component.d.ts +10 -5
  160. package/src/flow.component.d.ts +1 -1
  161. package/src/flow.module.d.ts +3 -1
  162. package/src/pages/debug/debug.component.d.ts +3 -4
  163. package/src/pages/legacy-product/legacy-product.component.d.ts +4 -3
  164. package/src/pages/product/product.component.d.ts +3 -4
  165. package/src/pages/shopping-cart/shopping-cart.component.d.ts +1 -1
  166. package/src/resolvers/context.resolver.d.ts +1 -1
  167. package/src/resolvers/quote.resolver.d.ts +3 -4
  168. package/src/services/flow-router.service.d.ts +1 -1
  169. package/src/services/fow-dialog.service.d.ts +17 -0
  170. package/src/types/flow-customization.types.d.ts +1 -1
  171. package/src/utils/flow.utils.d.ts +2 -0
  172. package/cms/modules/configuration/types/configuration.types.d.ts +0 -15
  173. package/esm2015/cms/modules/configuration/configuration.module.js +0 -37
  174. package/esm2015/cms/modules/configuration/helpers.js +0 -10
  175. package/esm2015/cms/modules/configuration/index.js +0 -6
  176. package/esm2015/cms/modules/configuration/services/configuration-runtime.service.js +0 -93
  177. package/esm2015/cms/modules/configuration/services/configuration.service.js +0 -147
  178. package/esm2015/cms/modules/configuration/services/runtime-context.service.js +0 -61
  179. package/esm2015/cms/modules/configuration/types/configuration-runtime.types.js +0 -2
  180. package/esm2015/cms/modules/configuration/types/configuration.types.js +0 -2
  181. package/esm2015/cms/modules/flow-configuration/flow-configuration.module.js +0 -18
  182. package/esm2015/cms/modules/flow-configuration/index.js +0 -5
  183. package/esm2015/cms/modules/flow-configuration/services/flow-configuration.service.js +0 -83
  184. package/esm2015/cms/modules/flow-configuration/services/flow-update.service.js +0 -114
  185. package/esm2015/cms/modules/flow-configuration/types/update.types.js +0 -2
  186. package/esm2015/cms/modules/index.js +0 -3
  187. package/esm2015/cms/types/line-item.types.js +0 -19
  188. package/esm2015/cms/types/ui-definition.types.js +0 -2
  189. package/esm2015/cms/utils/line-item.utils.js +0 -107
  190. package/esm2015/runtime/services/context.service.js +0 -41
  191. package/esm2015/runtime/services/quote.service.js +0 -53
  192. package/esm2015/runtime/types/runtime-context.types.js +0 -16
@@ -1,14 +1,14 @@
1
1
  import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { FormGroup } from '@angular/forms';
3
3
  import { LineItem, OrderByPipe, SearchFilterPipe, Section, UITab } from '@veloce/core';
4
+ import { ContextService } from '@veloce/sdk/core';
4
5
  import { MessageService } from 'primeng/api';
5
6
  import { CollapsibleStateService } from '../../services/collapsible-state.service';
6
- import { ContextService } from '../../services/context.service';
7
7
  import { FormScopeService } from '../../services/form-scope.service';
8
8
  import { RuntimeFormService } from '../../services/runtime-form.service';
9
9
  import { RuntimeService } from '../../services/runtime.service';
10
10
  import { SectionsService } from '../../services/section.service';
11
- import { RuntimeContext, SolutionReadyAware } from '../../types';
11
+ import { LegacyRuntimeContext, SolutionReadyAware } from '../../types';
12
12
  import * as i0 from "@angular/core";
13
13
  export declare class RuntimeComponent implements OnInit, OnDestroy, SolutionReadyAware {
14
14
  private sectionsService;
@@ -24,7 +24,7 @@ export declare class RuntimeComponent implements OnInit, OnDestroy, SolutionRead
24
24
  readonly messageBucketId = "ui.runtime";
25
25
  sortedSections: Section[];
26
26
  staticSections: Section[];
27
- runtimeContext: RuntimeContext;
27
+ runtimeContext: LegacyRuntimeContext;
28
28
  solutionLineItem: LineItem;
29
29
  form: FormGroup;
30
30
  activeUITab?: UITab;
@@ -1,7 +1,7 @@
1
1
  import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { ConfigurationApiService } from '@veloce/api';
3
3
  import { LineItem, UIDefinition } from '@veloce/core';
4
- import { ContextService } from '../../services/context.service';
4
+ import { ContextService } from '@veloce/sdk/core';
5
5
  import { ProductModelCacheService } from '../../services/product-model-cache.service';
6
6
  import { RuntimeService } from '../../services/runtime.service';
7
7
  import * as i0 from "@angular/core";
@@ -1,10 +1,9 @@
1
1
  import { AfterViewInit, ChangeDetectorRef, OnDestroy, OnInit, Renderer2 } from '@angular/core';
2
2
  import { FormBuilder } from '@angular/forms';
3
+ import { ContextService, QuoteDraftService } from '@veloce/sdk/core';
3
4
  import { ShoppingCartService } from '../../services/cart.service';
4
- import { ContextService } from '../../services/context.service';
5
5
  import { CurrentStateService } from '../../services/current-state.service';
6
6
  import { FormScopeService } from '../../services/form-scope.service';
7
- import { QuoteService } from '../../services/quote.service';
8
7
  import { RuntimeService } from '../../services/runtime.service';
9
8
  import { SectionScopeService } from '../../services/section-scope.service';
10
9
  import { SfQueryDirective } from './sf-query.directive';
@@ -38,7 +37,7 @@ export declare class SectionScriptDirective implements OnInit, AfterViewInit, On
38
37
  private scriptId;
39
38
  private registry;
40
39
  private sessionScope;
41
- constructor(_document: Document, sfQueryDirective: SfQueryDirective, lineItemDirective: LineItemDirective, quoteDirective: VlQuoteDirective, documentTemplatesDirective: VlDocumentTemplatesDirective, rampDirective: VlRampDirective, approvalDirective: VlApprovalDirective, documentAttachmentsDirective: VlDocumentAttachmentsDirective, formScope: FormScopeService, sectionScope: SectionScopeService, renderer: Renderer2, formBuilder: FormBuilder, runtimeService: RuntimeService, cdr: ChangeDetectorRef, cartService: ShoppingCartService, contextService: ContextService, currentStateService: CurrentStateService, quoteService: QuoteService);
40
+ constructor(_document: Document, sfQueryDirective: SfQueryDirective, lineItemDirective: LineItemDirective, quoteDirective: VlQuoteDirective, documentTemplatesDirective: VlDocumentTemplatesDirective, rampDirective: VlRampDirective, approvalDirective: VlApprovalDirective, documentAttachmentsDirective: VlDocumentAttachmentsDirective, formScope: FormScopeService, sectionScope: SectionScopeService, renderer: Renderer2, formBuilder: FormBuilder, runtimeService: RuntimeService, cdr: ChangeDetectorRef, cartService: ShoppingCartService, contextService: ContextService, currentStateService: CurrentStateService, quoteService: QuoteDraftService);
42
41
  ngOnInit(): void;
43
42
  ngAfterViewInit(): void;
44
43
  ngOnDestroy(): void;
@@ -4,7 +4,7 @@ import { LineItem, Section } from '@veloce/core';
4
4
  import { ConfigurationService } from '../../services/configuration.service';
5
5
  import { FormScopeService } from '../../services/form-scope.service';
6
6
  import { SectionScopeService } from '../../services/section-scope.service';
7
- import { RuntimeContext } from '../../types';
7
+ import { LegacyRuntimeContext } from '../../types';
8
8
  import * as i0 from "@angular/core";
9
9
  export declare class SectionContextAware implements OnInit {
10
10
  protected formScope: FormScopeService;
@@ -35,7 +35,7 @@ export declare class LineItemDirective implements OnInit {
35
35
  constructor(formScope: FormScopeService, sectionScope: SectionScopeService, configurationService: ConfigurationService);
36
36
  ngOnInit(): void;
37
37
  handlePatch(rootLineItem: any): void;
38
- configure(runtimeContext: RuntimeContext, configurableRamp: LineItem): Promise<LineItem>;
38
+ configure(runtimeContext: LegacyRuntimeContext, configurableRamp: LineItem): Promise<LineItem>;
39
39
  static ɵfac: i0.ɵɵFactoryDeclaration<LineItemDirective, never>;
40
40
  static ɵdir: i0.ɵɵDirectiveDeclaration<LineItemDirective, "line-item", ["liApi"], {}, {}, never>;
41
41
  }
@@ -1,6 +1,6 @@
1
1
  import { PriceApiService, RampApiService } from '@veloce/api';
2
2
  import { LineItem } from '@veloce/core';
3
- import { ContextService } from '../../services/context.service';
3
+ import { ContextService } from '@veloce/sdk/core';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class VlRampDirective {
6
6
  private contextService;
@@ -19,8 +19,9 @@ import * as i17 from "@veloce/api";
19
19
  import * as i18 from "@veloce/elements";
20
20
  import * as i19 from "ngx-bootstrap/popover";
21
21
  import * as i20 from "@veloce/components";
22
+ import * as i21 from "@veloce/sdk/core";
22
23
  export declare class RuntimeExecutionModule {
23
24
  static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeExecutionModule, never>;
24
- static ɵmod: i0.ɵɵNgModuleDeclaration<RuntimeExecutionModule, [typeof i1.ExecutionSectionRendererComponent, typeof i2.ChildrenPlaceholderComponent, typeof i3.SectionScriptDirective, typeof i4.VeloPortDirective, typeof i4.LineItemDirective, typeof i4.VeloDropdownComponent, typeof i4.VeloQuantityButtonComponent, typeof i4.VeloQuantityComponent, typeof i5.VeloAttributeDirective, typeof i6.MultiselectComponent, typeof i7.VeloAttributeComponent, typeof i8.VeloPortRadioComponent, typeof i9.VeloTypeComponent, typeof i10.VeloPortDropdownComponent, typeof i11.VeloPortCheckBoxComponent, typeof i12.FederatedComponent, typeof i2.TemplateComponent, typeof i13.ContextProviderComponent], [typeof i14.CommonModule, typeof i15.FormsModule, typeof i15.ReactiveFormsModule, typeof i16.CoreModule, typeof i17.ApiModule, typeof i18.VeloceElementsModule, typeof i19.PopoverModule, typeof i20.LoaderModule], [typeof i15.FormsModule, typeof i15.ReactiveFormsModule, typeof i2.ChildrenPlaceholderComponent, typeof i3.SectionScriptDirective, typeof i4.LineItemDirective, typeof i4.VeloPortDirective, typeof i5.VeloAttributeDirective, typeof i6.MultiselectComponent, typeof i7.VeloAttributeComponent, typeof i8.VeloPortRadioComponent, typeof i9.VeloTypeComponent, typeof i10.VeloPortDropdownComponent, typeof i11.VeloPortCheckBoxComponent, typeof i12.FederatedComponent, typeof i2.TemplateComponent, typeof i13.ContextProviderComponent]>;
25
+ static ɵmod: i0.ɵɵNgModuleDeclaration<RuntimeExecutionModule, [typeof i1.ExecutionSectionRendererComponent, typeof i2.ChildrenPlaceholderComponent, typeof i3.SectionScriptDirective, typeof i4.VeloPortDirective, typeof i4.LineItemDirective, typeof i4.VeloDropdownComponent, typeof i4.VeloQuantityButtonComponent, typeof i4.VeloQuantityComponent, typeof i5.VeloAttributeDirective, typeof i6.MultiselectComponent, typeof i7.VeloAttributeComponent, typeof i8.VeloPortRadioComponent, typeof i9.VeloTypeComponent, typeof i10.VeloPortDropdownComponent, typeof i11.VeloPortCheckBoxComponent, typeof i12.FederatedComponent, typeof i2.TemplateComponent, typeof i13.ContextProviderComponent], [typeof i14.CommonModule, typeof i15.FormsModule, typeof i15.ReactiveFormsModule, typeof i16.CoreModule, typeof i17.ApiModule, typeof i18.VeloceElementsModule, typeof i19.PopoverModule, typeof i20.LoaderModule, typeof i21.SdkCoreModule], [typeof i15.FormsModule, typeof i15.ReactiveFormsModule, typeof i2.ChildrenPlaceholderComponent, typeof i3.SectionScriptDirective, typeof i4.LineItemDirective, typeof i4.VeloPortDirective, typeof i5.VeloAttributeDirective, typeof i6.MultiselectComponent, typeof i7.VeloAttributeComponent, typeof i8.VeloPortRadioComponent, typeof i9.VeloTypeComponent, typeof i10.VeloPortDropdownComponent, typeof i11.VeloPortCheckBoxComponent, typeof i12.FederatedComponent, typeof i2.TemplateComponent, typeof i13.ContextProviderComponent]>;
25
26
  static ɵinj: i0.ɵɵInjectorDeclaration<RuntimeExecutionModule>;
26
27
  }
@@ -10,8 +10,9 @@ import * as i8 from "@veloce/api";
10
10
  import * as i9 from "@veloce/elements";
11
11
  import * as i10 from "ngx-bootstrap/popover";
12
12
  import * as i11 from "@veloce/components";
13
+ import * as i12 from "@veloce/sdk/core";
13
14
  export declare class RuntimeModule {
14
15
  static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeModule, never>;
15
- static ɵmod: i0.ɵɵNgModuleDeclaration<RuntimeModule, [typeof i1.RuntimeComponent, typeof i2.RuntimePreviewComponent, typeof i3.SectionRendererComponent, typeof i4.ComponentPreviewComponent], [typeof i5.CommonModule, typeof i6.FormsModule, typeof i6.ReactiveFormsModule, typeof i7.CoreModule, typeof i8.ApiModule, typeof i9.VeloceElementsModule, typeof i10.PopoverModule, typeof i11.LoaderModule], [typeof i6.FormsModule, typeof i6.ReactiveFormsModule, typeof i1.RuntimeComponent, typeof i2.RuntimePreviewComponent, typeof i3.SectionRendererComponent, typeof i4.ComponentPreviewComponent]>;
16
+ static ɵmod: i0.ɵɵNgModuleDeclaration<RuntimeModule, [typeof i1.RuntimeComponent, typeof i2.RuntimePreviewComponent, typeof i3.SectionRendererComponent, typeof i4.ComponentPreviewComponent], [typeof i5.CommonModule, typeof i6.FormsModule, typeof i6.ReactiveFormsModule, typeof i7.CoreModule, typeof i8.ApiModule, typeof i9.VeloceElementsModule, typeof i10.PopoverModule, typeof i11.LoaderModule, typeof i12.SdkCoreModule], [typeof i6.FormsModule, typeof i6.ReactiveFormsModule, typeof i1.RuntimeComponent, typeof i2.RuntimePreviewComponent, typeof i3.SectionRendererComponent, typeof i4.ComponentPreviewComponent]>;
16
17
  static ɵinj: i0.ɵɵInjectorDeclaration<RuntimeModule>;
17
18
  }
@@ -1,14 +1,13 @@
1
1
  import { PriceApiService } from '@veloce/api';
2
2
  import { LineItem, PriceSummary } from '@veloce/core';
3
+ import { ContextService, QuoteDraftService } from '@veloce/sdk/core';
3
4
  import { Observable } from 'rxjs';
4
- import { ContextService } from './context.service';
5
- import { QuoteService } from './quote.service';
6
5
  import * as i0 from "@angular/core";
7
6
  export declare class ShoppingCartService {
8
7
  private priceApiService;
9
8
  private contextService;
10
9
  private quoteService;
11
- constructor(priceApiService: PriceApiService, contextService: ContextService, quoteService: QuoteService);
10
+ constructor(priceApiService: PriceApiService, contextService: ContextService, quoteService: QuoteDraftService);
12
11
  setCartExternally(currentState: LineItem): Observable<PriceSummary>;
13
12
  getCurrentState(): LineItem[] | undefined;
14
13
  static ɵfac: i0.ɵɵFactoryDeclaration<ShoppingCartService, never>;
@@ -1,17 +1,16 @@
1
1
  import { ConfigurationApiService } from '@veloce/api';
2
2
  import { LineItem } from '@veloce/core';
3
- import { Observable } from 'rxjs';
4
- import { QuoteStates } from '../types';
5
- import { RuntimeContext } from '../types/runtime-context.types';
6
- import { ContextService } from './context.service';
3
+ import { ContextService, QuoteStates } from '@veloce/sdk/core';
7
4
  import { DialogService } from 'primeng/dynamicdialog';
5
+ import { Observable } from 'rxjs';
6
+ import { LegacyRuntimeContext } from '../types';
8
7
  import * as i0 from "@angular/core";
9
8
  export declare class ConfigurationService {
10
9
  private configurationApiService;
11
10
  private contextService;
12
11
  private dialogService;
13
12
  constructor(configurationApiService: ConfigurationApiService, contextService: ContextService, dialogService: DialogService);
14
- configure(runtimeContext: RuntimeContext, states: QuoteStates, resolve?: boolean): Observable<LineItem>;
13
+ configure(runtimeContext: LegacyRuntimeContext, states: QuoteStates, resolve?: boolean): Observable<LineItem>;
15
14
  private createRequest;
16
15
  private getDefaultLineItem;
17
16
  private showInactiveProductsConfirmation;
@@ -1,5 +1,3 @@
1
- export { ContextService } from './context.service';
2
1
  export { CurrentStateService } from './current-state.service';
3
- export { QuoteService } from './quote.service';
4
2
  export { RuntimeContextService } from './runtime-context.service';
5
3
  export { RuntimeService } from './runtime.service';
@@ -1,15 +1,15 @@
1
1
  import { ConfigurationApiService } from '@veloce/api';
2
+ import { ContextService } from '@veloce/sdk/core';
2
3
  import { MessageService } from 'primeng/api';
3
4
  import { Observable } from 'rxjs';
4
- import { RuntimeContext } from '../types/runtime-context.types';
5
- import { ContextService } from './context.service';
5
+ import { LegacyRuntimeContext } from '../types';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class RuntimeContextService {
8
8
  private configurationApiService;
9
9
  private messageService;
10
10
  private contextService;
11
11
  constructor(configurationApiService: ConfigurationApiService, messageService: MessageService, contextService: ContextService);
12
- getRuntimeContext(productId: string, offeringId?: string): Observable<RuntimeContext>;
12
+ getRuntimeContext(productId: string, offeringId?: string): Observable<LegacyRuntimeContext>;
13
13
  private getUIDefinition;
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeContextService, never>;
15
15
  static ɵprov: i0.ɵɵInjectableDeclaration<RuntimeContextService>;
@@ -1,10 +1,9 @@
1
1
  import { HttpErrorResponse } from '@angular/common/http';
2
2
  import { LineItem, UIDefinition } from '@veloce/core';
3
+ import { ContextService, QuoteStates } from '@veloce/sdk/core';
3
4
  import { MessageService } from 'primeng/api';
4
- import { QuoteStates } from '../types';
5
- import { RuntimeContext } from '../types/runtime-context.types';
5
+ import { LegacyRuntimeContext } from '../types';
6
6
  import { ConfigurationService } from './configuration.service';
7
- import { ContextService } from './context.service';
8
7
  import * as i0 from "@angular/core";
9
8
  export declare class RuntimeService {
10
9
  private configurationService;
@@ -27,14 +26,14 @@ export declare class RuntimeService {
27
26
  onUIRefreshEvent: import("rxjs").Observable<void>;
28
27
  constructor(configurationService: ConfigurationService, contextService: ContextService, messageService: MessageService);
29
28
  private displayErrorMessage;
30
- startRuntime(context: RuntimeContext, states: QuoteStates, resolve?: boolean): void;
29
+ startRuntime(context: LegacyRuntimeContext, states: QuoteStates, resolve?: boolean): void;
31
30
  updateRuntime(states: QuoteStates, configurationContextProperties?: {
32
31
  [index: string]: string;
33
32
  }): void;
34
33
  stopRuntime(solutionLineItem: LineItem): void;
35
34
  cancelRuntime(): void;
36
- setRuntimeContext(runtimeContext: RuntimeContext): void;
37
- getRuntimeContext(): RuntimeContext | undefined;
35
+ setRuntimeContext(runtimeContext: LegacyRuntimeContext): void;
36
+ getRuntimeContext(): LegacyRuntimeContext | undefined;
38
37
  solutionProcessed(lineItem: LineItem): void;
39
38
  refreshUI(uiDefinition: UIDefinition): void;
40
39
  private updateRuntimeContext;
@@ -1,2 +1 @@
1
- export * from './runtime-context.types';
2
1
  export * from './runtime.types';
@@ -1,4 +1,5 @@
1
- import { LineItem } from '@veloce/core';
1
+ import { LineItem, UIDefinition } from '@veloce/core';
2
+ import { RuntimeContext } from '@veloce/sdk/core';
2
3
  import { Dictionary } from 'lodash';
3
4
  export interface SolutionReadyAware {
4
5
  onSolutionReady(lineItem: LineItem): void;
@@ -6,11 +7,6 @@ export interface SolutionReadyAware {
6
7
  export interface SolutionUpdatedAware {
7
8
  onSolutionUpdated(lineItem: LineItem): void;
8
9
  }
9
- export interface QuoteStates {
10
- configurableRamp?: LineItem;
11
- currentState?: LineItem[];
12
- asset?: LineItem;
13
- }
14
10
  export interface UpdateData {
15
11
  id: string;
16
12
  action: string;
@@ -18,3 +14,6 @@ export interface UpdateData {
18
14
  selectedValueOptions?: string[];
19
15
  options?: Dictionary<any>;
20
16
  }
17
+ export interface LegacyRuntimeContext extends Omit<RuntimeContext, 'uiDefinition'> {
18
+ uiDefinition?: UIDefinition;
19
+ }
@@ -0,0 +1,13 @@
1
+ import { DynamicDialogConfig, DynamicDialogRef } from 'primeng/dynamicdialog';
2
+ import { FlowDialogConfig } from './dialog.types';
3
+ import * as i0 from "@angular/core";
4
+ export declare class FlowDialogComponent {
5
+ private dialogConfig;
6
+ private ref;
7
+ config: FlowDialogConfig;
8
+ constructor(dialogConfig: DynamicDialogConfig, ref: DynamicDialogRef);
9
+ cancelHandler(): void;
10
+ confirmHandler(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<FlowDialogComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<FlowDialogComponent, "vl-flow-dialog", never, {}, {}, never, never>;
13
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./dialog.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "primeng/button";
5
+ export declare class FlowDialogModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<FlowDialogModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FlowDialogModule, [typeof i1.FlowDialogComponent], [typeof i2.CommonModule, typeof i3.ButtonModule], [typeof i1.FlowDialogComponent]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<FlowDialogModule>;
9
+ }
@@ -0,0 +1,6 @@
1
+ export interface FlowDialogConfig {
2
+ title: string;
3
+ description?: string;
4
+ primaryButton: string;
5
+ secondaryButton?: string;
6
+ }
@@ -1,7 +1,7 @@
1
1
  import { AfterViewInit, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
2
2
  import { FormGroup } from '@angular/forms';
3
3
  import { BaseHttpService } from '@veloce/core';
4
- import { FlowConfigurationService } from '@veloce/sdk/cms';
4
+ import { FlowConfigurationService } from '@veloce/sdk/core';
5
5
  import { OverlayPanel } from 'primeng/overlaypanel';
6
6
  import { Observable } from 'rxjs';
7
7
  import { FlowRouterService } from '../../../services/flow-router.service';
@@ -1,27 +1,31 @@
1
1
  import { OnDestroy, OnInit } from '@angular/core';
2
- import { SalesforceApiService } from '@veloce/api';
2
+ import { QuoteApiService, SalesforceApiService } from '@veloce/api';
3
3
  import { ContextProperties } from '@veloce/core';
4
- import { FlowConfigurationService } from '@veloce/sdk/cms';
5
- import { ContextService, QuoteService } from '@veloce/sdk/runtime';
4
+ import { ContextService, FlowConfigurationService, QuoteDraftService } from '@veloce/sdk/core';
6
5
  import { BehaviorSubject, Observable } from 'rxjs';
7
6
  import { FlowRouterService } from '../../services/flow-router.service';
7
+ import { FlowDialogService } from '../../services/fow-dialog.service';
8
8
  import { HeaderObjectDetails, HeaderProduct } from './header.types';
9
9
  import * as i0 from "@angular/core";
10
10
  export declare class FlowHeaderComponent implements OnInit, OnDestroy {
11
11
  private context;
12
- private quoteService;
12
+ private quoteDraftService;
13
+ private quoteApiService;
13
14
  private sfApiService;
14
15
  private flowConfiguration;
15
16
  private routerService;
17
+ private dialogService;
16
18
  objectName: string;
17
19
  contextProperties: ContextProperties;
18
20
  objectDetails$: BehaviorSubject<HeaderObjectDetails>;
19
21
  products$: Observable<HeaderProduct[]>;
20
22
  isConfigurationRoute$: Observable<boolean>;
21
23
  isCartRoute$: Observable<boolean>;
24
+ isSaveInProgress$: BehaviorSubject<boolean>;
22
25
  private mode?;
26
+ private isEditMode;
23
27
  private destroyed$;
24
- constructor(context: ContextService, quoteService: QuoteService, sfApiService: SalesforceApiService, flowConfiguration: FlowConfigurationService, routerService: FlowRouterService);
28
+ constructor(context: ContextService, quoteDraftService: QuoteDraftService, quoteApiService: QuoteApiService, sfApiService: SalesforceApiService, flowConfiguration: FlowConfigurationService, routerService: FlowRouterService, dialogService: FlowDialogService);
25
29
  ngOnInit(): void;
26
30
  ngOnDestroy(): void;
27
31
  get isAccountMode(): boolean;
@@ -29,6 +33,7 @@ export declare class FlowHeaderComponent implements OnInit, OnDestroy {
29
33
  back(): void;
30
34
  getSalesforceObjectLink(objectId?: string): string;
31
35
  navigateToShoppingCart(): void;
36
+ saveButtonClickHandler(): void;
32
37
  private queryName$;
33
38
  private populateObjectDetails;
34
39
  private generateProducts;
@@ -1,5 +1,5 @@
1
1
  import { OnDestroy } from '@angular/core';
2
- import { ContextService } from '@veloce/sdk/runtime';
2
+ import { ContextService } from '@veloce/sdk/core';
3
3
  import { Observable } from 'rxjs';
4
4
  import { FlowService } from './services';
5
5
  import { FlowRouterService } from './services/flow-router.service';
@@ -6,8 +6,10 @@ import * as i4 from "@veloce/api";
6
6
  import * as i5 from "@veloce/sdk/cms";
7
7
  import * as i6 from "@veloce/components";
8
8
  import * as i7 from "./components/header/header.module";
9
+ import * as i8 from "./components/dialog/dialog.module";
10
+ import * as i9 from "@veloce/sdk/core";
9
11
  export declare class FlowModule {
10
12
  static ɵfac: i0.ɵɵFactoryDeclaration<FlowModule, never>;
11
- 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], never>;
13
+ 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], never>;
12
14
  static ɵinj: i0.ɵɵInjectorDeclaration<FlowModule>;
13
15
  }
@@ -2,8 +2,7 @@ import { FormGroup } from '@angular/forms';
2
2
  import { ActivatedRoute, Router } from '@angular/router';
3
3
  import { FlowsApiService } from '@veloce/api';
4
4
  import { FlowProperties } from '@veloce/core';
5
- import { FlowConfigurationService } from '@veloce/sdk/cms';
6
- import { ContextService, QuoteService } from '@veloce/sdk/runtime';
5
+ import { ContextService, FlowConfigurationService, QuoteDraftService } from '@veloce/sdk/core';
7
6
  import { Observable } from 'rxjs';
8
7
  import * as i0 from "@angular/core";
9
8
  interface FlowPropertiesExt extends FlowProperties {
@@ -15,12 +14,12 @@ export declare class DebugComponent {
15
14
  private activatedRoute;
16
15
  private context;
17
16
  private flowConfiguration;
18
- private quoteService;
17
+ private quoteDraftService;
19
18
  readonly objectNames: string[];
20
19
  form: FormGroup;
21
20
  selectedFlow?: FlowPropertiesExt;
22
21
  flows$: Observable<FlowPropertiesExt[]>;
23
- constructor(flowsApiService: FlowsApiService, router: Router, activatedRoute: ActivatedRoute, context: ContextService, flowConfiguration: FlowConfigurationService, quoteService: QuoteService);
22
+ constructor(flowsApiService: FlowsApiService, router: Router, activatedRoute: ActivatedRoute, context: ContextService, flowConfiguration: FlowConfigurationService, quoteDraftService: QuoteDraftService);
24
23
  runFlow(): void;
25
24
  static ɵfac: i0.ɵɵFactoryDeclaration<DebugComponent, never>;
26
25
  static ɵcmp: i0.ɵɵComponentDeclaration<DebugComponent, "vl-flow-debug", never, {}, {}, never, never>;
@@ -2,12 +2,13 @@ import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { ActivatedRoute } from '@angular/router';
3
3
  import { QuoteApiService } from '@veloce/api';
4
4
  import { LineItem } from '@veloce/core';
5
- import { ContextService, CurrentStateService, QuoteService, RuntimeContextService, RuntimeService, SolutionReadyAware, SolutionUpdatedAware } from '@veloce/sdk/runtime';
5
+ import { ContextService, QuoteDraftService } from '@veloce/sdk/core';
6
+ import { CurrentStateService, RuntimeContextService, RuntimeService, SolutionReadyAware, SolutionUpdatedAware } from '@veloce/sdk/runtime';
6
7
  import { FlowCustomization } from '../../types';
7
8
  import * as i0 from "@angular/core";
8
9
  export declare class LegacyProductComponent implements OnInit, OnDestroy, SolutionUpdatedAware, SolutionReadyAware {
9
10
  private route;
10
- private quoteService;
11
+ private quoteDraftService;
11
12
  private quoteApiService;
12
13
  private contextService;
13
14
  private runtimeContextService;
@@ -16,7 +17,7 @@ export declare class LegacyProductComponent implements OnInit, OnDestroy, Soluti
16
17
  private customizationService?;
17
18
  private destroyed$;
18
19
  private assets?;
19
- constructor(route: ActivatedRoute, quoteService: QuoteService, quoteApiService: QuoteApiService, contextService: ContextService, runtimeContextService: RuntimeContextService, runtimeService: RuntimeService, currentStateService: CurrentStateService, customizationService?: FlowCustomization | undefined);
20
+ constructor(route: ActivatedRoute, quoteDraftService: QuoteDraftService, quoteApiService: QuoteApiService, contextService: ContextService, runtimeContextService: RuntimeContextService, runtimeService: RuntimeService, currentStateService: CurrentStateService, customizationService?: FlowCustomization | undefined);
20
21
  ngOnInit(): void;
21
22
  ngOnDestroy(): void;
22
23
  onSolutionReady(lineItem: LineItem): void;
@@ -1,7 +1,6 @@
1
1
  import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { ActivatedRoute } from '@angular/router';
3
- import { ConfigurationRuntimeService, ConfigurationService, FlowConfigurationService, UIDefinition } from '@veloce/sdk/cms';
4
- import { ContextService, QuoteService } from '@veloce/sdk/runtime';
3
+ import { ConfigurationRuntimeService, ConfigurationService, ContextService, FlowConfigurationService, QuoteDraftService, UIDefinition } from '@veloce/sdk/core';
5
4
  import { MessageService } from 'primeng/api';
6
5
  import { BehaviorSubject } from 'rxjs';
7
6
  import { FlowCustomization } from '../../types/flow-customization.types';
@@ -15,14 +14,14 @@ export declare class ProductComponent implements OnInit, OnDestroy {
15
14
  private runtimeService;
16
15
  private conigurationService;
17
16
  private flowConfigurationService;
18
- private quoteService;
17
+ private quoteDraftService;
19
18
  private route;
20
19
  private messageService;
21
20
  private customizationService?;
22
21
  private destroy$;
23
22
  uiDefinition?: UIDefinition;
24
23
  state$: BehaviorSubject<State>;
25
- constructor(contextService: ContextService, runtimeService: ConfigurationRuntimeService, conigurationService: ConfigurationService, flowConfigurationService: FlowConfigurationService, quoteService: QuoteService, route: ActivatedRoute, messageService: MessageService, customizationService?: FlowCustomization | undefined);
24
+ constructor(contextService: ContextService, runtimeService: ConfigurationRuntimeService, conigurationService: ConfigurationService, flowConfigurationService: FlowConfigurationService, quoteDraftService: QuoteDraftService, route: ActivatedRoute, messageService: MessageService, customizationService?: FlowCustomization | undefined);
26
25
  ngOnInit(): void;
27
26
  ngOnDestroy(): void;
28
27
  private customize;
@@ -1,7 +1,7 @@
1
1
  import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { UITemplatesApiService } from '@veloce/api';
3
3
  import { ToastService } from '@veloce/components';
4
- import { UIDefinition } from '@veloce/sdk/cms';
4
+ import { UIDefinition } from '@veloce/sdk/core';
5
5
  import { BehaviorSubject } from 'rxjs';
6
6
  import { FlowCustomization } from '../../types';
7
7
  import * as i0 from "@angular/core";
@@ -1,6 +1,6 @@
1
1
  import { ActivatedRouteSnapshot, Resolve, Router } from '@angular/router';
2
2
  import { ConfigurationContext } from '@veloce/core';
3
- import { ContextService } from '@veloce/sdk/runtime';
3
+ import { ContextService } from '@veloce/sdk/core';
4
4
  import { Observable } from 'rxjs';
5
5
  import { FlowRouterService } from '../services/flow-router.service';
6
6
  import * as i0 from "@angular/core";
@@ -1,16 +1,15 @@
1
1
  import { ActivatedRouteSnapshot, Resolve, Router } from '@angular/router';
2
- import { FlowConfigurationService } from '@veloce/sdk/cms';
3
- import { ContextService, QuoteService } from '@veloce/sdk/runtime';
2
+ import { ContextService, FlowConfigurationService, QuoteDraftService } from '@veloce/sdk/core';
4
3
  import { Observable } from 'rxjs';
5
4
  import { FlowRouterService } from '../services/flow-router.service';
6
5
  import * as i0 from "@angular/core";
7
6
  export declare class QuoteResolver implements Resolve<void | boolean> {
8
7
  private router;
9
- private quoteService;
8
+ private quoteDraftService;
10
9
  private routerService;
11
10
  private contextService;
12
11
  private flowConfiguration;
13
- constructor(router: Router, quoteService: QuoteService, routerService: FlowRouterService, contextService: ContextService, flowConfiguration: FlowConfigurationService);
12
+ constructor(router: Router, quoteDraftService: QuoteDraftService, routerService: FlowRouterService, contextService: ContextService, flowConfiguration: FlowConfigurationService);
14
13
  private handleError;
15
14
  private initFlow$;
16
15
  resolve(route: ActivatedRouteSnapshot): Observable<void | boolean>;
@@ -1,5 +1,5 @@
1
1
  import { ActivatedRoute, ActivatedRouteSnapshot, Params, Router } from '@angular/router';
2
- import { ContextService } from '@veloce/sdk/runtime';
2
+ import { ContextService } from '@veloce/sdk/core';
3
3
  import { Observable } from 'rxjs';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class FlowRouterService {
@@ -0,0 +1,17 @@
1
+ import { ContextService } from '@veloce/sdk/core';
2
+ import { DialogService } from 'primeng/dynamicdialog';
3
+ import { Observable } from 'rxjs';
4
+ import { FlowDialogConfig } from '../components/dialog/dialog.types';
5
+ import * as i0 from "@angular/core";
6
+ export declare class FlowDialogService {
7
+ private dialogService;
8
+ private contextService;
9
+ constructor(dialogService: DialogService, contextService: ContextService);
10
+ show(config: FlowDialogConfig): Observable<boolean>;
11
+ showEmptyCartDialog(): Observable<boolean>;
12
+ showReadonlyModeDialog(): Observable<boolean>;
13
+ showQuoteReadonlyModeDialog(): Observable<boolean>;
14
+ showAccountNoChangesDialog(): Observable<boolean>;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<FlowDialogService, never>;
16
+ static ɵprov: i0.ɵɵInjectableDeclaration<FlowDialogService>;
17
+ }
@@ -1,6 +1,6 @@
1
1
  import { InjectionToken } from '@angular/core';
2
2
  import { TemplateComponentWithAttachments, UIDefinition as LegacyUIDefinition } from '@veloce/core';
3
- import { UIDefinition } from '@veloce/sdk/cms';
3
+ import { UIDefinition } from '@veloce/sdk/core';
4
4
  import { Observable } from 'rxjs';
5
5
  export declare const FLOW_CUSTOMIZATION: InjectionToken<FlowCustomization>;
6
6
  export interface FlowCustomization {
@@ -1 +1,3 @@
1
+ import { ConfigurationContext } from '@veloce/core';
1
2
  export declare const getFlowObjectIdPropertyName: (objectName?: string | undefined) => "accountId" | "orderId" | "quoteId";
3
+ export declare const getIsEditMode: (context: ConfigurationContext) => boolean;
@@ -1,15 +0,0 @@
1
- import { ContextProperties, RuntimeModel } from '@veloce/core';
2
- import { RuntimeMode } from '@veloce/sdk/runtime';
3
- import { UIDefinition } from '../../../types';
4
- export interface RuntimeContext {
5
- modelId: string;
6
- runtimeMode: RuntimeMode;
7
- runtimeModel: RuntimeModel;
8
- uiDefinition?: UIDefinition;
9
- productId?: string;
10
- productName?: string;
11
- productType?: string;
12
- properties?: ContextProperties;
13
- offeringId?: string;
14
- offeringInstanceId?: string;
15
- }
@@ -1,37 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { ConfigurationApiService, ContextApiService, ProductModelApiService } from '@veloce/api';
3
- import { ContextService } from '@veloce/sdk/runtime';
4
- import { ConfigurationRuntimeService } from './services/configuration-runtime.service';
5
- import { ConfigurationService } from './services/configuration.service';
6
- import { RuntimeContextService } from './services/runtime-context.service';
7
- import { ConfirmationDialogModule } from '@veloce/components';
8
- import * as i0 from "@angular/core";
9
- export class ConfigurationModule {
10
- }
11
- ConfigurationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ConfigurationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
12
- ConfigurationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ConfigurationModule, imports: [ConfirmationDialogModule] });
13
- ConfigurationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ConfigurationModule, providers: [
14
- ContextService,
15
- ContextApiService,
16
- ProductModelApiService,
17
- ConfigurationApiService,
18
- ConfigurationRuntimeService,
19
- RuntimeContextService,
20
- ConfigurationService,
21
- ], imports: [[ConfirmationDialogModule]] });
22
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ConfigurationModule, decorators: [{
23
- type: NgModule,
24
- args: [{
25
- imports: [ConfirmationDialogModule],
26
- providers: [
27
- ContextService,
28
- ContextApiService,
29
- ProductModelApiService,
30
- ConfigurationApiService,
31
- ConfigurationRuntimeService,
32
- RuntimeContextService,
33
- ConfigurationService,
34
- ],
35
- }]
36
- }] });
37
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlndXJhdGlvbi5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3Nkay9jbXMvbW9kdWxlcy9jb25maWd1cmF0aW9uL2NvbmZpZ3VyYXRpb24ubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLHVCQUF1QixFQUFFLGlCQUFpQixFQUFFLHNCQUFzQixFQUFFLE1BQU0sYUFBYSxDQUFDO0FBQ2pHLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUNyRCxPQUFPLEVBQUUsMkJBQTJCLEVBQUUsTUFBTSwwQ0FBMEMsQ0FBQztBQUN2RixPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSxrQ0FBa0MsQ0FBQztBQUN4RSxPQUFPLEVBQUUscUJBQXFCLEVBQUUsTUFBTSxvQ0FBb0MsQ0FBQztBQUMzRSxPQUFPLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQzs7QUFjOUQsTUFBTSxPQUFPLG1CQUFtQjs7aUhBQW5CLG1CQUFtQjtrSEFBbkIsbUJBQW1CLFlBWHBCLHdCQUF3QjtrSEFXdkIsbUJBQW1CLGFBVm5CO1FBQ1QsY0FBYztRQUNkLGlCQUFpQjtRQUNqQixzQkFBc0I7UUFDdEIsdUJBQXVCO1FBQ3ZCLDJCQUEyQjtRQUMzQixxQkFBcUI7UUFDckIsb0JBQW9CO0tBQ3JCLFlBVFEsQ0FBQyx3QkFBd0IsQ0FBQzs0RkFXeEIsbUJBQW1CO2tCQVovQixRQUFRO21CQUFDO29CQUNSLE9BQU8sRUFBRSxDQUFDLHdCQUF3QixDQUFDO29CQUNuQyxTQUFTLEVBQUU7d0JBQ1QsY0FBYzt3QkFDZCxpQkFBaUI7d0JBQ2pCLHNCQUFzQjt3QkFDdEIsdUJBQXVCO3dCQUN2QiwyQkFBMkI7d0JBQzNCLHFCQUFxQjt3QkFDckIsb0JBQW9CO3FCQUNyQjtpQkFDRiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE5nTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBDb25maWd1cmF0aW9uQXBpU2VydmljZSwgQ29udGV4dEFwaVNlcnZpY2UsIFByb2R1Y3RNb2RlbEFwaVNlcnZpY2UgfSBmcm9tICdAdmVsb2NlL2FwaSc7XG5pbXBvcnQgeyBDb250ZXh0U2VydmljZSB9IGZyb20gJ0B2ZWxvY2Uvc2RrL3J1bnRpbWUnO1xuaW1wb3J0IHsgQ29uZmlndXJhdGlvblJ1bnRpbWVTZXJ2aWNlIH0gZnJvbSAnLi9zZXJ2aWNlcy9jb25maWd1cmF0aW9uLXJ1bnRpbWUuc2VydmljZSc7XG5pbXBvcnQgeyBDb25maWd1cmF0aW9uU2VydmljZSB9IGZyb20gJy4vc2VydmljZXMvY29uZmlndXJhdGlvbi5zZXJ2aWNlJztcbmltcG9ydCB7IFJ1bnRpbWVDb250ZXh0U2VydmljZSB9IGZyb20gJy4vc2VydmljZXMvcnVudGltZS1jb250ZXh0LnNlcnZpY2UnO1xuaW1wb3J0IHsgQ29uZmlybWF0aW9uRGlhbG9nTW9kdWxlIH0gZnJvbSAnQHZlbG9jZS9jb21wb25lbnRzJztcblxuQE5nTW9kdWxlKHtcbiAgaW1wb3J0czogW0NvbmZpcm1hdGlvbkRpYWxvZ01vZHVsZV0sXG4gIHByb3ZpZGVyczogW1xuICAgIENvbnRleHRTZXJ2aWNlLFxuICAgIENvbnRleHRBcGlTZXJ2aWNlLFxuICAgIFByb2R1Y3RNb2RlbEFwaVNlcnZpY2UsXG4gICAgQ29uZmlndXJhdGlvbkFwaVNlcnZpY2UsXG4gICAgQ29uZmlndXJhdGlvblJ1bnRpbWVTZXJ2aWNlLFxuICAgIFJ1bnRpbWVDb250ZXh0U2VydmljZSxcbiAgICBDb25maWd1cmF0aW9uU2VydmljZSxcbiAgXSxcbn0pXG5leHBvcnQgY2xhc3MgQ29uZmlndXJhdGlvbk1vZHVsZSB7fVxuIl19
@@ -1,10 +0,0 @@
1
- import { UUID } from '@veloce/core';
2
- export const getDefaultLineItem = (context, uiDefinitionProperties) => {
3
- var _a, _b, _c;
4
- const id = UUID.UUID();
5
- const lineItem = Object.assign({ id, type: (_a = uiDefinitionProperties.rootType) !== null && _a !== void 0 ? _a : '', cfgStatus: 'Default', actionCode: 'ADD', qty: 1, productName: ((_b = context.properties) === null || _b === void 0 ? void 0 : _b.displayName) || context.productName, productId: (_c = context.productId) !== null && _c !== void 0 ? _c : '' }, (context.offeringId
6
- ? { offeringId: context.offeringId, offeringInstanceId: context.offeringInstanceId || id }
7
- : {}));
8
- return lineItem;
9
- };
10
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVscGVycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc2RrL2Ntcy9tb2R1bGVzL2NvbmZpZ3VyYXRpb24vaGVscGVycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQVksSUFBSSxFQUFFLE1BQU0sY0FBYyxDQUFDO0FBSTlDLE1BQU0sQ0FBQyxNQUFNLGtCQUFrQixHQUFHLENBQUMsT0FBdUIsRUFBRSxzQkFBeUMsRUFBWSxFQUFFOztJQUNqSCxNQUFNLEVBQUUsR0FBRyxJQUFJLENBQUMsSUFBSSxFQUFFLENBQUM7SUFFdkIsTUFBTSxRQUFRLEdBQWEsZ0JBQ3pCLEVBQUUsRUFDRixJQUFJLEVBQUUsTUFBQSxzQkFBc0IsQ0FBQyxRQUFRLG1DQUFJLEVBQUUsRUFDM0MsU0FBUyxFQUFFLFNBQVMsRUFDcEIsVUFBVSxFQUFFLEtBQUssRUFDakIsR0FBRyxFQUFFLENBQUMsRUFDTixXQUFXLEVBQUUsQ0FBQSxNQUFBLE9BQU8sQ0FBQyxVQUFVLDBDQUFFLFdBQVcsS0FBSSxPQUFPLENBQUMsV0FBVyxFQUNuRSxTQUFTLEVBQUUsTUFBQSxPQUFPLENBQUMsU0FBUyxtQ0FBSSxFQUFFLElBQy9CLENBQUMsT0FBTyxDQUFDLFVBQVU7UUFDcEIsQ0FBQyxDQUFDLEVBQUUsVUFBVSxFQUFFLE9BQU8sQ0FBQyxVQUFVLEVBQUUsa0JBQWtCLEVBQUUsT0FBTyxDQUFDLGtCQUFrQixJQUFJLEVBQUUsRUFBRTtRQUMxRixDQUFDLENBQUMsRUFBRSxDQUFDLENBQ0ksQ0FBQztJQUVkLE9BQU8sUUFBUSxDQUFDO0FBQ2xCLENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IExpbmVJdGVtLCBVVUlEIH0gZnJvbSAnQHZlbG9jZS9jb3JlJztcbmltcG9ydCB7IFVJRGVmaW5pdGlvblByb3BzIH0gZnJvbSAnLi4vLi4vdHlwZXMvdWktZGVmaW5pdGlvbi50eXBlcyc7XG5pbXBvcnQgeyBSdW50aW1lQ29udGV4dCB9IGZyb20gJy4vdHlwZXMvY29uZmlndXJhdGlvbi50eXBlcyc7XG5cbmV4cG9ydCBjb25zdCBnZXREZWZhdWx0TGluZUl0ZW0gPSAoY29udGV4dDogUnVudGltZUNvbnRleHQsIHVpRGVmaW5pdGlvblByb3BlcnRpZXM6IFVJRGVmaW5pdGlvblByb3BzKTogTGluZUl0ZW0gPT4ge1xuICBjb25zdCBpZCA9IFVVSUQuVVVJRCgpO1xuXG4gIGNvbnN0IGxpbmVJdGVtOiBMaW5lSXRlbSA9IHtcbiAgICBpZCxcbiAgICB0eXBlOiB1aURlZmluaXRpb25Qcm9wZXJ0aWVzLnJvb3RUeXBlID8/ICcnLFxuICAgIGNmZ1N0YXR1czogJ0RlZmF1bHQnLFxuICAgIGFjdGlvbkNvZGU6ICdBREQnLFxuICAgIHF0eTogMSxcbiAgICBwcm9kdWN0TmFtZTogY29udGV4dC5wcm9wZXJ0aWVzPy5kaXNwbGF5TmFtZSB8fCBjb250ZXh0LnByb2R1Y3ROYW1lLFxuICAgIHByb2R1Y3RJZDogY29udGV4dC5wcm9kdWN0SWQgPz8gJycsXG4gICAgLi4uKGNvbnRleHQub2ZmZXJpbmdJZFxuICAgICAgPyB7IG9mZmVyaW5nSWQ6IGNvbnRleHQub2ZmZXJpbmdJZCwgb2ZmZXJpbmdJbnN0YW5jZUlkOiBjb250ZXh0Lm9mZmVyaW5nSW5zdGFuY2VJZCB8fCBpZCB9XG4gICAgICA6IHt9KSxcbiAgfSBhcyBMaW5lSXRlbTtcblxuICByZXR1cm4gbGluZUl0ZW07XG59O1xuIl19
@@ -1,6 +0,0 @@
1
- export * from './helpers';
2
- export * from './services/configuration-runtime.service';
3
- export * from './services/configuration.service';
4
- export * from './types/configuration-runtime.types';
5
- export * from './types/configuration.types';
6
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3Nkay9jbXMvbW9kdWxlcy9jb25maWd1cmF0aW9uL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsV0FBVyxDQUFDO0FBQzFCLGNBQWMsMENBQTBDLENBQUM7QUFDekQsY0FBYyxrQ0FBa0MsQ0FBQztBQUNqRCxjQUFjLHFDQUFxQyxDQUFDO0FBQ3BELGNBQWMsNkJBQTZCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2hlbHBlcnMnO1xuZXhwb3J0ICogZnJvbSAnLi9zZXJ2aWNlcy9jb25maWd1cmF0aW9uLXJ1bnRpbWUuc2VydmljZSc7XG5leHBvcnQgKiBmcm9tICcuL3NlcnZpY2VzL2NvbmZpZ3VyYXRpb24uc2VydmljZSc7XG5leHBvcnQgKiBmcm9tICcuL3R5cGVzL2NvbmZpZ3VyYXRpb24tcnVudGltZS50eXBlcyc7XG5leHBvcnQgKiBmcm9tICcuL3R5cGVzL2NvbmZpZ3VyYXRpb24udHlwZXMnO1xuIl19