@veloceapps/sdk 6.0.0-6 → 6.0.0-61

Sign up to get free protection for your applications and to get access to all the features.
Files changed (221) hide show
  1. package/bundles/veloceapps-sdk-cms.umd.js +1248 -830
  2. package/bundles/veloceapps-sdk-cms.umd.js.map +1 -1
  3. package/bundles/veloceapps-sdk-core.umd.js +803 -696
  4. package/bundles/veloceapps-sdk-core.umd.js.map +1 -1
  5. package/bundles/veloceapps-sdk-runtime.umd.js +209 -142
  6. package/bundles/veloceapps-sdk-runtime.umd.js.map +1 -1
  7. package/bundles/veloceapps-sdk.umd.js +371 -299
  8. package/bundles/veloceapps-sdk.umd.js.map +1 -1
  9. package/cms/cms.actions.d.ts +2 -4
  10. package/cms/components/element-children/element-children.component.d.ts +13 -3
  11. package/cms/components/element-children/element-children.module.d.ts +4 -2
  12. package/cms/components/element-drop-handle/element-drop-handle.component.d.ts +12 -0
  13. package/cms/components/element-drop-handle/element-drop-handle.module.d.ts +9 -0
  14. package/cms/components/element-renderer/element-renderer.component.d.ts +3 -3
  15. package/cms/components/preview/index.d.ts +1 -0
  16. package/cms/components/preview/preview.component.d.ts +9 -8
  17. package/cms/components/preview/preview.module.d.ts +2 -1
  18. package/cms/components/preview/preview.types.d.ts +11 -0
  19. package/cms/index.d.ts +2 -0
  20. package/cms/launcher.module.d.ts +3 -1
  21. package/cms/modules/migrations/index.d.ts +2 -0
  22. package/cms/modules/migrations/migrations.d.ts +2 -0
  23. package/cms/modules/migrations/migrations.module.d.ts +6 -0
  24. package/cms/modules/migrations/services/migrations.service.d.ts +10 -0
  25. package/cms/modules/migrations/types/migrations.types.d.ts +2 -0
  26. package/cms/modules/runtime/index.d.ts +2 -0
  27. package/cms/modules/runtime/runtime.module.d.ts +8 -0
  28. package/cms/modules/runtime/services/compilation.service.d.ts +18 -0
  29. package/cms/modules/runtime/services/runtime-editor.service.d.ts +18 -0
  30. package/cms/modules/runtime/services/runtime.service.d.ts +27 -0
  31. package/cms/modules/runtime/tokens.d.ts +3 -0
  32. package/cms/{types → modules/runtime/types}/compilation.types.d.ts +1 -1
  33. package/cms/modules/runtime/types/runtime.actions.d.ts +9 -0
  34. package/cms/services/index.d.ts +0 -1
  35. package/cms/services/io-provider.service.d.ts +3 -3
  36. package/cms/types/common.types.d.ts +1 -1
  37. package/cms/types/configuration.types.d.ts +1 -0
  38. package/cms/types/index.d.ts +1 -1
  39. package/cms/utils/elements-resolver.d.ts +3 -2
  40. package/cms/utils/index.d.ts +1 -0
  41. package/cms/utils/path.utils.d.ts +0 -1
  42. package/cms/utils/ui-definition.utils.d.ts +6 -0
  43. package/cms/vendor-map.d.ts +40 -26
  44. package/core/modules/configuration/services/configuration-runtime.service.d.ts +2 -4
  45. package/core/modules/configuration/services/configuration.service.d.ts +6 -4
  46. package/core/modules/configuration/types/configuration-runtime.types.d.ts +0 -2
  47. package/core/modules/flow-configuration/services/flow-configuration.service.d.ts +3 -2
  48. package/core/services/metric-calculation/metric-calculation.service.d.ts +5 -1
  49. package/core/services/quote-draft.service.d.ts +2 -2
  50. package/core/types/index.d.ts +0 -1
  51. package/core/types/ui-definition.types.d.ts +19 -4
  52. package/core/utils/index.d.ts +1 -0
  53. package/core/utils/line-item.utils.d.ts +2 -0
  54. package/core/utils/ui-definition.utils.d.ts +2 -0
  55. package/esm2015/cms/cms.actions.js +1 -6
  56. package/esm2015/cms/components/element-children/element-children.component.js +24 -8
  57. package/esm2015/cms/components/element-children/element-children.module.js +8 -6
  58. package/esm2015/cms/components/element-drop-handle/element-drop-handle.component.js +32 -0
  59. package/esm2015/cms/components/element-drop-handle/element-drop-handle.module.js +19 -0
  60. package/esm2015/cms/components/element-renderer/element-renderer.component.js +9 -9
  61. package/esm2015/cms/components/element-renderer/element-renderer.module.js +4 -4
  62. package/esm2015/cms/components/plugin.component.js +3 -3
  63. package/esm2015/cms/components/preview/index.js +2 -1
  64. package/esm2015/cms/components/preview/preview.component.js +21 -36
  65. package/esm2015/cms/components/preview/preview.module.js +7 -6
  66. package/esm2015/cms/components/preview/preview.types.js +2 -0
  67. package/esm2015/cms/directives/custom-template.directive.js +3 -3
  68. package/esm2015/cms/index.js +3 -1
  69. package/esm2015/cms/launcher.module.js +10 -9
  70. package/esm2015/cms/modules/federated/federated.component.js +3 -3
  71. package/esm2015/cms/modules/federated/federated.module.js +4 -4
  72. package/esm2015/cms/modules/migrations/index.js +3 -0
  73. package/esm2015/cms/modules/migrations/migrations.js +11 -0
  74. package/esm2015/cms/modules/migrations/migrations.module.js +15 -0
  75. package/esm2015/cms/modules/migrations/services/migrations.service.js +43 -0
  76. package/esm2015/cms/modules/migrations/types/migrations.types.js +2 -0
  77. package/esm2015/cms/modules/runtime/index.js +3 -0
  78. package/esm2015/cms/modules/runtime/runtime.module.js +32 -0
  79. package/esm2015/cms/modules/runtime/services/compilation.service.js +84 -0
  80. package/esm2015/cms/modules/runtime/services/runtime-editor.service.js +27 -0
  81. package/esm2015/cms/modules/runtime/services/runtime.service.js +74 -0
  82. package/esm2015/cms/modules/runtime/tokens.js +3 -0
  83. package/esm2015/cms/modules/runtime/types/compilation.types.js +2 -0
  84. package/esm2015/cms/modules/runtime/types/runtime.actions.js +2 -0
  85. package/esm2015/cms/plugins/configuration.plugin.js +12 -4
  86. package/esm2015/cms/plugins/io.plugin.js +3 -3
  87. package/esm2015/cms/plugins/script.plugin.js +3 -3
  88. package/esm2015/cms/services/element-context.service.js +3 -3
  89. package/esm2015/cms/services/index.js +1 -2
  90. package/esm2015/cms/services/integration.state.js +3 -3
  91. package/esm2015/cms/services/io-provider.service.js +9 -9
  92. package/esm2015/cms/services/templates.service.js +3 -3
  93. package/esm2015/cms/types/common.types.js +1 -1
  94. package/esm2015/cms/types/configuration.types.js +1 -1
  95. package/esm2015/cms/types/index.js +2 -2
  96. package/esm2015/cms/utils/elements-resolver.js +18 -8
  97. package/esm2015/cms/utils/index.js +2 -1
  98. package/esm2015/cms/utils/path.utils.js +2 -13
  99. package/esm2015/cms/utils/ui-definition.utils.js +82 -0
  100. package/esm2015/cms/vendor-map.js +21 -10
  101. package/esm2015/core/core.module.js +4 -4
  102. package/esm2015/core/modules/configuration/configuration.module.js +4 -4
  103. package/esm2015/core/modules/configuration/services/configuration-runtime.service.js +5 -10
  104. package/esm2015/core/modules/configuration/services/configuration.service.js +27 -24
  105. package/esm2015/core/modules/configuration/services/runtime-context.service.js +3 -3
  106. package/esm2015/core/modules/configuration/types/configuration-runtime.types.js +1 -1
  107. package/esm2015/core/modules/flow-configuration/flow-configuration.module.js +4 -4
  108. package/esm2015/core/modules/flow-configuration/services/flow-configuration.service.js +10 -9
  109. package/esm2015/core/modules/flow-configuration/services/flow-update.service.js +3 -3
  110. package/esm2015/core/services/context.service.js +3 -3
  111. package/esm2015/core/services/metric-calculation/metric-calculation.service.js +18 -9
  112. package/esm2015/core/services/product-images.service.js +3 -3
  113. package/esm2015/core/services/quote-draft.service.js +7 -7
  114. package/esm2015/core/types/index.js +1 -2
  115. package/esm2015/core/types/ui-definition.types.js +2 -2
  116. package/esm2015/core/utils/index.js +2 -1
  117. package/esm2015/core/utils/line-item.utils.js +27 -11
  118. package/esm2015/core/utils/ui-definition.utils.js +9 -0
  119. package/esm2015/runtime/components/component-preview/component-preview.component.js +4 -4
  120. package/esm2015/runtime/components/section-renderer/section-renderer.component.js +3 -3
  121. package/esm2015/runtime/components/ui-runtime/runtime.component.js +3 -3
  122. package/esm2015/runtime/components/ui-runtime-preview/runtime-preview.component.js +3 -3
  123. package/esm2015/runtime/execution/components/children-placeholder/children-placeholder.component.js +6 -6
  124. package/esm2015/runtime/execution/components/context-provider/context-provider.component.js +3 -3
  125. package/esm2015/runtime/execution/components/execution-section-renderer/execution-section-renderer.component.js +3 -3
  126. package/esm2015/runtime/execution/components/federated/federated.component.js +3 -3
  127. package/esm2015/runtime/execution/components/velo-attribute/velo-attribute.component.js +3 -3
  128. package/esm2015/runtime/execution/components/velo-multiselect/velo-multiselect.component.js +3 -3
  129. package/esm2015/runtime/execution/components/velo-port-checkbox/velo-port-checkbox.component.js +3 -3
  130. package/esm2015/runtime/execution/components/velo-port-dropdown/velo-port-dropdown.component.js +3 -3
  131. package/esm2015/runtime/execution/components/velo-port-radio/velo-port-radio.component.js +3 -3
  132. package/esm2015/runtime/execution/components/velo-type/velo-type.component.js +3 -3
  133. package/esm2015/runtime/execution/directives/section-script.directive.js +3 -3
  134. package/esm2015/runtime/execution/directives/sf-query.directive.js +3 -3
  135. package/esm2015/runtime/execution/directives/velo-attribute.directive.js +3 -3
  136. package/esm2015/runtime/execution/directives/velo-port.directive.js +18 -18
  137. package/esm2015/runtime/execution/directives/vl-approval.directive.js +3 -3
  138. package/esm2015/runtime/execution/directives/vl-document-attachments.directive.js +3 -3
  139. package/esm2015/runtime/execution/directives/vl-document-templates.directive.js +3 -3
  140. package/esm2015/runtime/execution/directives/vl-quote.directive.js +4 -4
  141. package/esm2015/runtime/execution/directives/vl-ramp.directive.js +3 -3
  142. package/esm2015/runtime/execution/runtime-execution.module.js +4 -4
  143. package/esm2015/runtime/runtime.module.js +4 -4
  144. package/esm2015/runtime/services/cart.service.js +3 -3
  145. package/esm2015/runtime/services/collapsible-state.service.js +3 -3
  146. package/esm2015/runtime/services/configuration.service.js +4 -4
  147. package/esm2015/runtime/services/current-state.service.js +3 -3
  148. package/esm2015/runtime/services/form-scope.service.js +3 -3
  149. package/esm2015/runtime/services/product-model-cache.service.js +3 -3
  150. package/esm2015/runtime/services/runtime-context.service.js +3 -3
  151. package/esm2015/runtime/services/runtime-form.service.js +3 -3
  152. package/esm2015/runtime/services/runtime.service.js +4 -4
  153. package/esm2015/runtime/services/section-helper.service.js +3 -3
  154. package/esm2015/runtime/services/section-scope.service.js +3 -3
  155. package/esm2015/runtime/services/section-store.service.js +3 -3
  156. package/esm2015/runtime/services/section.service.js +6 -6
  157. package/esm2015/runtime/types/index.js +2 -1
  158. package/esm2015/runtime/types/quote-states.types.js +2 -0
  159. package/esm2015/src/components/dialog/dialog.component.js +3 -3
  160. package/esm2015/src/components/dialog/dialog.module.js +4 -4
  161. package/esm2015/src/components/doc-gen/doc-gen.component.js +3 -3
  162. package/esm2015/src/components/doc-gen/doc-gen.module.js +4 -4
  163. package/esm2015/src/components/header/cart-overlay/cart-preview.component.js +3 -3
  164. package/esm2015/src/components/header/cart-overlay/cart-preview.module.js +4 -4
  165. package/esm2015/src/components/header/header.component.js +20 -12
  166. package/esm2015/src/components/header/header.module.js +4 -4
  167. package/esm2015/src/components/header/metrics/metrics.component.js +79 -67
  168. package/esm2015/src/components/header/metrics/metrics.definitions.js +1 -8
  169. package/esm2015/src/components/header/metrics/metrics.module.js +4 -4
  170. package/esm2015/src/flow-routing.module.js +4 -4
  171. package/esm2015/src/flow.component.js +3 -3
  172. package/esm2015/src/flow.module.js +4 -4
  173. package/esm2015/src/guards/context.guard.js +3 -3
  174. package/esm2015/src/guards/product-unload.guard.js +3 -3
  175. package/esm2015/src/guards/root.guard.js +3 -3
  176. package/esm2015/src/pages/catalog/catalog.component.js +3 -3
  177. package/esm2015/src/pages/catalog/catalog.module.js +4 -4
  178. package/esm2015/src/pages/debug/debug.component.js +3 -3
  179. package/esm2015/src/pages/debug/debug.module.js +4 -4
  180. package/esm2015/src/pages/empty-account/empty-account.component.js +3 -3
  181. package/esm2015/src/pages/empty-account/empty-account.module.js +4 -4
  182. package/esm2015/src/pages/legacy-product/legacy-product.component.js +4 -4
  183. package/esm2015/src/pages/legacy-product/legacy-product.module.js +4 -4
  184. package/esm2015/src/pages/product/product.component.js +5 -12
  185. package/esm2015/src/pages/product/product.module.js +4 -4
  186. package/esm2015/src/pages/record-not-found/record-not-found.component.js +3 -3
  187. package/esm2015/src/pages/record-not-found/record-not-found.module.js +4 -4
  188. package/esm2015/src/pages/remote/remote.component.js +5 -8
  189. package/esm2015/src/pages/remote/remote.module.js +4 -4
  190. package/esm2015/src/pages/shopping-cart/shopping-cart.component.js +3 -3
  191. package/esm2015/src/pages/shopping-cart/shopping-cart.module.js +4 -4
  192. package/esm2015/src/resolvers/flow.resolver.js +3 -3
  193. package/esm2015/src/resolvers/quote.resolver.js +8 -8
  194. package/esm2015/src/services/doc-gen.service.js +3 -3
  195. package/esm2015/src/services/flow-dialog.service.js +3 -3
  196. package/esm2015/src/services/flow-router.service.js +3 -3
  197. package/esm2015/src/services/flow.service.js +3 -3
  198. package/esm2015/src/utils/flow.utils.js +3 -3
  199. package/fesm2015/veloceapps-sdk-cms.js +1041 -737
  200. package/fesm2015/veloceapps-sdk-cms.js.map +1 -1
  201. package/fesm2015/veloceapps-sdk-core.js +554 -521
  202. package/fesm2015/veloceapps-sdk-core.js.map +1 -1
  203. package/fesm2015/veloceapps-sdk-runtime.js +138 -138
  204. package/fesm2015/veloceapps-sdk-runtime.js.map +1 -1
  205. package/fesm2015/veloceapps-sdk.js +256 -252
  206. package/fesm2015/veloceapps-sdk.js.map +1 -1
  207. package/package.json +5 -3
  208. package/runtime/services/configuration.service.d.ts +2 -1
  209. package/runtime/services/runtime.service.d.ts +2 -1
  210. package/runtime/types/index.d.ts +1 -0
  211. package/src/components/header/header.component.d.ts +4 -2
  212. package/src/components/header/metrics/metrics.component.d.ts +15 -6
  213. package/src/components/header/metrics/metrics.definitions.d.ts +0 -3
  214. package/src/pages/product/product.component.d.ts +0 -1
  215. package/cms/services/dynamic-module.service.d.ts +0 -15
  216. package/cms/services/launcher.service.d.ts +0 -18
  217. package/esm2015/cms/services/dynamic-module.service.js +0 -33
  218. package/esm2015/cms/services/launcher.service.js +0 -58
  219. package/esm2015/cms/types/compilation.types.js +0 -2
  220. package/esm2015/core/types/quote-states.types.js +0 -2
  221. /package/{core → runtime}/types/quote-states.types.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- import { IntegrationAction, Metric } from './types';
