@veloceapps/sdk 5.0.13-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/bundles/veloceapps-sdk-cms.umd.js +1975 -0
- package/bundles/veloceapps-sdk-cms.umd.js.map +1 -0
- package/bundles/veloceapps-sdk-core.umd.js +1610 -0
- package/bundles/veloceapps-sdk-core.umd.js.map +1 -0
- package/bundles/veloceapps-sdk-runtime.umd.js +4349 -0
- package/bundles/veloceapps-sdk-runtime.umd.js.map +1 -0
- package/bundles/veloceapps-sdk.umd.js +3307 -0
- package/bundles/veloceapps-sdk.umd.js.map +1 -0
- package/cms/cms.actions.d.ts +28 -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 +36 -0
- package/cms/components/element-renderer/element-renderer.module.d.ts +7 -0
- package/cms/components/element.component.d.ts +17 -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 +14 -0
- package/cms/types/common.types.d.ts +108 -0
- package/cms/types/compilation.types.d.ts +6 -0
- package/cms/types/configuration.types.d.ts +20 -0
- package/cms/types/elements.types.d.ts +2 -0
- package/cms/types/index.d.ts +7 -0
- package/cms/types/integration.types.d.ts +4 -0
- package/cms/types/metrics.types.d.ts +5 -0
- package/cms/types/path.types.d.ts +11 -0
- package/cms/utils/element.utils.d.ts +17 -0
- package/cms/utils/elements-resolver.d.ts +24 -0
- package/cms/utils/index.d.ts +3 -0
- package/cms/utils/path.utils.d.ts +5 -0
- package/cms/veloceapps-sdk-cms.d.ts +5 -0
- package/cms/vendor-map.d.ts +708 -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 +29 -0
- package/core/modules/configuration/services/configuration.service.d.ts +45 -0
- package/core/modules/configuration/services/runtime-context.service.d.ts +12 -0
- package/core/modules/configuration/types/configuration-runtime.types.d.ts +7 -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 +38 -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 +18 -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 +62 -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/veloceapps-sdk-core.d.ts +5 -0
- package/esm2015/cms/cms.actions.js +47 -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 +169 -0
- package/esm2015/cms/components/element-renderer/element-renderer.module.js +16 -0
- package/esm2015/cms/components/element.component.js +44 -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 +108 -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 +98 -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 +31 -0
- package/esm2015/cms/types/common.types.js +2 -0
- package/esm2015/cms/types/compilation.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 +8 -0
- package/esm2015/cms/types/integration.types.js +2 -0
- package/esm2015/cms/types/metrics.types.js +2 -0
- package/esm2015/cms/types/path.types.js +2 -0
- package/esm2015/cms/utils/element.utils.js +161 -0
- package/esm2015/cms/utils/elements-resolver.js +147 -0
- package/esm2015/cms/utils/index.js +4 -0
- package/esm2015/cms/utils/path.utils.js +67 -0
- package/esm2015/cms/veloceapps-sdk-cms.js +5 -0
- package/esm2015/cms/vendor-map.js +34 -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 +92 -0
- package/esm2015/core/modules/configuration/services/configuration.service.js +173 -0
- package/esm2015/core/modules/configuration/services/runtime-context.service.js +51 -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 +135 -0
- package/esm2015/core/modules/flow-configuration/services/flow-update.service.js +129 -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 +50 -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 +207 -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 +100 -0
- package/esm2015/core/utils/line-item.worker.js +19 -0
- package/esm2015/core/veloceapps-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 +429 -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 +27 -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/veloceapps-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/doc-gen/doc-gen.component.js +109 -0
- package/esm2015/src/components/doc-gen/doc-gen.module.js +19 -0
- package/esm2015/src/components/header/cart-overlay/cart-preview.component.js +122 -0
- package/esm2015/src/components/header/cart-overlay/cart-preview.module.js +46 -0
- package/esm2015/src/components/header/header.component.js +310 -0
- package/esm2015/src/components/header/header.module.js +50 -0
- package/esm2015/src/components/header/header.types.js +2 -0
- package/esm2015/src/components/header/metrics/index.js +2 -0
- package/esm2015/src/components/header/metrics/metrics.component.js +216 -0
- package/esm2015/src/components/header/metrics/metrics.definitions.js +9 -0
- package/esm2015/src/components/header/metrics/metrics.module.js +67 -0
- package/esm2015/src/constants.js +2 -0
- package/esm2015/src/flow-routing.module.js +137 -0
- package/esm2015/src/flow.component.js +45 -0
- package/esm2015/src/flow.module.js +60 -0
- package/esm2015/src/guards/context.guard.js +84 -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 +61 -0
- package/esm2015/src/pages/debug/debug.module.js +48 -0
- package/esm2015/src/pages/empty-account/empty-account.component.js +17 -0
- package/esm2015/src/pages/empty-account/empty-account.module.js +20 -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 +108 -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/remote/remote.component.js +353 -0
- package/esm2015/src/pages/remote/remote.module.js +20 -0
- package/esm2015/src/pages/remote/remote.types.js +2 -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 +62 -0
- package/esm2015/src/resolvers/quote.resolver.js +74 -0
- package/esm2015/src/services/doc-gen.service.js +33 -0
- package/esm2015/src/services/flow-dialog.service.js +123 -0
- package/esm2015/src/services/flow-router.service.js +136 -0
- package/esm2015/src/services/flow.service.js +77 -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 +22 -0
- package/esm2015/src/utils/index.js +2 -0
- package/esm2015/veloceapps-sdk.js +5 -0
- package/fesm2015/veloceapps-sdk-cms.js +1443 -0
- package/fesm2015/veloceapps-sdk-cms.js.map +1 -0
- package/fesm2015/veloceapps-sdk-core.js +1035 -0
- package/fesm2015/veloceapps-sdk-core.js.map +1 -0
- package/fesm2015/veloceapps-sdk-runtime.js +3896 -0
- package/fesm2015/veloceapps-sdk-runtime.js.map +1 -0
- package/fesm2015/veloceapps-sdk.js +2758 -0
- package/fesm2015/veloceapps-sdk.js.map +1 -0
- package/index.d.ts +1 -0
- package/package.json +50 -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/veloceapps-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/doc-gen/doc-gen.component.d.ts +26 -0
- package/src/components/doc-gen/doc-gen.module.d.ts +9 -0
- package/src/components/header/cart-overlay/cart-preview.component.d.ts +36 -0
- package/src/components/header/cart-overlay/cart-preview.module.d.ts +14 -0
- package/src/components/header/header.component.d.ts +64 -0
- package/src/components/header/header.module.d.ts +15 -0
- package/src/components/header/header.types.d.ts +20 -0
- package/src/components/header/metrics/index.d.ts +1 -0
- package/src/components/header/metrics/metrics.component.d.ts +49 -0
- package/src/components/header/metrics/metrics.definitions.d.ts +4 -0
- package/src/components/header/metrics/metrics.module.d.ts +17 -0
- package/src/constants.d.ts +1 -0
- package/src/flow-routing.module.d.ts +13 -0
- package/src/flow.component.d.ts +23 -0
- package/src/flow.module.d.ts +16 -0
- package/src/guards/context.guard.d.ts +19 -0
- package/src/guards/index.d.ts +1 -0
- package/src/guards/product-unload.guard.d.ts +17 -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 +25 -0
- package/src/pages/debug/debug.module.d.ts +14 -0
- package/src/pages/empty-account/empty-account.component.d.ts +5 -0
- package/src/pages/empty-account/empty-account.module.d.ts +10 -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 +32 -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/remote/remote.component.d.ts +47 -0
- package/src/pages/remote/remote.module.d.ts +10 -0
- package/src/pages/remote/remote.types.d.ts +4 -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 +16 -0
- package/src/resolvers/quote.resolver.d.ts +20 -0
- package/src/services/doc-gen.service.d.ts +13 -0
- package/src/services/flow-dialog.service.d.ts +26 -0
- package/src/services/flow-router.service.d.ts +36 -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 +8 -0
- package/src/utils/index.d.ts +1 -0
- package/veloceapps-sdk.d.ts +5 -0
package/index.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export * from './src';
|
package/package.json
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
{
|
2
|
+
"name": "@veloceapps/sdk",
|
3
|
+
"version": "5.0.13-0",
|
4
|
+
"private": false,
|
5
|
+
"peerDependencies": {
|
6
|
+
"@angular/animations": "^12.2.0",
|
7
|
+
"@angular/common": "^12.2.0",
|
8
|
+
"@angular/core": "^12.2.0",
|
9
|
+
"@angular/forms": "^12.2.0",
|
10
|
+
"@angular/platform-browser-dynamic": "^12.2.0",
|
11
|
+
"@angular/platform-browser": "^12.2.0",
|
12
|
+
"@veloceapps/core": "5.0.0",
|
13
|
+
"@veloceapps/api": "5.0.0",
|
14
|
+
"@veloceapps/components": "5.0.0",
|
15
|
+
"ionicons": "^4.6.3",
|
16
|
+
"rxjs": "^7.3.0",
|
17
|
+
"zone.js": "~0.11.4",
|
18
|
+
"lodash": "^4.17.21",
|
19
|
+
"brotli-wasm": "^1.2.0",
|
20
|
+
"pako": "^1.0.11",
|
21
|
+
"primeng": "^12.2.2",
|
22
|
+
"angular-expressions": "^1.1.4",
|
23
|
+
"docxtemplater": "^3.28.1",
|
24
|
+
"pizzip": "^3.1.1",
|
25
|
+
"@aws-sdk/client-xray": "^3.40.0",
|
26
|
+
"monaco-editor": "^0.30.1",
|
27
|
+
"@angular/router": "^12.2.0",
|
28
|
+
"jshashes": "^1.0.8",
|
29
|
+
"@veloce/elements": "^1.1.2",
|
30
|
+
"ngx-bootstrap": "^5.6.2"
|
31
|
+
},
|
32
|
+
"dependencies": {
|
33
|
+
"@angular/cdk": "^12.2.12",
|
34
|
+
"@angular/cdk-experimental": "^13.1.0",
|
35
|
+
"@angular/compiler": "^12.2.0",
|
36
|
+
"@babel/standalone": "^7.17.1",
|
37
|
+
"moment": "^2.29.1",
|
38
|
+
"tslib": "^2.2.0"
|
39
|
+
},
|
40
|
+
"sideEffects": false,
|
41
|
+
"publishConfig": {
|
42
|
+
"access": "public"
|
43
|
+
},
|
44
|
+
"main": "bundles/veloceapps-sdk.umd.js",
|
45
|
+
"module": "fesm2015/veloceapps-sdk.js",
|
46
|
+
"es2015": "fesm2015/veloceapps-sdk.js",
|
47
|
+
"esm2015": "esm2015/veloceapps-sdk.js",
|
48
|
+
"fesm2015": "fesm2015/veloceapps-sdk.js",
|
49
|
+
"typings": "veloceapps-sdk.d.ts"
|
50
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { ChangeDetectorRef, OnChanges, SimpleChanges } from '@angular/core';
|
2
|
+
import { FormGroup } from '@angular/forms';
|
3
|
+
import { ComponentStoryPreview, Section } from '@veloceapps/core';
|
4
|
+
import { FormScopeService } from '../../services/form-scope.service';
|
5
|
+
import { RuntimeFormService } from '../../services/runtime-form.service';
|
6
|
+
import { RuntimeService } from '../../services/runtime.service';
|
7
|
+
import { SectionsService } from '../../services/section.service';
|
8
|
+
import * as i0 from "@angular/core";
|
9
|
+
export declare class ComponentPreviewComponent implements OnChanges {
|
10
|
+
private sectionsService;
|
11
|
+
private runtimeFormService;
|
12
|
+
private formScope;
|
13
|
+
private runtimeService;
|
14
|
+
private cdr;
|
15
|
+
data?: ComponentStoryPreview;
|
16
|
+
form: FormGroup;
|
17
|
+
section?: Section;
|
18
|
+
showPreview: boolean;
|
19
|
+
isNoPreviewAvailable: boolean;
|
20
|
+
isPreviewFailed: boolean;
|
21
|
+
constructor(sectionsService: SectionsService, runtimeFormService: RuntimeFormService, formScope: FormScopeService, runtimeService: RuntimeService, cdr: ChangeDetectorRef);
|
22
|
+
ngOnChanges(changes: SimpleChanges): void;
|
23
|
+
runPreview(data: ComponentStoryPreview): void;
|
24
|
+
createRuntimeContext(section: Section): void;
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ComponentPreviewComponent, never>;
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ComponentPreviewComponent, "vl-component-preview", never, { "data": "data"; }, {}, never, never>;
|
27
|
+
}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
export { ComponentPreviewComponent } from './component-preview/component-preview.component';
|
2
|
+
export { SectionRendererComponent } from './section-renderer/section-renderer.component';
|
3
|
+
export { RuntimePreviewComponent } from './ui-runtime-preview/runtime-preview.component';
|
4
|
+
export { RuntimeComponent } from './ui-runtime/runtime.component';
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { AfterViewInit, Injector, NgModuleRef, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
|
2
|
+
import { FormGroup } from '@angular/forms';
|
3
|
+
import { Section } from '@veloceapps/core';
|
4
|
+
import { SectionScopeService } from '../../services/section-scope.service';
|
5
|
+
import { SectionStoreService } from '../../services/section-store.service';
|
6
|
+
import * as i0 from "@angular/core";
|
7
|
+
export declare class SectionRendererComponent implements OnInit, AfterViewInit, OnDestroy {
|
8
|
+
private _injector;
|
9
|
+
private _m;
|
10
|
+
private sectionScope;
|
11
|
+
private sectionStore;
|
12
|
+
private _section;
|
13
|
+
set section(value: Section);
|
14
|
+
get section(): Section;
|
15
|
+
form: FormGroup;
|
16
|
+
constructor(_injector: Injector, _m: NgModuleRef<any>, sectionScope: SectionScopeService, sectionStore: SectionStoreService);
|
17
|
+
container: ViewContainerRef;
|
18
|
+
private componentRef;
|
19
|
+
ngOnInit(): void;
|
20
|
+
ngAfterViewInit(): void;
|
21
|
+
ngOnDestroy(): void;
|
22
|
+
renderSection(): void;
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SectionRendererComponent, never>;
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SectionRendererComponent, "vl-section-renderer", never, { "section": "section"; "form": "form"; }, {}, never, never>;
|
25
|
+
}
|
@@ -0,0 +1,53 @@
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
2
|
+
import { FormGroup } from '@angular/forms';
|
3
|
+
import { LineItem, OrderByPipe, SearchFilterPipe, Section, UITab } from '@veloceapps/core';
|
4
|
+
import { ContextService } from '@veloceapps/sdk/core';
|
5
|
+
import { MessageService } from 'primeng/api';
|
6
|
+
import { CollapsibleStateService } from '../../services/collapsible-state.service';
|
7
|
+
import { FormScopeService } from '../../services/form-scope.service';
|
8
|
+
import { RuntimeFormService } from '../../services/runtime-form.service';
|
9
|
+
import { RuntimeService } from '../../services/runtime.service';
|
10
|
+
import { SectionsService } from '../../services/section.service';
|
11
|
+
import { LegacyRuntimeContext, SolutionReadyAware } from '../../types';
|
12
|
+
import * as i0 from "@angular/core";
|
13
|
+
export declare class RuntimeComponent implements OnInit, OnDestroy, SolutionReadyAware {
|
14
|
+
private sectionsService;
|
15
|
+
private formScope;
|
16
|
+
private collapsibleState;
|
17
|
+
private formService;
|
18
|
+
private runtimeService;
|
19
|
+
private messageService;
|
20
|
+
private contextService;
|
21
|
+
private orderByPipe;
|
22
|
+
private searchFilterPipe;
|
23
|
+
private cdr;
|
24
|
+
readonly messageBucketId = "ui.runtime";
|
25
|
+
sortedSections: Section[];
|
26
|
+
staticSections: Section[];
|
27
|
+
runtimeContext: LegacyRuntimeContext;
|
28
|
+
solutionLineItem: LineItem;
|
29
|
+
form: FormGroup;
|
30
|
+
activeUITab?: UITab;
|
31
|
+
solutionIsReady: boolean;
|
32
|
+
private readonly unsubscribe;
|
33
|
+
private readonly solutionUpdated;
|
34
|
+
constructor(sectionsService: SectionsService, formScope: FormScopeService, collapsibleState: CollapsibleStateService, formService: RuntimeFormService, runtimeService: RuntimeService, messageService: MessageService, contextService: ContextService, orderByPipe: OrderByPipe, searchFilterPipe: SearchFilterPipe, cdr: ChangeDetectorRef);
|
35
|
+
private adjustPrice;
|
36
|
+
ngOnInit(): void;
|
37
|
+
onSolutionReady(lineItem: LineItem): void;
|
38
|
+
private handleSolutionUpdate;
|
39
|
+
private handleSolutionFailedUpdate;
|
40
|
+
private updateCardinalityVariable;
|
41
|
+
private createLineItem;
|
42
|
+
ngOnDestroy(): void;
|
43
|
+
private startRuntime;
|
44
|
+
private updateRuntime;
|
45
|
+
addToCart(): void;
|
46
|
+
processSolution(isUpdate?: boolean, isError?: boolean): void;
|
47
|
+
hideModal(): void;
|
48
|
+
private updateLineItemsSectionPath;
|
49
|
+
private filterAndSort;
|
50
|
+
private findSection;
|
51
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeComponent, never>;
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RuntimeComponent, "vl-runtime", never, {}, { "solutionUpdated": "solutionUpdated"; }, never, never>;
|
53
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
2
|
+
import { ConfigurationApiService } from '@veloceapps/api';
|
3
|
+
import { LineItem, UIDefinition } from '@veloceapps/core';
|
4
|
+
import { ContextService } from '@veloceapps/sdk/core';
|
5
|
+
import { ProductModelCacheService } from '../../services/product-model-cache.service';
|
6
|
+
import { RuntimeService } from '../../services/runtime.service';
|
7
|
+
import * as i0 from "@angular/core";
|
8
|
+
export declare class RuntimePreviewComponent implements OnInit, OnDestroy {
|
9
|
+
private runtimeService;
|
10
|
+
private modelCacheService;
|
11
|
+
private configurationApiService;
|
12
|
+
private contextService;
|
13
|
+
modelId?: string;
|
14
|
+
set uiDefinition(value: UIDefinition);
|
15
|
+
private _uiDefinition?;
|
16
|
+
private initialisedUiDefinition?;
|
17
|
+
private productModelContainer?;
|
18
|
+
private destroy$;
|
19
|
+
constructor(runtimeService: RuntimeService, modelCacheService: ProductModelCacheService, configurationApiService: ConfigurationApiService, contextService: ContextService);
|
20
|
+
ngOnInit(): void;
|
21
|
+
ngOnDestroy(): void;
|
22
|
+
initDefinition(uiDefinition: UIDefinition): void;
|
23
|
+
onSolutionUpdated(lineItem: LineItem): void;
|
24
|
+
private launchRuntime;
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RuntimePreviewComponent, never>;
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RuntimePreviewComponent, "vl-runtime-preview", never, { "modelId": "modelId"; "uiDefinition": "uiDefinition"; }, {}, never, never>;
|
27
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
2
|
+
import { FormGroup } from '@angular/forms';
|
3
|
+
import { Section } from '@veloceapps/core';
|
4
|
+
import { Subscription } from 'rxjs';
|
5
|
+
import { CollapsibleStateService } from '../../../services/collapsible-state.service';
|
6
|
+
import { FormScopeService } from '../../../services/form-scope.service';
|
7
|
+
import { SectionScopeService } from '../../../services/section-scope.service';
|
8
|
+
import * as i0 from "@angular/core";
|
9
|
+
export declare class ChildrenPlaceholderComponent implements OnInit, OnChanges, OnDestroy {
|
10
|
+
private sectionScope;
|
11
|
+
private formScope;
|
12
|
+
private collapsibleState;
|
13
|
+
children?: Section[];
|
14
|
+
_children: Section[];
|
15
|
+
section: Section;
|
16
|
+
form: FormGroup;
|
17
|
+
sub: Subscription;
|
18
|
+
collapsed: boolean;
|
19
|
+
constructor(sectionScope: SectionScopeService, formScope: FormScopeService, collapsibleState: CollapsibleStateService);
|
20
|
+
ngOnInit(): void;
|
21
|
+
ngOnChanges(changes: SimpleChanges): void;
|
22
|
+
setChildren(): void;
|
23
|
+
ngOnDestroy(): void;
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChildrenPlaceholderComponent, never>;
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChildrenPlaceholderComponent, "children-placeholder", never, { "children": "children"; }, {}, never, never>;
|
26
|
+
}
|
27
|
+
export declare class TemplateComponent extends ChildrenPlaceholderComponent {
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TemplateComponent, never>;
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TemplateComponent, "template-component", never, {}, {}, never, never>;
|
30
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { OnInit } from '@angular/core';
|
2
|
+
import { ProductType, RuntimeProduct, RuntimeType } from '@veloceapps/core';
|
3
|
+
import { Dictionary } from 'lodash';
|
4
|
+
import { RuntimeService } from '../../../services/runtime.service';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
export declare class ContextProviderComponent implements OnInit {
|
7
|
+
private runtimeService;
|
8
|
+
types: (RuntimeType | ProductType)[];
|
9
|
+
products: Dictionary<RuntimeProduct[]>;
|
10
|
+
constructor(runtimeService: RuntimeService);
|
11
|
+
ngOnInit(): void;
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContextProviderComponent, never>;
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContextProviderComponent, "vl-context-provider", never, { "types": "types"; "products": "products"; }, {}, never, never>;
|
14
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { AfterViewInit, Injector, NgModuleRef, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
|
2
|
+
import { FormGroup } from '@angular/forms';
|
3
|
+
import { Section } from '@veloceapps/core';
|
4
|
+
import { SectionScopeService } from '../../../services/section-scope.service';
|
5
|
+
import { SectionStoreService } from '../../../services/section-store.service';
|
6
|
+
import * as i0 from "@angular/core";
|
7
|
+
export declare class ExecutionSectionRendererComponent implements OnInit, AfterViewInit, OnDestroy {
|
8
|
+
private _injector;
|
9
|
+
private _m;
|
10
|
+
private sectionScope;
|
11
|
+
private sectionStore;
|
12
|
+
private _section;
|
13
|
+
set section(value: Section);
|
14
|
+
get section(): Section;
|
15
|
+
form: FormGroup;
|
16
|
+
constructor(_injector: Injector, _m: NgModuleRef<any>, sectionScope: SectionScopeService, sectionStore: SectionStoreService);
|
17
|
+
container: ViewContainerRef;
|
18
|
+
private componentRef;
|
19
|
+
ngOnInit(): void;
|
20
|
+
ngAfterViewInit(): void;
|
21
|
+
ngOnDestroy(): void;
|
22
|
+
renderSection(): void;
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExecutionSectionRendererComponent, never>;
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ExecutionSectionRendererComponent, "section-renderer", never, { "section": "section"; "form": "form"; }, {}, never, never>;
|
25
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
import { AfterViewInit, ApplicationRef, Compiler, ElementRef, Injector, OnChanges, Renderer2, SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core';
|
2
|
+
import { LineItem } from '@veloceapps/core';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
declare enum IntegrationEvent {
|
5
|
+
Init = "Init"
|
6
|
+
}
|
7
|
+
interface InputData {
|
8
|
+
rootLineItem: LineItem;
|
9
|
+
}
|
10
|
+
interface IntegrationEventPayload {
|
11
|
+
type: IntegrationEvent;
|
12
|
+
payload?: unknown;
|
13
|
+
}
|
14
|
+
export declare class FederatedComponent implements AfterViewInit, OnChanges {
|
15
|
+
private injector;
|
16
|
+
private compiler;
|
17
|
+
private appRef;
|
18
|
+
private renderer;
|
19
|
+
federatedComponent?: ViewContainerRef;
|
20
|
+
foo?: TemplateRef<unknown>;
|
21
|
+
moduleHostRef?: ElementRef;
|
22
|
+
remoteEntry?: string;
|
23
|
+
remoteName?: string;
|
24
|
+
exposedModule?: string;
|
25
|
+
data?: InputData;
|
26
|
+
eventData?: IntegrationEventPayload;
|
27
|
+
private integrationEvent;
|
28
|
+
moduleReady: boolean;
|
29
|
+
private instance?;
|
30
|
+
constructor(injector: Injector, compiler: Compiler, appRef: ApplicationRef, renderer: Renderer2);
|
31
|
+
ngAfterViewInit(): void;
|
32
|
+
ngOnChanges(changes: SimpleChanges): void;
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FederatedComponent, never>;
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FederatedComponent, "veloce-host-federated", never, { "remoteEntry": "remoteEntry"; "remoteName": "remoteName"; "exposedModule": "exposedModule"; "data": "data"; "eventData": "eventData"; }, { "integrationEvent": "integrationEvent"; }, never, never>;
|
35
|
+
}
|
36
|
+
export {};
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { OnInit } from '@angular/core';
|
2
|
+
import { FormScopeService } from '../../../services/form-scope.service';
|
3
|
+
import { SectionScopeService } from '../../../services/section-scope.service';
|
4
|
+
import { VeloAttributeDirective } from '../../directives/velo-attribute.directive';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
export declare class VeloAttributeComponent extends VeloAttributeDirective implements OnInit {
|
7
|
+
controlName: string;
|
8
|
+
displayName: string;
|
9
|
+
isMultiselect: boolean;
|
10
|
+
constructor(formScope: FormScopeService, sectionScope: SectionScopeService);
|
11
|
+
getValueOptions(valueOptions: unknown): (string | number)[];
|
12
|
+
getValueText(valueOptions: unknown, value: string | number): string;
|
13
|
+
handleMultiselectChange(value: string | number): void;
|
14
|
+
handleMultipleDropdownChange(event: any): void;
|
15
|
+
private isBooleanType;
|
16
|
+
private getDisplayName;
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VeloAttributeComponent, never>;
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VeloAttributeComponent, "velo-attribute", never, {}, {}, never, never>;
|
19
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { Overlay } from '@angular/cdk/overlay';
|
2
|
+
import { ElementRef, EventEmitter, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
|
3
|
+
import { ControlValueAccessor } from '@angular/forms';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
export declare class MultiselectComponent implements ControlValueAccessor, OnDestroy {
|
6
|
+
private elRef;
|
7
|
+
private viewContainerRef;
|
8
|
+
private overlay;
|
9
|
+
options?: any[];
|
10
|
+
selectionChange: EventEmitter<string[]>;
|
11
|
+
selected: string[];
|
12
|
+
displayValue: string;
|
13
|
+
touched: boolean;
|
14
|
+
disabled: boolean;
|
15
|
+
overlayTemplate: TemplateRef<any>;
|
16
|
+
opened: boolean;
|
17
|
+
private overlayRef?;
|
18
|
+
private dropdownClosingActionsSub?;
|
19
|
+
onChange: (selected: string[]) => void;
|
20
|
+
onTouched: () => void;
|
21
|
+
constructor(elRef: ElementRef, viewContainerRef: ViewContainerRef, overlay: Overlay);
|
22
|
+
ngOnDestroy(): void;
|
23
|
+
writeValue(selected: string[]): void;
|
24
|
+
registerOnChange(onChange: any): void;
|
25
|
+
registerOnTouched(onTouched: any): void;
|
26
|
+
setDisabledState(disabled: boolean): void;
|
27
|
+
handleSelection(value: any): void;
|
28
|
+
toggleOpened(): void;
|
29
|
+
private getDisplayValue;
|
30
|
+
private openDropdown;
|
31
|
+
private dropdownClosingActions;
|
32
|
+
private destroyDropdown;
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MultiselectComponent, never>;
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MultiselectComponent, "velo-multiselect", never, { "options": "options"; }, { "selectionChange": "selectionChange"; }, never, never>;
|
35
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { FormGroup } from '@angular/forms';
|
2
|
+
import { Section } from '@veloceapps/core';
|
3
|
+
import { FormScopeService } from '../../../services/form-scope.service';
|
4
|
+
import { SectionScopeService } from '../../../services/section-scope.service';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
export declare class VeloPortCheckBoxComponent {
|
7
|
+
private formScope;
|
8
|
+
private sectionScope;
|
9
|
+
controlName: string;
|
10
|
+
form: FormGroup;
|
11
|
+
section: Section;
|
12
|
+
showSelectAll: boolean;
|
13
|
+
constructor(formScope: FormScopeService, sectionScope: SectionScopeService);
|
14
|
+
handleChange(valueOption: string): void;
|
15
|
+
hasValueFor(valueOption: string): boolean;
|
16
|
+
selectAllChange(): void;
|
17
|
+
isAllSelected(): boolean;
|
18
|
+
getMessages(valueOption: string): string[];
|
19
|
+
private findLineItemForValue;
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VeloPortCheckBoxComponent, never>;
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VeloPortCheckBoxComponent, "velo-port-checkbox", never, { "showSelectAll": "showSelectAll"; }, {}, never, ["*"]>;
|
22
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { FormGroup } from '@angular/forms';
|
2
|
+
import { Section } from '@veloceapps/core';
|
3
|
+
import { Dictionary } from 'lodash';
|
4
|
+
import { FormScopeService } from '../../../services/form-scope.service';
|
5
|
+
import { SectionScopeService } from '../../../services/section-scope.service';
|
6
|
+
import * as i0 from "@angular/core";
|
7
|
+
export declare class VeloPortDropdownComponent {
|
8
|
+
private formScope;
|
9
|
+
private sectionScope;
|
10
|
+
controlName: string;
|
11
|
+
qtyControlName: string;
|
12
|
+
form: FormGroup;
|
13
|
+
section: Section;
|
14
|
+
prices: Dictionary<any>;
|
15
|
+
constructor(formScope: FormScopeService, sectionScope: SectionScopeService);
|
16
|
+
isAddAllowed(): boolean;
|
17
|
+
handleCreate(): void;
|
18
|
+
private findPriceItemsForValue;
|
19
|
+
private add;
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VeloPortDropdownComponent, never>;
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VeloPortDropdownComponent, "velo-port-dropdown", never, {}, {}, never, ["*"]>;
|
22
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { OnInit } from '@angular/core';
|
2
|
+
import { FormGroup } from '@angular/forms';
|
3
|
+
import { LineItem, RecommendedPrice, Section } from '@veloceapps/core';
|
4
|
+
import { Dictionary } from 'lodash';
|
5
|
+
import { FormScopeService } from '../../../services/form-scope.service';
|
6
|
+
import { SectionScopeService } from '../../../services/section-scope.service';
|
7
|
+
import * as i0 from "@angular/core";
|
8
|
+
export declare class VeloPortRadioComponent implements OnInit {
|
9
|
+
private formScope;
|
10
|
+
private sectionScope;
|
11
|
+
controlName: string;
|
12
|
+
form: FormGroup;
|
13
|
+
section: Section;
|
14
|
+
prices: Dictionary<any>;
|
15
|
+
constructor(formScope: FormScopeService, sectionScope: SectionScopeService);
|
16
|
+
ngOnInit(): void;
|
17
|
+
handleChange(event: any, valueOption: any): void;
|
18
|
+
hasValueFor(valueOption: string): boolean;
|
19
|
+
getMessages(valueOption: string): LineItem['messages'];
|
20
|
+
toString(price: RecommendedPrice): string;
|
21
|
+
private hasPreviousValue;
|
22
|
+
private findLineItemForValue;
|
23
|
+
private initPriceItems;
|
24
|
+
private findPriceItemsForValue;
|
25
|
+
private add;
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VeloPortRadioComponent, never>;
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VeloPortRadioComponent, "velo-port-radio", never, {}, {}, never, ["*", "*"]>;
|
28
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import { OnInit } from '@angular/core';
|
2
|
+
import { FormGroup } from '@angular/forms';
|
3
|
+
import { RecommendedPrice, Section } from '@veloceapps/core';
|
4
|
+
import { MessageService } from 'primeng/api';
|
5
|
+
import { CollapsibleStateService } from '../../../services/collapsible-state.service';
|
6
|
+
import { FormScopeService } from '../../../services/form-scope.service';
|
7
|
+
import { SectionScopeService } from '../../../services/section-scope.service';
|
8
|
+
import * as i0 from "@angular/core";
|
9
|
+
export declare class VeloTypeComponent implements OnInit {
|
10
|
+
private formScope;
|
11
|
+
private collapsibleState;
|
12
|
+
private sectionScope;
|
13
|
+
private messageService;
|
14
|
+
readonly messageBucketId = "ui-runtime";
|
15
|
+
controlName: string;
|
16
|
+
qtyControlName: string;
|
17
|
+
displayName: string;
|
18
|
+
indent: number;
|
19
|
+
form: FormGroup;
|
20
|
+
section: Section;
|
21
|
+
prices: RecommendedPrice[];
|
22
|
+
constructor(formScope: FormScopeService, collapsibleState: CollapsibleStateService, sectionScope: SectionScopeService, messageService: MessageService);
|
23
|
+
ngOnInit(): void;
|
24
|
+
handleRemove(): void;
|
25
|
+
handleQuantityUpdate(): void;
|
26
|
+
toggleCollapse(): void;
|
27
|
+
getPrices(): RecommendedPrice[];
|
28
|
+
private add;
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VeloTypeComponent, never>;
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VeloTypeComponent, "velo-type", never, {}, {}, never, ["*"]>;
|
31
|
+
}
|
@@ -0,0 +1,59 @@
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, OnDestroy, OnInit, Renderer2 } from '@angular/core';
|
2
|
+
import { FormBuilder } from '@angular/forms';
|
3
|
+
import { ContextService, QuoteDraftService } from '@veloceapps/sdk/core';
|
4
|
+
import { ShoppingCartService } from '../../services/cart.service';
|
5
|
+
import { CurrentStateService } from '../../services/current-state.service';
|
6
|
+
import { FormScopeService } from '../../services/form-scope.service';
|
7
|
+
import { RuntimeService } from '../../services/runtime.service';
|
8
|
+
import { SectionScopeService } from '../../services/section-scope.service';
|
9
|
+
import { SfQueryDirective } from './sf-query.directive';
|
10
|
+
import { LineItemDirective } from './velo-port.directive';
|
11
|
+
import { VlApprovalDirective } from './vl-approval.directive';
|
12
|
+
import { VlDocumentAttachmentsDirective } from './vl-document-attachments.directive';
|
13
|
+
import { VlDocumentTemplatesDirective } from './vl-document-templates.directive';
|
14
|
+
import { VlQuoteDirective } from './vl-quote.directive';
|
15
|
+
import { VlRampDirective } from './vl-ramp.directive';
|
16
|
+
import * as i0 from "@angular/core";
|
17
|
+
export declare class SectionScriptDirective implements OnInit, AfterViewInit, OnDestroy {
|
18
|
+
private _document;
|
19
|
+
private sfQueryDirective;
|
20
|
+
private lineItemDirective;
|
21
|
+
private quoteDirective;
|
22
|
+
private documentTemplatesDirective;
|
23
|
+
private rampDirective;
|
24
|
+
private approvalDirective;
|
25
|
+
private documentAttachmentsDirective;
|
26
|
+
private formScope;
|
27
|
+
private sectionScope;
|
28
|
+
private renderer;
|
29
|
+
private formBuilder;
|
30
|
+
private runtimeService;
|
31
|
+
private cdr;
|
32
|
+
private cartService;
|
33
|
+
private contextService;
|
34
|
+
private currentStateService;
|
35
|
+
private quoteService;
|
36
|
+
private scriptElement;
|
37
|
+
private scriptId;
|
38
|
+
private registry;
|
39
|
+
private sessionScope;
|
40
|
+
constructor(_document: Document, sfQueryDirective: SfQueryDirective, lineItemDirective: LineItemDirective, quoteDirective: VlQuoteDirective, documentTemplatesDirective: VlDocumentTemplatesDirective, rampDirective: VlRampDirective, approvalDirective: VlApprovalDirective, documentAttachmentsDirective: VlDocumentAttachmentsDirective, formScope: FormScopeService, sectionScope: SectionScopeService, renderer: Renderer2, formBuilder: FormBuilder, runtimeService: RuntimeService, cdr: ChangeDetectorRef, cartService: ShoppingCartService, contextService: ContextService, currentStateService: CurrentStateService, quoteService: QuoteDraftService);
|
41
|
+
ngOnInit(): void;
|
42
|
+
ngAfterViewInit(): void;
|
43
|
+
ngOnDestroy(): void;
|
44
|
+
get scope(): any;
|
45
|
+
private scriptExists;
|
46
|
+
private encodeScriptBody;
|
47
|
+
private generateScriptId;
|
48
|
+
private getScriptRegistry;
|
49
|
+
private getSessionScope;
|
50
|
+
private initScript;
|
51
|
+
private removeScript;
|
52
|
+
private appendScriptElementToDom;
|
53
|
+
private removeScriptElementFromDom;
|
54
|
+
private scriptFromTemplate;
|
55
|
+
private methodApply;
|
56
|
+
private getExposedApis;
|
57
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SectionScriptDirective, never>;
|
58
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SectionScriptDirective, "section-script", ["scriptApi"], {}, {}, never>;
|
59
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { HttpParams } from '@angular/common/http';
|
2
|
+
import { SalesforceApiService } from '@veloceapps/api';
|
3
|
+
import { SearchRequest } from '@veloceapps/core';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
export declare class SfQueryDirective {
|
6
|
+
private apiService;
|
7
|
+
constructor(apiService: SalesforceApiService);
|
8
|
+
query(searchRequest: SearchRequest, objectName: string): Promise<any>;
|
9
|
+
describe(objectName: string, fieldName?: string): Promise<any>;
|
10
|
+
describe2(objectName: string, fieldsNames: string[]): Promise<any>;
|
11
|
+
apexGetRequest<T = unknown>(path: string, params: HttpParams): Promise<T>;
|
12
|
+
apexPostRequest<T = unknown, S = unknown>(path: string, body: S): Promise<T>;
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SfQueryDirective, never>;
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SfQueryDirective, "sf-query", ["sfApi"], {}, {}, never>;
|
15
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { OnInit } from '@angular/core';
|
2
|
+
import { FormGroup } from '@angular/forms';
|
3
|
+
import { Section } from '@veloceapps/core';
|
4
|
+
import { FormScopeService } from '../../services/form-scope.service';
|
5
|
+
import { SectionScopeService } from '../../services/section-scope.service';
|
6
|
+
import * as i0 from "@angular/core";
|
7
|
+
export declare class VeloAttributeDirective implements OnInit {
|
8
|
+
private formScope;
|
9
|
+
private sectionScope;
|
10
|
+
valueQuantities: {
|
11
|
+
[index: string]: number;
|
12
|
+
};
|
13
|
+
form: FormGroup;
|
14
|
+
section: Section;
|
15
|
+
constructor(formScope: FormScopeService, sectionScope: SectionScopeService);
|
16
|
+
ngOnInit(): void;
|
17
|
+
handleChange(valueOption?: any): void;
|
18
|
+
handleChangDate(valueOption: any): void;
|
19
|
+
handleRemove(): void;
|
20
|
+
nextVal(): void;
|
21
|
+
prevVal(): void;
|
22
|
+
private initQuantity;
|
23
|
+
private getCurrentValueIndex;
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VeloAttributeDirective, never>;
|
25
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<VeloAttributeDirective, "velo-attribute-directive", ["attributeApi"], {}, {}, never>;
|
26
|
+
}
|
@@ -0,0 +1,74 @@
|
|
1
|
+
import { OnInit } from '@angular/core';
|
2
|
+
import { FormGroup } from '@angular/forms';
|
3
|
+
import { LineItem, Section } from '@veloceapps/core';
|
4
|
+
import { ConfigurationService } from '../../services/configuration.service';
|
5
|
+
import { FormScopeService } from '../../services/form-scope.service';
|
6
|
+
import { SectionScopeService } from '../../services/section-scope.service';
|
7
|
+
import { LegacyRuntimeContext } from '../../types';
|
8
|
+
import * as i0 from "@angular/core";
|
9
|
+
export declare class SectionContextAware implements OnInit {
|
10
|
+
protected formScope: FormScopeService;
|
11
|
+
protected sectionScope: SectionScopeService;
|
12
|
+
controlName: string;
|
13
|
+
qtyControlName: string;
|
14
|
+
form: FormGroup;
|
15
|
+
section: Section;
|
16
|
+
constructor(formScope: FormScopeService, sectionScope: SectionScopeService);
|
17
|
+
ngOnInit(): void;
|
18
|
+
initControlNames(): void;
|
19
|
+
isAddAllowed(quantityToAdd?: number): boolean;
|
20
|
+
isRemoveAllowed(quantityToRemove?: number): boolean;
|
21
|
+
handleCreate(valueOption?: any): void;
|
22
|
+
handleChange(valueOption?: any): void;
|
23
|
+
handleQtyChange(valueOption: any): void;
|
24
|
+
handleRemove(valueOption: string): void;
|
25
|
+
handleCopy(valueOption: string): void;
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SectionContextAware, never>;
|
27
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SectionContextAware, never, never, {}, {}, never>;
|
28
|
+
}
|
29
|
+
export declare class LineItemDirective implements OnInit {
|
30
|
+
private formScope;
|
31
|
+
private sectionScope;
|
32
|
+
private configurationService;
|
33
|
+
section: Section;
|
34
|
+
lineItem?: LineItem;
|
35
|
+
constructor(formScope: FormScopeService, sectionScope: SectionScopeService, configurationService: ConfigurationService);
|
36
|
+
ngOnInit(): void;
|
37
|
+
handlePatch(rootLineItem: any): void;
|
38
|
+
configure(runtimeContext: LegacyRuntimeContext, configurableRamp: LineItem): Promise<LineItem>;
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LineItemDirective, never>;
|
40
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<LineItemDirective, "line-item", ["liApi"], {}, {}, never>;
|
41
|
+
}
|
42
|
+
export declare class VeloPortDirective extends SectionContextAware implements OnInit {
|
43
|
+
valueQuantities: {
|
44
|
+
[index: string]: number;
|
45
|
+
};
|
46
|
+
constructor(formScope: FormScopeService, sectionScope: SectionScopeService);
|
47
|
+
private handlePriceAdjustment;
|
48
|
+
ngOnInit(): void;
|
49
|
+
handleUpsert(valueOption?: any, event?: Event): void;
|
50
|
+
isActive(valueOption?: any): boolean;
|
51
|
+
private initQuantity;
|
52
|
+
handleNextVal(valueOption: string): void;
|
53
|
+
handlePrevVal(valueOption: string): void;
|
54
|
+
handleManualQtyChange(valueOption: string, qtyVal: any): void;
|
55
|
+
handleNetPriceAdjustment(valueOption: string, amount: number): void;
|
56
|
+
handleListPriceAdjustment(valueOption: string, amount: number): void;
|
57
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VeloPortDirective, never>;
|
58
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<VeloPortDirective, "velo-port", ["portApi"], {}, {}, never>;
|
59
|
+
}
|
60
|
+
export declare class VeloDropdownComponent extends SectionContextAware {
|
61
|
+
constructor(formScope: FormScopeService, sectionScope: SectionScopeService);
|
62
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VeloDropdownComponent, never>;
|
63
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VeloDropdownComponent, "velo-dropdown", never, {}, {}, never, never>;
|
64
|
+
}
|
65
|
+
export declare class VeloQuantityComponent extends SectionContextAware {
|
66
|
+
constructor(formScope: FormScopeService, sectionScope: SectionScopeService);
|
67
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VeloQuantityComponent, never>;
|
68
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VeloQuantityComponent, "velo-quantity", never, {}, {}, never, never>;
|
69
|
+
}
|
70
|
+
export declare class VeloQuantityButtonComponent extends SectionContextAware {
|
71
|
+
constructor(formScope: FormScopeService, sectionScope: SectionScopeService);
|
72
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VeloQuantityButtonComponent, never>;
|
73
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VeloQuantityButtonComponent, "velo-quantity-button", never, {}, {}, never, never>;
|
74
|
+
}
|