@veloceapps/sdk 8.0.0-10 → 8.0.0-100

Sign up to get free protection for your applications and to get access to all the features.
Files changed (312) hide show
  1. package/README.md +0 -1
  2. package/cms/README.md +0 -20
  3. package/cms/cms.actions.d.ts +7 -1
  4. package/cms/components/preview/preview.component.d.ts +1 -2
  5. package/cms/index.d.ts +1 -0
  6. package/cms/modules/runtime/services/runtime.service.d.ts +1 -1
  7. package/cms/services/index.d.ts +0 -1
  8. package/cms/types/index.d.ts +0 -1
  9. package/cms/utils/element.utils.d.ts +1 -0
  10. package/cms/vendor-map.d.ts +21 -13
  11. package/core/README.md +20 -0
  12. package/core/modules/configuration/helpers.d.ts +2 -2
  13. package/core/modules/configuration/services/configuration-runtime.service.d.ts +1 -1
  14. package/core/modules/configuration/services/configuration.service.d.ts +6 -1
  15. package/core/pipes/action-code.pipe.d.ts +8 -0
  16. package/core/pipes/date.pipe.d.ts +2 -1
  17. package/core/pipes/index.d.ts +1 -0
  18. package/core/pipes/pipes.module.d.ts +2 -1
  19. package/core/services/context.service.d.ts +2 -0
  20. package/core/services/flow-info.service.d.ts +24 -0
  21. package/core/services/flow-state.service.d.ts +50 -0
  22. package/core/services/index.d.ts +3 -0
  23. package/core/services/quote-draft.service.d.ts +8 -1
  24. package/core/services/runtime-settings.service.d.ts +4 -1
  25. package/core/types/formatting-settings.types.d.ts +2 -0
  26. package/core/types/index.d.ts +2 -0
  27. package/{cms → core}/types/integration.types.d.ts +1 -0
  28. package/core/types/pipe.types.d.ts +1 -0
  29. package/esm2020/cms/cms.actions.mjs +15 -1
  30. package/esm2020/cms/components/element-children/element-children.component.mjs +3 -3
  31. package/esm2020/cms/components/element-children/element-children.module.mjs +4 -4
  32. package/esm2020/cms/components/element-drop-handle/element-drop-handle.component.mjs +3 -3
  33. package/esm2020/cms/components/element-drop-handle/element-drop-handle.module.mjs +4 -4
  34. package/esm2020/cms/components/element-renderer/element-renderer.component.mjs +3 -3
  35. package/esm2020/cms/components/element-renderer/element-renderer.module.mjs +4 -4
  36. package/esm2020/cms/components/element-tools-panel/element-tools-panel.component.mjs +5 -5
  37. package/esm2020/cms/components/plugin.component.mjs +3 -3
  38. package/esm2020/cms/components/preview/preview.component.mjs +9 -11
  39. package/esm2020/cms/components/preview/preview.module.mjs +6 -6
  40. package/esm2020/cms/directives/custom-template.directive.mjs +7 -7
  41. package/esm2020/cms/index.mjs +2 -1
  42. package/esm2020/cms/launcher.module.mjs +7 -7
  43. package/esm2020/cms/modules/federated/federated-host.directive.mjs +3 -3
  44. package/esm2020/cms/modules/federated/federated.component.mjs +3 -3
  45. package/esm2020/cms/modules/federated/federated.module.mjs +4 -4
  46. package/esm2020/cms/modules/migrations/migrations.module.mjs +4 -4
  47. package/esm2020/cms/modules/migrations/services/migrations.service.mjs +3 -3
  48. package/esm2020/cms/modules/runtime/runtime.module.mjs +4 -4
  49. package/esm2020/cms/modules/runtime/services/compilation.service.mjs +8 -4
  50. package/esm2020/cms/modules/runtime/services/runtime-editor.service.mjs +3 -3
  51. package/esm2020/cms/modules/runtime/services/runtime.service.mjs +7 -7
  52. package/esm2020/cms/plugins/configuration.plugin.mjs +3 -3
  53. package/esm2020/cms/plugins/element-hover.plugin.mjs +3 -3
  54. package/esm2020/cms/plugins/io.plugin.mjs +8 -7
  55. package/esm2020/cms/plugins/page.plugin.mjs +3 -3
  56. package/esm2020/cms/plugins/region.plugin.mjs +3 -3
  57. package/esm2020/cms/plugins/script.plugin.mjs +3 -3
  58. package/esm2020/cms/services/element-context.service.mjs +3 -3
  59. package/esm2020/cms/services/index.mjs +1 -2
  60. package/esm2020/cms/services/io-provider.service.mjs +3 -3
  61. package/esm2020/cms/services/resources.service.mjs +3 -3
  62. package/esm2020/cms/services/templates.service.mjs +3 -3
  63. package/esm2020/cms/types/index.mjs +1 -2
  64. package/esm2020/cms/utils/element.utils.mjs +10 -3
  65. package/esm2020/cms/utils/elements-resolver.mjs +2 -2
  66. package/esm2020/cms/vendor-map.mjs +13 -5
  67. package/esm2020/core/core.module.mjs +10 -17
  68. package/esm2020/core/directives/directives.module.mjs +4 -4
  69. package/esm2020/core/directives/primeng-calendar.directive.mjs +3 -3
  70. package/esm2020/core/modules/configuration/configuration.module.mjs +4 -4
  71. package/esm2020/core/modules/configuration/helpers.mjs +8 -3
  72. package/esm2020/core/modules/configuration/services/configuration-runtime.service.mjs +11 -14
  73. package/esm2020/core/modules/configuration/services/configuration.service.mjs +29 -10
  74. package/esm2020/core/modules/configuration/services/configuration.state.mjs +5 -5
  75. package/esm2020/core/modules/configuration/services/runtime-context.service.mjs +9 -9
  76. package/esm2020/core/modules/flow-configuration/flow-configuration.module.mjs +4 -4
  77. package/esm2020/core/modules/flow-configuration/services/flow-configuration.service.mjs +3 -3
  78. package/esm2020/core/modules/flow-configuration/services/flow-update.service.mjs +3 -3
  79. package/esm2020/core/pipes/action-code.pipe.mjs +20 -0
  80. package/esm2020/core/pipes/date.pipe.mjs +13 -7
  81. package/esm2020/core/pipes/index.mjs +2 -1
  82. package/esm2020/core/pipes/number.pipe.mjs +3 -3
  83. package/esm2020/core/pipes/pipes.module.mjs +8 -7
  84. package/esm2020/core/pipes/price.pipe.mjs +3 -3
  85. package/esm2020/core/services/context.service.mjs +20 -5
  86. package/esm2020/core/services/flow-info.service.mjs +72 -0
  87. package/esm2020/core/services/flow-state.service.mjs +320 -0
  88. package/esm2020/core/services/index.mjs +4 -1
  89. package/esm2020/core/services/integration.state.mjs +37 -0
  90. package/esm2020/core/services/metric-calculation/metric-calculation.service.mjs +3 -3
  91. package/esm2020/core/services/product-images.service.mjs +3 -3
  92. package/esm2020/core/services/quote-draft.service.mjs +31 -6
  93. package/esm2020/core/services/runtime-settings.service.mjs +20 -5
  94. package/esm2020/core/types/formatting-settings.types.mjs +1 -1
  95. package/esm2020/core/types/index.mjs +3 -1
  96. package/esm2020/core/types/integration.types.mjs +2 -0
  97. package/esm2020/core/types/pipe.types.mjs +2 -0
  98. package/esm2020/src/components/dialog/dialog.component.mjs +3 -3
  99. package/esm2020/src/components/dialog/dialog.module.mjs +4 -4
  100. package/esm2020/src/components/doc-gen/doc-gen.component.mjs +48 -46
  101. package/esm2020/src/components/doc-gen/doc-gen.module.mjs +4 -4
  102. package/esm2020/src/components/flow-header/flow-header.component.mjs +118 -0
  103. package/esm2020/src/components/flow-header/flow-header.module.mjs +19 -0
  104. package/esm2020/src/components/flow-header/index.mjs +2 -0
  105. package/esm2020/src/components/guided-selling/guided-selling.component.mjs +45 -44
  106. package/esm2020/src/components/guided-selling/guided-selling.module.mjs +4 -4
  107. package/esm2020/src/configure-primeng.mjs +33 -0
  108. package/esm2020/src/flow-routing.module.mjs +66 -75
  109. package/esm2020/src/flow.component.mjs +17 -29
  110. package/esm2020/src/flow.module.mjs +11 -9
  111. package/esm2020/src/guards/context.guard.mjs +7 -12
  112. package/esm2020/src/guards/flow.guard.mjs +31 -0
  113. package/esm2020/src/guards/product-unload.guard.mjs +7 -4
  114. package/esm2020/src/guards/root.guard.mjs +17 -13
  115. package/esm2020/src/pages/assets/assets.component.mjs +18 -13
  116. package/esm2020/src/pages/assets/assets.module.mjs +4 -4
  117. package/esm2020/src/pages/catalog/catalog.component.mjs +17 -13
  118. package/esm2020/src/pages/catalog/catalog.module.mjs +4 -4
  119. package/esm2020/src/pages/debug/debug.component.mjs +12 -16
  120. package/esm2020/src/pages/debug/debug.module.mjs +4 -4
  121. package/esm2020/src/pages/empty-account/empty-account.component.mjs +3 -3
  122. package/esm2020/src/pages/empty-account/empty-account.module.mjs +4 -4
  123. package/esm2020/src/pages/product/product.component.mjs +7 -9
  124. package/esm2020/src/pages/product/product.module.mjs +4 -4
  125. package/esm2020/src/pages/record-not-found/record-not-found.component.mjs +3 -3
  126. package/esm2020/src/pages/record-not-found/record-not-found.module.mjs +4 -4
  127. package/esm2020/src/pages/remote/remote.component.mjs +13 -14
  128. package/esm2020/src/pages/remote/remote.module.mjs +4 -4
  129. package/esm2020/src/pages/shopping-cart/shopping-cart.component.mjs +17 -13
  130. package/esm2020/src/pages/shopping-cart/shopping-cart.module.mjs +4 -4
  131. package/esm2020/src/resolvers/flow.resolver.mjs +37 -51
  132. package/esm2020/src/resolvers/quote.resolver.mjs +40 -65
  133. package/esm2020/src/services/doc-gen.service.mjs +7 -6
  134. package/esm2020/src/services/flow-dialog.service.mjs +8 -4
  135. package/esm2020/src/services/flow-router.service.mjs +31 -10
  136. package/esm2020/src/services/flow.service.mjs +36 -11
  137. package/esm2020/src/services/guided-selling.service.mjs +7 -6
  138. package/esm2020/src/services/index.mjs +3 -1
  139. package/esm2020/src/types/flow-customization.types.mjs +1 -1
  140. package/esm2020/src/utils/flow.utils.mjs +6 -2
  141. package/fesm2015/veloceapps-sdk-cms.mjs +221 -220
  142. package/fesm2015/veloceapps-sdk-cms.mjs.map +1 -1
  143. package/fesm2015/veloceapps-sdk-core.mjs +1325 -841
  144. package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
  145. package/fesm2015/veloceapps-sdk.mjs +725 -1457
  146. package/fesm2015/veloceapps-sdk.mjs.map +1 -1
  147. package/fesm2020/veloceapps-sdk-cms.mjs +243 -242
  148. package/fesm2020/veloceapps-sdk-cms.mjs.map +1 -1
  149. package/fesm2020/veloceapps-sdk-core.mjs +1666 -1177
  150. package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
  151. package/fesm2020/veloceapps-sdk.mjs +794 -1525
  152. package/fesm2020/veloceapps-sdk.mjs.map +1 -1
  153. package/package.json +3 -11
  154. package/src/components/doc-gen/doc-gen.component.d.ts +6 -8
  155. package/src/components/flow-header/flow-header.component.d.ts +27 -0
  156. package/src/components/flow-header/flow-header.module.d.ts +9 -0
  157. package/src/components/flow-header/index.d.ts +1 -0
  158. package/src/components/guided-selling/guided-selling.component.d.ts +5 -7
  159. package/src/configure-primeng.d.ts +1 -0
  160. package/src/flow-routing.module.d.ts +6 -7
  161. package/src/flow.component.d.ts +4 -10
  162. package/src/flow.module.d.ts +2 -2
  163. package/src/guards/context.guard.d.ts +4 -5
  164. package/src/guards/flow.guard.d.ts +2 -0
  165. package/src/guards/product-unload.guard.d.ts +2 -2
  166. package/src/guards/root.guard.d.ts +0 -1
  167. package/src/pages/assets/assets.component.d.ts +3 -3
  168. package/src/pages/catalog/catalog.component.d.ts +3 -3
  169. package/src/pages/debug/debug.component.d.ts +5 -8
  170. package/src/pages/product/product.component.d.ts +2 -2
  171. package/src/pages/remote/remote.component.d.ts +1 -2
  172. package/src/pages/shopping-cart/shopping-cart.component.d.ts +3 -3
  173. package/src/resolvers/flow.resolver.d.ts +6 -7
  174. package/src/resolvers/quote.resolver.d.ts +6 -12
  175. package/src/services/doc-gen.service.d.ts +1 -1
  176. package/src/services/flow-dialog.service.d.ts +1 -0
  177. package/src/services/flow-router.service.d.ts +4 -2
  178. package/src/services/flow.service.d.ts +4 -2
  179. package/src/services/guided-selling.service.d.ts +1 -1
  180. package/src/services/index.d.ts +2 -0
  181. package/src/types/flow-customization.types.d.ts +1 -1
  182. package/esm2020/cms/services/integration.state.mjs +0 -37
  183. package/esm2020/cms/types/integration.types.mjs +0 -2
  184. package/esm2020/runtime/components/component-preview/component-preview.component.mjs +0 -125
  185. package/esm2020/runtime/components/index.mjs +0 -5
  186. package/esm2020/runtime/components/section-renderer/section-renderer.component.mjs +0 -67
  187. package/esm2020/runtime/components/ui-runtime/runtime.component.mjs +0 -440
  188. package/esm2020/runtime/components/ui-runtime-preview/runtime-preview.component.mjs +0 -108
  189. package/esm2020/runtime/execution/components/children-placeholder/children-placeholder.component.mjs +0 -60
  190. package/esm2020/runtime/execution/components/context-provider/context-provider.component.mjs +0 -39
  191. package/esm2020/runtime/execution/components/execution-section-renderer/execution-section-renderer.component.mjs +0 -67
  192. package/esm2020/runtime/execution/components/federated/federated.component.mjs +0 -74
  193. package/esm2020/runtime/execution/components/velo-attribute/velo-attribute.component.mjs +0 -60
  194. package/esm2020/runtime/execution/components/velo-multiselect/velo-multiselect.component.mjs +0 -130
  195. package/esm2020/runtime/execution/components/velo-port-checkbox/velo-port-checkbox.component.mjs +0 -72
  196. package/esm2020/runtime/execution/components/velo-port-dropdown/velo-port-dropdown.component.mjs +0 -97
  197. package/esm2020/runtime/execution/components/velo-port-radio/velo-port-radio.component.mjs +0 -142
  198. package/esm2020/runtime/execution/components/velo-type/velo-type.component.mjs +0 -119
  199. package/esm2020/runtime/execution/directives/section-script.directive.mjs +0 -247
  200. package/esm2020/runtime/execution/directives/sf-query.directive.mjs +0 -35
  201. package/esm2020/runtime/execution/directives/velo-attribute.directive.mjs +0 -88
  202. package/esm2020/runtime/execution/directives/velo-port.directive.mjs +0 -376
  203. package/esm2020/runtime/execution/directives/vl-approval.directive.mjs +0 -23
  204. package/esm2020/runtime/execution/directives/vl-document-attachments.directive.mjs +0 -36
  205. package/esm2020/runtime/execution/directives/vl-document-templates.directive.mjs +0 -60
  206. package/esm2020/runtime/execution/directives/vl-quote.directive.mjs +0 -42
  207. package/esm2020/runtime/execution/directives/vl-ramp.directive.mjs +0 -55
  208. package/esm2020/runtime/execution/runtime-execution.module.mjs +0 -133
  209. package/esm2020/runtime/execution/utils/federated.util.mjs +0 -32
  210. package/esm2020/runtime/index.mjs +0 -5
  211. package/esm2020/runtime/runtime.module.mjs +0 -74
  212. package/esm2020/runtime/services/cart.service.mjs +0 -29
  213. package/esm2020/runtime/services/collapsible-state.service.mjs +0 -34
  214. package/esm2020/runtime/services/configuration.service.mjs +0 -119
  215. package/esm2020/runtime/services/current-state.service.mjs +0 -17
  216. package/esm2020/runtime/services/form-scope.service.mjs +0 -30
  217. package/esm2020/runtime/services/index.mjs +0 -4
  218. package/esm2020/runtime/services/product-model-cache.service.mjs +0 -31
  219. package/esm2020/runtime/services/runtime-context.service.mjs +0 -60
  220. package/esm2020/runtime/services/runtime-form.service.mjs +0 -219
  221. package/esm2020/runtime/services/runtime.service.mjs +0 -115
  222. package/esm2020/runtime/services/section-helper.service.mjs +0 -27
  223. package/esm2020/runtime/services/section-scope.service.mjs +0 -36
  224. package/esm2020/runtime/services/section-store.service.mjs +0 -22
  225. package/esm2020/runtime/services/section.service.mjs +0 -117
  226. package/esm2020/runtime/types/bound-data.types.mjs +0 -7
  227. package/esm2020/runtime/types/index.mjs +0 -3
  228. package/esm2020/runtime/types/quote-states.types.mjs +0 -2
  229. package/esm2020/runtime/types/runtime.types.mjs +0 -2
  230. package/esm2020/runtime/types/script-registry.types.mjs +0 -51
  231. package/esm2020/runtime/utils/line-item.util.mjs +0 -270
  232. package/esm2020/runtime/utils/section.utils.mjs +0 -26
  233. package/esm2020/runtime/utils/sections-binder.helper.mjs +0 -105
  234. package/esm2020/runtime/veloceapps-sdk-runtime.mjs +0 -5
  235. package/esm2020/src/components/header/cart-overlay/cart-preview.component.mjs +0 -119
  236. package/esm2020/src/components/header/cart-overlay/cart-preview.module.mjs +0 -47
  237. package/esm2020/src/components/header/header.component.mjs +0 -355
  238. package/esm2020/src/components/header/header.module.mjs +0 -52
  239. package/esm2020/src/components/header/header.types.mjs +0 -2
  240. package/esm2020/src/components/header/metrics/index.mjs +0 -2
  241. package/esm2020/src/components/header/metrics/metrics.component.mjs +0 -255
  242. package/esm2020/src/components/header/metrics/metrics.definitions.mjs +0 -2
  243. package/esm2020/src/components/header/metrics/metrics.module.mjs +0 -69
  244. package/esm2020/src/pages/legacy-product/legacy-product.component.mjs +0 -137
  245. package/esm2020/src/pages/legacy-product/legacy-product.module.mjs +0 -19
  246. package/fesm2015/veloceapps-sdk-runtime.mjs +0 -3770
  247. package/fesm2015/veloceapps-sdk-runtime.mjs.map +0 -1
  248. package/fesm2020/veloceapps-sdk-runtime.mjs +0 -3767
  249. package/fesm2020/veloceapps-sdk-runtime.mjs.map +0 -1
  250. package/runtime/README.md +0 -5
  251. package/runtime/components/component-preview/component-preview.component.d.ts +0 -27
  252. package/runtime/components/index.d.ts +0 -4
  253. package/runtime/components/section-renderer/section-renderer.component.d.ts +0 -25
  254. package/runtime/components/ui-runtime/runtime.component.d.ts +0 -53
  255. package/runtime/components/ui-runtime-preview/runtime-preview.component.d.ts +0 -27
  256. package/runtime/execution/components/children-placeholder/children-placeholder.component.d.ts +0 -30
  257. package/runtime/execution/components/context-provider/context-provider.component.d.ts +0 -14
  258. package/runtime/execution/components/execution-section-renderer/execution-section-renderer.component.d.ts +0 -25
  259. package/runtime/execution/components/federated/federated.component.d.ts +0 -36
  260. package/runtime/execution/components/velo-attribute/velo-attribute.component.d.ts +0 -19
  261. package/runtime/execution/components/velo-multiselect/velo-multiselect.component.d.ts +0 -35
  262. package/runtime/execution/components/velo-port-checkbox/velo-port-checkbox.component.d.ts +0 -22
  263. package/runtime/execution/components/velo-port-dropdown/velo-port-dropdown.component.d.ts +0 -22
  264. package/runtime/execution/components/velo-port-radio/velo-port-radio.component.d.ts +0 -28
  265. package/runtime/execution/components/velo-type/velo-type.component.d.ts +0 -31
  266. package/runtime/execution/directives/section-script.directive.d.ts +0 -59
  267. package/runtime/execution/directives/sf-query.directive.d.ts +0 -15
  268. package/runtime/execution/directives/velo-attribute.directive.d.ts +0 -26
  269. package/runtime/execution/directives/velo-port.directive.d.ts +0 -74
  270. package/runtime/execution/directives/vl-approval.directive.d.ts +0 -10
  271. package/runtime/execution/directives/vl-document-attachments.directive.d.ts +0 -15
  272. package/runtime/execution/directives/vl-document-templates.directive.d.ts +0 -33
  273. package/runtime/execution/directives/vl-quote.directive.d.ts +0 -14
  274. package/runtime/execution/directives/vl-ramp.directive.d.ts +0 -15
  275. package/runtime/execution/runtime-execution.module.d.ts +0 -25
  276. package/runtime/execution/utils/federated.util.d.ts +0 -6
  277. package/runtime/index.d.ts +0 -4
  278. package/runtime/runtime.module.d.ts +0 -16
  279. package/runtime/services/cart.service.d.ts +0 -15
  280. package/runtime/services/collapsible-state.service.d.ts +0 -15
  281. package/runtime/services/configuration.service.d.ts +0 -20
  282. package/runtime/services/current-state.service.d.ts +0 -8
  283. package/runtime/services/form-scope.service.d.ts +0 -20
  284. package/runtime/services/index.d.ts +0 -3
  285. package/runtime/services/product-model-cache.service.d.ts +0 -14
  286. package/runtime/services/runtime-context.service.d.ts +0 -16
  287. package/runtime/services/runtime-form.service.d.ts +0 -24
  288. package/runtime/services/runtime.service.d.ts +0 -44
  289. package/runtime/services/section-helper.service.d.ts +0 -8
  290. package/runtime/services/section-scope.service.d.ts +0 -14
  291. package/runtime/services/section-store.service.d.ts +0 -11
  292. package/runtime/services/section.service.d.ts +0 -30
  293. package/runtime/types/bound-data.types.d.ts +0 -13
  294. package/runtime/types/index.d.ts +0 -2
  295. package/runtime/types/quote-states.types.d.ts +0 -6
  296. package/runtime/types/runtime.types.d.ts +0 -19
  297. package/runtime/types/script-registry.types.d.ts +0 -13
  298. package/runtime/utils/line-item.util.d.ts +0 -34
  299. package/runtime/utils/section.utils.d.ts +0 -2
  300. package/runtime/utils/sections-binder.helper.d.ts +0 -16
  301. package/src/components/header/cart-overlay/cart-preview.component.d.ts +0 -36
  302. package/src/components/header/cart-overlay/cart-preview.module.d.ts +0 -14
  303. package/src/components/header/header.component.d.ts +0 -70
  304. package/src/components/header/header.module.d.ts +0 -16
  305. package/src/components/header/header.types.d.ts +0 -20
  306. package/src/components/header/metrics/index.d.ts +0 -1
  307. package/src/components/header/metrics/metrics.component.d.ts +0 -67
  308. package/src/components/header/metrics/metrics.definitions.d.ts +0 -1
  309. package/src/components/header/metrics/metrics.module.d.ts +0 -18
  310. package/src/pages/legacy-product/legacy-product.component.d.ts +0 -37
  311. package/src/pages/legacy-product/legacy-product.module.d.ts +0 -9
  312. /package/{cms → core}/services/integration.state.d.ts +0 -0