1
+ import { IntegrationAction } from './types';
2
2
  export declare enum FlowAction {
3
3
  FLOW_CONFIGURE_PRODUCT = "FLOW_CONFIGURE_PRODUCT",
4
4
  FLOW_NAVIGATE_BACK = "FLOW_NAVIGATE_BACK",
@@ -8,8 +8,7 @@ export declare enum FlowAction {
8
8
  FLOW_CLOSE_DOC_GEN = "FLOW_CLOSE_DOC_GEN",
9
9
  FLOW_SWITCH_OBJECT = "FLOW_SWITCH_OBJECT",
10
10
  REMOTE_APPLY = "REMOTE_APPLY",
11
- REMOTE_CANCEL = "REMOTE_CANCEL",
12
- SET_DEFAULT_METRICS = "SET_DEFAULT_METRICS"
11
+ REMOTE_CANCEL = "REMOTE_CANCEL"
13
12
  }
14
13
  export declare const ConfigureProductAction: ({ lineItemId, productId, }: {
15
14
  lineItemId?: string | undefined;
@@ -25,4 +24,3 @@ export declare const RemoteCancelAction: () => IntegrationAction;
25
24
  export declare const SwitchObjectAction: (payload: {
26
25
  id: string;
27
26
  }) => IntegrationAction;
28
- export declare const SetDefaultMetrics: (metrics: Metric[]) => IntegrationAction;
@@ -1,10 +1,20 @@
1
+ import { ChangeDetectorRef, OnDestroy } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ import { RuntimeEditorService } from '../../modules/runtime/services/runtime-editor.service';
4
+ import { RuntimeService } from '../../modules/runtime/services/runtime.service';
1
5
  import { ElementContextService } from '../../services/element-context.service';
2
6
  import { ElementMetadata } from '../../types/common.types';
3
7
  import * as i0 from "@angular/core";
4
- export declare class ElementChildrenComponent {
8
+ export declare class ElementChildrenComponent implements OnDestroy {
5
9
  private elementContext;
6
- metadata?: ElementMetadata;
7
- constructor(elementContext: ElementContextService);
10
+ private runtimeService;
11
+ private runtimeEditorService;
12
+ private cdr;
13
+ metadata$: Observable<ElementMetadata | undefined>;
14
+ dragMode$: Observable<boolean>;
15
+ private destroyed$;
16
+ constructor(elementContext: ElementContextService, runtimeService: RuntimeService, runtimeEditorService: RuntimeEditorService, cdr: ChangeDetectorRef);
17
+ ngOnDestroy(): void;
8
18
  static ɵfac: i0.ɵɵFactoryDeclaration<ElementChildrenComponent, never>;
9
19
  static ɵcmp: i0.ɵɵComponentDeclaration<ElementChildrenComponent, "element-children", never, {}, {}, never, never>;
10
20
  }
@@ -1,8 +1,10 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./element-children.component";
3
- import * as i2 from "../element-renderer/element-renderer.module";
3
+ import * as i2 from "@veloceapps/components";
4
+ import * as i3 from "../element-renderer/element-renderer.module";
5
+ import * as i4 from "../element-drop-handle/element-drop-handle.module";
4
6
  export declare class ElementChildrenModule {
5
7
  static ɵfac: i0.ɵɵFactoryDeclaration<ElementChildrenModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<ElementChildrenModule, [typeof i1.ElementChildrenComponent], [typeof i2.ElementRendererModule], [typeof i1.ElementChildrenComponent]>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ElementChildrenModule, [typeof i1.ElementChildrenComponent], [typeof i2.LetDirectiveModule, typeof i3.ElementRendererModule, typeof i4.ElementDropHandleModule], [typeof i1.ElementChildrenComponent]>;
7
9
  static ɵinj: i0.ɵɵInjectorDeclaration<ElementChildrenModule>;
8
10
  }
@@ -0,0 +1,12 @@
1
+ import { DndDropEvent } from 'ngx-drag-drop';
2
+ import { RuntimeEditorService } from '../../modules/runtime/services/runtime-editor.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ElementDropHandleComponent {
5
+ private runtimeService;
6
+ index: number;
7
+ parentPath: string;
8
+ constructor(runtimeService: RuntimeEditorService);
9
+ handleDrop(e: DndDropEvent): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<ElementDropHandleComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<ElementDropHandleComponent, "vl-element-drop-handle", never, { "index": "index"; "parentPath": "parentPath"; }, {}, never, never>;
12
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./element-drop-handle.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "ngx-drag-drop";
5
+ export declare class ElementDropHandleModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<ElementDropHandleModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ElementDropHandleModule, [typeof i1.ElementDropHandleComponent], [typeof i2.CommonModule, typeof i3.DndModule], [typeof i1.ElementDropHandleComponent]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<ElementDropHandleModule>;
9
+ }
@@ -1,13 +1,13 @@
1
1
  import { ChangeDetectorRef, ElementRef, Injector, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
2
2
  import { ConfigurationService } from '@veloceapps/sdk/core';
3
- import { DynamicModuleService } from '../../services/dynamic-module.service';
3
+ import { RuntimeService } from '../../modules/runtime/services/runtime.service';
4
4
  import { ElementContextService } from '../../services/element-context.service';
5
5
  import { IOProviderService } from '../../services/io-provider.service';
6
6
  import { ElementMetadata } from '../../types/common.types';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class ElementRendererComponent implements OnInit, OnDestroy {
9
9
  private parentInjector;
10
- private dynamicModuleService;
10
+ private runtimeService;
11
11
  private elementContext;
12
12
  private ioProviderService;
13
13
  private configurationService;
@@ -18,7 +18,7 @@ export declare class ElementRendererComponent implements OnInit, OnDestroy {
18
18
  private factory?;
19
19
  private refs;
20
20
  private destroy$;
21
- constructor(parentInjector: Injector, dynamicModuleService: DynamicModuleService, elementContext: ElementContextService, ioProviderService: IOProviderService, configurationService: ConfigurationService, elementRef: ElementRef, cdr: ChangeDetectorRef);
21
+ constructor(parentInjector: Injector, runtimeService: RuntimeService, elementContext: ElementContextService, ioProviderService: IOProviderService, configurationService: ConfigurationService, elementRef: ElementRef, cdr: ChangeDetectorRef);
22
22
  ngOnInit(): void;
23
23
  ngOnDestroy(): void;
24
24
  private createComponents;
@@ -1,2 +1,3 @@
1
1
  export * from './preview.component';
2
2
  export * from './preview.module';
3
+ export * from './preview.types';
@@ -1,34 +1,35 @@
1
- import { OnDestroy, OnInit } from '@angular/core';
1
+ import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { ConfigurationRuntimeService, ConfigurationService, UIDefinition } from '@veloceapps/sdk/core';
3
3
  import { MessageService } from 'primeng/api';
4
4
  import { BehaviorSubject } from 'rxjs';
5
+ import { RuntimeService } from '../../modules/runtime/services/runtime.service';
5
6
  import { IntegrationState } from '../../services';
6
- import { LauncherService } from '../../services/launcher.service';
7
7
  import { ElementMetadata } from '../../types/common.types';
8
+ import { CMSPreviewConfig } from './preview.types';
8
9
  import * as i0 from "@angular/core";
9
10
  interface State {
10
11
  loading: boolean;
11
12
  failure: boolean;
12
13
  }
13
14
  export declare class PreviewComponent implements OnInit, OnDestroy {
14
- private launcherService;
15
+ private runtimeService;
15
16
  private configurationService;
16
17
  private messageService;
17
- private runtimeService;
18
+ private configurationRuntimeService;
18
19
  private integrationState;
20
+ private cdr;
19
21
  modelId?: string;
20
22
  uiDefinition?: UIDefinition;
21
- clearState: boolean;
23
+ config?: CMSPreviewConfig;
22
24
  state$: BehaviorSubject<State>;
23
25
  elements: ElementMetadata[];
24
26
  private destroy$;
25
- constructor(launcherService: LauncherService, configurationService: ConfigurationService, messageService: MessageService, runtimeService: ConfigurationRuntimeService, integrationState: IntegrationState);
27
+ constructor(runtimeService: RuntimeService, configurationService: ConfigurationService, messageService: MessageService, configurationRuntimeService: ConfigurationRuntimeService, integrationState: IntegrationState, cdr: ChangeDetectorRef);
26
28
  ngOnInit(): void;
27
29
  ngOnDestroy(): void;
28
30
  private initializeConfiguration$;
29
- private elementToMetadataSafe;
30
31
  private startPreview;
31
32
  static ɵfac: i0.ɵɵFactoryDeclaration<PreviewComponent, never>;
32
- static ɵcmp: i0.ɵɵComponentDeclaration<PreviewComponent, "vl-cms-preview", never, { "modelId": "modelId"; "uiDefinition": "uiDefinition"; "clearState": "clearState"; }, {}, never, never>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<PreviewComponent, "vl-cms-preview", never, { "modelId": "modelId"; "uiDefinition": "uiDefinition"; "config": "config"; }, {}, never, never>;
33
34
  }
34
35
  export {};
@@ -4,8 +4,9 @@ import * as i2 from "@angular/common";
4
4
  import * as i3 from "@veloceapps/components";
5
5
  import * as i4 from "../element-renderer/element-renderer.module";
6
6
  import * as i5 from "../element-children/element-children.module";
7
+ import * as i6 from "../element-drop-handle/element-drop-handle.module";
7
8
  export declare class PreviewModule {
8
9
  static ɵfac: i0.ɵɵFactoryDeclaration<PreviewModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<PreviewModule, [typeof i1.PreviewComponent], [typeof i2.CommonModule, typeof i3.LoaderModule, typeof i4.ElementRendererModule, typeof i5.ElementChildrenModule], [typeof i1.PreviewComponent]>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PreviewModule, [typeof i1.PreviewComponent], [typeof i2.CommonModule, typeof i3.LoaderModule, typeof i4.ElementRendererModule, typeof i5.ElementChildrenModule, typeof i6.ElementDropHandleModule], [typeof i1.PreviewComponent]>;
10
11
  static ɵinj: i0.ɵɵInjectorDeclaration<PreviewModule>;
11
12
  }
@@ -0,0 +1,11 @@
1
+ export interface CMSPreviewConfig {
2
+ /**
3
+ * When `true`, IntegrationState keeps data on component destroy
4
+ */
5
+ suppressClearState?: boolean;
6
+ /**
7
+ * When `true`, preview adds additional components/plugins needed for UIBuilder
8
+ * (like element hover/selection or Drag&Drop zones)
9
+ */
10
+ uiBuilderMode?: boolean;
11
+ }
package/cms/index.d.ts CHANGED
@@ -5,6 +5,8 @@ export * from './decorators';
5
5
  export * from './injection-tokens';
6
6
  export * from './launcher.module';
7
7
  export * from './modules/federated/export';
8
+ export * from './modules/migrations';
9
+ export * from './modules/runtime';
8
10
  export * from './services';
9
11
  export * from './types';
10
12
  export * from './utils';
@@ -3,8 +3,10 @@ import * as i1 from "@angular/common";
3
3
  import * as i2 from "@veloceapps/core";
4
4
  import * as i3 from "@veloceapps/api";
5
5
  import * as i4 from "@veloceapps/sdk/core";
6
+ import * as i5 from "./modules/runtime/runtime.module";
7
+ import * as i6 from "./components/preview/preview.module";
6
8
  export declare class LauncherModule {
7
9
  static ɵfac: i0.ɵɵFactoryDeclaration<LauncherModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<LauncherModule, never, [typeof i1.CommonModule, typeof i2.CoreModule, typeof i3.ApiModule, typeof i4.SdkCoreModule], never>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<LauncherModule, never, [typeof i1.CommonModule, typeof i2.CoreModule, typeof i3.ApiModule, typeof i4.SdkCoreModule, typeof i5.RuntimeModule, typeof i6.PreviewModule], [typeof i6.PreviewModule]>;
9
11
  static ɵinj: i0.ɵɵInjectorDeclaration<LauncherModule>;
10
12
  }
@@ -0,0 +1,2 @@
1
+ export * from './migrations.module';
2
+ export * from './services/migrations.service';
@@ -0,0 +1,2 @@
1
+ import { UIDefinitionMigrationFn } from './types/migrations.types';
2
+ export declare const migrations: Record<number, UIDefinitionMigrationFn>;
@@ -0,0 +1,6 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class MigrationsModule {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<MigrationsModule, never>;
4
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MigrationsModule, never, never, never>;
5
+ static ɵinj: i0.ɵɵInjectorDeclaration<MigrationsModule>;
6
+ }
@@ -0,0 +1,10 @@
1
+ import { ToastService } from '@veloceapps/components';
2
+ import { UIDefinition } from '@veloceapps/sdk/core';
3
+ import * as i0 from "@angular/core";
4
+ export declare class MigrationsService {
5
+ private toastService;
6
+ constructor(toastService: ToastService);
7
+ migrateUIDefinition(uiDef: UIDefinition): UIDefinition | undefined;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<MigrationsService, never>;
9
+ static ɵprov: i0.ɵɵInjectableDeclaration<MigrationsService>;
10
+ }
@@ -0,0 +1,2 @@
1
+ import { UIDefinition } from '@veloceapps/sdk/core';
2
+ export declare type UIDefinitionMigrationFn = (uiDef: UIDefinition) => UIDefinition;
@@ -0,0 +1,2 @@
1
+ export * from './runtime.module';
2
+ export * from './services/runtime-editor.service';
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/common";
3
+ import * as i2 from "@veloceapps/core";
4
+ export declare class RuntimeModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<RuntimeModule, never, [typeof i1.CommonModule, typeof i2.CoreModule], never>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<RuntimeModule>;
8
+ }
@@ -0,0 +1,18 @@
1
+ import { Compiler, NgModule, Type } from '@angular/core';
2
+ import { UIDefinition } from '@veloceapps/sdk/core';
3
+ import { Observable } from 'rxjs';
4
+ import { CompilationResult } from '../../../modules/runtime/types/compilation.types';
5
+ import { ElementMetadata } from '../../../types/common.types';
6
+ import * as i0 from "@angular/core";
7
+ export declare class CompilationService {
8
+ private compiler;
9
+ private uiDefinitionMeta?;
10
+ private elementsResolver?;
11
+ constructor(compiler: Compiler);
12
+ compileUIDefinition$(uiDefinition: UIDefinition): Observable<CompilationResult>;
13
+ compileElement$(element: ElementMetadata): Observable<CompilationResult>;
14
+ clearModuleCache(modules: Type<NgModule>[]): void;
15
+ private getModule;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<CompilationService, never>;
17
+ static ɵprov: i0.ɵɵInjectableDeclaration<CompilationService>;
18
+ }
@@ -0,0 +1,18 @@
1
+ import { Patch } from 'rfc6902';
2
+ import { BehaviorSubject, Observable, ReplaySubject } from 'rxjs';
3
+ import { RuntimeElementDeleted, RuntimeElementDropped } from '../types/runtime.actions';
4
+ import { RuntimeService } from './runtime.service';
5
+ import * as i0 from "@angular/core";
6
+ export declare class RuntimeEditorService {
7
+ private runtimeService;
8
+ private editorModeSubj$;
9
+ dragMode$: BehaviorSubject<boolean>;
10
+ elementDropped$: ReplaySubject<RuntimeElementDropped>;
11
+ elementDeleted$: ReplaySubject<RuntimeElementDeleted>;
12
+ editorMode$: Observable<boolean>;
13
+ constructor(runtimeService: RuntimeService);
14
+ applyPatch$(patch: Patch): Observable<void>;
15
+ toggleEditorMode(): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeEditorService, never>;
17
+ static ɵprov: i0.ɵɵInjectableDeclaration<RuntimeEditorService>;
18
+ }
@@ -0,0 +1,27 @@
1
+ import { ComponentFactory, Injector, NgModule, Type } from '@angular/core';
2
+ import { UIDefinition } from '@veloceapps/sdk/core';
3
+ import { Patch } from 'rfc6902';
4
+ import { BehaviorSubject, Observable, Subject } from 'rxjs';
5
+ import { CMSPreviewConfig } from '../../../components/preview/preview.types';
6
+ import { ElementMetadata } from '../../../types';
7
+ import * as i0 from "@angular/core";
8
+ export declare class RuntimeService {
9
+ private injector;
10
+ modules: Type<NgModule>[];
11
+ componentFactories: Record<string, ComponentFactory<any>>;
12
+ applicationTree: ElementMetadata[];
13
+ config?: CMSPreviewConfig;
14
+ isInitialized$: BehaviorSubject<boolean>;
15
+ updated$: Subject<void>;
16
+ private compilationService;
17
+ constructor(injector: Injector);
18
+ initialize$(uiDefinition?: UIDefinition, config?: CMSPreviewConfig): Observable<ElementMetadata[]>;
19
+ applyPatch$(patch: Patch): Observable<void>;
20
+ getCompiledElement$(path: string): Observable<ElementMetadata | undefined>;
21
+ clear(): void;
22
+ private addElement$;
23
+ private deleteElement;
24
+ private addComponentFactories;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeService, never>;
26
+ static ɵprov: i0.ɵɵInjectableDeclaration<RuntimeService>;
27
+ }
@@ -0,0 +1,3 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import type { CompilationService } from './services/compilation.service';
3
+ export declare const CMS_COMPILATION_SERVICE: InjectionToken<CompilationService>;
@@ -1,5 +1,5 @@
1
1
  import { ModuleWithComponentFactories, NgModule } from '@angular/core';
2
- import { ElementMetadata } from './common.types';
2
+ import { ElementMetadata } from '../../../types/common.types';
3
3
  export interface CompilationResult {
4
4
  elements: ElementMetadata[];
5
5
  module: ModuleWithComponentFactories<NgModule>;
@@ -0,0 +1,9 @@
1
+ import { ElementMetadata } from '../../../types';
2
+ export interface RuntimeElementDropped {
3
+ element: ElementMetadata;
4
+ path: string;
5
+ index: number;
6
+ }
7
+ export interface RuntimeElementDeleted {
8
+ path: string;
9
+ }
@@ -1,3 +1,2 @@
1
1
  export * from './integration.state';
2
- export * from './launcher.service';
3
2
  export * from './templates.service';
@@ -1,11 +1,11 @@
1
1
  import { BehaviorSubject, Observable } from 'rxjs';
2
+ import { RuntimeService } from '../modules/runtime/services/runtime.service';
2
3
  import { ElementMetadata } from '../types/common.types';
3
- import { DynamicModuleService } from './dynamic-module.service';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class IOProviderService {
6
- private dynamicModuleService;
6
+ private runtimeService;
7
7
  private inputs;
8
- constructor(dynamicModuleService: DynamicModuleService);
8
+ constructor(runtimeService: RuntimeService);
9
9
  connect(el: ElementMetadata, name: string, target?: string | null): Observable<any> | undefined;
10
10
  provide(el: ElementMetadata, name: string, target?: string | null): BehaviorSubject<any> | undefined;
11
11
  private resolveTarget;
@@ -5,7 +5,7 @@ export declare type ELEMENT_TYPE = 'CUSTOM' | 'CONTAINER' | 'SERVICE' | 'REFEREN
5
5
  export declare type ElementStyleDeclaration = Partial<CSSStyleDeclaration>;
6
6
  export interface ElementConfig {
7
7
  component: typeof Entity;
8
- plugins?: typeof Plugin[];
8
+ plugins?: (typeof Plugin)[];
9
9
  defaultTemplate?: string;
10
10
  suppressTemplate?: boolean;
11
11
  suppressStyles?: boolean;
@@ -4,6 +4,7 @@ export interface ConfigurationElement {
4
4
  boundName: string;
5
5
  }
6
6
  export interface TypeElement extends ConfigurationElement {
7
+ updateQty: (qty: number) => void;
7
8
  remove: () => void;
8
9
  }
9
10
  export interface PortElement extends ConfigurationElement {
@@ -1,5 +1,5 @@
1
+ export * from '../modules/runtime/types/compilation.types';
1
2
  export * from './common.types';
2
- export * from './compilation.types';
3
3
  export * from './configuration.types';
4
4
  export * from './elements.types';
5
5
  export * from './integration.types';
@@ -3,10 +3,11 @@ import { UIDefinitionMetadata } from '@veloceapps/sdk/core';
3
3
  import { ElementMetadata } from '../types';
4
4
  export declare class ElementsResolver {
5
5
  private uiDef;
6
- readonly elements: ElementMetadata[];
6
+ elements: ElementMetadata[];
7
7
  private renderableElements;
8
8
  private sharedElements;
9
- constructor(uiDef: UIDefinitionMetadata, elements: ElementMetadata[]);
9
+ constructor(uiDef: UIDefinitionMetadata, elements: ElementMetadata[], sharedElements?: ElementMetadata[]);
10
+ addElement(element: ElementMetadata): void;
10
11
  getNgComponents(): Type<any>[];
11
12
  private transpile;
12
13
  private transpileScripts;
@@ -1,3 +1,4 @@
1
1
  export * from './element.utils';
2
2
  export * from './elements-resolver';
3
3
  export * from './path.utils';
4
+ export * from './ui-definition.utils';
@@ -1,5 +1,4 @@
1
1
  import { ElementMetadata, ElementPath, PathBlock } from '../types';
2
2
  export declare const parseBoundPath: (path: string) => PathBlock[];
3
3
  export declare const parsePath: (path: string) => ElementPath;
4
- export declare const findElementByModule: (elements: ElementMetadata[], module: string, elementName: string) => ElementMetadata | undefined;
5
4
  export declare const getAbsolutePath: (elements: ElementMetadata[], subject: ElementMetadata, path: ElementPath) => string | undefined;
@@ -0,0 +1,6 @@
1
+ import { ElementMetadata } from '../types';
2
+ export declare function getElementUniqueName<T>(collection: T[], name: string, comparator: (name: string) => (value: T, index?: number, array?: T[]) => boolean): string;
3
+ export declare const insertElement: (source: ElementMetadata[], target: ElementMetadata, path: string, index: number) => ElementMetadata[];
4
+ export declare const removeElement: (source: ElementMetadata[], path: string) => ElementMetadata[];
5
+ export declare const findElementByPath: (source: ElementMetadata[], path: string) => ElementMetadata | undefined;
6
+ export declare const findElementByModule: (elements: ElementMetadata[], module: string, elementName: string) => ElementMetadata | undefined;
@@ -1,7 +1,8 @@
1
1
  import * as angularCore from '@angular/core';
2
2
  import * as angularForms from '@angular/forms';
3
- import { CatalogApiService, DeltaApiService, DocumentAttachmentApiService, DocumentTemplatesApiService, PicklistsApiService, PriceApiService, QuoteApiService, RampApiService, SalesforceApiService } from '@veloceapps/api';
4
- import { ConfigurationService, FlowConfigurationService, LineItemWorker, ProductImagesService, QuoteDraftService } from '@veloceapps/sdk/core';
3
+ import { CatalogApiService, ConfigurationSettingsApiService, DeltaApiService, DocumentAttachmentApiService, DocumentTemplatesApiService, PicklistsApiService, PriceApiService, QuoteApiService, RampApiService, SalesforceApiService, ShoppingCartSettingsApiService } from '@veloceapps/api';
4
+ import { ToastService } from '@veloceapps/components';
5
+ import { ConfigurationService, ContextService, FlowConfigurationService, LineItemWorker, ProductImagesService, QuoteDraftService } from '@veloceapps/sdk/core';
5
6
  import * as lodash from 'lodash';
6
7
  import * as rxjs from 'rxjs';
7
8
  import * as rxjsOperators from 'rxjs/operators';
@@ -18,7 +19,7 @@ export declare const vendorMap: {
18
19
  VERSION: string;
19
20
  templateSettings: lodash.TemplateSettings;
20
21
  chunk<T>(array: lodash.List<T> | null | undefined, size?: number | undefined): T[][];
21
- compact<T_1>(array: lodash.List<false | "" | 0 | T_1 | null | undefined> | null | undefined): T_1[];
22
+ compact<T_1>(array: lodash.List<T_1 | lodash.Falsey> | null | undefined): T_1[];
22
23
  concat<T_2>(...values: lodash.Many<T_2>[]): T_2[];
23
24
  difference<T_3>(array: lodash.List<T_3> | null | undefined, ...values: lodash.List<T_3>[]): T_3[];
24
25
  differenceBy<T1, T2>(array: lodash.List<T1> | null | undefined, values: lodash.List<T2>, iteratee: lodash.ValueIteratee<T1 | T2>): T1[];
@@ -316,6 +317,7 @@ export declare const vendorMap: {
316
317
  }>(value?: T_184 | undefined): boolean;
317
318
  isEmpty(value: string): value is "";
318
319
  isEmpty(value: lodash.List<any> | Map<any, any> | Set<any> | null | undefined): boolean;
320
+ isEmpty(value: object): boolean;
319
321
  isEmpty<T_185 extends object>(value: T_185 | null | undefined): value is lodash.EmptyObjectOf<T_185> | null | undefined;
320
322
  isEmpty(value?: any): boolean;
321
323
  isEqual(value: any, other: any): boolean;
@@ -458,6 +460,8 @@ export declare const vendorMap: {
458
460
  get<T_212, TDefault_4>(object: lodash.NumericDictionary<T_212> | null | undefined, path: number, defaultValue: TDefault_4): T_212 | TDefault_4;
459
461
  get<TDefault_5>(object: null | undefined, path: lodash.PropertyPath, defaultValue: TDefault_5): TDefault_5;
460
462
  get(object: null | undefined, path: lodash.PropertyPath): undefined;
463
+ get<TObject_47, TPath extends string>(data: TObject_47, path: TPath): string extends TPath ? any : lodash.GetFieldType<TObject_47, TPath>;
464
+ get<TObject_48, TPath_1 extends string, TDefault_6 = lodash.GetFieldType<TObject_48, TPath_1>>(data: TObject_48, path: TPath_1, defaultValue: TDefault_6): TDefault_6 | Exclude<lodash.GetFieldType<TObject_48, TPath_1>, null | undefined>;
461
465
  get(object: any, path: lodash.PropertyPath, defaultValue?: any): any;
462
466
  has<T_213>(object: T_213, path: lodash.PropertyPath): boolean;
463
467
  hasIn<T_214>(object: T_214, path: lodash.PropertyPath): boolean;
@@ -480,15 +484,15 @@ export declare const vendorMap: {
480
484
  mapValues<T_225>(obj: lodash.Dictionary<T_225> | lodash.NumericDictionary<T_225> | null | undefined): lodash.Dictionary<T_225>;
481
485
  mapValues<T_226 extends object>(obj: T_226): T_226;
482
486
  mapValues<T_227 extends object>(obj: T_227 | null | undefined): Partial<T_227>;
483
- merge<TObject_47, TSource_7>(object: TObject_47, source: TSource_7): TObject_47 & TSource_7;
484
- merge<TObject_48, TSource1_21, TSource2_21>(object: TObject_48, source1: TSource1_21, source2: TSource2_21): TObject_48 & TSource1_21 & TSource2_21;
485
- merge<TObject_49, TSource1_22, TSource2_22, TSource3_14>(object: TObject_49, source1: TSource1_22, source2: TSource2_22, source3: TSource3_14): TObject_49 & TSource1_22 & TSource2_22 & TSource3_14;
486
- merge<TObject_50, TSource1_23, TSource2_23, TSource3_15, TSource4_7>(object: TObject_50, source1: TSource1_23, source2: TSource2_23, source3: TSource3_15, source4: TSource4_7): TObject_50 & TSource1_23 & TSource2_23 & TSource3_15 & TSource4_7;
487
+ merge<TObject_49, TSource_7>(object: TObject_49, source: TSource_7): TObject_49 & TSource_7;
488
+ merge<TObject_50, TSource1_21, TSource2_21>(object: TObject_50, source1: TSource1_21, source2: TSource2_21): TObject_50 & TSource1_21 & TSource2_21;
489
+ merge<TObject_51, TSource1_22, TSource2_22, TSource3_14>(object: TObject_51, source1: TSource1_22, source2: TSource2_22, source3: TSource3_14): TObject_51 & TSource1_22 & TSource2_22 & TSource3_14;
490
+ merge<TObject_52, TSource1_23, TSource2_23, TSource3_15, TSource4_7>(object: TObject_52, source1: TSource1_23, source2: TSource2_23, source3: TSource3_15, source4: TSource4_7): TObject_52 & TSource1_23 & TSource2_23 & TSource3_15 & TSource4_7;
487
491
  merge(object: any, ...otherArgs: any[]): any;
488
- mergeWith<TObject_51, TSource_8>(object: TObject_51, source: TSource_8, customizer: (value: any, srcValue: any, key: string, object: any, source: any) => any): TObject_51 & TSource_8;
489
- mergeWith<TObject_52, TSource1_24, TSource2_24>(object: TObject_52, source1: TSource1_24, source2: TSource2_24, customizer: (value: any, srcValue: any, key: string, object: any, source: any) => any): TObject_52 & TSource1_24 & TSource2_24;
490
- mergeWith<TObject_53, TSource1_25, TSource2_25, TSource3_16>(object: TObject_53, source1: TSource1_25, source2: TSource2_25, source3: TSource3_16, customizer: (value: any, srcValue: any, key: string, object: any, source: any) => any): TObject_53 & TSource1_25 & TSource2_25 & TSource3_16;
491
- mergeWith<TObject_54, TSource1_26, TSource2_26, TSource3_17, TSource4_8>(object: TObject_54, source1: TSource1_26, source2: TSource2_26, source3: TSource3_17, source4: TSource4_8, customizer: (value: any, srcValue: any, key: string, object: any, source: any) => any): TObject_54 & TSource1_26 & TSource2_26 & TSource3_17 & TSource4_8;
492
+ mergeWith<TObject_53, TSource_8>(object: TObject_53, source: TSource_8, customizer: (value: any, srcValue: any, key: string, object: any, source: any) => any): TObject_53 & TSource_8;
493
+ mergeWith<TObject_54, TSource1_24, TSource2_24>(object: TObject_54, source1: TSource1_24, source2: TSource2_24, customizer: (value: any, srcValue: any, key: string, object: any, source: any) => any): TObject_54 & TSource1_24 & TSource2_24;
494
+ mergeWith<TObject_55, TSource1_25, TSource2_25, TSource3_16>(object: TObject_55, source1: TSource1_25, source2: TSource2_25, source3: TSource3_16, customizer: (value: any, srcValue: any, key: string, object: any, source: any) => any): TObject_55 & TSource1_25 & TSource2_25 & TSource3_16;
495
+ mergeWith<TObject_56, TSource1_26, TSource2_26, TSource3_17, TSource4_8>(object: TObject_56, source1: TSource1_26, source2: TSource2_26, source3: TSource3_17, source4: TSource4_8, customizer: (value: any, srcValue: any, key: string, object: any, source: any) => any): TObject_56 & TSource1_26 & TSource2_26 & TSource3_17 & TSource4_8;
492
496
  mergeWith(object: any, ...otherArgs: any[]): any;
493
497
  omit<T_228 extends object, K_1 extends lodash.PropertyName[]>(object: T_228 | null | undefined, ...paths: K_1): Pick<T_228, Exclude<keyof T_228, K_1[number]>>;
494
498
  omit<T_229 extends object, K_2 extends keyof T_229>(object: T_229 | null | undefined, ...paths: lodash.Many<K_2>[]): lodash.Omit<T_229, K_2>;
@@ -497,7 +501,7 @@ export declare const vendorMap: {
497
501
  omitBy<T_232>(object: lodash.NumericDictionary<T_232> | null | undefined, predicate?: lodash.ValueKeyIteratee<T_232> | undefined): lodash.NumericDictionary<T_232>;
498
502
  omitBy<T_233 extends object>(object: T_233 | null | undefined, predicate: lodash.ValueKeyIteratee<T_233[keyof T_233]>): Partial<T_233>;
499
503
  pick<T_234 extends object, U_4 extends keyof T_234>(object: T_234, ...props: lodash.Many<U_4>[]): Pick<T_234, U_4>;
500
- pick<T_235>(object: T_235 | null | undefined, ...props: lodash.PropertyPath[]): Partial<T_235>;
504
+ pick<T_235>(object: T_235 | null | undefined, ...props: lodash.Many<lodash.PropertyPath>[]): Partial<T_235>;
501
505
  pickBy<T_236, S_6 extends T_236>(object: lodash.Dictionary<T_236> | null | undefined, predicate: lodash.ValueKeyIterateeTypeGuard<T_236, S_6>): lodash.Dictionary<S_6>;
502
506
  pickBy<T_237, S_7 extends T_237>(object: lodash.NumericDictionary<T_237> | null | undefined, predicate: lodash.ValueKeyIterateeTypeGuard<T_237, S_7>): lodash.NumericDictionary<S_7>;
503
507
  pickBy<T_238>(object: lodash.Dictionary<T_238> | null | undefined, predicate?: lodash.ValueKeyIteratee<T_238> | undefined): lodash.Dictionary<T_238>;
@@ -581,7 +585,7 @@ export declare const vendorMap: {
581
585
  conforms<T_264>(source: lodash.ConformsPredicateObject<T_264>): (value: T_264) => boolean;
582
586
  constant<T_265>(value: T_265): () => T_265;
583
587
  defaultTo<T_266>(value: T_266 | null | undefined, defaultValue: T_266): T_266;
584
- defaultTo<T_267, TDefault_6>(value: T_267 | null | undefined, defaultValue: TDefault_6): T_267 | TDefault_6;
588
+ defaultTo<T_267, TDefault_7>(value: T_267 | null | undefined, defaultValue: TDefault_7): T_267 | TDefault_7;
585
589
  flow<A extends any[], R1, R2, R3, R4, R5, R6, R7>(f1: (...args: A) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6, f7: (a: R6) => R7): (...args: A) => R7;
586
590
  flow<A_1 extends any[], R1_1, R2_1, R3_1, R4_1, R5_1, R6_1, R7_1>(f1: (...args: A_1) => R1_1, f2: (a: R1_1) => R2_1, f3: (a: R2_1) => R3_1, f4: (a: R3_1) => R4_1, f5: (a: R4_1) => R5_1, f6: (a: R5_1) => R6_1, f7: (a: R6_1) => R7_1, ...func: lodash.Many<(a: any) => any>[]): (...args: A_1) => any;
587
591
  flow<A_2 extends any[], R1_2, R2_2, R3_2, R4_2, R5_2, R6_2>(f1: (...args: A_2) => R1_2, f2: (a: R1_2) => R2_2, f3: (a: R2_2) => R3_2, f4: (a: R3_2) => R4_2, f5: (a: R4_2) => R5_2, f6: (a: R5_2) => R6_2): (...args: A_2) => R6_2;
@@ -607,7 +611,7 @@ export declare const vendorMap: {
607
611
  matchesProperty<T_272, V_1>(path: lodash.PropertyPath, srcValue: T_272): (value: V_1) => boolean;
608
612
  method(path: lodash.PropertyPath, ...args: any[]): (object: any) => any;
609
613
  methodOf(object: object, ...args: any[]): (path: lodash.PropertyPath) => any;
610
- mixin<TObject_55>(object: TObject_55, source: lodash.Dictionary<(...args: any[]) => any>, options?: lodash.MixinOptions | undefined): TObject_55;
614
+ mixin<TObject_57>(object: TObject_57, source: lodash.Dictionary<(...args: any[]) => any>, options?: lodash.MixinOptions | undefined): TObject_57;
611
615
  mixin<TResult_44>(source: lodash.Dictionary<(...args: any[]) => any>, options?: lodash.MixinOptions | undefined): lodash.LoDashStatic;
612
616
  noConflict(): lodash.LoDashStatic;
613
617
  noop(...args: any[]): void;
@@ -636,12 +640,33 @@ export declare const vendorMap: {
636
640
  toPath(value: any): string[];
637
641
  uniqueId(prefix?: string | undefined): string;
638
642
  };
643
+ '@veloceapps/core': {
644
+ isDefined: <T_278>(value: T_278) => value is Exclude<T_278, null | undefined>;
645
+ };
646
+ '@veloceapps/components': {
647
+ ToastService: typeof ToastService;
648
+ };
649
+ '@veloceapps/api': {
650
+ SalesforceApiService: typeof SalesforceApiService;
651
+ QuoteApiService: typeof QuoteApiService;
652
+ DocumentTemplatesApiService: typeof DocumentTemplatesApiService;
653
+ DocumentAttachmentApiService: typeof DocumentAttachmentApiService;
654
+ RampApiService: typeof RampApiService;
655
+ CatalogApiService: typeof CatalogApiService;
656
+ DeltaApiService: typeof DeltaApiService;
657
+ PicklistsApiService: typeof PicklistsApiService;
658
+ PriceApiService: typeof PriceApiService;
659
+ ShoppingCartSettingsApiService: typeof ShoppingCartSettingsApiService;
660
+ ConfigurationSettingsApiService: typeof ConfigurationSettingsApiService;
661
+ };
639
662
  '@veloceapps/sdk/core': {
640
663
  findLineItem: (id: string, lineItems: import("@veloceapps/core").LineItem[]) => import("@veloceapps/core").LineItem | undefined;
641
664
  findLineItemWithComparator: (lineItems: import("@veloceapps/core").LineItem[], comparator: (li: import("@veloceapps/core").LineItem) => boolean) => import("@veloceapps/core").LineItem | undefined;
642
665
  insertLineItem: (lineItem: import("@veloceapps/core").LineItem, parentId: string, toInsert: import("@veloceapps/core").LineItem) => import("@veloceapps/core").LineItem;
643
666
  removeLineItem: (lineItem: import("@veloceapps/core").LineItem, idToRemove: string) => import("@veloceapps/core").LineItem;
644
667
  replaceLineItem: (lineItem: import("@veloceapps/core").LineItem, replaceTo: import("@veloceapps/core").LineItem) => import("@veloceapps/core").LineItem;
668
+ calculateCardinalityVariables: (lineItems: import("@veloceapps/core").LineItem[]) => Map<string, number>;
669
+ recalculateCardinalityVariables: (original: import("@veloceapps/core").LineItem, updated: import("@veloceapps/core").LineItem) => import("@veloceapps/core").LineItem;
645
670
  mapAttributes: (attributes: import("@veloceapps/core").Attribute[]) => lodash.Dictionary<any>;
646
671
  getAttributes: (attributes: import("@veloceapps/core").Attribute[], names?: string[] | undefined) => import("@veloceapps/core").Attribute[];
647
672
  upsertAttributes: (originalAttributes: import("@veloceapps/core").Attribute[], attributesToUpsert: {
@@ -667,6 +692,7 @@ export declare const vendorMap: {
667
692
  FlowConfigurationService: typeof FlowConfigurationService;
668
693
  LineItemWorker: typeof LineItemWorker;
669
694
  ProductImagesService: typeof ProductImagesService;
695
+ ContextService: typeof ContextService;
670
696
  };
671
697
  '@veloceapps/sdk/cms': {
672
698
  TemplatesService: typeof TemplatesService;
@@ -686,7 +712,6 @@ export declare const vendorMap: {
686
712
  SwitchObjectAction: (payload: {
687
713
  id: string;
688
714
  }) => import("@veloceapps/sdk/cms").IntegrationAction<any>;
689
- SetDefaultMetrics: (metrics: import("@veloceapps/sdk/cms").Metric[]) => import("@veloceapps/sdk/cms").IntegrationAction<any>;
690
715
  DEFAULT_PLUGINS_TOKEN: angularCore.InjectionToken<typeof import("./engine/models/plugin").Plugin[]>;
691
716
  UI_DEFINITION_METADATA: angularCore.InjectionToken<import("@veloceapps/sdk/core").UIDefinitionMetadata>;
692
717
  ELEMENT_METADATA: angularCore.InjectionToken<import("@veloceapps/sdk/cms").ElementMetadata>;
@@ -694,16 +719,5 @@ export declare const vendorMap: {
694
719
  ELEMENT_CONFIG: angularCore.InjectionToken<import("@veloceapps/sdk/cms").ElementConfig>;
695
720
  VENDOR_MAP: angularCore.InjectionToken<lodash.Dictionary<any>>;
696
721
  };
697
- '@veloceapps/api': {
698
- SalesforceApiService: typeof SalesforceApiService;
699
- QuoteApiService: typeof QuoteApiService;
700
- DocumentTemplatesApiService: typeof DocumentTemplatesApiService;
701
- DocumentAttachmentApiService: typeof DocumentAttachmentApiService;
702
- RampApiService: typeof RampApiService;
703
- CatalogApiService: typeof CatalogApiService;
704
- DeltaApiService: typeof DeltaApiService;
705
- PicklistsApiService: typeof PicklistsApiService;
706
- PriceApiService: typeof PriceApiService;
707
- };
708
722
  };
709
723
  export declare type VendorMap = typeof vendorMap;