@veloceapps/sdk 5.0.13-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (387) hide show
  1. package/README.md +3 -0
  2. package/bundles/veloceapps-sdk-cms.umd.js +1975 -0
  3. package/bundles/veloceapps-sdk-cms.umd.js.map +1 -0
  4. package/bundles/veloceapps-sdk-core.umd.js +1610 -0
  5. package/bundles/veloceapps-sdk-core.umd.js.map +1 -0
  6. package/bundles/veloceapps-sdk-runtime.umd.js +4349 -0
  7. package/bundles/veloceapps-sdk-runtime.umd.js.map +1 -0
  8. package/bundles/veloceapps-sdk.umd.js +3307 -0
  9. package/bundles/veloceapps-sdk.umd.js.map +1 -0
  10. package/cms/cms.actions.d.ts +28 -0
  11. package/cms/cms.default.d.ts +5 -0
  12. package/cms/cms.elements.d.ts +4 -0
  13. package/cms/components/element-children/element-children.component.d.ts +10 -0
  14. package/cms/components/element-children/element-children.module.d.ts +8 -0
  15. package/cms/components/element-renderer/element-renderer.component.d.ts +36 -0
  16. package/cms/components/element-renderer/element-renderer.module.d.ts +7 -0
  17. package/cms/components/element.component.d.ts +17 -0
  18. package/cms/components/index.d.ts +1 -0
  19. package/cms/components/plugin.component.d.ts +15 -0
  20. package/cms/components/preview/index.d.ts +2 -0
  21. package/cms/components/preview/preview.component.d.ts +34 -0
  22. package/cms/components/preview/preview.module.d.ts +11 -0
  23. package/cms/decorators/element.decorator.d.ts +2 -0
  24. package/cms/decorators/index.d.ts +1 -0
  25. package/cms/directives/custom-template.directive.d.ts +12 -0
  26. package/cms/engine/models/entity.d.ts +11 -0
  27. package/cms/engine/models/plugin.d.ts +5 -0
  28. package/cms/index.d.ts +11 -0
  29. package/cms/injection-tokens.d.ts +11 -0
  30. package/cms/launcher.module.d.ts +10 -0
  31. package/cms/modules/federated/default-options.d.ts +4 -0
  32. package/cms/modules/federated/export.d.ts +1 -0
  33. package/cms/modules/federated/federated.component.d.ts +26 -0
  34. package/cms/modules/federated/federated.module.d.ts +9 -0
  35. package/cms/modules/federated/federated.types.d.ts +30 -0
  36. package/cms/modules/federated/federated.utils.d.ts +1 -0
  37. package/cms/package.json +10 -0
  38. package/cms/plugins/configuration.plugin.d.ts +23 -0
  39. package/cms/plugins/io.plugin.d.ts +9 -0
  40. package/cms/plugins/script.plugin.d.ts +13 -0
  41. package/cms/services/dynamic-module.service.d.ts +15 -0
  42. package/cms/services/element-context.service.d.ts +8 -0
  43. package/cms/services/index.d.ts +3 -0
  44. package/cms/services/integration.state.d.ts +17 -0
  45. package/cms/services/io-provider.service.d.ts +15 -0
  46. package/cms/services/launcher.service.d.ts +18 -0
  47. package/cms/services/templates.service.d.ts +14 -0
  48. package/cms/types/common.types.d.ts +108 -0
  49. package/cms/types/compilation.types.d.ts +6 -0
  50. package/cms/types/configuration.types.d.ts +20 -0
  51. package/cms/types/elements.types.d.ts +2 -0
  52. package/cms/types/index.d.ts +7 -0
  53. package/cms/types/integration.types.d.ts +4 -0
  54. package/cms/types/metrics.types.d.ts +5 -0
  55. package/cms/types/path.types.d.ts +11 -0
  56. package/cms/utils/element.utils.d.ts +17 -0
  57. package/cms/utils/elements-resolver.d.ts +24 -0
  58. package/cms/utils/index.d.ts +3 -0
  59. package/cms/utils/path.utils.d.ts +5 -0
  60. package/cms/veloceapps-sdk-cms.d.ts +5 -0
  61. package/cms/vendor-map.d.ts +708 -0
  62. package/core/core.module.d.ts +8 -0
  63. package/core/index.d.ts +6 -0
  64. package/core/modules/configuration/configuration.module.d.ts +7 -0
  65. package/core/modules/configuration/helpers.d.ts +3 -0
  66. package/core/modules/configuration/index.d.ts +4 -0
  67. package/core/modules/configuration/services/configuration-runtime.service.d.ts +29 -0
  68. package/core/modules/configuration/services/configuration.service.d.ts +45 -0
  69. package/core/modules/configuration/services/runtime-context.service.d.ts +12 -0
  70. package/core/modules/configuration/types/configuration-runtime.types.d.ts +7 -0
  71. package/core/modules/flow-configuration/flow-configuration.module.d.ts +6 -0
  72. package/core/modules/flow-configuration/index.d.ts +4 -0
  73. package/core/modules/flow-configuration/services/flow-configuration.service.d.ts +38 -0
  74. package/core/modules/flow-configuration/services/flow-update.service.d.ts +12 -0
  75. package/core/modules/flow-configuration/types/update.types.d.ts +12 -0
  76. package/core/modules/index.d.ts +2 -0
  77. package/core/package.json +10 -0
  78. package/core/services/context.service.d.ts +18 -0
  79. package/core/services/index.d.ts +3 -0
  80. package/core/services/product-images.service.d.ts +12 -0
  81. package/core/services/quote-draft.service.d.ts +62 -0
  82. package/core/types/index.d.ts +3 -0
  83. package/core/types/quote-states.types.d.ts +6 -0
  84. package/core/types/runtime.types.d.ts +31 -0
  85. package/core/types/ui-definition.types.d.ts +26 -0
  86. package/core/utils/index.d.ts +2 -0
  87. package/core/utils/line-item.utils.d.ts +26 -0
  88. package/core/utils/line-item.worker.d.ts +12 -0
  89. package/core/veloceapps-sdk-core.d.ts +5 -0
  90. package/esm2015/cms/cms.actions.js +47 -0
  91. package/esm2015/cms/cms.default.js +6 -0
  92. package/esm2015/cms/cms.elements.js +29 -0
  93. package/esm2015/cms/components/element-children/element-children.component.js +23 -0
  94. package/esm2015/cms/components/element-children/element-children.module.js +18 -0
  95. package/esm2015/cms/components/element-renderer/element-renderer.component.js +169 -0
  96. package/esm2015/cms/components/element-renderer/element-renderer.module.js +16 -0
  97. package/esm2015/cms/components/element.component.js +44 -0
  98. package/esm2015/cms/components/index.js +2 -0
  99. package/esm2015/cms/components/plugin.component.js +16 -0
  100. package/esm2015/cms/components/preview/index.js +3 -0
  101. package/esm2015/cms/components/preview/preview.component.js +108 -0
  102. package/esm2015/cms/components/preview/preview.module.js +23 -0
  103. package/esm2015/cms/decorators/element.decorator.js +6 -0
  104. package/esm2015/cms/decorators/index.js +2 -0
  105. package/esm2015/cms/directives/custom-template.directive.js +25 -0
  106. package/esm2015/cms/engine/models/entity.js +18 -0
  107. package/esm2015/cms/engine/models/plugin.js +6 -0
  108. package/esm2015/cms/index.js +11 -0
  109. package/esm2015/cms/injection-tokens.js +8 -0
  110. package/esm2015/cms/launcher.module.js +23 -0
  111. package/esm2015/cms/modules/federated/default-options.js +5 -0
  112. package/esm2015/cms/modules/federated/export.js +2 -0
  113. package/esm2015/cms/modules/federated/federated.component.js +82 -0
  114. package/esm2015/cms/modules/federated/federated.module.js +19 -0
  115. package/esm2015/cms/modules/federated/federated.types.js +2 -0
  116. package/esm2015/cms/modules/federated/federated.utils.js +37 -0
  117. package/esm2015/cms/plugins/configuration.plugin.js +98 -0
  118. package/esm2015/cms/plugins/io.plugin.js +37 -0
  119. package/esm2015/cms/plugins/script.plugin.js +66 -0
  120. package/esm2015/cms/services/dynamic-module.service.js +33 -0
  121. package/esm2015/cms/services/element-context.service.js +10 -0
  122. package/esm2015/cms/services/index.js +4 -0
  123. package/esm2015/cms/services/integration.state.js +40 -0
  124. package/esm2015/cms/services/io-provider.service.js +51 -0
  125. package/esm2015/cms/services/launcher.service.js +57 -0
  126. package/esm2015/cms/services/templates.service.js +31 -0
  127. package/esm2015/cms/types/common.types.js +2 -0
  128. package/esm2015/cms/types/compilation.types.js +2 -0
  129. package/esm2015/cms/types/configuration.types.js +2 -0
  130. package/esm2015/cms/types/elements.types.js +2 -0
  131. package/esm2015/cms/types/index.js +8 -0
  132. package/esm2015/cms/types/integration.types.js +2 -0
  133. package/esm2015/cms/types/metrics.types.js +2 -0
  134. package/esm2015/cms/types/path.types.js +2 -0
  135. package/esm2015/cms/utils/element.utils.js +161 -0
  136. package/esm2015/cms/utils/elements-resolver.js +147 -0
  137. package/esm2015/cms/utils/index.js +4 -0
  138. package/esm2015/cms/utils/path.utils.js +67 -0
  139. package/esm2015/cms/veloceapps-sdk-cms.js +5 -0
  140. package/esm2015/cms/vendor-map.js +34 -0
  141. package/esm2015/core/core.module.js +18 -0
  142. package/esm2015/core/index.js +7 -0
  143. package/esm2015/core/modules/configuration/configuration.module.js +34 -0
  144. package/esm2015/core/modules/configuration/helpers.js +10 -0
  145. package/esm2015/core/modules/configuration/index.js +5 -0
  146. package/esm2015/core/modules/configuration/services/configuration-runtime.service.js +92 -0
  147. package/esm2015/core/modules/configuration/services/configuration.service.js +173 -0
  148. package/esm2015/core/modules/configuration/services/runtime-context.service.js +51 -0
  149. package/esm2015/core/modules/configuration/types/configuration-runtime.types.js +2 -0
  150. package/esm2015/core/modules/flow-configuration/flow-configuration.module.js +18 -0
  151. package/esm2015/core/modules/flow-configuration/index.js +5 -0
  152. package/esm2015/core/modules/flow-configuration/services/flow-configuration.service.js +135 -0
  153. package/esm2015/core/modules/flow-configuration/services/flow-update.service.js +129 -0
  154. package/esm2015/core/modules/flow-configuration/types/update.types.js +2 -0
  155. package/esm2015/core/modules/index.js +3 -0
  156. package/esm2015/core/services/context.service.js +50 -0
  157. package/esm2015/core/services/index.js +4 -0
  158. package/esm2015/core/services/product-images.service.js +30 -0
  159. package/esm2015/core/services/quote-draft.service.js +207 -0
  160. package/esm2015/core/types/index.js +4 -0
  161. package/esm2015/core/types/quote-states.types.js +2 -0
  162. package/esm2015/core/types/runtime.types.js +16 -0
  163. package/esm2015/core/types/ui-definition.types.js +2 -0
  164. package/esm2015/core/utils/index.js +3 -0
  165. package/esm2015/core/utils/line-item.utils.js +100 -0
  166. package/esm2015/core/utils/line-item.worker.js +19 -0
  167. package/esm2015/core/veloceapps-sdk-core.js +5 -0
  168. package/esm2015/index.js +2 -0
  169. package/esm2015/runtime/components/component-preview/component-preview.component.js +125 -0
  170. package/esm2015/runtime/components/index.js +5 -0
  171. package/esm2015/runtime/components/section-renderer/section-renderer.component.js +71 -0
  172. package/esm2015/runtime/components/ui-runtime/runtime.component.js +429 -0
  173. package/esm2015/runtime/components/ui-runtime-preview/runtime-preview.component.js +109 -0
  174. package/esm2015/runtime/execution/components/children-placeholder/children-placeholder.component.js +68 -0
  175. package/esm2015/runtime/execution/components/context-provider/context-provider.component.js +36 -0
  176. package/esm2015/runtime/execution/components/execution-section-renderer/execution-section-renderer.component.js +72 -0
  177. package/esm2015/runtime/execution/components/federated/federated.component.js +81 -0
  178. package/esm2015/runtime/execution/components/velo-attribute/velo-attribute.component.js +65 -0
  179. package/esm2015/runtime/execution/components/velo-multiselect/velo-multiselect.component.js +136 -0
  180. package/esm2015/runtime/execution/components/velo-port-checkbox/velo-port-checkbox.component.js +80 -0
  181. package/esm2015/runtime/execution/components/velo-port-dropdown/velo-port-dropdown.component.js +101 -0
  182. package/esm2015/runtime/execution/components/velo-port-radio/velo-port-radio.component.js +150 -0
  183. package/esm2015/runtime/execution/components/velo-type/velo-type.component.js +121 -0
  184. package/esm2015/runtime/execution/directives/section-script.directive.js +242 -0
  185. package/esm2015/runtime/execution/directives/sf-query.directive.js +34 -0
  186. package/esm2015/runtime/execution/directives/velo-attribute.directive.js +86 -0
  187. package/esm2015/runtime/execution/directives/velo-port.directive.js +373 -0
  188. package/esm2015/runtime/execution/directives/vl-approval.directive.js +22 -0
  189. package/esm2015/runtime/execution/directives/vl-document-attachments.directive.js +35 -0
  190. package/esm2015/runtime/execution/directives/vl-document-templates.directive.js +59 -0
  191. package/esm2015/runtime/execution/directives/vl-quote.directive.js +41 -0
  192. package/esm2015/runtime/execution/directives/vl-ramp.directive.js +51 -0
  193. package/esm2015/runtime/execution/runtime-execution.module.js +163 -0
  194. package/esm2015/runtime/execution/utils/federated.util.js +37 -0
  195. package/esm2015/runtime/index.js +5 -0
  196. package/esm2015/runtime/runtime.module.js +104 -0
  197. package/esm2015/runtime/services/cart.service.js +27 -0
  198. package/esm2015/runtime/services/collapsible-state.service.js +34 -0
  199. package/esm2015/runtime/services/configuration.service.js +102 -0
  200. package/esm2015/runtime/services/current-state.service.js +17 -0
  201. package/esm2015/runtime/services/form-scope.service.js +30 -0
  202. package/esm2015/runtime/services/index.js +4 -0
  203. package/esm2015/runtime/services/product-model-cache.service.js +30 -0
  204. package/esm2015/runtime/services/runtime-context.service.js +56 -0
  205. package/esm2015/runtime/services/runtime-form.service.js +224 -0
  206. package/esm2015/runtime/services/runtime.service.js +108 -0
  207. package/esm2015/runtime/services/section-helper.service.js +27 -0
  208. package/esm2015/runtime/services/section-scope.service.js +36 -0
  209. package/esm2015/runtime/services/section-store.service.js +22 -0
  210. package/esm2015/runtime/services/section.service.js +124 -0
  211. package/esm2015/runtime/types/bound-data.types.js +7 -0
  212. package/esm2015/runtime/types/index.js +2 -0
  213. package/esm2015/runtime/types/runtime.types.js +2 -0
  214. package/esm2015/runtime/types/script-registry.types.js +51 -0
  215. package/esm2015/runtime/utils/line-item.util.js +273 -0
  216. package/esm2015/runtime/utils/section.utils.js +26 -0
  217. package/esm2015/runtime/utils/sections-binder.helper.js +105 -0
  218. package/esm2015/runtime/veloceapps-sdk-runtime.js +5 -0
  219. package/esm2015/src/components/dialog/dialog.component.js +30 -0
  220. package/esm2015/src/components/dialog/dialog.module.js +19 -0
  221. package/esm2015/src/components/dialog/dialog.types.js +2 -0
  222. package/esm2015/src/components/doc-gen/doc-gen.component.js +109 -0
  223. package/esm2015/src/components/doc-gen/doc-gen.module.js +19 -0
  224. package/esm2015/src/components/header/cart-overlay/cart-preview.component.js +122 -0
  225. package/esm2015/src/components/header/cart-overlay/cart-preview.module.js +46 -0
  226. package/esm2015/src/components/header/header.component.js +310 -0
  227. package/esm2015/src/components/header/header.module.js +50 -0
  228. package/esm2015/src/components/header/header.types.js +2 -0
  229. package/esm2015/src/components/header/metrics/index.js +2 -0
  230. package/esm2015/src/components/header/metrics/metrics.component.js +216 -0
  231. package/esm2015/src/components/header/metrics/metrics.definitions.js +9 -0
  232. package/esm2015/src/components/header/metrics/metrics.module.js +67 -0
  233. package/esm2015/src/constants.js +2 -0
  234. package/esm2015/src/flow-routing.module.js +137 -0
  235. package/esm2015/src/flow.component.js +45 -0
  236. package/esm2015/src/flow.module.js +60 -0
  237. package/esm2015/src/guards/context.guard.js +84 -0
  238. package/esm2015/src/guards/index.js +2 -0
  239. package/esm2015/src/guards/product-unload.guard.js +43 -0
  240. package/esm2015/src/guards/root.guard.js +41 -0
  241. package/esm2015/src/index.js +7 -0
  242. package/esm2015/src/pages/catalog/catalog.component.js +117 -0
  243. package/esm2015/src/pages/catalog/catalog.module.js +20 -0
  244. package/esm2015/src/pages/debug/debug.component.js +61 -0
  245. package/esm2015/src/pages/debug/debug.module.js +48 -0
  246. package/esm2015/src/pages/empty-account/empty-account.component.js +17 -0
  247. package/esm2015/src/pages/empty-account/empty-account.module.js +20 -0
  248. package/esm2015/src/pages/legacy-product/legacy-product.component.js +132 -0
  249. package/esm2015/src/pages/legacy-product/legacy-product.module.js +21 -0
  250. package/esm2015/src/pages/product/product.component.js +108 -0
  251. package/esm2015/src/pages/product/product.module.js +20 -0
  252. package/esm2015/src/pages/record-not-found/record-not-found.component.js +29 -0
  253. package/esm2015/src/pages/record-not-found/record-not-found.module.js +20 -0
  254. package/esm2015/src/pages/remote/remote.component.js +353 -0
  255. package/esm2015/src/pages/remote/remote.module.js +20 -0
  256. package/esm2015/src/pages/remote/remote.types.js +2 -0
  257. package/esm2015/src/pages/shopping-cart/shopping-cart.component.js +117 -0
  258. package/esm2015/src/pages/shopping-cart/shopping-cart.module.js +20 -0
  259. package/esm2015/src/resolvers/flow.resolver.js +62 -0
  260. package/esm2015/src/resolvers/quote.resolver.js +74 -0
  261. package/esm2015/src/services/doc-gen.service.js +33 -0
  262. package/esm2015/src/services/flow-dialog.service.js +123 -0
  263. package/esm2015/src/services/flow-router.service.js +136 -0
  264. package/esm2015/src/services/flow.service.js +77 -0
  265. package/esm2015/src/services/index.js +2 -0
  266. package/esm2015/src/types/context-route.types.js +2 -0
  267. package/esm2015/src/types/flow-customization.types.js +3 -0
  268. package/esm2015/src/types/index.js +3 -0
  269. package/esm2015/src/types/route.types.js +2 -0
  270. package/esm2015/src/utils/flow.utils.js +22 -0
  271. package/esm2015/src/utils/index.js +2 -0
  272. package/esm2015/veloceapps-sdk.js +5 -0
  273. package/fesm2015/veloceapps-sdk-cms.js +1443 -0
  274. package/fesm2015/veloceapps-sdk-cms.js.map +1 -0
  275. package/fesm2015/veloceapps-sdk-core.js +1035 -0
  276. package/fesm2015/veloceapps-sdk-core.js.map +1 -0
  277. package/fesm2015/veloceapps-sdk-runtime.js +3896 -0
  278. package/fesm2015/veloceapps-sdk-runtime.js.map +1 -0
  279. package/fesm2015/veloceapps-sdk.js +2758 -0
  280. package/fesm2015/veloceapps-sdk.js.map +1 -0
  281. package/index.d.ts +1 -0
  282. package/package.json +50 -0
  283. package/runtime/components/component-preview/component-preview.component.d.ts +27 -0
  284. package/runtime/components/index.d.ts +4 -0
  285. package/runtime/components/section-renderer/section-renderer.component.d.ts +25 -0
  286. package/runtime/components/ui-runtime/runtime.component.d.ts +53 -0
  287. package/runtime/components/ui-runtime-preview/runtime-preview.component.d.ts +27 -0
  288. package/runtime/execution/components/children-placeholder/children-placeholder.component.d.ts +30 -0
  289. package/runtime/execution/components/context-provider/context-provider.component.d.ts +14 -0
  290. package/runtime/execution/components/execution-section-renderer/execution-section-renderer.component.d.ts +25 -0
  291. package/runtime/execution/components/federated/federated.component.d.ts +36 -0
  292. package/runtime/execution/components/velo-attribute/velo-attribute.component.d.ts +19 -0
  293. package/runtime/execution/components/velo-multiselect/velo-multiselect.component.d.ts +35 -0
  294. package/runtime/execution/components/velo-port-checkbox/velo-port-checkbox.component.d.ts +22 -0
  295. package/runtime/execution/components/velo-port-dropdown/velo-port-dropdown.component.d.ts +22 -0
  296. package/runtime/execution/components/velo-port-radio/velo-port-radio.component.d.ts +28 -0
  297. package/runtime/execution/components/velo-type/velo-type.component.d.ts +31 -0
  298. package/runtime/execution/directives/section-script.directive.d.ts +59 -0
  299. package/runtime/execution/directives/sf-query.directive.d.ts +15 -0
  300. package/runtime/execution/directives/velo-attribute.directive.d.ts +26 -0
  301. package/runtime/execution/directives/velo-port.directive.d.ts +74 -0
  302. package/runtime/execution/directives/vl-approval.directive.d.ts +10 -0
  303. package/runtime/execution/directives/vl-document-attachments.directive.d.ts +15 -0
  304. package/runtime/execution/directives/vl-document-templates.directive.d.ts +33 -0
  305. package/runtime/execution/directives/vl-quote.directive.d.ts +14 -0
  306. package/runtime/execution/directives/vl-ramp.directive.d.ts +15 -0
  307. package/runtime/execution/runtime-execution.module.d.ts +27 -0
  308. package/runtime/execution/utils/federated.util.d.ts +6 -0
  309. package/runtime/index.d.ts +4 -0
  310. package/runtime/package.json +10 -0
  311. package/runtime/runtime.module.d.ts +18 -0
  312. package/runtime/services/cart.service.d.ts +15 -0
  313. package/runtime/services/collapsible-state.service.d.ts +15 -0
  314. package/runtime/services/configuration.service.d.ts +19 -0
  315. package/runtime/services/current-state.service.d.ts +8 -0
  316. package/runtime/services/form-scope.service.d.ts +20 -0
  317. package/runtime/services/index.d.ts +3 -0
  318. package/runtime/services/product-model-cache.service.d.ts +14 -0
  319. package/runtime/services/runtime-context.service.d.ts +16 -0
  320. package/runtime/services/runtime-form.service.d.ts +24 -0
  321. package/runtime/services/runtime.service.d.ts +43 -0
  322. package/runtime/services/section-helper.service.d.ts +8 -0
  323. package/runtime/services/section-scope.service.d.ts +14 -0
  324. package/runtime/services/section-store.service.d.ts +11 -0
  325. package/runtime/services/section.service.d.ts +30 -0
  326. package/runtime/types/bound-data.types.d.ts +13 -0
  327. package/runtime/types/index.d.ts +1 -0
  328. package/runtime/types/runtime.types.d.ts +19 -0
  329. package/runtime/types/script-registry.types.d.ts +13 -0
  330. package/runtime/utils/line-item.util.d.ts +34 -0
  331. package/runtime/utils/section.utils.d.ts +2 -0
  332. package/runtime/utils/sections-binder.helper.d.ts +16 -0
  333. package/runtime/veloceapps-sdk-runtime.d.ts +5 -0
  334. package/src/components/dialog/dialog.component.d.ts +13 -0
  335. package/src/components/dialog/dialog.module.d.ts +9 -0
  336. package/src/components/dialog/dialog.types.d.ts +6 -0
  337. package/src/components/doc-gen/doc-gen.component.d.ts +26 -0
  338. package/src/components/doc-gen/doc-gen.module.d.ts +9 -0
  339. package/src/components/header/cart-overlay/cart-preview.component.d.ts +36 -0
  340. package/src/components/header/cart-overlay/cart-preview.module.d.ts +14 -0
  341. package/src/components/header/header.component.d.ts +64 -0
  342. package/src/components/header/header.module.d.ts +15 -0
  343. package/src/components/header/header.types.d.ts +20 -0
  344. package/src/components/header/metrics/index.d.ts +1 -0
  345. package/src/components/header/metrics/metrics.component.d.ts +49 -0
  346. package/src/components/header/metrics/metrics.definitions.d.ts +4 -0
  347. package/src/components/header/metrics/metrics.module.d.ts +17 -0
  348. package/src/constants.d.ts +1 -0
  349. package/src/flow-routing.module.d.ts +13 -0
  350. package/src/flow.component.d.ts +23 -0
  351. package/src/flow.module.d.ts +16 -0
  352. package/src/guards/context.guard.d.ts +19 -0
  353. package/src/guards/index.d.ts +1 -0
  354. package/src/guards/product-unload.guard.d.ts +17 -0
  355. package/src/guards/root.guard.d.ts +15 -0
  356. package/src/index.d.ts +6 -0
  357. package/src/pages/catalog/catalog.component.d.ts +32 -0
  358. package/src/pages/catalog/catalog.module.d.ts +10 -0
  359. package/src/pages/debug/debug.component.d.ts +25 -0
  360. package/src/pages/debug/debug.module.d.ts +14 -0
  361. package/src/pages/empty-account/empty-account.component.d.ts +5 -0
  362. package/src/pages/empty-account/empty-account.module.d.ts +10 -0
  363. package/src/pages/legacy-product/legacy-product.component.d.ts +37 -0
  364. package/src/pages/legacy-product/legacy-product.module.d.ts +10 -0
  365. package/src/pages/product/product.component.d.ts +32 -0
  366. package/src/pages/product/product.module.d.ts +10 -0
  367. package/src/pages/record-not-found/record-not-found.component.d.ts +11 -0
  368. package/src/pages/record-not-found/record-not-found.module.d.ts +9 -0
  369. package/src/pages/remote/remote.component.d.ts +47 -0
  370. package/src/pages/remote/remote.module.d.ts +10 -0
  371. package/src/pages/remote/remote.types.d.ts +4 -0
  372. package/src/pages/shopping-cart/shopping-cart.component.d.ts +32 -0
  373. package/src/pages/shopping-cart/shopping-cart.module.d.ts +10 -0
  374. package/src/resolvers/flow.resolver.d.ts +16 -0
  375. package/src/resolvers/quote.resolver.d.ts +20 -0
  376. package/src/services/doc-gen.service.d.ts +13 -0
  377. package/src/services/flow-dialog.service.d.ts +26 -0
  378. package/src/services/flow-router.service.d.ts +36 -0
  379. package/src/services/flow.service.d.ts +17 -0
  380. package/src/services/index.d.ts +1 -0
  381. package/src/types/context-route.types.d.ts +5 -0
  382. package/src/types/flow-customization.types.d.ts +11 -0
  383. package/src/types/index.d.ts +2 -0
  384. package/src/types/route.types.d.ts +9 -0
  385. package/src/utils/flow.utils.d.ts +8 -0
  386. package/src/utils/index.d.ts +1 -0
  387. package/veloceapps-sdk.d.ts +5 -0
