@veloceapps/sdk 8.0.0-14 → 8.0.0-140

Sign up to get free protection for your applications and to get access to all the features.
Files changed (339) hide show
  1. package/README.md +0 -1
  2. package/cms/README.md +0 -20
  3. package/cms/cms.actions.d.ts +7 -1
  4. package/cms/components/preview/preview.component.d.ts +2 -3
  5. package/cms/components/preview/preview.types.d.ts +4 -0
  6. package/cms/index.d.ts +1 -0
  7. package/cms/modules/runtime/services/runtime.service.d.ts +1 -1
  8. package/cms/services/index.d.ts +0 -1
  9. package/cms/types/index.d.ts +0 -1
  10. package/cms/utils/element-metadata-worker.d.ts +11 -0
  11. package/cms/utils/elements-resolver.d.ts +0 -2
  12. package/cms/utils/index.d.ts +3 -0
  13. package/cms/utils/transpilation-worker.d.ts +13 -0
  14. package/cms/vendor-map.d.ts +27 -15
  15. package/core/README.md +20 -0
  16. package/core/modules/configuration/configuration.module.d.ts +2 -1
  17. package/core/modules/configuration/helpers.d.ts +4 -3
  18. package/core/modules/configuration/index.d.ts +1 -1
  19. package/core/modules/configuration/services/configuration-runtime.service.d.ts +1 -1
  20. package/core/modules/configuration/services/configuration-state.service.d.ts +50 -0
  21. package/core/modules/configuration/services/configuration.service.d.ts +8 -2
  22. package/core/modules/configuration/types/configuration.types.d.ts +4 -0
  23. package/core/modules/flow-configuration/flow-configuration.module.d.ts +2 -1
  24. package/core/modules/flow-configuration/services/flow-configuration.service.d.ts +5 -0
  25. package/core/pipes/action-code.pipe.d.ts +8 -0
  26. package/core/pipes/date.pipe.d.ts +2 -1
  27. package/core/pipes/index.d.ts +1 -0
  28. package/core/pipes/pipes.module.d.ts +2 -1
  29. package/core/services/context.service.d.ts +4 -0
  30. package/core/services/flow-info.service.d.ts +29 -0
  31. package/core/services/flow-state-configuration.service.d.ts +19 -0
  32. package/core/services/flow-state.service.d.ts +71 -0
  33. package/core/services/index.d.ts +4 -0
  34. package/core/services/quote-draft.service.d.ts +8 -1
  35. package/core/services/runtime-settings.service.d.ts +4 -1
  36. package/core/types/flow-customization.types.d.ts +22 -0
  37. package/core/types/flow-state.types.d.ts +6 -0
  38. package/core/types/formatting-settings.types.d.ts +2 -0
  39. package/core/types/index.d.ts +3 -0
  40. package/{cms → core}/types/integration.types.d.ts +1 -0
  41. package/core/types/pipe.types.d.ts +1 -0
  42. package/core/utils/line-item.utils.d.ts +0 -1
  43. package/esm2020/cms/cms.actions.mjs +15 -1
  44. package/esm2020/cms/components/element-children/element-children.component.mjs +3 -3
  45. package/esm2020/cms/components/element-children/element-children.module.mjs +4 -4
  46. package/esm2020/cms/components/element-drop-handle/element-drop-handle.component.mjs +3 -3
  47. package/esm2020/cms/components/element-drop-handle/element-drop-handle.module.mjs +4 -4
  48. package/esm2020/cms/components/element-renderer/element-renderer.component.mjs +3 -3
  49. package/esm2020/cms/components/element-renderer/element-renderer.module.mjs +4 -4
  50. package/esm2020/cms/components/element-tools-panel/element-tools-panel.component.mjs +5 -5
  51. package/esm2020/cms/components/plugin.component.mjs +3 -3
  52. package/esm2020/cms/components/preview/preview.component.mjs +11 -11
  53. package/esm2020/cms/components/preview/preview.module.mjs +6 -6
  54. package/esm2020/cms/components/preview/preview.types.mjs +1 -1
  55. package/esm2020/cms/directives/custom-template.directive.mjs +7 -7
  56. package/esm2020/cms/index.mjs +2 -1
  57. package/esm2020/cms/launcher.module.mjs +7 -7
  58. package/esm2020/cms/modules/federated/federated-host.directive.mjs +3 -3
  59. package/esm2020/cms/modules/federated/federated.component.mjs +3 -3
  60. package/esm2020/cms/modules/federated/federated.module.mjs +4 -4
  61. package/esm2020/cms/modules/migrations/migrations.module.mjs +4 -4
  62. package/esm2020/cms/modules/migrations/services/migrations.service.mjs +3 -3
  63. package/esm2020/cms/modules/runtime/runtime.module.mjs +4 -4
  64. package/esm2020/cms/modules/runtime/services/compilation.service.mjs +12 -8
  65. package/esm2020/cms/modules/runtime/services/runtime-editor.service.mjs +3 -3
  66. package/esm2020/cms/modules/runtime/services/runtime.service.mjs +7 -7
  67. package/esm2020/cms/plugins/configuration.plugin.mjs +3 -3
  68. package/esm2020/cms/plugins/element-hover.plugin.mjs +3 -3
  69. package/esm2020/cms/plugins/io.plugin.mjs +3 -3
  70. package/esm2020/cms/plugins/page.plugin.mjs +3 -3
  71. package/esm2020/cms/plugins/region.plugin.mjs +3 -3
  72. package/esm2020/cms/plugins/script.plugin.mjs +3 -3
  73. package/esm2020/cms/services/element-context.service.mjs +3 -3
  74. package/esm2020/cms/services/index.mjs +1 -2
  75. package/esm2020/cms/services/io-provider.service.mjs +3 -3
  76. package/esm2020/cms/services/resources.service.mjs +3 -3
  77. package/esm2020/cms/services/templates.service.mjs +3 -3
  78. package/esm2020/cms/types/index.mjs +1 -2
  79. package/esm2020/cms/utils/element-metadata-worker.mjs +31 -0
  80. package/esm2020/cms/utils/elements-resolver.mjs +14 -28
  81. package/esm2020/cms/utils/index.mjs +4 -1
  82. package/esm2020/cms/utils/transpilation-worker.mjs +52 -0
  83. package/esm2020/cms/vendor-map.mjs +19 -6
  84. package/esm2020/core/core.module.mjs +16 -7
  85. package/esm2020/core/directives/directives.module.mjs +4 -4
  86. package/esm2020/core/directives/primeng-calendar.directive.mjs +3 -3
  87. package/esm2020/core/modules/configuration/configuration.module.mjs +9 -25
  88. package/esm2020/core/modules/configuration/helpers.mjs +28 -3
  89. package/esm2020/core/modules/configuration/index.mjs +2 -2
  90. package/esm2020/core/modules/configuration/services/configuration-runtime.service.mjs +11 -14
  91. package/esm2020/core/modules/configuration/services/configuration-state.service.mjs +291 -0
  92. package/esm2020/core/modules/configuration/services/configuration.service.mjs +49 -24
  93. package/esm2020/core/modules/configuration/services/runtime-context.service.mjs +9 -9
  94. package/esm2020/core/modules/configuration/types/configuration.types.mjs +1 -1
  95. package/esm2020/core/modules/flow-configuration/flow-configuration.module.mjs +8 -8
  96. package/esm2020/core/modules/flow-configuration/services/flow-configuration.service.mjs +13 -10
  97. package/esm2020/core/modules/flow-configuration/services/flow-update.service.mjs +3 -3
  98. package/esm2020/core/pipes/action-code.pipe.mjs +20 -0
  99. package/esm2020/core/pipes/date.pipe.mjs +13 -7
  100. package/esm2020/core/pipes/index.mjs +2 -1
  101. package/esm2020/core/pipes/number.pipe.mjs +3 -3
  102. package/esm2020/core/pipes/pipes.module.mjs +8 -7
  103. package/esm2020/core/pipes/price.pipe.mjs +3 -3
  104. package/esm2020/core/services/context.service.mjs +34 -7
  105. package/esm2020/core/services/flow-info.service.mjs +99 -0
  106. package/esm2020/core/services/flow-state-configuration.service.mjs +53 -0
  107. package/esm2020/core/services/flow-state.service.mjs +466 -0
  108. package/esm2020/core/services/index.mjs +5 -1
  109. package/esm2020/core/services/integration.state.mjs +36 -0
  110. package/esm2020/core/services/metric-calculation/metric-calculation.service.mjs +5 -6
  111. package/esm2020/core/services/product-images.service.mjs +5 -6
  112. package/esm2020/core/services/quote-draft.service.mjs +33 -9
  113. package/esm2020/core/services/runtime-settings.service.mjs +21 -7
  114. package/esm2020/core/types/flow-customization.types.mjs +3 -0
  115. package/esm2020/core/types/flow-state.types.mjs +2 -0
  116. package/esm2020/core/types/formatting-settings.types.mjs +1 -1
  117. package/esm2020/core/types/index.mjs +4 -1
  118. package/esm2020/core/types/integration.types.mjs +2 -0
  119. package/esm2020/core/types/pipe.types.mjs +2 -0
  120. package/esm2020/core/utils/line-item.utils.mjs +29 -14
  121. package/esm2020/src/components/dialog/dialog.component.mjs +3 -3
  122. package/esm2020/src/components/dialog/dialog.module.mjs +4 -4
  123. package/esm2020/src/components/doc-gen/doc-gen.component.mjs +45 -54
  124. package/esm2020/src/components/doc-gen/doc-gen.module.mjs +4 -4
  125. package/esm2020/src/components/flow-header/flow-header.component.mjs +108 -0
  126. package/esm2020/src/components/flow-header/flow-header.module.mjs +19 -0
  127. package/esm2020/src/components/flow-header/index.mjs +2 -0
  128. package/esm2020/src/components/guided-selling/guided-selling.component.mjs +42 -51
  129. package/esm2020/src/components/guided-selling/guided-selling.module.mjs +4 -4
  130. package/esm2020/src/configure-primeng.mjs +33 -0
  131. package/esm2020/src/flow-routing.module.mjs +66 -75
  132. package/esm2020/src/flow.component.mjs +24 -33
  133. package/esm2020/src/flow.module.mjs +11 -9
  134. package/esm2020/src/guards/context.guard.mjs +7 -13
  135. package/esm2020/src/guards/flow.guard.mjs +31 -0
  136. package/esm2020/src/guards/product-unload.guard.mjs +7 -4
  137. package/esm2020/src/guards/root.guard.mjs +17 -13
  138. package/esm2020/src/pages/assets/assets.component.mjs +34 -38
  139. package/esm2020/src/pages/assets/assets.module.mjs +4 -4
  140. package/esm2020/src/pages/catalog/catalog.component.mjs +34 -38
  141. package/esm2020/src/pages/catalog/catalog.module.mjs +4 -4
  142. package/esm2020/src/pages/debug/debug.component.mjs +12 -16
  143. package/esm2020/src/pages/debug/debug.module.mjs +4 -4
  144. package/esm2020/src/pages/empty-account/empty-account.component.mjs +3 -3
  145. package/esm2020/src/pages/empty-account/empty-account.module.mjs +4 -4
  146. package/esm2020/src/pages/product/product.component.mjs +24 -14
  147. package/esm2020/src/pages/product/product.module.mjs +4 -4
  148. package/esm2020/src/pages/record-not-found/record-not-found.component.mjs +3 -3
  149. package/esm2020/src/pages/record-not-found/record-not-found.module.mjs +4 -4
  150. package/esm2020/src/pages/remote/remote.component.mjs +13 -14
  151. package/esm2020/src/pages/remote/remote.module.mjs +4 -4
  152. package/esm2020/src/pages/shopping-cart/shopping-cart.component.mjs +35 -39
  153. package/esm2020/src/pages/shopping-cart/shopping-cart.module.mjs +4 -4
  154. package/esm2020/src/resolvers/flow.resolver.mjs +37 -51
  155. package/esm2020/src/resolvers/quote.resolver.mjs +40 -65
  156. package/esm2020/src/services/doc-gen.service.mjs +7 -6
  157. package/esm2020/src/services/flow-dialog.service.mjs +22 -7
  158. package/esm2020/src/services/flow-router.service.mjs +56 -18
  159. package/esm2020/src/services/flow.service.mjs +72 -25
  160. package/esm2020/src/services/guided-selling.service.mjs +8 -7
  161. package/esm2020/src/services/index.mjs +3 -1
  162. package/esm2020/src/types/index.mjs +1 -2
  163. package/esm2020/src/utils/flow.utils.mjs +6 -2
  164. package/fesm2015/veloceapps-sdk-cms.mjs +318 -245
  165. package/fesm2015/veloceapps-sdk-cms.mjs.map +1 -1
  166. package/fesm2015/veloceapps-sdk-core.mjs +1638 -711
  167. package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
  168. package/fesm2015/veloceapps-sdk.mjs +825 -1575
  169. package/fesm2015/veloceapps-sdk.mjs.map +1 -1
  170. package/fesm2020/veloceapps-sdk-cms.mjs +332 -267
  171. package/fesm2020/veloceapps-sdk-cms.mjs.map +1 -1
  172. package/fesm2020/veloceapps-sdk-core.mjs +1666 -769
  173. package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
  174. package/fesm2020/veloceapps-sdk.mjs +933 -1682
  175. package/fesm2020/veloceapps-sdk.mjs.map +1 -1
  176. package/package.json +7 -13
  177. package/src/components/doc-gen/doc-gen.component.d.ts +8 -12
  178. package/src/components/flow-header/flow-header.component.d.ts +25 -0
  179. package/src/components/flow-header/flow-header.module.d.ts +9 -0
  180. package/src/components/flow-header/index.d.ts +1 -0
  181. package/src/components/guided-selling/guided-selling.component.d.ts +7 -11
  182. package/src/configure-primeng.d.ts +1 -0
  183. package/src/flow-routing.module.d.ts +6 -7
  184. package/src/flow.component.d.ts +7 -11
  185. package/src/flow.module.d.ts +2 -2
  186. package/src/guards/context.guard.d.ts +4 -5
  187. package/src/guards/flow.guard.d.ts +2 -0
  188. package/src/guards/product-unload.guard.d.ts +2 -2
  189. package/src/guards/root.guard.d.ts +0 -1
  190. package/src/pages/assets/assets.component.d.ts +5 -7
  191. package/src/pages/catalog/catalog.component.d.ts +5 -7
  192. package/src/pages/debug/debug.component.d.ts +5 -8
  193. package/src/pages/product/product.component.d.ts +7 -6
  194. package/src/pages/remote/remote.component.d.ts +2 -3
  195. package/src/pages/shopping-cart/shopping-cart.component.d.ts +5 -7
  196. package/src/resolvers/flow.resolver.d.ts +6 -7
  197. package/src/resolvers/quote.resolver.d.ts +6 -12
  198. package/src/services/doc-gen.service.d.ts +1 -1
  199. package/src/services/flow-dialog.service.d.ts +5 -2
  200. package/src/services/flow-router.service.d.ts +7 -3
  201. package/src/services/flow.service.d.ts +10 -4
  202. package/src/services/guided-selling.service.d.ts +1 -1
  203. package/src/services/index.d.ts +2 -0
  204. package/src/types/index.d.ts +0 -1
  205. package/core/modules/configuration/services/configuration.state.d.ts +0 -30
  206. package/esm2020/cms/services/integration.state.mjs +0 -37
  207. package/esm2020/cms/types/integration.types.mjs +0 -2
  208. package/esm2020/core/modules/configuration/services/configuration.state.mjs +0 -142
  209. package/esm2020/runtime/components/component-preview/component-preview.component.mjs +0 -125
  210. package/esm2020/runtime/components/index.mjs +0 -5
  211. package/esm2020/runtime/components/section-renderer/section-renderer.component.mjs +0 -67
  212. package/esm2020/runtime/components/ui-runtime/runtime.component.mjs +0 -440
  213. package/esm2020/runtime/components/ui-runtime-preview/runtime-preview.component.mjs +0 -108
  214. package/esm2020/runtime/execution/components/children-placeholder/children-placeholder.component.mjs +0 -60
  215. package/esm2020/runtime/execution/components/context-provider/context-provider.component.mjs +0 -39
  216. package/esm2020/runtime/execution/components/execution-section-renderer/execution-section-renderer.component.mjs +0 -67
  217. package/esm2020/runtime/execution/components/federated/federated.component.mjs +0 -74
  218. package/esm2020/runtime/execution/components/velo-attribute/velo-attribute.component.mjs +0 -60
  219. package/esm2020/runtime/execution/components/velo-multiselect/velo-multiselect.component.mjs +0 -130
  220. package/esm2020/runtime/execution/components/velo-port-checkbox/velo-port-checkbox.component.mjs +0 -72
  221. package/esm2020/runtime/execution/components/velo-port-dropdown/velo-port-dropdown.component.mjs +0 -97
  222. package/esm2020/runtime/execution/components/velo-port-radio/velo-port-radio.component.mjs +0 -142
  223. package/esm2020/runtime/execution/components/velo-type/velo-type.component.mjs +0 -119
  224. package/esm2020/runtime/execution/directives/section-script.directive.mjs +0 -247
  225. package/esm2020/runtime/execution/directives/sf-query.directive.mjs +0 -35
  226. package/esm2020/runtime/execution/directives/velo-attribute.directive.mjs +0 -88
  227. package/esm2020/runtime/execution/directives/velo-port.directive.mjs +0 -376
  228. package/esm2020/runtime/execution/directives/vl-approval.directive.mjs +0 -23
  229. package/esm2020/runtime/execution/directives/vl-document-attachments.directive.mjs +0 -36
  230. package/esm2020/runtime/execution/directives/vl-document-templates.directive.mjs +0 -60
  231. package/esm2020/runtime/execution/directives/vl-quote.directive.mjs +0 -42
  232. package/esm2020/runtime/execution/directives/vl-ramp.directive.mjs +0 -55
  233. package/esm2020/runtime/execution/runtime-execution.module.mjs +0 -133
  234. package/esm2020/runtime/execution/utils/federated.util.mjs +0 -32
  235. package/esm2020/runtime/index.mjs +0 -5
  236. package/esm2020/runtime/runtime.module.mjs +0 -74
  237. package/esm2020/runtime/services/cart.service.mjs +0 -29
  238. package/esm2020/runtime/services/collapsible-state.service.mjs +0 -34
  239. package/esm2020/runtime/services/configuration.service.mjs +0 -119
  240. package/esm2020/runtime/services/current-state.service.mjs +0 -17
  241. package/esm2020/runtime/services/form-scope.service.mjs +0 -30
  242. package/esm2020/runtime/services/index.mjs +0 -4
  243. package/esm2020/runtime/services/product-model-cache.service.mjs +0 -31
  244. package/esm2020/runtime/services/runtime-context.service.mjs +0 -60
  245. package/esm2020/runtime/services/runtime-form.service.mjs +0 -219
  246. package/esm2020/runtime/services/runtime.service.mjs +0 -115
  247. package/esm2020/runtime/services/section-helper.service.mjs +0 -27
  248. package/esm2020/runtime/services/section-scope.service.mjs +0 -36
  249. package/esm2020/runtime/services/section-store.service.mjs +0 -22
  250. package/esm2020/runtime/services/section.service.mjs +0 -117
  251. package/esm2020/runtime/types/bound-data.types.mjs +0 -7
  252. package/esm2020/runtime/types/index.mjs +0 -3
  253. package/esm2020/runtime/types/quote-states.types.mjs +0 -2
  254. package/esm2020/runtime/types/runtime.types.mjs +0 -2
  255. package/esm2020/runtime/types/script-registry.types.mjs +0 -51
  256. package/esm2020/runtime/utils/line-item.util.mjs +0 -270
  257. package/esm2020/runtime/utils/section.utils.mjs +0 -26
  258. package/esm2020/runtime/utils/sections-binder.helper.mjs +0 -105
  259. package/esm2020/runtime/veloceapps-sdk-runtime.mjs +0 -5
  260. package/esm2020/src/components/header/cart-overlay/cart-preview.component.mjs +0 -119
  261. package/esm2020/src/components/header/cart-overlay/cart-preview.module.mjs +0 -47
  262. package/esm2020/src/components/header/header.component.mjs +0 -355
  263. package/esm2020/src/components/header/header.module.mjs +0 -52
  264. package/esm2020/src/components/header/header.types.mjs +0 -2
  265. package/esm2020/src/components/header/metrics/index.mjs +0 -2
  266. package/esm2020/src/components/header/metrics/metrics.component.mjs +0 -255
  267. package/esm2020/src/components/header/metrics/metrics.definitions.mjs +0 -2
  268. package/esm2020/src/components/header/metrics/metrics.module.mjs +0 -69
  269. package/esm2020/src/pages/legacy-product/legacy-product.component.mjs +0 -137
  270. package/esm2020/src/pages/legacy-product/legacy-product.module.mjs +0 -19
  271. package/esm2020/src/types/flow-customization.types.mjs +0 -3
  272. package/fesm2015/veloceapps-sdk-runtime.mjs +0 -3770
  273. package/fesm2015/veloceapps-sdk-runtime.mjs.map +0 -1
  274. package/fesm2020/veloceapps-sdk-runtime.mjs +0 -3767
  275. package/fesm2020/veloceapps-sdk-runtime.mjs.map +0 -1
  276. package/runtime/README.md +0 -5
  277. package/runtime/components/component-preview/component-preview.component.d.ts +0 -27
  278. package/runtime/components/index.d.ts +0 -4
  279. package/runtime/components/section-renderer/section-renderer.component.d.ts +0 -25
  280. package/runtime/components/ui-runtime/runtime.component.d.ts +0 -53
  281. package/runtime/components/ui-runtime-preview/runtime-preview.component.d.ts +0 -27
  282. package/runtime/execution/components/children-placeholder/children-placeholder.component.d.ts +0 -30
  283. package/runtime/execution/components/context-provider/context-provider.component.d.ts +0 -14
  284. package/runtime/execution/components/execution-section-renderer/execution-section-renderer.component.d.ts +0 -25
  285. package/runtime/execution/components/federated/federated.component.d.ts +0 -36
  286. package/runtime/execution/components/velo-attribute/velo-attribute.component.d.ts +0 -19
  287. package/runtime/execution/components/velo-multiselect/velo-multiselect.component.d.ts +0 -35
  288. package/runtime/execution/components/velo-port-checkbox/velo-port-checkbox.component.d.ts +0 -22
  289. package/runtime/execution/components/velo-port-dropdown/velo-port-dropdown.component.d.ts +0 -22
  290. package/runtime/execution/components/velo-port-radio/velo-port-radio.component.d.ts +0 -28
  291. package/runtime/execution/components/velo-type/velo-type.component.d.ts +0 -31
  292. package/runtime/execution/directives/section-script.directive.d.ts +0 -59
  293. package/runtime/execution/directives/sf-query.directive.d.ts +0 -15
  294. package/runtime/execution/directives/velo-attribute.directive.d.ts +0 -26
  295. package/runtime/execution/directives/velo-port.directive.d.ts +0 -74
  296. package/runtime/execution/directives/vl-approval.directive.d.ts +0 -10
  297. package/runtime/execution/directives/vl-document-attachments.directive.d.ts +0 -15
  298. package/runtime/execution/directives/vl-document-templates.directive.d.ts +0 -33
  299. package/runtime/execution/directives/vl-quote.directive.d.ts +0 -14
  300. package/runtime/execution/directives/vl-ramp.directive.d.ts +0 -15
  301. package/runtime/execution/runtime-execution.module.d.ts +0 -25
  302. package/runtime/execution/utils/federated.util.d.ts +0 -6
  303. package/runtime/index.d.ts +0 -4
  304. package/runtime/runtime.module.d.ts +0 -16
  305. package/runtime/services/cart.service.d.ts +0 -15
  306. package/runtime/services/collapsible-state.service.d.ts +0 -15
  307. package/runtime/services/configuration.service.d.ts +0 -20
  308. package/runtime/services/current-state.service.d.ts +0 -8
  309. package/runtime/services/form-scope.service.d.ts +0 -20
  310. package/runtime/services/index.d.ts +0 -3
  311. package/runtime/services/product-model-cache.service.d.ts +0 -14
  312. package/runtime/services/runtime-context.service.d.ts +0 -16
  313. package/runtime/services/runtime-form.service.d.ts +0 -24
  314. package/runtime/services/runtime.service.d.ts +0 -44
  315. package/runtime/services/section-helper.service.d.ts +0 -8
  316. package/runtime/services/section-scope.service.d.ts +0 -14
  317. package/runtime/services/section-store.service.d.ts +0 -11
  318. package/runtime/services/section.service.d.ts +0 -30
  319. package/runtime/types/bound-data.types.d.ts +0 -13
  320. package/runtime/types/index.d.ts +0 -2
  321. package/runtime/types/quote-states.types.d.ts +0 -6
  322. package/runtime/types/runtime.types.d.ts +0 -19
  323. package/runtime/types/script-registry.types.d.ts +0 -13
  324. package/runtime/utils/line-item.util.d.ts +0 -34
  325. package/runtime/utils/section.utils.d.ts +0 -2
  326. package/runtime/utils/sections-binder.helper.d.ts +0 -16
  327. package/src/components/header/cart-overlay/cart-preview.component.d.ts +0 -36
  328. package/src/components/header/cart-overlay/cart-preview.module.d.ts +0 -14
  329. package/src/components/header/header.component.d.ts +0 -70
  330. package/src/components/header/header.module.d.ts +0 -16
  331. package/src/components/header/header.types.d.ts +0 -20
  332. package/src/components/header/metrics/index.d.ts +0 -1
  333. package/src/components/header/metrics/metrics.component.d.ts +0 -67
  334. package/src/components/header/metrics/metrics.definitions.d.ts +0 -1
  335. package/src/components/header/metrics/metrics.module.d.ts +0 -18
  336. package/src/pages/legacy-product/legacy-product.component.d.ts +0 -37
  337. package/src/pages/legacy-product/legacy-product.module.d.ts +0 -9
  338. package/src/types/flow-customization.types.d.ts +0 -12
  339. /package/{cms → core}/services/integration.state.d.ts +0 -0
