@veloceapps/sdk 8.0.0-10 → 8.0.0-101

Sign up to get free protection for your applications and to get access to all the features.
Files changed (312) hide show
  1. package/README.md +0 -1
  2. package/cms/README.md +0 -20
  3. package/cms/cms.actions.d.ts +7 -1
  4. package/cms/components/preview/preview.component.d.ts +1 -2
  5. package/cms/index.d.ts +1 -0
  6. package/cms/modules/runtime/services/runtime.service.d.ts +1 -1
  7. package/cms/services/index.d.ts +0 -1
  8. package/cms/types/index.d.ts +0 -1
  9. package/cms/utils/element.utils.d.ts +1 -0
  10. package/cms/vendor-map.d.ts +21 -13
  11. package/core/README.md +20 -0
  12. package/core/modules/configuration/helpers.d.ts +2 -2
  13. package/core/modules/configuration/services/configuration-runtime.service.d.ts +1 -1
  14. package/core/modules/configuration/services/configuration.service.d.ts +6 -1
  15. package/core/pipes/action-code.pipe.d.ts +8 -0
  16. package/core/pipes/date.pipe.d.ts +2 -1
  17. package/core/pipes/index.d.ts +1 -0
  18. package/core/pipes/pipes.module.d.ts +2 -1
  19. package/core/services/context.service.d.ts +2 -0
  20. package/core/services/flow-info.service.d.ts +24 -0
  21. package/core/services/flow-state.service.d.ts +50 -0
  22. package/core/services/index.d.ts +3 -0
  23. package/core/services/quote-draft.service.d.ts +8 -1
  24. package/core/services/runtime-settings.service.d.ts +4 -1
  25. package/core/types/formatting-settings.types.d.ts +2 -0
  26. package/core/types/index.d.ts +2 -0
  27. package/{cms → core}/types/integration.types.d.ts +1 -0
  28. package/core/types/pipe.types.d.ts +1 -0
  29. package/esm2020/cms/cms.actions.mjs +15 -1
  30. package/esm2020/cms/components/element-children/element-children.component.mjs +3 -3
  31. package/esm2020/cms/components/element-children/element-children.module.mjs +4 -4
  32. package/esm2020/cms/components/element-drop-handle/element-drop-handle.component.mjs +3 -3
  33. package/esm2020/cms/components/element-drop-handle/element-drop-handle.module.mjs +4 -4
  34. package/esm2020/cms/components/element-renderer/element-renderer.component.mjs +3 -3
  35. package/esm2020/cms/components/element-renderer/element-renderer.module.mjs +4 -4
  36. package/esm2020/cms/components/element-tools-panel/element-tools-panel.component.mjs +5 -5
  37. package/esm2020/cms/components/plugin.component.mjs +3 -3
  38. package/esm2020/cms/components/preview/preview.component.mjs +9 -11
  39. package/esm2020/cms/components/preview/preview.module.mjs +6 -6
  40. package/esm2020/cms/directives/custom-template.directive.mjs +7 -7
  41. package/esm2020/cms/index.mjs +2 -1
  42. package/esm2020/cms/launcher.module.mjs +7 -7
  43. package/esm2020/cms/modules/federated/federated-host.directive.mjs +3 -3
  44. package/esm2020/cms/modules/federated/federated.component.mjs +3 -3
  45. package/esm2020/cms/modules/federated/federated.module.mjs +4 -4
  46. package/esm2020/cms/modules/migrations/migrations.module.mjs +4 -4
  47. package/esm2020/cms/modules/migrations/services/migrations.service.mjs +3 -3
  48. package/esm2020/cms/modules/runtime/runtime.module.mjs +4 -4
  49. package/esm2020/cms/modules/runtime/services/compilation.service.mjs +8 -4
  50. package/esm2020/cms/modules/runtime/services/runtime-editor.service.mjs +3 -3
  51. package/esm2020/cms/modules/runtime/services/runtime.service.mjs +7 -7
  52. package/esm2020/cms/plugins/configuration.plugin.mjs +3 -3
  53. package/esm2020/cms/plugins/element-hover.plugin.mjs +3 -3
  54. package/esm2020/cms/plugins/io.plugin.mjs +8 -7
  55. package/esm2020/cms/plugins/page.plugin.mjs +3 -3
  56. package/esm2020/cms/plugins/region.plugin.mjs +3 -3
  57. package/esm2020/cms/plugins/script.plugin.mjs +3 -3
  58. package/esm2020/cms/services/element-context.service.mjs +3 -3
  59. package/esm2020/cms/services/index.mjs +1 -2
  60. package/esm2020/cms/services/io-provider.service.mjs +3 -3
  61. package/esm2020/cms/services/resources.service.mjs +3 -3
  62. package/esm2020/cms/services/templates.service.mjs +3 -3
  63. package/esm2020/cms/types/index.mjs +1 -2
  64. package/esm2020/cms/utils/element.utils.mjs +10 -3
  65. package/esm2020/cms/utils/elements-resolver.mjs +2 -2
  66. package/esm2020/cms/vendor-map.mjs +13 -5
  67. package/esm2020/core/core.module.mjs +10 -17
  68. package/esm2020/core/directives/directives.module.mjs +4 -4
  69. package/esm2020/core/directives/primeng-calendar.directive.mjs +3 -3
  70. package/esm2020/core/modules/configuration/configuration.module.mjs +4 -4
  71. package/esm2020/core/modules/configuration/helpers.mjs +8 -3
  72. package/esm2020/core/modules/configuration/services/configuration-runtime.service.mjs +11 -14
  73. package/esm2020/core/modules/configuration/services/configuration.service.mjs +29 -10
  74. package/esm2020/core/modules/configuration/services/configuration.state.mjs +5 -5
  75. package/esm2020/core/modules/configuration/services/runtime-context.service.mjs +9 -9
  76. package/esm2020/core/modules/flow-configuration/flow-configuration.module.mjs +4 -4
  77. package/esm2020/core/modules/flow-configuration/services/flow-configuration.service.mjs +3 -3
  78. package/esm2020/core/modules/flow-configuration/services/flow-update.service.mjs +3 -3
  79. package/esm2020/core/pipes/action-code.pipe.mjs +20 -0
  80. package/esm2020/core/pipes/date.pipe.mjs +13 -7
  81. package/esm2020/core/pipes/index.mjs +2 -1
  82. package/esm2020/core/pipes/number.pipe.mjs +3 -3
  83. package/esm2020/core/pipes/pipes.module.mjs +8 -7
  84. package/esm2020/core/pipes/price.pipe.mjs +3 -3
  85. package/esm2020/core/services/context.service.mjs +20 -5
  86. package/esm2020/core/services/flow-info.service.mjs +72 -0
  87. package/esm2020/core/services/flow-state.service.mjs +320 -0
  88. package/esm2020/core/services/index.mjs +4 -1
  89. package/esm2020/core/services/integration.state.mjs +37 -0
  90. package/esm2020/core/services/metric-calculation/metric-calculation.service.mjs +3 -3
  91. package/esm2020/core/services/product-images.service.mjs +3 -3
  92. package/esm2020/core/services/quote-draft.service.mjs +31 -6
  93. package/esm2020/core/services/runtime-settings.service.mjs +20 -5
  94. package/esm2020/core/types/formatting-settings.types.mjs +1 -1
  95. package/esm2020/core/types/index.mjs +3 -1
  96. package/esm2020/core/types/integration.types.mjs +2 -0
  97. package/esm2020/core/types/pipe.types.mjs +2 -0
  98. package/esm2020/src/components/dialog/dialog.component.mjs +3 -3
  99. package/esm2020/src/components/dialog/dialog.module.mjs +4 -4
  100. package/esm2020/src/components/doc-gen/doc-gen.component.mjs +48 -46
  101. package/esm2020/src/components/doc-gen/doc-gen.module.mjs +4 -4
  102. package/esm2020/src/components/flow-header/flow-header.component.mjs +118 -0
  103. package/esm2020/src/components/flow-header/flow-header.module.mjs +19 -0
  104. package/esm2020/src/components/flow-header/index.mjs +2 -0
  105. package/esm2020/src/components/guided-selling/guided-selling.component.mjs +45 -44
  106. package/esm2020/src/components/guided-selling/guided-selling.module.mjs +4 -4
  107. package/esm2020/src/configure-primeng.mjs +33 -0
  108. package/esm2020/src/flow-routing.module.mjs +66 -75
  109. package/esm2020/src/flow.component.mjs +21 -29
  110. package/esm2020/src/flow.module.mjs +11 -9
  111. package/esm2020/src/guards/context.guard.mjs +7 -12
  112. package/esm2020/src/guards/flow.guard.mjs +31 -0
  113. package/esm2020/src/guards/product-unload.guard.mjs +7 -4
  114. package/esm2020/src/guards/root.guard.mjs +17 -13
  115. package/esm2020/src/pages/assets/assets.component.mjs +18 -13
  116. package/esm2020/src/pages/assets/assets.module.mjs +4 -4
  117. package/esm2020/src/pages/catalog/catalog.component.mjs +17 -13
  118. package/esm2020/src/pages/catalog/catalog.module.mjs +4 -4
  119. package/esm2020/src/pages/debug/debug.component.mjs +12 -16
  120. package/esm2020/src/pages/debug/debug.module.mjs +4 -4
  121. package/esm2020/src/pages/empty-account/empty-account.component.mjs +3 -3
  122. package/esm2020/src/pages/empty-account/empty-account.module.mjs +4 -4
  123. package/esm2020/src/pages/product/product.component.mjs +7 -9
  124. package/esm2020/src/pages/product/product.module.mjs +4 -4
  125. package/esm2020/src/pages/record-not-found/record-not-found.component.mjs +3 -3
  126. package/esm2020/src/pages/record-not-found/record-not-found.module.mjs +4 -4
  127. package/esm2020/src/pages/remote/remote.component.mjs +13 -14
  128. package/esm2020/src/pages/remote/remote.module.mjs +4 -4
  129. package/esm2020/src/pages/shopping-cart/shopping-cart.component.mjs +17 -13
  130. package/esm2020/src/pages/shopping-cart/shopping-cart.module.mjs +4 -4
  131. package/esm2020/src/resolvers/flow.resolver.mjs +37 -51
  132. package/esm2020/src/resolvers/quote.resolver.mjs +40 -65
  133. package/esm2020/src/services/doc-gen.service.mjs +7 -6
  134. package/esm2020/src/services/flow-dialog.service.mjs +8 -4
  135. package/esm2020/src/services/flow-router.service.mjs +31 -10
  136. package/esm2020/src/services/flow.service.mjs +36 -11
  137. package/esm2020/src/services/guided-selling.service.mjs +7 -6
  138. package/esm2020/src/services/index.mjs +3 -1
  139. package/esm2020/src/types/flow-customization.types.mjs +1 -1
  140. package/esm2020/src/utils/flow.utils.mjs +6 -2
  141. package/fesm2015/veloceapps-sdk-cms.mjs +221 -220
  142. package/fesm2015/veloceapps-sdk-cms.mjs.map +1 -1
  143. package/fesm2015/veloceapps-sdk-core.mjs +1325 -841
  144. package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
  145. package/fesm2015/veloceapps-sdk.mjs +726 -1456
  146. package/fesm2015/veloceapps-sdk.mjs.map +1 -1
  147. package/fesm2020/veloceapps-sdk-cms.mjs +243 -242
  148. package/fesm2020/veloceapps-sdk-cms.mjs.map +1 -1
  149. package/fesm2020/veloceapps-sdk-core.mjs +1666 -1177
  150. package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
  151. package/fesm2020/veloceapps-sdk.mjs +831 -1560
  152. package/fesm2020/veloceapps-sdk.mjs.map +1 -1
  153. package/package.json +3 -11
  154. package/src/components/doc-gen/doc-gen.component.d.ts +6 -8
  155. package/src/components/flow-header/flow-header.component.d.ts +27 -0
  156. package/src/components/flow-header/flow-header.module.d.ts +9 -0
  157. package/src/components/flow-header/index.d.ts +1 -0
  158. package/src/components/guided-selling/guided-selling.component.d.ts +5 -7
  159. package/src/configure-primeng.d.ts +1 -0
  160. package/src/flow-routing.module.d.ts +6 -7
  161. package/src/flow.component.d.ts +7 -10
  162. package/src/flow.module.d.ts +2 -2
  163. package/src/guards/context.guard.d.ts +4 -5
  164. package/src/guards/flow.guard.d.ts +2 -0
  165. package/src/guards/product-unload.guard.d.ts +2 -2
  166. package/src/guards/root.guard.d.ts +0 -1
  167. package/src/pages/assets/assets.component.d.ts +3 -3
  168. package/src/pages/catalog/catalog.component.d.ts +3 -3
  169. package/src/pages/debug/debug.component.d.ts +5 -8
  170. package/src/pages/product/product.component.d.ts +2 -2
  171. package/src/pages/remote/remote.component.d.ts +1 -2
  172. package/src/pages/shopping-cart/shopping-cart.component.d.ts +3 -3
  173. package/src/resolvers/flow.resolver.d.ts +6 -7
  174. package/src/resolvers/quote.resolver.d.ts +6 -12
  175. package/src/services/doc-gen.service.d.ts +1 -1
  176. package/src/services/flow-dialog.service.d.ts +1 -0
  177. package/src/services/flow-router.service.d.ts +4 -2
  178. package/src/services/flow.service.d.ts +4 -2
  179. package/src/services/guided-selling.service.d.ts +1 -1
  180. package/src/services/index.d.ts +2 -0
  181. package/src/types/flow-customization.types.d.ts +1 -1
  182. package/esm2020/cms/services/integration.state.mjs +0 -37
  183. package/esm2020/cms/types/integration.types.mjs +0 -2
  184. package/esm2020/runtime/components/component-preview/component-preview.component.mjs +0 -125
  185. package/esm2020/runtime/components/index.mjs +0 -5
  186. package/esm2020/runtime/components/section-renderer/section-renderer.component.mjs +0 -67
  187. package/esm2020/runtime/components/ui-runtime/runtime.component.mjs +0 -440
  188. package/esm2020/runtime/components/ui-runtime-preview/runtime-preview.component.mjs +0 -108
  189. package/esm2020/runtime/execution/components/children-placeholder/children-placeholder.component.mjs +0 -60
  190. package/esm2020/runtime/execution/components/context-provider/context-provider.component.mjs +0 -39
  191. package/esm2020/runtime/execution/components/execution-section-renderer/execution-section-renderer.component.mjs +0 -67
  192. package/esm2020/runtime/execution/components/federated/federated.component.mjs +0 -74
  193. package/esm2020/runtime/execution/components/velo-attribute/velo-attribute.component.mjs +0 -60
  194. package/esm2020/runtime/execution/components/velo-multiselect/velo-multiselect.component.mjs +0 -130
  195. package/esm2020/runtime/execution/components/velo-port-checkbox/velo-port-checkbox.component.mjs +0 -72
  196. package/esm2020/runtime/execution/components/velo-port-dropdown/velo-port-dropdown.component.mjs +0 -97
  197. package/esm2020/runtime/execution/components/velo-port-radio/velo-port-radio.component.mjs +0 -142
  198. package/esm2020/runtime/execution/components/velo-type/velo-type.component.mjs +0 -119
  199. package/esm2020/runtime/execution/directives/section-script.directive.mjs +0 -247
  200. package/esm2020/runtime/execution/directives/sf-query.directive.mjs +0 -35
  201. package/esm2020/runtime/execution/directives/velo-attribute.directive.mjs +0 -88
  202. package/esm2020/runtime/execution/directives/velo-port.directive.mjs +0 -376
  203. package/esm2020/runtime/execution/directives/vl-approval.directive.mjs +0 -23
  204. package/esm2020/runtime/execution/directives/vl-document-attachments.directive.mjs +0 -36
  205. package/esm2020/runtime/execution/directives/vl-document-templates.directive.mjs +0 -60
  206. package/esm2020/runtime/execution/directives/vl-quote.directive.mjs +0 -42
  207. package/esm2020/runtime/execution/directives/vl-ramp.directive.mjs +0 -55
  208. package/esm2020/runtime/execution/runtime-execution.module.mjs +0 -133
  209. package/esm2020/runtime/execution/utils/federated.util.mjs +0 -32
  210. package/esm2020/runtime/index.mjs +0 -5
  211. package/esm2020/runtime/runtime.module.mjs +0 -74
  212. package/esm2020/runtime/services/cart.service.mjs +0 -29
  213. package/esm2020/runtime/services/collapsible-state.service.mjs +0 -34
  214. package/esm2020/runtime/services/configuration.service.mjs +0 -119
  215. package/esm2020/runtime/services/current-state.service.mjs +0 -17
  216. package/esm2020/runtime/services/form-scope.service.mjs +0 -30
  217. package/esm2020/runtime/services/index.mjs +0 -4
  218. package/esm2020/runtime/services/product-model-cache.service.mjs +0 -31
  219. package/esm2020/runtime/services/runtime-context.service.mjs +0 -60
  220. package/esm2020/runtime/services/runtime-form.service.mjs +0 -219
  221. package/esm2020/runtime/services/runtime.service.mjs +0 -115
  222. package/esm2020/runtime/services/section-helper.service.mjs +0 -27
  223. package/esm2020/runtime/services/section-scope.service.mjs +0 -36
  224. package/esm2020/runtime/services/section-store.service.mjs +0 -22
  225. package/esm2020/runtime/services/section.service.mjs +0 -117
  226. package/esm2020/runtime/types/bound-data.types.mjs +0 -7
  227. package/esm2020/runtime/types/index.mjs +0 -3
  228. package/esm2020/runtime/types/quote-states.types.mjs +0 -2
  229. package/esm2020/runtime/types/runtime.types.mjs +0 -2
  230. package/esm2020/runtime/types/script-registry.types.mjs +0 -51
  231. package/esm2020/runtime/utils/line-item.util.mjs +0 -270
  232. package/esm2020/runtime/utils/section.utils.mjs +0 -26
  233. package/esm2020/runtime/utils/sections-binder.helper.mjs +0 -105
  234. package/esm2020/runtime/veloceapps-sdk-runtime.mjs +0 -5
  235. package/esm2020/src/components/header/cart-overlay/cart-preview.component.mjs +0 -119
  236. package/esm2020/src/components/header/cart-overlay/cart-preview.module.mjs +0 -47
  237. package/esm2020/src/components/header/header.component.mjs +0 -355
  238. package/esm2020/src/components/header/header.module.mjs +0 -52
  239. package/esm2020/src/components/header/header.types.mjs +0 -2
  240. package/esm2020/src/components/header/metrics/index.mjs +0 -2
  241. package/esm2020/src/components/header/metrics/metrics.component.mjs +0 -255
  242. package/esm2020/src/components/header/metrics/metrics.definitions.mjs +0 -2
  243. package/esm2020/src/components/header/metrics/metrics.module.mjs +0 -69
  244. package/esm2020/src/pages/legacy-product/legacy-product.component.mjs +0 -137
  245. package/esm2020/src/pages/legacy-product/legacy-product.module.mjs +0 -19
  246. package/fesm2015/veloceapps-sdk-runtime.mjs +0 -3770
  247. package/fesm2015/veloceapps-sdk-runtime.mjs.map +0 -1
  248. package/fesm2020/veloceapps-sdk-runtime.mjs +0 -3767
  249. package/fesm2020/veloceapps-sdk-runtime.mjs.map +0 -1
  250. package/runtime/README.md +0 -5
  251. package/runtime/components/component-preview/component-preview.component.d.ts +0 -27
  252. package/runtime/components/index.d.ts +0 -4
  253. package/runtime/components/section-renderer/section-renderer.component.d.ts +0 -25
  254. package/runtime/components/ui-runtime/runtime.component.d.ts +0 -53
  255. package/runtime/components/ui-runtime-preview/runtime-preview.component.d.ts +0 -27
  256. package/runtime/execution/components/children-placeholder/children-placeholder.component.d.ts +0 -30
  257. package/runtime/execution/components/context-provider/context-provider.component.d.ts +0 -14
  258. package/runtime/execution/components/execution-section-renderer/execution-section-renderer.component.d.ts +0 -25
  259. package/runtime/execution/components/federated/federated.component.d.ts +0 -36
  260. package/runtime/execution/components/velo-attribute/velo-attribute.component.d.ts +0 -19
  261. package/runtime/execution/components/velo-multiselect/velo-multiselect.component.d.ts +0 -35
  262. package/runtime/execution/components/velo-port-checkbox/velo-port-checkbox.component.d.ts +0 -22
  263. package/runtime/execution/components/velo-port-dropdown/velo-port-dropdown.component.d.ts +0 -22
  264. package/runtime/execution/components/velo-port-radio/velo-port-radio.component.d.ts +0 -28
  265. package/runtime/execution/components/velo-type/velo-type.component.d.ts +0 -31
  266. package/runtime/execution/directives/section-script.directive.d.ts +0 -59
  267. package/runtime/execution/directives/sf-query.directive.d.ts +0 -15
  268. package/runtime/execution/directives/velo-attribute.directive.d.ts +0 -26
  269. package/runtime/execution/directives/velo-port.directive.d.ts +0 -74
  270. package/runtime/execution/directives/vl-approval.directive.d.ts +0 -10
  271. package/runtime/execution/directives/vl-document-attachments.directive.d.ts +0 -15
  272. package/runtime/execution/directives/vl-document-templates.directive.d.ts +0 -33
  273. package/runtime/execution/directives/vl-quote.directive.d.ts +0 -14
  274. package/runtime/execution/directives/vl-ramp.directive.d.ts +0 -15
  275. package/runtime/execution/runtime-execution.module.d.ts +0 -25
  276. package/runtime/execution/utils/federated.util.d.ts +0 -6
  277. package/runtime/index.d.ts +0 -4
  278. package/runtime/runtime.module.d.ts +0 -16
  279. package/runtime/services/cart.service.d.ts +0 -15
  280. package/runtime/services/collapsible-state.service.d.ts +0 -15
  281. package/runtime/services/configuration.service.d.ts +0 -20
  282. package/runtime/services/current-state.service.d.ts +0 -8
  283. package/runtime/services/form-scope.service.d.ts +0 -20
  284. package/runtime/services/index.d.ts +0 -3
  285. package/runtime/services/product-model-cache.service.d.ts +0 -14
  286. package/runtime/services/runtime-context.service.d.ts +0 -16
  287. package/runtime/services/runtime-form.service.d.ts +0 -24
  288. package/runtime/services/runtime.service.d.ts +0 -44
  289. package/runtime/services/section-helper.service.d.ts +0 -8
  290. package/runtime/services/section-scope.service.d.ts +0 -14
  291. package/runtime/services/section-store.service.d.ts +0 -11
  292. package/runtime/services/section.service.d.ts +0 -30
  293. package/runtime/types/bound-data.types.d.ts +0 -13
  294. package/runtime/types/index.d.ts +0 -2
  295. package/runtime/types/quote-states.types.d.ts +0 -6
  296. package/runtime/types/runtime.types.d.ts +0 -19
  297. package/runtime/types/script-registry.types.d.ts +0 -13
  298. package/runtime/utils/line-item.util.d.ts +0 -34
  299. package/runtime/utils/section.utils.d.ts +0 -2
  300. package/runtime/utils/sections-binder.helper.d.ts +0 -16
  301. package/src/components/header/cart-overlay/cart-preview.component.d.ts +0 -36
  302. package/src/components/header/cart-overlay/cart-preview.module.d.ts +0 -14
  303. package/src/components/header/header.component.d.ts +0 -70
  304. package/src/components/header/header.module.d.ts +0 -16
  305. package/src/components/header/header.types.d.ts +0 -20
  306. package/src/components/header/metrics/index.d.ts +0 -1
  307. package/src/components/header/metrics/metrics.component.d.ts +0 -67
  308. package/src/components/header/metrics/metrics.definitions.d.ts +0 -1
  309. package/src/components/header/metrics/metrics.module.d.ts +0 -18
  310. package/src/pages/legacy-product/legacy-product.component.d.ts +0 -37
  311. package/src/pages/legacy-product/legacy-product.module.d.ts +0 -9
  312. /package/{cms → core}/services/integration.state.d.ts +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veloceapps/sdk",
