@veloceapps/sdk 8.0.0-1 → 8.0.0-100
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.
- package/README.md +0 -1
- package/cms/README.md +0 -20
- package/cms/cms.actions.d.ts +7 -1
- package/cms/components/element-tools-panel/element-tools-panel.component.d.ts +1 -1
- package/cms/components/preview/preview.component.d.ts +1 -2
- package/cms/index.d.ts +1 -0
- package/cms/modules/runtime/services/runtime.service.d.ts +1 -1
- package/cms/services/index.d.ts +0 -1
- package/cms/types/common.types.d.ts +3 -0
- package/cms/types/index.d.ts +0 -1
- package/cms/utils/element.utils.d.ts +4 -1
- package/cms/vendor-map.d.ts +21 -13
- package/core/README.md +20 -0
- package/core/modules/configuration/helpers.d.ts +2 -2
- package/core/modules/configuration/services/configuration-runtime.service.d.ts +1 -1
- package/core/modules/configuration/services/configuration.service.d.ts +6 -1
- package/core/modules/flow-configuration/types/update.types.d.ts +1 -1
- package/core/pipes/action-code.pipe.d.ts +8 -0
- package/core/pipes/date.pipe.d.ts +2 -1
- package/core/pipes/index.d.ts +1 -0
- package/core/pipes/pipes.module.d.ts +2 -1
- package/core/services/context.service.d.ts +2 -0
- package/core/services/flow-info.service.d.ts +24 -0
- package/core/services/flow-state.service.d.ts +50 -0
- package/core/services/index.d.ts +3 -0
- package/core/services/quote-draft.service.d.ts +8 -1
- package/core/services/runtime-settings.service.d.ts +4 -1
- package/core/types/formatting-settings.types.d.ts +2 -0
- package/core/types/index.d.ts +2 -0
- package/{cms → core}/types/integration.types.d.ts +1 -0
- package/core/types/pipe.types.d.ts +1 -0
- package/esm2020/cms/cms.actions.mjs +15 -1
- package/esm2020/cms/components/element-children/element-children.component.mjs +3 -3
- package/esm2020/cms/components/element-children/element-children.module.mjs +4 -4
- package/esm2020/cms/components/element-drop-handle/element-drop-handle.component.mjs +3 -3
- package/esm2020/cms/components/element-drop-handle/element-drop-handle.module.mjs +4 -4
- package/esm2020/cms/components/element-renderer/element-renderer.component.mjs +8 -5
- package/esm2020/cms/components/element-renderer/element-renderer.module.mjs +4 -4
- package/esm2020/cms/components/element-tools-panel/element-tools-panel.component.mjs +5 -5
- package/esm2020/cms/components/plugin.component.mjs +3 -3
- package/esm2020/cms/components/preview/preview.component.mjs +9 -11
- package/esm2020/cms/components/preview/preview.module.mjs +6 -6
- package/esm2020/cms/directives/custom-template.directive.mjs +7 -7
- package/esm2020/cms/index.mjs +2 -1
- package/esm2020/cms/launcher.module.mjs +7 -7
- package/esm2020/cms/modules/federated/federated-host.directive.mjs +3 -3
- package/esm2020/cms/modules/federated/federated.component.mjs +3 -3
- package/esm2020/cms/modules/federated/federated.module.mjs +4 -4
- package/esm2020/cms/modules/migrations/migrations.module.mjs +4 -4
- package/esm2020/cms/modules/migrations/services/migrations.service.mjs +3 -3
- package/esm2020/cms/modules/runtime/runtime.module.mjs +4 -4
- package/esm2020/cms/modules/runtime/services/compilation.service.mjs +8 -4
- package/esm2020/cms/modules/runtime/services/runtime-editor.service.mjs +3 -3
- package/esm2020/cms/modules/runtime/services/runtime.service.mjs +7 -7
- package/esm2020/cms/plugins/configuration.plugin.mjs +3 -3
- package/esm2020/cms/plugins/element-hover.plugin.mjs +3 -3
- package/esm2020/cms/plugins/io.plugin.mjs +14 -5
- package/esm2020/cms/plugins/page.plugin.mjs +5 -5
- package/esm2020/cms/plugins/region.plugin.mjs +3 -3
- package/esm2020/cms/plugins/script.plugin.mjs +3 -3
- package/esm2020/cms/services/element-context.service.mjs +3 -3
- package/esm2020/cms/services/index.mjs +1 -2
- package/esm2020/cms/services/io-provider.service.mjs +3 -3
- package/esm2020/cms/services/resources.service.mjs +3 -3
- package/esm2020/cms/services/templates.service.mjs +3 -3
- package/esm2020/cms/types/common.types.mjs +1 -1
- package/esm2020/cms/types/index.mjs +1 -2
- package/esm2020/cms/utils/element.utils.mjs +24 -2
- package/esm2020/cms/utils/elements-resolver.mjs +6 -3
- package/esm2020/cms/vendor-map.mjs +13 -5
- package/esm2020/core/core.module.mjs +10 -17
- package/esm2020/core/directives/directives.module.mjs +4 -4
- package/esm2020/core/directives/primeng-calendar.directive.mjs +3 -3
- package/esm2020/core/modules/configuration/configuration.module.mjs +4 -4
- package/esm2020/core/modules/configuration/helpers.mjs +8 -3
- package/esm2020/core/modules/configuration/services/configuration-runtime.service.mjs +11 -14
- package/esm2020/core/modules/configuration/services/configuration.service.mjs +29 -10
- package/esm2020/core/modules/configuration/services/configuration.state.mjs +5 -5
- package/esm2020/core/modules/configuration/services/runtime-context.service.mjs +9 -9
- package/esm2020/core/modules/flow-configuration/flow-configuration.module.mjs +4 -4
- package/esm2020/core/modules/flow-configuration/services/flow-configuration.service.mjs +3 -3
- package/esm2020/core/modules/flow-configuration/services/flow-update.service.mjs +13 -4
- package/esm2020/core/modules/flow-configuration/types/update.types.mjs +1 -1
- package/esm2020/core/pipes/action-code.pipe.mjs +20 -0
- package/esm2020/core/pipes/date.pipe.mjs +13 -7
- package/esm2020/core/pipes/index.mjs +2 -1
- package/esm2020/core/pipes/number.pipe.mjs +3 -3
- package/esm2020/core/pipes/pipes.module.mjs +8 -7
- package/esm2020/core/pipes/price.pipe.mjs +3 -3
- package/esm2020/core/services/context.service.mjs +20 -5
- package/esm2020/core/services/flow-info.service.mjs +72 -0
- package/esm2020/core/services/flow-state.service.mjs +320 -0
- package/esm2020/core/services/index.mjs +4 -1
- package/esm2020/core/services/integration.state.mjs +37 -0
- package/esm2020/core/services/metric-calculation/metric-calculation.service.mjs +3 -3
- package/esm2020/core/services/product-images.service.mjs +3 -3
- package/esm2020/core/services/quote-draft.service.mjs +31 -6
- package/esm2020/core/services/runtime-settings.service.mjs +20 -5
- package/esm2020/core/types/formatting-settings.types.mjs +1 -1
- package/esm2020/core/types/index.mjs +3 -1
- package/esm2020/core/types/integration.types.mjs +2 -0
- package/esm2020/core/types/pipe.types.mjs +2 -0
- package/esm2020/src/components/dialog/dialog.component.mjs +3 -3
- package/esm2020/src/components/dialog/dialog.module.mjs +4 -4
- package/esm2020/src/components/doc-gen/doc-gen.component.mjs +48 -46
- package/esm2020/src/components/doc-gen/doc-gen.module.mjs +4 -4
- package/esm2020/src/components/flow-header/flow-header.component.mjs +118 -0
- package/esm2020/src/components/flow-header/flow-header.module.mjs +19 -0
- package/esm2020/src/components/flow-header/index.mjs +2 -0
- package/esm2020/src/components/guided-selling/guided-selling.component.mjs +45 -44
- package/esm2020/src/components/guided-selling/guided-selling.module.mjs +4 -4
- package/esm2020/src/configure-primeng.mjs +33 -0
- package/esm2020/src/flow-routing.module.mjs +66 -75
- package/esm2020/src/flow.component.mjs +17 -29
- package/esm2020/src/flow.module.mjs +11 -9
- package/esm2020/src/guards/context.guard.mjs +7 -12
- package/esm2020/src/guards/flow.guard.mjs +31 -0
- package/esm2020/src/guards/product-unload.guard.mjs +7 -4
- package/esm2020/src/guards/root.guard.mjs +17 -13
- package/esm2020/src/pages/assets/assets.component.mjs +18 -13
- package/esm2020/src/pages/assets/assets.module.mjs +4 -4
- package/esm2020/src/pages/catalog/catalog.component.mjs +17 -13
- package/esm2020/src/pages/catalog/catalog.module.mjs +4 -4
- package/esm2020/src/pages/debug/debug.component.mjs +12 -16
- package/esm2020/src/pages/debug/debug.module.mjs +4 -4
- package/esm2020/src/pages/empty-account/empty-account.component.mjs +3 -3
- package/esm2020/src/pages/empty-account/empty-account.module.mjs +4 -4
- package/esm2020/src/pages/product/product.component.mjs +7 -9
- package/esm2020/src/pages/product/product.module.mjs +4 -4
- package/esm2020/src/pages/record-not-found/record-not-found.component.mjs +3 -3
- package/esm2020/src/pages/record-not-found/record-not-found.module.mjs +4 -4
- package/esm2020/src/pages/remote/remote.component.mjs +13 -14
- package/esm2020/src/pages/remote/remote.module.mjs +4 -4
- package/esm2020/src/pages/shopping-cart/shopping-cart.component.mjs +17 -13
- package/esm2020/src/pages/shopping-cart/shopping-cart.module.mjs +4 -4
- package/esm2020/src/resolvers/flow.resolver.mjs +37 -51
- package/esm2020/src/resolvers/quote.resolver.mjs +40 -65
- package/esm2020/src/services/doc-gen.service.mjs +7 -6
- package/esm2020/src/services/flow-dialog.service.mjs +8 -4
- package/esm2020/src/services/flow-router.service.mjs +31 -10
- package/esm2020/src/services/flow.service.mjs +36 -11
- package/esm2020/src/services/guided-selling.service.mjs +7 -6
- package/esm2020/src/services/index.mjs +3 -1
- package/esm2020/src/types/flow-customization.types.mjs +1 -1
- package/esm2020/src/utils/flow.utils.mjs +6 -2
- package/fesm2015/veloceapps-sdk-cms.mjs +247 -221
- package/fesm2015/veloceapps-sdk-cms.mjs.map +1 -1
- package/fesm2015/veloceapps-sdk-core.mjs +1373 -880
- package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
- package/fesm2015/veloceapps-sdk.mjs +725 -1457
- package/fesm2015/veloceapps-sdk.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk-cms.mjs +269 -241
- package/fesm2020/veloceapps-sdk-cms.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk-core.mjs +1666 -1168
- package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk.mjs +794 -1525
- package/fesm2020/veloceapps-sdk.mjs.map +1 -1
- package/package.json +3 -11
- package/src/components/doc-gen/doc-gen.component.d.ts +6 -8
- package/src/components/flow-header/flow-header.component.d.ts +27 -0
- package/src/components/flow-header/flow-header.module.d.ts +9 -0
- package/src/components/flow-header/index.d.ts +1 -0
- package/src/components/guided-selling/guided-selling.component.d.ts +5 -7
- package/src/configure-primeng.d.ts +1 -0
- package/src/flow-routing.module.d.ts +6 -7
- package/src/flow.component.d.ts +4 -10
- package/src/flow.module.d.ts +2 -2
- package/src/guards/context.guard.d.ts +4 -5
- package/src/guards/flow.guard.d.ts +2 -0
- package/src/guards/product-unload.guard.d.ts +2 -2
- package/src/guards/root.guard.d.ts +0 -1
- package/src/pages/assets/assets.component.d.ts +3 -3
- package/src/pages/catalog/catalog.component.d.ts +3 -3
- package/src/pages/debug/debug.component.d.ts +5 -8
- package/src/pages/product/product.component.d.ts +2 -2
- package/src/pages/remote/remote.component.d.ts +1 -2
- package/src/pages/shopping-cart/shopping-cart.component.d.ts +3 -3
- package/src/resolvers/flow.resolver.d.ts +6 -7
- package/src/resolvers/quote.resolver.d.ts +6 -12
- package/src/services/doc-gen.service.d.ts +1 -1
- package/src/services/flow-dialog.service.d.ts +1 -0
- package/src/services/flow-router.service.d.ts +4 -2
- package/src/services/flow.service.d.ts +4 -2
- package/src/services/guided-selling.service.d.ts +1 -1
- package/src/services/index.d.ts +2 -0
- package/src/types/flow-customization.types.d.ts +1 -1
- package/esm2020/cms/services/integration.state.mjs +0 -37
- package/esm2020/cms/types/integration.types.mjs +0 -2
- package/esm2020/runtime/components/component-preview/component-preview.component.mjs +0 -125
- package/esm2020/runtime/components/index.mjs +0 -5
- package/esm2020/runtime/components/section-renderer/section-renderer.component.mjs +0 -67
- package/esm2020/runtime/components/ui-runtime/runtime.component.mjs +0 -440
- package/esm2020/runtime/components/ui-runtime-preview/runtime-preview.component.mjs +0 -108
- package/esm2020/runtime/execution/components/children-placeholder/children-placeholder.component.mjs +0 -60
- package/esm2020/runtime/execution/components/context-provider/context-provider.component.mjs +0 -39
- package/esm2020/runtime/execution/components/execution-section-renderer/execution-section-renderer.component.mjs +0 -67
- package/esm2020/runtime/execution/components/federated/federated.component.mjs +0 -74
- package/esm2020/runtime/execution/components/velo-attribute/velo-attribute.component.mjs +0 -60
- package/esm2020/runtime/execution/components/velo-multiselect/velo-multiselect.component.mjs +0 -130
- package/esm2020/runtime/execution/components/velo-port-checkbox/velo-port-checkbox.component.mjs +0 -72
- package/esm2020/runtime/execution/components/velo-port-dropdown/velo-port-dropdown.component.mjs +0 -97
- package/esm2020/runtime/execution/components/velo-port-radio/velo-port-radio.component.mjs +0 -142
- package/esm2020/runtime/execution/components/velo-type/velo-type.component.mjs +0 -119
- package/esm2020/runtime/execution/directives/section-script.directive.mjs +0 -247
- package/esm2020/runtime/execution/directives/sf-query.directive.mjs +0 -35
- package/esm2020/runtime/execution/directives/velo-attribute.directive.mjs +0 -88
- package/esm2020/runtime/execution/directives/velo-port.directive.mjs +0 -376
- package/esm2020/runtime/execution/directives/vl-approval.directive.mjs +0 -23
- package/esm2020/runtime/execution/directives/vl-document-attachments.directive.mjs +0 -36
- package/esm2020/runtime/execution/directives/vl-document-templates.directive.mjs +0 -60
- package/esm2020/runtime/execution/directives/vl-quote.directive.mjs +0 -42
- package/esm2020/runtime/execution/directives/vl-ramp.directive.mjs +0 -55
- package/esm2020/runtime/execution/runtime-execution.module.mjs +0 -133
- package/esm2020/runtime/execution/utils/federated.util.mjs +0 -32
- package/esm2020/runtime/index.mjs +0 -5
- package/esm2020/runtime/runtime.module.mjs +0 -74
- package/esm2020/runtime/services/cart.service.mjs +0 -29
- package/esm2020/runtime/services/collapsible-state.service.mjs +0 -34
- package/esm2020/runtime/services/configuration.service.mjs +0 -119
- package/esm2020/runtime/services/current-state.service.mjs +0 -17
- package/esm2020/runtime/services/form-scope.service.mjs +0 -30
- package/esm2020/runtime/services/index.mjs +0 -4
- package/esm2020/runtime/services/product-model-cache.service.mjs +0 -31
- package/esm2020/runtime/services/runtime-context.service.mjs +0 -60
- package/esm2020/runtime/services/runtime-form.service.mjs +0 -219
- package/esm2020/runtime/services/runtime.service.mjs +0 -115
- package/esm2020/runtime/services/section-helper.service.mjs +0 -27
- package/esm2020/runtime/services/section-scope.service.mjs +0 -36
- package/esm2020/runtime/services/section-store.service.mjs +0 -22
- package/esm2020/runtime/services/section.service.mjs +0 -117
- package/esm2020/runtime/types/bound-data.types.mjs +0 -7
- package/esm2020/runtime/types/index.mjs +0 -3
- package/esm2020/runtime/types/quote-states.types.mjs +0 -2
- package/esm2020/runtime/types/runtime.types.mjs +0 -2
- package/esm2020/runtime/types/script-registry.types.mjs +0 -51
- package/esm2020/runtime/utils/line-item.util.mjs +0 -270
- package/esm2020/runtime/utils/section.utils.mjs +0 -26
- package/esm2020/runtime/utils/sections-binder.helper.mjs +0 -105
- package/esm2020/runtime/veloceapps-sdk-runtime.mjs +0 -5
- package/esm2020/src/components/header/cart-overlay/cart-preview.component.mjs +0 -119
- package/esm2020/src/components/header/cart-overlay/cart-preview.module.mjs +0 -47
- package/esm2020/src/components/header/header.component.mjs +0 -355
- package/esm2020/src/components/header/header.module.mjs +0 -52
- package/esm2020/src/components/header/header.types.mjs +0 -2
- package/esm2020/src/components/header/metrics/index.mjs +0 -2
- package/esm2020/src/components/header/metrics/metrics.component.mjs +0 -255
- package/esm2020/src/components/header/metrics/metrics.definitions.mjs +0 -2
- package/esm2020/src/components/header/metrics/metrics.module.mjs +0 -69
- package/esm2020/src/pages/legacy-product/legacy-product.component.mjs +0 -137
- package/esm2020/src/pages/legacy-product/legacy-product.module.mjs +0 -19
- package/fesm2015/veloceapps-sdk-runtime.mjs +0 -3770
- package/fesm2015/veloceapps-sdk-runtime.mjs.map +0 -1
- package/fesm2020/veloceapps-sdk-runtime.mjs +0 -3767
- package/fesm2020/veloceapps-sdk-runtime.mjs.map +0 -1
- package/runtime/README.md +0 -5
- package/runtime/components/component-preview/component-preview.component.d.ts +0 -27
- package/runtime/components/index.d.ts +0 -4
- package/runtime/components/section-renderer/section-renderer.component.d.ts +0 -25
- package/runtime/components/ui-runtime/runtime.component.d.ts +0 -53
- package/runtime/components/ui-runtime-preview/runtime-preview.component.d.ts +0 -27
- package/runtime/execution/components/children-placeholder/children-placeholder.component.d.ts +0 -30
- package/runtime/execution/components/context-provider/context-provider.component.d.ts +0 -14
- package/runtime/execution/components/execution-section-renderer/execution-section-renderer.component.d.ts +0 -25
- package/runtime/execution/components/federated/federated.component.d.ts +0 -36
- package/runtime/execution/components/velo-attribute/velo-attribute.component.d.ts +0 -19
- package/runtime/execution/components/velo-multiselect/velo-multiselect.component.d.ts +0 -35
- package/runtime/execution/components/velo-port-checkbox/velo-port-checkbox.component.d.ts +0 -22
- package/runtime/execution/components/velo-port-dropdown/velo-port-dropdown.component.d.ts +0 -22
- package/runtime/execution/components/velo-port-radio/velo-port-radio.component.d.ts +0 -28
- package/runtime/execution/components/velo-type/velo-type.component.d.ts +0 -31
- package/runtime/execution/directives/section-script.directive.d.ts +0 -59
- package/runtime/execution/directives/sf-query.directive.d.ts +0 -15
- package/runtime/execution/directives/velo-attribute.directive.d.ts +0 -26
- package/runtime/execution/directives/velo-port.directive.d.ts +0 -74
- package/runtime/execution/directives/vl-approval.directive.d.ts +0 -10
- package/runtime/execution/directives/vl-document-attachments.directive.d.ts +0 -15
- package/runtime/execution/directives/vl-document-templates.directive.d.ts +0 -33
- package/runtime/execution/directives/vl-quote.directive.d.ts +0 -14
- package/runtime/execution/directives/vl-ramp.directive.d.ts +0 -15
- package/runtime/execution/runtime-execution.module.d.ts +0 -25
- package/runtime/execution/utils/federated.util.d.ts +0 -6
- package/runtime/index.d.ts +0 -4
- package/runtime/runtime.module.d.ts +0 -16
- package/runtime/services/cart.service.d.ts +0 -15
- package/runtime/services/collapsible-state.service.d.ts +0 -15
- package/runtime/services/configuration.service.d.ts +0 -20
- package/runtime/services/current-state.service.d.ts +0 -8
- package/runtime/services/form-scope.service.d.ts +0 -20
- package/runtime/services/index.d.ts +0 -3
- package/runtime/services/product-model-cache.service.d.ts +0 -14
- package/runtime/services/runtime-context.service.d.ts +0 -16
- package/runtime/services/runtime-form.service.d.ts +0 -24
- package/runtime/services/runtime.service.d.ts +0 -44
- package/runtime/services/section-helper.service.d.ts +0 -8
- package/runtime/services/section-scope.service.d.ts +0 -14
- package/runtime/services/section-store.service.d.ts +0 -11
- package/runtime/services/section.service.d.ts +0 -30
- package/runtime/types/bound-data.types.d.ts +0 -13
- package/runtime/types/index.d.ts +0 -2
- package/runtime/types/quote-states.types.d.ts +0 -6
- package/runtime/types/runtime.types.d.ts +0 -19
- package/runtime/types/script-registry.types.d.ts +0 -13
- package/runtime/utils/line-item.util.d.ts +0 -34
- package/runtime/utils/section.utils.d.ts +0 -2
- package/runtime/utils/sections-binder.helper.d.ts +0 -16
- package/src/components/header/cart-overlay/cart-preview.component.d.ts +0 -36
- package/src/components/header/cart-overlay/cart-preview.module.d.ts +0 -14
- package/src/components/header/header.component.d.ts +0 -70
- package/src/components/header/header.module.d.ts +0 -16
- package/src/components/header/header.types.d.ts +0 -20
- package/src/components/header/metrics/index.d.ts +0 -1
- package/src/components/header/metrics/metrics.component.d.ts +0 -67
- package/src/components/header/metrics/metrics.definitions.d.ts +0 -1
- package/src/components/header/metrics/metrics.module.d.ts +0 -18
- package/src/pages/legacy-product/legacy-product.component.d.ts +0 -37
- package/src/pages/legacy-product/legacy-product.module.d.ts +0 -9
- /package/{cms → core}/services/integration.state.d.ts +0 -0
package/README.md
CHANGED
package/cms/README.md
CHANGED
|
@@ -2,26 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
[← Back to SDK](../)
|
|
4
4
|
|
|
5
|
-
## IntegrationState
|
|
6
|
-
|
|
7
|
-
An application state, which helps to cover cross-component communication. Contains reactive store and event system.
|
|
8
|
-
|
|
9
|
-
`get state$(): Observable<S>`
|
|
10
|
-
|
|
11
|
-
`get state(): S`
|
|
12
|
-
|
|
13
|
-
`patchState(update: Partial<S>): void`
|
|
14
|
-
|
|
15
|
-
`dispatch(action: IntegrationAction): void`
|
|
16
|
-
|
|
17
|
-
`listen$<P = any>(actionType: string): Observable<P>`
|
|
18
|
-
|
|
19
|
-
`listenAll$<T extends IntegrationAction>(): Observable<T>`
|
|
20
|
-
|
|
21
|
-
`clear(): void`
|
|
22
|
-
|
|
23
|
-
**Important!** Don't overuse it, otherwise application can become messy and hardly supportable.
|
|
24
|
-
|
|
25
5
|
## ResourcesService
|
|
26
6
|
|
|
27
7
|
A service provides an ability to load scripts and styles from external resources.
|
package/cms/cms.actions.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { IntegrationAction } from '
|
|
1
|
+
import { IntegrationAction } from '@veloceapps/sdk/core';
|
|
2
2
|
export declare namespace FlowAction {
|
|
3
3
|
const FLOW_CONFIGURE_PRODUCT = "[FLOW]_CONFIGURE_PRODUCT";
|
|
4
4
|
const FLOW_NAVIGATE_BACK = "[FLOW]_NAVIGATE_BACK";
|
|
5
|
+
const FLOW_NAVIGATE_TO = "[FLOW]_NAVIGATE_TO";
|
|
5
6
|
const FLOW_NAVIGATE_TO_CATALOG = "[FLOW]_NAVIGATE_TO_CATALOG";
|
|
7
|
+
const FLOW_NAVIGATE_TO_SHOPPING_CART = "[FLOW]_NAVIGATE_TO_SHOPPING_CART";
|
|
6
8
|
const FLOW_APPLY_PRODUCT_CONFIGURATION = "[FLOW]_APPLY_PRODUCT_CONFIGURATION";
|
|
7
9
|
const FLOW_OPEN_DOC_GEN = "[FLOW]_OPEN_DOC_GEN";
|
|
8
10
|
const FLOW_CLOSE_DOC_GEN = "[FLOW]_CLOSE_DOC_GEN";
|
|
@@ -12,12 +14,15 @@ export declare namespace FlowAction {
|
|
|
12
14
|
const OPEN_GUIDED_SELLING = "[FLOW]_OPEN_GUIDED_SELLING";
|
|
13
15
|
const SUBMIT_GUIDED_SELLING = "[FLOW]_SUBMIT_GUIDED_SELLING";
|
|
14
16
|
const CLOSE_GUIDED_SELLING = "[FLOW]_CLOSE_GUIDED_SELLING";
|
|
17
|
+
const OPEN_DIALOG = "[FLOW]_OPEN_DIALOG";
|
|
15
18
|
const ConfigureProductAction: ({ lineItemId, productId, }: {
|
|
16
19
|
lineItemId?: string | undefined;
|
|
17
20
|
productId?: string | undefined;
|
|
18
21
|
}) => IntegrationAction;
|
|
19
22
|
const NavigateBackAction: () => IntegrationAction;
|
|
23
|
+
const NavigateToAction: (path: string, productId?: string, lineItemId?: string) => IntegrationAction;
|
|
20
24
|
const NavigateToCatalogAction: () => IntegrationAction;
|
|
25
|
+
const NavigateToShoppingCartAction: () => IntegrationAction;
|
|
21
26
|
const ApplyProductConfigurationAction: () => IntegrationAction;
|
|
22
27
|
const OpenDocGenAction: () => IntegrationAction;
|
|
23
28
|
const CloseDocGenAction: () => IntegrationAction;
|
|
@@ -35,6 +40,7 @@ export declare namespace FlowAction {
|
|
|
35
40
|
const SubmitGuidedSelling: (payload: {
|
|
36
41
|
result: Record<string, any>;
|
|
37
42
|
}) => IntegrationAction;
|
|
43
|
+
const OpenDialog: (dialog: string) => IntegrationAction;
|
|
38
44
|
}
|
|
39
45
|
/**
|
|
40
46
|
* @deprecated
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RuntimeEditorService } from '../../modules/runtime';
|
|
1
|
+
import { RuntimeEditorService } from '../../modules/runtime/services/runtime-editor.service';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class ElementToolsPanelComponent {
|
|
4
4
|
private readonly metadata;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { ToastService } from '@veloceapps/components';
|
|
3
3
|
import { UIDefinition } from '@veloceapps/core';
|
|
4
|
-
import { ConfigurationState } from '@veloceapps/sdk/core';
|
|
4
|
+
import { ConfigurationState, IntegrationState } from '@veloceapps/sdk/core';
|
|
5
5
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
6
6
|
import { RuntimeService } from '../../modules/runtime/services/runtime.service';
|
|
7
|
-
import { IntegrationState } from '../../services';
|
|
8
7
|
import { ElementMetadata } from '../../types/common.types';
|
|
9
8
|
import { CMSPreviewConfig } from './preview.types';
|
|
10
9
|
import * as i0 from "@angular/core";
|
package/cms/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Injector, NgModule, NgModuleRef, Type } from '@angular/core';
|
|
2
2
|
import { UIDefinition } from '@veloceapps/core';
|
|
3
|
+
import { IntegrationState } from '@veloceapps/sdk/core';
|
|
3
4
|
import { Patch } from 'rfc6902';
|
|
4
5
|
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
5
6
|
import { CMSPreviewConfig } from '../../../components/preview/preview.types';
|
|
6
7
|
import { Entity } from '../../../engine/models/entity';
|
|
7
|
-
import { IntegrationState } from '../../../services/integration.state';
|
|
8
8
|
import { ElementMetadata } from '../../../types';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export declare class RuntimeService {
|
package/cms/services/index.d.ts
CHANGED
|
@@ -74,6 +74,7 @@ export interface ElementDefaultMetadata {
|
|
|
74
74
|
* - `../:products`
|
|
75
75
|
* - `../../DataService/:products`
|
|
76
76
|
*
|
|
77
|
+
* Input which name starts with '@' is being added to the element as Angular input (suppressing '@' symbol)
|
|
77
78
|
*/
|
|
78
79
|
inputs?: Dictionary<string | null>;
|
|
79
80
|
/**
|
|
@@ -88,6 +89,8 @@ export interface ElementDefaultMetadata {
|
|
|
88
89
|
*
|
|
89
90
|
* 2. `onProductSelect: '@Services/DataService/:handleProductSelect'`
|
|
90
91
|
* Same output but accessing dataservice by the Service module
|
|
92
|
+
*
|
|
93
|
+
* * Output which name starts with '@' is being added to the element as Angular output (suppressing '@' symbol)
|
|
91
94
|
*/
|
|
92
95
|
outputs?: Dictionary<string | null>;
|
|
93
96
|
model?: ElementModel;
|
package/cms/types/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ export * from '../modules/runtime/types/compilation.types';
|
|
|
2
2
|
export * from './common.types';
|
|
3
3
|
export * from './configuration.types';
|
|
4
4
|
export * from './elements.types';
|
|
5
|
-
export * from './integration.types';
|
|
6
5
|
export * from './layouts.types';
|
|
7
6
|
export * from './pages.types';
|
|
8
7
|
export * from './path.types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UIElement } from '@veloceapps/core';
|
|
2
|
-
import {
|
|
2
|
+
import { ElementConfig, ElementDefaultMetadata, ElementMetadata, ELEMENT_TYPE } from '../types';
|
|
3
3
|
export declare class UiBuildError extends Error {
|
|
4
4
|
affectedMetadata: ElementMetadata;
|
|
5
5
|
constructor(message: string, affectedMetadata: ElementMetadata);
|
|
@@ -15,3 +15,6 @@ export declare function stringifyElementMetadata(elementMetadata: ElementDefault
|
|
|
15
15
|
export declare const isValidScript: (script?: string) => boolean;
|
|
16
16
|
export declare function flattenElements(elements: ElementMetadata[]): ElementMetadata[];
|
|
17
17
|
export declare function isSharedElement(el: ElementMetadata): boolean;
|
|
18
|
+
export declare function isElementAngularIO(name: string): boolean;
|
|
19
|
+
export declare function toElementAngularIO(name: string): string | null;
|
|
20
|
+
export declare function getElementAngularIOs(names: string[]): string[];
|
package/cms/vendor-map.d.ts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import * as angularCore from '@angular/core';
|
|
2
2
|
import * as angularForms from '@angular/forms';
|
|
3
|
-
import { CatalogApiService, ConfigurationSettingsApiService, DeltaApiService, DocumentAttachmentApiService, DocumentTemplatesApiService, GuidedSellingApiService, PicklistsApiService, PriceApiService, QuoteApiService, RampApiService, SalesforceApiService, ShoppingCartSettingsApiService } from '@veloceapps/api';
|
|
3
|
+
import { CatalogApiService, ConfigurationSettingsApiService, ContractedPriceApiService, DeltaApiService, DocumentAttachmentApiService, DocumentTemplatesApiService, GuidedSellingApiService, PicklistsApiService, PriceApiService, QuoteApiService, RampApiService, SalesforceApiService, ShoppingCartSettingsApiService } from '@veloceapps/api';
|
|
4
4
|
import { ToastService, ToastType } from '@veloceapps/components';
|
|
5
|
-
import {
|
|
6
|
-
import { ConfigurationService, ConfigurationState, ContextService, FlowConfigurationService, LineItemWorker, ProductImagesService, QuoteDraftService, RuntimeSettingsService } from '@veloceapps/sdk/core';
|
|
5
|
+
import { ConfigurationContextMode, Operator, parseJsonSafely, Predicate } from '@veloceapps/core';
|
|
6
|
+
import { ActionCodePipe, ConfigurationService, ConfigurationState, ContextService, DatePipe, FlowConfigurationService, FlowStateService, IntegrationState, LineItemWorker, MetricsCalculationService, NumberPipe, PricePipe, ProductImagesService, QuoteDraftService, RuntimeSettingsService } from '@veloceapps/sdk/core';
|
|
7
7
|
import lodash from 'lodash';
|
|
8
8
|
import * as rxjs from 'rxjs';
|
|
9
9
|
import * as rxjsOperators from 'rxjs/operators';
|
|
10
10
|
import * as cmsActions from './cms.actions';
|
|
11
|
-
import { IntegrationState } from './services/integration.state';
|
|
12
11
|
import { ResourcesService } from './services/resources.service';
|
|
13
12
|
import { TemplatesService } from './services/templates.service';
|
|
14
13
|
export declare const vendorMap: {
|
|
@@ -22,6 +21,7 @@ export declare const vendorMap: {
|
|
|
22
21
|
Operator: typeof Operator;
|
|
23
22
|
Predicate: typeof Predicate;
|
|
24
23
|
parseJsonSafely: typeof parseJsonSafely;
|
|
24
|
+
ConfigurationContextMode: typeof ConfigurationContextMode;
|
|
25
25
|
};
|
|
26
26
|
'@veloceapps/components': {
|
|
27
27
|
ToastService: typeof ToastService;
|
|
@@ -40,6 +40,7 @@ export declare const vendorMap: {
|
|
|
40
40
|
ShoppingCartSettingsApiService: typeof ShoppingCartSettingsApiService;
|
|
41
41
|
ConfigurationSettingsApiService: typeof ConfigurationSettingsApiService;
|
|
42
42
|
GuidedSellingApiService: typeof GuidedSellingApiService;
|
|
43
|
+
ContractedPriceApiService: typeof ContractedPriceApiService;
|
|
43
44
|
};
|
|
44
45
|
'@veloceapps/sdk/core': {
|
|
45
46
|
findLineItem: (id: string, lineItems: import("@veloceapps/core").LineItem[]) => import("@veloceapps/core").LineItem | undefined;
|
|
@@ -71,10 +72,17 @@ export declare const vendorMap: {
|
|
|
71
72
|
ConfigurationState: typeof ConfigurationState;
|
|
72
73
|
QuoteDraftService: typeof QuoteDraftService;
|
|
73
74
|
FlowConfigurationService: typeof FlowConfigurationService;
|
|
75
|
+
IntegrationState: typeof IntegrationState;
|
|
76
|
+
FlowStateService: typeof FlowStateService;
|
|
74
77
|
LineItemWorker: typeof LineItemWorker;
|
|
75
78
|
ProductImagesService: typeof ProductImagesService;
|
|
76
79
|
ContextService: typeof ContextService;
|
|
77
80
|
RuntimeSettingsService: typeof RuntimeSettingsService;
|
|
81
|
+
MetricsCalculationService: typeof MetricsCalculationService;
|
|
82
|
+
ActionCodePipe: typeof ActionCodePipe;
|
|
83
|
+
DatePipe: typeof DatePipe;
|
|
84
|
+
NumberPipe: typeof NumberPipe;
|
|
85
|
+
PricePipe: typeof PricePipe;
|
|
78
86
|
};
|
|
79
87
|
'@veloceapps/sdk/cms': {
|
|
80
88
|
TemplatesService: typeof TemplatesService;
|
|
@@ -84,17 +92,17 @@ export declare const vendorMap: {
|
|
|
84
92
|
ConfigureProductAction: ({ lineItemId, productId, }: {
|
|
85
93
|
lineItemId?: string | undefined;
|
|
86
94
|
productId?: string | undefined;
|
|
87
|
-
}) => import("@veloceapps/sdk/
|
|
88
|
-
NavigateBackAction: () => import("@veloceapps/sdk/
|
|
89
|
-
NavigateToCatalogAction: () => import("@veloceapps/sdk/
|
|
90
|
-
ApplyProductConfigurationAction: () => import("@veloceapps/sdk/
|
|
91
|
-
OpenDocGenAction: () => import("@veloceapps/sdk/
|
|
92
|
-
CloseDocGenAction: () => import("@veloceapps/sdk/
|
|
93
|
-
RemoteApplyAction: () => import("@veloceapps/sdk/
|
|
94
|
-
RemoteCancelAction: () => import("@veloceapps/sdk/
|
|
95
|
+
}) => import("@veloceapps/sdk/core").IntegrationAction<any>;
|
|
96
|
+
NavigateBackAction: () => import("@veloceapps/sdk/core").IntegrationAction<any>;
|
|
97
|
+
NavigateToCatalogAction: () => import("@veloceapps/sdk/core").IntegrationAction<any>;
|
|
98
|
+
ApplyProductConfigurationAction: () => import("@veloceapps/sdk/core").IntegrationAction<any>;
|
|
99
|
+
OpenDocGenAction: () => import("@veloceapps/sdk/core").IntegrationAction<any>;
|
|
100
|
+
CloseDocGenAction: () => import("@veloceapps/sdk/core").IntegrationAction<any>;
|
|
101
|
+
RemoteApplyAction: () => import("@veloceapps/sdk/core").IntegrationAction<any>;
|
|
102
|
+
RemoteCancelAction: () => import("@veloceapps/sdk/core").IntegrationAction<any>;
|
|
95
103
|
SwitchObjectAction: (payload: {
|
|
96
104
|
id: string;
|
|
97
|
-
}) => import("@veloceapps/sdk/
|
|
105
|
+
}) => import("@veloceapps/sdk/core").IntegrationAction<any>;
|
|
98
106
|
CmsAction: typeof cmsActions.CmsAction;
|
|
99
107
|
DEFAULT_PLUGINS_TOKEN: angularCore.InjectionToken<typeof import("./engine/models/plugin").Plugin[]>;
|
|
100
108
|
UI_DEFINITION_METADATA: angularCore.InjectionToken<import("@veloceapps/core").UIDefinitionMetadata>;
|
package/core/README.md
CHANGED
|
@@ -3,3 +3,23 @@
|
|
|
3
3
|
[← Back to SDK](../)
|
|
4
4
|
|
|
5
5
|
The place where configuration logic lives: services, utils, workers etc
|
|
6
|
+
|
|
7
|
+
## IntegrationState
|
|
8
|
+
|
|
9
|
+
An application state, which helps to cover cross-component communication. Contains reactive store and event system.
|
|
10
|
+
|
|
11
|
+
`get state$(): Observable<S>`
|
|
12
|
+
|
|
13
|
+
`get state(): S`
|
|
14
|
+
|
|
15
|
+
`patchState(update: Partial<S>): void`
|
|
16
|
+
|
|
17
|
+
`dispatch(action: IntegrationAction): void`
|
|
18
|
+
|
|
19
|
+
`listen$<P = any>(actionType: string): Observable<P>`
|
|
20
|
+
|
|
21
|
+
`listenAll$<T extends IntegrationAction>(): Observable<T>`
|
|
22
|
+
|
|
23
|
+
`clear(): void`
|
|
24
|
+
|
|
25
|
+
**Important!** Don't overuse it, otherwise application can become messy and hardly supportable.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ConfigurationRequest, LineItem, UIDefinitionProps } from '@veloceapps/core';
|
|
1
|
+
import { ConfigurationContext, ConfigurationRequest, LineItem, UIDefinitionProps } from '@veloceapps/core';
|
|
2
2
|
import { RuntimeContext } from '../../types';
|
|
3
3
|
import { GuidedSellingSubmitData } from './types/configuration.types';
|
|
4
4
|
export declare const getDefaultLineItem: (context: RuntimeContext, uiDefinitionProperties: UIDefinitionProps, qty?: number) => LineItem;
|
|
5
|
-
export declare const getGuidedSellingConfigurationRequest: (data: GuidedSellingSubmitData) => ConfigurationRequest;
|
|
5
|
+
export declare const getGuidedSellingConfigurationRequest: (data: GuidedSellingSubmitData, context: ConfigurationContext) => ConfigurationRequest;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ConfigurationApiService } from '@veloceapps/api';
|
|
2
2
|
import { RuntimeModel, UIDefinitionContainer, UIDefinitionProps } from '@veloceapps/core';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
|
-
import { ContextService } from '../../../services
|
|
4
|
+
import { ContextService } from '../../../services';
|
|
5
5
|
import { RuntimeContext } from '../../../types';
|
|
6
6
|
import { RuntimeInitializationProps } from '../types/configuration-runtime.types';
|
|
7
7
|
import { RuntimeContextService } from './runtime-context.service';
|
|
@@ -6,6 +6,7 @@ import { DialogService } from 'primeng/dynamicdialog';
|
|
|
6
6
|
import { Observable } from 'rxjs';
|
|
7
7
|
import { ContextService } from '../../../services/context.service';
|
|
8
8
|
import { QuoteDraftService } from '../../../services/quote-draft.service';
|
|
9
|
+
import { RuntimeSettingsService } from '../../../services/runtime-settings.service';
|
|
9
10
|
import { RuntimeContext } from '../../../types';
|
|
10
11
|
import { ExternalConfigurationProps, GuidedSellingSubmitData } from '../types/configuration.types';
|
|
11
12
|
import { ConfigurationRuntimeService } from './configuration-runtime.service';
|
|
@@ -17,15 +18,17 @@ export declare class ConfigurationService {
|
|
|
17
18
|
private configurationApiService;
|
|
18
19
|
private messageService;
|
|
19
20
|
private dialogService;
|
|
21
|
+
private runtimeSettings;
|
|
20
22
|
private mode;
|
|
21
23
|
private configurableRamp;
|
|
22
24
|
private lineItem;
|
|
23
25
|
private charges;
|
|
24
26
|
private pricePlans;
|
|
27
|
+
private procedureContext;
|
|
25
28
|
private isLoadingSubj$;
|
|
26
29
|
isLoading$: Observable<boolean>;
|
|
27
30
|
hasUnsavedChanges: boolean;
|
|
28
|
-
constructor(quoteDraftService: QuoteDraftService, runtimeService: ConfigurationRuntimeService, contextService: ContextService, configurationApiService: ConfigurationApiService, messageService: MessageService, dialogService: DialogService);
|
|
31
|
+
constructor(quoteDraftService: QuoteDraftService, runtimeService: ConfigurationRuntimeService, contextService: ContextService, configurationApiService: ConfigurationApiService, messageService: MessageService, dialogService: DialogService, runtimeSettings: RuntimeSettingsService);
|
|
29
32
|
reset(): void;
|
|
30
33
|
patch$(lineItem: LineItem, options?: PatchLineItemOptions): Observable<LineItem>;
|
|
31
34
|
patch(lineItem: LineItem, options?: PatchLineItemOptions): void;
|
|
@@ -40,6 +43,8 @@ export declare class ConfigurationService {
|
|
|
40
43
|
get chargesSnapshot(): Dictionary<Charge>;
|
|
41
44
|
get pricePlans$(): Observable<Dictionary<CompiledPricePlan>>;
|
|
42
45
|
get pricePlansSnapshot(): Dictionary<CompiledPricePlan>;
|
|
46
|
+
get procedureContext$(): Observable<Dictionary<unknown>>;
|
|
47
|
+
get procedureContextSnapshot(): Dictionary<unknown>;
|
|
43
48
|
configure(): Observable<LineItem>;
|
|
44
49
|
configureRequest$(configurationRequest: ConfigurationRequest): Observable<LineItem>;
|
|
45
50
|
configureExternal$(props: ExternalConfigurationProps): Observable<LineItem>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type FlowUpdateDataType = 'LINEITEM' | 'CHARGE' | 'GROUP_CHARGE';
|
|
2
|
-
export type FlowUpdateAttributeType = 'QTY' | 'EFFECTIVE_START_DATE' | 'END_DATE' | 'PRICE_ADJUSTMENT' | 'LIST_PRICE_ADJUSTMENT';
|
|
2
|
+
export type FlowUpdateAttributeType = 'QTY' | 'EFFECTIVE_START_DATE' | 'END_DATE' | 'PRICE_ADJUSTMENT' | 'LIST_PRICE_ADJUSTMENT' | 'COST_ADJUSTMENT' | 'MARGIN_ADJUSTMENT';
|
|
3
3
|
export interface FlowUpdateParams {
|
|
4
4
|
id: string;
|
|
5
5
|
dataType: FlowUpdateDataType;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ActionCodePipe implements PipeTransform {
|
|
4
|
+
private formattingSettings;
|
|
5
|
+
transform(actionCode: string): string;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ActionCodePipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ActionCodePipe, "vlActionCode", false>;
|
|
8
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { OnDestroy, PipeTransform } from '@angular/core';
|
|
2
|
+
import { DateType } from '../types';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class DatePipe implements PipeTransform, OnDestroy {
|
|
4
5
|
private locale;
|
|
@@ -6,7 +7,7 @@ export declare class DatePipe implements PipeTransform, OnDestroy {
|
|
|
6
7
|
private formattingSettings;
|
|
7
8
|
private destroy$;
|
|
8
9
|
ngOnDestroy(): void;
|
|
9
|
-
transform(date: string | number | Date | undefined | null): string;
|
|
10
|
+
transform(date: string | number | Date | undefined | null, type?: DateType): string;
|
|
10
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<DatePipe, never>;
|
|
11
12
|
static ɵpipe: i0.ɵɵPipeDeclaration<DatePipe, "vlDate", false>;
|
|
12
13
|
}
|
package/core/pipes/index.d.ts
CHANGED
|
@@ -2,8 +2,9 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./number.pipe";
|
|
3
3
|
import * as i2 from "./price.pipe";
|
|
4
4
|
import * as i3 from "./date.pipe";
|
|
5
|
+
import * as i4 from "./action-code.pipe";
|
|
5
6
|
export declare class SdkPipesModule {
|
|
6
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdkPipesModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SdkPipesModule, [typeof i1.NumberPipe, typeof i2.PricePipe, typeof i3.DatePipe], never, [typeof i1.NumberPipe, typeof i2.PricePipe, typeof i3.DatePipe]>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SdkPipesModule, [typeof i1.NumberPipe, typeof i2.PricePipe, typeof i3.DatePipe, typeof i4.ActionCodePipe], never, [typeof i1.NumberPipe, typeof i2.PricePipe, typeof i3.DatePipe, typeof i4.ActionCodePipe]>;
|
|
8
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<SdkPipesModule>;
|
|
9
10
|
}
|
|
@@ -7,10 +7,12 @@ export declare class ContextService {
|
|
|
7
7
|
private context;
|
|
8
8
|
constructor(contextApiService: ContextApiService);
|
|
9
9
|
get isInitialized(): boolean;
|
|
10
|
+
get isInitialized$(): Observable<boolean>;
|
|
10
11
|
get mode(): ConfigurationContextMode | undefined;
|
|
11
12
|
resolve(): ConfigurationContext;
|
|
12
13
|
resolve$(): Observable<ConfigurationContext>;
|
|
13
14
|
create(headerId: string, mode: ConfigurationContextMode): Observable<ConfigurationContext>;
|
|
15
|
+
initTestMode(): Observable<ConfigurationContext>;
|
|
14
16
|
update(partialContext: Partial<ConfigurationContext>): ConfigurationContext;
|
|
15
17
|
set(context: ConfigurationContext): ConfigurationContext;
|
|
16
18
|
delete(): void;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Params } from '@angular/router';
|
|
2
|
+
import { FlowsApiService, UITemplatesApiService } from '@veloceapps/api';
|
|
3
|
+
import { Flow, UITemplate, UITemplateType } from '@veloceapps/core';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class FlowInfoService {
|
|
7
|
+
private flowsApiService;
|
|
8
|
+
private templatesApiService;
|
|
9
|
+
flow$: Observable<Flow | null>;
|
|
10
|
+
params?: Params;
|
|
11
|
+
templates: {
|
|
12
|
+
[key in UITemplateType]?: UITemplate;
|
|
13
|
+
};
|
|
14
|
+
get flow(): Flow | null;
|
|
15
|
+
set flow(value: Flow | null);
|
|
16
|
+
private flowSubj$;
|
|
17
|
+
constructor(flowsApiService: FlowsApiService, templatesApiService: UITemplatesApiService);
|
|
18
|
+
init$(flowId: string, params: Params): Observable<void>;
|
|
19
|
+
cleanup(): void;
|
|
20
|
+
private initFlowTemplates$;
|
|
21
|
+
private remapTemplateName;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FlowInfoService, never>;
|
|
23
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FlowInfoService>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { ConfigurationProcessorsApiService, FlowStateApiService, QuoteApiService } from '@veloceapps/api';
|
|
2
|
+
import { ToastService } from '@veloceapps/components';
|
|
3
|
+
import { FlowStateExecutionRequest, FlowStateExecutionResult, FlowStateSelectorResponse, UITemplateType } from '@veloceapps/core';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { FlowConfigurationService } from '../modules';
|
|
6
|
+
import { ContextService } from './context.service';
|
|
7
|
+
import { FlowInfoService } from './flow-info.service';
|
|
8
|
+
import { QuoteDraftService } from './quote-draft.service';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class FlowStateService {
|
|
11
|
+
private contextService;
|
|
12
|
+
private quoteDraftService;
|
|
13
|
+
private flowInfoService;
|
|
14
|
+
private flowConfiguration;
|
|
15
|
+
private processorsApiService;
|
|
16
|
+
private flowStateApiService;
|
|
17
|
+
private quoteApiService;
|
|
18
|
+
private toastService;
|
|
19
|
+
private readonly NOT_INITIALIZED;
|
|
20
|
+
private stateId$;
|
|
21
|
+
private processors;
|
|
22
|
+
private subscriptions;
|
|
23
|
+
constructor(contextService: ContextService, quoteDraftService: QuoteDraftService, flowInfoService: FlowInfoService, flowConfiguration: FlowConfigurationService, processorsApiService: ConfigurationProcessorsApiService, flowStateApiService: FlowStateApiService, quoteApiService: QuoteApiService, toastService: ToastService);
|
|
24
|
+
init$(): Observable<void>;
|
|
25
|
+
cleanup(): void;
|
|
26
|
+
isInitialized$(): Observable<boolean>;
|
|
27
|
+
isInitialized(): boolean;
|
|
28
|
+
execute$(scope: UITemplateType, exec: FlowStateExecutionRequest): Observable<FlowStateExecutionResult['selectors']>;
|
|
29
|
+
dispatch$(scope: UITemplateType, action: string, inputData: unknown): Observable<void>;
|
|
30
|
+
select$<Response = unknown>(scope: UITemplateType, selectorName: string, inputData?: unknown): Observable<FlowStateSelectorResponse<Response>>;
|
|
31
|
+
subscribe$<Response = unknown>(scope: UITemplateType, selectorName: string, inputData?: unknown): Observable<FlowStateSelectorResponse<Response>>;
|
|
32
|
+
save$(): Observable<void>;
|
|
33
|
+
submit$(): Observable<void>;
|
|
34
|
+
private getOwnerIdByScope;
|
|
35
|
+
private getScopeByOwnerId;
|
|
36
|
+
private execToRequest;
|
|
37
|
+
private executeRequest$;
|
|
38
|
+
private initStateful$;
|
|
39
|
+
private executeStateful$;
|
|
40
|
+
private initStateless$;
|
|
41
|
+
private calculate$;
|
|
42
|
+
private executeStateless$;
|
|
43
|
+
private getFlowSafe;
|
|
44
|
+
private initProcessors$;
|
|
45
|
+
private executeActionScript;
|
|
46
|
+
private executeSelectorScript;
|
|
47
|
+
private executeProcessorScript;
|
|
48
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FlowStateService, never>;
|
|
49
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FlowStateService>;
|
|
50
|
+
}
|
package/core/services/index.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export * from './context.service';
|
|
2
|
+
export * from './flow-info.service';
|
|
3
|
+
export * from './flow-state.service';
|
|
4
|
+
export * from './integration.state';
|
|
2
5
|
export * from './metric-calculation/metric-calculation.service';
|
|
3
6
|
export * from './product-images.service';
|
|
4
7
|
export * from './quote-draft.service';
|
|
@@ -3,29 +3,35 @@ import { LineItem, PriceList, PriceSummary, QuoteDraft } from '@veloceapps/core'
|
|
|
3
3
|
import { Dictionary } from 'lodash';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import { ContextService } from './context.service';
|
|
6
|
+
import { IntegrationState } from './integration.state';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class QuoteDraftService {
|
|
8
9
|
private context;
|
|
9
10
|
private quoteApiService;
|
|
10
11
|
private priceApiService;
|
|
12
|
+
private integrationState;
|
|
11
13
|
private quoteSubj$;
|
|
12
14
|
private resetSubj$;
|
|
13
15
|
private isInitializedSubj$;
|
|
14
16
|
private initialCurrentState;
|
|
15
17
|
private _hasUnsavedChanges;
|
|
18
|
+
get isInitialized$(): Observable<boolean>;
|
|
16
19
|
get isInitialized(): boolean;
|
|
17
20
|
set isInitialized(value: boolean);
|
|
18
21
|
get hasUnsavedChanges(): boolean;
|
|
19
22
|
set hasUnsavedChanges(value: boolean);
|
|
20
23
|
get hasProducts$(): Observable<boolean>;
|
|
21
24
|
get hasProducts(): boolean;
|
|
25
|
+
get hasAssets$(): Observable<boolean>;
|
|
26
|
+
get hasAssets(): boolean;
|
|
22
27
|
allPriceLists: PriceList[];
|
|
23
28
|
assetPriceLists: PriceList[];
|
|
24
29
|
reset$: Observable<boolean>;
|
|
25
30
|
activePriceList$: Observable<PriceList | null>;
|
|
26
|
-
constructor(context: ContextService, quoteApiService: QuoteApiService, priceApiService: PriceApiService);
|
|
31
|
+
constructor(context: ContextService, quoteApiService: QuoteApiService, priceApiService: PriceApiService, integrationState: IntegrationState);
|
|
27
32
|
reset(): void;
|
|
28
33
|
init(quoteId: string, params: Dictionary<string>): Observable<void>;
|
|
34
|
+
finalizeInit(): void;
|
|
29
35
|
setCurrentLineItemState(lineItems: LineItem[]): void;
|
|
30
36
|
updateQuoteDraft(update: Partial<QuoteDraft>): void;
|
|
31
37
|
updateByPriceSummary(priceSummary: PriceSummary): void;
|
|
@@ -59,6 +65,7 @@ export declare class QuoteDraftService {
|
|
|
59
65
|
private populateActivePriceLists$;
|
|
60
66
|
private filterByActivePriceList;
|
|
61
67
|
private markAsUpdated;
|
|
68
|
+
private initializeModifiedAssetsMap;
|
|
62
69
|
static ɵfac: i0.ɵɵFactoryDeclaration<QuoteDraftService, never>;
|
|
63
70
|
static ɵprov: i0.ɵɵInjectableDeclaration<QuoteDraftService>;
|
|
64
71
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConfigurationSettingsApiService } from '@veloceapps/api';
|
|
2
|
-
import { RuntimeConfigurationSettings, RuntimeCurrencySettings } from '@veloceapps/core';
|
|
2
|
+
import { RuntimeConfigurationSettings, RuntimeCurrencySettings, ShoppingCartSetting } from '@veloceapps/core';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { FormattingSettings } from '../types';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -8,14 +8,17 @@ export declare class RuntimeSettingsService {
|
|
|
8
8
|
private configurationSettings$;
|
|
9
9
|
private currencySettings$;
|
|
10
10
|
private formattingSettings;
|
|
11
|
+
private shoppingCartSettings$;
|
|
11
12
|
constructor(configurationSettingsApiService: ConfigurationSettingsApiService);
|
|
12
13
|
create(): Observable<void>;
|
|
13
14
|
initCurrency(iso?: string): void;
|
|
14
15
|
getFormattingSettings(): FormattingSettings;
|
|
15
16
|
getConfigurationSettings(): RuntimeConfigurationSettings;
|
|
17
|
+
getShoppingCartSettings(): ShoppingCartSetting[];
|
|
16
18
|
getCurrencySettings(): RuntimeCurrencySettings;
|
|
17
19
|
private parseConfigurationSettings;
|
|
18
20
|
private getCurrencySymbol;
|
|
21
|
+
addShoppingCartSettings(settings: ShoppingCartSetting[]): void;
|
|
19
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeSettingsService, never>;
|
|
20
23
|
static ɵprov: i0.ɵɵInjectableDeclaration<RuntimeSettingsService>;
|
|
21
24
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
2
|
import { Prettify, VlDateSettings } from '@veloceapps/core';
|
|
3
|
+
import { Dictionary } from 'lodash';
|
|
3
4
|
export declare const FORMATTING_SETTINGS_TOKEN: InjectionToken<{
|
|
4
5
|
getFormattingSettings: (...args: unknown[]) => FormattingSettings;
|
|
5
6
|
}>;
|
|
@@ -8,4 +9,5 @@ export type FormattingSettings = Prettify<{
|
|
|
8
9
|
thousandsSeparator: string;
|
|
9
10
|
decimalSeparator: string;
|
|
10
11
|
decimalsCount: number;
|
|
12
|
+
actionCodeLabels: Dictionary<string>;
|
|
11
13
|
} & VlDateSettings>;
|
package/core/types/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type DateType = 'date' | 'datetime' | 'time';
|