@veloceapps/sdk 12.0.0-17 → 12.0.0-19
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/cms/cms.actions.d.ts +154 -0
- package/cms/cms.default.d.ts +5 -0
- package/cms/cms.elements.d.ts +4 -0
- package/cms/cms.layouts.d.ts +4 -0
- package/cms/components/element-children/element-children.component.d.ts +22 -0
- package/cms/components/element-children/element-children.module.d.ts +11 -0
- package/cms/components/element-drop-handle/element-drop-handle.component.d.ts +12 -0
- package/cms/components/element-drop-handle/element-drop-handle.module.d.ts +9 -0
- package/cms/components/element-renderer/element-renderer.component.d.ts +29 -0
- package/cms/components/element-renderer/element-renderer.module.d.ts +7 -0
- package/cms/components/element-tools-panel/element-tools-panel.component.d.ts +14 -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 +3 -0
- package/cms/components/preview/preview.component.d.ts +32 -0
- package/cms/components/preview/preview.module.d.ts +13 -0
- package/cms/components/preview/preview.types.d.ts +20 -0
- package/cms/decorators/element.decorator.d.ts +2 -0
- package/cms/decorators/index.d.ts +1 -0
- package/cms/definitions/index.d.ts +1 -0
- package/cms/definitions/ui-builder.definitions.d.ts +6 -0
- package/cms/directives/custom-template.directive.d.ts +17 -0
- package/cms/engine/models/entity.d.ts +11 -0
- package/cms/engine/models/plugin.d.ts +5 -0
- package/cms/index.d.ts +15 -921
- package/cms/injection-tokens.d.ts +9 -0
- package/cms/launcher.module.d.ts +12 -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-host.directive.d.ts +8 -0
- package/cms/modules/federated/federated.component.d.ts +25 -0
- package/cms/modules/federated/federated.module.d.ts +10 -0
- package/cms/modules/federated/federated.types.d.ts +26 -0
- package/cms/modules/migrations/index.d.ts +2 -0
- package/cms/modules/migrations/migrations.d.ts +2 -0
- package/cms/modules/migrations/migrations.module.d.ts +6 -0
- package/cms/modules/migrations/services/migrations.service.d.ts +10 -0
- package/cms/modules/migrations/types/migrations.types.d.ts +2 -0
- package/cms/modules/runtime/index.d.ts +3 -0
- package/cms/modules/runtime/runtime.module.d.ts +8 -0
- package/cms/modules/runtime/services/compilation.service.d.ts +19 -0
- package/cms/modules/runtime/services/runtime-editor.service.d.ts +20 -0
- package/cms/modules/runtime/services/runtime.service.d.ts +33 -0
- package/cms/modules/runtime/tokens.d.ts +3 -0
- package/cms/modules/runtime/types/compilation.types.d.ts +8 -0
- package/cms/modules/runtime/types/runtime.actions.d.ts +12 -0
- package/cms/plugins/element-hover.plugin.d.ts +33 -0
- package/cms/plugins/io.plugin.d.ts +9 -0
- package/cms/plugins/page.plugin.d.ts +15 -0
- package/cms/plugins/region.plugin.d.ts +17 -0
- package/cms/plugins/script.plugin.d.ts +10 -0
- package/cms/services/element-context.service.d.ts +7 -0
- package/cms/services/index.d.ts +2 -0
- package/cms/services/io-provider.service.d.ts +15 -0
- package/cms/services/resources.service.d.ts +21 -0
- package/cms/services/templates.service.d.ts +14 -0
- package/cms/types/common.types.d.ts +130 -0
- package/cms/types/elements.types.d.ts +2 -0
- package/cms/types/index.d.ts +6 -0
- package/cms/types/layouts.types.d.ts +102 -0
- package/cms/types/pages.types.d.ts +1 -0
- package/cms/types/path.types.d.ts +11 -0
- package/cms/utils/element-metadata-worker.d.ts +11 -0
- package/cms/utils/element.utils.d.ts +20 -0
- package/cms/utils/elements-resolver.d.ts +28 -0
- package/cms/utils/encoding.utils.d.ts +2 -0
- package/cms/utils/index.d.ts +9 -0
- package/cms/utils/inject.d.ts +1 -0
- package/cms/utils/path.utils.d.ts +3 -0
- package/cms/utils/script.utils.d.ts +2 -0
- package/cms/utils/transpilation-worker.d.ts +13 -0
- package/cms/utils/ui-builder-layout.utils.d.ts +4 -0
- package/cms/utils/ui-definition.utils.d.ts +6 -0
- package/cms/vendor-map.d.ts +86 -0
- package/core/core.module.d.ts +10 -0
- package/core/directives/directives.module.d.ts +7 -0
- package/core/directives/index.d.ts +2 -0
- package/core/directives/primeng-calendar.directive.d.ts +14 -0
- package/core/index.d.ts +8 -525
- package/core/modules/configuration/configuration.module.d.ts +8 -0
- package/core/modules/configuration/index.d.ts +6 -0
- package/core/modules/configuration/services/configuration-runtime.service.d.ts +17 -0
- package/core/modules/configuration/services/configuration-state.service.d.ts +60 -0
- package/core/modules/configuration/services/configuration.service.d.ts +36 -0
- package/core/modules/configuration/services/guided-selling.service.d.ts +15 -0
- package/core/modules/configuration/services/test-mode-configuration.service.d.ts +26 -0
- package/core/modules/configuration/types/configuration-runtime.types.d.ts +3 -0
- package/core/modules/configuration/types/configuration.types.d.ts +20 -0
- package/core/modules/configuration/types/index.d.ts +2 -0
- package/core/modules/flow-configuration/flow-configuration.module.d.ts +7 -0
- package/core/modules/flow-configuration/index.d.ts +1 -0
- package/core/modules/flow-configuration/services/flow-configuration.service.d.ts +23 -0
- package/core/modules/index.d.ts +2 -0
- package/core/operators/filter-successful-execute.operator.d.ts +3 -0
- package/core/operators/index.d.ts +1 -0
- package/core/pipes/action-code.pipe.d.ts +8 -0
- package/core/pipes/date.pipe.d.ts +13 -0
- package/core/pipes/index.d.ts +5 -0
- package/core/pipes/number.pipe.d.ts +10 -0
- package/core/pipes/pipes.module.d.ts +10 -0
- package/core/pipes/price.pipe.d.ts +10 -0
- package/core/services/catalog-products.service.d.ts +11 -0
- package/core/services/flow-info.service.d.ts +44 -0
- package/core/services/flow-state-configuration.service.d.ts +25 -0
- package/core/services/flow-state.service.d.ts +70 -0
- package/core/services/index.d.ts +8 -0
- package/core/services/integration.state.d.ts +16 -0
- package/core/services/product-images.service.d.ts +12 -0
- package/core/services/runtime-settings.service.d.ts +24 -0
- package/core/services/sales-transaction.service.d.ts +27 -0
- package/core/types/flow-customization.types.d.ts +10 -0
- package/core/types/flow-state.types.d.ts +12 -0
- package/core/types/formatting-settings.types.d.ts +13 -0
- package/core/types/index.d.ts +5 -0
- package/core/types/integration.types.d.ts +10 -0
- package/core/types/pipe.types.d.ts +1 -0
- package/core/types/ui-definition.types.d.ts +1 -0
- package/core/utils/index.d.ts +4 -0
- package/core/utils/pcm.utils.d.ts +5 -0
- package/core/utils/transaction-item.utils.d.ts +10 -0
- package/core/utils/transaction-item.worker.d.ts +8 -0
- package/core/utils/ui-definition.utils.d.ts +2 -0
- package/esm2020/cms/cms.actions.mjs +151 -0
- package/esm2020/cms/cms.default.mjs +5 -0
- package/esm2020/cms/cms.elements.mjs +52 -0
- package/esm2020/cms/cms.layouts.mjs +239 -0
- package/esm2020/cms/components/element-children/element-children.component.mjs +41 -0
- package/esm2020/cms/components/element-children/element-children.module.mjs +21 -0
- package/esm2020/cms/components/element-drop-handle/element-drop-handle.component.mjs +28 -0
- package/esm2020/cms/components/element-drop-handle/element-drop-handle.module.mjs +19 -0
- package/esm2020/cms/components/element-renderer/element-renderer.component.mjs +117 -0
- package/esm2020/cms/components/element-renderer/element-renderer.module.mjs +16 -0
- package/esm2020/cms/components/element-tools-panel/element-tools-panel.component.mjs +35 -0
- package/esm2020/cms/components/element.component.mjs +45 -0
- package/esm2020/cms/components/index.mjs +2 -0
- package/esm2020/cms/components/plugin.component.mjs +17 -0
- package/esm2020/cms/components/preview/index.mjs +4 -0
- package/esm2020/cms/components/preview/preview.component.mjs +75 -0
- package/esm2020/cms/components/preview/preview.module.mjs +42 -0
- package/esm2020/cms/components/preview/preview.types.mjs +2 -0
- package/esm2020/cms/decorators/element.decorator.mjs +6 -0
- package/esm2020/cms/decorators/index.mjs +2 -0
- package/esm2020/cms/definitions/index.mjs +2 -0
- package/esm2020/cms/definitions/ui-builder.definitions.mjs +18 -0
- package/esm2020/cms/directives/custom-template.directive.mjs +38 -0
- package/esm2020/cms/engine/models/entity.mjs +17 -0
- package/esm2020/cms/engine/models/plugin.mjs +6 -0
- package/esm2020/cms/index.mjs +16 -0
- package/esm2020/cms/injection-tokens.mjs +7 -0
- package/esm2020/cms/launcher.module.mjs +24 -0
- package/esm2020/cms/modules/federated/default-options.mjs +5 -0
- package/esm2020/cms/modules/federated/export.mjs +2 -0
- package/esm2020/cms/modules/federated/federated-host.directive.mjs +16 -0
- package/esm2020/cms/modules/federated/federated.component.mjs +74 -0
- package/esm2020/cms/modules/federated/federated.module.mjs +20 -0
- package/esm2020/cms/modules/federated/federated.types.mjs +2 -0
- package/esm2020/cms/modules/migrations/index.mjs +3 -0
- package/esm2020/cms/modules/migrations/migrations.mjs +22 -0
- package/esm2020/cms/modules/migrations/migrations.module.mjs +15 -0
- package/esm2020/cms/modules/migrations/services/migrations.service.mjs +47 -0
- package/esm2020/cms/modules/migrations/types/migrations.types.mjs +2 -0
- package/esm2020/cms/modules/runtime/index.mjs +4 -0
- package/esm2020/cms/modules/runtime/runtime.module.mjs +32 -0
- package/esm2020/cms/modules/runtime/services/compilation.service.mjs +93 -0
- package/esm2020/cms/modules/runtime/services/runtime-editor.service.mjs +30 -0
- package/esm2020/cms/modules/runtime/services/runtime.service.mjs +117 -0
- package/esm2020/cms/modules/runtime/tokens.mjs +3 -0
- package/esm2020/cms/modules/runtime/types/compilation.types.mjs +2 -0
- package/esm2020/cms/modules/runtime/types/runtime.actions.mjs +2 -0
- package/esm2020/cms/plugins/element-hover.plugin.mjs +121 -0
- package/esm2020/cms/plugins/io.plugin.mjs +45 -0
- package/esm2020/cms/plugins/page.plugin.mjs +37 -0
- package/esm2020/cms/plugins/region.plugin.mjs +59 -0
- package/esm2020/cms/plugins/script.plugin.mjs +31 -0
- package/esm2020/cms/services/element-context.service.mjs +10 -0
- package/esm2020/cms/services/index.mjs +3 -0
- package/esm2020/cms/services/io-provider.service.mjs +53 -0
- package/esm2020/cms/services/resources.service.mjs +71 -0
- package/esm2020/cms/services/templates.service.mjs +32 -0
- package/esm2020/cms/types/common.types.mjs +2 -0
- package/esm2020/cms/types/elements.types.mjs +2 -0
- package/esm2020/cms/types/index.mjs +7 -0
- package/esm2020/cms/types/layouts.types.mjs +71 -0
- package/esm2020/cms/types/pages.types.mjs +2 -0
- package/esm2020/cms/types/path.types.mjs +2 -0
- package/esm2020/cms/utils/element-metadata-worker.mjs +31 -0
- package/esm2020/cms/utils/element.utils.mjs +182 -0
- package/esm2020/cms/utils/elements-resolver.mjs +206 -0
- package/esm2020/cms/utils/encoding.utils.mjs +29 -0
- package/esm2020/cms/utils/index.mjs +10 -0
- package/esm2020/cms/utils/inject.mjs +27 -0
- package/esm2020/cms/utils/path.utils.mjs +44 -0
- package/esm2020/cms/utils/script.utils.mjs +46 -0
- package/esm2020/cms/utils/transpilation-worker.mjs +52 -0
- package/esm2020/cms/utils/ui-builder-layout.utils.mjs +46 -0
- package/esm2020/cms/utils/ui-definition.utils.mjs +85 -0
- package/esm2020/cms/veloceapps-sdk-cms.mjs +5 -0
- package/esm2020/cms/vendor-map.mjs +83 -0
- package/esm2020/core/core.module.mjs +54 -0
- package/esm2020/core/directives/directives.module.mjs +16 -0
- package/esm2020/core/directives/index.mjs +3 -0
- package/esm2020/core/directives/primeng-calendar.directive.mjs +41 -0
- package/esm2020/core/index.mjs +9 -0
- package/esm2020/core/modules/configuration/configuration.module.mjs +34 -0
- package/esm2020/core/modules/configuration/index.mjs +7 -0
- package/esm2020/core/modules/configuration/services/configuration-runtime.service.mjs +29 -0
- package/esm2020/core/modules/configuration/services/configuration-state.service.mjs +381 -0
- package/esm2020/core/modules/configuration/services/configuration.service.mjs +159 -0
- package/esm2020/core/modules/configuration/services/guided-selling.service.mjs +62 -0
- package/esm2020/core/modules/configuration/services/test-mode-configuration.service.mjs +97 -0
- package/esm2020/core/modules/configuration/types/configuration-runtime.types.mjs +2 -0
- package/esm2020/core/modules/configuration/types/configuration.types.mjs +2 -0
- package/esm2020/core/modules/configuration/types/index.mjs +3 -0
- package/esm2020/core/modules/flow-configuration/flow-configuration.module.mjs +17 -0
- package/esm2020/core/modules/flow-configuration/index.mjs +2 -0
- package/esm2020/core/modules/flow-configuration/services/flow-configuration.service.mjs +80 -0
- package/esm2020/core/modules/index.mjs +3 -0
- package/esm2020/core/operators/filter-successful-execute.operator.mjs +5 -0
- package/esm2020/core/operators/index.mjs +2 -0
- package/esm2020/core/pipes/action-code.pipe.mjs +20 -0
- package/esm2020/core/pipes/date.pipe.mjs +44 -0
- package/esm2020/core/pipes/index.mjs +6 -0
- package/esm2020/core/pipes/number.pipe.mjs +27 -0
- package/esm2020/core/pipes/pipes.module.mjs +19 -0
- package/esm2020/core/pipes/price.pipe.mjs +30 -0
- package/esm2020/core/services/catalog-products.service.mjs +25 -0
- package/esm2020/core/services/flow-info.service.mjs +146 -0
- package/esm2020/core/services/flow-state-configuration.service.mjs +120 -0
- package/esm2020/core/services/flow-state.service.mjs +417 -0
- package/esm2020/core/services/index.mjs +9 -0
- package/esm2020/core/services/integration.state.mjs +36 -0
- package/esm2020/core/services/product-images.service.mjs +30 -0
- package/esm2020/core/services/runtime-settings.service.mjs +112 -0
- package/esm2020/core/services/sales-transaction.service.mjs +67 -0
- package/esm2020/core/types/flow-customization.types.mjs +3 -0
- package/esm2020/core/types/flow-state.types.mjs +2 -0
- package/esm2020/core/types/formatting-settings.types.mjs +3 -0
- package/esm2020/core/types/index.mjs +6 -0
- package/esm2020/core/types/integration.types.mjs +2 -0
- package/esm2020/core/types/pipe.types.mjs +2 -0
- package/esm2020/core/types/ui-definition.types.mjs +2 -0
- package/esm2020/core/utils/index.mjs +5 -0
- package/esm2020/core/utils/pcm.utils.mjs +15 -0
- package/esm2020/core/utils/transaction-item.utils.mjs +144 -0
- package/esm2020/core/utils/transaction-item.worker.mjs +16 -0
- package/esm2020/core/utils/ui-definition.utils.mjs +9 -0
- package/esm2020/core/veloceapps-sdk-core.mjs +5 -0
- package/esm2020/index.mjs +2 -0
- package/esm2020/src/components/dialog/dialog.component.mjs +36 -0
- package/esm2020/src/components/dialog/dialog.module.mjs +19 -0
- package/esm2020/src/components/dialog/dialog.types.mjs +2 -0
- package/esm2020/src/components/flow-header/flow-header.component.mjs +107 -0
- package/esm2020/src/components/flow-header/flow-header.module.mjs +19 -0
- package/esm2020/src/components/flow-header/index.mjs +2 -0
- package/esm2020/src/components/guided-selling/guided-selling.component.mjs +107 -0
- package/esm2020/src/components/guided-selling/guided-selling.module.mjs +19 -0
- package/esm2020/src/configure-primeng.mjs +33 -0
- package/esm2020/src/constants.mjs +2 -0
- package/esm2020/src/flow-routing.module.mjs +97 -0
- package/esm2020/src/flow.component.mjs +39 -0
- package/esm2020/src/flow.module.mjs +60 -0
- package/esm2020/src/guards/flow.guard.mjs +35 -0
- package/esm2020/src/guards/product-unload.guard.mjs +49 -0
- package/esm2020/src/guards/root.guard.mjs +46 -0
- package/esm2020/src/index.mjs +5 -0
- package/esm2020/src/pages/assets/assets.component.mjs +106 -0
- package/esm2020/src/pages/assets/assets.module.mjs +20 -0
- package/esm2020/src/pages/catalog/catalog.component.mjs +106 -0
- package/esm2020/src/pages/catalog/catalog.module.mjs +20 -0
- package/esm2020/src/pages/debug/debug.component.mjs +49 -0
- package/esm2020/src/pages/debug/debug.module.mjs +46 -0
- package/esm2020/src/pages/product/product.component.mjs +55 -0
- package/esm2020/src/pages/product/product.module.mjs +20 -0
- package/esm2020/src/pages/record-not-found/record-not-found.component.mjs +27 -0
- package/esm2020/src/pages/record-not-found/record-not-found.module.mjs +20 -0
- package/esm2020/src/pages/shopping-cart/shopping-cart.component.mjs +106 -0
- package/esm2020/src/pages/shopping-cart/shopping-cart.module.mjs +20 -0
- package/esm2020/src/resolvers/flow.resolver.mjs +50 -0
- package/esm2020/src/resolvers/pcm-model.resolver.mjs +12 -0
- package/esm2020/src/resolvers/sales-transaction.resolver.mjs +64 -0
- package/esm2020/src/resolvers/ui-definition.resolver.mjs +44 -0
- package/esm2020/src/services/flow-dialog.service.mjs +91 -0
- package/esm2020/src/services/flow-router.service.mjs +173 -0
- package/esm2020/src/services/flow.service.mjs +102 -0
- package/esm2020/src/services/guided-selling.service.mjs +34 -0
- package/esm2020/src/services/index.mjs +4 -0
- package/esm2020/src/types/index.mjs +2 -0
- package/esm2020/src/types/route.types.mjs +2 -0
- package/esm2020/veloceapps-sdk.mjs +5 -0
- package/fesm2015/veloceapps-sdk-cms.mjs +2514 -0
- package/fesm2015/veloceapps-sdk-cms.mjs.map +1 -0
- package/fesm2015/veloceapps-sdk-core.mjs +2084 -0
- package/fesm2015/veloceapps-sdk-core.mjs.map +1 -0
- package/fesm2015/veloceapps-sdk.mjs +1598 -0
- package/fesm2015/veloceapps-sdk.mjs.map +1 -0
- package/fesm2020/veloceapps-sdk-cms.mjs +2613 -0
- package/fesm2020/veloceapps-sdk-cms.mjs.map +1 -0
- package/{fesm2022 → fesm2020}/veloceapps-sdk-core.mjs +133 -145
- package/fesm2020/veloceapps-sdk-core.mjs.map +1 -0
- package/{fesm2022 → fesm2020}/veloceapps-sdk.mjs +192 -186
- package/fesm2020/veloceapps-sdk.mjs.map +1 -0
- package/index.d.ts +1 -330
- package/package.json +34 -17
- 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 +7 -0
- package/src/components/flow-header/flow-header.component.d.ts +25 -0
- package/src/components/flow-header/flow-header.module.d.ts +9 -0
- package/src/components/flow-header/index.d.ts +1 -0
- package/src/components/guided-selling/guided-selling.component.d.ts +25 -0
- package/src/components/guided-selling/guided-selling.module.d.ts +9 -0
- package/src/configure-primeng.d.ts +1 -0
- package/src/constants.d.ts +1 -0
- package/src/flow-routing.module.d.ts +11 -0
- package/src/flow.component.d.ts +21 -0
- package/src/flow.module.d.ts +16 -0
- package/src/guards/flow.guard.d.ts +2 -0
- package/src/guards/product-unload.guard.d.ts +16 -0
- package/src/guards/root.guard.d.ts +14 -0
- package/src/index.d.ts +4 -0
- package/src/pages/assets/assets.component.d.ts +31 -0
- package/src/pages/assets/assets.module.d.ts +10 -0
- package/src/pages/catalog/catalog.component.d.ts +31 -0
- package/src/pages/catalog/catalog.module.d.ts +10 -0
- package/src/pages/debug/debug.component.d.ts +21 -0
- package/src/pages/debug/debug.module.d.ts +14 -0
- package/src/pages/product/product.component.d.ts +24 -0
- package/src/pages/product/product.module.d.ts +10 -0
- package/src/pages/record-not-found/record-not-found.component.d.ts +12 -0
- package/src/pages/record-not-found/record-not-found.module.d.ts +9 -0
- package/src/pages/shopping-cart/shopping-cart.component.d.ts +31 -0
- package/src/pages/shopping-cart/shopping-cart.module.d.ts +10 -0
- package/src/resolvers/flow.resolver.d.ts +14 -0
- package/src/resolvers/pcm-model.resolver.d.ts +3 -0
- package/src/resolvers/sales-transaction.resolver.d.ts +18 -0
- package/src/resolvers/ui-definition.resolver.d.ts +3 -0
- package/src/services/flow-dialog.service.d.ts +23 -0
- package/src/services/flow-router.service.d.ts +42 -0
- package/src/services/flow.service.d.ts +21 -0
- package/src/services/guided-selling.service.d.ts +13 -0
- package/src/services/index.d.ts +3 -0
- package/src/types/index.d.ts +1 -0
- package/src/types/route.types.d.ts +4 -0
- package/fesm2022/veloceapps-sdk-cms.mjs +0 -2611
- package/fesm2022/veloceapps-sdk-cms.mjs.map +0 -1
- package/fesm2022/veloceapps-sdk-core.mjs.map +0 -1
- package/fesm2022/veloceapps-sdk.mjs.map +0 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { UIDefinitionMetadata } from '@veloceapps/core';
|
|
3
|
+
import { Plugin } from './engine/models/plugin';
|
|
4
|
+
import { ElementConfig, ElementMetadata } from './types/common.types';
|
|
5
|
+
export declare const DEFAULT_PLUGINS_TOKEN: InjectionToken<(typeof Plugin)[]>;
|
|
6
|
+
export declare const UI_DEFINITION_METADATA: InjectionToken<UIDefinitionMetadata>;
|
|
7
|
+
export declare const ELEMENT_METADATA: InjectionToken<ElementMetadata>;
|
|
8
|
+
export declare const SHARED_ELEMENT_METADATA: InjectionToken<ElementMetadata | undefined>;
|
|
9
|
+
export declare const ELEMENT_CONFIG: InjectionToken<ElementConfig>;
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
import * as i5 from "./modules/runtime/runtime.module";
|
|
7
|
+
import * as i6 from "./components/preview/preview.module";
|
|
8
|
+
export declare class LauncherModule {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LauncherModule, never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<LauncherModule, never, [typeof i1.CommonModule, typeof i2.CoreModule, typeof i3.ApiModule, typeof i4.SdkCoreModule, typeof i5.RuntimeModule, typeof i6.PreviewModule], [typeof i6.PreviewModule]>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<LauncherModule>;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FederatedComponentInstance, FederatedModuleOptions } from './federated.types';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ViewContainerRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FederatedHostDirective {
|
|
4
|
+
viewContainerRef: ViewContainerRef;
|
|
5
|
+
constructor(viewContainerRef: ViewContainerRef);
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FederatedHostDirective, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FederatedHostDirective, "[vlFederatedHost]", never, {}, {}, never, never, false, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AfterViewInit, Injector, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { BehaviorSubject } from 'rxjs';
|
|
3
|
+
import { FederatedHostDirective } from './federated-host.directive';
|
|
4
|
+
import { FederatedModuleOptions } from './federated.types';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class FederatedComponent implements OnInit, AfterViewInit, OnChanges {
|
|
7
|
+
private injector;
|
|
8
|
+
host: FederatedHostDirective;
|
|
9
|
+
remoteEntry?: string;
|
|
10
|
+
remoteName?: string;
|
|
11
|
+
exposedModule?: string;
|
|
12
|
+
data?: unknown;
|
|
13
|
+
options?: FederatedModuleOptions;
|
|
14
|
+
isLoading$: BehaviorSubject<boolean>;
|
|
15
|
+
suppressLoading: boolean;
|
|
16
|
+
loadingLabel: string;
|
|
17
|
+
private instance?;
|
|
18
|
+
constructor(injector: Injector);
|
|
19
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
20
|
+
ngOnInit(): void;
|
|
21
|
+
ngAfterViewInit(): void;
|
|
22
|
+
private normalizeRemoteEntry;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FederatedComponent, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FederatedComponent, "veloce-host-federated", never, { "remoteEntry": "remoteEntry"; "remoteName": "remoteName"; "exposedModule": "exposedModule"; "data": "data"; "options": "options"; }, {}, never, never, false, never>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./federated.component";
|
|
3
|
+
import * as i2 from "./federated-host.directive";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
import * as i4 from "@veloceapps/components";
|
|
6
|
+
export declare class FederatedModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FederatedModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FederatedModule, [typeof i1.FederatedComponent, typeof i2.FederatedHostDirective], [typeof i3.CommonModule, typeof i4.LoaderModule], [typeof i1.FederatedComponent]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FederatedModule>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export 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 exposed Angular module
|
|
9
|
+
*/
|
|
10
|
+
exposedModule?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Suppress remote module loading process spinner
|
|
13
|
+
*/
|
|
14
|
+
suppressLoading?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Loading label. Default: LOADING
|
|
17
|
+
*/
|
|
18
|
+
loadingLabel?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Ready callback is called when remote module has been loaded
|
|
21
|
+
*/
|
|
22
|
+
onReady?: () => void;
|
|
23
|
+
};
|
|
24
|
+
export interface FederatedComponentInstance<D = unknown> {
|
|
25
|
+
data?: D;
|
|
26
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class MigrationsModule {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MigrationsModule, never>;
|
|
4
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MigrationsModule, never, never, never>;
|
|
5
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MigrationsModule>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ToastService } from '@veloceapps/components';
|
|
2
|
+
import { UIDefinition } from '@veloceapps/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class MigrationsService {
|
|
5
|
+
private toastService;
|
|
6
|
+
constructor(toastService: ToastService);
|
|
7
|
+
migrateUIDefinition(uiDef: UIDefinition): UIDefinition | undefined;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MigrationsService, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MigrationsService>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
import * as i2 from "@veloceapps/core";
|
|
4
|
+
export declare class RuntimeModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<RuntimeModule, never, [typeof i1.CommonModule, typeof i2.CoreModule], never>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<RuntimeModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
2
|
+
import { UIDefinition } from '@veloceapps/core';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { CMSPreviewConfig } from '../../../components/preview';
|
|
5
|
+
import { CompilationResult } from '../../../modules/runtime/types/compilation.types';
|
|
6
|
+
import { ElementMetadata } from '../../../types/common.types';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class CompilationService {
|
|
9
|
+
private injector;
|
|
10
|
+
private uiDefinitionMeta?;
|
|
11
|
+
private elementsResolver?;
|
|
12
|
+
constructor(injector: Injector);
|
|
13
|
+
compileUIDefinition$(uiDefinition: UIDefinition, config?: CMSPreviewConfig): Observable<CompilationResult>;
|
|
14
|
+
compileElement$(element: ElementMetadata): Observable<CompilationResult>;
|
|
15
|
+
clear(): void;
|
|
16
|
+
private getModule;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CompilationService, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CompilationService>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Patch } from 'rfc6902';
|
|
2
|
+
import { BehaviorSubject, Observable, ReplaySubject } from 'rxjs';
|
|
3
|
+
import { RuntimeElementDeleteEvent, RuntimeElementDropEvent, RuntimeShowSettingsEvent } from '../types/runtime.actions';
|
|
4
|
+
import { RuntimeService } from './runtime.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class RuntimeEditorService {
|
|
7
|
+
private runtimeService;
|
|
8
|
+
private editorModeSubj$;
|
|
9
|
+
onElementDropped$: ReplaySubject<RuntimeElementDropEvent>;
|
|
10
|
+
onElementDeleted$: ReplaySubject<RuntimeElementDeleteEvent>;
|
|
11
|
+
onElementSettingsToggled$: ReplaySubject<RuntimeShowSettingsEvent>;
|
|
12
|
+
editorMode$: Observable<boolean>;
|
|
13
|
+
dragMode$: BehaviorSubject<boolean>;
|
|
14
|
+
selectedElementPath$: BehaviorSubject<string | null>;
|
|
15
|
+
constructor(runtimeService: RuntimeService);
|
|
16
|
+
applyPatch$(patch: Patch): Observable<void>;
|
|
17
|
+
toggleEditorMode(): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeEditorService, never>;
|
|
19
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RuntimeEditorService>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ComponentRef, Injector, NgModule, NgModuleRef, Type } from '@angular/core';
|
|
2
|
+
import { UIDefinition } from '@veloceapps/core';
|
|
3
|
+
import { IntegrationState } from '@veloceapps/sdk/core';
|
|
4
|
+
import { Dictionary } from 'lodash';
|
|
5
|
+
import { Patch } from 'rfc6902';
|
|
6
|
+
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
7
|
+
import { CMSPreviewConfig } from '../../../components/preview/preview.types';
|
|
8
|
+
import { Entity } from '../../../engine/models/entity';
|
|
9
|
+
import { ElementMetadata } from '../../../types';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare class RuntimeService {
|
|
12
|
+
private injector;
|
|
13
|
+
private integrationState;
|
|
14
|
+
moduleRefs: NgModuleRef<NgModule>[];
|
|
15
|
+
componentRefs: Dictionary<ComponentRef<Entity> | undefined>;
|
|
16
|
+
componentTypes: Record<string, Type<Entity>>;
|
|
17
|
+
applicationTree: ElementMetadata[];
|
|
18
|
+
config?: CMSPreviewConfig;
|
|
19
|
+
isInitialized$: BehaviorSubject<boolean>;
|
|
20
|
+
updated$: Subject<void>;
|
|
21
|
+
selectedPageName$: BehaviorSubject<string | null>;
|
|
22
|
+
selectedOverlayNames$: BehaviorSubject<string[]>;
|
|
23
|
+
private compilationService;
|
|
24
|
+
constructor(injector: Injector, integrationState: IntegrationState);
|
|
25
|
+
initialize$(uiDefinition?: UIDefinition, config?: CMSPreviewConfig): Observable<ElementMetadata[]>;
|
|
26
|
+
applyPatch$(patch: Patch): Observable<void>;
|
|
27
|
+
getCompiledElement$(path: string): Observable<ElementMetadata | undefined>;
|
|
28
|
+
clear(): void;
|
|
29
|
+
private addElement$;
|
|
30
|
+
private deleteElement;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeService, never>;
|
|
32
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RuntimeService>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { NgModule, NgModuleRef, Type } from '@angular/core';
|
|
2
|
+
import { Entity } from '../../../engine/models/entity';
|
|
3
|
+
import { ElementMetadata } from '../../../types/common.types';
|
|
4
|
+
export interface CompilationResult {
|
|
5
|
+
elements: ElementMetadata[];
|
|
6
|
+
moduleRef: NgModuleRef<NgModule>;
|
|
7
|
+
componentTypes: Record<string, Type<Entity>>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ElementMetadata } from '../../../types';
|
|
2
|
+
export interface RuntimeElementDropEvent {
|
|
3
|
+
element: ElementMetadata;
|
|
4
|
+
path: string;
|
|
5
|
+
index: number;
|
|
6
|
+
}
|
|
7
|
+
export interface RuntimeElementDeleteEvent {
|
|
8
|
+
path: string;
|
|
9
|
+
}
|
|
10
|
+
export interface RuntimeShowSettingsEvent {
|
|
11
|
+
path: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { ElementComponent } from '../components/element.component';
|
|
3
|
+
import { PluginComponent } from '../components/plugin.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ElementHoverPlugin implements PluginComponent, OnDestroy {
|
|
6
|
+
host: ElementComponent;
|
|
7
|
+
private readonly hoverClassName;
|
|
8
|
+
private readonly metadata;
|
|
9
|
+
private readonly appRef;
|
|
10
|
+
private readonly el;
|
|
11
|
+
private readonly document;
|
|
12
|
+
private readonly runtimeEditorService;
|
|
13
|
+
private overlayEl?;
|
|
14
|
+
private isHovered$;
|
|
15
|
+
private isSelected$;
|
|
16
|
+
private destroyed$;
|
|
17
|
+
private listenersAttached;
|
|
18
|
+
private mouseOverListenerBound;
|
|
19
|
+
private mouseLeaveListenerBound;
|
|
20
|
+
private clickListenerBound;
|
|
21
|
+
constructor(host: ElementComponent);
|
|
22
|
+
ngOnDestroy(): void;
|
|
23
|
+
private attachListeners;
|
|
24
|
+
private detachListeners;
|
|
25
|
+
private mouseOverListener;
|
|
26
|
+
private clickListener;
|
|
27
|
+
private mouseLeaveListener;
|
|
28
|
+
private addHighlight;
|
|
29
|
+
private removeHighlight;
|
|
30
|
+
private updateHighlight;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ElementHoverPlugin, never>;
|
|
32
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ElementHoverPlugin>;
|
|
33
|
+
}
|
|
@@ -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, never, false, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { ElementComponent } from '../components/element.component';
|
|
3
|
+
import { PluginComponent } from '../components/plugin.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class PagePlugin implements PluginComponent, OnDestroy {
|
|
6
|
+
host: ElementComponent;
|
|
7
|
+
private metadata;
|
|
8
|
+
private el;
|
|
9
|
+
private destroy$;
|
|
10
|
+
constructor(host: ElementComponent);
|
|
11
|
+
ngOnDestroy(): void;
|
|
12
|
+
private styleFullPage;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PagePlugin, never>;
|
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PagePlugin, never, never, {}, {}, never, never, false, never>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { ElementComponent } from '../components/element.component';
|
|
3
|
+
import { PluginComponent } from '../components/plugin.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class RegionPlugin implements PluginComponent, OnDestroy {
|
|
6
|
+
host: ElementComponent;
|
|
7
|
+
private metadata;
|
|
8
|
+
private document;
|
|
9
|
+
private el;
|
|
10
|
+
private regionNameEl;
|
|
11
|
+
private destroy$;
|
|
12
|
+
constructor(host: ElementComponent);
|
|
13
|
+
ngOnDestroy(): void;
|
|
14
|
+
private addRegionName;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RegionPlugin, never>;
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RegionPlugin, never, never, {}, {}, never, never, false, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
constructor(host: ElementComponent);
|
|
7
|
+
private addScript;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScriptPlugin, never>;
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ScriptPlugin, never, never, {}, {}, never, never, false, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ElementMetadata } from '../types/common.types';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ElementContextService {
|
|
4
|
+
metadata?: ElementMetadata;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ElementContextService, never>;
|
|
6
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ElementContextService>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
2
|
+
import { RuntimeService } from '../modules/runtime/services/runtime.service';
|
|
3
|
+
import { ElementMetadata } from '../types/common.types';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class IOProviderService {
|
|
6
|
+
private runtimeService;
|
|
7
|
+
private inputs;
|
|
8
|
+
constructor(runtimeService: RuntimeService);
|
|
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,21 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { ScriptHost } from '../types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ResourcesService {
|
|
5
|
+
private scripts;
|
|
6
|
+
private loaded$;
|
|
7
|
+
/**
|
|
8
|
+
* ngx-monaco-editor adds amd-loader library for loading resources when first time initialized
|
|
9
|
+
* Which breaks further loading of 3rd party libaries.
|
|
10
|
+
*
|
|
11
|
+
* To handle this issue, in case 'amd' is defined, we clear it, and then restore when the script is loaded
|
|
12
|
+
*/
|
|
13
|
+
private amd;
|
|
14
|
+
loadScript(url: string): Observable<void>;
|
|
15
|
+
loadStyles(url: string): Observable<void>;
|
|
16
|
+
loadStyles(host: ScriptHost, url: string): Observable<void>;
|
|
17
|
+
private persistAMDLoader;
|
|
18
|
+
private restoreAMDLoader;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResourcesService, never>;
|
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ResourcesService>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
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,130 @@
|
|
|
1
|
+
import { Dictionary } from 'lodash';
|
|
2
|
+
import { Entity } from '../engine/models/entity';
|
|
3
|
+
import { Plugin } from '../engine/models/plugin';
|
|
4
|
+
import { PageLayout } from './layouts.types';
|
|
5
|
+
import { PageType } from './pages.types';
|
|
6
|
+
export type ELEMENT_TYPE = 'CUSTOMIZATION_PAGE' | 'CUSTOM' | 'CONTAINER' | 'SERVICE' | 'REFERENCE' | 'PAGE' | 'REGION';
|
|
7
|
+
export type ElementStyleDeclaration = Partial<CSSStyleDeclaration>;
|
|
8
|
+
export interface ElementConfig {
|
|
9
|
+
component: typeof Entity;
|
|
10
|
+
plugins?: (typeof Plugin)[];
|
|
11
|
+
defaultTemplate?: string;
|
|
12
|
+
suppressTemplate?: boolean;
|
|
13
|
+
suppressStyles?: boolean;
|
|
14
|
+
builder?: {
|
|
15
|
+
suppressRemovable?: boolean;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export interface ElementModel {
|
|
19
|
+
/**
|
|
20
|
+
* Defines a path for an element model.
|
|
21
|
+
* It's combined with a path to a target element and an output property name.
|
|
22
|
+
*
|
|
23
|
+
* If target value is an Array, then the element will be repeated `n` times and each instance will get it's own value.
|
|
24
|
+
*
|
|
25
|
+
* Examples:
|
|
26
|
+
* - `/Root/Services/DataService/:products`
|
|
27
|
+
* - `../../Services/DataService/:products`
|
|
28
|
+
* - `@Services/DataService/:products`
|
|
29
|
+
*/
|
|
30
|
+
path?: string;
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated
|
|
33
|
+
* To be removed!!!
|
|
34
|
+
* Used only when `UIDefinitionType = CONFIGURATION`.
|
|
35
|
+
*/
|
|
36
|
+
lineItem?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface ElementDefaultMetadata {
|
|
39
|
+
name: string;
|
|
40
|
+
type: ELEMENT_TYPE;
|
|
41
|
+
/**
|
|
42
|
+
* Make component shared
|
|
43
|
+
*
|
|
44
|
+
* Used only when `type !== REFERENCE`
|
|
45
|
+
*/
|
|
46
|
+
isShared?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Element module name. Module is used for quick access from other elements.
|
|
49
|
+
*
|
|
50
|
+
* 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`
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
53
|
+
module?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Defines inputs of the element. An object where `key` is the name of the input and `value` is target path
|
|
56
|
+
*
|
|
57
|
+
* If `value == null`, then the element acts like a target - we expect other element to connect to it.
|
|
58
|
+
*
|
|
59
|
+
* Examples:
|
|
60
|
+
*
|
|
61
|
+
* 1. `products: '/Root/Services/DataService'`
|
|
62
|
+
* The element will have `products` input which will get the data from `products` output in dataservice element
|
|
63
|
+
*
|
|
64
|
+
* 2. `productsList: '/Root/Services/DataService/:products'`
|
|
65
|
+
* The element will have `productsList` input which will get the data from `products` output in dataservice element
|
|
66
|
+
*
|
|
67
|
+
* 3. `productsList: '@Services/DataService/:products'`
|
|
68
|
+
* The element will have `productsList` input which will get the data from `products` output in dataservice element which is declared in `Services` module
|
|
69
|
+
*
|
|
70
|
+
* 4. `onProductSelect: null`
|
|
71
|
+
* The element will have `onProductSelect` input, and the script could have a logic which will listen on the events
|
|
72
|
+
*
|
|
73
|
+
* Relative paths allowed:
|
|
74
|
+
*
|
|
75
|
+
* - `..`
|
|
76
|
+
* - `../:products`
|
|
77
|
+
* - `../../DataService/:products`
|
|
78
|
+
*
|
|
79
|
+
* Input which name starts with '@' is being added to the element as Angular input (suppressing '@' symbol)
|
|
80
|
+
*/
|
|
81
|
+
inputs?: Dictionary<string | null>;
|
|
82
|
+
/**
|
|
83
|
+
* Defines outputs of the element. An object where `key` is the name of the output and `value` is target path
|
|
84
|
+
*
|
|
85
|
+
* If `value == null`, then the element acts like a target - we expect other element to connect to it.
|
|
86
|
+
*
|
|
87
|
+
* Examples:
|
|
88
|
+
*
|
|
89
|
+
* 1. `onProductSelect: '/Root/Services/DataService/:handleProductSelect'`
|
|
90
|
+
* The element will have `onProductSelect` output, which will emit events to the `dataservice` element `handleProductSelect` input
|
|
91
|
+
*
|
|
92
|
+
* 2. `onProductSelect: '@Services/DataService/:handleProductSelect'`
|
|
93
|
+
* Same output but accessing dataservice by the Service module
|
|
94
|
+
*
|
|
95
|
+
* * Output which name starts with '@' is being added to the element as Angular output (suppressing '@' symbol)
|
|
96
|
+
*/
|
|
97
|
+
outputs?: Dictionary<string | null>;
|
|
98
|
+
model?: ElementModel;
|
|
99
|
+
/**
|
|
100
|
+
* Defines a shared component name to use as a reference
|
|
101
|
+
*
|
|
102
|
+
* Used only when `type === REFERENCE`
|
|
103
|
+
*/
|
|
104
|
+
reference?: string;
|
|
105
|
+
children?: string[];
|
|
106
|
+
/**
|
|
107
|
+
* Contains styles configurable from UI builder
|
|
108
|
+
*/
|
|
109
|
+
configuredStyles?: ElementStyleDeclaration;
|
|
110
|
+
/**
|
|
111
|
+
* Page layout
|
|
112
|
+
*
|
|
113
|
+
* Used only when `type === PAGE`
|
|
114
|
+
*/
|
|
115
|
+
layout?: PageLayout;
|
|
116
|
+
/**
|
|
117
|
+
* Page Type
|
|
118
|
+
*
|
|
119
|
+
* Used only when `type === PAGE`
|
|
120
|
+
*/
|
|
121
|
+
pageType?: PageType;
|
|
122
|
+
}
|
|
123
|
+
export interface ElementMetadata extends Omit<ElementDefaultMetadata, 'children'> {
|
|
124
|
+
path: string;
|
|
125
|
+
children: ElementMetadata[];
|
|
126
|
+
template?: string;
|
|
127
|
+
styles?: string;
|
|
128
|
+
script?: string;
|
|
129
|
+
metadata?: string;
|
|
130
|
+
}
|