@veloceapps/sdk 8.0.0-18 → 8.0.0-180

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 +2 -3
  5. package/cms/components/preview/preview.types.d.ts +4 -0
  6. package/cms/index.d.ts +1 -0
  7. package/cms/modules/runtime/services/runtime.service.d.ts +1 -1
  8. package/cms/services/index.d.ts +0 -1
  9. package/cms/services/resources.service.d.ts +2 -0
  10. package/cms/types/index.d.ts +0 -1
  11. package/cms/utils/element-metadata-worker.d.ts +11 -0
  12. package/cms/utils/elements-resolver.d.ts +0 -2
  13. package/cms/utils/index.d.ts +3 -0
  14. package/cms/utils/transpilation-worker.d.ts +13 -0
  15. package/cms/vendor-map.d.ts +26 -15
  16. package/core/README.md +20 -0
  17. package/core/modules/configuration/configuration.module.d.ts +2 -1
  18. package/core/modules/configuration/helpers.d.ts +4 -3
  19. package/core/modules/configuration/index.d.ts +1 -1
  20. package/core/modules/configuration/services/configuration-runtime.service.d.ts +1 -1
  21. package/core/modules/configuration/services/configuration-state.service.d.ts +51 -0
  22. package/core/modules/configuration/services/configuration.service.d.ts +10 -5
  23. package/core/modules/configuration/types/configuration.types.d.ts +4 -0
  24. package/core/modules/flow-configuration/flow-configuration.module.d.ts +2 -1
  25. package/core/modules/flow-configuration/services/flow-configuration.service.d.ts +5 -0
  26. package/core/pipes/action-code.pipe.d.ts +8 -0
  27. package/core/pipes/date.pipe.d.ts +2 -1
  28. package/core/pipes/index.d.ts +1 -0
  29. package/core/pipes/pipes.module.d.ts +2 -1
  30. package/core/services/context.service.d.ts +4 -0
  31. package/core/services/flow-info.service.d.ts +29 -0
  32. package/core/services/flow-state-configuration.service.d.ts +19 -0
  33. package/core/services/flow-state.service.d.ts +79 -0
  34. package/core/services/index.d.ts +4 -1
  35. package/core/services/quote-draft.service.d.ts +8 -1
  36. package/core/services/runtime-settings.service.d.ts +4 -1
  37. package/core/types/flow-customization.types.d.ts +22 -0
  38. package/core/types/flow-state.types.d.ts +6 -0
  39. package/core/types/formatting-settings.types.d.ts +2 -0
  40. package/core/types/index.d.ts +3 -0
  41. package/{cms → core}/types/integration.types.d.ts +1 -0
  42. package/core/types/pipe.types.d.ts +1 -0
  43. package/core/utils/line-item.utils.d.ts +0 -1
  44. package/esm2020/cms/cms.actions.mjs +15 -1
  45. package/esm2020/cms/components/element-renderer/element-renderer.component.mjs +3 -3
  46. package/esm2020/cms/components/element-tools-panel/element-tools-panel.component.mjs +3 -3
  47. package/esm2020/cms/components/preview/preview.component.mjs +10 -10
  48. package/esm2020/cms/components/preview/preview.module.mjs +2 -2
  49. package/esm2020/cms/components/preview/preview.types.mjs +1 -1
  50. package/esm2020/cms/index.mjs +2 -1
  51. package/esm2020/cms/launcher.module.mjs +4 -4
  52. package/esm2020/cms/modules/migrations/migrations.mjs +2 -2
  53. package/esm2020/cms/modules/migrations/services/migrations.service.mjs +6 -2
  54. package/esm2020/cms/modules/runtime/services/compilation.service.mjs +11 -7
  55. package/esm2020/cms/modules/runtime/services/runtime.service.mjs +4 -4
  56. package/esm2020/cms/plugins/configuration.plugin.mjs +8 -4
  57. package/esm2020/cms/services/index.mjs +1 -2
  58. package/esm2020/cms/services/io-provider.service.mjs +10 -9
  59. package/esm2020/cms/services/resources.service.mjs +10 -6
  60. package/esm2020/cms/services/templates.service.mjs +10 -9
  61. package/esm2020/cms/types/index.mjs +1 -2
  62. package/esm2020/cms/utils/element-metadata-worker.mjs +31 -0
  63. package/esm2020/cms/utils/elements-resolver.mjs +14 -28
  64. package/esm2020/cms/utils/index.mjs +4 -1
  65. package/esm2020/cms/utils/path.utils.mjs +3 -3
  66. package/esm2020/cms/utils/script.utils.mjs +19 -15
  67. package/esm2020/cms/utils/transpilation-worker.mjs +52 -0
  68. package/esm2020/cms/vendor-map.mjs +18 -6
  69. package/esm2020/core/core.module.mjs +12 -5
  70. package/esm2020/core/modules/configuration/configuration.module.mjs +7 -23
  71. package/esm2020/core/modules/configuration/helpers.mjs +28 -3
  72. package/esm2020/core/modules/configuration/index.mjs +2 -2
  73. package/esm2020/core/modules/configuration/services/configuration-runtime.service.mjs +8 -11
  74. package/esm2020/core/modules/configuration/services/configuration-state.service.mjs +304 -0
  75. package/esm2020/core/modules/configuration/services/configuration.service.mjs +68 -45
  76. package/esm2020/core/modules/configuration/services/runtime-context.service.mjs +6 -6
  77. package/esm2020/core/modules/configuration/types/configuration.types.mjs +1 -1
  78. package/esm2020/core/modules/flow-configuration/flow-configuration.module.mjs +6 -6
  79. package/esm2020/core/modules/flow-configuration/services/flow-configuration.service.mjs +10 -7
  80. package/esm2020/core/pipes/action-code.pipe.mjs +20 -0
  81. package/esm2020/core/pipes/date.pipe.mjs +10 -4
  82. package/esm2020/core/pipes/index.mjs +2 -1
  83. package/esm2020/core/pipes/pipes.module.mjs +5 -4
  84. package/esm2020/core/services/context.service.mjs +32 -5
  85. package/esm2020/core/services/flow-info.service.mjs +99 -0
  86. package/esm2020/core/services/flow-state-configuration.service.mjs +53 -0
  87. package/esm2020/core/services/flow-state.service.mjs +506 -0
  88. package/esm2020/core/services/index.mjs +5 -2
  89. package/esm2020/core/services/integration.state.mjs +36 -0
  90. package/esm2020/core/services/product-images.service.mjs +4 -5
  91. package/esm2020/core/services/quote-draft.service.mjs +32 -8
  92. package/esm2020/core/services/runtime-settings.service.mjs +19 -5
  93. package/esm2020/core/types/flow-customization.types.mjs +3 -0
  94. package/esm2020/core/types/flow-state.types.mjs +2 -0
  95. package/esm2020/core/types/formatting-settings.types.mjs +1 -1
  96. package/esm2020/core/types/index.mjs +4 -1
  97. package/esm2020/core/types/integration.types.mjs +2 -0
  98. package/esm2020/core/types/pipe.types.mjs +2 -0
  99. package/esm2020/core/utils/line-item.utils.mjs +30 -15
  100. package/esm2020/src/components/doc-gen/doc-gen.component.mjs +49 -49
  101. package/esm2020/src/components/flow-header/flow-header.component.mjs +108 -0
  102. package/esm2020/src/components/flow-header/flow-header.module.mjs +19 -0
  103. package/esm2020/src/components/flow-header/index.mjs +2 -0
  104. package/esm2020/src/components/guided-selling/guided-selling.component.mjs +37 -43
  105. package/esm2020/src/configure-primeng.mjs +33 -0
  106. package/esm2020/src/flow-routing.module.mjs +62 -71
  107. package/esm2020/src/flow.component.mjs +23 -32
  108. package/esm2020/src/flow.module.mjs +7 -5
  109. package/esm2020/src/guards/context.guard.mjs +6 -11
  110. package/esm2020/src/guards/flow.guard.mjs +37 -0
  111. package/esm2020/src/guards/product-unload.guard.mjs +4 -1
  112. package/esm2020/src/guards/root.guard.mjs +14 -10
  113. package/esm2020/src/pages/assets/assets.component.mjs +33 -37
  114. package/esm2020/src/pages/catalog/catalog.component.mjs +33 -37
  115. package/esm2020/src/pages/debug/debug.component.mjs +10 -14
  116. package/esm2020/src/pages/product/product.component.mjs +22 -12
  117. package/esm2020/src/pages/record-not-found/record-not-found.component.mjs +6 -3
  118. package/esm2020/src/pages/remote/remote.component.mjs +19 -19
  119. package/esm2020/src/pages/shopping-cart/shopping-cart.component.mjs +34 -38
  120. package/esm2020/src/resolvers/flow.resolver.mjs +37 -49
  121. package/esm2020/src/resolvers/quote.resolver.mjs +55 -63
  122. package/esm2020/src/services/doc-gen.service.mjs +4 -3
  123. package/esm2020/src/services/flow-dialog.service.mjs +21 -6
  124. package/esm2020/src/services/flow-router.service.mjs +57 -16
  125. package/esm2020/src/services/flow.service.mjs +72 -23
  126. package/esm2020/src/services/guided-selling.service.mjs +5 -4
  127. package/esm2020/src/services/index.mjs +3 -1
  128. package/esm2020/src/types/index.mjs +1 -2
  129. package/esm2020/src/utils/flow.utils.mjs +6 -2
  130. package/fesm2015/veloceapps-sdk-cms.mjs +287 -195
  131. package/fesm2015/veloceapps-sdk-cms.mjs.map +1 -1
  132. package/fesm2015/veloceapps-sdk-core.mjs +1595 -728
  133. package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
  134. package/fesm2015/veloceapps-sdk.mjs +740 -1451
  135. package/fesm2015/veloceapps-sdk.mjs.map +1 -1
  136. package/fesm2020/veloceapps-sdk-cms.mjs +291 -209
  137. package/fesm2020/veloceapps-sdk-cms.mjs.map +1 -1
  138. package/fesm2020/veloceapps-sdk-core.mjs +1741 -910
  139. package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
  140. package/fesm2020/veloceapps-sdk.mjs +802 -1511
  141. package/fesm2020/veloceapps-sdk.mjs.map +1 -1
  142. package/package.json +5 -12
  143. package/src/components/doc-gen/doc-gen.component.d.ts +8 -9
  144. package/src/components/flow-header/flow-header.component.d.ts +25 -0
  145. package/src/components/flow-header/flow-header.module.d.ts +9 -0
  146. package/src/components/flow-header/index.d.ts +1 -0
  147. package/src/components/guided-selling/guided-selling.component.d.ts +6 -8
  148. package/src/configure-primeng.d.ts +1 -0
  149. package/src/flow-routing.module.d.ts +6 -7
  150. package/src/flow.component.d.ts +7 -11
  151. package/src/flow.module.d.ts +2 -2
  152. package/src/guards/context.guard.d.ts +4 -5
  153. package/src/guards/flow.guard.d.ts +2 -0
  154. package/src/guards/product-unload.guard.d.ts +2 -2
  155. package/src/guards/root.guard.d.ts +0 -1
  156. package/src/pages/assets/assets.component.d.ts +5 -7
  157. package/src/pages/catalog/catalog.component.d.ts +5 -7
  158. package/src/pages/debug/debug.component.d.ts +5 -8
  159. package/src/pages/product/product.component.d.ts +7 -6
  160. package/src/pages/record-not-found/record-not-found.component.d.ts +2 -0
  161. package/src/pages/remote/remote.component.d.ts +2 -3
  162. package/src/pages/shopping-cart/shopping-cart.component.d.ts +5 -7
  163. package/src/resolvers/flow.resolver.d.ts +6 -7
  164. package/src/resolvers/quote.resolver.d.ts +7 -12
  165. package/src/services/doc-gen.service.d.ts +1 -1
  166. package/src/services/flow-dialog.service.d.ts +5 -2
  167. package/src/services/flow-router.service.d.ts +7 -3
  168. package/src/services/flow.service.d.ts +10 -4
  169. package/src/services/guided-selling.service.d.ts +1 -1
  170. package/src/services/index.d.ts +2 -0
  171. package/src/types/index.d.ts +0 -1
  172. package/core/modules/configuration/services/configuration.state.d.ts +0 -30
  173. package/core/services/metric-calculation/metric-calculation.service.d.ts +0 -25
  174. package/core/services/metric-calculation/metric-calculation.types.d.ts +0 -1
  175. package/core/services/metric-calculation/metric-calculation.utils.d.ts +0 -5
  176. package/esm2020/cms/services/integration.state.mjs +0 -37
  177. package/esm2020/cms/types/integration.types.mjs +0 -2
  178. package/esm2020/core/modules/configuration/services/configuration.state.mjs +0 -142
  179. package/esm2020/core/services/metric-calculation/metric-calculation.service.mjs +0 -85
  180. package/esm2020/core/services/metric-calculation/metric-calculation.types.mjs +0 -2
  181. package/esm2020/core/services/metric-calculation/metric-calculation.utils.mjs +0 -42
  182. package/esm2020/runtime/components/component-preview/component-preview.component.mjs +0 -125
  183. package/esm2020/runtime/components/index.mjs +0 -5
  184. package/esm2020/runtime/components/section-renderer/section-renderer.component.mjs +0 -67
  185. package/esm2020/runtime/components/ui-runtime/runtime.component.mjs +0 -440
  186. package/esm2020/runtime/components/ui-runtime-preview/runtime-preview.component.mjs +0 -108
  187. package/esm2020/runtime/execution/components/children-placeholder/children-placeholder.component.mjs +0 -60
  188. package/esm2020/runtime/execution/components/context-provider/context-provider.component.mjs +0 -39
  189. package/esm2020/runtime/execution/components/execution-section-renderer/execution-section-renderer.component.mjs +0 -67
  190. package/esm2020/runtime/execution/components/federated/federated.component.mjs +0 -74
  191. package/esm2020/runtime/execution/components/velo-attribute/velo-attribute.component.mjs +0 -60
  192. package/esm2020/runtime/execution/components/velo-multiselect/velo-multiselect.component.mjs +0 -130
  193. package/esm2020/runtime/execution/components/velo-port-checkbox/velo-port-checkbox.component.mjs +0 -72
  194. package/esm2020/runtime/execution/components/velo-port-dropdown/velo-port-dropdown.component.mjs +0 -97
  195. package/esm2020/runtime/execution/components/velo-port-radio/velo-port-radio.component.mjs +0 -142
  196. package/esm2020/runtime/execution/components/velo-type/velo-type.component.mjs +0 -119
  197. package/esm2020/runtime/execution/directives/section-script.directive.mjs +0 -247
  198. package/esm2020/runtime/execution/directives/sf-query.directive.mjs +0 -35
  199. package/esm2020/runtime/execution/directives/velo-attribute.directive.mjs +0 -88
  200. package/esm2020/runtime/execution/directives/velo-port.directive.mjs +0 -376
  201. package/esm2020/runtime/execution/directives/vl-approval.directive.mjs +0 -23
  202. package/esm2020/runtime/execution/directives/vl-document-attachments.directive.mjs +0 -36
  203. package/esm2020/runtime/execution/directives/vl-document-templates.directive.mjs +0 -60
  204. package/esm2020/runtime/execution/directives/vl-quote.directive.mjs +0 -42
  205. package/esm2020/runtime/execution/directives/vl-ramp.directive.mjs +0 -55
  206. package/esm2020/runtime/execution/runtime-execution.module.mjs +0 -133
  207. package/esm2020/runtime/execution/utils/federated.util.mjs +0 -32
  208. package/esm2020/runtime/index.mjs +0 -5
  209. package/esm2020/runtime/runtime.module.mjs +0 -74
  210. package/esm2020/runtime/services/cart.service.mjs +0 -29
  211. package/esm2020/runtime/services/collapsible-state.service.mjs +0 -34
  212. package/esm2020/runtime/services/configuration.service.mjs +0 -119
  213. package/esm2020/runtime/services/current-state.service.mjs +0 -17
  214. package/esm2020/runtime/services/form-scope.service.mjs +0 -30
  215. package/esm2020/runtime/services/index.mjs +0 -4
  216. package/esm2020/runtime/services/product-model-cache.service.mjs +0 -31
  217. package/esm2020/runtime/services/runtime-context.service.mjs +0 -60
  218. package/esm2020/runtime/services/runtime-form.service.mjs +0 -219
  219. package/esm2020/runtime/services/runtime.service.mjs +0 -115
  220. package/esm2020/runtime/services/section-helper.service.mjs +0 -27
  221. package/esm2020/runtime/services/section-scope.service.mjs +0 -36
  222. package/esm2020/runtime/services/section-store.service.mjs +0 -22
  223. package/esm2020/runtime/services/section.service.mjs +0 -117
  224. package/esm2020/runtime/types/bound-data.types.mjs +0 -7
  225. package/esm2020/runtime/types/index.mjs +0 -3
  226. package/esm2020/runtime/types/quote-states.types.mjs +0 -2
  227. package/esm2020/runtime/types/runtime.types.mjs +0 -2
  228. package/esm2020/runtime/types/script-registry.types.mjs +0 -51
  229. package/esm2020/runtime/utils/line-item.util.mjs +0 -270
  230. package/esm2020/runtime/utils/section.utils.mjs +0 -26
  231. package/esm2020/runtime/utils/sections-binder.helper.mjs +0 -105
  232. package/esm2020/runtime/veloceapps-sdk-runtime.mjs +0 -5
  233. package/esm2020/src/components/header/cart-overlay/cart-preview.component.mjs +0 -119
  234. package/esm2020/src/components/header/cart-overlay/cart-preview.module.mjs +0 -47
  235. package/esm2020/src/components/header/header.component.mjs +0 -355
  236. package/esm2020/src/components/header/header.module.mjs +0 -52
  237. package/esm2020/src/components/header/header.types.mjs +0 -2
  238. package/esm2020/src/components/header/metrics/index.mjs +0 -2
  239. package/esm2020/src/components/header/metrics/metrics.component.mjs +0 -255
  240. package/esm2020/src/components/header/metrics/metrics.definitions.mjs +0 -2
  241. package/esm2020/src/components/header/metrics/metrics.module.mjs +0 -69
  242. package/esm2020/src/pages/legacy-product/legacy-product.component.mjs +0 -137
  243. package/esm2020/src/pages/legacy-product/legacy-product.module.mjs +0 -19
  244. package/esm2020/src/types/flow-customization.types.mjs +0 -3
  245. package/fesm2015/veloceapps-sdk-runtime.mjs +0 -3770
  246. package/fesm2015/veloceapps-sdk-runtime.mjs.map +0 -1
  247. package/fesm2020/veloceapps-sdk-runtime.mjs +0 -3767
  248. package/fesm2020/veloceapps-sdk-runtime.mjs.map +0 -1
  249. package/runtime/README.md +0 -5
  250. package/runtime/components/component-preview/component-preview.component.d.ts +0 -27
  251. package/runtime/components/index.d.ts +0 -4
  252. package/runtime/components/section-renderer/section-renderer.component.d.ts +0 -25
  253. package/runtime/components/ui-runtime/runtime.component.d.ts +0 -53
  254. package/runtime/components/ui-runtime-preview/runtime-preview.component.d.ts +0 -27
  255. package/runtime/execution/components/children-placeholder/children-placeholder.component.d.ts +0 -30
  256. package/runtime/execution/components/context-provider/context-provider.component.d.ts +0 -14
  257. package/runtime/execution/components/execution-section-renderer/execution-section-renderer.component.d.ts +0 -25
  258. package/runtime/execution/components/federated/federated.component.d.ts +0 -36
  259. package/runtime/execution/components/velo-attribute/velo-attribute.component.d.ts +0 -19
  260. package/runtime/execution/components/velo-multiselect/velo-multiselect.component.d.ts +0 -35
  261. package/runtime/execution/components/velo-port-checkbox/velo-port-checkbox.component.d.ts +0 -22
  262. package/runtime/execution/components/velo-port-dropdown/velo-port-dropdown.component.d.ts +0 -22
  263. package/runtime/execution/components/velo-port-radio/velo-port-radio.component.d.ts +0 -28
  264. package/runtime/execution/components/velo-type/velo-type.component.d.ts +0 -31
  265. package/runtime/execution/directives/section-script.directive.d.ts +0 -59
  266. package/runtime/execution/directives/sf-query.directive.d.ts +0 -15
  267. package/runtime/execution/directives/velo-attribute.directive.d.ts +0 -26
  268. package/runtime/execution/directives/velo-port.directive.d.ts +0 -74
  269. package/runtime/execution/directives/vl-approval.directive.d.ts +0 -10
  270. package/runtime/execution/directives/vl-document-attachments.directive.d.ts +0 -15
  271. package/runtime/execution/directives/vl-document-templates.directive.d.ts +0 -33
  272. package/runtime/execution/directives/vl-quote.directive.d.ts +0 -14
  273. package/runtime/execution/directives/vl-ramp.directive.d.ts +0 -15
  274. package/runtime/execution/runtime-execution.module.d.ts +0 -25
  275. package/runtime/execution/utils/federated.util.d.ts +0 -6
  276. package/runtime/index.d.ts +0 -4
  277. package/runtime/runtime.module.d.ts +0 -16
  278. package/runtime/services/cart.service.d.ts +0 -15
  279. package/runtime/services/collapsible-state.service.d.ts +0 -15
  280. package/runtime/services/configuration.service.d.ts +0 -20
  281. package/runtime/services/current-state.service.d.ts +0 -8
  282. package/runtime/services/form-scope.service.d.ts +0 -20
  283. package/runtime/services/index.d.ts +0 -3
  284. package/runtime/services/product-model-cache.service.d.ts +0 -14
  285. package/runtime/services/runtime-context.service.d.ts +0 -16
  286. package/runtime/services/runtime-form.service.d.ts +0 -24
  287. package/runtime/services/runtime.service.d.ts +0 -44
  288. package/runtime/services/section-helper.service.d.ts +0 -8
  289. package/runtime/services/section-scope.service.d.ts +0 -14
  290. package/runtime/services/section-store.service.d.ts +0 -11
  291. package/runtime/services/section.service.d.ts +0 -30
  292. package/runtime/types/bound-data.types.d.ts +0 -13
  293. package/runtime/types/index.d.ts +0 -2
  294. package/runtime/types/quote-states.types.d.ts +0 -6
  295. package/runtime/types/runtime.types.d.ts +0 -19
  296. package/runtime/types/script-registry.types.d.ts +0 -13
  297. package/runtime/utils/line-item.util.d.ts +0 -34
  298. package/runtime/utils/section.utils.d.ts +0 -2
  299. package/runtime/utils/sections-binder.helper.d.ts +0 -16
  300. package/src/components/header/cart-overlay/cart-preview.component.d.ts +0 -36
  301. package/src/components/header/cart-overlay/cart-preview.module.d.ts +0 -14
  302. package/src/components/header/header.component.d.ts +0 -70
  303. package/src/components/header/header.module.d.ts +0 -16
  304. package/src/components/header/header.types.d.ts +0 -20
  305. package/src/components/header/metrics/index.d.ts +0 -1
  306. package/src/components/header/metrics/metrics.component.d.ts +0 -67
  307. package/src/components/header/metrics/metrics.definitions.d.ts +0 -1
  308. package/src/components/header/metrics/metrics.module.d.ts +0 -18
  309. package/src/pages/legacy-product/legacy-product.component.d.ts +0 -37
  310. package/src/pages/legacy-product/legacy-product.module.d.ts +0 -9
  311. package/src/types/flow-customization.types.d.ts +0 -12
  312. /package/{cms → core}/services/integration.state.d.ts +0 -0