@@ -1,33 +0,0 @@
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, never, false, never>;
33
- }
@@ -1,14 +0,0 @@
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, never, false, never>;
14
- }
@@ -1,15 +0,0 @@
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, never, false, never>;
15
- }
@@ -1,25 +0,0 @@
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 "@veloceapps/components";
20
- import * as i19 from "@veloceapps/sdk/core";
21
- export declare class RuntimeExecutionModule {
22
- static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeExecutionModule, never>;
23
- 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.LoaderModule, typeof i19.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]>;
24
- static ɵinj: i0.ɵɵInjectorDeclaration<RuntimeExecutionModule>;
25
- }
@@ -1,6 +0,0 @@
1
- export type LoadRemoteModuleOptions = {
2
- remoteEntry: string;
3
- remoteName: string;
4
- exposedModule: string;
5
- };
6
- export declare function loadRemoteModule(options: LoadRemoteModuleOptions): Promise<any>;
@@ -1,4 +0,0 @@
1
- export * from './components';
2
- export * from './runtime.module';
3
- export * from './services';
4
- export * from './types';
@@ -1,16 +0,0 @@
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 "@veloceapps/components";
11
- import * as i10 from "@veloceapps/sdk/core";
12
- export declare class RuntimeModule {
13
- static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeModule, never>;
14
- 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.LoaderModule, typeof i10.SdkCoreModule], [typeof i6.FormsModule, typeof i6.ReactiveFormsModule, typeof i1.RuntimeComponent, typeof i2.RuntimePreviewComponent, typeof i3.SectionRendererComponent, typeof i4.ComponentPreviewComponent]>;
15
- static ɵinj: i0.ɵɵInjectorDeclaration<RuntimeModule>;
16
- }
@@ -1,15 +0,0 @@
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
- }
@@ -1,15 +0,0 @@
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
- }
@@ -1,20 +0,0 @@
1
- import { ConfigurationApiService } from '@veloceapps/api';
2
- import { LineItem } from '@veloceapps/core';
3
- import { ContextService } from '@veloceapps/sdk/core';
4
- import { DialogService } from 'primeng/dynamicdialog';
5
- import { Observable } from 'rxjs';
6
- import { LegacyRuntimeContext } from '../types';
7
- import { QuoteStates } from '../types/quote-states.types';
8
- import * as i0 from "@angular/core";
9
- export declare class ConfigurationService {
10
- private configurationApiService;
11
- private contextService;
12
- private dialogService;
13
- constructor(configurationApiService: ConfigurationApiService, contextService: ContextService, dialogService: DialogService);
14
- configure(runtimeContext: LegacyRuntimeContext, states: QuoteStates, resolve?: boolean): Observable<LineItem>;
15
- private createRequest;
16
- private getDefaultLineItem;
17
- private showInactiveProductsConfirmation;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationService, never>;
19
- static ɵprov: i0.ɵɵInjectableDeclaration<ConfigurationService>;
20
- }
@@ -1,8 +0,0 @@
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
- }
@@ -1,20 +0,0 @@
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
- }
@@ -1,3 +0,0 @@
1
- export { CurrentStateService } from './current-state.service';
2
- export { RuntimeContextService } from './runtime-context.service';
3
- export { RuntimeService } from './runtime.service';
@@ -1,14 +0,0 @@
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
- }
@@ -1,16 +0,0 @@
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
- }
@@ -1,24 +0,0 @@
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
- }
@@ -1,44 +0,0 @@
1
- import { HttpErrorResponse } from '@angular/common/http';
2
- import { LegacyUIDefinition, LineItem } from '@veloceapps/core';
3
- import { ContextService } from '@veloceapps/sdk/core';
4
- import { MessageService } from 'primeng/api';
5
- import { LegacyRuntimeContext } from '../types';
6
- import { QuoteStates } from '../types/quote-states.types';
7
- import { ConfigurationService } from './configuration.service';
8
- import * as i0 from "@angular/core";
9
- export declare class RuntimeService {
10
- private configurationService;
11
- private contextService;
12
- private messageService;
13
- private runtimeContext;
14
- private solutionReadySubject;
15
- onSolutionReadyEvent: import("rxjs").Observable<LineItem>;
16
- private solutionUpdateStartedSubject;
17
- onSolutionUpdateStartedEvent: import("rxjs").Observable<void>;
18
- private solutionUpdatedSubject;
19
- onSolutionUpdatedEvent: import("rxjs").Observable<LineItem | HttpErrorResponse>;
20
- private solutionProcessedSubject;
21
- onSolutionProcessed: import("rxjs").Observable<LineItem>;
22
- private solutionStopSubject;
23
- onSolutionStopEvent: import("rxjs").Observable<LineItem>;
24
- private solutionCancelSubject;
25
- onSolutionCancelEvent: import("rxjs").Observable<void>;
26
- private uiRefreshSubject;
27
- onUIRefreshEvent: import("rxjs").Observable<void>;
28
- constructor(configurationService: ConfigurationService, contextService: ContextService, messageService: MessageService);
29
- private displayErrorMessage;
30
- startRuntime(context: LegacyRuntimeContext, states: QuoteStates, resolve?: boolean): void;
31
- updateRuntime(states: QuoteStates, configurationContextProperties?: {
32
- [index: string]: string;
33
- }): void;
34
- stopRuntime(solutionLineItem: LineItem): void;
35
- cancelRuntime(): void;
36
- setRuntimeContext(runtimeContext: LegacyRuntimeContext): void;
37
- getRuntimeContext(): LegacyRuntimeContext | undefined;
38
- solutionProcessed(lineItem: LineItem): void;
39
- refreshUI(uiDefinition: LegacyUIDefinition): void;
40
- private updateRuntimeContext;
41
- private setRuntimeStep;
42
- static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeService, never>;
43
- static ɵprov: i0.ɵɵInjectableDeclaration<RuntimeService>;
44
- }
@@ -1,8 +0,0 @@
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
- }
@@ -1,14 +0,0 @@
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
- }
@@ -1,11 +0,0 @@
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
- }
@@ -1,30 +0,0 @@
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, false, 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
- }
@@ -1,13 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- export * from './quote-states.types';
2
- export * from './runtime.types';
@@ -1,6 +0,0 @@
1
- import { LineItem } from '@veloceapps/core';
2
- export interface QuoteStates {
3
- configurableRamp?: LineItem;
4
- currentState?: LineItem[];
5
- asset?: LineItem;
6
- }
@@ -1,19 +0,0 @@
1
- import { LegacyUIDefinition, LineItem } 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?: LegacyUIDefinition;
19
- }
@@ -1,13 +0,0 @@
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
- }
@@ -1,34 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- import { Section } from '@veloceapps/core';
2
- export declare const getSectionTree: (src: Section[]) => Section[];
@@ -1,16 +0,0 @@
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
- }
@@ -1,36 +0,0 @@
1
- import { AfterViewInit, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
2
- import { FormGroup } from '@angular/forms';
3
- import { FlowConfigurationService, ProductImagesService, QuoteDraftService } from '@veloceapps/sdk/core';
4
- import { OverlayPanel } from 'primeng/overlaypanel';
5
- import { Observable } from 'rxjs';
6
- import { FlowRouterService } from '../../../services/flow-router.service';
7
- import { HeaderProduct } from '../header.types';
8
- import * as i0 from "@angular/core";
9
- export declare class CartPreviewComponent implements OnChanges, AfterViewInit, OnDestroy {
10
- private flowConfiguration;
11
- private routerService;
12
- private productImagesService;
13
- private quoteDraftService;
14
- overlayPanel: OverlayPanel;
15
- products: HeaderProduct[];
16
- readonly productRowHeight = 65;
17
- form: FormGroup<{}>;
18
- lockedProductId$: Observable<string | null>;
19
- isEditMode$: Observable<boolean>;
20
- hasTermInProducts: boolean;
21
- scrollHeight: number;
22
- private shouldUpdate$;
23
- private destroyed$;
24
- constructor(flowConfiguration: FlowConfigurationService, routerService: FlowRouterService, productImagesService: ProductImagesService, quoteDraftService: QuoteDraftService);
25
- ngOnChanges(changes: SimpleChanges): void;
26
- ngAfterViewInit(): void;
27
- ngOnDestroy(): void;
28
- getImageUrl(productId: string): Observable<string | null>;
29
- navigateToProductConfiguration(productId: string, lineItemId: string): void;
30
- controlBlurHandler(product: HeaderProduct): void;
31
- deleteHandler(product: HeaderProduct): void;
32
- deleteAllHandler(): void;
33
- private updateControls;
34
- static ɵfac: i0.ɵɵFactoryDeclaration<CartPreviewComponent, never>;
35
- static ɵcmp: i0.ɵɵComponentDeclaration<CartPreviewComponent, "vl-cart-preview", never, { "products": "products"; }, {}, never, never, false, never>;
36
- }
@@ -1,14 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./cart-preview.component";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "@angular/forms";
5
- import * as i4 from "primeng/button";
6
- import * as i5 from "primeng/overlaypanel";
7
- import * as i6 from "@veloceapps/components";
8
- import * as i7 from "primeng/inputnumber";
9
- import * as i8 from "primeng/virtualscroller";
10
- export declare class CartPreviewModule {
11
- static ɵfac: i0.ɵɵFactoryDeclaration<CartPreviewModule, never>;
12
- static ɵmod: i0.ɵɵNgModuleDeclaration<CartPreviewModule, [typeof i1.CartPreviewComponent], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.ButtonModule, typeof i5.OverlayPanelModule, typeof i6.LetDirectiveModule, typeof i7.InputNumberModule, typeof i8.VirtualScrollerModule, typeof i6.QuantityControlModule], [typeof i1.CartPreviewComponent]>;
13
- static ɵinj: i0.ɵɵInjectorDeclaration<CartPreviewModule>;
14
- }
@@ -1,70 +0,0 @@
1
- import { OnDestroy, OnInit } from '@angular/core';
2
- import { QuoteApiService, SalesforceApiService } from '@veloceapps/api';
3
- import { ContextProperties, LineItem, PriceList } from '@veloceapps/core';
4
- import { IntegrationState } from '@veloceapps/sdk/cms';
5
- import { ContextService, FlowConfigurationService, QuoteDraftService } from '@veloceapps/sdk/core';
6
- import { MenuItem } from 'primeng/api';
7
- import { BehaviorSubject, Observable } from 'rxjs';
8
- import { FlowDialogService } from '../../services/flow-dialog.service';
9
- import { FlowRouterService } from '../../services/flow-router.service';
10
- import { CartPreviewComponent } from './cart-overlay/cart-preview.component';
11
- import { HeaderObjectDetails, HeaderProduct } from './header.types';
12
- import * as i0 from "@angular/core";
13
- export declare class FlowHeaderComponent implements OnInit, OnDestroy {
14
- private contextService;
15
- private quoteDraftService;
16
- private quoteApiService;
17
- private sfApiService;
18
- private flowConfiguration;
19
- private routerService;
20
- private dialogService;
21
- private integrationState;
22
- objectName$: Observable<string>;
23
- contextProperties$: Observable<ContextProperties>;
24
- activePriceList$: Observable<PriceList | null>;
25
- isReadonlyMode$: Observable<boolean>;
26
- status$: Observable<string>;
27
- objectDetails$: Observable<HeaderObjectDetails>;
28
- assetsCount$: Observable<number>;
29
- products$: Observable<HeaderProduct[]>;
30
- isConfigurationRoute$: Observable<boolean>;
31
- isCartRoute$: Observable<boolean>;
32
- isCatalogRoute$: Observable<boolean>;
33
- isAssetsRoute$: Observable<boolean>;
34
- isEditMode$: Observable<boolean>;
35
- isSaveInProgress$: BehaviorSubject<boolean>;
36
- isSubmitInProgress$: BehaviorSubject<boolean>;
37
- dateFormat: string;
38
- assetPriceLists$: BehaviorSubject<PriceList[]>;
39
- private mode$;
40
- private destroyed$;
41
- constructor(contextService: ContextService, quoteDraftService: QuoteDraftService, quoteApiService: QuoteApiService, sfApiService: SalesforceApiService, flowConfiguration: FlowConfigurationService, routerService: FlowRouterService, dialogService: FlowDialogService, integrationState: IntegrationState);
42
- ngOnInit(): void;
43
- ngOnDestroy(): void;
44
- get isAccountMode(): boolean;
45
- get isQuoteMode(): boolean;
46
- get isAccountMode$(): Observable<boolean>;
47
- get isQuoteMode$(): Observable<boolean>;
48
- getSplitButtonActions(isCartRoute: boolean): MenuItem[];
49
- back(objectId?: string): void;
50
- getSalesforceObjectLink(objectId?: string): string;
51
- navigateToShoppingCart(): void;
52
- navigateToCatalog(): void;
53
- navigateToAssets(): void;
54
- docGenButtonClickHandler(isCartRoute: boolean): void;
55
- saveButtonClickHandler(isCartRoute: boolean, stayOnPage?: boolean): void;
56
- submitButtonClickHandler(isCartRoute: boolean): void;
57
- selectPriceList(priceListId: string): void;
58
- toggleCartOverlay(cart: CartPreviewComponent, event: Event): void;
59
- private saveQuote$;
60
- private queryName$;
61
- private getObjectDetails$;
62
- private formatMetric;
63
- getDraftItems$(): Observable<LineItem[]>;
64
- getAssets$(): Observable<LineItem[]>;
65
- private generateProducts;
66
- private isReadonlyMode;
67
- private isUpsellQuoteWithoutChanges;
68
- static ɵfac: i0.ɵɵFactoryDeclaration<FlowHeaderComponent, never>;
69
- static ɵcmp: i0.ɵɵComponentDeclaration<FlowHeaderComponent, "vl-flow-header", never, {}, {}, never, never, false, never>;
70
- }