@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
@@ -0,0 +1,28 @@
|
|
1
|
+
import { IntegrationAction, Metric } from './types';
|
2
|
+
export declare enum FlowAction {
|
3
|
+
FLOW_CONFIGURE_PRODUCT = "FLOW_CONFIGURE_PRODUCT",
|
4
|
+
FLOW_NAVIGATE_BACK = "FLOW_NAVIGATE_BACK",
|
5
|
+
FLOW_NAVIGATE_TO_CATALOG = "FLOW_NAVIGATE_TO_CATALOG",
|
6
|
+
FLOW_APPLY_PRODUCT_CONFIGURATION = "FLOW_APPLY_PRODUCT_CONFIGURATION",
|
7
|
+
FLOW_OPEN_DOC_GEN = "FLOW_OPEN_DOC_GEN",
|
8
|
+
FLOW_CLOSE_DOC_GEN = "FLOW_CLOSE_DOC_GEN",
|
9
|
+
FLOW_SWITCH_OBJECT = "FLOW_SWITCH_OBJECT",
|
10
|
+
REMOTE_APPLY = "REMOTE_APPLY",
|
11
|
+
REMOTE_CANCEL = "REMOTE_CANCEL",
|
12
|
+
SET_DEFAULT_METRICS = "SET_DEFAULT_METRICS"
|
13
|
+
}
|
14
|
+
export declare const ConfigureProductAction: ({ lineItemId, productId, }: {
|
15
|
+
lineItemId?: string | undefined;
|
16
|
+
productId?: string | undefined;
|
17
|
+
}) => IntegrationAction;
|
18
|
+
export declare const NavigateBackAction: () => IntegrationAction;
|
19
|
+
export declare const NavigateToCatalogAction: () => IntegrationAction;
|
20
|
+
export declare const ApplyProductConfigurationAction: () => IntegrationAction;
|
21
|
+
export declare const OpenDocGenAction: () => IntegrationAction;
|
22
|
+
export declare const CloseDocGenAction: () => IntegrationAction;
|
23
|
+
export declare const RemoteApplyAction: () => IntegrationAction;
|
24
|
+
export declare const RemoteCancelAction: () => IntegrationAction;
|
25
|
+
export declare const SwitchObjectAction: (payload: {
|
26
|
+
id: string;
|
27
|
+
}) => IntegrationAction;
|
28
|
+
export declare const SetDefaultMetrics: (metrics: Metric[]) => IntegrationAction;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { ElementContextService } from '../../services/element-context.service';
|
2
|
+
import { ElementMetadata } from '../../types/common.types';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class ElementChildrenComponent {
|
5
|
+
private elementContext;
|
6
|
+
metadata?: ElementMetadata;
|
7
|
+
constructor(elementContext: ElementContextService);
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ElementChildrenComponent, never>;
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ElementChildrenComponent, "element-children", never, {}, {}, never, never>;
|
10
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./element-children.component";
|
3
|
+
import * as i2 from "../element-renderer/element-renderer.module";
|
4
|
+
export declare class ElementChildrenModule {
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ElementChildrenModule, never>;
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ElementChildrenModule, [typeof i1.ElementChildrenComponent], [typeof i2.ElementRendererModule], [typeof i1.ElementChildrenComponent]>;
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ElementChildrenModule>;
|
8
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, Injector, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
|
2
|
+
import { ConfigurationService } from '@veloceapps/sdk/core';
|
3
|
+
import { DynamicModuleService } from '../../services/dynamic-module.service';
|
4
|
+
import { ElementContextService } from '../../services/element-context.service';
|
5
|
+
import { IOProviderService } from '../../services/io-provider.service';
|
6
|
+
import { ElementMetadata } from '../../types/common.types';
|
7
|
+
import * as i0 from "@angular/core";
|
8
|
+
export declare class ElementRendererComponent implements OnInit, OnDestroy {
|
9
|
+
private parentInjector;
|
10
|
+
private dynamicModuleService;
|
11
|
+
private elementContext;
|
12
|
+
private ioProviderService;
|
13
|
+
private configurationService;
|
14
|
+
private elementRef;
|
15
|
+
private cdr;
|
16
|
+
el?: ViewContainerRef;
|
17
|
+
meta: ElementMetadata;
|
18
|
+
private factory?;
|
19
|
+
private refs;
|
20
|
+
private destroy$;
|
21
|
+
constructor(parentInjector: Injector, dynamicModuleService: DynamicModuleService, elementContext: ElementContextService, ioProviderService: IOProviderService, configurationService: ConfigurationService, elementRef: ElementRef, cdr: ChangeDetectorRef);
|
22
|
+
ngOnInit(): void;
|
23
|
+
ngOnDestroy(): void;
|
24
|
+
private createComponents;
|
25
|
+
private createFromPath;
|
26
|
+
private getModelComponent;
|
27
|
+
private createFromLineItem;
|
28
|
+
private processChildren;
|
29
|
+
private getParentLineItem$;
|
30
|
+
private createComponent;
|
31
|
+
private updateComponent;
|
32
|
+
private destroyComponent;
|
33
|
+
private destroyComponents;
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ElementRendererComponent, [{ skipSelf: true; }, null, null, null, null, null, null]>;
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ElementRendererComponent, "vl-cms-element-renderer", never, { "meta": "meta"; }, {}, never, never>;
|
36
|
+
}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./element-renderer.component";
|
3
|
+
export declare class ElementRendererModule {
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ElementRendererModule, never>;
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ElementRendererModule, [typeof i1.ElementRendererComponent], never, [typeof i1.ElementRendererComponent]>;
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ElementRendererModule>;
|
7
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { AfterContentInit, AfterViewChecked, AfterViewInit, DoCheck, Injector, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
2
|
+
import { BehaviorSubject } from 'rxjs';
|
3
|
+
import { Entity } from '../engine/models/entity';
|
4
|
+
import { IPluginComponent } from './plugin.component';
|
5
|
+
export declare class ElementComponent extends Entity implements OnChanges, OnInit, DoCheck, AfterContentInit, AfterViewInit, AfterViewChecked, OnDestroy {
|
6
|
+
injector: Injector;
|
7
|
+
readonly model$: BehaviorSubject<any>;
|
8
|
+
readonly plugins: IPluginComponent[];
|
9
|
+
constructor(injector: Injector);
|
10
|
+
ngOnChanges(changes: SimpleChanges): void;
|
11
|
+
ngOnInit(): void;
|
12
|
+
ngDoCheck(): void;
|
13
|
+
ngAfterContentInit(): void;
|
14
|
+
ngAfterViewInit(): void;
|
15
|
+
ngAfterViewChecked(): void;
|
16
|
+
ngOnDestroy(): void;
|
17
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './element.component';
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { AfterContentChecked, AfterContentInit, AfterViewChecked, AfterViewInit, DoCheck, OnChanges, OnDestroy, OnInit } from '@angular/core';
|
2
|
+
import { ElementComponent } from '.';
|
3
|
+
import { Plugin } from '../engine/models/plugin';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
declare type AngularHooks = OnChanges & OnInit & DoCheck & AfterContentInit & AfterContentChecked & AfterViewInit & AfterViewChecked & OnDestroy;
|
6
|
+
export interface IPluginComponent extends Partial<AngularHooks> {
|
7
|
+
host: ElementComponent;
|
8
|
+
}
|
9
|
+
export declare class PluginComponent extends Plugin implements IPluginComponent {
|
10
|
+
readonly host: ElementComponent;
|
11
|
+
constructor(host: ElementComponent);
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PluginComponent, never>;
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PluginComponent, never, never, {}, {}, never>;
|
14
|
+
}
|
15
|
+
export {};
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
2
|
+
import { ConfigurationRuntimeService, ConfigurationService, UIDefinition } from '@veloceapps/sdk/core';
|
3
|
+
import { MessageService } from 'primeng/api';
|
4
|
+
import { BehaviorSubject } from 'rxjs';
|
5
|
+
import { IntegrationState } from '../../services';
|
6
|
+
import { LauncherService } from '../../services/launcher.service';
|
7
|
+
import { ElementMetadata } from '../../types/common.types';
|
8
|
+
import * as i0 from "@angular/core";
|
9
|
+
interface State {
|
10
|
+
loading: boolean;
|
11
|
+
failure: boolean;
|
12
|
+
}
|
13
|
+
export declare class PreviewComponent implements OnInit, OnDestroy {
|
14
|
+
private launcherService;
|
15
|
+
private configurationService;
|
16
|
+
private messageService;
|
17
|
+
private runtimeService;
|
18
|
+
private integrationState;
|
19
|
+
modelId?: string;
|
20
|
+
uiDefinition?: UIDefinition;
|
21
|
+
clearState: boolean;
|
22
|
+
state$: BehaviorSubject<State>;
|
23
|
+
elements: ElementMetadata[];
|
24
|
+
private destroy$;
|
25
|
+
constructor(launcherService: LauncherService, configurationService: ConfigurationService, messageService: MessageService, runtimeService: ConfigurationRuntimeService, integrationState: IntegrationState);
|
26
|
+
ngOnInit(): void;
|
27
|
+
ngOnDestroy(): void;
|
28
|
+
private initializeConfiguration$;
|
29
|
+
private elementToMetadataSafe;
|
30
|
+
private startPreview;
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PreviewComponent, never>;
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PreviewComponent, "vl-cms-preview", never, { "modelId": "modelId"; "uiDefinition": "uiDefinition"; "clearState": "clearState"; }, {}, never, never>;
|
33
|
+
}
|
34
|
+
export {};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./preview.component";
|
3
|
+
import * as i2 from "@angular/common";
|
4
|
+
import * as i3 from "@veloceapps/components";
|
5
|
+
import * as i4 from "../element-renderer/element-renderer.module";
|
6
|
+
import * as i5 from "../element-children/element-children.module";
|
7
|
+
export declare class PreviewModule {
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PreviewModule, never>;
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PreviewModule, [typeof i1.PreviewComponent], [typeof i2.CommonModule, typeof i3.LoaderModule, typeof i4.ElementRendererModule, typeof i5.ElementChildrenModule], [typeof i1.PreviewComponent]>;
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PreviewModule>;
|
11
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './element.decorator';
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { AfterViewInit, TemplateRef } from '@angular/core';
|
2
|
+
import { TemplatesService } from '../services/templates.service';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class CustomTemplateDirective implements AfterViewInit {
|
5
|
+
private templateRef;
|
6
|
+
private templatesService;
|
7
|
+
constructor(templateRef: TemplateRef<any>, templatesService: TemplatesService);
|
8
|
+
customTemplate: string | undefined;
|
9
|
+
ngAfterViewInit(): void;
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomTemplateDirective, never>;
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CustomTemplateDirective, "[customTemplate]", never, { "customTemplate": "customTemplate"; }, {}, never>;
|
12
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { Injector } from '@angular/core';
|
2
|
+
import { Plugin } from './plugin';
|
3
|
+
export declare class Entity {
|
4
|
+
injector: Injector;
|
5
|
+
protected readonly plugins: Plugin[];
|
6
|
+
private config;
|
7
|
+
private defaultPlugins;
|
8
|
+
constructor(injector: Injector);
|
9
|
+
initPlugins(): void;
|
10
|
+
registerPlugin(plugin: Plugin): void;
|
11
|
+
}
|
package/cms/index.d.ts
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
export * from './cms.actions';
|
2
|
+
export * from './components';
|
3
|
+
export * from './components/preview';
|
4
|
+
export * from './decorators';
|
5
|
+
export * from './injection-tokens';
|
6
|
+
export * from './launcher.module';
|
7
|
+
export * from './modules/federated/export';
|
8
|
+
export * from './services';
|
9
|
+
export * from './types';
|
10
|
+
export * from './utils';
|
11
|
+
export { VendorMap } from './vendor-map';
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
2
|
+
import { UIDefinitionMetadata } from '@veloceapps/sdk/core';
|
3
|
+
import { Dictionary } from 'lodash';
|
4
|
+
import { Plugin } from './engine/models/plugin';
|
5
|
+
import { ElementConfig, ElementMetadata } from './types/common.types';
|
6
|
+
export declare const DEFAULT_PLUGINS_TOKEN: InjectionToken<(typeof Plugin)[]>;
|
7
|
+
export declare const UI_DEFINITION_METADATA: InjectionToken<UIDefinitionMetadata>;
|
8
|
+
export declare const ELEMENT_METADATA: InjectionToken<ElementMetadata>;
|
9
|
+
export declare const SHARED_ELEMENT_METADATA: InjectionToken<ElementMetadata>;
|
10
|
+
export declare const ELEMENT_CONFIG: InjectionToken<ElementConfig>;
|
11
|
+
export declare const VENDOR_MAP: InjectionToken<Dictionary<any>>;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "@angular/common";
|
3
|
+
import * as i2 from "@veloceapps/core";
|
4
|
+
import * as i3 from "@veloceapps/api";
|
5
|
+
import * as i4 from "@veloceapps/sdk/core";
|
6
|
+
export declare class LauncherModule {
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LauncherModule, never>;
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<LauncherModule, never, [typeof i1.CommonModule, typeof i2.CoreModule, typeof i3.ApiModule, typeof i4.SdkCoreModule], never>;
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<LauncherModule>;
|
10
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { FederatedComponentInstance, FederatedModuleOptions } from './federated.types';
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { AfterViewInit, ApplicationRef, Compiler, ElementRef, Injector, OnChanges, OnInit, Renderer2, SimpleChanges } from '@angular/core';
|
2
|
+
import { BehaviorSubject } from 'rxjs';
|
3
|
+
import { FederatedModuleOptions } from './federated.types';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
export declare class FederatedComponent implements OnInit, AfterViewInit, OnChanges {
|
6
|
+
private injector;
|
7
|
+
private compiler;
|
8
|
+
private appRef;
|
9
|
+
private renderer;
|
10
|
+
moduleHostRef?: ElementRef;
|
11
|
+
remoteEntry?: string;
|
12
|
+
remoteName?: string;
|
13
|
+
exposedModule?: string;
|
14
|
+
data?: any;
|
15
|
+
options?: FederatedModuleOptions;
|
16
|
+
isLoading$: BehaviorSubject<boolean>;
|
17
|
+
suppressLoading: boolean;
|
18
|
+
loadingLabel: string;
|
19
|
+
private instance?;
|
20
|
+
constructor(injector: Injector, compiler: Compiler, appRef: ApplicationRef, renderer: Renderer2);
|
21
|
+
ngOnChanges(changes: SimpleChanges): void;
|
22
|
+
ngOnInit(): void;
|
23
|
+
ngAfterViewInit(): void;
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FederatedComponent, never>;
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FederatedComponent, "veloce-host-federated", never, { "remoteEntry": "remoteEntry"; "remoteName": "remoteName"; "exposedModule": "exposedModule"; "data": "data"; "options": "options"; }, {}, never, never>;
|
26
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./federated.component";
|
3
|
+
import * as i2 from "@angular/common";
|
4
|
+
import * as i3 from "@veloceapps/components";
|
5
|
+
export declare class FederatedModule {
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FederatedModule, never>;
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FederatedModule, [typeof i1.FederatedComponent], [typeof i2.CommonModule, typeof i3.LoaderModule], [typeof i1.FederatedComponent]>;
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FederatedModule>;
|
9
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
export declare type FederatedModuleOptions = {
|
2
|
+
/**
|
3
|
+
* URL to the federated container
|
4
|
+
* i.e. http://localhost:4200/remoteIntegrationModule.js
|
5
|
+
*/
|
6
|
+
remoteEntry?: string;
|
7
|
+
/**
|
8
|
+
* Name of the federated container
|
9
|
+
*/
|
10
|
+
remoteName?: string;
|
11
|
+
/**
|
12
|
+
* Name of exposed Angular module
|
13
|
+
*/
|
14
|
+
exposedModule?: string;
|
15
|
+
/**
|
16
|
+
* Suppress remote module loading process spinner
|
17
|
+
*/
|
18
|
+
suppressLoading?: boolean;
|
19
|
+
/**
|
20
|
+
* Loading label. Default: LOADING
|
21
|
+
*/
|
22
|
+
loadingLabel?: string;
|
23
|
+
/**
|
24
|
+
* Ready callback is called when remote module has been loaded
|
25
|
+
*/
|
26
|
+
onReady?: () => void;
|
27
|
+
};
|
28
|
+
export interface FederatedComponentInstance<D = unknown> {
|
29
|
+
data?: D;
|
30
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function loadRemoteModule(remoteEntry: string, remoteName: string, exposedModule: string): Promise<any>;
|
package/cms/package.json
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
{
|
2
|
+
"name": "@veloceapps/sdk/cms",
|
3
|
+
"sideEffects": false,
|
4
|
+
"main": "../bundles/veloceapps-sdk-cms.umd.js",
|
5
|
+
"module": "../fesm2015/veloceapps-sdk-cms.js",
|
6
|
+
"es2015": "../fesm2015/veloceapps-sdk-cms.js",
|
7
|
+
"esm2015": "../esm2015/cms/veloceapps-sdk-cms.js",
|
8
|
+
"fesm2015": "../fesm2015/veloceapps-sdk-cms.js",
|
9
|
+
"typings": "veloceapps-sdk-cms.d.ts"
|
10
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
2
|
+
import { ElementComponent } from '../components/element.component';
|
3
|
+
import { PluginComponent } from '../components/plugin.component';
|
4
|
+
import { ConfigurationElement } from '../types';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
export declare class ConfigurationPlugin implements PluginComponent, OnDestroy {
|
7
|
+
host: ElementComponent & ConfigurationElement;
|
8
|
+
private modelSnapshot?;
|
9
|
+
private destroy$;
|
10
|
+
private elementMetadata;
|
11
|
+
private configurationService;
|
12
|
+
constructor(host: ElementComponent & ConfigurationElement);
|
13
|
+
ngOnDestroy(): void;
|
14
|
+
private register;
|
15
|
+
private registerType;
|
16
|
+
private registerPort;
|
17
|
+
private registerAttribute;
|
18
|
+
private get attributeHost();
|
19
|
+
private get typeHost();
|
20
|
+
private get portHost();
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationPlugin, never>;
|
22
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ConfigurationPlugin, never, never, {}, {}, never>;
|
23
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { ElementComponent } from '../components/element.component';
|
2
|
+
import { PluginComponent } from '../components/plugin.component';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class IOPlugin implements PluginComponent {
|
5
|
+
host: ElementComponent;
|
6
|
+
constructor(host: ElementComponent);
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IOPlugin, never>;
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<IOPlugin, never, never, {}, {}, never>;
|
9
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { ElementComponent } from '../components/element.component';
|
2
|
+
import { PluginComponent } from '../components/plugin.component';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class ScriptPlugin implements PluginComponent {
|
5
|
+
host: ElementComponent;
|
6
|
+
private document;
|
7
|
+
private vendorMap;
|
8
|
+
constructor(host: ElementComponent);
|
9
|
+
private addScript;
|
10
|
+
private normalizeImports;
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScriptPlugin, never>;
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ScriptPlugin, never, never, {}, {}, never>;
|
13
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { ComponentFactory } from '@angular/core';
|
2
|
+
import { ElementMetadata } from '../types/common.types';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class DynamicModuleService {
|
5
|
+
private _elementsTree;
|
6
|
+
private _componentFactories;
|
7
|
+
set componentFactories(data: ComponentFactory<any>[]);
|
8
|
+
get componentFactories(): ComponentFactory<any>[];
|
9
|
+
getComponentFactory(element: ElementMetadata): ComponentFactory<any> | undefined;
|
10
|
+
get elementsTree(): ElementMetadata[];
|
11
|
+
set elementsTree(tree: ElementMetadata[]);
|
12
|
+
clear(): void;
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicModuleService, never>;
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DynamicModuleService>;
|
15
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { ElementMetadata } from '../types/common.types';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class ElementContextService {
|
4
|
+
metadata?: ElementMetadata;
|
5
|
+
parentModelId?: string;
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ElementContextService, never>;
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ElementContextService>;
|
8
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { Dictionary } from 'lodash';
|
2
|
+
import { Observable } from 'rxjs';
|
3
|
+
import { IntegrationAction } from '../types/integration.types';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
export declare class IntegrationState<S = Dictionary<any>> {
|
6
|
+
private readonly stateSubj$;
|
7
|
+
private readonly action$;
|
8
|
+
get state$(): Observable<S>;
|
9
|
+
get state(): S;
|
10
|
+
patchState(update: Partial<S>): void;
|
11
|
+
dispatch(action: IntegrationAction): void;
|
12
|
+
listen$<P = any>(actionType: string): Observable<P>;
|
13
|
+
listenAll$<T extends IntegrationAction>(): Observable<T>;
|
14
|
+
clear(): void;
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IntegrationState<any>, never>;
|
16
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<IntegrationState<any>>;
|
17
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
2
|
+
import { ElementMetadata } from '../types/common.types';
|
3
|
+
import { DynamicModuleService } from './dynamic-module.service';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
export declare class IOProviderService {
|
6
|
+
private dynamicModuleService;
|
7
|
+
private inputs;
|
8
|
+
constructor(dynamicModuleService: DynamicModuleService);
|
9
|
+
connect(el: ElementMetadata, name: string, target?: string | null): Observable<any> | undefined;
|
10
|
+
provide(el: ElementMetadata, name: string, target?: string | null): BehaviorSubject<any> | undefined;
|
11
|
+
private resolveTarget;
|
12
|
+
private createSubjectSafe;
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IOProviderService, never>;
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<IOProviderService>;
|
15
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { Compiler } from '@angular/core';
|
2
|
+
import { UIDefinitionMetadata } from '@veloceapps/sdk/core';
|
3
|
+
import { Observable } from 'rxjs';
|
4
|
+
import { CompilationResult, ElementMetadata } from '../types';
|
5
|
+
import { DynamicModuleService } from './dynamic-module.service';
|
6
|
+
import * as i0 from "@angular/core";
|
7
|
+
export declare class LauncherService {
|
8
|
+
private compiler;
|
9
|
+
private dynamicModuleService;
|
10
|
+
private module?;
|
11
|
+
private moduleInstance?;
|
12
|
+
constructor(compiler: Compiler, dynamicModuleService: DynamicModuleService);
|
13
|
+
compileModule(uiDef: UIDefinitionMetadata, elements: ElementMetadata[]): Observable<CompilationResult>;
|
14
|
+
destroy(): void;
|
15
|
+
private getModule;
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LauncherService, never>;
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LauncherService>;
|
18
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
2
|
+
import { Observable } from 'rxjs';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
declare type Template = TemplateRef<any> | undefined;
|
5
|
+
export declare class TemplatesService {
|
6
|
+
private templates;
|
7
|
+
register(name: string, templateRef: TemplateRef<any>): void;
|
8
|
+
get(name: string): Template;
|
9
|
+
get$(name: string): Observable<Template>;
|
10
|
+
private ensureStorage;
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TemplatesService, never>;
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TemplatesService>;
|
13
|
+
}
|
14
|
+
export {};
|
@@ -0,0 +1,108 @@
|
|
1
|
+
import { Dictionary } from 'lodash';
|
2
|
+
import { Entity } from '../engine/models/entity';
|
3
|
+
import { Plugin } from '../engine/models/plugin';
|
4
|
+
export declare type ELEMENT_TYPE = 'CUSTOM' | 'CONTAINER' | 'SERVICE' | 'REFERENCE';
|
5
|
+
export declare type ElementStyleDeclaration = Partial<CSSStyleDeclaration>;
|
6
|
+
export interface ElementConfig {
|
7
|
+
component: typeof Entity;
|
8
|
+
plugins?: typeof Plugin[];
|
9
|
+
defaultTemplate?: string;
|
10
|
+
suppressTemplate?: boolean;
|
11
|
+
suppressStyles?: boolean;
|
12
|
+
}
|
13
|
+
export interface ElementModel {
|
14
|
+
/**
|
15
|
+
* Defines a path for an element model.
|
16
|
+
* It's combined with a path to a target element and an output property name.
|
17
|
+
*
|
18
|
+
* If target value is an Array, then the element will be repeated `n` times and each instance will get it's own value.
|
19
|
+
*
|
20
|
+
* Examples:
|
21
|
+
* - `/Root/Services/DataService/:products`
|
22
|
+
* - `../../Services/DataService/:products`
|
23
|
+
* - `@Services/DataService/:products`
|
24
|
+
*/
|
25
|
+
path?: string;
|
26
|
+
/**
|
27
|
+
* Used only when `UIDefinitionType = CONFIGURATION`.
|
28
|
+
*/
|
29
|
+
lineItem?: string;
|
30
|
+
}
|
31
|
+
export interface ElementDefaultMetadata {
|
32
|
+
name: string;
|
33
|
+
type: ELEMENT_TYPE;
|
34
|
+
/**
|
35
|
+
* Make component shared
|
36
|
+
*
|
37
|
+
* Used only when `type !== REFERENCE`
|
38
|
+
*/
|
39
|
+
isShared?: boolean;
|
40
|
+
/**
|
41
|
+
* Element module name. Module is used for quick access from other elements.
|
42
|
+
*
|
43
|
+
* For example we have a `DataService` element, and we say it's declared in `Services` module. Then it can be accessed in other elements `model`, `inputs` or `outputs` properties this way: `@Services/DataService`
|
44
|
+
*
|
45
|
+
*/
|
46
|
+
module?: string;
|
47
|
+
/**
|
48
|
+
* Defines inputs of the element. An object where `key` is the name of the input and `value` is target path
|
49
|
+
*
|
50
|
+
* If `value == null`, then the element acts like a target - we expect other element to connect to it.
|
51
|
+
*
|
52
|
+
* Examples:
|
53
|
+
*
|
54
|
+
* 1. `products: '/Root/Services/DataService'`
|
55
|
+
* The element will have `products` input which will get the data from `products` output in dataservice element
|
56
|
+
*
|
57
|
+
* 2. `productsList: '/Root/Services/DataService/:products'`
|
58
|
+
* The element will have `productsList` input which will get the data from `products` output in dataservice element
|
59
|
+
*
|
60
|
+
* 3. `productsList: '@Services/DataService/:products'`
|
61
|
+
* The element will have `productsList` input which will get the data from `products` output in dataservice element which is declared in `Services` module
|
62
|
+
*
|
63
|
+
* 4. `onProductSelect: null`
|
64
|
+
* The element will have `onProductSelect` input, and the script could have a logic which will listen on the events
|
65
|
+
*
|
66
|
+
* Relative paths allowed:
|
67
|
+
*
|
68
|
+
* - `..`
|
69
|
+
* - `../:products`
|
70
|
+
* - `../../DataService/:products`
|
71
|
+
*
|
72
|
+
*/
|
73
|
+
inputs?: Dictionary<string | null>;
|
74
|
+
/**
|
75
|
+
* Defines outputs of the element. An object where `key` is the name of the output and `value` is target path
|
76
|
+
*
|
77
|
+
* If `value == null`, then the element acts like a target - we expect other element to connect to it.
|
78
|
+
*
|
79
|
+
* Examples:
|
80
|
+
*
|
81
|
+
* 1. `onProductSelect: '/Root/Services/DataService/:handleProductSelect'`
|
82
|
+
* The element will have `onProductSelect` output, which will emit events to the `dataservice` element `handleProductSelect` input
|
83
|
+
*
|
84
|
+
* 2. `onProductSelect: '@Services/DataService/:handleProductSelect'`
|
85
|
+
* Same output but accessing dataservice by the Service module
|
86
|
+
*/
|
87
|
+
outputs?: Dictionary<string | null>;
|
88
|
+
model?: ElementModel;
|
89
|
+
/**
|
90
|
+
* Defines a shared component name to use as a reference
|
91
|
+
*
|
92
|
+
* Used only when `type === REFERENCE`
|
93
|
+
*/
|
94
|
+
reference?: string;
|
95
|
+
children?: string[];
|
96
|
+
/**
|
97
|
+
* Contains styles configurable from UI builder
|
98
|
+
*/
|
99
|
+
configuredStyles?: ElementStyleDeclaration;
|
100
|
+
}
|
101
|
+
export interface ElementMetadata extends Omit<ElementDefaultMetadata, 'children'> {
|
102
|
+
path?: string;
|
103
|
+
children: ElementMetadata[];
|
104
|
+
template?: string;
|
105
|
+
styles?: string;
|
106
|
+
script?: string;
|
107
|
+
metadata?: string;
|
108
|
+
}
|