@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,5 @@
1
1
  import { compact } from 'lodash';
2
+ import { findElementByModule } from './ui-definition.utils';
2
3
  export const parseBoundPath = (path) => {
3
4
  var _a, _b;
4
5
  const regexp = new RegExp(`(?:\\/)(?:\\w+)(?:\\/)(?:ports|attributes)(?:\\/)(?:\\w+)|(?:\\/)(?:\\w+)`, 'g');
@@ -31,18 +32,6 @@ export const parsePath = (path) => {
31
32
  variable,
32
33
  };
33
34
  };
34
- export const findElementByModule = (elements, module, elementName) => {
35
- for (const el of elements) {
36
- if (el.module === module && el.name === elementName) {
37
- return el;
38
- }
39
- const child = findElementByModule(el.children, module, elementName);
40
- if (child) {
41
- return child;
42
- }
43
- }
44
- return;
45
- };
46
35
  export const getAbsolutePath = (elements, subject, path) => {
47
36
  var _a, _b, _c;
48
37
  if (path.module) {
@@ -64,4 +53,4 @@ export const getAbsolutePath = (elements, subject, path) => {
64
53
  }
65
54
  return subjectSegments.join('/');
66
55
  };
67
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGF0aC51dGlscy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc2RrL2Ntcy91dGlscy9wYXRoLnV0aWxzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxRQUFRLENBQUM7QUFHakMsTUFBTSxDQUFDLE1BQU0sY0FBYyxHQUFHLENBQUMsSUFBWSxFQUFlLEVBQUU7O0lBQzFELE1BQU0sTUFBTSxHQUFHLElBQUksTUFBTSxDQUFDLDJFQUEyRSxFQUFFLEdBQUcsQ0FBQyxDQUFDO0lBQzVHLE1BQU0sTUFBTSxHQUNWLE1BQUEsTUFBQSxJQUFJLENBQUMsS0FBSyxDQUFDLE1BQU0sQ0FBQywwQ0FBRSxHQUFHLENBQUMsS0FBSyxDQUFDLEVBQUU7UUFDOUIsTUFBTSxDQUFDLElBQUksRUFBRSxRQUFRLEVBQUUsSUFBSSxDQUFDLEdBQUcsT0FBTyxDQUFDLEtBQUssQ0FBQyxLQUFLLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQztRQUN6RCxPQUFPLEVBQUUsSUFBSSxFQUFFLFFBQVEsRUFBRSxJQUFJLEVBQUUsQ0FBQztJQUNsQyxDQUFD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VnbWVudHMuam9pbignLycpO1xuICB9XG5cbiAgd2hpbGUgKHNlZ21lbnRzLmxlbmd0aCkge1xuICAgIGNvbnN0IHNlZ21lbnQgPSBzZWdtZW50cy5zaGlmdCgpO1xuXG4gICAgaWYgKHNlZ21lbnQgPT09ICcuLicpIHtcbiAgICAgIHN1YmplY3RTZWdtZW50cy5wb3AoKTtcbiAgICB9IGVsc2UgaWYgKHNlZ21lbnQpIHtcbiAgICAgIHN1YmplY3RTZWdtZW50cy5wdXNoKHNlZ21lbnQpO1xuICAgIH1cbiAgfVxuXG4gIHJldHVybiBzdWJqZWN0U2VnbWVudHMuam9pbignLycpO1xufTtcbiJdfQ==
@@ -0,0 +1,82 @@
1
+ export function getElementUniqueName(collection, name, comparator) {
2
+ let result = '';
3
+ let index = 0;
4
+ while (!result) {
5
+ const candidate = name + (index ? ` (${index})` : '');
6
+ const exists = collection.some(comparator(candidate));
7
+ if (!exists) {
8
+ result = candidate;
9
+ }
10
+ else {
11
+ index++;
12
+ }
13
+ }
14
+ return result;
15
+ }
16
+ const insertElementAt = (source, target, parentPath, index) => {
17
+ const result = [...source];
18
+ const name = getElementUniqueName(result, target.name, (name) => (el) => el.name === name);
19
+ const path = parentPath ? `${parentPath}/${name}` : name;
20
+ result.splice(index, 0, Object.assign(Object.assign({}, target), { path, name }));
21
+ return result;
22
+ };
23
+ export const insertElement = (source, target, path, index) => {
24
+ if (!path) {
25
+ return insertElementAt(source, target, '', index);
26
+ }
27
+ return source.map(element => {
28
+ var _a;
29
+ if (element.path === path) {
30
+ return Object.assign(Object.assign({}, element), { children: insertElementAt(element.children, target, element.path, index) });
31
+ }
32
+ else if ((_a = element.path) === null || _a === void 0 ? void 0 : _a.startsWith(path)) {
33
+ return Object.assign(Object.assign({}, element), { children: insertElement(element.children, target, path, index) });
34
+ }
35
+ else {
36
+ return element;
37
+ }
38
+ });
39
+ };
40
+ export const removeElement = (source, path) => {
41
+ return source.reduce((trunk, element) => {
42
+ if (path === element.path) {
43
+ return trunk;
44
+ }
45
+ if (element.path) {
46
+ if (path.startsWith(element.path)) {
47
+ trunk.push(Object.assign(Object.assign({}, element), { children: removeElement(element.children, path) }));
48
+ }
49
+ else {
50
+ trunk.push(element);
51
+ }
52
+ }
53
+ return trunk;
54
+ }, []);
55
+ };
56
+ export const findElementByPath = (source, path) => {
57
+ for (const el of source) {
58
+ if (el.path === path) {
59
+ return el;
60
+ }
61
+ if (el.path && path.startsWith(el.path)) {
62
+ const found = findElementByPath(el.children, path);
63
+ if (found) {
64
+ return found;
65
+ }
66
+ }
67
+ }
68
+ return;
69
+ };
70
+ export const findElementByModule = (elements, module, elementName) => {
71
+ for (const el of elements) {
72
+ if (el.module === module && el.name === elementName) {
73
+ return el;
74
+ }
75
+ const child = findElementByModule(el.children, module, elementName);
76
+ if (child) {
77
+ return child;
78
+ }
79
+ }
80
+ return;
81
+ };
82
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidWktZGVmaW5pdGlvbi51dGlscy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc2RrL2Ntcy91dGlscy91aS1kZWZpbml0aW9uLnV0aWxzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLE1BQU0sVUFBVSxvQkFBb0IsQ0FDbEMsVUFBZSxFQUNmLElBQVksRUFDWixVQUFnRjtJQUVoRixJQUFJLE1BQU0sR0FBRyxFQUFFLENBQUM7SUFDaEIsSUFBSSxLQUFLLEdBQUcsQ0FBQyxDQUFDO0lBRWQsT0FBTyxDQUFDLE1BQU0sRUFBRTtRQUNkLE1BQU0sU0FBUyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUMsS0FBSyxLQUFLLEdBQUcsQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUM7UUFDdEQsTUFBTSxNQUFNLEdBQUcsVUFB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jZSkge1xuICAgIGlmIChlbC5wYXRoID09PSBwYXRoKSB7XG4gICAgICByZXR1cm4gZWw7XG4gICAgfVxuXG4gICAgaWYgKGVsLnBhdGggJiYgcGF0aC5zdGFydHNXaXRoKGVsLnBhdGgpKSB7XG4gICAgICBjb25zdCBmb3VuZCA9IGZpbmRFbGVtZW50QnlQYXRoKGVsLmNoaWxkcmVuLCBwYXRoKTtcbiAgICAgIGlmIChmb3VuZCkge1xuICAgICAgICByZXR1cm4gZm91bmQ7XG4gICAgICB9XG4gICAgfVxuICB9XG5cbiAgcmV0dXJuO1xufTtcblxuZXhwb3J0IGNvbnN0IGZpbmRFbGVtZW50QnlNb2R1bGUgPSAoXG4gIGVsZW1lbnRzOiBFbGVtZW50TWV0YWRhdGFbXSxcbiAgbW9kdWxlOiBzdHJpbmcsXG4gIGVsZW1lbnROYW1lOiBzdHJpbmcsXG4pOiBFbGVtZW50TWV0YWRhdGEgfCB1bmRlZmluZWQgPT4ge1xuICBmb3IgKGNvbnN0IGVsIG9mIGVsZW1lbnRzKSB7XG4gICAgaWYgKGVsLm1vZHVsZSA9PT0gbW9kdWxlICYmIGVsLm5hbWUgPT09IGVsZW1lbnROYW1lKSB7XG4gICAgICByZXR1cm4gZWw7XG4gICAgfVxuXG4gICAgY29uc3QgY2hpbGQgPSBmaW5kRWxlbWVudEJ5TW9kdWxlKGVsLmNoaWxkcmVuLCBtb2R1bGUsIGVsZW1lbnROYW1lKTtcbiAgICBpZiAoY2hpbGQpIHtcbiAgICAgIHJldHVybiBjaGlsZDtcbiAgICB9XG4gIH1cblxuICByZXR1cm47XG59O1xuIl19
@@ -1,7 +1,9 @@
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, lineItemUtils, 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 { isDefined } from '@veloceapps/core';
6
+ import { ConfigurationService, ContextService, FlowConfigurationService, lineItemUtils, LineItemWorker, ProductImagesService, QuoteDraftService, } from '@veloceapps/sdk/core';
5
7
  import * as lodash from 'lodash';
6
8
  import * as rxjs from 'rxjs';
7
9
  import * as rxjsOperators from 'rxjs/operators';
@@ -10,13 +12,12 @@ import * as cmsInjectionTokens from './injection-tokens';
10
12
  import { IntegrationState } from './services/integration.state';
11
13
  import { TemplatesService } from './services/templates.service';
12
14
  const VELOCE_LIBS = {
13
- '@veloceapps/sdk/core': Object.assign({ ConfigurationService,
14
- QuoteDraftService,
15
- FlowConfigurationService,
16
- LineItemWorker,
17
- ProductImagesService }, lineItemUtils),
18
- '@veloceapps/sdk/cms': Object.assign(Object.assign(Object.assign({}, cmsInjectionTokens), cmsActions), { TemplatesService,
19
- IntegrationState }),
15
+ '@veloceapps/core': {
16
+ isDefined,
17
+ },
18
+ '@veloceapps/components': {
19
+ ToastService,
20
+ },
20
21
  '@veloceapps/api': {
21
22
  SalesforceApiService,
22
23
  QuoteApiService,
@@ -27,8 +28,18 @@ const VELOCE_LIBS = {
27
28
  DeltaApiService,
28
29
  PicklistsApiService,
29
30
  PriceApiService,
31
+ ShoppingCartSettingsApiService,
32
+ ConfigurationSettingsApiService,
30
33
  },
34
+ '@veloceapps/sdk/core': Object.assign({ ConfigurationService,
35
+ QuoteDraftService,
36
+ FlowConfigurationService,
37
+ LineItemWorker,
38
+ ProductImagesService,
39
+ ContextService }, lineItemUtils),
40
+ '@veloceapps/sdk/cms': Object.assign(Object.assign(Object.assign({}, cmsInjectionTokens), cmsActions), { TemplatesService,
41
+ IntegrationState }),
31
42
  };
32
43
  const VELOCE_LIBS_BACKWARDS_COMPATIBLE = Object.entries(VELOCE_LIBS).reduce((trunk, [key, value]) => (Object.assign(Object.assign({}, trunk), { [key.replace('@veloceapps/', '@veloce/')]: value })), {});
33
44
  export const vendorMap = Object.assign(Object.assign(Object.assign({}, VELOCE_LIBS), VELOCE_LIBS_BACKWARDS_COMPATIBLE), { '@angular/core': angularCore, '@angular/forms': angularForms, rxjs: rxjs, 'rxjs/operators': rxjsOperators, lodash: lodash });
34
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVuZG9yLW1hcC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvc2RrL2Ntcy92ZW5kb3ItbWFwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxXQUFXLE1BQU0sZUFBZSxDQUFDO0FBQzdDLE9BQU8sS0FBSyxZQUFZLE1BQU0sZ0JBQWdCLENBQUM7QUFDL0MsT0FBTyxFQUNMLGlCQUFpQixFQUNqQixlQUFlLEVBQ2YsNEJBQTRCLEVBQzVCLDJCQUEyQixFQUMzQixtQkFBbUIsRUFDbkIsZUFBZSxFQUNmLGVBQWUsRUFDZixjQUFjLEVBQ2Qsb0JBQW9CLEdBQ3JCLE1BQU0saUJBQWlCLENBQUM7QUFDekIsT0FBTyxFQUNMLG9CQUFvQixFQUNwQix3QkFBd0IsRUFDeEIsYUFBYSxFQUNiLGNBQWMsRUFDZCxvQkFBb0IsRUFDcEIsaUJBQWlCLEdBQ2xCLE1BQU0sc0JBQXNCLENBQUM7QUFDOUIsT0FBTyxLQUFLLE1BQU0sTUFBTSxRQUFRLENBQUM7QUFDakMsT0FBTyxLQUFLLElBQUksTUFBTSxNQUFNLENBQUM7QUFDN0IsT0FBTyxLQUFLLGFBQWEsTUFBTSxnQk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, MetricsCalculationService, ProductImagesService, QuoteD
5
5
  import * as i0 from "@angular/core";
6
6
  export class SdkCoreModule {
7
7
  }
8
- SdkCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SdkCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
9
- SdkCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SdkCoreModule, imports: [ConfigurationModule, FlowConfigurationModule] });
10
- SdkCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SdkCoreModule, providers: [ContextService, QuoteDraftService, ProductImagesService, MetricsCalculationService], imports: [[ConfigurationModule, FlowConfigurationModule]] });
11
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SdkCoreModule, decorators: [{
8
+ SdkCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SdkCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
9
+ SdkCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SdkCoreModule, imports: [ConfigurationModule, FlowConfigurationModule] });
10
+ SdkCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SdkCoreModule, providers: [ContextService, QuoteDraftService, ProductImagesService, MetricsCalculationService], imports: [[ConfigurationModule, FlowConfigurationModule]] });
11
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SdkCoreModule, decorators: [{
12
12
  type: NgModule,
13
13
  args: [{
14
14
  imports: [ConfigurationModule, FlowConfigurationModule],
@@ -7,9 +7,9 @@ import { RuntimeContextService } from './services/runtime-context.service';
7
7
  import * as i0 from "@angular/core";
8
8
  export class ConfigurationModule {
9
9
  }
10
- ConfigurationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ConfigurationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
11
- ConfigurationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ConfigurationModule, imports: [ConfirmationDialogModule] });
12
- ConfigurationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ConfigurationModule, providers: [
10
+ ConfigurationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ConfigurationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
11
+ ConfigurationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ConfigurationModule, imports: [ConfirmationDialogModule] });
12
+ ConfigurationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ConfigurationModule, providers: [
13
13
  ContextApiService,
14
14
  ProductModelApiService,
15
15
  ConfigurationApiService,
@@ -17,7 +17,7 @@ ConfigurationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ver
17
17
  RuntimeContextService,
18
18
  ConfigurationService,
19
19
  ], imports: [[ConfirmationDialogModule]] });
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ConfigurationModule, decorators: [{
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ConfigurationModule, decorators: [{
21
21
  type: NgModule,
22
22
  args: [{
23
23
  imports: [ConfirmationDialogModule],
@@ -5,7 +5,7 @@ import { first, tap } from 'rxjs/operators';
5
5
  import { RuntimeMode } from '../../../types';
6
6
  import * as i0 from "@angular/core";
7
7
  import * as i1 from "@veloceapps/api";
8
- import * as i2 from "../../../services";
8
+ import * as i2 from "../../../services/context.service";
9
9
  import * as i3 from "./runtime-context.service";
10
10
  export class ConfigurationRuntimeService {
11
11
  constructor(apiService, contextService, runtimeContextService) {
@@ -18,7 +18,6 @@ export class ConfigurationRuntimeService {
18
18
  reset() {
19
19
  this._isInitialized = false;
20
20
  this._runtimeContext = undefined;
21
- this._assets = undefined;
22
21
  this.initializationProps = undefined;
23
22
  this.uiDefinitionProperties = {};
24
23
  }
@@ -44,7 +43,6 @@ export class ConfigurationRuntimeService {
44
43
  }
45
44
  init(props) {
46
45
  this.initializationProps = props;
47
- this._assets = props.assets;
48
46
  const context = this.contextService.resolve();
49
47
  return this.runtimeContextService.getRuntimeContext(props.productId, props.offeringId).pipe(tap(runtimeContext => {
50
48
  var _a, _b, _c, _d;
@@ -70,9 +68,6 @@ export class ConfigurationRuntimeService {
70
68
  source[propertyName] = SalesforceIdUtils.generateId18FromId15(value);
71
69
  }
72
70
  }
73
- getAsset(lineItem) {
74
- return this._assets && this._assets.find(a => a.id === lineItem.openOrderLineItemId || a.id === lineItem.assetId);
75
- }
76
71
  get isInitialized() {
77
72
  return this._isInitialized;
78
73
  }
@@ -84,9 +79,9 @@ export class ConfigurationRuntimeService {
84
79
  return this._runtimeContext;
85
80
  }
86
81
  }
87
- ConfigurationRuntimeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ConfigurationRuntimeService, deps: [{ token: i1.ConfigurationApiService }, { token: i2.ContextService }, { token: i3.RuntimeContextService }], target: i0.ɵɵFactoryTarget.Injectable });
88
- ConfigurationRuntimeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ConfigurationRuntimeService });
89
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ConfigurationRuntimeService, decorators: [{
82
+ ConfigurationRuntimeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ConfigurationRuntimeService, deps: [{ token: i1.ConfigurationApiService }, { token: i2.ContextService }, { token: i3.RuntimeContextService }], target: i0.ɵɵFactoryTarget.Injectable });
83
+ ConfigurationRuntimeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ConfigurationRuntimeService });
84
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ConfigurationRuntimeService, decorators: [{
90
85
  type: Injectable
91
86
  }], ctorParameters: function () { return [{ type: i1.ConfigurationApiService }, { type: i2.ContextService }, { type: i3.RuntimeContextService }]; } });
92
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlndXJhdGlvbi1ydW50aW1lLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3Nkay9jb3JlL21vZHVsZXMvY29uZmlndXJhdGlvbi9zZXJ2aWNlcy9jb25maWd1cmF0aW9uLXJ1bnRpbWUuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRTNDLE9BQU8sRUFBRSx3QkFBd0IsRUFBWSxZQUFZLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUV2RyxPQUFPLEVBQUUsYUFBYSxFQUFjLE1BQU0sTUFBTSxDQUFDO0FBQ2pELE9BQU8sRUFBRSxLQUFLLEVBQUUsR0FBRyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFFNUMsT0FBTyxFQUFrQixXQUFXLEVBQW1DLE1BQU0sZ0JBQWdCLENBQUM7Ozs7O0FBSzlGLE1BQU0sT0FBT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J5TW9kZWxJZChtb2RlbElkKSxcbiAgICAgIHRoaXMuY29udGV4dFNlcnZpY2UuY3JlYXRlKCdUZXN0SWQnLCBDb25maWd1cmF0aW9uQ29udGV4dE1vZGUuVEVTVCksXG4gICAgXSkucGlwZShcbiAgICAgIGZpcnN0KCksXG4gICAgICB0YXAoKFtydW50aW1lRGF0YSwgY29udGV4dF0pID0+IHtcbiAgICAgICAgdGhpcy5fcnVudGltZUNvbnRleHQgPSB7XG4gICAgICAgICAgbW9kZWxJZDogbW9kZWxJZCxcbiAgICAgICAgICBydW50aW1lTW9kZWw6IFJ1bnRpbWVNb2RlbC5jcmVhdGUocnVudGltZURhdGEudHlwZXMsIHJ1bnRpbWVEYXRhLnByb2R1Y3RzKSxcbiAgICAgICAgICBydW50aW1lTW9kZTogUnVudGltZU1vZGUuVEVTVCxcbiAgICAgICAgfTtcblxuICAgICAgICB0aGlzLmNvbnRleHRTZXJ2aWNlLnVwZGF0ZSh7XG4gICAgICAgICAgcHJvcGVydGllczoge1xuICAgICAgICAgICAgLi4udGhpcy5ydW50aW1lQ29udGV4dD8ucHJvcGVydGllcyxcbiAgICAgICAgICAgIC4uLmNvbnRleHQucHJvcGVydGllcyxcbiAgICAgICAgICAgIE1vZGVsSWQ6IG1vZGVsSWQsXG4gICAgICAgICAgICBSdW50aW1lTW9kZTogQ29uZmlndXJhdGlvbkNvbnRleHRNb2RlLlRFU1QsXG4gICAgICAgICAgICBQcmljaW5nRW5hYmxlZDogdGhpcy51aURlZmluaXRpb25Qcm9wZXJ0aWVzLnByaWNpbmdFbmFibGVkID8gJ3RydWUnIDogJ2ZhbHNlJyxcbiAgICAgICAgICAgIFN0YXJ0RGF0ZTogbmV3IERhdGUoKS50b0lTT1N0cmluZygpLnN1YnN0cmluZygwLCAxMCksXG4gICAgICAgICAgICBQcmljZUxpc3RJZDogdGhpcy51aURlZmluaXRpb25Qcm9wZXJ0aWVzLnByaWNlTGlzdCxcbiAgICAgICAgICAgIHN0YW5kYWxvbmU6ICd0cnVlJyxcbiAgICAgICAgICAgIC4uLnVpRGVmaW5pdGlvbkV4dGVybmFscyxcbiAgICAgICAgICB9LFxuICAgICAgICB9KTtcblxuICAgICAgICB0aGlzLl9pc0luaXRpYWxpemVkID0gdHJ1ZTtcbiAgICAgIH0pLFxuICAgICk7XG4gIH1cblxuICBwdWJsaWMgaW5pdChwcm9wczogUnVudGltZUluaXRpYWxpemF0aW9uUHJvcHMpOiBPYnNlcnZhYmxlPFJ1bnRpbWVDb250ZXh0IHwgdW5kZWZpbmVkPiB7XG4gICAgdGhpcy5pbml0aWFsaXphdGlvblByb3BzID0gcHJvcHM7XG4gICAgdGhpcy5fYXNzZXRzID0gcHJvcHMuYXNzZXRzO1xuICAgIGNvbnN0IGNvbnRleHQgPSB0aGlzLmNvbnRleHRTZXJ2aWNlLnJlc29sdmUoKTtcblxuICAgIHJldHVybiB0aGlzLnJ1bnRpbWVDb250ZXh0U2VydmljZS5nZXRSdW50aW1lQ29udGV4dChwcm9wcy5wcm9kdWN0SWQsIHByb3BzLm9mZmVyaW5nSWQpLnBpcGUoXG4gICAgICB0YXAocnVudGltZUNvbnRleHQgPT4ge1xuICAgICAgICB0aGlzLnVpRGVmaW5pdGlvblByb3BlcnRpZXMgPSBydW50aW1lQ29udGV4dC51aURlZmluaXRpb24/LnByb3BlcnRpZXMgPz8ge307XG4gICAgICAgIGNvbnN0IHsgUHJpY2VMaXN0SWQgfSA9IGNvbnRleHQucHJvcGVydGllcyA/PyB7fTtcblxuICAgICAgICBjb25zdCBtZXJnZUNvbnRleHQ6IFJ1bnRpbWVDb250ZXh0ID0ge1xuICAgICAgICAgIC4uLnJ1bnRpbWVDb250ZXh0LFxuICAgICAgICAgIHByb3BlcnRpZXM6IHtcbiAgICAgICAgICAgIC4uLnJ1bnRpbWVDb250ZXh0LnByb3BlcnRpZXMsXG4gICAgICAgICAgICAuLi5jb250ZXh0LnByb3BlcnRpZXMsXG4gICAgICAgICAgICBQcmljaW5nRW5hYmx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ldHVybiB0aGlzLnJ1bnRpbWVDb250ZXh0Py5ydW50aW1lTW9kZWw7XG4gIH1cblxuICBwdWJsaWMgZ2V0IHJ1bnRpbWVDb250ZXh0KCk6IFJ1bnRpbWVDb250ZXh0IHwgdW5kZWZpbmVkIHtcbiAgICByZXR1cm4gdGhpcy5fcnVudGltZUNvbnRleHQ7XG4gIH1cbn1cbiJdfQ==
@@ -4,14 +4,15 @@ import { ConfigurationMode, } from '@veloceapps/core';
4
4
  import { BehaviorSubject, shareReplay, throwError } from 'rxjs';
5
5
  import { catchError, finalize, first, map, switchMap, tap } from 'rxjs/operators';
6
6
  import { RuntimeStep } from '../../../types';
7
- import { LineItemWorker } from '../../../utils';
7
+ import { LineItemWorker } from '../../../utils/line-item.worker';
8
8
  import { getDefaultLineItem } from '../helpers';
9
9
  import * as i0 from "@angular/core";
10
- import * as i1 from "../../../services";
10
+ import * as i1 from "../../../services/quote-draft.service";
11
11
  import * as i2 from "./configuration-runtime.service";
12
- import * as i3 from "@veloceapps/api";
13
- import * as i4 from "primeng/api";
14
- import * as i5 from "primeng/dynamicdialog";
12
+ import * as i3 from "../../../services/context.service";
13
+ import * as i4 from "@veloceapps/api";
14
+ import * as i5 from "primeng/api";
15
+ import * as i6 from "primeng/dynamicdialog";
15
16
  export class ConfigurationService {
16
17
  constructor(quoteDraftService, runtimeService, contextService, configurationApiService, messageService, dialogService) {
17
18
  this.quoteDraftService = quoteDraftService;
@@ -21,7 +22,6 @@ export class ConfigurationService {
21
22
  this.messageService = messageService;
22
23
  this.dialogService = dialogService;
23
24
  this.mode = ConfigurationMode.SEARCH;
24
- this.states = {};
25
25
  this.lineItem = new BehaviorSubject(undefined);
26
26
  this.charges = new BehaviorSubject({});
27
27
  this.pricePlans = new BehaviorSubject({});
@@ -30,7 +30,7 @@ export class ConfigurationService {
30
30
  reset() {
31
31
  this.hasUnsavedChanges = false;
32
32
  this.runtimeService.reset();
33
- this.states = {};
33
+ this.configurableRamp = undefined;
34
34
  this.lineItem.next(undefined);
35
35
  this.charges.next({});
36
36
  this.pricePlans.next({});
@@ -39,10 +39,7 @@ export class ConfigurationService {
39
39
  if (!this.lineItem.value) {
40
40
  return throwError(() => new Error(`Source LineItem not found`));
41
41
  }
42
- this.states.configurableRamp = new LineItemWorker(this.lineItem.value).replace(lineItem).li;
43
- this.states.asset = this.states.configurableRamp
44
- ? this.runtimeService.getAsset(this.states.configurableRamp)
45
- : undefined;
42
+ this.configurableRamp = new LineItemWorker(this.lineItem.value).replace(lineItem).li;
46
43
  return this.configure().pipe(catchError(error => {
47
44
  console.error(error);
48
45
  if (!this.runtimeService.uiDefinitionProperties.suppressToastMessages) {
@@ -60,8 +57,8 @@ export class ConfigurationService {
60
57
  patch(lineItem) {
61
58
  this.patch$(lineItem).subscribe();
62
59
  }
63
- updateCurrentStates(update) {
64
- this.states = Object.assign(Object.assign({}, this.states), update);
60
+ setConfigurableRamp(lineItem) {
61
+ this.configurableRamp = lineItem;
65
62
  }
66
63
  get() {
67
64
  return this.lineItem.asObservable().pipe(shareReplay());
@@ -102,7 +99,7 @@ export class ConfigurationService {
102
99
  }
103
100
  const uiDefinitionProperties = Object.assign(Object.assign({}, ((_b = (_a = runtimeContext.uiDefinition) === null || _a === void 0 ? void 0 : _a.properties) !== null && _b !== void 0 ? _b : {})), ((_c = this.runtimeService.uiDefinitionProperties) !== null && _c !== void 0 ? _c : {}));
104
101
  const qty = (_d = this.runtimeService.initializationProps) === null || _d === void 0 ? void 0 : _d.defaultQty;
105
- const lineItem = (_e = this.states.configurableRamp) !== null && _e !== void 0 ? _e : getDefaultLineItem(runtimeContext, uiDefinitionProperties, qty);
102
+ const lineItem = (_e = this.configurableRamp) !== null && _e !== void 0 ? _e : getDefaultLineItem(runtimeContext, uiDefinitionProperties, qty);
106
103
  const configurationRequest = this.createRequest(lineItem);
107
104
  const mainPricingEnabled = (_f = runtimeContext.properties) === null || _f === void 0 ? void 0 : _f.PricingEnabled;
108
105
  const pricingEnabled = mainPricingEnabled ? mainPricingEnabled === 'true' : uiDefinitionProperties.pricingEnabled;
@@ -120,23 +117,21 @@ export class ConfigurationService {
120
117
  .pipe(tap(lineItem => lineItem && this.lineItem.next(lineItem)), catchError(error => throwError(() => { var _a; return new Error(((_a = error.error) === null || _a === void 0 ? void 0 : _a.message) || error.message || JSON.stringify(error)); })));
121
118
  }
122
119
  configureExternal$(productId, qty) {
123
- this.updateCurrentStates({
124
- currentState: this.quoteDraftService.currentState,
125
- });
126
120
  return this.runtimeService.init({ productId, defaultQty: qty }).pipe(switchMap(() => this.configure()), first(), catchError(error => {
127
121
  this.messageService.add({ severity: ToastType.error, summary: error });
128
122
  throw error;
129
123
  }), finalize(() => this.reset()));
130
124
  }
131
125
  createRequest(lineItem) {
126
+ var _a;
132
127
  return {
133
128
  lineItem,
134
129
  mode: this.mode,
135
130
  step: !this.lineItem.value ? RuntimeStep.START : RuntimeStep.UPDATE,
136
131
  attributeDomainMode: 'ALL',
137
132
  context: this.contextService.resolve(),
138
- lineItems: this.states.currentState || [],
139
- asset: this.states.asset,
133
+ lineItems: ((_a = this.quoteDraftService.quoteDraft) === null || _a === void 0 ? void 0 : _a.currentState) || [],
134
+ asset: this.getAsset(),
140
135
  };
141
136
  }
142
137
  showInactiveProductsConfirmation() {
@@ -164,10 +159,18 @@ export class ConfigurationService {
164
159
  }
165
160
  });
166
161
  }
162
+ getAsset() {
163
+ var _a;
164
+ const lineItem = this.configurableRamp;
165
+ if (!lineItem) {
166
+ return;
167
+ }
168
+ return (_a = this.quoteDraftService.quoteDraft) === null || _a === void 0 ? void 0 : _a.initialState.find(a => a.id === lineItem.openOrderLineItemId || a.id === lineItem.assetId);
169
+ }
167
170
  }
168
- ConfigurationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ConfigurationService, deps: [{ token: i1.QuoteDraftService }, { token: i2.ConfigurationRuntimeService }, { token: i1.ContextService }, { token: i3.ConfigurationApiService }, { token: i4.MessageService }, { token: i5.DialogService }], target: i0.ɵɵFactoryTarget.Injectable });
169
- ConfigurationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ConfigurationService });
170
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ConfigurationService, decorators: [{
171
+ ConfigurationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ConfigurationService, deps: [{ token: i1.QuoteDraftService }, { token: i2.ConfigurationRuntimeService }, { token: i3.ContextService }, { token: i4.ConfigurationApiService }, { token: i5.MessageService }, { token: i6.DialogService }], target: i0.ɵɵFactoryTarget.Injectable });
172
+ ConfigurationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ConfigurationService });
173
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ConfigurationService, decorators: [{
171
174
  type: Injectable
172
- }], ctorParameters: function () { return [{ type: i1.QuoteDraftService }, { type: i2.ConfigurationRuntimeService }, { type: i1.ContextService }, { type: i3.ConfigurationApiService }, { type: i4.MessageService }, { type: i5.DialogService }]; } });
173
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlndXJhdGlvbi5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9zZGsvY29yZS9tb2R1bGVzL2NvbmZpZ3VyYXRpb24vc2VydmljZXMvY29uZmlndXJhdGlvbi5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFM0MsT0FBTyxFQUFFLHFCQUFxQixFQUFFLFNBQVMsRUFBRSxNQUFNLH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gd2lkdGg6ICc0NDBweCcsXG4gICAgICAgIGRhdGE6IHtcbiAgICAgICAgICBjb25maXJtYXRpb25Db25maWc6IHtcbiAgICAgICAgICAgIHRpdGxlOiAnICcsXG4gICAgICAgICAgICBkZXNjcmlwdGlvbjogJ1RoaXMgcXVvdGUgY29udGFpbnMgaW5hY3RpdmUgcHJvZHVjdHMuIERvIHlvdSB3YW50IHRvIHJlbW92ZSB0aGVtPycsXG4gICAgICAgICAgICBzdWJtaXRCdG46ICdSZW1vdmUgcHJvZHVjdHMnLFxuICAgICAgICAgICAgY2FuY2VsQnRuOiAnQmFjayB0byBRdW90ZScsXG4gICAgICAgICAgfSxcbiAgICAgICAgfSxcbiAgICAgIH0pXG4gICAgICAub25DbG9zZS5zdWJzY3JpYmUocmVzdWx0ID0+IHtcbiAgICAgICAgaWYgKCFyZXN1bHQpIHtcbiAgICAgICAgICBjb25zdCBjb250ZXh0ID0gdGhpcy5jb250ZXh0U2VydmljZS5yZXNvbHZlKCk7XG4gICAgICAgICAgd2luZG93WydWRUxPX0JBQ0tfRk4nXS5hcHBseShudWxsLCBbY29udGV4dC5oZWFkZXJJZF0pO1xuICAgICAgICB9XG4gICAgICB9KTtcbiAgfVxufVxuIl19
175
+ }], ctorParameters: function () { return [{ type: i1.QuoteDraftService }, { type: i2.ConfigurationRuntimeService }, { type: i3.ContextService }, { type: i4.ConfigurationApiService }, { type: i5.MessageService }, { type: i6.DialogService }]; } });
176
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlndXJhdGlvbi5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9zZGsvY29yZS9tb2R1bGVzL2NvbmZpZ3VyYXRpb24vc2VydmljZXMvY29uZmlndXJhdGlvbi5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE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2FudCB0byByZW1vdmUgdGhlbT8nLFxuICAgICAgICAgICAgc3VibWl0QnRuOiAnUmVtb3ZlIHByb2R1Y3RzJyxcbiAgICAgICAgICAgIGNhbmNlbEJ0bjogJ0JhY2sgdG8gUXVvdGUnLFxuICAgICAgICAgIH0sXG4gICAgICAgIH0sXG4gICAgICB9KVxuICAgICAgLm9uQ2xvc2Uuc3Vic2NyaWJlKHJlc3VsdCA9PiB7XG4gICAgICAgIGlmICghcmVzdWx0KSB7XG4gICAgICAgICAgY29uc3QgY29udGV4dCA9IHRoaXMuY29udGV4dFNlcnZpY2UucmVzb2x2ZSgpO1xuICAgICAgICAgIHdpbmRvd1snVkVMT19CQUNLX0ZOJ10uYXBwbHkobnVsbCwgW2NvbnRleHQuaGVhZGVySWRdKTtcbiAgICAgICAgfVxuICAgICAgfSk7XG4gIH1cblxuICBwcml2YXRlIGdldEFzc2V0KCk6IExpbmVJdGVtIHwgdW5kZWZpbmVkIHtcbiAgICBjb25zdCBsaW5lSXRlbSA9IHRoaXMuY29uZmlndXJhYmxlUmFtcDtcbiAgICBpZiAoIWxpbmVJdGVtKSB7XG4gICAgICByZXR1cm47XG4gICAgfVxuXG4gICAgcmV0dXJuIHRoaXMucXVvdGVEcmFmdFNlcnZpY2UucXVvdGVEcmFmdD8uaW5pdGlhbFN0YXRlLmZpbmQoXG4gICAgICBhID0+IGEuaWQgPT09IGxpbmVJdGVtLm9wZW5PcmRlckxpbmVJdGVtSWQgfHwgYS5pZCA9PT0gbGluZUl0ZW0uYXNzZXRJZCxcbiAgICApO1xuICB9XG59XG4iXX0=
@@ -43,9 +43,9 @@ export class RuntimeContextService {
43
43
  return uiDefinition;
44
44
  }
45
45
  }