package/README.md CHANGED
@@ -5,7 +5,6 @@
5
5
  ## Content
6
6
 
7
7
  - [core](./core/)
8
- - [runtime](./runtime/)
9
8
  - [cms](./cms/)
10
9
 
11
10
  ![SDK](sdk.png)
package/cms/README.md CHANGED
@@ -2,26 +2,6 @@
2
2
 
3
3
  [← Back to SDK](../)
4
4
 
5
- ## IntegrationState
6
-
7
- An application state, which helps to cover cross-component communication. Contains reactive store and event system.
8
-
9
- `get state$(): Observable<S>`
10
-
11
- `get state(): S`
12
-
13
- `patchState(update: Partial<S>): void`
14
-
15
- `dispatch(action: IntegrationAction): void`
16
-
17
- `listen$<P = any>(actionType: string): Observable<P>`
18
-
19
- `listenAll$<T extends IntegrationAction>(): Observable<T>`
20
-
21
- `clear(): void`
22
-
23
- **Important!** Don't overuse it, otherwise application can become messy and hardly supportable.
24
-
25
5
  ## ResourcesService
26
6
 
27
7
  A service provides an ability to load scripts and styles from external resources.
@@ -1,8 +1,10 @@
1
- import { IntegrationAction } from './types';
1
+ import { IntegrationAction } from '@veloceapps/sdk/core';
2
2
  export declare namespace FlowAction {
3
3
  const FLOW_CONFIGURE_PRODUCT = "[FLOW]_CONFIGURE_PRODUCT";
4
4
  const FLOW_NAVIGATE_BACK = "[FLOW]_NAVIGATE_BACK";
5
+ const FLOW_NAVIGATE_TO = "[FLOW]_NAVIGATE_TO";
5
6
  const FLOW_NAVIGATE_TO_CATALOG = "[FLOW]_NAVIGATE_TO_CATALOG";
7
+ const FLOW_NAVIGATE_TO_SHOPPING_CART = "[FLOW]_NAVIGATE_TO_SHOPPING_CART";
6
8
  const FLOW_APPLY_PRODUCT_CONFIGURATION = "[FLOW]_APPLY_PRODUCT_CONFIGURATION";
7
9
  const FLOW_OPEN_DOC_GEN = "[FLOW]_OPEN_DOC_GEN";
8
10
  const FLOW_CLOSE_DOC_GEN = "[FLOW]_CLOSE_DOC_GEN";
@@ -12,12 +14,15 @@ export declare namespace FlowAction {
12
14
  const OPEN_GUIDED_SELLING = "[FLOW]_OPEN_GUIDED_SELLING";
13
15
  const SUBMIT_GUIDED_SELLING = "[FLOW]_SUBMIT_GUIDED_SELLING";
14
16
  const CLOSE_GUIDED_SELLING = "[FLOW]_CLOSE_GUIDED_SELLING";
17
+ const OPEN_DIALOG = "[FLOW]_OPEN_DIALOG";
15
18
  const ConfigureProductAction: ({ lineItemId, productId, }: {
16
19
  lineItemId?: string | undefined;
17
20
  productId?: string | undefined;
18
21
  }) => IntegrationAction;
19
22
  const NavigateBackAction: () => IntegrationAction;
23
+ const NavigateToAction: (path: string, productId?: string, lineItemId?: string) => IntegrationAction;
20
24
  const NavigateToCatalogAction: () => IntegrationAction;
25
+ const NavigateToShoppingCartAction: () => IntegrationAction;
21
26
  const ApplyProductConfigurationAction: () => IntegrationAction;
22
27
  const OpenDocGenAction: () => IntegrationAction;
23
28
  const CloseDocGenAction: () => IntegrationAction;
@@ -35,6 +40,7 @@ export declare namespace FlowAction {
35
40
  const SubmitGuidedSelling: (payload: {
36
41
  result: Record<string, any>;
37
42
  }) => IntegrationAction;
43
+ const OpenDialog: (dialog: string) => IntegrationAction;
38
44
  }
39
45
  /**
40
46
  * @deprecated
@@ -1,10 +1,9 @@
1
1
  import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { ToastService } from '@veloceapps/components';
3
3
  import { UIDefinition } from '@veloceapps/core';
4
- import { ConfigurationState } from '@veloceapps/sdk/core';
4
+ import { ConfigurationStateService, IntegrationState } from '@veloceapps/sdk/core';
5
5
  import { BehaviorSubject, Observable } from 'rxjs';
6
6
  import { RuntimeService } from '../../modules/runtime/services/runtime.service';
7
- import { IntegrationState } from '../../services';
8
7
  import { ElementMetadata } from '../../types/common.types';
9
8
  import { CMSPreviewConfig } from './preview.types';
10
9
  import * as i0 from "@angular/core";
@@ -22,7 +21,7 @@ export declare class PreviewComponent implements OnInit, OnDestroy {
22
21
  state$: BehaviorSubject<State>;
23
22
  elements$: Observable<ElementMetadata[]>;
24
23
  private destroy$;
25
- constructor(runtimeService: RuntimeService, configurationState: ConfigurationState, toastService: ToastService, integrationState: IntegrationState);
24
+ constructor(runtimeService: RuntimeService, configurationState: ConfigurationStateService, toastService: ToastService, integrationState: IntegrationState);
26
25
  ngOnInit(): void;
27
26
  ngOnDestroy(): void;
28
27
  trackBy(_: number, el: ElementMetadata): ElementMetadata;
@@ -13,6 +13,10 @@ export interface CMSPreviewConfig {
13
13
  * When `true`, preview renders settings page (element with `type: CUSTOMIZATION_PAGE`)
14
14
  */
15
15
  customizationMode?: boolean;
16
+ /**
17
+ * When `true`, preview component does not clear configuration state on destroy
18
+ */
19
+ persistConfigurationState?: boolean;
16
20
  /**
17
21
  * Custom initialization function which will be executed before starting a preview
18
22
  */
package/cms/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export { IntegrationAction, IntegrationState, IntegrationStateModel } from '@veloceapps/sdk/core';
1
2
  export * from './cms.actions';
2
3
  export * from './cms.layouts';
3
4
  export * from './components';
@@ -1,10 +1,10 @@
1
1
  import { Injector, NgModule, NgModuleRef, Type } from '@angular/core';
2
2
  import { UIDefinition } from '@veloceapps/core';
3
+ import { IntegrationState } from '@veloceapps/sdk/core';
3
4
  import { Patch } from 'rfc6902';
4
5
  import { BehaviorSubject, Observable, Subject } from 'rxjs';
5
6
  import { CMSPreviewConfig } from '../../../components/preview/preview.types';
6
7
  import { Entity } from '../../../engine/models/entity';
7
- import { IntegrationState } from '../../../services/integration.state';
8
8
  import { ElementMetadata } from '../../../types';
9
9
  import * as i0 from "@angular/core";
10
10
  export declare class RuntimeService {
@@ -1,3 +1,2 @@
1
- export * from './integration.state';
2
1
  export * from './resources.service';
3
2
  export * from './templates.service';
@@ -1,4 +1,5 @@
1
1
  import { Observable } from 'rxjs';
2
+ import { ScriptHost } from '../types';
2
3
  import * as i0 from "@angular/core";
3
4
  export declare class ResourcesService {
4
5
  private scripts;
@@ -12,6 +13,7 @@ export declare class ResourcesService {
12
13
  private amd;
13
14
  loadScript(url: string): Observable<void>;
14
15
  loadStyles(url: string): Observable<void>;
16
+ loadStyles(host: ScriptHost, url: string): Observable<void>;
15
17
  private persistAMDLoader;
16
18
  private restoreAMDLoader;
17
19
  static ɵfac: i0.ɵɵFactoryDeclaration<ResourcesService, never>;
@@ -2,7 +2,6 @@ export * from '../modules/runtime/types/compilation.types';
2
2
  export * from './common.types';
3
3
  export * from './configuration.types';
4
4
  export * from './elements.types';
5
- export * from './integration.types';
6
5
  export * from './layouts.types';
7
6
  export * from './pages.types';
8
7
  export * from './path.types';
@@ -0,0 +1,11 @@
1
+ import { UIElement } from '@veloceapps/core';
2
+ import { Observable } from 'rxjs';
3
+ import { ElementMetadata } from '../types/common.types';
4
+ export declare class ElementMetadataWorker {
5
+ private elements;
6
+ constructor(elements: UIElement[]);
7
+ get$(): Observable<ElementMetadata[]>;
8
+ private processAsync;
9
+ private processLevelAsync;
10
+ private elementToMetadataAsync;
11
+ }
@@ -13,8 +13,6 @@ export declare class ElementsResolver {
13
13
  constructor(uiDef: UIDefinitionMetadata, elements: ElementMetadata[], sharedElements?: ElementMetadata[], config?: CMSPreviewConfig | undefined);
14
14
  addElement(element: ElementMetadata): void;
15
15
  getNgComponents(): Record<string, Type<Entity>>;
16
- private transpile;
17
- private transpileScripts;
18
16
  private flattenElements;
19
17
  private isSharedElement;
20
18
  private getRenderableElements;
@@ -1,5 +1,8 @@
1
+ export * from './element-metadata-worker';
1
2
  export * from './element.utils';
2
3
  export * from './elements-resolver';
4
+ export * from './encoding.utils';
3
5
  export * from './path.utils';
6
+ export * from './transpilation-worker';
4
7
  export * from './ui-builder-layout.utils';
5
8
  export * from './ui-definition.utils';
@@ -0,0 +1,13 @@
1
+ import { Observable } from 'rxjs';
2
+ import { ElementMetadata } from '../types/common.types';
3
+ export declare class TranspilationWorker {
4
+ private elements;
5
+ constructor(elements: ElementMetadata[]);
6
+ get$(): Observable<ElementMetadata[]>;
7
+ get(): ElementMetadata[];
8
+ private transpileScripts;
9
+ private transpileScriptsAsync;
10
+ private processLevelAsync;
11
+ private transpileMetadataAsync;
12
+ private transpile;
13
+ }
@@ -1,19 +1,22 @@
1
1
  import * as angularCore from '@angular/core';
2
2
  import * as angularForms from '@angular/forms';
3
- import { CatalogApiService, ConfigurationSettingsApiService, DeltaApiService, DocumentAttachmentApiService, DocumentTemplatesApiService, GuidedSellingApiService, PicklistsApiService, PriceApiService, QuoteApiService, RampApiService, SalesforceApiService, ShoppingCartSettingsApiService } from '@veloceapps/api';
3
+ import { DataSource } from '@angular/cdk/collections';
4
+ import { CatalogApiService, ConfigurationSettingsApiService, ContractedPriceApiService, DeltaApiService, DocumentAttachmentApiService, DocumentTemplatesApiService, GuidedSellingApiService, PicklistsApiService, PriceApiService, QuoteApiService, RampApiService, SalesforceApiService, ShoppingCartSettingsApiService } from '@veloceapps/api';
4
5
  import { ToastService, ToastType } from '@veloceapps/components';
5
- import { Operator, Predicate, parseJsonSafely } from '@veloceapps/core';
6
- import { ConfigurationService, ConfigurationState, ContextService, FlowConfigurationService, LineItemWorker, ProductImagesService, QuoteDraftService, RuntimeSettingsService } from '@veloceapps/sdk/core';
6
+ import { ConfigurationContextMode, Operator, parseJsonSafely, Predicate } from '@veloceapps/core';
7
+ import { ActionCodePipe, ConfigurationService, ConfigurationStateService, ContextService, DatePipe, FlowConfigurationService, FlowStateConfigurationService, FlowStateService, IntegrationState, LineItemWorker, NumberPipe, PricePipe, ProductImagesService, QuoteDraftService, RuntimeSettingsService } from '@veloceapps/sdk/core';
7
8
  import lodash from 'lodash';
8
9
  import * as rxjs from 'rxjs';
9
10
  import * as rxjsOperators from 'rxjs/operators';
10
11
  import * as cmsActions from './cms.actions';
11
- import { IntegrationState } from './services/integration.state';
12
12
  import { ResourcesService } from './services/resources.service';
13
13
  import { TemplatesService } from './services/templates.service';
14
14
  export declare const vendorMap: {
15
15
  '@angular/core': typeof angularCore;
16
16
  '@angular/forms': typeof angularForms;
17
+ '@angular/cdk/collections': {
18
+ DataSource: typeof DataSource;
19
+ };
17
20
  rxjs: typeof rxjs;
18
21
  'rxjs/operators': typeof rxjsOperators;
19
22
  lodash: lodash.LoDashStatic;
@@ -22,6 +25,7 @@ export declare const vendorMap: {
22
25
  Operator: typeof Operator;
23
26
  Predicate: typeof Predicate;
24
27
  parseJsonSafely: typeof parseJsonSafely;
28
+ ConfigurationContextMode: typeof ConfigurationContextMode;
25
29
  };
26
30
  '@veloceapps/components': {
27
31
  ToastService: typeof ToastService;
@@ -40,6 +44,7 @@ export declare const vendorMap: {
40
44
  ShoppingCartSettingsApiService: typeof ShoppingCartSettingsApiService;
41
45
  ConfigurationSettingsApiService: typeof ConfigurationSettingsApiService;
42
46
  GuidedSellingApiService: typeof GuidedSellingApiService;
47
+ ContractedPriceApiService: typeof ContractedPriceApiService;
43
48
  };
44
49
  '@veloceapps/sdk/core': {
45
50
  findLineItem: (id: string, lineItems: import("@veloceapps/core").LineItem[]) => import("@veloceapps/core").LineItem | undefined;
@@ -47,7 +52,6 @@ export declare const vendorMap: {
47
52
  insertLineItem: (lineItem: import("@veloceapps/core").LineItem, parentId: string, toInsert: import("@veloceapps/core").LineItem) => import("@veloceapps/core").LineItem;
48
53
  removeLineItem: (lineItem: import("@veloceapps/core").LineItem, idToRemove: string) => import("@veloceapps/core").LineItem;
49
54
  replaceLineItem: (lineItem: import("@veloceapps/core").LineItem, replaceTo: import("@veloceapps/core").LineItem, skipCardinalityCalculation?: boolean | undefined) => import("@veloceapps/core").LineItem;
50
- calculateCardinalityVariables: (lineItems: import("@veloceapps/core").LineItem[]) => Map<string, number>;
51
55
  recalculateCardinalityVariables: (original: import("@veloceapps/core").LineItem, updated: import("@veloceapps/core").LineItem) => import("@veloceapps/core").LineItem;
52
56
  mapAttributes: (attributes: import("@veloceapps/core").Attribute[]) => lodash.Dictionary<any>;
53
57
  getAttributes: (attributes: import("@veloceapps/core").Attribute[], names?: string[] | undefined) => import("@veloceapps/core").Attribute[];
@@ -68,13 +72,20 @@ export declare const vendorMap: {
68
72
  name: string;
69
73
  }>(attributes: T_2[]) => T_2[];
70
74
  ConfigurationService: typeof ConfigurationService;
71
- ConfigurationState: typeof ConfigurationState;
75
+ ConfigurationStateService: typeof ConfigurationStateService;
72
76
  QuoteDraftService: typeof QuoteDraftService;
73
77
  FlowConfigurationService: typeof FlowConfigurationService;
78
+ IntegrationState: typeof IntegrationState;
79
+ FlowStateService: typeof FlowStateService;
80
+ FlowStateConfigurationService: typeof FlowStateConfigurationService;
74
81
  LineItemWorker: typeof LineItemWorker;
75
82
  ProductImagesService: typeof ProductImagesService;
76
83
  ContextService: typeof ContextService;
77
84
  RuntimeSettingsService: typeof RuntimeSettingsService;
85
+ ActionCodePipe: typeof ActionCodePipe;
86
+ DatePipe: typeof DatePipe;
87
+ NumberPipe: typeof NumberPipe;
88
+ PricePipe: typeof PricePipe;
78
89
  };
79
90
  '@veloceapps/sdk/cms': {
80
91
  TemplatesService: typeof TemplatesService;
@@ -84,17 +95,17 @@ export declare const vendorMap: {
84
95
  ConfigureProductAction: ({ lineItemId, productId, }: {
85
96
  lineItemId?: string | undefined;
86
97
  productId?: string | undefined;
87
- }) => import("@veloceapps/sdk/cms").IntegrationAction<any>;
88
- NavigateBackAction: () => import("@veloceapps/sdk/cms").IntegrationAction<any>;
89
- NavigateToCatalogAction: () => import("@veloceapps/sdk/cms").IntegrationAction<any>;
90
- ApplyProductConfigurationAction: () => import("@veloceapps/sdk/cms").IntegrationAction<any>;
91
- OpenDocGenAction: () => import("@veloceapps/sdk/cms").IntegrationAction<any>;
92
- CloseDocGenAction: () => import("@veloceapps/sdk/cms").IntegrationAction<any>;
93
- RemoteApplyAction: () => import("@veloceapps/sdk/cms").IntegrationAction<any>;
94
- RemoteCancelAction: () => import("@veloceapps/sdk/cms").IntegrationAction<any>;
98
+ }) => import("@veloceapps/sdk/core").IntegrationAction<any>;
99
+ NavigateBackAction: () => import("@veloceapps/sdk/core").IntegrationAction<any>;
100
+ NavigateToCatalogAction: () => import("@veloceapps/sdk/core").IntegrationAction<any>;
101
+ ApplyProductConfigurationAction: () => import("@veloceapps/sdk/core").IntegrationAction<any>;
102
+ OpenDocGenAction: () => import("@veloceapps/sdk/core").IntegrationAction<any>;
103
+ CloseDocGenAction: () => import("@veloceapps/sdk/core").IntegrationAction<any>;
104
+ RemoteApplyAction: () => import("@veloceapps/sdk/core").IntegrationAction<any>;
105
+ RemoteCancelAction: () => import("@veloceapps/sdk/core").IntegrationAction<any>;
95
106
  SwitchObjectAction: (payload: {
96
107
  id: string;
97
- }) => import("@veloceapps/sdk/cms").IntegrationAction<any>;
108
+ }) => import("@veloceapps/sdk/core").IntegrationAction<any>;
98
109
  CmsAction: typeof cmsActions.CmsAction;
99
110
  DEFAULT_PLUGINS_TOKEN: angularCore.InjectionToken<typeof import("./engine/models/plugin").Plugin[]>;
100
111
  UI_DEFINITION_METADATA: angularCore.InjectionToken<import("@veloceapps/core").UIDefinitionMetadata>;
package/core/README.md CHANGED
@@ -3,3 +3,23 @@
3
3
  [← Back to SDK](../)
4
4
 
5
5
  The place where configuration logic lives: services, utils, workers etc
6
+
7
+ ## IntegrationState
8
+
9
+ An application state, which helps to cover cross-component communication. Contains reactive store and event system.
10
+
11
+ `get state$(): Observable<S>`
12
+
13
+ `get state(): S`
14
+
15
+ `patchState(update: Partial<S>): void`
16
+
17
+ `dispatch(action: IntegrationAction): void`
18
+
19
+ `listen$<P = any>(actionType: string): Observable<P>`
20
+
21
+ `listenAll$<T extends IntegrationAction>(): Observable<T>`
22
+
23
+ `clear(): void`
24
+
25
+ **Important!** Don't overuse it, otherwise application can become messy and hardly supportable.
@@ -1,7 +1,8 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "@veloceapps/components";
3
+ import * as i2 from "@veloceapps/api";
3
4
  export declare class ConfigurationModule {
4
5
  static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<ConfigurationModule, never, [typeof i1.ConfirmationDialogModule], never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ConfigurationModule, never, [typeof i1.ConfirmationDialogModule, typeof i2.ApiModule], never>;
6
7
  static ɵinj: i0.ɵɵInjectorDeclaration<ConfigurationModule>;
7
8
  }
@@ -1,5 +1,6 @@
1
- import { ConfigurationRequest, LineItem, UIDefinitionProps } from '@veloceapps/core';
1
+ import { ConfigurationContext, ConfigurationRequest, LineItem, UIDefinitionProps } from '@veloceapps/core';
2
2
  import { RuntimeContext } from '../../types';
3
- import { GuidedSellingSubmitData } from './types/configuration.types';
3
+ import { GuidedSellingSubmitData, NewConfigurationProps } from './types/configuration.types';
4
4
  export declare const getDefaultLineItem: (context: RuntimeContext, uiDefinitionProperties: UIDefinitionProps, qty?: number) => LineItem;
5
- export declare const getGuidedSellingConfigurationRequest: (data: GuidedSellingSubmitData) => ConfigurationRequest;
5
+ export declare const getGuidedSellingConfigurationRequest: (data: GuidedSellingSubmitData, context: ConfigurationContext) => ConfigurationRequest;
6
+ export declare const generateConfigurationLineItem: (props: NewConfigurationProps, qty?: number) => LineItem;
@@ -1,6 +1,6 @@
1
1
  export * from './helpers';
2
2
  export * from './services/configuration-runtime.service';
3
3
  export * from './services/configuration.service';
4
- export * from './services/configuration.state';
4
+ export * from './services/configuration-state.service';
5
5
  export * from './types/configuration-runtime.types';
6
6
  export * from './types/configuration.types';
@@ -1,7 +1,7 @@
1
1
  import { ConfigurationApiService } from '@veloceapps/api';
2
2
  import { RuntimeModel, UIDefinitionContainer, UIDefinitionProps } from '@veloceapps/core';
3
3
  import { Observable } from 'rxjs';
4
- import { ContextService } from '../../../services/context.service';
4
+ import { ContextService } from '../../../services';
5
5
  import { RuntimeContext } from '../../../types';
6
6
  import { RuntimeInitializationProps } from '../types/configuration-runtime.types';
7
7
  import { RuntimeContextService } from './runtime-context.service';
@@ -0,0 +1,51 @@
1
+ import { FlowStateApiService, QuoteApiService } from '@veloceapps/api';
2
+ import { ToastService } from '@veloceapps/components';
3
+ import { FlowStateExecutionRequestDTO, FlowStateExecutionResult, FlowStateSelectorResponse } from '@veloceapps/core';
4
+ import { BehaviorSubject, Observable, Subject } from 'rxjs';
5
+ import { FlowInfoService, FlowStateService, QuoteDraftService } from '../../../services';
6
+ import { FlowStateSubscriptionOptions } from '../../../types/flow-state.types';
7
+ import { FlowConfigurationService } from '../../flow-configuration';
8
+ import { ConfigurationRuntimeService } from './configuration-runtime.service';
9
+ import { ConfigurationService } from './configuration.service';
10
+ import * as i0 from "@angular/core";
11
+ export declare class ConfigurationStateService {
12
+ private configurationRuntimeService;
13
+ private configurationService;
14
+ private quoteDraftService;
15
+ private toastService;
16
+ private flowStateService;
17
+ private flowInfoService;
18
+ private flowConfigurationService;
19
+ private flowStateApiService;
20
+ private quoteApiService;
21
+ isInitialized$: BehaviorSubject<boolean>;
22
+ canceledConfiguration$: Subject<void>;
23
+ private readonly NOT_INITIALIZED;
24
+ private executedFunctions;
25
+ private stateId;
26
+ private ownerId;
27
+ private subscriptions;
28
+ private configurationStore;
29
+ constructor(configurationRuntimeService: ConfigurationRuntimeService, configurationService: ConfigurationService, quoteDraftService: QuoteDraftService, toastService: ToastService, flowStateService: FlowStateService, flowInfoService: FlowInfoService, flowConfigurationService: FlowConfigurationService, flowStateApiService: FlowStateApiService, quoteApiService: QuoteApiService);
30
+ init$(): Observable<void>;
31
+ cleanup(): void;
32
+ execute$(req: FlowStateExecutionRequestDTO, forceSubscriptions?: boolean): Observable<FlowStateExecutionResult>;
33
+ private handleSelectorsResponse;
34
+ dispatch$(actionName: string, inputData?: unknown): Observable<FlowStateExecutionResult>;
35
+ select$<Response = unknown>(selectorName: string, inputData?: unknown): Observable<FlowStateSelectorResponse<Response>>;
36
+ subscribe$<Response = unknown>(selectorName: string, inputData?: unknown, options?: FlowStateSubscriptionOptions): Observable<FlowStateSelectorResponse<Response>>;
37
+ saveConfiguration(quoteId?: string, flow?: boolean): Observable<{
38
+ quoteId: string;
39
+ }>;
40
+ cancelConfiguration(): Observable<void>;
41
+ private get isStatefulConfiguration();
42
+ private initStateful$;
43
+ private initStateless$;
44
+ private executeStateless$;
45
+ private executeStateful$;
46
+ private executeActionScript;
47
+ private executeSelectorScript;
48
+ private executeProcessorScript;
49
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationStateService, never>;
50
+ static ɵprov: i0.ɵɵInjectableDeclaration<ConfigurationStateService>;
51
+ }
@@ -6,6 +6,7 @@ import { DialogService } from 'primeng/dynamicdialog';
6
6
  import { Observable } from 'rxjs';
7
7
  import { ContextService } from '../../../services/context.service';
8
8
  import { QuoteDraftService } from '../../../services/quote-draft.service';
9
+ import { RuntimeSettingsService } from '../../../services/runtime-settings.service';
9
10
  import { RuntimeContext } from '../../../types';
10
11
  import { ExternalConfigurationProps, GuidedSellingSubmitData } from '../types/configuration.types';
11
12
  import { ConfigurationRuntimeService } from './configuration-runtime.service';
@@ -17,15 +18,14 @@ export declare class ConfigurationService {
17
18
  private configurationApiService;
18
19
  private messageService;
19
20
  private dialogService;
21
+ private runtimeSettings;
20
22
  private mode;
21
23
  private configurableRamp;
22
- private lineItem;
23
- private charges;
24
- private pricePlans;
24
+ private configurationState;
25
25
  private isLoadingSubj$;
26
26
  isLoading$: Observable<boolean>;
27
27
  hasUnsavedChanges: boolean;
28
- constructor(quoteDraftService: QuoteDraftService, runtimeService: ConfigurationRuntimeService, contextService: ContextService, configurationApiService: ConfigurationApiService, messageService: MessageService, dialogService: DialogService);
28
+ constructor(quoteDraftService: QuoteDraftService, runtimeService: ConfigurationRuntimeService, contextService: ContextService, configurationApiService: ConfigurationApiService, messageService: MessageService, dialogService: DialogService, runtimeSettings: RuntimeSettingsService);
29
29
  reset(): void;
30
30
  patch$(lineItem: LineItem, options?: PatchLineItemOptions): Observable<LineItem>;
31
31
  patch(lineItem: LineItem, options?: PatchLineItemOptions): void;
@@ -34,17 +34,22 @@ export declare class ConfigurationService {
34
34
  getSnapshot(): LineItem | undefined;
35
35
  getRuntimeModel(): RuntimeModel;
36
36
  getRuntimeContext(): RuntimeContext;
37
+ get state$(): Observable<ConfigurePrice | null>;
38
+ get stateSnapshot(): ConfigurePrice | null;
37
39
  get contextSnapshot(): ConfigurationContext;
38
40
  get context$(): Observable<ConfigurationContext>;
39
41
  get charges$(): Observable<Dictionary<Charge>>;
40
42
  get chargesSnapshot(): Dictionary<Charge>;
41
43
  get pricePlans$(): Observable<Dictionary<CompiledPricePlan>>;
42
44
  get pricePlansSnapshot(): Dictionary<CompiledPricePlan>;
45
+ get procedureContext$(): Observable<Dictionary<unknown>>;
46
+ get procedureContextSnapshot(): Dictionary<unknown>;
43
47
  configure(): Observable<LineItem>;
44
48
  configureRequest$(configurationRequest: ConfigurationRequest): Observable<LineItem>;
45
49
  configureExternal$(props: ExternalConfigurationProps): Observable<LineItem>;
46
50
  configureGuidedSelling$(data: GuidedSellingSubmitData): Observable<ConfigurePrice>;
47
- generateRequest(): ConfigurationRequest;
51
+ generateRequest(lightMode?: boolean): ConfigurationRequest;
52
+ generateLineItem(): LineItem;
48
53
  private getUIDefinitionProperties;
49
54
  private showInactiveProductsConfirmation;
50
55
  private getAsset;
@@ -1,3 +1,4 @@
1
+ import { Product } from '@veloceapps/core';
1
2
  export interface GuidedSellingSubmitData {
2
3
  modelId: string;
3
4
  modelType: string;
@@ -8,3 +9,6 @@ export interface ExternalConfigurationProps {
8
9
  qty?: number;
9
10
  attributesMap?: Record<string, any>;
10
11
  }
12
+ export interface NewConfigurationProps extends ExternalConfigurationProps {
13
+ product: Product;
14
+ }
@@ -1,6 +1,7 @@
1
1
  import * as i0 from "@angular/core";
2
+ import * as i1 from "@veloceapps/api";
2
3
  export declare class FlowConfigurationModule {
3
4
  static ɵfac: i0.ɵɵFactoryDeclaration<FlowConfigurationModule, never>;
4
- static ɵmod: i0.ɵɵNgModuleDeclaration<FlowConfigurationModule, never, never, never>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FlowConfigurationModule, never, [typeof i1.ApiModule], never>;
5
6
  static ɵinj: i0.ɵɵInjectorDeclaration<FlowConfigurationModule>;
6
7
  }
@@ -15,6 +15,11 @@ export declare class FlowConfigurationService {
15
15
  private quoteDraftService;
16
16
  private updateService;
17
17
  private configurationService;
18
+ /**
19
+ * An event being fired when QuoteDraft was updated
20
+ */
21
+ updated$: Observable<void>;
22
+ private updatedSubj$;
18
23
  constructor(proceduresApiService: ProceduresApiService, contextService: ContextService, quoteDraftService: QuoteDraftService, updateService: FlowUpdateService, configurationService: ConfigurationService);
19
24
  calculate$(quoteDraft: QuoteDraft): Observable<void>;
20
25
  calculate(quoteDraft: QuoteDraft): void;
@@ -0,0 +1,8 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ActionCodePipe implements PipeTransform {
4
+ private formattingSettings;
5
+ transform(actionCode: string): string;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<ActionCodePipe, never>;
7
+ static ɵpipe: i0.ɵɵPipeDeclaration<ActionCodePipe, "vlActionCode", false>;
8
+ }
@@ -1,4 +1,5 @@
1
1
  import { OnDestroy, PipeTransform } from '@angular/core';
2
+ import { DateType } from '../types';
2
3
  import * as i0 from "@angular/core";
3
4
  export declare class DatePipe implements PipeTransform, OnDestroy {
4
5
  private locale;
@@ -6,7 +7,7 @@ export declare class DatePipe implements PipeTransform, OnDestroy {
6
7
  private formattingSettings;
7
8
  private destroy$;
8
9
  ngOnDestroy(): void;
9
- transform(date: string | number | Date | undefined | null): string;
10
+ transform(date: string | number | Date | undefined | null, type?: DateType): string;
10
11
  static ɵfac: i0.ɵɵFactoryDeclaration<DatePipe, never>;
11
12
  static ɵpipe: i0.ɵɵPipeDeclaration<DatePipe, "vlDate", false>;
12
13
  }
@@ -2,3 +2,4 @@ export * from './date.pipe';
2
2
  export * from './number.pipe';
3
3
  export * from './pipes.module';
4
4
  export * from './price.pipe';
5
+ export * from './action-code.pipe';
@@ -2,8 +2,9 @@ import * as i0 from "@angular/core";
2
2
  import * as i1 from "./number.pipe";
3
3
  import * as i2 from "./price.pipe";
4
4
  import * as i3 from "./date.pipe";
5
+ import * as i4 from "./action-code.pipe";
5
6
  export declare class SdkPipesModule {
6
7
  static ɵfac: i0.ɵɵFactoryDeclaration<SdkPipesModule, never>;
7
- static ɵmod: i0.ɵɵNgModuleDeclaration<SdkPipesModule, [typeof i1.NumberPipe, typeof i2.PricePipe, typeof i3.DatePipe], never, [typeof i1.NumberPipe, typeof i2.PricePipe, typeof i3.DatePipe]>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SdkPipesModule, [typeof i1.NumberPipe, typeof i2.PricePipe, typeof i3.DatePipe, typeof i4.ActionCodePipe], never, [typeof i1.NumberPipe, typeof i2.PricePipe, typeof i3.DatePipe, typeof i4.ActionCodePipe]>;
8
9
  static ɵinj: i0.ɵɵInjectorDeclaration<SdkPipesModule>;
9
10
  }
@@ -7,10 +7,14 @@ export declare class ContextService {
7
7
  private context;
8
8
  constructor(contextApiService: ContextApiService);
9
9
  get isInitialized(): boolean;
10
+ get isInitialized$(): Observable<boolean>;
10
11
  get mode(): ConfigurationContextMode | undefined;
12
+ get isEditMode$(): Observable<boolean>;
13
+ get isEditMode(): boolean;
11
14
  resolve(): ConfigurationContext;
12
15
  resolve$(): Observable<ConfigurationContext>;
13
16
  create(headerId: string, mode: ConfigurationContextMode): Observable<ConfigurationContext>;
17
+ initTestMode(): Observable<ConfigurationContext>;
14
18
  update(partialContext: Partial<ConfigurationContext>): ConfigurationContext;
15
19
  set(context: ConfigurationContext): ConfigurationContext;
16
20
  delete(): void;
@@ -0,0 +1,29 @@
1
+ import { Params } from '@angular/router';
2
+ import { FlowsApiService, UITemplatesApiService } from '@veloceapps/api';
3
+ import { Flow, UITemplate, UITemplateType } from '@veloceapps/core';
4
+ import { Observable } from 'rxjs';
5
+ import { FlowCustomization } from '../types';
6
+ import * as i0 from "@angular/core";
7
+ export declare class FlowInfoService {
8
+ private flowsApiService;
9
+ private templatesApiService;
10
+ private customizationService?;
11
+ flow$: Observable<Flow | null>;
12
+ params?: Params;
13
+ templates: {
14
+ [key in UITemplateType]?: UITemplate;
15
+ };
16
+ get flow(): Flow | null;
17
+ set flow(value: Flow | null);
18
+ get isLegacy(): boolean;
19
+ get isStateful(): boolean;
20
+ private readonly defaultTemplates;
21
+ private flowSubj$;
22
+ constructor(flowsApiService: FlowsApiService, templatesApiService: UITemplatesApiService, customizationService?: FlowCustomization | undefined);
23
+ init$(flowId: string, params: Params): Observable<void>;
24
+ cleanup(): void;
25
+ private initFlowTemplates$;
26
+ private remapTemplateName;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<FlowInfoService, [null, null, { optional: true; }]>;
28
+ static ɵprov: i0.ɵɵInjectableDeclaration<FlowInfoService>;
29
+ }
@@ -0,0 +1,19 @@
1
+ import { FlowStateApiService } from '@veloceapps/api';
2
+ import { Observable } from 'rxjs';
3
+ import { NewConfigurationProps } from '../modules/configuration';
4
+ import { FlowConfigurationService } from '../modules/flow-configuration';
5
+ import { FlowInfoService } from './flow-info.service';
6
+ import { FlowStateService } from './flow-state.service';
7
+ import * as i0 from "@angular/core";
8
+ export declare class FlowStateConfigurationService {
9
+ private flowInfoService;
10
+ private flowConfigurationService;
11
+ private flowStateApiService;
12
+ private flowStateService;
13
+ private configurationStateId$;
14
+ constructor(flowInfoService: FlowInfoService, flowConfigurationService: FlowConfigurationService, flowStateApiService: FlowStateApiService, flowStateService: FlowStateService);
15
+ get configurationStateId(): string | null;
16
+ addToCart$(props: NewConfigurationProps): Observable<void>;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<FlowStateConfigurationService, never>;
18
+ static ɵprov: i0.ɵɵInjectableDeclaration<FlowStateConfigurationService>;
19
+ }