@@ -1,67 +0,0 @@
1
- import { Component, Injector, Input, NgModuleRef, ViewChild, ViewContainerRef, } from '@angular/core';
2
- import { FormGroup } from '@angular/forms';
3
- import { Section } from '@veloceapps/core';
4
- import { SectionScopeService } from '../../services/section-scope.service';
5
- import { SectionStoreService } from '../../services/section-store.service';
6
- import * as i0 from "@angular/core";
7
- import * as i1 from "../../services/section-scope.service";
8
- import * as i2 from "../../services/section-store.service";
9
- export class SectionRendererComponent {
10
- set section(value) {
11
- this._section = value;
12
- this.sectionScope.section = value;
13
- }
14
- get section() {
15
- return this._section;
16
- }
17
- constructor(_injector, _m, sectionScope, sectionStore) {
18
- this._injector = _injector;
19
- this._m = _m;
20
- this.sectionScope = sectionScope;
21
- this.sectionStore = sectionStore;
22
- this.componentRef = null;
23
- }
24
- ngOnInit() {
25
- this.renderSection();
26
- }
27
- ngAfterViewInit() {
28
- if (this.componentRef) {
29
- this.sectionScope.templates.next(this.componentRef.instance['templates']?.toArray() ?? []);
30
- }
31
- }
32
- ngOnDestroy() {
33
- if (this.componentRef) {
34
- this.componentRef.destroy();
35
- this.componentRef = null;
36
- }
37
- }
38
- renderSection() {
39
- if (this.componentRef) {
40
- this.componentRef.destroy();
41
- this.componentRef = null;
42
- }
43
- const componentFactory = this.sectionStore.getComponentFactory(this._section);
44
- if (!componentFactory) {
45
- return;
46
- }
47
- this.componentRef = componentFactory.create(this._injector, [], null, this._m);
48
- this.componentRef.location.nativeElement.setAttribute('sectionId', `${this._section.model?.id}${this._section.label}`);
49
- this.componentRef.instance['form'] = this.form;
50
- this.componentRef.instance['section'] = this.section;
51
- this.container.insert(this.componentRef.hostView);
52
- }
53
- }
54
- SectionRendererComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: SectionRendererComponent, deps: [{ token: i0.Injector }, { token: i0.NgModuleRef }, { token: i1.SectionScopeService }, { token: i2.SectionStoreService }], target: i0.ɵɵFactoryTarget.Component });
55
- SectionRendererComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: SectionRendererComponent, selector: "vl-section-renderer", inputs: { section: "section", form: "form" }, providers: [SectionScopeService], viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: "<ng-template #container></ng-template>", styles: [":host{display:contents}\n"] });
56
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: SectionRendererComponent, decorators: [{
57
- type: Component,
58
- args: [{ selector: 'vl-section-renderer', providers: [SectionScopeService], template: "<ng-template #container></ng-template>", styles: [":host{display:contents}\n"] }]
59
- }], ctorParameters: function () { return [{ type: i0.Injector }, { type: i0.NgModuleRef }, { type: i1.SectionScopeService }, { type: i2.SectionStoreService }]; }, propDecorators: { section: [{
60
- type: Input
61
- }], form: [{
62
- type: Input
63
- }], container: [{
64
- type: ViewChild,
65
- args: ['container', { read: ViewContainerRef, static: true }]
66
- }] } });
67
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VjdGlvbi1yZW5kZXJlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3Nkay9ydW50aW1lL2NvbXBvbmVudHMvc2VjdGlvbi1yZW5kZXJlci9zZWN0aW9uLXJlbmRlcmVyLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc2RrL3J1bnRpbWUvY29tcG9uZW50cy9zZWN0aW9uLXJlbmRlcmVyL3NlY3Rpb24tcmVuZGVyZXIuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUVMLFNBQVMsRUFFVCxRQUFRLEVBQ1IsS0FBSyxFQUNMLFdBQVcsRUFHWCxTQUFTLEVBQ1QsZ0JBQWdCLEdBQ2pCLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUMzQyxPQUFPLEVBQUUsT0FBTyxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFDM0MsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sc0NBQXNDLENBQUM7QUFDM0UsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sc0NBQXNDLENBQUM7Ozs7QUFRM0UsTUFBTSxPQUFPLHdCQUF3QjtJQUduQyxJQUNXLE9BQU8sQ0FBQyxLQUFjO1FBQy9CLElBQUksQ0FBQyxRQUFRLEdBQUcsS0FBSyxDQUFDO1FBQ3RCLElBQUksQ0FBQyxZQUFZLENBQUMsT0FBTyxHQUFHLEtBQUssQ0FBQztJQUNwQyxDQUFDO0lBRUQsSUFBVyxPQUFPO1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