3
- "version": "8.0.0-10",
3
+ "version": "8.0.0-101",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/animations": "~15.2.0",
@@ -17,8 +17,8 @@
17
17
  "zone.js": "~0.12.0"
18
18
  },
19
19
  "dependencies": {
20
- "@angular/cdk": "^12.2.12",
21
- "@angular/cdk-experimental": "^13.1.0",
20
+ "@angular/cdk": "^15.2.0",
21
+ "@angular/cdk-experimental": "^15.2.0",
22
22
  "@angular/compiler": "~15.2.0",
23
23
  "@angular-architects/module-federation": "^15.0.3",
24
24
  "@babel/standalone": "^7.17.1",
@@ -64,14 +64,6 @@
64
64
  "es2015": "./fesm2015/veloceapps-sdk-core.mjs",
65
65
  "node": "./fesm2015/veloceapps-sdk-core.mjs",
66
66
  "default": "./fesm2020/veloceapps-sdk-core.mjs"
67
- },
68
- "./runtime": {
69
- "types": "./runtime/index.d.ts",
70
- "esm2020": "./esm2020/runtime/veloceapps-sdk-runtime.mjs",
71
- "es2020": "./fesm2020/veloceapps-sdk-runtime.mjs",
72
- "es2015": "./fesm2015/veloceapps-sdk-runtime.mjs",
73
- "node": "./fesm2015/veloceapps-sdk-runtime.mjs",
74
- "default": "./fesm2020/veloceapps-sdk-runtime.mjs"
75
67
  }
