@veloceapps/sdk 12.0.0-13 → 12.0.0-15
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/index.d.ts +921 -15
- package/core/index.d.ts +525 -8
- package/fesm2022/veloceapps-sdk-cms.mjs +2617 -0
- package/fesm2022/veloceapps-sdk-cms.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/veloceapps-sdk-core.mjs +117 -112
- package/fesm2022/veloceapps-sdk-core.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/veloceapps-sdk.mjs +170 -170
- package/fesm2022/veloceapps-sdk.mjs.map +1 -0
- package/index.d.ts +330 -1
- package/package.json +17 -34
- package/cms/cms.actions.d.ts +0 -154
- package/cms/cms.default.d.ts +0 -5
- package/cms/cms.elements.d.ts +0 -4
- package/cms/cms.layouts.d.ts +0 -4
- package/cms/components/element-children/element-children.component.d.ts +0 -22
- package/cms/components/element-children/element-children.module.d.ts +0 -11
- package/cms/components/element-drop-handle/element-drop-handle.component.d.ts +0 -12
- package/cms/components/element-drop-handle/element-drop-handle.module.d.ts +0 -9
- package/cms/components/element-renderer/element-renderer.component.d.ts +0 -29
- package/cms/components/element-renderer/element-renderer.module.d.ts +0 -7
- package/cms/components/element-tools-panel/element-tools-panel.component.d.ts +0 -14
- package/cms/components/element.component.d.ts +0 -17
- package/cms/components/index.d.ts +0 -1
- package/cms/components/plugin.component.d.ts +0 -15
- package/cms/components/preview/index.d.ts +0 -3
- package/cms/components/preview/preview.component.d.ts +0 -32
- package/cms/components/preview/preview.module.d.ts +0 -13
- package/cms/components/preview/preview.types.d.ts +0 -20
- package/cms/decorators/element.decorator.d.ts +0 -2
- package/cms/decorators/index.d.ts +0 -1
- package/cms/definitions/index.d.ts +0 -1
- package/cms/definitions/ui-builder.definitions.d.ts +0 -6
- package/cms/directives/custom-template.directive.d.ts +0 -17
- package/cms/engine/models/entity.d.ts +0 -11
- package/cms/engine/models/plugin.d.ts +0 -5
- package/cms/injection-tokens.d.ts +0 -9
- package/cms/launcher.module.d.ts +0 -12
- package/cms/modules/federated/default-options.d.ts +0 -4
- package/cms/modules/federated/export.d.ts +0 -1
- package/cms/modules/federated/federated-host.directive.d.ts +0 -8
- package/cms/modules/federated/federated.component.d.ts +0 -25
- package/cms/modules/federated/federated.module.d.ts +0 -10
- package/cms/modules/federated/federated.types.d.ts +0 -26
- package/cms/modules/migrations/index.d.ts +0 -2
- package/cms/modules/migrations/migrations.d.ts +0 -2
- package/cms/modules/migrations/migrations.module.d.ts +0 -6
- package/cms/modules/migrations/services/migrations.service.d.ts +0 -10
- package/cms/modules/migrations/types/migrations.types.d.ts +0 -2
- package/cms/modules/runtime/index.d.ts +0 -3
- package/cms/modules/runtime/runtime.module.d.ts +0 -8
- package/cms/modules/runtime/services/compilation.service.d.ts +0 -19
- package/cms/modules/runtime/services/runtime-editor.service.d.ts +0 -20
- package/cms/modules/runtime/services/runtime.service.d.ts +0 -33
- package/cms/modules/runtime/tokens.d.ts +0 -3
- package/cms/modules/runtime/types/compilation.types.d.ts +0 -8
- package/cms/modules/runtime/types/runtime.actions.d.ts +0 -12
- package/cms/plugins/element-hover.plugin.d.ts +0 -33
- package/cms/plugins/io.plugin.d.ts +0 -9
- package/cms/plugins/page.plugin.d.ts +0 -15
- package/cms/plugins/region.plugin.d.ts +0 -17
- package/cms/plugins/script.plugin.d.ts +0 -10
- package/cms/services/element-context.service.d.ts +0 -7
- package/cms/services/index.d.ts +0 -2
- package/cms/services/io-provider.service.d.ts +0 -15
- package/cms/services/resources.service.d.ts +0 -21
- package/cms/services/templates.service.d.ts +0 -14
- package/cms/types/common.types.d.ts +0 -130
- package/cms/types/elements.types.d.ts +0 -2
- package/cms/types/index.d.ts +0 -6
- package/cms/types/layouts.types.d.ts +0 -102
- package/cms/types/pages.types.d.ts +0 -1
- package/cms/types/path.types.d.ts +0 -11
- package/cms/utils/element-metadata-worker.d.ts +0 -11
- package/cms/utils/element.utils.d.ts +0 -20
- package/cms/utils/elements-resolver.d.ts +0 -28
- package/cms/utils/encoding.utils.d.ts +0 -2
- package/cms/utils/index.d.ts +0 -9
- package/cms/utils/inject.d.ts +0 -1
- package/cms/utils/path.utils.d.ts +0 -3
- package/cms/utils/script.utils.d.ts +0 -2
- package/cms/utils/transpilation-worker.d.ts +0 -13
- package/cms/utils/ui-builder-layout.utils.d.ts +0 -4
- package/cms/utils/ui-definition.utils.d.ts +0 -6
- package/cms/vendor-map.d.ts +0 -86
- package/core/core.module.d.ts +0 -10
- package/core/directives/directives.module.d.ts +0 -7
- package/core/directives/index.d.ts +0 -2
- package/core/directives/primeng-calendar.directive.d.ts +0 -14
- package/core/modules/configuration/configuration.module.d.ts +0 -8
- package/core/modules/configuration/index.d.ts +0 -6
- package/core/modules/configuration/services/configuration-runtime.service.d.ts +0 -19
- package/core/modules/configuration/services/configuration-state.service.d.ts +0 -60
- package/core/modules/configuration/services/configuration.service.d.ts +0 -38
- package/core/modules/configuration/services/guided-selling.service.d.ts +0 -15
- package/core/modules/configuration/services/test-mode-configuration.service.d.ts +0 -26
- package/core/modules/configuration/types/configuration-runtime.types.d.ts +0 -3
- package/core/modules/configuration/types/configuration.types.d.ts +0 -20
- package/core/modules/configuration/types/index.d.ts +0 -2
- package/core/modules/flow-configuration/flow-configuration.module.d.ts +0 -7
- package/core/modules/flow-configuration/index.d.ts +0 -1
- package/core/modules/flow-configuration/services/flow-configuration.service.d.ts +0 -23
- package/core/modules/index.d.ts +0 -2
- package/core/operators/filter-successful-execute.operator.d.ts +0 -3
- package/core/operators/index.d.ts +0 -1
- package/core/pipes/action-code.pipe.d.ts +0 -8
- package/core/pipes/date.pipe.d.ts +0 -13
- package/core/pipes/index.d.ts +0 -5
- package/core/pipes/number.pipe.d.ts +0 -10
- package/core/pipes/pipes.module.d.ts +0 -10
- package/core/pipes/price.pipe.d.ts +0 -10
- package/core/services/catalog-products.service.d.ts +0 -11
- package/core/services/flow-info.service.d.ts +0 -44
- package/core/services/flow-state-configuration.service.d.ts +0 -25
- package/core/services/flow-state.service.d.ts +0 -70
- package/core/services/index.d.ts +0 -8
- package/core/services/integration.state.d.ts +0 -16
- package/core/services/product-images.service.d.ts +0 -12
- package/core/services/runtime-settings.service.d.ts +0 -24
- package/core/services/sales-transaction.service.d.ts +0 -27
- package/core/types/flow-customization.types.d.ts +0 -10
- package/core/types/flow-state.types.d.ts +0 -12
- package/core/types/formatting-settings.types.d.ts +0 -13
- package/core/types/index.d.ts +0 -5
- package/core/types/integration.types.d.ts +0 -10
- package/core/types/pipe.types.d.ts +0 -1
- package/core/types/ui-definition.types.d.ts +0 -1
- package/core/utils/index.d.ts +0 -4
- package/core/utils/pcm.utils.d.ts +0 -5
- package/core/utils/transaction-item.utils.d.ts +0 -10
- package/core/utils/transaction-item.worker.d.ts +0 -8
- package/core/utils/ui-definition.utils.d.ts +0 -2
- package/esm2020/cms/cms.actions.mjs +0 -151
- package/esm2020/cms/cms.default.mjs +0 -5
- package/esm2020/cms/cms.elements.mjs +0 -52
- package/esm2020/cms/cms.layouts.mjs +0 -239
- package/esm2020/cms/components/element-children/element-children.component.mjs +0 -41
- package/esm2020/cms/components/element-children/element-children.module.mjs +0 -21
- package/esm2020/cms/components/element-drop-handle/element-drop-handle.component.mjs +0 -28
- package/esm2020/cms/components/element-drop-handle/element-drop-handle.module.mjs +0 -19
- package/esm2020/cms/components/element-renderer/element-renderer.component.mjs +0 -117
- package/esm2020/cms/components/element-renderer/element-renderer.module.mjs +0 -16
- package/esm2020/cms/components/element-tools-panel/element-tools-panel.component.mjs +0 -35
- package/esm2020/cms/components/element.component.mjs +0 -45
- package/esm2020/cms/components/index.mjs +0 -2
- package/esm2020/cms/components/plugin.component.mjs +0 -17
- package/esm2020/cms/components/preview/index.mjs +0 -4
- package/esm2020/cms/components/preview/preview.component.mjs +0 -75
- package/esm2020/cms/components/preview/preview.module.mjs +0 -42
- package/esm2020/cms/components/preview/preview.types.mjs +0 -2
- package/esm2020/cms/decorators/element.decorator.mjs +0 -6
- package/esm2020/cms/decorators/index.mjs +0 -2
- package/esm2020/cms/definitions/index.mjs +0 -2
- package/esm2020/cms/definitions/ui-builder.definitions.mjs +0 -18
- package/esm2020/cms/directives/custom-template.directive.mjs +0 -38
- package/esm2020/cms/engine/models/entity.mjs +0 -17
- package/esm2020/cms/engine/models/plugin.mjs +0 -6
- package/esm2020/cms/index.mjs +0 -16
- package/esm2020/cms/injection-tokens.mjs +0 -7
- package/esm2020/cms/launcher.module.mjs +0 -24
- package/esm2020/cms/modules/federated/default-options.mjs +0 -5
- package/esm2020/cms/modules/federated/export.mjs +0 -2
- package/esm2020/cms/modules/federated/federated-host.directive.mjs +0 -16
- package/esm2020/cms/modules/federated/federated.component.mjs +0 -74
- package/esm2020/cms/modules/federated/federated.module.mjs +0 -20
- package/esm2020/cms/modules/federated/federated.types.mjs +0 -2
- package/esm2020/cms/modules/migrations/index.mjs +0 -3
- package/esm2020/cms/modules/migrations/migrations.mjs +0 -22
- package/esm2020/cms/modules/migrations/migrations.module.mjs +0 -15
- package/esm2020/cms/modules/migrations/services/migrations.service.mjs +0 -47
- package/esm2020/cms/modules/migrations/types/migrations.types.mjs +0 -2
- package/esm2020/cms/modules/runtime/index.mjs +0 -4
- package/esm2020/cms/modules/runtime/runtime.module.mjs +0 -32
- package/esm2020/cms/modules/runtime/services/compilation.service.mjs +0 -93
- package/esm2020/cms/modules/runtime/services/runtime-editor.service.mjs +0 -30
- package/esm2020/cms/modules/runtime/services/runtime.service.mjs +0 -117
- package/esm2020/cms/modules/runtime/tokens.mjs +0 -3
- package/esm2020/cms/modules/runtime/types/compilation.types.mjs +0 -2
- package/esm2020/cms/modules/runtime/types/runtime.actions.mjs +0 -2
- package/esm2020/cms/plugins/element-hover.plugin.mjs +0 -121
- package/esm2020/cms/plugins/io.plugin.mjs +0 -45
- package/esm2020/cms/plugins/page.plugin.mjs +0 -37
- package/esm2020/cms/plugins/region.plugin.mjs +0 -59
- package/esm2020/cms/plugins/script.plugin.mjs +0 -31
- package/esm2020/cms/services/element-context.service.mjs +0 -10
- package/esm2020/cms/services/index.mjs +0 -3
- package/esm2020/cms/services/io-provider.service.mjs +0 -53
- package/esm2020/cms/services/resources.service.mjs +0 -71
- package/esm2020/cms/services/templates.service.mjs +0 -32
- package/esm2020/cms/types/common.types.mjs +0 -2
- package/esm2020/cms/types/elements.types.mjs +0 -2
- package/esm2020/cms/types/index.mjs +0 -7
- package/esm2020/cms/types/layouts.types.mjs +0 -71
- package/esm2020/cms/types/pages.types.mjs +0 -2
- package/esm2020/cms/types/path.types.mjs +0 -2
- package/esm2020/cms/utils/element-metadata-worker.mjs +0 -31
- package/esm2020/cms/utils/element.utils.mjs +0 -182
- package/esm2020/cms/utils/elements-resolver.mjs +0 -206
- package/esm2020/cms/utils/encoding.utils.mjs +0 -29
- package/esm2020/cms/utils/index.mjs +0 -10
- package/esm2020/cms/utils/inject.mjs +0 -27
- package/esm2020/cms/utils/path.utils.mjs +0 -44
- package/esm2020/cms/utils/script.utils.mjs +0 -46
- package/esm2020/cms/utils/transpilation-worker.mjs +0 -52
- package/esm2020/cms/utils/ui-builder-layout.utils.mjs +0 -46
- package/esm2020/cms/utils/ui-definition.utils.mjs +0 -85
- package/esm2020/cms/veloceapps-sdk-cms.mjs +0 -5
- package/esm2020/cms/vendor-map.mjs +0 -83
- package/esm2020/core/core.module.mjs +0 -54
- package/esm2020/core/directives/directives.module.mjs +0 -16
- package/esm2020/core/directives/index.mjs +0 -3
- package/esm2020/core/directives/primeng-calendar.directive.mjs +0 -41
- package/esm2020/core/index.mjs +0 -9
- package/esm2020/core/modules/configuration/configuration.module.mjs +0 -34
- package/esm2020/core/modules/configuration/index.mjs +0 -7
- package/esm2020/core/modules/configuration/services/configuration-runtime.service.mjs +0 -38
- package/esm2020/core/modules/configuration/services/configuration-state.service.mjs +0 -381
- package/esm2020/core/modules/configuration/services/configuration.service.mjs +0 -172
- package/esm2020/core/modules/configuration/services/guided-selling.service.mjs +0 -62
- package/esm2020/core/modules/configuration/services/test-mode-configuration.service.mjs +0 -97
- package/esm2020/core/modules/configuration/types/configuration-runtime.types.mjs +0 -2
- package/esm2020/core/modules/configuration/types/configuration.types.mjs +0 -2
- package/esm2020/core/modules/configuration/types/index.mjs +0 -3
- package/esm2020/core/modules/flow-configuration/flow-configuration.module.mjs +0 -17
- package/esm2020/core/modules/flow-configuration/index.mjs +0 -2
- package/esm2020/core/modules/flow-configuration/services/flow-configuration.service.mjs +0 -80
- package/esm2020/core/modules/index.mjs +0 -3
- package/esm2020/core/operators/filter-successful-execute.operator.mjs +0 -5
- package/esm2020/core/operators/index.mjs +0 -2
- package/esm2020/core/pipes/action-code.pipe.mjs +0 -20
- package/esm2020/core/pipes/date.pipe.mjs +0 -44
- package/esm2020/core/pipes/index.mjs +0 -6
- package/esm2020/core/pipes/number.pipe.mjs +0 -27
- package/esm2020/core/pipes/pipes.module.mjs +0 -19
- package/esm2020/core/pipes/price.pipe.mjs +0 -30
- package/esm2020/core/services/catalog-products.service.mjs +0 -25
- package/esm2020/core/services/flow-info.service.mjs +0 -146
- package/esm2020/core/services/flow-state-configuration.service.mjs +0 -120
- package/esm2020/core/services/flow-state.service.mjs +0 -417
- package/esm2020/core/services/index.mjs +0 -9
- package/esm2020/core/services/integration.state.mjs +0 -36
- package/esm2020/core/services/product-images.service.mjs +0 -30
- package/esm2020/core/services/runtime-settings.service.mjs +0 -112
- package/esm2020/core/services/sales-transaction.service.mjs +0 -67
- package/esm2020/core/types/flow-customization.types.mjs +0 -3
- package/esm2020/core/types/flow-state.types.mjs +0 -2
- package/esm2020/core/types/formatting-settings.types.mjs +0 -3
- package/esm2020/core/types/index.mjs +0 -6
- package/esm2020/core/types/integration.types.mjs +0 -2
- package/esm2020/core/types/pipe.types.mjs +0 -2
- package/esm2020/core/types/ui-definition.types.mjs +0 -2
- package/esm2020/core/utils/index.mjs +0 -5
- package/esm2020/core/utils/pcm.utils.mjs +0 -15
- package/esm2020/core/utils/transaction-item.utils.mjs +0 -144
- package/esm2020/core/utils/transaction-item.worker.mjs +0 -16
- package/esm2020/core/utils/ui-definition.utils.mjs +0 -9
- package/esm2020/core/veloceapps-sdk-core.mjs +0 -5
- package/esm2020/index.mjs +0 -2
- package/esm2020/src/components/dialog/dialog.component.mjs +0 -36
- package/esm2020/src/components/dialog/dialog.module.mjs +0 -19
- package/esm2020/src/components/dialog/dialog.types.mjs +0 -2
- package/esm2020/src/components/flow-header/flow-header.component.mjs +0 -107
- package/esm2020/src/components/flow-header/flow-header.module.mjs +0 -19
- package/esm2020/src/components/flow-header/index.mjs +0 -2
- package/esm2020/src/components/guided-selling/guided-selling.component.mjs +0 -107
- package/esm2020/src/components/guided-selling/guided-selling.module.mjs +0 -19
- package/esm2020/src/configure-primeng.mjs +0 -33
- package/esm2020/src/constants.mjs +0 -2
- package/esm2020/src/flow-routing.module.mjs +0 -97
- package/esm2020/src/flow.component.mjs +0 -39
- package/esm2020/src/flow.module.mjs +0 -60
- package/esm2020/src/guards/flow.guard.mjs +0 -35
- package/esm2020/src/guards/product-unload.guard.mjs +0 -49
- package/esm2020/src/guards/root.guard.mjs +0 -46
- package/esm2020/src/index.mjs +0 -5
- package/esm2020/src/pages/assets/assets.component.mjs +0 -106
- package/esm2020/src/pages/assets/assets.module.mjs +0 -20
- package/esm2020/src/pages/catalog/catalog.component.mjs +0 -106
- package/esm2020/src/pages/catalog/catalog.module.mjs +0 -20
- package/esm2020/src/pages/debug/debug.component.mjs +0 -49
- package/esm2020/src/pages/debug/debug.module.mjs +0 -46
- package/esm2020/src/pages/product/product.component.mjs +0 -55
- package/esm2020/src/pages/product/product.module.mjs +0 -20
- package/esm2020/src/pages/record-not-found/record-not-found.component.mjs +0 -27
- package/esm2020/src/pages/record-not-found/record-not-found.module.mjs +0 -20
- package/esm2020/src/pages/shopping-cart/shopping-cart.component.mjs +0 -106
- package/esm2020/src/pages/shopping-cart/shopping-cart.module.mjs +0 -20
- package/esm2020/src/resolvers/flow.resolver.mjs +0 -50
- package/esm2020/src/resolvers/pcm-model.resolver.mjs +0 -12
- package/esm2020/src/resolvers/sales-transaction.resolver.mjs +0 -64
- package/esm2020/src/resolvers/ui-definition.resolver.mjs +0 -44
- package/esm2020/src/services/flow-dialog.service.mjs +0 -91
- package/esm2020/src/services/flow-router.service.mjs +0 -173
- package/esm2020/src/services/flow.service.mjs +0 -102
- package/esm2020/src/services/guided-selling.service.mjs +0 -34
- package/esm2020/src/services/index.mjs +0 -4
- package/esm2020/src/types/index.mjs +0 -2
- package/esm2020/src/types/route.types.mjs +0 -2
- package/esm2020/veloceapps-sdk.mjs +0 -5
- package/fesm2015/veloceapps-sdk-cms.mjs +0 -2514
- package/fesm2015/veloceapps-sdk-cms.mjs.map +0 -1
- package/fesm2015/veloceapps-sdk-core.mjs +0 -2104
- package/fesm2015/veloceapps-sdk-core.mjs.map +0 -1
- package/fesm2015/veloceapps-sdk.mjs +0 -1598
- package/fesm2015/veloceapps-sdk.mjs.map +0 -1
- package/fesm2020/veloceapps-sdk-cms.mjs +0 -2613
- package/fesm2020/veloceapps-sdk-cms.mjs.map +0 -1
- package/fesm2020/veloceapps-sdk-core.mjs.map +0 -1
- package/fesm2020/veloceapps-sdk.mjs.map +0 -1
- package/src/components/dialog/dialog.component.d.ts +0 -13
- package/src/components/dialog/dialog.module.d.ts +0 -9
- package/src/components/dialog/dialog.types.d.ts +0 -7
- package/src/components/flow-header/flow-header.component.d.ts +0 -25
- package/src/components/flow-header/flow-header.module.d.ts +0 -9
- package/src/components/flow-header/index.d.ts +0 -1
- package/src/components/guided-selling/guided-selling.component.d.ts +0 -25
- package/src/components/guided-selling/guided-selling.module.d.ts +0 -9
- package/src/configure-primeng.d.ts +0 -1
- package/src/constants.d.ts +0 -1
- package/src/flow-routing.module.d.ts +0 -11
- package/src/flow.component.d.ts +0 -21
- package/src/flow.module.d.ts +0 -16
- package/src/guards/flow.guard.d.ts +0 -2
- package/src/guards/product-unload.guard.d.ts +0 -16
- package/src/guards/root.guard.d.ts +0 -14
- package/src/index.d.ts +0 -4
- package/src/pages/assets/assets.component.d.ts +0 -31
- package/src/pages/assets/assets.module.d.ts +0 -10
- package/src/pages/catalog/catalog.component.d.ts +0 -31
- package/src/pages/catalog/catalog.module.d.ts +0 -10
- package/src/pages/debug/debug.component.d.ts +0 -21
- package/src/pages/debug/debug.module.d.ts +0 -14
- package/src/pages/product/product.component.d.ts +0 -24
- package/src/pages/product/product.module.d.ts +0 -10
- package/src/pages/record-not-found/record-not-found.component.d.ts +0 -12
- package/src/pages/record-not-found/record-not-found.module.d.ts +0 -9
- package/src/pages/shopping-cart/shopping-cart.component.d.ts +0 -31
- package/src/pages/shopping-cart/shopping-cart.module.d.ts +0 -10
- package/src/resolvers/flow.resolver.d.ts +0 -14
- package/src/resolvers/pcm-model.resolver.d.ts +0 -3
- package/src/resolvers/sales-transaction.resolver.d.ts +0 -18
- package/src/resolvers/ui-definition.resolver.d.ts +0 -3
- package/src/services/flow-dialog.service.d.ts +0 -23
- package/src/services/flow-router.service.d.ts +0 -42
- package/src/services/flow.service.d.ts +0 -21
- package/src/services/guided-selling.service.d.ts +0 -13
- package/src/services/index.d.ts +0 -3
- package/src/types/index.d.ts +0 -1
- package/src/types/route.types.d.ts +0 -4
package/cms/index.d.ts
CHANGED
@@ -1,16 +1,922 @@
|
|
1
|
+
import * as i4 from '@veloceapps/sdk/core';
|
2
|
+
import { IntegrationState, ConfigurationService, ConfigurationStateService, GuidedSellingService, filterSuccessfulExecute, FlowInfoService, FlowConfigurationService, FlowStateService, FlowStateConfigurationService, TransactionItemWorker, ProductImagesService, RuntimeSettingsService, ActionCodePipe, DatePipe, NumberPipe, PricePipe, SalesTransactionService, PCMUtils } from '@veloceapps/sdk/core';
|
1
3
|
export { IntegrationAction, IntegrationState, IntegrationStateModel } from '@veloceapps/sdk/core';
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
4
|
+
import * as i0 from '@angular/core';
|
5
|
+
import { Injector, OnChanges, OnInit, DoCheck, AfterContentInit, AfterContentChecked, AfterViewInit, AfterViewChecked, OnDestroy, SimpleChanges, NgModuleRef, NgModule, Type, ComponentRef, ViewContainerRef, ChangeDetectorRef, InjectionToken, TemplateRef } from '@angular/core';
|
6
|
+
import * as rxjs from 'rxjs';
|
7
|
+
import { BehaviorSubject, Observable, Subject, ReplaySubject } from 'rxjs';
|
8
|
+
import * as i3$1 from '@veloceapps/components';
|
9
|
+
import { ToastService, ToastType } from '@veloceapps/components';
|
10
|
+
import * as _veloceapps_core from '@veloceapps/core';
|
11
|
+
import { UIDefinition, UIDefinitionMetadata, UIElement, Operator, Predicate, parseJsonSafely, parseJwt, TokenInfoService, UITemplateType } from '@veloceapps/core';
|
12
|
+
import lodash, { Dictionary } from 'lodash';
|
13
|
+
import { Patch } from 'rfc6902';
|
14
|
+
import * as i2 from '@angular/common';
|
15
|
+
import * as i3 from 'ngx-drag-drop';
|
16
|
+
import { DndDropEvent } from 'ngx-drag-drop';
|
17
|
+
import * as i3$2 from '@veloceapps/api';
|
18
|
+
import { ContractedPriceApiService } from '@veloceapps/api';
|
19
|
+
import * as _veloceapps_sdk_cms from '@veloceapps/sdk/cms';
|
20
|
+
import { DataSource } from '@angular/cdk/collections';
|
21
|
+
import * as angularForms from '@angular/forms';
|
22
|
+
import { CatalogApiService, ConfigurationSettingsApiService, DocumentAttachmentApiService, GuidedSellingApiService, SalesforceApiService, SalesTransactionApiService, ShoppingCartSettingsApiService } from '@veloceapps/api/v2';
|
23
|
+
import * as rxjsOperators from 'rxjs/operators';
|
24
|
+
|
25
|
+
declare namespace FlowAction {
|
26
|
+
const FLOW_CONFIGURE_PRODUCT = "[FLOW]_CONFIGURE_PRODUCT";
|
27
|
+
const FLOW_NAVIGATE_BACK = "[FLOW]_NAVIGATE_BACK";
|
28
|
+
const FLOW_NAVIGATE_TO = "[FLOW]_NAVIGATE_TO";
|
29
|
+
const FLOW_NAVIGATE_TO_CATALOG = "[FLOW]_NAVIGATE_TO_CATALOG";
|
30
|
+
const FLOW_NAVIGATE_TO_SHOPPING_CART = "[FLOW]_NAVIGATE_TO_SHOPPING_CART";
|
31
|
+
const FLOW_APPLY_PRODUCT_CONFIGURATION = "[FLOW]_APPLY_PRODUCT_CONFIGURATION";
|
32
|
+
const FLOW_OPEN_DOC_GEN = "[FLOW]_OPEN_DOC_GEN";
|
33
|
+
const FLOW_CLOSE_DOC_GEN = "[FLOW]_CLOSE_DOC_GEN";
|
34
|
+
const FLOW_SWITCH_OBJECT = "[FLOW]_SWITCH_OBJECT";
|
35
|
+
const REMOTE_APPLY = "[FLOW]_REMOTE_APPLY";
|
36
|
+
const REMOTE_CANCEL = "[FLOW]_REMOTE_CANCEL";
|
37
|
+
const OPEN_GUIDED_SELLING = "[FLOW]_OPEN_GUIDED_SELLING";
|
38
|
+
const SUBMIT_GUIDED_SELLING = "[FLOW]_SUBMIT_GUIDED_SELLING";
|
39
|
+
const CLOSE_GUIDED_SELLING = "[FLOW]_CLOSE_GUIDED_SELLING";
|
40
|
+
const OPEN_DIALOG = "[FLOW]_OPEN_DIALOG";
|
41
|
+
const ConfigureProductAction: ({ transactionItemId, productId, qty, }: {
|
42
|
+
transactionItemId?: string;
|
43
|
+
productId?: string;
|
44
|
+
qty?: number;
|
45
|
+
}) => {
|
46
|
+
type: string;
|
47
|
+
payload: {
|
48
|
+
transactionItemId: string | undefined;
|
49
|
+
productId: string | undefined;
|
50
|
+
qty: number | undefined;
|
51
|
+
};
|
52
|
+
};
|
53
|
+
const NavigateBackAction: () => {
|
54
|
+
type: string;
|
55
|
+
};
|
56
|
+
const NavigateToAction: (path: string, productId?: string, transactionItemId?: string) => {
|
57
|
+
type: string;
|
58
|
+
payload: {
|
59
|
+
path: string;
|
60
|
+
productId: string | undefined;
|
61
|
+
transactionItemId: string | undefined;
|
62
|
+
};
|
63
|
+
};
|
64
|
+
const NavigateToCatalogAction: () => {
|
65
|
+
type: string;
|
66
|
+
};
|
67
|
+
const NavigateToShoppingCartAction: () => {
|
68
|
+
type: string;
|
69
|
+
};
|
70
|
+
const ApplyProductConfigurationAction: () => {
|
71
|
+
type: string;
|
72
|
+
};
|
73
|
+
const RemoteApplyAction: () => {
|
74
|
+
type: string;
|
75
|
+
};
|
76
|
+
const RemoteCancelAction: () => {
|
77
|
+
type: string;
|
78
|
+
};
|
79
|
+
const SwitchObjectAction: (payload: {
|
80
|
+
id: string;
|
81
|
+
}) => {
|
82
|
+
type: string;
|
83
|
+
payload: {
|
84
|
+
id: string;
|
85
|
+
};
|
86
|
+
};
|
87
|
+
const OpenGuidedSelling: (payload: {
|
88
|
+
guidedSellingId: string;
|
89
|
+
}) => {
|
90
|
+
type: string;
|
91
|
+
payload: {
|
92
|
+
guidedSellingId: string;
|
93
|
+
};
|
94
|
+
};
|
95
|
+
const CloseGuidedSelling: (payload?: {
|
96
|
+
keepState?: boolean;
|
97
|
+
}) => {
|
98
|
+
type: string;
|
99
|
+
payload: {
|
100
|
+
keepState?: boolean;
|
101
|
+
} | undefined;
|
102
|
+
};
|
103
|
+
const SubmitGuidedSelling: (payload: {
|
104
|
+
result: Record<string, any>;
|
105
|
+
}) => {
|
106
|
+
type: string;
|
107
|
+
payload: {
|
108
|
+
result: Record<string, any>;
|
109
|
+
};
|
110
|
+
};
|
111
|
+
const OpenDialog: (dialog: string) => {
|
112
|
+
type: string;
|
113
|
+
payload: {
|
114
|
+
dialog: string;
|
115
|
+
};
|
116
|
+
};
|
117
|
+
}
|
118
|
+
declare namespace CmsAction {
|
119
|
+
const GO_TO_PAGE = "[CMS]_GO_TO_PAGE";
|
120
|
+
const UPDATE_CUSTOMIZATION = "[CMS]_UPDATE_CUSTOMIZATION";
|
121
|
+
const SHOW_OVERLAY = "[CMS]_SHOW_OVERLAY";
|
122
|
+
const HIDE_OVERLAY = "[CMS]_HIDE_OVERLAY";
|
123
|
+
const HIDE_ALL_OVERLAYS = "[CMS]_HIDE_ALL_OVERLAYS";
|
124
|
+
/**
|
125
|
+
* Navigate UI definition to a specific page
|
126
|
+
*
|
127
|
+
* @param pageName name of the page
|
128
|
+
*/
|
129
|
+
const GoToPage: (pageName: string) => {
|
130
|
+
type: string;
|
131
|
+
payload: {
|
132
|
+
pageName: string;
|
133
|
+
};
|
134
|
+
};
|
135
|
+
/**
|
136
|
+
* Update UI definition customization state
|
137
|
+
*
|
138
|
+
* @param pageName name of the page
|
139
|
+
*/
|
140
|
+
const UpdateCustomization: (value: any) => {
|
141
|
+
type: string;
|
142
|
+
payload: {
|
143
|
+
value: any;
|
144
|
+
};
|
145
|
+
};
|
146
|
+
/**
|
147
|
+
* Show an Overlay on the selected page
|
148
|
+
*
|
149
|
+
* @param name - name of the overlay
|
150
|
+
* @returns void
|
151
|
+
*/
|
152
|
+
const ShowOverlay: (name: string) => {
|
153
|
+
type: string;
|
154
|
+
payload: {
|
155
|
+
name: string;
|
156
|
+
};
|
157
|
+
};
|
158
|
+
/**
|
159
|
+
* Hide an Overlay on the selected page
|
160
|
+
*
|
161
|
+
* @param name - name of the overlay
|
162
|
+
* @returns void
|
163
|
+
*/
|
164
|
+
const HideOverlay: (name: string) => {
|
165
|
+
type: string;
|
166
|
+
payload: {
|
167
|
+
name: string;
|
168
|
+
};
|
169
|
+
};
|
170
|
+
/**
|
171
|
+
* Hide all Overlays on the selected page
|
172
|
+
*
|
173
|
+
* @returns void
|
174
|
+
*/
|
175
|
+
const HideAllOverlays: () => {
|
176
|
+
type: string;
|
177
|
+
};
|
178
|
+
}
|
179
|
+
|
180
|
+
/**
|
181
|
+
* List of available layouts for Full Page Type:
|
182
|
+
*
|
183
|
+
LAYOUT_1
|
184
|
+
+-------------------------+
|
185
|
+
| 1. HEADER |
|
186
|
+
|-------------------------|
|
187
|
+
| |
|
188
|
+
| 2. CONTAINER |
|
189
|
+
| |
|
190
|
+
|-------------------------|
|
191
|
+
| 3. FOOTER |
|
192
|
+
+-------------------------+
|
193
|
+
|
194
|
+
LAYOUT_2
|
195
|
+
+-------------------------+
|
196
|
+
| 1. HEADER |
|
197
|
+
|------------+------------|
|
198
|
+
| | |
|
199
|
+
| 2. LEFT | 3. RIGHT |
|
200
|
+
| | |
|
201
|
+
|------------+------------|
|
202
|
+
| 4. FOOTER |
|
203
|
+
+-------------------------+
|
204
|
+
|
205
|
+
LAYOUT_3
|
206
|
+
+-------------------------+
|
207
|
+
| |
|
208
|
+
| |
|
209
|
+
| 1. CONTAINER |
|
210
|
+
| |
|
211
|
+
| |
|
212
|
+
|-------------------------|
|
213
|
+
| 2. FOOTER |
|
214
|
+
+-------------------------+
|
215
|
+
|
216
|
+
LAYOUT_4
|
217
|
+
+-------------------------+
|
218
|
+
| | |
|
219
|
+
| | |
|
220
|
+
| 1. LEFT | 2. RIGHT |
|
221
|
+
| | |
|
222
|
+
| | |
|
223
|
+
|------------+------------|
|
224
|
+
| 3. FOOTER |
|
225
|
+
+-------------------------+
|
226
|
+
|
227
|
+
LAYOUT_5
|
228
|
+
+-------------------------+
|
229
|
+
| 1. HEADER |
|
230
|
+
|-------------------------|
|
231
|
+
| |
|
232
|
+
| |
|
233
|
+
| 2. CONTAINER |
|
234
|
+
| |
|
235
|
+
| |
|
236
|
+
+-------------------------+
|
237
|
+
|
238
|
+
LAYOUT_6
|
239
|
+
+-------------------------+
|
240
|
+
| |
|
241
|
+
| |
|
242
|
+
| |
|
243
|
+
| 1. CONTAINER |
|
244
|
+
| |
|
245
|
+
| |
|
246
|
+
| |
|
247
|
+
+-------------------------+
|
248
|
+
*/
|
249
|
+
/**
|
250
|
+
* List of available layouts for Sidepanel Page Type:
|
251
|
+
*
|
252
|
+
LAYOUT_7
|
253
|
+
+-------------------------+
|
254
|
+
| | |
|
255
|
+
| | |
|
256
|
+
| LEFT | DISABLED |
|
257
|
+
| SIDE | PAGE |
|
258
|
+
| PANEL | |
|
259
|
+
| | |
|
260
|
+
| | |
|
261
|
+
+-------------------------+
|
262
|
+
|
263
|
+
LAYOUT_8
|
264
|
+
+-------------------------+
|
265
|
+
| | |
|
266
|
+
| | |
|
267
|
+
| DISABLED | RIGHT |
|
268
|
+
| PAGE | SIDE |
|
269
|
+
| | PANEL |
|
270
|
+
| | |
|
271
|
+
| | |
|
272
|
+
+-------------------------+
|
273
|
+
*/
|
274
|
+
type FullPageLayout = 'LAYOUT_1' | 'LAYOUT_2' | 'LAYOUT_3' | 'LAYOUT_4' | 'LAYOUT_5' | 'LAYOUT_6';
|
275
|
+
type SidepanelPageLayout = 'LAYOUT_7' | 'LAYOUT_8';
|
276
|
+
type PageLayout = FullPageLayout | SidepanelPageLayout;
|
277
|
+
interface PageLayoutConfig {
|
278
|
+
hasHeader: boolean;
|
279
|
+
hasFooter: boolean;
|
280
|
+
styles?: string;
|
281
|
+
}
|
282
|
+
|
283
|
+
declare const LAYOUT: {
|
284
|
+
[key in PageLayout]: PageLayoutConfig;
|
285
|
+
};
|
286
|
+
|
287
|
+
declare class Plugin {
|
288
|
+
readonly host: Entity;
|
289
|
+
constructor(host: Entity);
|
290
|
+
}
|
291
|
+
|
292
|
+
declare class Entity {
|
293
|
+
injector: Injector;
|
294
|
+
protected readonly plugins: Plugin[];
|
295
|
+
private config;
|
296
|
+
private defaultPlugins;
|
297
|
+
constructor(injector: Injector);
|
298
|
+
initPlugins(): void;
|
299
|
+
registerPlugin(plugin: Plugin): void;
|
300
|
+
}
|
301
|
+
|
302
|
+
type AngularHooks = OnChanges & OnInit & DoCheck & AfterContentInit & AfterContentChecked & AfterViewInit & AfterViewChecked & OnDestroy;
|
303
|
+
interface IPluginComponent extends Partial<AngularHooks> {
|
304
|
+
host: ElementComponent;
|
305
|
+
}
|
306
|
+
|
307
|
+
declare class ElementComponent extends Entity implements OnChanges, OnInit, DoCheck, AfterContentInit, AfterViewInit, AfterViewChecked, OnDestroy {
|
308
|
+
injector: Injector;
|
309
|
+
readonly model$: BehaviorSubject<any>;
|
310
|
+
readonly plugins: IPluginComponent[];
|
311
|
+
constructor(injector: Injector);
|
312
|
+
ngOnChanges(changes: SimpleChanges): void;
|
313
|
+
ngOnInit(): void;
|
314
|
+
ngDoCheck(): void;
|
315
|
+
ngAfterContentInit(): void;
|
316
|
+
ngAfterViewInit(): void;
|
317
|
+
ngAfterViewChecked(): void;
|
318
|
+
ngOnDestroy(): void;
|
319
|
+
}
|
320
|
+
|
321
|
+
interface CMSPreviewConfig {
|
322
|
+
/**
|
323
|
+
* When `true`, IntegrationState will be cleared on component init
|
324
|
+
*/
|
325
|
+
clearStateOnInit?: boolean;
|
326
|
+
/**
|
327
|
+
* When `true`, preview adds additional components/plugins needed for UIBuilder
|
328
|
+
* (like element hover/selection or Drag&Drop zones)
|
329
|
+
*/
|
330
|
+
uiBuilderMode?: boolean;
|
331
|
+
/**
|
332
|
+
* When `true`, preview renders settings page (element with `type: CUSTOMIZATION_PAGE`)
|
333
|
+
*/
|
334
|
+
customizationMode?: boolean;
|
335
|
+
/**
|
336
|
+
* Custom initialization function which will be executed before starting a preview
|
337
|
+
*/
|
338
|
+
init$?: () => Observable<void>;
|
339
|
+
}
|
340
|
+
|
341
|
+
type PageType = 'FULL_PAGE' | 'SIDEPANEL';
|
342
|
+
|
343
|
+
type ELEMENT_TYPE = 'CUSTOMIZATION_PAGE' | 'CUSTOM' | 'CONTAINER' | 'SERVICE' | 'REFERENCE' | 'PAGE' | 'REGION';
|
344
|
+
type ElementStyleDeclaration = Partial<CSSStyleDeclaration>;
|
345
|
+
interface ElementConfig {
|
346
|
+
component: typeof Entity;
|
347
|
+
plugins?: (typeof Plugin)[];
|
348
|
+
defaultTemplate?: string;
|
349
|
+
suppressTemplate?: boolean;
|
350
|
+
suppressStyles?: boolean;
|
351
|
+
builder?: {
|
352
|
+
suppressRemovable?: boolean;
|
353
|
+
};
|
354
|
+
}
|
355
|
+
interface ElementModel {
|
356
|
+
/**
|
357
|
+
* Defines a path for an element model.
|
358
|
+
* It's combined with a path to a target element and an output property name.
|
359
|
+
*
|
360
|
+
* If target value is an Array, then the element will be repeated `n` times and each instance will get it's own value.
|
361
|
+
*
|
362
|
+
* Examples:
|
363
|
+
* - `/Root/Services/DataService/:products`
|
364
|
+
* - `../../Services/DataService/:products`
|
365
|
+
* - `@Services/DataService/:products`
|
366
|
+
*/
|
367
|
+
path?: string;
|
368
|
+
/**
|
369
|
+
* @deprecated
|
370
|
+
* To be removed!!!
|
371
|
+
* Used only when `UIDefinitionType = CONFIGURATION`.
|
372
|
+
*/
|
373
|
+
lineItem?: string;
|
374
|
+
}
|
375
|
+
interface ElementDefaultMetadata {
|
376
|
+
name: string;
|
377
|
+
type: ELEMENT_TYPE;
|
378
|
+
/**
|
379
|
+
* Make component shared
|
380
|
+
*
|
381
|
+
* Used only when `type !== REFERENCE`
|
382
|
+
*/
|
383
|
+
isShared?: boolean;
|
384
|
+
/**
|
385
|
+
* Element module name. Module is used for quick access from other elements.
|
386
|
+
*
|
387
|
+
* 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`
|
388
|
+
*
|
389
|
+
*/
|
390
|
+
module?: string;
|
391
|
+
/**
|
392
|
+
* Defines inputs of the element. An object where `key` is the name of the input and `value` is target path
|
393
|
+
*
|
394
|
+
* If `value == null`, then the element acts like a target - we expect other element to connect to it.
|
395
|
+
*
|
396
|
+
* Examples:
|
397
|
+
*
|
398
|
+
* 1. `products: '/Root/Services/DataService'`
|
399
|
+
* The element will have `products` input which will get the data from `products` output in dataservice element
|
400
|
+
*
|
401
|
+
* 2. `productsList: '/Root/Services/DataService/:products'`
|
402
|
+
* The element will have `productsList` input which will get the data from `products` output in dataservice element
|
403
|
+
*
|
404
|
+
* 3. `productsList: '@Services/DataService/:products'`
|
405
|
+
* The element will have `productsList` input which will get the data from `products` output in dataservice element which is declared in `Services` module
|
406
|
+
*
|
407
|
+
* 4. `onProductSelect: null`
|
408
|
+
* The element will have `onProductSelect` input, and the script could have a logic which will listen on the events
|
409
|
+
*
|
410
|
+
* Relative paths allowed:
|
411
|
+
*
|
412
|
+
* - `..`
|
413
|
+
* - `../:products`
|
414
|
+
* - `../../DataService/:products`
|
415
|
+
*
|
416
|
+
* Input which name starts with '@' is being added to the element as Angular input (suppressing '@' symbol)
|
417
|
+
*/
|
418
|
+
inputs?: Dictionary<string | null>;
|
419
|
+
/**
|
420
|
+
* Defines outputs of the element. An object where `key` is the name of the output and `value` is target path
|
421
|
+
*
|
422
|
+
* If `value == null`, then the element acts like a target - we expect other element to connect to it.
|
423
|
+
*
|
424
|
+
* Examples:
|
425
|
+
*
|
426
|
+
* 1. `onProductSelect: '/Root/Services/DataService/:handleProductSelect'`
|
427
|
+
* The element will have `onProductSelect` output, which will emit events to the `dataservice` element `handleProductSelect` input
|
428
|
+
*
|
429
|
+
* 2. `onProductSelect: '@Services/DataService/:handleProductSelect'`
|
430
|
+
* Same output but accessing dataservice by the Service module
|
431
|
+
*
|
432
|
+
* * Output which name starts with '@' is being added to the element as Angular output (suppressing '@' symbol)
|
433
|
+
*/
|
434
|
+
outputs?: Dictionary<string | null>;
|
435
|
+
model?: ElementModel;
|
436
|
+
/**
|
437
|
+
* Defines a shared component name to use as a reference
|
438
|
+
*
|
439
|
+
* Used only when `type === REFERENCE`
|
440
|
+
*/
|
441
|
+
reference?: string;
|
442
|
+
children?: string[];
|
443
|
+
/**
|
444
|
+
* Contains styles configurable from UI builder
|
445
|
+
*/
|
446
|
+
configuredStyles?: ElementStyleDeclaration;
|
447
|
+
/**
|
448
|
+
* Page layout
|
449
|
+
*
|
450
|
+
* Used only when `type === PAGE`
|
451
|
+
*/
|
452
|
+
layout?: PageLayout;
|
453
|
+
/**
|
454
|
+
* Page Type
|
455
|
+
*
|
456
|
+
* Used only when `type === PAGE`
|
457
|
+
*/
|
458
|
+
pageType?: PageType;
|
459
|
+
}
|
460
|
+
interface ElementMetadata extends Omit<ElementDefaultMetadata, 'children'> {
|
461
|
+
path: string;
|
462
|
+
children: ElementMetadata[];
|
463
|
+
template?: string;
|
464
|
+
styles?: string;
|
465
|
+
script?: string;
|
466
|
+
metadata?: string;
|
467
|
+
}
|
468
|
+
|
469
|
+
interface CompilationResult {
|
470
|
+
elements: ElementMetadata[];
|
471
|
+
moduleRef: NgModuleRef<NgModule>;
|
472
|
+
componentTypes: Record<string, Type<Entity>>;
|
473
|
+
}
|
474
|
+
|
475
|
+
type ScriptHost<T = Record<string, any>> = Pick<ElementComponent, 'injector'> & T;
|
476
|
+
|
477
|
+
interface ElementPath {
|
478
|
+
isAbsolute: boolean;
|
479
|
+
segments: string[];
|
480
|
+
module?: string;
|
481
|
+
variable?: string;
|
482
|
+
}
|
483
|
+
interface PathBlock {
|
484
|
+
type: string;
|
485
|
+
property?: string;
|
486
|
+
name?: string;
|
487
|
+
}
|
488
|
+
|
489
|
+
declare class RuntimeService {
|
490
|
+
private injector;
|
491
|
+
private integrationState;
|
492
|
+
moduleRefs: NgModuleRef<NgModule>[];
|
493
|
+
componentRefs: Dictionary<ComponentRef<Entity> | undefined>;
|
494
|
+
componentTypes: Record<string, Type<Entity>>;
|
495
|
+
applicationTree: ElementMetadata[];
|
496
|
+
config?: CMSPreviewConfig;
|
497
|
+
isInitialized$: BehaviorSubject<boolean>;
|
498
|
+
updated$: Subject<void>;
|
499
|
+
selectedPageName$: BehaviorSubject<string | null>;
|
500
|
+
selectedOverlayNames$: BehaviorSubject<string[]>;
|
501
|
+
private compilationService;
|
502
|
+
constructor(injector: Injector, integrationState: IntegrationState);
|
503
|
+
initialize$(uiDefinition?: UIDefinition, config?: CMSPreviewConfig): Observable<ElementMetadata[]>;
|
504
|
+
applyPatch$(patch: Patch): Observable<void>;
|
505
|
+
getCompiledElement$(path: string): Observable<ElementMetadata | undefined>;
|
506
|
+
clear(): void;
|
507
|
+
private addElement$;
|
508
|
+
private deleteElement;
|
509
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeService, never>;
|
510
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RuntimeService>;
|
511
|
+
}
|
512
|
+
|
513
|
+
interface State {
|
514
|
+
loading: boolean;
|
515
|
+
failure: boolean;
|
516
|
+
}
|
517
|
+
declare class PreviewComponent implements OnInit, OnDestroy {
|
518
|
+
private runtimeService;
|
519
|
+
private toastService;
|
520
|
+
private integrationState;
|
521
|
+
uiDefinition?: UIDefinition;
|
522
|
+
config?: CMSPreviewConfig;
|
523
|
+
state$: BehaviorSubject<State>;
|
524
|
+
elements$: BehaviorSubject<ElementMetadata[]>;
|
525
|
+
private destroy$;
|
526
|
+
constructor(runtimeService: RuntimeService, toastService: ToastService, integrationState: IntegrationState);
|
527
|
+
ngOnInit(): void;
|
528
|
+
ngOnDestroy(): void;
|
529
|
+
trackBy(_: number, el: ElementMetadata): ElementMetadata;
|
530
|
+
private startPreview;
|
531
|
+
private getElements$;
|
532
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PreviewComponent, never>;
|
533
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PreviewComponent, "vl-cms-preview", never, { "uiDefinition": { "alias": "uiDefinition"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, {}, never, never, false, never>;
|
534
|
+
}
|
535
|
+
|
536
|
+
declare class ElementContextService {
|
537
|
+
metadata?: ElementMetadata;
|
538
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ElementContextService, never>;
|
539
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ElementContextService>;
|
540
|
+
}
|
541
|
+
|
542
|
+
declare class IOProviderService {
|
543
|
+
private runtimeService;
|
544
|
+
private inputs;
|
545
|
+
constructor(runtimeService: RuntimeService);
|
546
|
+
connect(el: ElementMetadata, name: string, target?: string | null): Observable<any> | undefined;
|
547
|
+
provide(el: ElementMetadata, name: string, target?: string | null): BehaviorSubject<any> | undefined;
|
548
|
+
private resolveTarget;
|
549
|
+
private createSubjectSafe;
|
550
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IOProviderService, never>;
|
551
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<IOProviderService>;
|
552
|
+
}
|
553
|
+
|
554
|
+
declare class ElementRendererComponent implements OnInit, OnDestroy {
|
555
|
+
private runtimeService;
|
556
|
+
private elementContext;
|
557
|
+
private ioProviderService;
|
558
|
+
private cdr;
|
559
|
+
el?: ViewContainerRef;
|
560
|
+
meta: ElementMetadata;
|
561
|
+
private type?;
|
562
|
+
private refs;
|
563
|
+
private destroy$;
|
564
|
+
constructor(runtimeService: RuntimeService, elementContext: ElementContextService, ioProviderService: IOProviderService, cdr: ChangeDetectorRef);
|
565
|
+
ngOnInit(): void;
|
566
|
+
ngOnDestroy(): void;
|
567
|
+
private createComponents;
|
568
|
+
private createFromPath;
|
569
|
+
private processChildren;
|
570
|
+
private createComponent;
|
571
|
+
private updateComponent;
|
572
|
+
private destroyComponent;
|
573
|
+
private destroyComponents;
|
574
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ElementRendererComponent, never>;
|
575
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ElementRendererComponent, "vl-cms-element-renderer", never, { "meta": { "alias": "meta"; "required": false; }; }, {}, never, never, false, never>;
|
576
|
+
}
|
577
|
+
|
578
|
+
declare class ElementRendererModule {
|
579
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ElementRendererModule, never>;
|
580
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ElementRendererModule, [typeof ElementRendererComponent], never, [typeof ElementRendererComponent]>;
|
581
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ElementRendererModule>;
|
582
|
+
}
|
583
|
+
|
584
|
+
interface RuntimeElementDropEvent {
|
585
|
+
element: ElementMetadata;
|
586
|
+
path: string;
|
587
|
+
index: number;
|
588
|
+
}
|
589
|
+
interface RuntimeElementDeleteEvent {
|
590
|
+
path: string;
|
591
|
+
}
|
592
|
+
interface RuntimeShowSettingsEvent {
|
593
|
+
path: string;
|
594
|
+
}
|
595
|
+
|
596
|
+
declare class RuntimeEditorService {
|
597
|
+
private runtimeService;
|
598
|
+
private editorModeSubj$;
|
599
|
+
onElementDropped$: ReplaySubject<RuntimeElementDropEvent>;
|
600
|
+
onElementDeleted$: ReplaySubject<RuntimeElementDeleteEvent>;
|
601
|
+
onElementSettingsToggled$: ReplaySubject<RuntimeShowSettingsEvent>;
|
602
|
+
editorMode$: Observable<boolean>;
|
603
|
+
dragMode$: BehaviorSubject<boolean>;
|
604
|
+
selectedElementPath$: BehaviorSubject<string | null>;
|
605
|
+
constructor(runtimeService: RuntimeService);
|
606
|
+
applyPatch$(patch: Patch): Observable<void>;
|
607
|
+
toggleEditorMode(): void;
|
608
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeEditorService, never>;
|
609
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RuntimeEditorService>;
|
610
|
+
}
|
611
|
+
|
612
|
+
declare class ElementChildrenComponent implements OnDestroy {
|
613
|
+
private elementContext;
|
614
|
+
private runtimeService;
|
615
|
+
private runtimeEditorService;
|
616
|
+
private cdr;
|
617
|
+
filter?: (elements: ElementMetadata[]) => ElementMetadata[];
|
618
|
+
metadata$: Observable<ElementMetadata | undefined>;
|
619
|
+
dragMode$: Observable<boolean>;
|
620
|
+
private destroyed$;
|
621
|
+
constructor(elementContext: ElementContextService, runtimeService: RuntimeService, runtimeEditorService: RuntimeEditorService, cdr: ChangeDetectorRef);
|
622
|
+
ngOnDestroy(): void;
|
623
|
+
getFilteredChildren(elements: ElementMetadata[]): ElementMetadata[];
|
624
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ElementChildrenComponent, never>;
|
625
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ElementChildrenComponent, "element-children", never, { "filter": { "alias": "filter"; "required": false; }; }, {}, never, never, false, never>;
|
626
|
+
}
|
627
|
+
|
628
|
+
declare class ElementDropHandleComponent {
|
629
|
+
private runtimeService;
|
630
|
+
index: number;
|
631
|
+
parentPath: string;
|
632
|
+
constructor(runtimeService: RuntimeEditorService);
|
633
|
+
handleDrop(e: DndDropEvent): void;
|
634
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ElementDropHandleComponent, never>;
|
635
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ElementDropHandleComponent, "vl-element-drop-handle", never, { "index": { "alias": "index"; "required": false; }; "parentPath": { "alias": "parentPath"; "required": false; }; }, {}, never, never, false, never>;
|
636
|
+
}
|
637
|
+
|
638
|
+
declare class ElementDropHandleModule {
|
639
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ElementDropHandleModule, never>;
|
640
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ElementDropHandleModule, [typeof ElementDropHandleComponent], [typeof i2.CommonModule, typeof i3.DndModule], [typeof ElementDropHandleComponent]>;
|
641
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ElementDropHandleModule>;
|
642
|
+
}
|
643
|
+
|
644
|
+
declare class ElementChildrenModule {
|
645
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ElementChildrenModule, never>;
|
646
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ElementChildrenModule, [typeof ElementChildrenComponent], [typeof i2.CommonModule, typeof i3$1.LetDirectiveModule, typeof ElementRendererModule, typeof ElementDropHandleModule], [typeof ElementChildrenComponent]>;
|
647
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ElementChildrenModule>;
|
648
|
+
}
|
649
|
+
|
650
|
+
declare class ElementToolsPanelComponent {
|
651
|
+
private readonly metadata;
|
652
|
+
private readonly config;
|
653
|
+
private readonly elementRef;
|
654
|
+
runtimeEditorService?: RuntimeEditorService;
|
655
|
+
showDeleteButton: boolean;
|
656
|
+
constructor();
|
657
|
+
deleteHandler(): void;
|
658
|
+
showSettingsHandler(): void;
|
659
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ElementToolsPanelComponent, never>;
|
660
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ElementToolsPanelComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
661
|
+
}
|
662
|
+
|
663
|
+
declare class PreviewModule {
|
664
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PreviewModule, never>;
|
665
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PreviewModule, [typeof PreviewComponent], [typeof i2.CommonModule, typeof i3$1.LoaderModule, typeof ElementRendererModule, typeof ElementChildrenModule, typeof ElementDropHandleModule, typeof ElementToolsPanelComponent], [typeof PreviewComponent]>;
|
666
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PreviewModule>;
|
667
|
+
}
|
668
|
+
|
669
|
+
declare function ElementDefinition(definition: ElementDefaultMetadata): (constructor: any) => any;
|
670
|
+
|
671
|
+
declare const DEFAULT_ELEMENT: Partial<ElementMetadata>;
|
672
|
+
declare const STARTING_PAGE_NAME = "Starting Page";
|
673
|
+
declare const STARTING_PAGE_TYPE: PageType;
|
674
|
+
declare const STARTING_PAGE_LAYOUT: FullPageLayout;
|
675
|
+
declare const STARTING_PAGE_STYLES: ElementStyleDeclaration;
|
676
|
+
|
677
|
+
declare const DEFAULT_PLUGINS_TOKEN: InjectionToken<(typeof Plugin)[]>;
|
678
|
+
declare const UI_DEFINITION_METADATA: InjectionToken<UIDefinitionMetadata>;
|
679
|
+
declare const ELEMENT_METADATA: InjectionToken<ElementMetadata>;
|
680
|
+
declare const SHARED_ELEMENT_METADATA: InjectionToken<ElementMetadata | undefined>;
|
681
|
+
declare const ELEMENT_CONFIG: InjectionToken<ElementConfig>;
|
682
|
+
|
683
|
+
declare class RuntimeModule {
|
684
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeModule, never>;
|
685
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<RuntimeModule, never, [typeof i2.CommonModule, typeof _veloceapps_core.CoreModule], never>;
|
686
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<RuntimeModule>;
|
687
|
+
}
|
688
|
+
|
689
|
+
declare class LauncherModule {
|
690
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LauncherModule, never>;
|
691
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<LauncherModule, never, [typeof i2.CommonModule, typeof _veloceapps_core.CoreModule, typeof i3$2.ApiModule, typeof i4.SdkCoreModule, typeof RuntimeModule, typeof PreviewModule], [typeof PreviewModule]>;
|
692
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<LauncherModule>;
|
693
|
+
}
|
694
|
+
|
695
|
+
type FederatedModuleOptions = {
|
696
|
+
/**
|
697
|
+
* URL to the federated container
|
698
|
+
* i.e. http://localhost:4200/remoteIntegrationModule.js
|
699
|
+
*/
|
700
|
+
remoteEntry?: string;
|
701
|
+
/**
|
702
|
+
* Name of exposed Angular module
|
703
|
+
*/
|
704
|
+
exposedModule?: string;
|
705
|
+
/**
|
706
|
+
* Suppress remote module loading process spinner
|
707
|
+
*/
|
708
|
+
suppressLoading?: boolean;
|
709
|
+
/**
|
710
|
+
* Loading label. Default: LOADING
|
711
|
+
*/
|
712
|
+
loadingLabel?: string;
|
713
|
+
/**
|
714
|
+
* Ready callback is called when remote module has been loaded
|
715
|
+
*/
|
716
|
+
onReady?: () => void;
|
717
|
+
};
|
718
|
+
interface FederatedComponentInstance<D = unknown> {
|
719
|
+
data?: D;
|
720
|
+
}
|
721
|
+
|
722
|
+
declare class MigrationsModule {
|
723
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MigrationsModule, never>;
|
724
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MigrationsModule, never, never, never>;
|
725
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MigrationsModule>;
|
726
|
+
}
|
727
|
+
|
728
|
+
declare class MigrationsService {
|
729
|
+
private toastService;
|
730
|
+
constructor(toastService: ToastService);
|
731
|
+
migrateUIDefinition(uiDef: UIDefinition): UIDefinition | undefined;
|
732
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MigrationsService, never>;
|
733
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MigrationsService>;
|
734
|
+
}
|
735
|
+
|
736
|
+
declare class ResourcesService {
|
737
|
+
private scripts;
|
738
|
+
private loaded$;
|
739
|
+
/**
|
740
|
+
* ngx-monaco-editor adds amd-loader library for loading resources when first time initialized
|
741
|
+
* Which breaks further loading of 3rd party libaries.
|
742
|
+
*
|
743
|
+
* To handle this issue, in case 'amd' is defined, we clear it, and then restore when the script is loaded
|
744
|
+
*/
|
745
|
+
private amd;
|
746
|
+
loadScript(url: string): Observable<void>;
|
747
|
+
loadStyles(url: string): Observable<void>;
|
748
|
+
loadStyles(host: ScriptHost, url: string): Observable<void>;
|
749
|
+
private persistAMDLoader;
|
750
|
+
private restoreAMDLoader;
|
751
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResourcesService, never>;
|
752
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ResourcesService>;
|
753
|
+
}
|
754
|
+
|
755
|
+
type Template = TemplateRef<any> | undefined;
|
756
|
+
declare class TemplatesService {
|
757
|
+
private templates;
|
758
|
+
register(name: string, templateRef: TemplateRef<any>): void;
|
759
|
+
get(name: string): Template;
|
760
|
+
get$(name: string): Observable<Template>;
|
761
|
+
private ensureStorage;
|
762
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TemplatesService, never>;
|
763
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TemplatesService>;
|
764
|
+
}
|
765
|
+
|
766
|
+
declare class ElementMetadataWorker {
|
767
|
+
private elements;
|
768
|
+
constructor(elements: UIElement[]);
|
769
|
+
get$(): Observable<ElementMetadata[]>;
|
770
|
+
private processAsync;
|
771
|
+
private processLevelAsync;
|
772
|
+
private elementToMetadataAsync;
|
773
|
+
}
|
774
|
+
|
775
|
+
declare class UiBuildError extends Error {
|
776
|
+
affectedMetadata: ElementMetadata;
|
777
|
+
constructor(message: string, affectedMetadata: ElementMetadata);
|
778
|
+
}
|
779
|
+
declare const elementToMetadata: (el: UIElement, parentPath?: string) => ElementMetadata;
|
780
|
+
declare const metadataToElement: (metadata: ElementMetadata, recursive?: boolean) => UIElement;
|
781
|
+
declare const normalizeElementMetadata: (elementMetadata: ElementDefaultMetadata) => ElementDefaultMetadata;
|
782
|
+
declare const extractElementMetadata: (script: string) => ElementDefaultMetadata;
|
783
|
+
declare const extendElementMetadata: (script: string, extend: Partial<ElementDefaultMetadata>) => string;
|
784
|
+
declare const getElementConfig: (type: ELEMENT_TYPE) => ElementConfig;
|
785
|
+
declare const doesElementSupportIO: (type: ELEMENT_TYPE) => boolean;
|
786
|
+
declare function stringifyElementMetadata(elementMetadata: ElementDefaultMetadata): string;
|
787
|
+
declare const isValidScript: (script?: string) => boolean;
|
788
|
+
declare function flattenElements(elements: ElementMetadata[]): ElementMetadata[];
|
789
|
+
declare function isSharedElement(el: ElementMetadata): boolean;
|
790
|
+
declare function isElementAngularIO(name: string): boolean;
|
791
|
+
declare function toElementAngularIO(name: string): string | null;
|
792
|
+
declare function getElementAngularIOs(names: string[]): string[];
|
793
|
+
|
794
|
+
declare class ElementsResolver {
|
795
|
+
private uiDef;
|
796
|
+
private config?;
|
797
|
+
elements: ElementMetadata[];
|
798
|
+
private renderableElements;
|
799
|
+
private sharedElements;
|
800
|
+
private uiDefMetadata;
|
801
|
+
constructor(uiDef: UIDefinitionMetadata, elements: ElementMetadata[], sharedElements?: ElementMetadata[], config?: CMSPreviewConfig | undefined);
|
802
|
+
addElement(element: ElementMetadata): void;
|
803
|
+
getNgComponents(): Record<string, Type<Entity>>;
|
804
|
+
private flattenElements;
|
805
|
+
private isSharedElement;
|
806
|
+
private getRenderableElements;
|
807
|
+
private getSharedElement;
|
808
|
+
private resolveElementTemplate;
|
809
|
+
private resolveElementStyles;
|
810
|
+
private processElementMetadata;
|
811
|
+
private getSharedChildren;
|
812
|
+
private resolveElement;
|
813
|
+
private getElementStyles;
|
814
|
+
private convertInlineStylesToCSS;
|
815
|
+
private getDefaultCustomizationState;
|
816
|
+
}
|
817
|
+
|
818
|
+
declare function btoaSafe(str?: string): string;
|
819
|
+
declare function atobSafe(str?: string): string;
|
820
|
+
|
821
|
+
declare const cmsInject: <T = unknown>(token: string) => T;
|
822
|
+
|
823
|
+
declare const parsePath: (path: string) => ElementPath;
|
824
|
+
declare const getAbsolutePath: (elements: ElementMetadata[], subject: ElementMetadata, path: ElementPath) => string | undefined;
|
825
|
+
|
826
|
+
declare class TranspilationWorker {
|
827
|
+
private elements;
|
828
|
+
constructor(elements: ElementMetadata[]);
|
829
|
+
get$(): Observable<ElementMetadata[]>;
|
830
|
+
get(): ElementMetadata[];
|
831
|
+
private transpileScripts;
|
832
|
+
private transpileScriptsAsync;
|
833
|
+
private processLevelAsync;
|
834
|
+
private transpileMetadataAsync;
|
835
|
+
private transpile;
|
836
|
+
}
|
837
|
+
|
838
|
+
declare const constructPageChildren: (path: string, layout: PageLayout) => ElementMetadata[];
|
839
|
+
declare const constructRegion: (name: string, parentPath: string) => ElementMetadata;
|
840
|
+
declare const constructPage: (name: string, pageType: PageType, layout: PageLayout, configuredStyles?: ElementStyleDeclaration) => ElementMetadata;
|
841
|
+
|
842
|
+
declare const insertElement: (source: ElementMetadata[], target: ElementMetadata, path: string, index: number) => ElementMetadata[];
|
843
|
+
declare const removeElement: (source: ElementMetadata[], path: string) => ElementMetadata[];
|
844
|
+
declare const findElementByPath: (source: ElementMetadata[], path: string) => ElementMetadata | undefined;
|
845
|
+
declare const findElementByModule: (elements: ElementMetadata[], module: string, elementName: string) => ElementMetadata | undefined;
|
846
|
+
declare const findElement: (source: ElementMetadata[], comparatorFn: (el: ElementMetadata) => boolean) => ElementMetadata | undefined;
|
847
|
+
|
848
|
+
declare const vendorMap: {
|
849
|
+
'@veloceapps/core': {
|
850
|
+
isDefined: <T>(value: T) => value is Exclude<T, null | undefined>;
|
851
|
+
Operator: typeof Operator;
|
852
|
+
Predicate: typeof Predicate;
|
853
|
+
parseJsonSafely: typeof parseJsonSafely;
|
854
|
+
parseJwt: typeof parseJwt;
|
855
|
+
TokenInfoService: typeof TokenInfoService;
|
856
|
+
UITemplateType: typeof UITemplateType;
|
857
|
+
};
|
858
|
+
'@veloceapps/components': {
|
859
|
+
ToastService: typeof ToastService;
|
860
|
+
ToastType: typeof ToastType;
|
861
|
+
};
|
862
|
+
'@veloceapps/api': {
|
863
|
+
ContractedPriceApiService: typeof ContractedPriceApiService;
|
864
|
+
};
|
865
|
+
'@veloceapps/api/v2': {
|
866
|
+
CatalogApiService: typeof CatalogApiService;
|
867
|
+
ConfigurationSettingsApiService: typeof ConfigurationSettingsApiService;
|
868
|
+
DocumentAttachmentApiService: typeof DocumentAttachmentApiService;
|
869
|
+
GuidedSellingApiService: typeof GuidedSellingApiService;
|
870
|
+
SalesforceApiService: typeof SalesforceApiService;
|
871
|
+
SalesTransactionApiService: typeof SalesTransactionApiService;
|
872
|
+
ShoppingCartSettingsApiService: typeof ShoppingCartSettingsApiService;
|
873
|
+
};
|
874
|
+
'@veloceapps/sdk/core': {
|
875
|
+
ConfigurationService: typeof ConfigurationService;
|
876
|
+
ConfigurationStateService: typeof ConfigurationStateService;
|
877
|
+
GuidedSellingService: typeof GuidedSellingService;
|
878
|
+
filterSuccessfulExecute: typeof filterSuccessfulExecute;
|
879
|
+
FlowInfoService: typeof FlowInfoService;
|
880
|
+
FlowConfigurationService: typeof FlowConfigurationService;
|
881
|
+
IntegrationState: typeof IntegrationState;
|
882
|
+
FlowStateService: typeof FlowStateService;
|
883
|
+
FlowStateConfigurationService: typeof FlowStateConfigurationService;
|
884
|
+
TransactionItemWorker: typeof TransactionItemWorker;
|
885
|
+
ProductImagesService: typeof ProductImagesService;
|
886
|
+
RuntimeSettingsService: typeof RuntimeSettingsService;
|
887
|
+
ActionCodePipe: typeof ActionCodePipe;
|
888
|
+
DatePipe: typeof DatePipe;
|
889
|
+
NumberPipe: typeof NumberPipe;
|
890
|
+
PricePipe: typeof PricePipe;
|
891
|
+
SalesTransactionService: typeof SalesTransactionService;
|
892
|
+
generateTransactionItem: (option: _veloceapps_core.PCMModel, salesTransactionId?: string, qty?: number, parentTi?: _veloceapps_core.SalesTransactionItem) => _veloceapps_core.SalesTransactionItem;
|
893
|
+
updateQuantity: (ti: _veloceapps_core.SalesTransactionItem, qty: number, pcm: _veloceapps_core.PCMProduct, parentQty?: number) => _veloceapps_core.SalesTransactionItem;
|
894
|
+
flattenTransactionItem: (ti: _veloceapps_core.SalesTransactionItem) => _veloceapps_core.SalesTransactionItem[];
|
895
|
+
PCMUtils: typeof PCMUtils;
|
896
|
+
};
|
897
|
+
'@veloceapps/sdk/cms': {
|
898
|
+
TemplatesService: typeof TemplatesService;
|
899
|
+
IntegrationState: typeof IntegrationState;
|
900
|
+
ResourcesService: typeof ResourcesService;
|
901
|
+
cmsInject: <T = unknown>(token: string) => T;
|
902
|
+
FlowAction: typeof FlowAction;
|
903
|
+
CmsAction: typeof CmsAction;
|
904
|
+
DEFAULT_PLUGINS_TOKEN: i0.InjectionToken<typeof Plugin[]>;
|
905
|
+
UI_DEFINITION_METADATA: i0.InjectionToken<_veloceapps_core.UIDefinitionMetadata>;
|
906
|
+
ELEMENT_METADATA: i0.InjectionToken<_veloceapps_sdk_cms.ElementMetadata>;
|
907
|
+
SHARED_ELEMENT_METADATA: i0.InjectionToken<_veloceapps_sdk_cms.ElementMetadata | undefined>;
|
908
|
+
ELEMENT_CONFIG: i0.InjectionToken<_veloceapps_sdk_cms.ElementConfig>;
|
909
|
+
};
|
910
|
+
'@angular/core': typeof i0;
|
911
|
+
'@angular/forms': typeof angularForms;
|
912
|
+
'@angular/cdk/collections': {
|
913
|
+
DataSource: typeof DataSource;
|
914
|
+
};
|
915
|
+
rxjs: typeof rxjs;
|
916
|
+
'rxjs/operators': typeof rxjsOperators;
|
917
|
+
lodash: lodash.LoDashStatic;
|
918
|
+
};
|
919
|
+
type VendorMap = typeof vendorMap;
|
920
|
+
|
921
|
+
export { CmsAction, DEFAULT_ELEMENT, DEFAULT_PLUGINS_TOKEN, ELEMENT_CONFIG, ELEMENT_METADATA, ElementComponent, ElementDefinition, ElementMetadataWorker, ElementsResolver, FlowAction, LAYOUT, LauncherModule, MigrationsModule, MigrationsService, PreviewComponent, PreviewModule, ResourcesService, RuntimeEditorService, RuntimeModule, RuntimeService, SHARED_ELEMENT_METADATA, STARTING_PAGE_LAYOUT, STARTING_PAGE_NAME, STARTING_PAGE_STYLES, STARTING_PAGE_TYPE, TemplatesService, TranspilationWorker, UI_DEFINITION_METADATA, UiBuildError, atobSafe, btoaSafe, cmsInject, constructPage, constructPageChildren, constructRegion, doesElementSupportIO, elementToMetadata, extendElementMetadata, extractElementMetadata, findElement, findElementByModule, findElementByPath, flattenElements, getAbsolutePath, getElementAngularIOs, getElementConfig, insertElement, isElementAngularIO, isSharedElement, isValidScript, metadataToElement, normalizeElementMetadata, parsePath, removeElement, stringifyElementMetadata, toElementAngularIO };
|
922
|
+
export type { CMSPreviewConfig, CompilationResult, ELEMENT_TYPE, ElementConfig, ElementDefaultMetadata, ElementMetadata, ElementModel, ElementPath, ElementStyleDeclaration, FederatedComponentInstance, FederatedModuleOptions, FullPageLayout, PageLayout, PageLayoutConfig, PageType, PathBlock, ScriptHost, SidepanelPageLayout, VendorMap };
|