@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
@@ -1,14 +0,0 @@
|
|
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 {};
|
@@ -1,130 +0,0 @@
|
|
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
|
-
}
|
package/cms/types/index.d.ts
DELETED
@@ -1,102 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* List of available layouts for Full Page Type:
|
3
|
-
*
|
4
|
-
LAYOUT_1
|
5
|
-
+-------------------------+
|
6
|
-
| 1. HEADER |
|
7
|
-
|-------------------------|
|
8
|
-
| |
|
9
|
-
| 2. CONTAINER |
|
10
|
-
| |
|
11
|
-
|-------------------------|
|
12
|
-
| 3. FOOTER |
|
13
|
-
+-------------------------+
|
14
|
-
|
15
|
-
LAYOUT_2
|
16
|
-
+-------------------------+
|
17
|
-
| 1. HEADER |
|
18
|
-
|------------+------------|
|
19
|
-
| | |
|
20
|
-
| 2. LEFT | 3. RIGHT |
|
21
|
-
| | |
|
22
|
-
|------------+------------|
|
23
|
-
| 4. FOOTER |
|
24
|
-
+-------------------------+
|
25
|
-
|
26
|
-
LAYOUT_3
|
27
|
-
+-------------------------+
|
28
|
-
| |
|
29
|
-
| |
|
30
|
-
| 1. CONTAINER |
|
31
|
-
| |
|
32
|
-
| |
|
33
|
-
|-------------------------|
|
34
|
-
| 2. FOOTER |
|
35
|
-
+-------------------------+
|
36
|
-
|
37
|
-
LAYOUT_4
|
38
|
-
+-------------------------+
|
39
|
-
| | |
|
40
|
-
| | |
|
41
|
-
| 1. LEFT | 2. RIGHT |
|
42
|
-
| | |
|
43
|
-
| | |
|
44
|
-
|------------+------------|
|
45
|
-
| 3. FOOTER |
|
46
|
-
+-------------------------+
|
47
|
-
|
48
|
-
LAYOUT_5
|
49
|
-
+-------------------------+
|
50
|
-
| 1. HEADER |
|
51
|
-
|-------------------------|
|
52
|
-
| |
|
53
|
-
| |
|
54
|
-
| 2. CONTAINER |
|
55
|
-
| |
|
56
|
-
| |
|
57
|
-
+-------------------------+
|
58
|
-
|
59
|
-
LAYOUT_6
|
60
|
-
+-------------------------+
|
61
|
-
| |
|
62
|
-
| |
|
63
|
-
| |
|
64
|
-
| 1. CONTAINER |
|
65
|
-
| |
|
66
|
-
| |
|
67
|
-
| |
|
68
|
-
+-------------------------+
|
69
|
-
*/
|
70
|
-
/**
|
71
|
-
* List of available layouts for Sidepanel Page Type:
|
72
|
-
*
|
73
|
-
LAYOUT_7
|
74
|
-
+-------------------------+
|
75
|
-
| | |
|
76
|
-
| | |
|
77
|
-
| LEFT | DISABLED |
|
78
|
-
| SIDE | PAGE |
|
79
|
-
| PANEL | |
|
80
|
-
| | |
|
81
|
-
| | |
|
82
|
-
+-------------------------+
|
83
|
-
|
84
|
-
LAYOUT_8
|
85
|
-
+-------------------------+
|
86
|
-
| | |
|
87
|
-
| | |
|
88
|
-
| DISABLED | RIGHT |
|
89
|
-
| PAGE | SIDE |
|
90
|
-
| | PANEL |
|
91
|
-
| | |
|
92
|
-
| | |
|
93
|
-
+-------------------------+
|
94
|
-
*/
|
95
|
-
export type FullPageLayout = 'LAYOUT_1' | 'LAYOUT_2' | 'LAYOUT_3' | 'LAYOUT_4' | 'LAYOUT_5' | 'LAYOUT_6';
|
96
|
-
export type SidepanelPageLayout = 'LAYOUT_7' | 'LAYOUT_8';
|
97
|
-
export type PageLayout = FullPageLayout | SidepanelPageLayout;
|
98
|
-
export interface PageLayoutConfig {
|
99
|
-
hasHeader: boolean;
|
100
|
-
hasFooter: boolean;
|
101
|
-
styles?: string;
|
102
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
export type PageType = 'FULL_PAGE' | 'SIDEPANEL';
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { UIElement } from '@veloceapps/core';
|
2
|
-
import { Observable } from 'rxjs';
|
3
|
-
import { ElementMetadata } from '../types/common.types';
|
4
|
-
export declare class ElementMetadataWorker {
|
5
|
-
private elements;
|
6
|
-
constructor(elements: UIElement[]);
|
7
|
-
get$(): Observable<ElementMetadata[]>;
|
8
|
-
private processAsync;
|
9
|
-
private processLevelAsync;
|
10
|
-
private elementToMetadataAsync;
|
11
|
-
}
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import { UIElement } from '@veloceapps/core';
|
2
|
-
import { ElementConfig, ElementDefaultMetadata, ElementMetadata, ELEMENT_TYPE } from '../types';
|
3
|
-
export declare class UiBuildError extends Error {
|
4
|
-
affectedMetadata: ElementMetadata;
|
5
|
-
constructor(message: string, affectedMetadata: ElementMetadata);
|
6
|
-
}
|
7
|
-
export declare const elementToMetadata: (el: UIElement, parentPath?: string) => ElementMetadata;
|
8
|
-
export declare const metadataToElement: (metadata: ElementMetadata, recursive?: boolean) => UIElement;
|
9
|
-
export declare const normalizeElementMetadata: (elementMetadata: ElementDefaultMetadata) => ElementDefaultMetadata;
|
10
|
-
export declare const extractElementMetadata: (script: string) => ElementDefaultMetadata;
|
11
|
-
export declare const extendElementMetadata: (script: string, extend: Partial<ElementDefaultMetadata>) => string;
|
12
|
-
export declare const getElementConfig: (type: ELEMENT_TYPE) => ElementConfig;
|
13
|
-
export declare const doesElementSupportIO: (type: ELEMENT_TYPE) => boolean;
|
14
|
-
export declare function stringifyElementMetadata(elementMetadata: ElementDefaultMetadata): string;
|
15
|
-
export declare const isValidScript: (script?: string) => boolean;
|
16
|
-
export declare function flattenElements(elements: ElementMetadata[]): ElementMetadata[];
|
17
|
-
export declare function isSharedElement(el: ElementMetadata): boolean;
|
18
|
-
export declare function isElementAngularIO(name: string): boolean;
|
19
|
-
export declare function toElementAngularIO(name: string): string | null;
|
20
|
-
export declare function getElementAngularIOs(names: string[]): string[];
|
@@ -1,28 +0,0 @@
|
|
1
|
-
import { Type } from '@angular/core';
|
2
|
-
import { UIDefinitionMetadata } from '@veloceapps/core';
|
3
|
-
import { CMSPreviewConfig } from '../components/preview';
|
4
|
-
import { Entity } from '../engine/models/entity';
|
5
|
-
import { ElementMetadata } from '../types';
|
6
|
-
export declare class ElementsResolver {
|
7
|
-
private uiDef;
|
8
|
-
private config?;
|
9
|
-
elements: ElementMetadata[];
|
10
|
-
private renderableElements;
|
11
|
-
private sharedElements;
|
12
|
-
private uiDefMetadata;
|
13
|
-
constructor(uiDef: UIDefinitionMetadata, elements: ElementMetadata[], sharedElements?: ElementMetadata[], config?: CMSPreviewConfig | undefined);
|
14
|
-
addElement(element: ElementMetadata): void;
|
15
|
-
getNgComponents(): Record<string, Type<Entity>>;
|
16
|
-
private flattenElements;
|
17
|
-
private isSharedElement;
|
18
|
-
private getRenderableElements;
|
19
|
-
private getSharedElement;
|
20
|
-
private resolveElementTemplate;
|
21
|
-
private resolveElementStyles;
|
22
|
-
private processElementMetadata;
|
23
|
-
private getSharedChildren;
|
24
|
-
private resolveElement;
|
25
|
-
private getElementStyles;
|
26
|
-
private convertInlineStylesToCSS;
|
27
|
-
private getDefaultCustomizationState;
|
28
|
-
}
|
package/cms/utils/index.d.ts
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
export * from './element-metadata-worker';
|
2
|
-
export * from './element.utils';
|
3
|
-
export * from './elements-resolver';
|
4
|
-
export * from './encoding.utils';
|
5
|
-
export * from './inject';
|
6
|
-
export * from './path.utils';
|
7
|
-
export * from './transpilation-worker';
|
8
|
-
export * from './ui-builder-layout.utils';
|
9
|
-
export * from './ui-definition.utils';
|
package/cms/utils/inject.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export declare const cmsInject: <T = unknown>(token: string) => T;
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { Observable } from 'rxjs';
|
2
|
-
import { ElementMetadata } from '../types/common.types';
|
3
|
-
export declare class TranspilationWorker {
|
4
|
-
private elements;
|
5
|
-
constructor(elements: ElementMetadata[]);
|
6
|
-
get$(): Observable<ElementMetadata[]>;
|
7
|
-
get(): ElementMetadata[];
|
8
|
-
private transpileScripts;
|
9
|
-
private transpileScriptsAsync;
|
10
|
-
private processLevelAsync;
|
11
|
-
private transpileMetadataAsync;
|
12
|
-
private transpile;
|
13
|
-
}
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import { ElementMetadata, ElementStyleDeclaration, PageLayout, PageType } from '../types';
|
2
|
-
export declare const constructPageChildren: (path: string, layout: PageLayout) => ElementMetadata[];
|
3
|
-
export declare const constructRegion: (name: string, parentPath: string) => ElementMetadata;
|
4
|
-
export declare const constructPage: (name: string, pageType: PageType, layout: PageLayout, configuredStyles?: ElementStyleDeclaration) => ElementMetadata;
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import { ElementMetadata } from '../types';
|
2
|
-
export declare const insertElement: (source: ElementMetadata[], target: ElementMetadata, path: string, index: number) => ElementMetadata[];
|
3
|
-
export declare const removeElement: (source: ElementMetadata[], path: string) => ElementMetadata[];
|
4
|
-
export declare const findElementByPath: (source: ElementMetadata[], path: string) => ElementMetadata | undefined;
|
5
|
-
export declare const findElementByModule: (elements: ElementMetadata[], module: string, elementName: string) => ElementMetadata | undefined;
|
6
|
-
export declare const findElement: (source: ElementMetadata[], comparatorFn: (el: ElementMetadata) => boolean) => ElementMetadata | undefined;
|
package/cms/vendor-map.d.ts
DELETED
@@ -1,86 +0,0 @@
|
|
1
|
-
import { DataSource } from '@angular/cdk/collections';
|
2
|
-
import * as angularCore from '@angular/core';
|
3
|
-
import * as angularForms from '@angular/forms';
|
4
|
-
import { ContractedPriceApiService } from '@veloceapps/api';
|
5
|
-
import { CatalogApiService, ConfigurationSettingsApiService, DocumentAttachmentApiService, GuidedSellingApiService, SalesforceApiService, SalesTransactionApiService, ShoppingCartSettingsApiService } from '@veloceapps/api/v2';
|
6
|
-
import { ToastService, ToastType } from '@veloceapps/components';
|
7
|
-
import { Operator, parseJsonSafely, parseJwt, Predicate, TokenInfoService, UITemplateType } from '@veloceapps/core';
|
8
|
-
import { ActionCodePipe, ConfigurationService, ConfigurationStateService, DatePipe, filterSuccessfulExecute, FlowConfigurationService, FlowInfoService, FlowStateConfigurationService, FlowStateService, GuidedSellingService, IntegrationState, NumberPipe, PCMUtils, PricePipe, ProductImagesService, RuntimeSettingsService, SalesTransactionService, TransactionItemWorker } from '@veloceapps/sdk/core';
|
9
|
-
import lodash from 'lodash';
|
10
|
-
import * as rxjs from 'rxjs';
|
11
|
-
import * as rxjsOperators from 'rxjs/operators';
|
12
|
-
import * as cmsActions from './cms.actions';
|
13
|
-
import { ResourcesService } from './services/resources.service';
|
14
|
-
import { TemplatesService } from './services/templates.service';
|
15
|
-
export declare const vendorMap: {
|
16
|
-
'@veloceapps/core': {
|
17
|
-
isDefined: <T>(value: T) => value is Exclude<T, null | undefined>;
|
18
|
-
Operator: typeof Operator;
|
19
|
-
Predicate: typeof Predicate;
|
20
|
-
parseJsonSafely: typeof parseJsonSafely;
|
21
|
-
parseJwt: typeof parseJwt;
|
22
|
-
TokenInfoService: typeof TokenInfoService;
|
23
|
-
UITemplateType: typeof UITemplateType;
|
24
|
-
};
|
25
|
-
'@veloceapps/components': {
|
26
|
-
ToastService: typeof ToastService;
|
27
|
-
ToastType: typeof ToastType;
|
28
|
-
};
|
29
|
-
'@veloceapps/api': {
|
30
|
-
ContractedPriceApiService: typeof ContractedPriceApiService;
|
31
|
-
};
|
32
|
-
'@veloceapps/api/v2': {
|
33
|
-
CatalogApiService: typeof CatalogApiService;
|
34
|
-
ConfigurationSettingsApiService: typeof ConfigurationSettingsApiService;
|
35
|
-
DocumentAttachmentApiService: typeof DocumentAttachmentApiService;
|
36
|
-
GuidedSellingApiService: typeof GuidedSellingApiService;
|
37
|
-
SalesforceApiService: typeof SalesforceApiService;
|
38
|
-
SalesTransactionApiService: typeof SalesTransactionApiService;
|
39
|
-
ShoppingCartSettingsApiService: typeof ShoppingCartSettingsApiService;
|
40
|
-
};
|
41
|
-
'@veloceapps/sdk/core': {
|
42
|
-
ConfigurationService: typeof ConfigurationService;
|
43
|
-
ConfigurationStateService: typeof ConfigurationStateService;
|
44
|
-
GuidedSellingService: typeof GuidedSellingService;
|
45
|
-
filterSuccessfulExecute: typeof filterSuccessfulExecute;
|
46
|
-
FlowInfoService: typeof FlowInfoService;
|
47
|
-
FlowConfigurationService: typeof FlowConfigurationService;
|
48
|
-
IntegrationState: typeof IntegrationState;
|
49
|
-
FlowStateService: typeof FlowStateService;
|
50
|
-
FlowStateConfigurationService: typeof FlowStateConfigurationService;
|
51
|
-
TransactionItemWorker: typeof TransactionItemWorker;
|
52
|
-
ProductImagesService: typeof ProductImagesService;
|
53
|
-
RuntimeSettingsService: typeof RuntimeSettingsService;
|
54
|
-
ActionCodePipe: typeof ActionCodePipe;
|
55
|
-
DatePipe: typeof DatePipe;
|
56
|
-
NumberPipe: typeof NumberPipe;
|
57
|
-
PricePipe: typeof PricePipe;
|
58
|
-
SalesTransactionService: typeof SalesTransactionService;
|
59
|
-
generateTransactionItem: (option: import("@veloceapps/core").PCMProduct, salesTransactionId?: string | undefined, qty?: number | undefined, parentTi?: import("@veloceapps/core").SalesTransactionItem | undefined) => import("@veloceapps/core").SalesTransactionItem;
|
60
|
-
updateQuantity: (ti: import("@veloceapps/core").SalesTransactionItem, qty: number, pcm: import("@veloceapps/core").PCMProduct, parentQty?: number | undefined) => import("@veloceapps/core").SalesTransactionItem;
|
61
|
-
flattenTransactionItem: (ti: import("@veloceapps/core").SalesTransactionItem) => import("@veloceapps/core").SalesTransactionItem[];
|
62
|
-
PCMUtils: typeof PCMUtils;
|
63
|
-
};
|
64
|
-
'@veloceapps/sdk/cms': {
|
65
|
-
TemplatesService: typeof TemplatesService;
|
66
|
-
IntegrationState: typeof IntegrationState;
|
67
|
-
ResourcesService: typeof ResourcesService;
|
68
|
-
cmsInject: <T_1 = unknown>(token: string) => T_1;
|
69
|
-
FlowAction: typeof cmsActions.FlowAction;
|
70
|
-
CmsAction: typeof cmsActions.CmsAction;
|
71
|
-
DEFAULT_PLUGINS_TOKEN: angularCore.InjectionToken<typeof import("./engine/models/plugin").Plugin[]>;
|
72
|
-
UI_DEFINITION_METADATA: angularCore.InjectionToken<import("@veloceapps/core").UIDefinitionMetadata>;
|
73
|
-
ELEMENT_METADATA: angularCore.InjectionToken<import("@veloceapps/sdk/cms").ElementMetadata>;
|
74
|
-
SHARED_ELEMENT_METADATA: angularCore.InjectionToken<import("@veloceapps/sdk/cms").ElementMetadata | undefined>;
|
75
|
-
ELEMENT_CONFIG: angularCore.InjectionToken<import("@veloceapps/sdk/cms").ElementConfig>;
|
76
|
-
};
|
77
|
-
'@angular/core': typeof angularCore;
|
78
|
-
'@angular/forms': typeof angularForms;
|
79
|
-
'@angular/cdk/collections': {
|
80
|
-
DataSource: typeof DataSource;
|
81
|
-
};
|
82
|
-
rxjs: typeof rxjs;
|
83
|
-
'rxjs/operators': typeof rxjsOperators;
|
84
|
-
lodash: lodash.LoDashStatic;
|
85
|
-
};
|
86
|
-
export type VendorMap = typeof vendorMap;
|
package/core/core.module.d.ts
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
import { FormattingSettings } from './types';
|
2
|
-
import * as i0 from "@angular/core";
|
3
|
-
import * as i1 from "./modules/configuration/configuration.module";
|
4
|
-
import * as i2 from "./modules/flow-configuration/flow-configuration.module";
|
5
|
-
export declare const DEFAULT_FORMATTING_SETTINGS: FormattingSettings;
|
6
|
-
export declare class SdkCoreModule {
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SdkCoreModule, never>;
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SdkCoreModule, never, [typeof i1.ConfigurationModule, typeof i2.FlowConfigurationModule], never>;
|
9
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<SdkCoreModule>;
|
10
|
-
}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import * as i0 from "@angular/core";
|
2
|
-
import * as i1 from "./primeng-calendar.directive";
|
3
|
-
export declare class SdkDirectivesModule {
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SdkDirectivesModule, never>;
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SdkDirectivesModule, [typeof i1.CalendarDirective], never, [typeof i1.CalendarDirective]>;
|
6
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<SdkDirectivesModule>;
|
7
|
-
}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import { OnDestroy, OnInit } from '@angular/core';
|
2
|
-
import { Calendar } from 'primeng/calendar';
|
3
|
-
import * as i0 from "@angular/core";
|
4
|
-
export declare class CalendarDirective implements OnInit, OnDestroy {
|
5
|
-
set vlCalendar(calendar: Calendar);
|
6
|
-
private calendar;
|
7
|
-
private ngControl;
|
8
|
-
private formattingSettings;
|
9
|
-
private destroy$;
|
10
|
-
ngOnDestroy(): void;
|
11
|
-
ngOnInit(): void;
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarDirective, never>;
|
13
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CalendarDirective, "[vlCalendar]", never, { "vlCalendar": "vlCalendar"; }, {}, never, never, false, never>;
|
14
|
-
}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import * as i0 from "@angular/core";
|
2
|
-
import * as i1 from "@veloceapps/components";
|
3
|
-
import * as i2 from "@veloceapps/api";
|
4
|
-
export declare class ConfigurationModule {
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationModule, never>;
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ConfigurationModule, never, [typeof i1.ConfirmationDialogModule, typeof i2.ApiModule], never>;
|
7
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ConfigurationModule>;
|
8
|
-
}
|
@@ -1,6 +0,0 @@
|
|
1
|
-
export * from './services/configuration-runtime.service';
|
2
|
-
export * from './services/configuration-state.service';
|
3
|
-
export * from './services/configuration.service';
|
4
|
-
export * from './services/test-mode-configuration.service';
|
5
|
-
export * from './services/guided-selling.service';
|
6
|
-
export * from './types';
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import { PCMApiService } from '@veloceapps/api/v2';
|
2
|
-
import { PCMModel, UIDefinitionContainer, UIDefinitionProps } from '@veloceapps/core';
|
3
|
-
import { BehaviorSubject, Observable } from 'rxjs';
|
4
|
-
import { RuntimeInitializationProps } from '../types/configuration-runtime.types';
|
5
|
-
import * as i0 from "@angular/core";
|
6
|
-
export declare class ConfigurationRuntimeService {
|
7
|
-
private pcmApiService;
|
8
|
-
uiDefinitionContainer: UIDefinitionContainer | null;
|
9
|
-
initializationProps?: RuntimeInitializationProps;
|
10
|
-
pcmModelSubj$: BehaviorSubject<PCMModel | null>;
|
11
|
-
constructor(pcmApiService: PCMApiService);
|
12
|
-
get uiDefinitionProps(): UIDefinitionProps;
|
13
|
-
get pcmModel(): PCMModel | null;
|
14
|
-
get pcmModel$(): Observable<PCMModel | null>;
|
15
|
-
reset(): void;
|
16
|
-
init$(props: RuntimeInitializationProps): Observable<PCMModel>;
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationRuntimeService, never>;
|
18
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ConfigurationRuntimeService>;
|
19
|
-
}
|
@@ -1,60 +0,0 @@
|
|
1
|
-
import { FlowStateApiService } from '@veloceapps/api';
|
2
|
-
import { PCMApiService, SalesTransactionApiService, SalesTransactionUpsertResponse } from '@veloceapps/api/v2';
|
3
|
-
import { ToastService } from '@veloceapps/components';
|
4
|
-
import { FlowStateExecutionRequest, FlowStateExecutionResult, FlowStateSelectorResponse } from '@veloceapps/core';
|
5
|
-
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
6
|
-
import { FlowInfoService, FlowStateService, SalesTransactionService } from '../../../services';
|
7
|
-
import { FlowStateSubscriptionOptions } from '../../../types/flow-state.types';
|
8
|
-
import { FlowConfigurationService } from '../../flow-configuration';
|
9
|
-
import { ConfigurationRuntimeService } from './configuration-runtime.service';
|
10
|
-
import { ConfigurationService } from './configuration.service';
|
11
|
-
import * as i0 from "@angular/core";
|
12
|
-
export declare class ConfigurationStateService {
|
13
|
-
private configurationRuntimeService;
|
14
|
-
private configurationService;
|
15
|
-
private flowStateService;
|
16
|
-
private flowInfoService;
|
17
|
-
private flowConfigurationService;
|
18
|
-
private flowStateApiService;
|
19
|
-
private salesTransactionService;
|
20
|
-
private salesTransactionApiService;
|
21
|
-
private toastService;
|
22
|
-
private pcmApiService;
|
23
|
-
isInitialized$: BehaviorSubject<boolean>;
|
24
|
-
canceledConfiguration$: Subject<void>;
|
25
|
-
private readonly NOT_INITIALIZED;
|
26
|
-
private readonly EXECUTION_BUFFER_TIME;
|
27
|
-
private executedFunctions;
|
28
|
-
private stateId;
|
29
|
-
private ownerId;
|
30
|
-
private subscriptions;
|
31
|
-
private configurationStore;
|
32
|
-
private executionInProgress$;
|
33
|
-
private statefulRequestStream$;
|
34
|
-
private statefulExecutionRequest$;
|
35
|
-
private statelessExecutionRequest$;
|
36
|
-
constructor(configurationRuntimeService: ConfigurationRuntimeService, configurationService: ConfigurationService, flowStateService: FlowStateService, flowInfoService: FlowInfoService, flowConfigurationService: FlowConfigurationService, flowStateApiService: FlowStateApiService, salesTransactionService: SalesTransactionService, salesTransactionApiService: SalesTransactionApiService, toastService: ToastService, pcmApiService: PCMApiService);
|
37
|
-
get isExecutionInProgress$(): Observable<boolean>;
|
38
|
-
init$(): Observable<void>;
|
39
|
-
cleanup(): void;
|
40
|
-
execute$(exec: FlowStateExecutionRequest): Observable<FlowStateExecutionResult['selectors']>;
|
41
|
-
dispatch$(actionName: string, inputData?: unknown): Observable<FlowStateExecutionResult>;
|
42
|
-
select$<Response = unknown>(selectorName: string, inputData?: unknown): Observable<FlowStateSelectorResponse<Response>>;
|
43
|
-
subscribe$<Response = unknown>(selectorName: string, inputData?: unknown, options?: FlowStateSubscriptionOptions): Observable<FlowStateSelectorResponse<Response>>;
|
44
|
-
saveConfiguration(): Observable<SalesTransactionUpsertResponse>;
|
45
|
-
cancelConfiguration(): Observable<void>;
|
46
|
-
private get isStatefulConfiguration();
|
47
|
-
private initStateful$;
|
48
|
-
private execToRequest;
|
49
|
-
private handleSelectorsResponse;
|
50
|
-
private executeRequest$;
|
51
|
-
private executeStateless$;
|
52
|
-
private initBufferedRequest$;
|
53
|
-
private executeStateful$;
|
54
|
-
private executeActionScript;
|
55
|
-
private executeSelectorScript;
|
56
|
-
private executeProcessorScript;
|
57
|
-
private runStatelessSelectors;
|
58
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationStateService, never>;
|
59
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ConfigurationStateService>;
|
60
|
-
}
|