76
68
  }
77
69
  }
@@ -2,23 +2,21 @@ import { OnDestroy } from '@angular/core';
2
2
  import { UITemplatesApiService } from '@veloceapps/api';
3
3
  import { ToastService } from '@veloceapps/components';
4
4
  import { UIDefinition } from '@veloceapps/core';
5
- import { ContextService, QuoteDraftService } from '@veloceapps/sdk/core';
6
- import { BehaviorSubject, Observable } from 'rxjs';
7
- import { FlowDocGenService } from '../../services/doc-gen.service';
5
+ import { ContextService, FlowInfoService, FlowStateService } from '@veloceapps/sdk/core';
6
+ import { BehaviorSubject } from 'rxjs';
8
7
  import { FlowCustomization } from '../../types';
9
8
  import * as i0 from "@angular/core";
10
9
  export declare class DocGenComponent implements OnDestroy {
11
- private quoteDraftService;
12
- private contextService;
13
10
  private templatesApi;
14
- private docGenService;
11
+ private contextService;
12
+ private flowStateService;
13
+ private flowInfo;
15
14
  private toastService;
16
15
  private customizationService?;
17
16
  uiDefinition$: BehaviorSubject<UIDefinition | null>;
18
- isVisible$: Observable<boolean>;
19
17
  private templateApiName;
20
18
  private destroy$;
21
- constructor(quoteDraftService: QuoteDraftService, contextService: ContextService, templatesApi: UITemplatesApiService, docGenService: FlowDocGenService, toastService: ToastService, customizationService?: FlowCustomization | undefined);
19
+ constructor(templatesApi: UITemplatesApiService, contextService: ContextService, flowStateService: FlowStateService, flowInfo: FlowInfoService, toastService: ToastService, customizationService?: FlowCustomization | undefined);
22
20
  ngOnDestroy(): void;
23
21
  private initialize;
24
22
  private getTemplateRootComponent$;
@@ -0,0 +1,27 @@
1
+ import { OnDestroy } from '@angular/core';
2
+ import { UITemplatesApiService } from '@veloceapps/api';
3
+ import { ToastService } from '@veloceapps/components';
4
+ import { UIDefinition } from '@veloceapps/core';
5
+ import { FlowInfoService, FlowStateService } from '@veloceapps/sdk/core';
6
+ import { BehaviorSubject } from 'rxjs';
7
+ import { FlowCustomization } from '../../types';
8
+ import * as i0 from "@angular/core";
9
+ export declare class FlowHeaderComponent implements OnDestroy {
10
+ private templatesApi;
11
+ private flowStateService;
12
+ private flowInfo;
13
+ private toastService;
14
+ private customizationService?;
15
+ uiDefinition$: BehaviorSubject<UIDefinition | null>;
16
+ private templateApiName;
17
+ private destroy$;
18
+ constructor(templatesApi: UITemplatesApiService, flowStateService: FlowStateService, flowInfo: FlowInfoService, toastService: ToastService, customizationService?: FlowCustomization | undefined);
19
+ ngOnDestroy(): void;
20
+ private initialize;
21
+ private getTemplateRootComponent$;
22
+ private getLocalTemplateComponentMeta$;
23
+ private getFlowHeaderComponentMeta$;
24
+ private generateUIDefinition$;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<FlowHeaderComponent, [null, null, null, null, { optional: true; }]>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<FlowHeaderComponent, "vl-flow-new-header", never, {}, {}, never, never, false, never>;
27
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./flow-header.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@veloceapps/sdk/cms";
5
+ export declare class FlowNewHeaderModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<FlowNewHeaderModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FlowNewHeaderModule, [typeof i1.FlowHeaderComponent], [typeof i2.CommonModule, typeof i3.PreviewModule], [typeof i1.FlowHeaderComponent]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<FlowNewHeaderModule>;
9
+ }
@@ -0,0 +1 @@
1
+ export * from './flow-header.module';
@@ -2,28 +2,26 @@ import { OnDestroy } from '@angular/core';
2
2
  import { UITemplatesApiService } from '@veloceapps/api';
3
3
  import { ToastService } from '@veloceapps/components';
4
4
  import { UIDefinition } from '@veloceapps/core';
5
- import { ContextService, QuoteDraftService } from '@veloceapps/sdk/core';
5
+ import { FlowInfoService, FlowStateService } from '@veloceapps/sdk/core';
6
6
  import { BehaviorSubject } from 'rxjs';
7
- import { FlowGuidedSellingService } from '../../services/guided-selling.service';
8
7
  import { FlowCustomization } from '../../types';
9
8
  import * as i0 from "@angular/core";
10
9
  export declare class GuidedSellingComponent implements OnDestroy {
11
- private quoteDraftService;
12
- private contextService;
13
10
  private templatesApi;
14
- private guidedSellingService;
11
+ private flowStateService;
12
+ private flowInfo;
15
13
  private toastService;
16
14
  private customizationService?;
17
15
  uiDefinition$: BehaviorSubject<UIDefinition | null>;
18
16
  private templateApiName;
19
17
  private destroy$;
20
- constructor(quoteDraftService: QuoteDraftService, contextService: ContextService, templatesApi: UITemplatesApiService, guidedSellingService: FlowGuidedSellingService, toastService: ToastService, customizationService?: FlowCustomization | undefined);
18
+ constructor(templatesApi: UITemplatesApiService, flowStateService: FlowStateService, flowInfo: FlowInfoService, toastService: ToastService, customizationService?: FlowCustomization | undefined);
21
19
  ngOnDestroy(): void;
22
20
  private initialize;
23
21
  private getTemplateRootComponent$;
24
22
  private getLocalTemplateComponentMeta$;
25
23
  private getGuidedSellingComponentMeta$;
26
24
  private generateUIDefinition$;
27
- static ɵfac: i0.ɵɵFactoryDeclaration<GuidedSellingComponent, [null, null, null, null, null, { optional: true; }]>;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<GuidedSellingComponent, [null, null, null, null, { optional: true; }]>;
28
26
  static ɵcmp: i0.ɵɵComponentDeclaration<GuidedSellingComponent, "vl-flow-guided-selling", never, {}, {}, never, never, false, never>;
29
27
  }
@@ -0,0 +1 @@
1
+ export declare const configurePrimengShadowDOM: () => void;
@@ -1,14 +1,13 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "@angular/router";
3
3
  import * as i2 from "./pages/product/product.module";
4
- import * as i3 from "./pages/legacy-product/legacy-product.module";
5
- import * as i4 from "./pages/shopping-cart/shopping-cart.module";
6
- import * as i5 from "./pages/catalog/catalog.module";
7
- import * as i6 from "./pages/assets/assets.module";
8
- import * as i7 from "./pages/remote/remote.module";
9
- import * as i8 from "./pages/empty-account/empty-account.module";
4
+ import * as i3 from "./pages/shopping-cart/shopping-cart.module";
5
+ import * as i4 from "./pages/catalog/catalog.module";
6
+ import * as i5 from "./pages/assets/assets.module";
7
+ import * as i6 from "./pages/remote/remote.module";
8
+ import * as i7 from "./pages/empty-account/empty-account.module";
10
9
  export declare class FlowRoutingModule {
11
10
  static ɵfac: i0.ɵɵFactoryDeclaration<FlowRoutingModule, never>;
12
- static ɵmod: i0.ɵɵNgModuleDeclaration<FlowRoutingModule, never, [typeof i1.RouterModule, typeof i2.ProductModule, typeof i3.LegacyProductModule, typeof i4.ShoppingCartModule, typeof i5.CatalogModule, typeof i6.AssetsModule, typeof i7.RemoteModule, typeof i8.EmptyAccountModule], [typeof i1.RouterModule]>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FlowRoutingModule, never, [typeof i1.RouterModule, typeof i2.ProductModule, typeof i3.ShoppingCartModule, typeof i4.CatalogModule, typeof i5.AssetsModule, typeof i6.RemoteModule, typeof i7.EmptyAccountModule], [typeof i1.RouterModule]>;
13
12
  static ɵinj: i0.ɵɵInjectorDeclaration<FlowRoutingModule>;
14
13
  }
@@ -1,23 +1,20 @@
1
- import { OnDestroy, OnInit } from '@angular/core';
2
- import { IntegrationState } from '@veloceapps/sdk/cms';
3
- import { QuoteDraftService } from '@veloceapps/sdk/core';
1
+ import { FlowInfoService, QuoteDraftService } from '@veloceapps/sdk/core';
4
2
  import { Observable } from 'rxjs';
5
3
  import { FlowService } from './services';
6
- import { FlowDocGenService } from './services/doc-gen.service';
7
4
  import { FlowRouterService } from './services/flow-router.service';
5
+ import { FlowGuidedSellingService } from './services/guided-selling.service';
8
6
  import * as i0 from "@angular/core";
9
- export declare class FlowComponent implements OnInit, OnDestroy {
7
+ export declare class FlowComponent {
10
8
  private routerService;
11
9
  private quoteDraftService;
12
10
  private flowService;
13
- private docGenService;
14
- private integrationState;
11
+ private flowInfo;
12
+ private guidedSellingService;
15
13
  isLoading$: Observable<boolean>;
16
14
  showHeader$: Observable<boolean>;
17
15
  isStandalone$: Observable<boolean>;
18
- constructor(routerService: FlowRouterService, quoteDraftService: QuoteDraftService, flowService: FlowService, docGenService: FlowDocGenService, integrationState: IntegrationState);
19
- ngOnInit(): void;
20
- ngOnDestroy(): void;
16
+ guidedSellingVisible$: Observable<boolean>;
17
+ constructor(routerService: FlowRouterService, quoteDraftService: QuoteDraftService, flowService: FlowService, flowInfo: FlowInfoService, guidedSellingService: FlowGuidedSellingService);
21
18
  static ɵfac: i0.ɵɵFactoryDeclaration<FlowComponent, never>;
22
19
  static ɵcmp: i0.ɵɵComponentDeclaration<FlowComponent, "vl-flow", never, {}, {}, never, never, false, never>;
23
20
  }
@@ -5,13 +5,13 @@ import * as i3 from "@veloceapps/components";
5
5
  import * as i4 from "./flow-routing.module";
6
6
  import * as i5 from "@veloceapps/api";
7
7
  import * as i6 from "@veloceapps/sdk/cms";
8
- import * as i7 from "./components/header/header.module";
8
+ import * as i7 from "./components/flow-header/flow-header.module";
9
9
  import * as i8 from "./components/dialog/dialog.module";
10
10
  import * as i9 from "@veloceapps/sdk/core";
11
11
  import * as i10 from "./components/doc-gen/doc-gen.module";
12
12
  import * as i11 from "./components/guided-selling/guided-selling.module";
13
13
  export declare class FlowModule {
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<FlowModule, never>;
15
- static ɵmod: i0.ɵɵNgModuleDeclaration<FlowModule, [typeof i1.FlowComponent], [typeof i2.CommonModule, typeof i3.LetDirectiveModule, typeof i4.FlowRoutingModule, typeof i5.ApiModule, typeof i6.LauncherModule, typeof i3.LoaderModule, typeof i7.FlowHeaderModule, typeof i8.FlowDialogModule, typeof i9.SdkCoreModule, typeof i10.DocGenModule, typeof i11.GuidedSellingModule], never>;
15
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FlowModule, [typeof i1.FlowComponent], [typeof i2.CommonModule, typeof i3.LetDirectiveModule, typeof i4.FlowRoutingModule, typeof i5.ApiModule, typeof i6.LauncherModule, typeof i3.LoaderModule, typeof i7.FlowNewHeaderModule, typeof i8.FlowDialogModule, typeof i9.SdkCoreModule, typeof i10.DocGenModule, typeof i11.GuidedSellingModule], never>;
16
16
  static ɵinj: i0.ɵɵInjectorDeclaration<FlowModule>;
17
17
  }
@@ -4,17 +4,16 @@ import { Observable } from 'rxjs';
4
4
  import { FlowRouterService } from '../services/flow-router.service';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class ContextGuard implements CanActivate, CanActivateChild {
7
- private router;
8
- private routerService;
9
- private contextService;
10
- private runtimeSettingsService;
7
+ protected router: Router;
8
+ protected routerService: FlowRouterService;
9
+ protected contextService: ContextService;
10
+ protected runtimeSettingsService: RuntimeSettingsService;
11
11
  constructor(router: Router, routerService: FlowRouterService, contextService: ContextService, runtimeSettingsService: RuntimeSettingsService);
12
12
  checkActivation(route: ActivatedRouteSnapshot): Observable<boolean>;
13
13
  canActivate(route: ActivatedRouteSnapshot): Observable<boolean> | Promise<boolean> | boolean;
14
14
  canActivateChild(childRoute: ActivatedRouteSnapshot): Observable<boolean> | Promise<boolean> | boolean;
15
15
  private get rpcMessageId();
16
16
  private getConfigurationContextMode;
17
- private handleError;
18
17
  static ɵfac: i0.ɵɵFactoryDeclaration<ContextGuard, never>;
19
18
  static ɵprov: i0.ɵɵInjectableDeclaration<ContextGuard>;
20
19
  }
@@ -0,0 +1,2 @@
1
+ import { CanActivateFn } from '@angular/router';
2
+ export declare const keepFlowInitialized: CanActivateFn;
@@ -1,5 +1,5 @@
1
1
  import { Component } from '@angular/core';
2
- import { ActivatedRouteSnapshot, CanDeactivate, Router, RouterStateSnapshot } from '@angular/router';
2
+ import { ActivatedRouteSnapshot, CanDeactivate, Router, RouterStateSnapshot, UrlTree } from '@angular/router';
3
3
  import { ConfigurationService, ContextService, QuoteDraftService } from '@veloceapps/sdk/core';
4
4
  import { Observable } from 'rxjs';
5
5
  import { FlowDialogService } from '../services/flow-dialog.service';
@@ -11,7 +11,7 @@ export declare class ProductUnloadGuard implements CanDeactivate<any> {
11
11
  private configurationService;
12
12
  private flowDialogService;
13
13
  constructor(router: Router, contextService: ContextService, quoteDraftService: QuoteDraftService, configurationService: ConfigurationService, flowDialogService: FlowDialogService);
14
- canDeactivate(_: Component, route: ActivatedRouteSnapshot, currentState: RouterStateSnapshot, nextState?: RouterStateSnapshot): Observable<boolean>;
14
+ canDeactivate(_: Component, route: ActivatedRouteSnapshot, currentState: RouterStateSnapshot, nextState?: RouterStateSnapshot): Observable<boolean | UrlTree>;
15
15
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductUnloadGuard, never>;
16
16
  static ɵprov: i0.ɵɵInjectableDeclaration<ProductUnloadGuard>;
17
17
  }
@@ -6,7 +6,6 @@ export declare class RootGuard implements CanActivate, CanDeactivate<any> {
6
6
  private router;
7
7
  private routerService;
8
8
  private initialized;
9
- private navToRestore;
10
9
  constructor(router: Router, routerService: FlowRouterService);
11
10
  canActivate(route: ActivatedRouteSnapshot): Observable<boolean> | Promise<boolean> | boolean;
12
11
  canDeactivate(): boolean;
@@ -2,7 +2,7 @@ import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { UITemplatesApiService } from '@veloceapps/api';
3
3
  import { ToastService } from '@veloceapps/components';
4
4
  import { UIDefinition } from '@veloceapps/core';
5
- import { ContextService } from '@veloceapps/sdk/core';
5
+ import { FlowInfoService } from '@veloceapps/sdk/core';
6
6
  import { BehaviorSubject } from 'rxjs';
7
7
  import { FlowCustomization } from '../../types';
8
8
  import * as i0 from "@angular/core";
@@ -12,15 +12,15 @@ interface State {
12
12
  }
13
13
  export declare class AssetsComponent implements OnInit, OnDestroy {
14
14
  private templatesApi;
15
- private contextService;
16
15
  private cdr;
17
16
  private toastService;
17
+ private flowInfo;
18
18
  private customizationService?;
19
19
  uiDefinition?: UIDefinition;
20
20
  state$: BehaviorSubject<State>;
21
21
  private templateApiName;
22
22
  private destroyed$;
23
- constructor(templatesApi: UITemplatesApiService, contextService: ContextService, cdr: ChangeDetectorRef, toastService: ToastService, customizationService?: FlowCustomization | undefined);
23
+ constructor(templatesApi: UITemplatesApiService, cdr: ChangeDetectorRef, toastService: ToastService, flowInfo: FlowInfoService, customizationService?: FlowCustomization | undefined);
24
24
  ngOnInit(): void;
25
25
  ngOnDestroy(): void;
26
26
  private getTemplateRootComponent$;
@@ -2,7 +2,7 @@ import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { UITemplatesApiService } from '@veloceapps/api';
3
3
  import { ToastService } from '@veloceapps/components';
4
4
  import { UIDefinition } from '@veloceapps/core';
5
- import { ContextService } from '@veloceapps/sdk/core';
5
+ import { FlowInfoService } from '@veloceapps/sdk/core';
6
6
  import { BehaviorSubject } from 'rxjs';
7
7
  import { FlowCustomization } from '../../types';
8
8
  import * as i0 from "@angular/core";
@@ -12,15 +12,15 @@ interface State {
12
12
  }
13
13
  export declare class CatalogComponent implements OnInit, OnDestroy {
14
14
  private templatesApi;
15
- private contextService;
16
15
  private cdr;
17
16
  private toastService;
17
+ private flowInfo;
18
18
  private customizationService?;
19
19
  uiDefinition?: UIDefinition;
20
20
  state$: BehaviorSubject<State>;
21
21
  private templateApiName;
22
22
  private destroyed$;
23
- constructor(templatesApi: UITemplatesApiService, contextService: ContextService, cdr: ChangeDetectorRef, toastService: ToastService, customizationService?: FlowCustomization | undefined);
23
+ constructor(templatesApi: UITemplatesApiService, cdr: ChangeDetectorRef, toastService: ToastService, flowInfo: FlowInfoService, customizationService?: FlowCustomization | undefined);
24
24
  ngOnInit(): void;
25
25
  ngOnDestroy(): void;
26
26
  private getTemplateRootComponent$;
@@ -1,13 +1,10 @@
1
1
  import { FormControl, FormGroup } from '@angular/forms';
2
- import { ActivatedRoute, Router } from '@angular/router';
2
+ import { ActivatedRoute, Params, Router } from '@angular/router';
3
3
  import { FlowsApiService } from '@veloceapps/api';
4
- import { FlowProperties } from '@veloceapps/core';
4
+ import { Flow } from '@veloceapps/core';
5
5
  import { ContextService, QuoteDraftService } from '@veloceapps/sdk/core';
6
6
  import { Observable } from 'rxjs';
7
7
  import * as i0 from "@angular/core";
8
- interface FlowPropertiesExt extends FlowProperties {
9
- queryParamsStr: string;
10
- }
11
8
  export declare class DebugComponent {
12
9
  private flowsApiService;
13
10
  private router;
@@ -17,11 +14,11 @@ export declare class DebugComponent {
17
14
  form: FormGroup<{
18
15
  id: FormControl<string | null>;
19
16
  }>;
20
- selectedFlow?: FlowPropertiesExt;
21
- flows$: Observable<FlowPropertiesExt[]>;
17
+ selectedFlow?: Flow;
18
+ flows$: Observable<Flow[]>;
22
19
  constructor(flowsApiService: FlowsApiService, router: Router, activatedRoute: ActivatedRoute, context: ContextService, quoteDraftService: QuoteDraftService);
23
20
  runFlow(): void;
21
+ getQueryParamsString(params: Params): string;
24
22
  static ɵfac: i0.ɵɵFactoryDeclaration<DebugComponent, never>;
25
23
  static ɵcmp: i0.ɵɵComponentDeclaration<DebugComponent, "vl-flow-debug", never, {}, {}, never, never, false, never>;
26
24
  }
27
- export {};
@@ -1,6 +1,6 @@
1
1
  import { UIDefinition } from '@veloceapps/core';
2
- import { CMSPreviewConfig, IntegrationState } from '@veloceapps/sdk/cms';
3
- import { ConfigurationRuntimeService, ConfigurationService, ConfigurationState, ContextService, QuoteDraftService } from '@veloceapps/sdk/core';
2
+ import { CMSPreviewConfig } from '@veloceapps/sdk/cms';
3
+ import { ConfigurationRuntimeService, ConfigurationService, ConfigurationState, ContextService, IntegrationState, QuoteDraftService } from '@veloceapps/sdk/core';
4
4
  import { BehaviorSubject } from 'rxjs';
5
5
  import { FlowCustomization } from '../../types/flow-customization.types';
6
6
  import * as i0 from "@angular/core";
@@ -1,8 +1,7 @@
1
1
  import { Location } from '@angular/common';
2
2
  import { OnDestroy } from '@angular/core';
3
3
  import { UIDefinition } from '@veloceapps/core';
4
- import { IntegrationState } from '@veloceapps/sdk/cms';
5
- import { ConfigurationRuntimeService, ConfigurationService, ConfigurationState, ContextService, QuoteDraftService } from '@veloceapps/sdk/core';
4
+ import { ConfigurationRuntimeService, ConfigurationService, ConfigurationState, ContextService, IntegrationState, QuoteDraftService } from '@veloceapps/sdk/core';
6
5
  import { MessageService } from 'primeng/api';
7
6
  import { BehaviorSubject } from 'rxjs';
8
7
  import * as i0 from "@angular/core";
@@ -2,7 +2,7 @@ import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { UITemplatesApiService } from '@veloceapps/api';
3
3
  import { ToastService } from '@veloceapps/components';
4
4
  import { UIDefinition } from '@veloceapps/core';
5
- import { ContextService } from '@veloceapps/sdk/core';
5
+ import { FlowInfoService } from '@veloceapps/sdk/core';
6
6
  import { BehaviorSubject } from 'rxjs';
7
7
  import { FlowCustomization } from '../../types';
8
8
  import * as i0 from "@angular/core";
@@ -12,15 +12,15 @@ interface State {
12
12
  }
13
13
  export declare class ShoppingCartComponent implements OnInit, OnDestroy {
14
14
  private templatesApi;
15
- private contextService;
16
15
  private cdr;
17
16
  private toastService;
17
+ private flowInfo;
18
18
  private customizationService?;
19
19
  uiDefinition?: UIDefinition;
20
20
  state$: BehaviorSubject<State>;
21
21
  private templateApiName;
22
22
  private destroyed$;
23
- constructor(templatesApi: UITemplatesApiService, contextService: ContextService, cdr: ChangeDetectorRef, toastService: ToastService, customizationService?: FlowCustomization | undefined);
23
+ constructor(templatesApi: UITemplatesApiService, cdr: ChangeDetectorRef, toastService: ToastService, flowInfo: FlowInfoService, customizationService?: FlowCustomization | undefined);
24
24
  ngOnInit(): void;
25
25
  ngOnDestroy(): void;
26
26
  private getTemplateRootComponent$;
@@ -1,16 +1,15 @@
1
1
  import { ActivatedRouteSnapshot, Resolve, Router } from '@angular/router';
2
- import { FlowsApiService } from '@veloceapps/api';
3
- import { ContextService } from '@veloceapps/sdk/core';
2
+ import { ContextService, FlowInfoService } from '@veloceapps/sdk/core';
3
+ import { Observable } from 'rxjs';
4
4
  import { FlowRouterService } from '../services/flow-router.service';
5
5
  import * as i0 from "@angular/core";
6
- export declare class FlowResolver implements Resolve<Promise<boolean>> {
6
+ export declare class FlowResolver implements Resolve<unknown> {
7
7
  private router;
8
- private flowsApiService;
9
8
  private routerService;
10
9
  private contextService;
11
- constructor(router: Router, flowsApiService: FlowsApiService, routerService: FlowRouterService, contextService: ContextService);
12
- private handleError;
13
- resolve(route: ActivatedRouteSnapshot): any;
10
+ private flowInfo;
11
+ constructor(router: Router, routerService: FlowRouterService, contextService: ContextService, flowInfo: FlowInfoService);
12
+ resolve(route: ActivatedRouteSnapshot): Observable<boolean>;
14
13
  static ɵfac: i0.ɵɵFactoryDeclaration<FlowResolver, never>;
15
14
  static ɵprov: i0.ɵɵInjectableDeclaration<FlowResolver>;
16
15
  }
@@ -1,6 +1,5 @@
1
1
  import { ActivatedRouteSnapshot, Resolve, Router } from '@angular/router';
2
- import { IntegrationState } from '@veloceapps/sdk/cms';
3
- import { ContextService, FlowConfigurationService, QuoteDraftService } from '@veloceapps/sdk/core';
2
+ import { ContextService, FlowInfoService, FlowStateService, QuoteDraftService } from '@veloceapps/sdk/core';
4
3
  import { Observable } from 'rxjs';
5
4
  import { FlowRouterService } from '../services/flow-router.service';
6
5
  import * as i0 from "@angular/core";
@@ -9,16 +8,11 @@ export declare class QuoteResolver implements Resolve<void | boolean> {
9
8
  private quoteDraftService;
10
9
  private routerService;
11
10
  private contextService;
12
- private flowConfiguration;
13
- private integrationState;
14
- constructor(router: Router, quoteDraftService: QuoteDraftService, routerService: FlowRouterService, contextService: ContextService, flowConfiguration: FlowConfigurationService, integrationState: IntegrationState);
15
- private handleError;
16
- private calculate$;
17
- resolve(route: ActivatedRouteSnapshot): Observable<void | boolean>;
18
- private changeNavigation;
19
- private shouldNavigateToAssets;
20
- private accountHasNotAssets;
21
- private initializeModifiedAssetsMap;
11
+ private flowInfo;
12
+ private flowStateService;
13
+ constructor(router: Router, quoteDraftService: QuoteDraftService, routerService: FlowRouterService, contextService: ContextService, flowInfo: FlowInfoService, flowStateService: FlowStateService);
14
+ resolve(route: ActivatedRouteSnapshot): Observable<boolean>;
15
+ private checkDynamicNavigation$;
22
16
  static ɵfac: i0.ɵɵFactoryDeclaration<QuoteResolver, never>;
23
17
  static ɵprov: i0.ɵɵInjectableDeclaration<QuoteResolver>;
24
18
  }
@@ -1,4 +1,4 @@
1
- import { IntegrationState } from '@veloceapps/sdk/cms';
1
+ import { IntegrationState } from '@veloceapps/sdk/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class FlowDocGenService {
4
4
  private integrationState;
@@ -21,6 +21,7 @@ export declare class FlowDialogService {
21
21
  showDocgenReadonlyDialog(): Observable<boolean>;
22
22
  showDocgenOutsideShoppingCartDialog(): Observable<boolean>;
23
23
  showDocgenUnsavedChangesDialog(): Observable<boolean>;
24
+ showDialog(dialog: keyof Omit<FlowDialogService, 'show' | 'constructor'>): Observable<boolean>;
24
25
  static ɵfac: i0.ɵɵFactoryDeclaration<FlowDialogService, never>;
25
26
  static ɵprov: i0.ɵɵInjectableDeclaration<FlowDialogService>;
26
27
  }
@@ -1,6 +1,5 @@
1
1
  import { ActivatedRoute, ActivatedRouteSnapshot, Params, Router } from '@angular/router';
2
- import { IntegrationState } from '@veloceapps/sdk/cms';
3
- import { ContextService } from '@veloceapps/sdk/core';
2
+ import { ContextService, IntegrationState } from '@veloceapps/sdk/core';
4
3
  import { Observable } from 'rxjs';
5
4
  import * as i0 from "@angular/core";
6
5
  export declare class FlowRouterService {
@@ -18,6 +17,7 @@ export declare class FlowRouterService {
18
17
  getFlowRootPath(route: ActivatedRouteSnapshot): string;
19
18
  get route$(): Observable<ActivatedRouteSnapshot>;
20
19
  get params$(): Observable<Params>;
20
+ get params(): Params;
21
21
  getLastChildRoute: (route: ActivatedRoute) => ActivatedRoute;
22
22
  getNthChildRoute: (route: ActivatedRoute, index: number) => ActivatedRoute;
23
23
  getLastChildRouteSnapshot: (route: ActivatedRouteSnapshot) => ActivatedRouteSnapshot;
@@ -30,10 +30,12 @@ export declare class FlowRouterService {
30
30
  isCatalogRoute$(): Observable<boolean>;
31
31
  isAssetsRoute$(): Observable<boolean>;
32
32
  navigateBack(): void;
33
+ navigateTo(path: string, productId?: string, lineItemId?: string): void;
33
34
  navigateToProductConfiguration(productId: string, lineItemId?: string): void;
34
35
  navigateToShoppingCart(): void;
35
36
  navigateToCatalog(): void;
36
37
  navigateToAssets(): void;
38
+ showErrorPage$(message: string): Observable<false>;
37
39
  switchObject(id: string): void;
38
40
  static ɵfac: i0.ɵɵFactoryDeclaration<FlowRouterService, never>;
39
41
  static ɵprov: i0.ɵɵInjectableDeclaration<FlowRouterService>;
@@ -1,5 +1,6 @@
1
1
  import { IntegrationState } from '@veloceapps/sdk/cms';
2
2
  import { ConfigurationService, FlowConfigurationService, QuoteDraftService } from '@veloceapps/sdk/core';
3
+ import { FlowDialogService } from './flow-dialog.service';
3
4
  import { FlowRouterService } from './flow-router.service';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class FlowService {
@@ -8,10 +9,11 @@ export declare class FlowService {
8
9
  private quoteDraftService;
9
10
  private configurationService;
10
11
  private flowConfigurationService;
12
+ private flowDialogService;
11
13
  private cleanup$;
12
- constructor(integrationState: IntegrationState, flowRouterService: FlowRouterService, quoteDraftService: QuoteDraftService, configurationService: ConfigurationService, flowConfigurationService: FlowConfigurationService);
13
- initSubscriptions(): void;
14
+ constructor(integrationState: IntegrationState, flowRouterService: FlowRouterService, quoteDraftService: QuoteDraftService, configurationService: ConfigurationService, flowConfigurationService: FlowConfigurationService, flowDialogService: FlowDialogService);
14
15
  cleanup(): void;
16
+ initSubscriptions(): void;
15
17
  private updateFlowPath;
16
18
  static ɵfac: i0.ɵɵFactoryDeclaration<FlowService, never>;
17
19
  static ɵprov: i0.ɵɵInjectableDeclaration<FlowService>;
@@ -1,4 +1,4 @@
1
- import { IntegrationState } from '@veloceapps/sdk/cms';
1
+ import { IntegrationState } from '@veloceapps/sdk/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class FlowGuidedSellingService {
4
4
  private integrationState;
@@ -1 +1,3 @@
1
1
  export * from './flow.service';
2
+ export * from './flow-router.service';
3
+ export * from './flow-dialog.service';
@@ -8,5 +8,5 @@ export interface FlowCustomization {
8
8
  getShoppingCartComponent?(templateName: string): Observable<TemplateComponentWithAttachments | null>;
9
9
  getCatalogComponent?(templateName: string): Observable<TemplateComponentWithAttachments | null>;
10
10
  getAssetsComponent?(templateName: string): Observable<TemplateComponentWithAttachments | null>;
11
- getTemplateComponent?(templateName: string): Observable<TemplateComponentWithAttachments | null>;
11
+ getTemplateComponent?(templateName: string): Observable<TemplateComponentWithAttachments[] | null>;
12
12
  }
@@ -1,37 +0,0 @@
1
- import { Injectable } from '@angular/core';
2
- import { BehaviorSubject, filter, map, Subject } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- export class IntegrationState {
5
- constructor() {
6
- this.stateSubj$ = new BehaviorSubject({});
7
- this.action$ = new Subject();
8
- }
9
- get state$() {
10
- return this.stateSubj$.asObservable();
11
- }
12
- get state() {
13
- return this.stateSubj$.getValue();
14
- }
15
- patchState(update) {
16
- this.stateSubj$.next({ ...this.stateSubj$.getValue(), ...update });
17
- }
18
- dispatch(action) {
19
- this.action$.next(action);
20
- }
21
- listen$(actionType) {
22
- return this.action$.pipe(filter(action => action.type === actionType), map(action => action.payload));
23
- }
24
- listenAll$() {
25
- return this.action$.asObservable();
26
- }
27
- clear() {
28
- this.stateSubj$.next({});
29
- }
30
- }
31
- IntegrationState.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: IntegrationState, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
32
- IntegrationState.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: IntegrationState, providedIn: 'root' });
33
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: IntegrationState, decorators: [{
34
- type: Injectable,
35
- args: [{ providedIn: 'root' }]
36
- }] });
37
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWdyYXRpb24uc3RhdGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL3Nkay9jbXMvc2VydmljZXMvaW50ZWdyYXRpb24uc3RhdGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzQyxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sRUFBRSxHQUFHLEVBQWMsT0FBTyxFQUFFLE1BQU0sTUFBTSxDQUFDOztBQUl6RSxNQUFNLE9BQU8sZ0JBQWdCO0lBRDdCO1FBRW1CLGVBQVUsR0FBRyxJQUFJLGVBQWUsQ0FBSSxFQUFPLENBQUMsQ0FBQztRQUM3QyxZQUFPLEdBQUcsSUFBSSxPQUFPLEVBQXFCLENBQUM7S0FnQzdEO0lBOUJDLElBQVcsTUFBTTtRQUNmLE9BQU8sSUFBSSxDQUFDLFVBQVUsQ0FBQyxZQUFZLEVBQUUsQ0FBQztJQUN4QyxDQUFDO0lBRUQsSUFBVyxLQUFLO1FBQ2QsT0FBTyxJQUFJLENBQUMsVUFBVSxDQUFDLFF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IHN0cmluZztcbn0gJiBEaWN0aW9uYXJ5PGFueT47XG4iXX0=