@veloceapps/sdk 0.0.0-watch
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 +7 -0
- package/cms/cms.actions.d.ts +12 -0
- package/cms/cms.default.d.ts +5 -0
- package/cms/cms.elements.d.ts +4 -0
- package/cms/components/element-children/element-children.component.d.ts +10 -0
- package/cms/components/element-children/element-children.module.d.ts +8 -0
- package/cms/components/element-renderer/element-renderer.component.d.ts +35 -0
- package/cms/components/element-renderer/element-renderer.module.d.ts +7 -0
- package/cms/components/element.component.d.ts +13 -0
- package/cms/components/index.d.ts +1 -0
- package/cms/components/plugin.component.d.ts +15 -0
- package/cms/components/preview/index.d.ts +2 -0
- package/cms/components/preview/preview.component.d.ts +34 -0
- package/cms/components/preview/preview.module.d.ts +11 -0
- package/cms/decorators/element.decorator.d.ts +2 -0
- package/cms/decorators/index.d.ts +1 -0
- package/cms/directives/custom-template.directive.d.ts +12 -0
- package/cms/engine/models/entity.d.ts +11 -0
- package/cms/engine/models/plugin.d.ts +5 -0
- package/cms/index.d.ts +11 -0
- package/cms/injection-tokens.d.ts +11 -0
- package/cms/launcher.module.d.ts +10 -0
- package/cms/modules/federated/default-options.d.ts +4 -0
- package/cms/modules/federated/export.d.ts +1 -0
- package/cms/modules/federated/federated.component.d.ts +26 -0
- package/cms/modules/federated/federated.module.d.ts +9 -0
- package/cms/modules/federated/federated.types.d.ts +30 -0
- package/cms/modules/federated/federated.utils.d.ts +1 -0
- package/cms/package.json +10 -0
- package/cms/plugins/configuration.plugin.d.ts +23 -0
- package/cms/plugins/io.plugin.d.ts +9 -0
- package/cms/plugins/script.plugin.d.ts +13 -0
- package/cms/services/dynamic-module.service.d.ts +15 -0
- package/cms/services/element-context.service.d.ts +8 -0
- package/cms/services/index.d.ts +3 -0
- package/cms/services/integration.state.d.ts +17 -0
- package/cms/services/io-provider.service.d.ts +15 -0
- package/cms/services/launcher.service.d.ts +18 -0
- package/cms/services/templates.service.d.ts +9 -0
- package/cms/types/common.types.d.ts +103 -0
- package/cms/types/configuration.types.d.ts +17 -0
- package/cms/types/elements.types.d.ts +2 -0
- package/cms/types/index.d.ts +5 -0
- package/cms/types/integration.types.d.ts +4 -0
- package/cms/types/path.types.d.ts +11 -0
- package/cms/utils/element.utils.d.ts +15 -0
- package/cms/utils/elements-resolver.d.ts +20 -0
- package/cms/utils/index.d.ts +3 -0
- package/cms/utils/path.utils.d.ts +5 -0
- package/cms/veloce-sdk-cms.d.ts +5 -0
- package/cms/vendor-map.d.ts +689 -0
- package/core/core.module.d.ts +8 -0
- package/core/index.d.ts +6 -0
- package/core/modules/configuration/configuration.module.d.ts +7 -0
- package/core/modules/configuration/helpers.d.ts +3 -0
- package/core/modules/configuration/index.d.ts +4 -0
- package/core/modules/configuration/services/configuration-runtime.service.d.ts +28 -0
- package/core/modules/configuration/services/configuration.service.d.ts +40 -0
- package/core/modules/configuration/services/runtime-context.service.d.ts +14 -0
- package/core/modules/configuration/types/configuration-runtime.types.d.ts +6 -0
- package/core/modules/flow-configuration/flow-configuration.module.d.ts +6 -0
- package/core/modules/flow-configuration/index.d.ts +4 -0
- package/core/modules/flow-configuration/services/flow-configuration.service.d.ts +37 -0
- package/core/modules/flow-configuration/services/flow-update.service.d.ts +12 -0
- package/core/modules/flow-configuration/types/update.types.d.ts +12 -0
- package/core/modules/index.d.ts +2 -0
- package/core/package.json +10 -0
- package/core/services/context.service.d.ts +17 -0
- package/core/services/index.d.ts +3 -0
- package/core/services/product-images.service.d.ts +12 -0
- package/core/services/quote-draft.service.d.ts +31 -0
- package/core/types/index.d.ts +3 -0
- package/core/types/quote-states.types.d.ts +6 -0
- package/core/types/runtime.types.d.ts +31 -0
- package/core/types/ui-definition.types.d.ts +26 -0
- package/core/utils/index.d.ts +2 -0
- package/core/utils/line-item.utils.d.ts +26 -0
- package/core/utils/line-item.worker.d.ts +12 -0
- package/core/veloce-sdk-core.d.ts +5 -0
- package/esm2015/cms/cms.actions.js +17 -0
- package/esm2015/cms/cms.default.js +6 -0
- package/esm2015/cms/cms.elements.js +29 -0
- package/esm2015/cms/components/element-children/element-children.component.js +23 -0
- package/esm2015/cms/components/element-children/element-children.module.js +18 -0
- package/esm2015/cms/components/element-renderer/element-renderer.component.js +143 -0
- package/esm2015/cms/components/element-renderer/element-renderer.module.js +16 -0
- package/esm2015/cms/components/element.component.js +31 -0
- package/esm2015/cms/components/index.js +2 -0
- package/esm2015/cms/components/plugin.component.js +16 -0
- package/esm2015/cms/components/preview/index.js +3 -0
- package/esm2015/cms/components/preview/preview.component.js +105 -0
- package/esm2015/cms/components/preview/preview.module.js +23 -0
- package/esm2015/cms/decorators/element.decorator.js +6 -0
- package/esm2015/cms/decorators/index.js +2 -0
- package/esm2015/cms/directives/custom-template.directive.js +25 -0
- package/esm2015/cms/engine/models/entity.js +18 -0
- package/esm2015/cms/engine/models/plugin.js +6 -0
- package/esm2015/cms/index.js +11 -0
- package/esm2015/cms/injection-tokens.js +8 -0
- package/esm2015/cms/launcher.module.js +23 -0
- package/esm2015/cms/modules/federated/default-options.js +5 -0
- package/esm2015/cms/modules/federated/export.js +2 -0
- package/esm2015/cms/modules/federated/federated.component.js +82 -0
- package/esm2015/cms/modules/federated/federated.module.js +19 -0
- package/esm2015/cms/modules/federated/federated.types.js +2 -0
- package/esm2015/cms/modules/federated/federated.utils.js +37 -0
- package/esm2015/cms/plugins/configuration.plugin.js +94 -0
- package/esm2015/cms/plugins/io.plugin.js +37 -0
- package/esm2015/cms/plugins/script.plugin.js +66 -0
- package/esm2015/cms/services/dynamic-module.service.js +33 -0
- package/esm2015/cms/services/element-context.service.js +10 -0
- package/esm2015/cms/services/index.js +4 -0
- package/esm2015/cms/services/integration.state.js +40 -0
- package/esm2015/cms/services/io-provider.service.js +51 -0
- package/esm2015/cms/services/launcher.service.js +57 -0
- package/esm2015/cms/services/templates.service.js +19 -0
- package/esm2015/cms/types/common.types.js +2 -0
- package/esm2015/cms/types/configuration.types.js +2 -0
- package/esm2015/cms/types/elements.types.js +2 -0
- package/esm2015/cms/types/index.js +6 -0
- package/esm2015/cms/types/integration.types.js +2 -0
- package/esm2015/cms/types/path.types.js +2 -0
- package/esm2015/cms/utils/element.utils.js +149 -0
- package/esm2015/cms/utils/elements-resolver.js +108 -0
- package/esm2015/cms/utils/index.js +4 -0
- package/esm2015/cms/utils/path.utils.js +67 -0
- package/esm2015/cms/veloce-sdk-cms.js +5 -0
- package/esm2015/cms/vendor-map.js +35 -0
- package/esm2015/core/core.module.js +18 -0
- package/esm2015/core/index.js +7 -0
- package/esm2015/core/modules/configuration/configuration.module.js +34 -0
- package/esm2015/core/modules/configuration/helpers.js +10 -0
- package/esm2015/core/modules/configuration/index.js +5 -0
- package/esm2015/core/modules/configuration/services/configuration-runtime.service.js +90 -0
- package/esm2015/core/modules/configuration/services/configuration.service.js +153 -0
- package/esm2015/core/modules/configuration/services/runtime-context.service.js +61 -0
- package/esm2015/core/modules/configuration/types/configuration-runtime.types.js +2 -0
- package/esm2015/core/modules/flow-configuration/flow-configuration.module.js +18 -0
- package/esm2015/core/modules/flow-configuration/index.js +5 -0
- package/esm2015/core/modules/flow-configuration/services/flow-configuration.service.js +90 -0
- package/esm2015/core/modules/flow-configuration/services/flow-update.service.js +114 -0
- package/esm2015/core/modules/flow-configuration/types/update.types.js +2 -0
- package/esm2015/core/modules/index.js +3 -0
- package/esm2015/core/services/context.service.js +44 -0
- package/esm2015/core/services/index.js +4 -0
- package/esm2015/core/services/product-images.service.js +30 -0
- package/esm2015/core/services/quote-draft.service.js +88 -0
- package/esm2015/core/types/index.js +4 -0
- package/esm2015/core/types/quote-states.types.js +2 -0
- package/esm2015/core/types/runtime.types.js +16 -0
- package/esm2015/core/types/ui-definition.types.js +2 -0
- package/esm2015/core/utils/index.js +3 -0
- package/esm2015/core/utils/line-item.utils.js +98 -0
- package/esm2015/core/utils/line-item.worker.js +19 -0
- package/esm2015/core/veloce-sdk-core.js +5 -0
- package/esm2015/index.js +2 -0
- package/esm2015/runtime/components/component-preview/component-preview.component.js +125 -0
- package/esm2015/runtime/components/index.js +5 -0
- package/esm2015/runtime/components/section-renderer/section-renderer.component.js +71 -0
- package/esm2015/runtime/components/ui-runtime/runtime.component.js +427 -0
- package/esm2015/runtime/components/ui-runtime-preview/runtime-preview.component.js +109 -0
- package/esm2015/runtime/execution/components/children-placeholder/children-placeholder.component.js +68 -0
- package/esm2015/runtime/execution/components/context-provider/context-provider.component.js +36 -0
- package/esm2015/runtime/execution/components/execution-section-renderer/execution-section-renderer.component.js +72 -0
- package/esm2015/runtime/execution/components/federated/federated.component.js +81 -0
- package/esm2015/runtime/execution/components/velo-attribute/velo-attribute.component.js +65 -0
- package/esm2015/runtime/execution/components/velo-multiselect/velo-multiselect.component.js +136 -0
- package/esm2015/runtime/execution/components/velo-port-checkbox/velo-port-checkbox.component.js +80 -0
- package/esm2015/runtime/execution/components/velo-port-dropdown/velo-port-dropdown.component.js +101 -0
- package/esm2015/runtime/execution/components/velo-port-radio/velo-port-radio.component.js +150 -0
- package/esm2015/runtime/execution/components/velo-type/velo-type.component.js +121 -0
- package/esm2015/runtime/execution/directives/section-script.directive.js +242 -0
- package/esm2015/runtime/execution/directives/sf-query.directive.js +34 -0
- package/esm2015/runtime/execution/directives/velo-attribute.directive.js +86 -0
- package/esm2015/runtime/execution/directives/velo-port.directive.js +373 -0
- package/esm2015/runtime/execution/directives/vl-approval.directive.js +22 -0
- package/esm2015/runtime/execution/directives/vl-document-attachments.directive.js +35 -0
- package/esm2015/runtime/execution/directives/vl-document-templates.directive.js +59 -0
- package/esm2015/runtime/execution/directives/vl-quote.directive.js +41 -0
- package/esm2015/runtime/execution/directives/vl-ramp.directive.js +51 -0
- package/esm2015/runtime/execution/runtime-execution.module.js +163 -0
- package/esm2015/runtime/execution/utils/federated.util.js +37 -0
- package/esm2015/runtime/index.js +5 -0
- package/esm2015/runtime/runtime.module.js +104 -0
- package/esm2015/runtime/services/cart.service.js +28 -0
- package/esm2015/runtime/services/collapsible-state.service.js +34 -0
- package/esm2015/runtime/services/configuration.service.js +102 -0
- package/esm2015/runtime/services/current-state.service.js +17 -0
- package/esm2015/runtime/services/form-scope.service.js +30 -0
- package/esm2015/runtime/services/index.js +4 -0
- package/esm2015/runtime/services/product-model-cache.service.js +30 -0
- package/esm2015/runtime/services/runtime-context.service.js +56 -0
- package/esm2015/runtime/services/runtime-form.service.js +224 -0
- package/esm2015/runtime/services/runtime.service.js +108 -0
- package/esm2015/runtime/services/section-helper.service.js +27 -0
- package/esm2015/runtime/services/section-scope.service.js +36 -0
- package/esm2015/runtime/services/section-store.service.js +22 -0
- package/esm2015/runtime/services/section.service.js +124 -0
- package/esm2015/runtime/types/bound-data.types.js +7 -0
- package/esm2015/runtime/types/index.js +2 -0
- package/esm2015/runtime/types/runtime.types.js +2 -0
- package/esm2015/runtime/types/script-registry.types.js +51 -0
- package/esm2015/runtime/utils/line-item.util.js +273 -0
- package/esm2015/runtime/utils/section.utils.js +26 -0
- package/esm2015/runtime/utils/sections-binder.helper.js +105 -0
- package/esm2015/runtime/veloce-sdk-runtime.js +5 -0
- package/esm2015/src/components/dialog/dialog.component.js +30 -0
- package/esm2015/src/components/dialog/dialog.module.js +19 -0
- package/esm2015/src/components/dialog/dialog.types.js +2 -0
- package/esm2015/src/components/header/cart-overlay/cart-preview.component.js +116 -0
- package/esm2015/src/components/header/cart-overlay/cart-preview.module.js +23 -0
- package/esm2015/src/components/header/header.component.js +196 -0
- package/esm2015/src/components/header/header.module.js +23 -0
- package/esm2015/src/components/header/header.types.js +2 -0
- package/esm2015/src/constants.js +2 -0
- package/esm2015/src/flow-routing.module.js +97 -0
- package/esm2015/src/flow.component.js +35 -0
- package/esm2015/src/flow.module.js +52 -0
- package/esm2015/src/guards/context.guard.js +75 -0
- package/esm2015/src/guards/index.js +2 -0
- package/esm2015/src/guards/product-unload.guard.js +43 -0
- package/esm2015/src/guards/root.guard.js +41 -0
- package/esm2015/src/index.js +7 -0
- package/esm2015/src/pages/catalog/catalog.component.js +117 -0
- package/esm2015/src/pages/catalog/catalog.module.js +20 -0
- package/esm2015/src/pages/debug/debug.component.js +65 -0
- package/esm2015/src/pages/debug/debug.module.js +48 -0
- package/esm2015/src/pages/legacy-product/legacy-product.component.js +132 -0
- package/esm2015/src/pages/legacy-product/legacy-product.module.js +21 -0
- package/esm2015/src/pages/product/product.component.js +95 -0
- package/esm2015/src/pages/product/product.module.js +20 -0
- package/esm2015/src/pages/record-not-found/record-not-found.component.js +29 -0
- package/esm2015/src/pages/record-not-found/record-not-found.module.js +20 -0
- package/esm2015/src/pages/shopping-cart/shopping-cart.component.js +117 -0
- package/esm2015/src/pages/shopping-cart/shopping-cart.module.js +20 -0
- package/esm2015/src/resolvers/flow.resolver.js +58 -0
- package/esm2015/src/resolvers/quote.resolver.js +45 -0
- package/esm2015/src/services/flow-dialog.service.js +80 -0
- package/esm2015/src/services/flow-router.service.js +124 -0
- package/esm2015/src/services/flow.service.js +67 -0
- package/esm2015/src/services/index.js +2 -0
- package/esm2015/src/types/context-route.types.js +2 -0
- package/esm2015/src/types/flow-customization.types.js +3 -0
- package/esm2015/src/types/index.js +3 -0
- package/esm2015/src/types/route.types.js +2 -0
- package/esm2015/src/utils/flow.utils.js +12 -0
- package/esm2015/src/utils/index.js +2 -0
- package/esm2015/veloce-sdk.js +5 -0
- package/fesm2015/veloce-sdk-cms.js +1301 -0
- package/fesm2015/veloce-sdk-cms.js.map +1 -0
- package/fesm2015/veloce-sdk-core.js +837 -0
- package/fesm2015/veloce-sdk-core.js.map +1 -0
- package/fesm2015/veloce-sdk-runtime.js +3895 -0
- package/fesm2015/veloce-sdk-runtime.js.map +1 -0
- package/fesm2015/veloce-sdk.js +1635 -0
- package/fesm2015/veloce-sdk.js.map +1 -0
- package/index.d.ts +1 -0
- package/package.json +49 -0
- package/runtime/components/component-preview/component-preview.component.d.ts +27 -0
- package/runtime/components/index.d.ts +4 -0
- package/runtime/components/section-renderer/section-renderer.component.d.ts +25 -0
- package/runtime/components/ui-runtime/runtime.component.d.ts +53 -0
- package/runtime/components/ui-runtime-preview/runtime-preview.component.d.ts +27 -0
- package/runtime/execution/components/children-placeholder/children-placeholder.component.d.ts +30 -0
- package/runtime/execution/components/context-provider/context-provider.component.d.ts +14 -0
- package/runtime/execution/components/execution-section-renderer/execution-section-renderer.component.d.ts +25 -0
- package/runtime/execution/components/federated/federated.component.d.ts +36 -0
- package/runtime/execution/components/velo-attribute/velo-attribute.component.d.ts +19 -0
- package/runtime/execution/components/velo-multiselect/velo-multiselect.component.d.ts +35 -0
- package/runtime/execution/components/velo-port-checkbox/velo-port-checkbox.component.d.ts +22 -0
- package/runtime/execution/components/velo-port-dropdown/velo-port-dropdown.component.d.ts +22 -0
- package/runtime/execution/components/velo-port-radio/velo-port-radio.component.d.ts +28 -0
- package/runtime/execution/components/velo-type/velo-type.component.d.ts +31 -0
- package/runtime/execution/directives/section-script.directive.d.ts +59 -0
- package/runtime/execution/directives/sf-query.directive.d.ts +15 -0
- package/runtime/execution/directives/velo-attribute.directive.d.ts +26 -0
- package/runtime/execution/directives/velo-port.directive.d.ts +74 -0
- package/runtime/execution/directives/vl-approval.directive.d.ts +10 -0
- package/runtime/execution/directives/vl-document-attachments.directive.d.ts +15 -0
- package/runtime/execution/directives/vl-document-templates.directive.d.ts +33 -0
- package/runtime/execution/directives/vl-quote.directive.d.ts +14 -0
- package/runtime/execution/directives/vl-ramp.directive.d.ts +15 -0
- package/runtime/execution/runtime-execution.module.d.ts +27 -0
- package/runtime/execution/utils/federated.util.d.ts +6 -0
- package/runtime/index.d.ts +4 -0
- package/runtime/package.json +10 -0
- package/runtime/runtime.module.d.ts +18 -0
- package/runtime/services/cart.service.d.ts +15 -0
- package/runtime/services/collapsible-state.service.d.ts +15 -0
- package/runtime/services/configuration.service.d.ts +19 -0
- package/runtime/services/current-state.service.d.ts +8 -0
- package/runtime/services/form-scope.service.d.ts +20 -0
- package/runtime/services/index.d.ts +3 -0
- package/runtime/services/product-model-cache.service.d.ts +14 -0
- package/runtime/services/runtime-context.service.d.ts +16 -0
- package/runtime/services/runtime-form.service.d.ts +24 -0
- package/runtime/services/runtime.service.d.ts +43 -0
- package/runtime/services/section-helper.service.d.ts +8 -0
- package/runtime/services/section-scope.service.d.ts +14 -0
- package/runtime/services/section-store.service.d.ts +11 -0
- package/runtime/services/section.service.d.ts +30 -0
- package/runtime/types/bound-data.types.d.ts +13 -0
- package/runtime/types/index.d.ts +1 -0
- package/runtime/types/runtime.types.d.ts +19 -0
- package/runtime/types/script-registry.types.d.ts +13 -0
- package/runtime/utils/line-item.util.d.ts +34 -0
- package/runtime/utils/section.utils.d.ts +2 -0
- package/runtime/utils/sections-binder.helper.d.ts +16 -0
- package/runtime/veloce-sdk-runtime.d.ts +5 -0
- package/src/components/dialog/dialog.component.d.ts +13 -0
- package/src/components/dialog/dialog.module.d.ts +9 -0
- package/src/components/dialog/dialog.types.d.ts +6 -0
- package/src/components/header/cart-overlay/cart-preview.component.d.ts +31 -0
- package/src/components/header/cart-overlay/cart-preview.module.d.ts +13 -0
- package/src/components/header/header.component.d.ts +48 -0
- package/src/components/header/header.module.d.ts +13 -0
- package/src/components/header/header.types.d.ts +19 -0
- package/src/constants.d.ts +1 -0
- package/src/flow-routing.module.d.ts +11 -0
- package/src/flow.component.d.ts +17 -0
- package/src/flow.module.d.ts +15 -0
- package/src/guards/context.guard.d.ts +18 -0
- package/src/guards/index.d.ts +1 -0
- package/src/guards/product-unload.guard.d.ts +16 -0
- package/src/guards/root.guard.d.ts +15 -0
- package/src/index.d.ts +6 -0
- package/src/pages/catalog/catalog.component.d.ts +32 -0
- package/src/pages/catalog/catalog.module.d.ts +10 -0
- package/src/pages/debug/debug.component.d.ts +27 -0
- package/src/pages/debug/debug.module.d.ts +14 -0
- package/src/pages/legacy-product/legacy-product.component.d.ts +37 -0
- package/src/pages/legacy-product/legacy-product.module.d.ts +10 -0
- package/src/pages/product/product.component.d.ts +30 -0
- package/src/pages/product/product.module.d.ts +10 -0
- package/src/pages/record-not-found/record-not-found.component.d.ts +11 -0
- package/src/pages/record-not-found/record-not-found.module.d.ts +9 -0
- package/src/pages/shopping-cart/shopping-cart.component.d.ts +32 -0
- package/src/pages/shopping-cart/shopping-cart.module.d.ts +10 -0
- package/src/resolvers/flow.resolver.d.ts +14 -0
- package/src/resolvers/quote.resolver.d.ts +18 -0
- package/src/services/flow-dialog.service.d.ts +20 -0
- package/src/services/flow-router.service.d.ts +35 -0
- package/src/services/flow.service.d.ts +17 -0
- package/src/services/index.d.ts +1 -0
- package/src/types/context-route.types.d.ts +5 -0
- package/src/types/flow-customization.types.d.ts +11 -0
- package/src/types/index.d.ts +2 -0
- package/src/types/route.types.d.ts +9 -0
- package/src/utils/flow.utils.d.ts +1 -0
- package/src/utils/index.d.ts +1 -0
- package/veloce-sdk.d.ts +5 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ProductModelApiService } from '@veloce/api';
|
|
2
|
+
import { ProductModelsContainer } from '@veloce/core';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ProductModelCacheService {
|
|
6
|
+
private productModelApiService;
|
|
7
|
+
constructor(productModelApiService: ProductModelApiService);
|
|
8
|
+
private cachedModel;
|
|
9
|
+
getProductModel(currentModelId: string, version?: string): Observable<ProductModelsContainer>;
|
|
10
|
+
getCachedModel(): Observable<ProductModelsContainer>;
|
|
11
|
+
clearCache(): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductModelCacheService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ProductModelCacheService>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ConfigurationApiService } from '@veloce/api';
|
|
2
|
+
import { ContextService } from '@veloce/sdk/core';
|
|
3
|
+
import { MessageService } from 'primeng/api';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { LegacyRuntimeContext } from '../types';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class RuntimeContextService {
|
|
8
|
+
private configurationApiService;
|
|
9
|
+
private messageService;
|
|
10
|
+
private contextService;
|
|
11
|
+
constructor(configurationApiService: ConfigurationApiService, messageService: MessageService, contextService: ContextService);
|
|
12
|
+
getRuntimeContext(productId: string, offeringId?: string): Observable<LegacyRuntimeContext>;
|
|
13
|
+
private getUIDefinition;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeContextService, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RuntimeContextService>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { FormGroup } from '@angular/forms';
|
|
2
|
+
import { LineItem, Section } from '@veloce/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): any;
|
|
21
|
+
static isTypeSection(section: Section): any;
|
|
22
|
+
static isAttributeSection(section: Section): any;
|
|
23
|
+
static findParent(parentId: string, lineItems: LineItem[]): LineItem | undefined;
|
|
24
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { HttpErrorResponse } from '@angular/common/http';
|
|
2
|
+
import { LineItem, UIDefinition } from '@veloce/core';
|
|
3
|
+
import { ContextService, QuoteStates } from '@veloce/sdk/core';
|
|
4
|
+
import { MessageService } from 'primeng/api';
|
|
5
|
+
import { LegacyRuntimeContext } from '../types';
|
|
6
|
+
import { ConfigurationService } from './configuration.service';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class RuntimeService {
|
|
9
|
+
private configurationService;
|
|
10
|
+
private contextService;
|
|
11
|
+
private messageService;
|
|
12
|
+
private runtimeContext;
|
|
13
|
+
private solutionReadySubject;
|
|
14
|
+
onSolutionReadyEvent: import("rxjs").Observable<LineItem>;
|
|
15
|
+
private solutionUpdateStartedSubject;
|
|
16
|
+
onSolutionUpdateStartedEvent: import("rxjs").Observable<void>;
|
|
17
|
+
private solutionUpdatedSubject;
|
|
18
|
+
onSolutionUpdatedEvent: import("rxjs").Observable<LineItem | HttpErrorResponse>;
|
|
19
|
+
private solutionProcessedSubject;
|
|
20
|
+
onSolutionProcessed: import("rxjs").Observable<LineItem>;
|
|
21
|
+
private solutionStopSubject;
|
|
22
|
+
onSolutionStopEvent: import("rxjs").Observable<LineItem>;
|
|
23
|
+
private solutionCancelSubject;
|
|
24
|
+
onSolutionCancelEvent: import("rxjs").Observable<void>;
|
|
25
|
+
private uiRefreshSubject;
|
|
26
|
+
onUIRefreshEvent: import("rxjs").Observable<void>;
|
|
27
|
+
constructor(configurationService: ConfigurationService, contextService: ContextService, messageService: MessageService);
|
|
28
|
+
private displayErrorMessage;
|
|
29
|
+
startRuntime(context: LegacyRuntimeContext, states: QuoteStates, resolve?: boolean): void;
|
|
30
|
+
updateRuntime(states: QuoteStates, configurationContextProperties?: {
|
|
31
|
+
[index: string]: string;
|
|
32
|
+
}): void;
|
|
33
|
+
stopRuntime(solutionLineItem: LineItem): void;
|
|
34
|
+
cancelRuntime(): void;
|
|
35
|
+
setRuntimeContext(runtimeContext: LegacyRuntimeContext): void;
|
|
36
|
+
getRuntimeContext(): LegacyRuntimeContext | undefined;
|
|
37
|
+
solutionProcessed(lineItem: LineItem): void;
|
|
38
|
+
refreshUI(uiDefinition: UIDefinition): void;
|
|
39
|
+
private updateRuntimeContext;
|
|
40
|
+
private setRuntimeStep;
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeService, never>;
|
|
42
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RuntimeService>;
|
|
43
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Section } from '@veloce/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SectionHelperService {
|
|
4
|
+
static findSectionForValue(section: Section, valueOption: string): Section | undefined;
|
|
5
|
+
getTotalPrices(section: Section): Map<string, number>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SectionHelperService, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SectionHelperService>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import { Section } from '@veloce/core';
|
|
3
|
+
import { BehaviorSubject } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SectionScopeService {
|
|
6
|
+
get section(): Section;
|
|
7
|
+
set section(value: Section);
|
|
8
|
+
indent: number;
|
|
9
|
+
private _section;
|
|
10
|
+
templates: BehaviorSubject<TemplateRef<any>[]>;
|
|
11
|
+
private getIndent;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SectionScopeService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SectionScopeService>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ComponentFactory } from '@angular/core';
|
|
2
|
+
import { Section } from '@veloce/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SectionStoreService {
|
|
5
|
+
private _componentFactories;
|
|
6
|
+
set componentFactories(data: ComponentFactory<any>[]);
|
|
7
|
+
get componentFactories(): ComponentFactory<any>[];
|
|
8
|
+
getComponentFactory(section: Section): ComponentFactory<any> | undefined;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SectionStoreService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SectionStoreService>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import '@angular/compiler';
|
|
2
|
+
import { Compiler, NgModuleRef, QueryList, TemplateRef } from '@angular/core';
|
|
3
|
+
import { FormGroup } from '@angular/forms';
|
|
4
|
+
import { Section } from '@veloce/core';
|
|
5
|
+
import { SectionStoreService } from './section-store.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class BaseSectionComponent {
|
|
8
|
+
form: FormGroup;
|
|
9
|
+
section: Section;
|
|
10
|
+
protected templates: QueryList<TemplateRef<any>>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseSectionComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaseSectionComponent, "ng-component", never, { "form": "form"; "section": "section"; }, {}, never, never>;
|
|
13
|
+
}
|
|
14
|
+
export declare class SectionsService {
|
|
15
|
+
private compiler;
|
|
16
|
+
private m;
|
|
17
|
+
private sectionStore;
|
|
18
|
+
private moduleType;
|
|
19
|
+
private moduleInstance;
|
|
20
|
+
constructor(compiler: Compiler, m: NgModuleRef<any>, sectionStore: SectionStoreService);
|
|
21
|
+
compileModule(sections: Section[], isViewEncapsulated?: boolean): void;
|
|
22
|
+
destroy(): void;
|
|
23
|
+
private getDecoratedComponents;
|
|
24
|
+
private getModuleType;
|
|
25
|
+
private applySelectorField;
|
|
26
|
+
private getUniqueSections;
|
|
27
|
+
private getTranspiledTemplate;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SectionsService, never>;
|
|
29
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SectionsService>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ProductModelAttribute, ProductPort, ProductType, SectionPath } from '@veloce/core';
|
|
2
|
+
export declare enum BoundDataType {
|
|
3
|
+
TYPE = 0,
|
|
4
|
+
ATTRIBUTE = 1,
|
|
5
|
+
PORT = 2
|
|
6
|
+
}
|
|
7
|
+
export interface BoundData {
|
|
8
|
+
name: string;
|
|
9
|
+
entity: ProductType | ProductModelAttribute | ProductPort;
|
|
10
|
+
entityType: string;
|
|
11
|
+
host?: string;
|
|
12
|
+
path: SectionPath;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './runtime.types';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { LineItem, UIDefinition } from '@veloce/core';
|
|
2
|
+
import { RuntimeContext } from '@veloce/sdk/core';
|
|
3
|
+
import { Dictionary } from 'lodash';
|
|
4
|
+
export interface SolutionReadyAware {
|
|
5
|
+
onSolutionReady(lineItem: LineItem): void;
|
|
6
|
+
}
|
|
7
|
+
export interface SolutionUpdatedAware {
|
|
8
|
+
onSolutionUpdated(lineItem: LineItem): void;
|
|
9
|
+
}
|
|
10
|
+
export interface UpdateData {
|
|
11
|
+
id: string;
|
|
12
|
+
action: string;
|
|
13
|
+
valueOption?: string;
|
|
14
|
+
selectedValueOptions?: string[];
|
|
15
|
+
options?: Dictionary<any>;
|
|
16
|
+
}
|
|
17
|
+
export interface LegacyRuntimeContext extends Omit<RuntimeContext, 'uiDefinition'> {
|
|
18
|
+
uiDefinition?: UIDefinition;
|
|
19
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare class ScriptRegistry {
|
|
2
|
+
scope: Map<string, any>;
|
|
3
|
+
private store;
|
|
4
|
+
constructor();
|
|
5
|
+
exists(scriptId: string): boolean;
|
|
6
|
+
isRegistered(scriptId: string, sectionId: string): boolean;
|
|
7
|
+
doRegister(scriptId: string, sectionId: string): void;
|
|
8
|
+
unRegister(scriptId: string, sectionId: string): void;
|
|
9
|
+
hasGlobalForScript(globalId: string): boolean;
|
|
10
|
+
getGlobalForScript(globalId: string): any;
|
|
11
|
+
setGlobalForScript(globalId: string, globalVariable: any): void;
|
|
12
|
+
removeGlobalForScript(globalId: string): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { LineItem, RuntimeModel, SectionPath } from '@veloce/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): any[];
|
|
25
|
+
static findLineItemsByPath(runtimeModel: RuntimeModel, lineItem: LineItem, path: SectionPath): LineItem[];
|
|
26
|
+
static findLineItemChildren(runtimeModel: RuntimeModel, lineItems: LineItem[], portName: string, typeName: string): LineItem[];
|
|
27
|
+
static findLineItemsByType(runtimeModel: RuntimeModel, lineItem: LineItem, typeName: string): LineItem[];
|
|
28
|
+
static findLineItemForValue(model: LineItem, valueOption: string): LineItem | undefined;
|
|
29
|
+
static create(product: any, qty?: number): LineItem;
|
|
30
|
+
static upsert(value: LineItem, collection: LineItem[]): void;
|
|
31
|
+
static compareSortOrder(a: LineItem, b: LineItem): number;
|
|
32
|
+
static sort(lineItems: LineItem[]): void;
|
|
33
|
+
private static compareProductName;
|
|
34
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LineItem, RuntimeModel, Section } from '@veloce/core';
|
|
2
|
+
export declare class SectionsBinderHelper {
|
|
3
|
+
static setLineItemsPath(runtimeModel: RuntimeModel, rootLineItem: LineItem, sections: Section[], sourceSections: Section[], filterFn: any, pricingEnabled: boolean): Section[];
|
|
4
|
+
static isAddAllowed(model: LineItem, portName: string, quantityToAdd?: number): boolean;
|
|
5
|
+
static isRemoveAllowed(model: LineItem, portName: string, quantityToRemove?: number): boolean;
|
|
6
|
+
static getMaxAllowed(lineItem: LineItem, portName: string): number;
|
|
7
|
+
static getQuantityGroupByValue(model: LineItem, portName: string): {
|
|
8
|
+
[index: string]: number;
|
|
9
|
+
};
|
|
10
|
+
private static bindMatchingLineItems;
|
|
11
|
+
private static bindLineItem;
|
|
12
|
+
private static doClone;
|
|
13
|
+
private static getQuantity;
|
|
14
|
+
private static getPortMax;
|
|
15
|
+
private static getPortMin;
|
|
16
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DynamicDialogConfig, DynamicDialogRef } from 'primeng/dynamicdialog';
|
|
2
|
+
import { FlowDialogConfig } from './dialog.types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FlowDialogComponent {
|
|
5
|
+
private dialogConfig;
|
|
6
|
+
private ref;
|
|
7
|
+
config: FlowDialogConfig;
|
|
8
|
+
constructor(dialogConfig: DynamicDialogConfig, ref: DynamicDialogRef);
|
|
9
|
+
cancelHandler(): void;
|
|
10
|
+
confirmHandler(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FlowDialogComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FlowDialogComponent, "vl-flow-dialog", never, {}, {}, never, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./dialog.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "primeng/button";
|
|
5
|
+
export declare class FlowDialogModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FlowDialogModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FlowDialogModule, [typeof i1.FlowDialogComponent], [typeof i2.CommonModule, typeof i3.ButtonModule], [typeof i1.FlowDialogComponent]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FlowDialogModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { AfterViewInit, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import { FlowConfigurationService, ProductImagesService } from '@veloce/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
|
+
overlayPanel: OverlayPanel;
|
|
14
|
+
products: HeaderProduct[];
|
|
15
|
+
form: FormGroup;
|
|
16
|
+
readonlyProductId$: Observable<string | null>;
|
|
17
|
+
private shouldUpdate$;
|
|
18
|
+
private destroyed$;
|
|
19
|
+
constructor(flowConfiguration: FlowConfigurationService, routerService: FlowRouterService, productImagesService: ProductImagesService);
|
|
20
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
21
|
+
ngAfterViewInit(): void;
|
|
22
|
+
ngOnDestroy(): void;
|
|
23
|
+
getImageUrl(productId: string): Observable<string | null>;
|
|
24
|
+
navigateToProductConfiguration(productId: string, lineItemId: string): void;
|
|
25
|
+
controlBlurHandler(product: HeaderProduct): void;
|
|
26
|
+
deleteHandler(product: HeaderProduct): void;
|
|
27
|
+
deleteAllHandler(): void;
|
|
28
|
+
private updateControls;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CartPreviewComponent, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CartPreviewComponent, "vl-cart-preview", never, { "products": "products"; }, {}, never, never>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
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 "@veloce/components";
|
|
8
|
+
import * as i7 from "primeng/inputnumber";
|
|
9
|
+
export declare class CartPreviewModule {
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CartPreviewModule, never>;
|
|
11
|
+
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 i1.CartPreviewComponent]>;
|
|
12
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CartPreviewModule>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { QuoteApiService, SalesforceApiService } from '@veloce/api';
|
|
3
|
+
import { ContextProperties } from '@veloce/core';
|
|
4
|
+
import { ContextService, FlowConfigurationService, QuoteDraftService } from '@veloce/sdk/core';
|
|
5
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
6
|
+
import { FlowDialogService } from '../../services/flow-dialog.service';
|
|
7
|
+
import { FlowRouterService } from '../../services/flow-router.service';
|
|
8
|
+
import { HeaderObjectDetails, HeaderProduct } from './header.types';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class FlowHeaderComponent implements OnInit, OnDestroy {
|
|
11
|
+
private contextService;
|
|
12
|
+
private quoteDraftService;
|
|
13
|
+
private quoteApiService;
|
|
14
|
+
private sfApiService;
|
|
15
|
+
private flowConfiguration;
|
|
16
|
+
private routerService;
|
|
17
|
+
private dialogService;
|
|
18
|
+
readonly disabledActionButtonTooltip = "Available from the Shopping Cart";
|
|
19
|
+
objectName: string;
|
|
20
|
+
contextProperties: ContextProperties;
|
|
21
|
+
status$: Observable<string>;
|
|
22
|
+
objectDetails$: BehaviorSubject<HeaderObjectDetails>;
|
|
23
|
+
products$: Observable<HeaderProduct[]>;
|
|
24
|
+
isConfigurationRoute$: Observable<boolean>;
|
|
25
|
+
isCartRoute$: Observable<boolean>;
|
|
26
|
+
isCatalogRoute$: Observable<boolean>;
|
|
27
|
+
isEditMode$: Observable<boolean>;
|
|
28
|
+
isSaveInProgress$: BehaviorSubject<boolean>;
|
|
29
|
+
isSubmitInProgress$: BehaviorSubject<boolean>;
|
|
30
|
+
private mode?;
|
|
31
|
+
private destroyed$;
|
|
32
|
+
constructor(contextService: ContextService, quoteDraftService: QuoteDraftService, quoteApiService: QuoteApiService, sfApiService: SalesforceApiService, flowConfiguration: FlowConfigurationService, routerService: FlowRouterService, dialogService: FlowDialogService);
|
|
33
|
+
ngOnInit(): void;
|
|
34
|
+
ngOnDestroy(): void;
|
|
35
|
+
get isAccountMode(): boolean;
|
|
36
|
+
get isQuoteMode(): boolean;
|
|
37
|
+
back(): void;
|
|
38
|
+
getSalesforceObjectLink(objectId?: string): string;
|
|
39
|
+
navigateToShoppingCart(): void;
|
|
40
|
+
navigateToCatalog(): void;
|
|
41
|
+
saveButtonClickHandler(): void;
|
|
42
|
+
submitButtonClickHandler(): void;
|
|
43
|
+
private queryName$;
|
|
44
|
+
private populateObjectDetails;
|
|
45
|
+
private generateProducts;
|
|
46
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FlowHeaderComponent, never>;
|
|
47
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FlowHeaderComponent, "vl-flow-header", never, {}, {}, never, never>;
|
|
48
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./header.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "primeng/overlaypanel";
|
|
5
|
+
import * as i4 from "@veloce/components";
|
|
6
|
+
import * as i5 from "primeng/tooltip";
|
|
7
|
+
import * as i6 from "primeng/button";
|
|
8
|
+
import * as i7 from "./cart-overlay/cart-preview.module";
|
|
9
|
+
export declare class FlowHeaderModule {
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FlowHeaderModule, never>;
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FlowHeaderModule, [typeof i1.FlowHeaderComponent], [typeof i2.CommonModule, typeof i3.OverlayPanelModule, typeof i4.LetDirectiveModule, typeof i5.TooltipModule, typeof i6.ButtonModule, typeof i7.CartPreviewModule], [typeof i1.FlowHeaderComponent]>;
|
|
12
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FlowHeaderModule>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface HeaderObjectDetails {
|
|
2
|
+
accountId?: string;
|
|
3
|
+
accountName?: string;
|
|
4
|
+
opportunityId?: string;
|
|
5
|
+
opportunityName?: string;
|
|
6
|
+
quoteId?: string;
|
|
7
|
+
quoteName?: string;
|
|
8
|
+
quoteNumber?: string;
|
|
9
|
+
priceListName?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface HeaderProduct {
|
|
12
|
+
id: string;
|
|
13
|
+
productId: string;
|
|
14
|
+
name: string;
|
|
15
|
+
configurable: boolean;
|
|
16
|
+
qty: number;
|
|
17
|
+
mrr: number;
|
|
18
|
+
nrr: number;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const VELOCE_FLOW_ROOT_ROUTE = "VELOCE_FLOW_ROOT_ROUTE";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/router";
|
|
3
|
+
import * as i2 from "./pages/product/product.module";
|
|
4
|
+
import * as i3 from "./pages/legacy-product/legacy-product.module";
|
|
5
|
+
import * as i4 from "./pages/shopping-cart/shopping-cart.module";
|
|
6
|
+
import * as i5 from "./pages/catalog/catalog.module";
|
|
7
|
+
export declare class FlowRoutingModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FlowRoutingModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FlowRoutingModule, never, [typeof i1.RouterModule, typeof i2.ProductModule, typeof i3.LegacyProductModule, typeof i4.ShoppingCartModule, typeof i5.CatalogModule], [typeof i1.RouterModule]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FlowRoutingModule>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { QuoteDraftService } from '@veloce/sdk/core';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { FlowService } from './services';
|
|
5
|
+
import { FlowRouterService } from './services/flow-router.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class FlowComponent implements OnDestroy {
|
|
8
|
+
private routerService;
|
|
9
|
+
private quoteDraftService;
|
|
10
|
+
private flowService;
|
|
11
|
+
isLoading$: Observable<boolean>;
|
|
12
|
+
showHeader$: Observable<boolean>;
|
|
13
|
+
constructor(routerService: FlowRouterService, quoteDraftService: QuoteDraftService, flowService: FlowService);
|
|
14
|
+
ngOnDestroy(): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FlowComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FlowComponent, "vl-flow", never, {}, {}, never, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./flow.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "./flow-routing.module";
|
|
5
|
+
import * as i4 from "@veloce/api";
|
|
6
|
+
import * as i5 from "@veloce/sdk/cms";
|
|
7
|
+
import * as i6 from "@veloce/components";
|
|
8
|
+
import * as i7 from "./components/header/header.module";
|
|
9
|
+
import * as i8 from "./components/dialog/dialog.module";
|
|
10
|
+
import * as i9 from "@veloce/sdk/core";
|
|
11
|
+
export declare class FlowModule {
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FlowModule, never>;
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FlowModule, [typeof i1.FlowComponent], [typeof i2.CommonModule, typeof i3.FlowRoutingModule, typeof i4.ApiModule, typeof i5.LauncherModule, typeof i6.LoaderModule, typeof i7.FlowHeaderModule, typeof i8.FlowDialogModule, typeof i9.SdkCoreModule], never>;
|
|
14
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FlowModule>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ActivatedRouteSnapshot, CanActivate, CanActivateChild, Router } from '@angular/router';
|
|
2
|
+
import { ContextService } from '@veloce/sdk/core';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { FlowRouterService } from '../services/flow-router.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ContextGuard implements CanActivate, CanActivateChild {
|
|
7
|
+
private router;
|
|
8
|
+
private routerService;
|
|
9
|
+
private contextService;
|
|
10
|
+
constructor(router: Router, routerService: FlowRouterService, contextService: ContextService);
|
|
11
|
+
checkActivation(route: ActivatedRouteSnapshot): Observable<boolean>;
|
|
12
|
+
canActivate(route: ActivatedRouteSnapshot): Observable<boolean> | Promise<boolean> | boolean;
|
|
13
|
+
canActivateChild(childRoute: ActivatedRouteSnapshot): Observable<boolean> | Promise<boolean> | boolean;
|
|
14
|
+
private getConfigurationContextMode;
|
|
15
|
+
private handleError;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContextGuard, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ContextGuard>;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './context.guard';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { ActivatedRouteSnapshot, CanDeactivate, Router, RouterStateSnapshot } from '@angular/router';
|
|
3
|
+
import { ConfigurationService, ContextService, QuoteDraftService } from '@veloce/sdk/core';
|
|
4
|
+
import { FlowDialogService } from '../services/flow-dialog.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ProductUnloadGuard implements CanDeactivate<any> {
|
|
7
|
+
private router;
|
|
8
|
+
private contextService;
|
|
9
|
+
private quoteDraftService;
|
|
10
|
+
private configurationService;
|
|
11
|
+
private flowDialogService;
|
|
12
|
+
constructor(router: Router, contextService: ContextService, quoteDraftService: QuoteDraftService, configurationService: ConfigurationService, flowDialogService: FlowDialogService);
|
|
13
|
+
canDeactivate(_: Component, route: ActivatedRouteSnapshot, currentState: RouterStateSnapshot, nextState?: RouterStateSnapshot): import("rxjs").Observable<boolean>;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductUnloadGuard, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ProductUnloadGuard>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ActivatedRouteSnapshot, CanActivate, CanDeactivate, Router } from '@angular/router';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { FlowRouterService } from '../services/flow-router.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class RootGuard implements CanActivate, CanDeactivate<any> {
|
|
6
|
+
private router;
|
|
7
|
+
private routerService;
|
|
8
|
+
private initialized;
|
|
9
|
+
private navToRestore;
|
|
10
|
+
constructor(router: Router, routerService: FlowRouterService);
|
|
11
|
+
canActivate(route: ActivatedRouteSnapshot): Observable<boolean> | Promise<boolean> | boolean;
|
|
12
|
+
canDeactivate(): boolean;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RootGuard, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RootGuard>;
|
|
15
|
+
}
|
package/src/index.d.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { UITemplatesApiService } from '@veloce/api';
|
|
3
|
+
import { ToastService } from '@veloce/components';
|
|
4
|
+
import { ContextService, UIDefinition } from '@veloce/sdk/core';
|
|
5
|
+
import { BehaviorSubject } from 'rxjs';
|
|
6
|
+
import { FlowCustomization } from '../../types';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
interface State {
|
|
9
|
+
loading: boolean;
|
|
10
|
+
failure: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare class CatalogComponent implements OnInit, OnDestroy {
|
|
13
|
+
private templatesApi;
|
|
14
|
+
private contextService;
|
|
15
|
+
private cdr;
|
|
16
|
+
private toastService;
|
|
17
|
+
private customizationService?;
|
|
18
|
+
uiDefinition?: UIDefinition;
|
|
19
|
+
state$: BehaviorSubject<State>;
|
|
20
|
+
private templateApiName;
|
|
21
|
+
private destroyed$;
|
|
22
|
+
constructor(templatesApi: UITemplatesApiService, contextService: ContextService, cdr: ChangeDetectorRef, toastService: ToastService, customizationService?: FlowCustomization | undefined);
|
|
23
|
+
ngOnInit(): void;
|
|
24
|
+
ngOnDestroy(): void;
|
|
25
|
+
private getTemplateRootComponent$;
|
|
26
|
+
private getLocalCatalogComponentMeta$;
|
|
27
|
+
private getCatalogComponentMeta$;
|
|
28
|
+
private generateUIDefinition$;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogComponent, [null, null, null, null, { optional: true; }]>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CatalogComponent, "vl-flow-catalog", never, {}, {}, never, never>;
|
|
31
|
+
}
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./catalog.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@veloce/sdk/cms";
|
|
5
|
+
import * as i4 from "@veloce/components";
|
|
6
|
+
export declare class CatalogModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CatalogModule, [typeof i1.CatalogComponent], [typeof i2.CommonModule, typeof i3.PreviewModule, typeof i4.LoaderModule], [typeof i1.CatalogComponent]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CatalogModule>;
|
|
10
|
+
}
|