@@ -0,0 +1,10 @@
1
+ import { QuoteApiService } from '@veloceapps/api';
2
+ import { QuoteDraft } from '@veloceapps/core';
3
+ import * as i0 from "@angular/core";
4
+ export declare class VlApprovalDirective {
5
+ private repo;
6
+ constructor(repo: QuoteApiService);
7
+ submitQuote(quoteDraft: QuoteDraft): Promise<any>;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<VlApprovalDirective, never>;
9
+ static ɵdir: i0.ɵɵDirectiveDeclaration<VlApprovalDirective, "vl-approval", ["approvalApi"], {}, {}, never>;
10
+ }
@@ -0,0 +1,15 @@
1
+ import { DocumentAttachmentApiService } from '@veloceapps/api';
2
+ import { Attachment, TemplateAttachmentSearchRequest } from '@veloceapps/core';
3
+ import { Observable } from 'rxjs';
4
+ import * as i0 from "@angular/core";
5
+ export declare class VlDocumentAttachmentsDirective {
6
+ private service;
7
+ constructor(service: DocumentAttachmentApiService);
8
+ getAttachments(searchRequest: TemplateAttachmentSearchRequest): Promise<Attachment[]>;
9
+ createAttachment(attachment: Attachment, file?: File, reportProgress?: boolean): Promise<Attachment> | Observable<Attachment>;
10
+ updateAttachment(id: string, attachment: Attachment): Promise<Attachment>;
11
+ getAttachmentFile(id: string, isPreventDownload?: boolean): Promise<any>;
12
+ removeAttachment(id: string): Promise<unknown>;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<VlDocumentAttachmentsDirective, never>;
14
+ static ɵdir: i0.ɵɵDirectiveDeclaration<VlDocumentAttachmentsDirective, "vl-document-attachments", ["documentAttachmentsApi"], {}, {}, never>;
15
+ }
@@ -0,0 +1,33 @@
1
+ import { DocumentTemplatesApiService } from '@veloceapps/api';
2
+ import { Attachment, DocumentTemplate, QuoteDraft, TemplateAttachmentSearchRequest } from '@veloceapps/core';
3
+ import { Observable } from 'rxjs';
4
+ import * as i0 from "@angular/core";
5
+ export declare class VlDocumentTemplatesDirective {
6
+ private documentTemplatesApiService;
7
+ constructor(documentTemplatesApiService: DocumentTemplatesApiService);
8
+ getTemplates(tag?: string): Promise<DocumentTemplate[]>;
9
+ upsertTemplate(template: DocumentTemplate, templateFile: File): Promise<DocumentTemplate>;
10
+ removeTemplate(id: string): Promise<DocumentTemplate>;
11
+ cloneTemplate(id: string): Promise<{
12
+ clonedRecordId: string;
13
+ }>;
14
+ downloadTemplate(id: string): Promise<Blob>;
15
+ generateDocument(template: DocumentTemplate, quoteDraft: QuoteDraft, params?: {
16
+ [param: string]: string | boolean;
17
+ }): Observable<any>;
18
+ /**
19
+ * @deprecated Use `generateDocument` instead
20
+ */
21
+ generateDocumentNew: (template: DocumentTemplate, quoteDraft: QuoteDraft, params?: {
22
+ [param: string]: string | boolean;
23
+ } | undefined) => Observable<any>;
24
+ generateDocumentData(template: DocumentTemplate, quoteDraft: QuoteDraft, params?: {
25
+ [param: string]: boolean;
26
+ }): Observable<any>;
27
+ getAttachments(searchRequest: TemplateAttachmentSearchRequest): Promise<any>;
28
+ getAttachmentFile(id: string): Promise<any>;
29
+ createAttachment(attachment: Attachment, file?: File): Promise<any>;
30
+ removeAttachment(id: string): Promise<any>;
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<VlDocumentTemplatesDirective, never>;
32
+ static ɵdir: i0.ɵɵDirectiveDeclaration<VlDocumentTemplatesDirective, "[vlQuoteTemplates]", ["quoteTemplateApi"], {}, {}, never>;
33
+ }
@@ -0,0 +1,14 @@
1
+ import { QuoteApiService } from '@veloceapps/api';
2
+ import { QuoteDraft } from '@veloceapps/core';
3
+ import { RuntimeService } from '../../services/runtime.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class VlQuoteDirective {
6
+ private quoteApiService;
7
+ private runtimeService;
8
+ constructor(quoteApiService: QuoteApiService, runtimeService: RuntimeService);
9
+ getQuote(quoteId: string): Promise<QuoteDraft>;
10
+ upsertQuote(quoteDraft: QuoteDraft): Promise<any>;
11
+ configureQuote(quoteDraft: QuoteDraft, rootLineItemId: string): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<VlQuoteDirective, never>;
13
+ static ɵdir: i0.ɵɵDirectiveDeclaration<VlQuoteDirective, "vl-quote", ["quoteApi"], {}, {}, never>;
14
+ }
@@ -0,0 +1,15 @@
1
+ import { PriceApiService, RampApiService } from '@veloceapps/api';
2
+ import { LineItem } from '@veloceapps/core';
3
+ import { ContextService } from '@veloceapps/sdk/core';
4
+ import * as i0 from "@angular/core";
5
+ export declare class VlRampDirective {
6
+ private contextService;
7
+ private rampApiService;
8
+ private priceApiService;
9
+ constructor(contextService: ContextService, rampApiService: RampApiService, priceApiService: PriceApiService);
10
+ createRamp(sourceItems: string[], currentRamps: LineItem[], term: number): Promise<any>;
11
+ calculateRampTermByEndDate(lineItem: LineItem, endDate: string): Promise<any>;
12
+ calculateRampTermByTerm(lineItem: LineItem, term: number): Promise<any>;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<VlRampDirective, never>;
14
+ static ɵdir: i0.ɵɵDirectiveDeclaration<VlRampDirective, "vl-ramp", ["rampApi"], {}, {}, never>;
15
+ }
@@ -0,0 +1,27 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./components/execution-section-renderer/execution-section-renderer.component";
3
+ import * as i2 from "./components/children-placeholder/children-placeholder.component";
4
+ import * as i3 from "./directives/section-script.directive";
5
+ import * as i4 from "./directives/velo-port.directive";
6
+ import * as i5 from "./directives/velo-attribute.directive";
7
+ import * as i6 from "./components/velo-multiselect/velo-multiselect.component";
8
+ import * as i7 from "./components/velo-attribute/velo-attribute.component";
9
+ import * as i8 from "./components/velo-port-radio/velo-port-radio.component";
10
+ import * as i9 from "./components/velo-type/velo-type.component";
11
+ import * as i10 from "./components/velo-port-dropdown/velo-port-dropdown.component";
12
+ import * as i11 from "./components/velo-port-checkbox/velo-port-checkbox.component";
13
+ import * as i12 from "./components/federated/federated.component";
14
+ import * as i13 from "./components/context-provider/context-provider.component";
15
+ import * as i14 from "@angular/common";
16
+ import * as i15 from "@angular/forms";
17
+ import * as i16 from "@veloceapps/core";
18
+ import * as i17 from "@veloceapps/api";
19
+ import * as i18 from "@veloce/elements";
20
+ import * as i19 from "ngx-bootstrap/popover";
21
+ import * as i20 from "@veloceapps/components";
22
+ import * as i21 from "@veloceapps/sdk/core";
23
+ export declare class RuntimeExecutionModule {
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeExecutionModule, never>;
25
+ static ɵmod: i0.ɵɵNgModuleDeclaration<RuntimeExecutionModule, [typeof i1.ExecutionSectionRendererComponent, typeof i2.ChildrenPlaceholderComponent, typeof i3.SectionScriptDirective, typeof i4.VeloPortDirective, typeof i4.LineItemDirective, typeof i4.VeloDropdownComponent, typeof i4.VeloQuantityButtonComponent, typeof i4.VeloQuantityComponent, typeof i5.VeloAttributeDirective, typeof i6.MultiselectComponent, typeof i7.VeloAttributeComponent, typeof i8.VeloPortRadioComponent, typeof i9.VeloTypeComponent, typeof i10.VeloPortDropdownComponent, typeof i11.VeloPortCheckBoxComponent, typeof i12.FederatedComponent, typeof i2.TemplateComponent, typeof i13.ContextProviderComponent], [typeof i14.CommonModule, typeof i15.FormsModule, typeof i15.ReactiveFormsModule, typeof i16.CoreModule, typeof i17.ApiModule, typeof i18.VeloceElementsModule, typeof i19.PopoverModule, typeof i20.LoaderModule, typeof i21.SdkCoreModule], [typeof i15.FormsModule, typeof i15.ReactiveFormsModule, typeof i2.ChildrenPlaceholderComponent, typeof i3.SectionScriptDirective, typeof i4.LineItemDirective, typeof i4.VeloPortDirective, typeof i5.VeloAttributeDirective, typeof i6.MultiselectComponent, typeof i7.VeloAttributeComponent, typeof i8.VeloPortRadioComponent, typeof i9.VeloTypeComponent, typeof i10.VeloPortDropdownComponent, typeof i11.VeloPortCheckBoxComponent, typeof i12.FederatedComponent, typeof i2.TemplateComponent, typeof i13.ContextProviderComponent]>;
26
+ static ɵinj: i0.ɵɵInjectorDeclaration<RuntimeExecutionModule>;
27
+ }
@@ -0,0 +1,6 @@
1
+ export declare type LoadRemoteModuleOptions = {
2
+ remoteEntry: string;
3
+ remoteName: string;
4
+ exposedModule: string;
5
+ };
6
+ export declare function loadRemoteModule(options: LoadRemoteModuleOptions): Promise<any>;
@@ -0,0 +1,4 @@
1
+ export * from './components';
2
+ export * from './runtime.module';
3
+ export * from './services';
4
+ export * from './types';
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "@veloceapps/sdk/runtime",
3
+ "sideEffects": false,
4
+ "main": "../bundles/veloceapps-sdk-runtime.umd.js",
5
+ "module": "../fesm2015/veloceapps-sdk-runtime.js",
6
+ "es2015": "../fesm2015/veloceapps-sdk-runtime.js",
7
+ "esm2015": "../esm2015/runtime/veloceapps-sdk-runtime.js",
8
+ "fesm2015": "../fesm2015/veloceapps-sdk-runtime.js",
9
+ "typings": "veloceapps-sdk-runtime.d.ts"
10
+ }
@@ -0,0 +1,18 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./components/ui-runtime/runtime.component";
3
+ import * as i2 from "./components/ui-runtime-preview/runtime-preview.component";
4
+ import * as i3 from "./components/section-renderer/section-renderer.component";
5
+ import * as i4 from "./components/component-preview/component-preview.component";
6
+ import * as i5 from "@angular/common";
7
+ import * as i6 from "@angular/forms";
8
+ import * as i7 from "@veloceapps/core";
9
+ import * as i8 from "@veloceapps/api";
10
+ import * as i9 from "@veloce/elements";
11
+ import * as i10 from "ngx-bootstrap/popover";
12
+ import * as i11 from "@veloceapps/components";
13
+ import * as i12 from "@veloceapps/sdk/core";
14
+ export declare class RuntimeModule {
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeModule, never>;
16
+ static ɵmod: i0.ɵɵNgModuleDeclaration<RuntimeModule, [typeof i1.RuntimeComponent, typeof i2.RuntimePreviewComponent, typeof i3.SectionRendererComponent, typeof i4.ComponentPreviewComponent], [typeof i5.CommonModule, typeof i6.FormsModule, typeof i6.ReactiveFormsModule, typeof i7.CoreModule, typeof i8.ApiModule, typeof i9.VeloceElementsModule, typeof i10.PopoverModule, typeof i11.LoaderModule, typeof i12.SdkCoreModule], [typeof i6.FormsModule, typeof i6.ReactiveFormsModule, typeof i1.RuntimeComponent, typeof i2.RuntimePreviewComponent, typeof i3.SectionRendererComponent, typeof i4.ComponentPreviewComponent]>;
17
+ static ɵinj: i0.ɵɵInjectorDeclaration<RuntimeModule>;
18
+ }
@@ -0,0 +1,15 @@
1
+ import { PriceApiService } from '@veloceapps/api';
2
+ import { LineItem, PriceSummary } from '@veloceapps/core';
3
+ import { ContextService, QuoteDraftService } from '@veloceapps/sdk/core';
4
+ import { Observable } from 'rxjs';
5
+ import * as i0 from "@angular/core";
6
+ export declare class ShoppingCartService {
7
+ private priceApiService;
8
+ private contextService;
9
+ private quoteService;
10
+ constructor(priceApiService: PriceApiService, contextService: ContextService, quoteService: QuoteDraftService);
11
+ setCartExternally(currentState: LineItem[]): Observable<PriceSummary>;
12
+ getCurrentState(): LineItem[];
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<ShoppingCartService, never>;
14
+ static ɵprov: i0.ɵɵInjectableDeclaration<ShoppingCartService>;
15
+ }
@@ -0,0 +1,15 @@
1
+ import { Observable } from 'rxjs';
2
+ import * as i0 from "@angular/core";
3
+ export declare class CollapsibleStateService {
4
+ collapseSectionEvent: Observable<any>;
5
+ private _collapsedSections;
6
+ private collapseSectionSubject;
7
+ constructor();
8
+ toggleCollapse(sectionId: string, silently?: boolean): void;
9
+ collapse(sectionId: string): void;
10
+ expand(sectionId: string): void;
11
+ clearState(sectionId: string): void;
12
+ isCollapsedSection(sectionId: string): boolean;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<CollapsibleStateService, never>;
14
+ static ɵprov: i0.ɵɵInjectableDeclaration<CollapsibleStateService>;
15
+ }
@@ -0,0 +1,19 @@
1
+ import { ConfigurationApiService } from '@veloceapps/api';
2
+ import { LineItem } from '@veloceapps/core';
3
+ import { ContextService, QuoteStates } from '@veloceapps/sdk/core';
4
+ import { DialogService } from 'primeng/dynamicdialog';
5
+ import { Observable } from 'rxjs';
6
+ import { LegacyRuntimeContext } from '../types';
7
+ import * as i0 from "@angular/core";
8
+ export declare class ConfigurationService {
9
+ private configurationApiService;
10
+ private contextService;
11
+ private dialogService;
12
+ constructor(configurationApiService: ConfigurationApiService, contextService: ContextService, dialogService: DialogService);
13
+ configure(runtimeContext: LegacyRuntimeContext, states: QuoteStates, resolve?: boolean): Observable<LineItem>;
14
+ private createRequest;
15
+ private getDefaultLineItem;
16
+ private showInactiveProductsConfirmation;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationService, never>;
18
+ static ɵprov: i0.ɵɵInjectableDeclaration<ConfigurationService>;
19
+ }
@@ -0,0 +1,8 @@
1
+ import { LineItem } from '@veloceapps/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class CurrentStateService {
4
+ currentState: LineItem[];
5
+ update(state: LineItem[]): void;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<CurrentStateService, never>;
7
+ static ɵprov: i0.ɵɵInjectableDeclaration<CurrentStateService>;
8
+ }
@@ -0,0 +1,20 @@
1
+ import { FormGroup } from '@angular/forms';
2
+ import { Observable } from 'rxjs';
3
+ import { UpdateData } from '../types';
4
+ import { ScriptRegistry } from '../types/script-registry.types';
5
+ import * as i0 from "@angular/core";
6
+ export declare class FormScopeService {
7
+ formSubmitEvent: Observable<UpdateData>;
8
+ scriptRegistry: ScriptRegistry;
9
+ scriptSessionScope: {
10
+ [index: string]: any;
11
+ };
12
+ private formSubmitSubject;
13
+ private _form;
14
+ constructor();
15
+ get form(): FormGroup;
16
+ set form(value: FormGroup);
17
+ publishFormUpdate(value: UpdateData): void;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormScopeService, never>;
19
+ static ɵprov: i0.ɵɵInjectableDeclaration<FormScopeService>;
20
+ }
@@ -0,0 +1,3 @@
1
+ export { CurrentStateService } from './current-state.service';
2
+ export { RuntimeContextService } from './runtime-context.service';
3
+ export { RuntimeService } from './runtime.service';
@@ -0,0 +1,14 @@
1
+ import { ProductModelApiService } from '@veloceapps/api';
2
+ import { ProductModelsContainer } from '@veloceapps/core';
3
+ import { Observable } from 'rxjs';
4
+ import * as i0 from "@angular/core";
5
+ export declare class ProductModelCacheService {
6
+ private productModelApiService;
7
+ constructor(productModelApiService: ProductModelApiService);
8
+ private cachedModel;
9
+ getProductModel(currentModelId: string, version?: string): Observable<ProductModelsContainer>;
10
+ getCachedModel(): Observable<ProductModelsContainer>;
11
+ clearCache(): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProductModelCacheService, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<ProductModelCacheService>;
14
+ }
@@ -0,0 +1,16 @@
1
+ import { ConfigurationApiService } from '@veloceapps/api';
2
+ import { ContextService } from '@veloceapps/sdk/core';
3
+ import { MessageService } from 'primeng/api';
4
+ import { Observable } from 'rxjs';
5
+ import { LegacyRuntimeContext } from '../types';
6
+ import * as i0 from "@angular/core";
7
+ export declare class RuntimeContextService {
8
+ private configurationApiService;
9
+ private messageService;
10
+ private contextService;
11
+ constructor(configurationApiService: ConfigurationApiService, messageService: MessageService, contextService: ContextService);
12
+ getRuntimeContext(productId: string, offeringId?: string): Observable<LegacyRuntimeContext>;
13
+ private getUIDefinition;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeContextService, never>;
15
+ static ɵprov: i0.ɵɵInjectableDeclaration<RuntimeContextService>;
16
+ }
@@ -0,0 +1,24 @@
1
+ import { FormGroup } from '@angular/forms';
2
+ import { LineItem, Section } from '@veloceapps/core';
3
+ import * as i0 from "@angular/core";
4
+ export declare class RuntimeFormService {
5
+ sections: Section[];
6
+ solutionLineItem?: LineItem;
7
+ initForm(sections: Section[], solutionLineItem: LineItem): FormGroup;
8
+ private populateSectionValue;
9
+ private populateSectionPrice;
10
+ private populateFormControls;
11
+ private createFormControl;
12
+ private createQtyControl;
13
+ private getMaxAllowed;
14
+ private getFormControlValidators;
15
+ private getQuantityValidator;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeFormService, never>;
17
+ static ɵprov: i0.ɵɵInjectableDeclaration<RuntimeFormService>;
18
+ }
19
+ export declare class FormServiceUtils {
20
+ static isPortSection(section: Section): boolean;
21
+ static isTypeSection(section: Section): boolean;
22
+ static isAttributeSection(section: Section): boolean;
23
+ static findParent(parentId: string, lineItems: LineItem[]): LineItem | undefined;
24
+ }
@@ -0,0 +1,43 @@
1
+ import { HttpErrorResponse } from '@angular/common/http';
2
+ import { LineItem, UIDefinition } from '@veloceapps/core';
3
+ import { ContextService, QuoteStates } from '@veloceapps/sdk/core';
4
+ import { MessageService } from 'primeng/api';
5
+ import { LegacyRuntimeContext } from '../types';
6
+ import { ConfigurationService } from './configuration.service';
7
+ import * as i0 from "@angular/core";
8
+ export declare class RuntimeService {
9
+ private configurationService;
10
+ private contextService;
11
+ private messageService;
12
+ private runtimeContext;
13
+ private solutionReadySubject;
14
+ onSolutionReadyEvent: import("rxjs").Observable<LineItem>;
15
+ private solutionUpdateStartedSubject;
16
+ onSolutionUpdateStartedEvent: import("rxjs").Observable<void>;
17
+ private solutionUpdatedSubject;
18
+ onSolutionUpdatedEvent: import("rxjs").Observable<LineItem | HttpErrorResponse>;
19
+ private solutionProcessedSubject;
20
+ onSolutionProcessed: import("rxjs").Observable<LineItem>;
21
+ private solutionStopSubject;
22
+ onSolutionStopEvent: import("rxjs").Observable<LineItem>;
23
+ private solutionCancelSubject;
24
+ onSolutionCancelEvent: import("rxjs").Observable<void>;
25
+ private uiRefreshSubject;
26
+ onUIRefreshEvent: import("rxjs").Observable<void>;
27
+ constructor(configurationService: ConfigurationService, contextService: ContextService, messageService: MessageService);
28
+ private displayErrorMessage;
29
+ startRuntime(context: LegacyRuntimeContext, states: QuoteStates, resolve?: boolean): void;
30
+ updateRuntime(states: QuoteStates, configurationContextProperties?: {
31
+ [index: string]: string;
32
+ }): void;
33
+ stopRuntime(solutionLineItem: LineItem): void;
34
+ cancelRuntime(): void;
35
+ setRuntimeContext(runtimeContext: LegacyRuntimeContext): void;
36
+ getRuntimeContext(): LegacyRuntimeContext | undefined;
37
+ solutionProcessed(lineItem: LineItem): void;
38
+ refreshUI(uiDefinition: UIDefinition): void;
39
+ private updateRuntimeContext;
40
+ private setRuntimeStep;
41
+ static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeService, never>;
42
+ static ɵprov: i0.ɵɵInjectableDeclaration<RuntimeService>;
43
+ }
@@ -0,0 +1,8 @@
1
+ import { Section } from '@veloceapps/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SectionHelperService {
4
+ static findSectionForValue(section: Section, valueOption: string): Section | undefined;
5
+ getTotalPrices(section: Section): Map<string, number>;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<SectionHelperService, never>;
7
+ static ɵprov: i0.ɵɵInjectableDeclaration<SectionHelperService>;
8
+ }
@@ -0,0 +1,14 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import { Section } from '@veloceapps/core';
3
+ import { BehaviorSubject } from 'rxjs';
4
+ import * as i0 from "@angular/core";
5
+ export declare class SectionScopeService {
6
+ get section(): Section;
7
+ set section(value: Section);
8
+ indent: number;
9
+ private _section;
10
+ templates: BehaviorSubject<TemplateRef<any>[]>;
11
+ private getIndent;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<SectionScopeService, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<SectionScopeService>;
14
+ }
@@ -0,0 +1,11 @@
1
+ import { ComponentFactory } from '@angular/core';
2
+ import { Section } from '@veloceapps/core';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SectionStoreService {
5
+ private _componentFactories;
6
+ set componentFactories(data: ComponentFactory<any>[]);
7
+ get componentFactories(): ComponentFactory<any>[];
8
+ getComponentFactory(section: Section): ComponentFactory<any> | undefined;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<SectionStoreService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<SectionStoreService>;
11
+ }
@@ -0,0 +1,30 @@
1
+ import '@angular/compiler';
2
+ import { Compiler, NgModuleRef, QueryList, TemplateRef } from '@angular/core';
3
+ import { FormGroup } from '@angular/forms';
4
+ import { Section } from '@veloceapps/core';
5
+ import { SectionStoreService } from './section-store.service';
6
+ import * as i0 from "@angular/core";
7
+ export declare class BaseSectionComponent {
8
+ form: FormGroup;
9
+ section: Section;
10
+ protected templates: QueryList<TemplateRef<any>>;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseSectionComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaseSectionComponent, "ng-component", never, { "form": "form"; "section": "section"; }, {}, never, never>;
13
+ }
14
+ export declare class SectionsService {
15
+ private compiler;
16
+ private m;
17
+ private sectionStore;
18
+ private moduleType;
19
+ private moduleInstance;
20
+ constructor(compiler: Compiler, m: NgModuleRef<any>, sectionStore: SectionStoreService);
21
+ compileModule(sections: Section[], isViewEncapsulated?: boolean): void;
22
+ destroy(): void;
23
+ private getDecoratedComponents;
24
+ private getModuleType;
25
+ private applySelectorField;
26
+ private getUniqueSections;
27
+ private getTranspiledTemplate;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<SectionsService, never>;
29
+ static ɵprov: i0.ɵɵInjectableDeclaration<SectionsService>;
30
+ }
@@ -0,0 +1,13 @@
1
+ import { ProductModelAttribute, ProductPort, ProductType, SectionPath } from '@veloceapps/core';
2
+ export declare enum BoundDataType {
3
+ TYPE = 0,
4
+ ATTRIBUTE = 1,
5
+ PORT = 2
6
+ }
7
+ export interface BoundData {
8
+ name: string;
9
+ entity: ProductType | ProductModelAttribute | ProductPort;
10
+ entityType: string;
11
+ host?: string;
12
+ path: SectionPath;
13
+ }
@@ -0,0 +1 @@
1
+ export * from './runtime.types';
@@ -0,0 +1,19 @@
1
+ import { LineItem, UIDefinition } from '@veloceapps/core';
2
+ import { RuntimeContext } from '@veloceapps/sdk/core';
3
+ import { Dictionary } from 'lodash';
4
+ export interface SolutionReadyAware {
5
+ onSolutionReady(lineItem: LineItem): void;
6
+ }
7
+ export interface SolutionUpdatedAware {
8
+ onSolutionUpdated(lineItem: LineItem): void;
9
+ }
10
+ export interface UpdateData {
11
+ id: string;
12
+ action: string;
13
+ valueOption?: string;
14
+ selectedValueOptions?: string[];
15
+ options?: Dictionary<any>;
16
+ }
17
+ export interface LegacyRuntimeContext extends Omit<RuntimeContext, 'uiDefinition'> {
18
+ uiDefinition?: UIDefinition;
19
+ }
@@ -0,0 +1,13 @@
1
+ export declare class ScriptRegistry {
2
+ scope: Map<string, any>;
3
+ private store;
4
+ constructor();
5
+ exists(scriptId: string): boolean;
6
+ isRegistered(scriptId: string, sectionId: string): boolean;
7
+ doRegister(scriptId: string, sectionId: string): void;
8
+ unRegister(scriptId: string, sectionId: string): void;
9
+ hasGlobalForScript(globalId: string): boolean;
10
+ getGlobalForScript(globalId: string): any;
11
+ setGlobalForScript(globalId: string, globalVariable: any): void;
12
+ removeGlobalForScript(globalId: string): void;
13
+ }
@@ -0,0 +1,34 @@
1
+ import { LineItem, RuntimeModel, SectionPath } from '@veloceapps/core';
2
+ export declare class LineItemPath {
3
+ path: string;
4
+ private _relativePath;
5
+ private _relativeAbstractPath;
6
+ private _abstractPath;
7
+ set relativePath(relativePath: string);
8
+ get relativePath(): string;
9
+ set abstractPath(abstractPath: string);
10
+ get abstractPath(): string;
11
+ set relativeAbstractPath(relativeAbstractPath: string);
12
+ constructor(path: string);
13
+ isEqualTo(sectionPath: SectionPath): boolean;
14
+ }
15
+ export declare class LineItemUtil {
16
+ static removeDeletedItems(original: LineItem): LineItem;
17
+ static replaceLineItemKeys(rootLineItem: LineItem): void;
18
+ static enrichPricingInfo(source: LineItem, pricingDto?: LineItem): LineItem;
19
+ static getLineItemPath(lineItem: LineItem, rootLineItem: LineItem): LineItemPath;
20
+ static findById(parentId: string, lineItems: LineItem[]): LineItem | undefined;
21
+ static countAttributeValues(scale: number, attributeDomain: any[]): number;
22
+ static precision(scale: number): number;
23
+ static splitDomainToValues(scale: number, attributeDomain: any[]): string[];
24
+ static splitIntervalToValues(precision: number, interval: any): string[];
25
+ static findLineItemsByPath(runtimeModel: RuntimeModel, lineItem: LineItem, path: SectionPath): LineItem[];
26
+ static findLineItemChildren(runtimeModel: RuntimeModel, lineItems: LineItem[], portName: string, typeName: string): LineItem[];
27
+ static findLineItemsByType(runtimeModel: RuntimeModel, lineItem: LineItem, typeName: string): LineItem[];
28
+ static findLineItemForValue(model: LineItem, valueOption: string): LineItem | undefined;
29
+ static create(product: any, qty?: number): LineItem;
30
+ static upsert(value: LineItem, collection: LineItem[]): void;
31
+ static compareSortOrder(a: LineItem, b: LineItem): number;
32
+ static sort(lineItems: LineItem[]): void;
33
+ private static compareProductName;
34
+ }
@@ -0,0 +1,2 @@
1
+ import { Section } from '@veloceapps/core';
2
+ export declare const getSectionTree: (src: Section[]) => Section[];
@@ -0,0 +1,16 @@
1
+ import { LineItem, RuntimeModel, Section } from '@veloceapps/core';
2
+ export declare class SectionsBinderHelper {
3
+ static setLineItemsPath(runtimeModel: RuntimeModel, rootLineItem: LineItem, sections: Section[], sourceSections: Section[], filterFn: any, pricingEnabled: boolean): Section[];
4
+ static isAddAllowed(model: LineItem, portName: string, quantityToAdd?: number): boolean;
5
+ static isRemoveAllowed(model: LineItem, portName: string, quantityToRemove?: number): boolean;
6
+ static getMaxAllowed(lineItem: LineItem, portName: string): number;
7
+ static getQuantityGroupByValue(model: LineItem, portName: string): {
8
+ [index: string]: number;
9
+ };
10
+ private static bindMatchingLineItems;
11
+ private static bindLineItem;
12
+ private static doClone;
13
+ private static getQuantity;
14
+ private static getPortMax;
15
+ private static getPortMin;
16
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@veloceapps/sdk/runtime" />
5
+ export * from './index';
@@ -0,0 +1,13 @@
1
+ import { DynamicDialogConfig, DynamicDialogRef } from 'primeng/dynamicdialog';
2
+ import { FlowDialogConfig } from './dialog.types';
3
+ import * as i0 from "@angular/core";
4
+ export declare class FlowDialogComponent {
5
+ private dialogConfig;
6
+ private ref;
7
+ config: FlowDialogConfig;
8
+ constructor(dialogConfig: DynamicDialogConfig, ref: DynamicDialogRef);
9
+ cancelHandler(): void;
10
+ confirmHandler(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<FlowDialogComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<FlowDialogComponent, "vl-flow-dialog", never, {}, {}, never, never>;
13
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./dialog.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "primeng/button";
5
+ export declare class FlowDialogModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<FlowDialogModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FlowDialogModule, [typeof i1.FlowDialogComponent], [typeof i2.CommonModule, typeof i3.ButtonModule], [typeof i1.FlowDialogComponent]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<FlowDialogModule>;
9
+ }
@@ -0,0 +1,6 @@
1
+ export interface FlowDialogConfig {
2
+ title: string;
3
+ description?: string;
4
+ primaryButton: string;
5
+ secondaryButton?: string;
6
+ }
@@ -0,0 +1,26 @@
1
+ import { OnDestroy } from '@angular/core';
2
+ import { UITemplatesApiService } from '@veloceapps/api';
3
+ import { ToastService } from '@veloceapps/components';
4
+ import { ContextService, QuoteDraftService, UIDefinition } from '@veloceapps/sdk/core';
5
+ import { BehaviorSubject, Observable } from 'rxjs';
6
+ import { FlowDocGenService } from '../../services/doc-gen.service';
7
+ import * as i0 from "@angular/core";
8
+ export declare class DocGenComponent implements OnDestroy {
9
+ private quoteDraftService;
10
+ private contextService;
11
+ private templatesApi;
12
+ private docGenService;
13
+ private toastService;
14
+ uiDefinition$: BehaviorSubject<UIDefinition | null>;
15
+ isVisible$: Observable<boolean>;
16
+ private templateApiName;
17
+ private destroy$;
18
+ constructor(quoteDraftService: QuoteDraftService, contextService: ContextService, templatesApi: UITemplatesApiService, docGenService: FlowDocGenService, toastService: ToastService);
19
+ ngOnDestroy(): void;
20
+ private initialize;
21
+ private getTemplateRootComponent$;
22
+ private getDocGenComponentMeta$;
23
+ private generateUIDefinition$;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<DocGenComponent, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<DocGenComponent, "vl-flow-doc-gen", never, {}, {}, never, never>;
26
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./doc-gen.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@veloceapps/sdk/cms";
5
+ export declare class DocGenModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<DocGenModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DocGenModule, [typeof i1.DocGenComponent], [typeof i2.CommonModule, typeof i3.PreviewModule], [typeof i1.DocGenComponent]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<DocGenModule>;
9
+ }