46
- RuntimeContextService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: RuntimeContextService, deps: [{ token: i1.ConfigurationApiService }], target: i0.ɵɵFactoryTarget.Injectable });
47
- RuntimeContextService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: RuntimeContextService });
48
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: RuntimeContextService, decorators: [{
46
+ RuntimeContextService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: RuntimeContextService, deps: [{ token: i1.ConfigurationApiService }], target: i0.ɵɵFactoryTarget.Injectable });
47
+ RuntimeContextService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: RuntimeContextService });
48
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: RuntimeContextService, decorators: [{
49
49
  type: Injectable
50
50
  }], ctorParameters: function () { return [{ type: i1.ConfigurationApiService }]; } });
51
51
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicnVudGltZS1jb250ZXh0LnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3Nkay9jb3JlL21vZHVsZXMvY29uZmlndXJhdGlvbi9zZXJ2aWNlcy9ydW50aW1lLWNvbnRleHQuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRTNDLE9BQU8sRUFBZSxZQUFZLEVBQXNDLE1BQU0sa0JBQWtCLENBQUM7QUFFakcsT0FBTyxFQUFFLEdBQUcsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ3JDLE9BQU8sRUFBa0IsV0FBVyxFQUFnQixNQUFNLGdCQUFnQixDQUFDOzs7QUFHM0UsTUFBTSxPQUFPLHFCQUFxQjtJQUNoQyxZQUFvQix1QkFBZ0Q7UUFBaEQsNEJBQXVCLEdB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RGVmaW5pdGlvbnNTb3VyY2UpO1xuICAgIH0gY2F0Y2ggKGUpIHtcbiAgICAgIHJldHVybjtcbiAgICB9XG5cbiAgICBjb25zdCB1aURlZmluaXRpb25zID0gcmF3VWlEZWZpbml0aW9ucy5maWx0ZXIodWlEZWYgPT4gKHVpRGVmIGFzIFVJRGVmaW5pdGlvbikudmVyc2lvbikgYXMgVUlEZWZpbml0aW9uW107XG4gICAgY29uc3QgdWlEZWZpbml0aW9uID0gdWlEZWZpbml0aW9ucy5maW5kKHVpRGVmID0+IHVpRGVmLnByaW1hcnkpID8/IHVpRGVmaW5pdGlvbnNbMF07XG5cbiAgICByZXR1cm4gdWlEZWZpbml0aW9uO1xuICB9XG59XG4iXX0=
@@ -1,2 +1,2 @@
1
1
  export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlndXJhdGlvbi1ydW50aW1lLnR5cGVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9zZGsvY29yZS9tb2R1bGVzL2NvbmZpZ3VyYXRpb24vdHlwZXMvY29uZmlndXJhdGlvbi1ydW50aW1lLnR5cGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBMaW5lSXRlbSB9IGZyb20gJ0B2ZWxvY2VhcHBzL2NvcmUnO1xuXG5leHBvcnQgaW50ZXJmYWNlIFJ1bnRpbWVJbml0aWFsaXphdGlvblByb3BzIHtcbiAgcHJvZHVjdElkOiBzdHJpbmc7XG4gIG9mZmVyaW5nSWQ/OiBzdHJpbmc7XG4gIGFzc2V0cz86IExpbmVJdGVtW107XG4gIGRlZmF1bHRRdHk/OiBudW1iZXI7XG59XG4iXX0=
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlndXJ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