@veloceapps/sdk 12.0.0-18 → 12.0.0-19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cms/cms.actions.d.ts +154 -0
- package/cms/cms.default.d.ts +5 -0
- package/cms/cms.elements.d.ts +4 -0
- package/cms/cms.layouts.d.ts +4 -0
- package/cms/components/element-children/element-children.component.d.ts +22 -0
- package/cms/components/element-children/element-children.module.d.ts +11 -0
- package/cms/components/element-drop-handle/element-drop-handle.component.d.ts +12 -0
- package/cms/components/element-drop-handle/element-drop-handle.module.d.ts +9 -0
- package/cms/components/element-renderer/element-renderer.component.d.ts +29 -0
- package/cms/components/element-renderer/element-renderer.module.d.ts +7 -0
- package/cms/components/element-tools-panel/element-tools-panel.component.d.ts +14 -0
- package/cms/components/element.component.d.ts +17 -0
- package/cms/components/index.d.ts +1 -0
- package/cms/components/plugin.component.d.ts +15 -0
- package/cms/components/preview/index.d.ts +3 -0
- package/cms/components/preview/preview.component.d.ts +32 -0
- package/cms/components/preview/preview.module.d.ts +13 -0
- package/cms/components/preview/preview.types.d.ts +20 -0
- package/cms/decorators/element.decorator.d.ts +2 -0
- package/cms/decorators/index.d.ts +1 -0
- package/cms/definitions/index.d.ts +1 -0
- package/cms/definitions/ui-builder.definitions.d.ts +6 -0
- package/cms/directives/custom-template.directive.d.ts +17 -0
- package/cms/engine/models/entity.d.ts +11 -0
- package/cms/engine/models/plugin.d.ts +5 -0
- package/cms/index.d.ts +15 -921
- package/cms/injection-tokens.d.ts +9 -0
- package/cms/launcher.module.d.ts +12 -0
- package/cms/modules/federated/default-options.d.ts +4 -0
- package/cms/modules/federated/export.d.ts +1 -0
- package/cms/modules/federated/federated-host.directive.d.ts +8 -0
- package/cms/modules/federated/federated.component.d.ts +25 -0
- package/cms/modules/federated/federated.module.d.ts +10 -0
- package/cms/modules/federated/federated.types.d.ts +26 -0
- package/cms/modules/migrations/index.d.ts +2 -0
- package/cms/modules/migrations/migrations.d.ts +2 -0
- package/cms/modules/migrations/migrations.module.d.ts +6 -0
- package/cms/modules/migrations/services/migrations.service.d.ts +10 -0
- package/cms/modules/migrations/types/migrations.types.d.ts +2 -0
- package/cms/modules/runtime/index.d.ts +3 -0
- package/cms/modules/runtime/runtime.module.d.ts +8 -0
- package/cms/modules/runtime/services/compilation.service.d.ts +19 -0
- package/cms/modules/runtime/services/runtime-editor.service.d.ts +20 -0
- package/cms/modules/runtime/services/runtime.service.d.ts +33 -0
- package/cms/modules/runtime/tokens.d.ts +3 -0
- package/cms/modules/runtime/types/compilation.types.d.ts +8 -0
- package/cms/modules/runtime/types/runtime.actions.d.ts +12 -0
- package/cms/plugins/element-hover.plugin.d.ts +33 -0
- package/cms/plugins/io.plugin.d.ts +9 -0
- package/cms/plugins/page.plugin.d.ts +15 -0
- package/cms/plugins/region.plugin.d.ts +17 -0
- package/cms/plugins/script.plugin.d.ts +10 -0
- package/cms/services/element-context.service.d.ts +7 -0
- package/cms/services/index.d.ts +2 -0
- package/cms/services/io-provider.service.d.ts +15 -0
- package/cms/services/resources.service.d.ts +21 -0
- package/cms/services/templates.service.d.ts +14 -0
- package/cms/types/common.types.d.ts +130 -0
- package/cms/types/elements.types.d.ts +2 -0
- package/cms/types/index.d.ts +6 -0
- package/cms/types/layouts.types.d.ts +102 -0
- package/cms/types/pages.types.d.ts +1 -0
- package/cms/types/path.types.d.ts +11 -0
- package/cms/utils/element-metadata-worker.d.ts +11 -0
- package/cms/utils/element.utils.d.ts +20 -0
- package/cms/utils/elements-resolver.d.ts +28 -0
- package/cms/utils/encoding.utils.d.ts +2 -0
- package/cms/utils/index.d.ts +9 -0
- package/cms/utils/inject.d.ts +1 -0
- package/cms/utils/path.utils.d.ts +3 -0
- package/cms/utils/script.utils.d.ts +2 -0
- package/cms/utils/transpilation-worker.d.ts +13 -0
- package/cms/utils/ui-builder-layout.utils.d.ts +4 -0
- package/cms/utils/ui-definition.utils.d.ts +6 -0
- package/cms/vendor-map.d.ts +86 -0
- package/core/core.module.d.ts +10 -0
- package/core/directives/directives.module.d.ts +7 -0
- package/core/directives/index.d.ts +2 -0
- package/core/directives/primeng-calendar.directive.d.ts +14 -0
- package/core/index.d.ts +8 -527
- package/core/modules/configuration/configuration.module.d.ts +8 -0
- package/core/modules/configuration/index.d.ts +6 -0
- package/core/modules/configuration/services/configuration-runtime.service.d.ts +17 -0
- package/core/modules/configuration/services/configuration-state.service.d.ts +60 -0
- package/core/modules/configuration/services/configuration.service.d.ts +36 -0
- package/core/modules/configuration/services/guided-selling.service.d.ts +15 -0
- package/core/modules/configuration/services/test-mode-configuration.service.d.ts +26 -0
- package/core/modules/configuration/types/configuration-runtime.types.d.ts +3 -0
- package/core/modules/configuration/types/configuration.types.d.ts +20 -0
- package/core/modules/configuration/types/index.d.ts +2 -0
- package/core/modules/flow-configuration/flow-configuration.module.d.ts +7 -0
- package/core/modules/flow-configuration/index.d.ts +1 -0
- package/core/modules/flow-configuration/services/flow-configuration.service.d.ts +23 -0
- package/core/modules/index.d.ts +2 -0
- package/core/operators/filter-successful-execute.operator.d.ts +3 -0
- package/core/operators/index.d.ts +1 -0
- package/core/pipes/action-code.pipe.d.ts +8 -0
- package/core/pipes/date.pipe.d.ts +13 -0
- package/core/pipes/index.d.ts +5 -0
- package/core/pipes/number.pipe.d.ts +10 -0
- package/core/pipes/pipes.module.d.ts +10 -0
- package/core/pipes/price.pipe.d.ts +10 -0
- package/core/services/catalog-products.service.d.ts +11 -0
- package/core/services/flow-info.service.d.ts +44 -0
- package/core/services/flow-state-configuration.service.d.ts +25 -0
- package/core/services/flow-state.service.d.ts +70 -0
- package/core/services/index.d.ts +8 -0
- package/core/services/integration.state.d.ts +16 -0
- package/core/services/product-images.service.d.ts +12 -0
- package/core/services/runtime-settings.service.d.ts +24 -0
- package/core/services/sales-transaction.service.d.ts +27 -0
- package/core/types/flow-customization.types.d.ts +10 -0
- package/core/types/flow-state.types.d.ts +12 -0
- package/core/types/formatting-settings.types.d.ts +13 -0
- package/core/types/index.d.ts +5 -0
- package/core/types/integration.types.d.ts +10 -0
- package/core/types/pipe.types.d.ts +1 -0
- package/core/types/ui-definition.types.d.ts +1 -0
- package/core/utils/index.d.ts +4 -0
- package/core/utils/pcm.utils.d.ts +5 -0
- package/core/utils/transaction-item.utils.d.ts +10 -0
- package/core/utils/transaction-item.worker.d.ts +8 -0
- package/core/utils/ui-definition.utils.d.ts +2 -0
- package/esm2020/cms/cms.actions.mjs +151 -0
- package/esm2020/cms/cms.default.mjs +5 -0
- package/esm2020/cms/cms.elements.mjs +52 -0
- package/esm2020/cms/cms.layouts.mjs +239 -0
- package/esm2020/cms/components/element-children/element-children.component.mjs +41 -0
- package/esm2020/cms/components/element-children/element-children.module.mjs +21 -0
- package/esm2020/cms/components/element-drop-handle/element-drop-handle.component.mjs +28 -0
- package/esm2020/cms/components/element-drop-handle/element-drop-handle.module.mjs +19 -0
- package/esm2020/cms/components/element-renderer/element-renderer.component.mjs +117 -0
- package/esm2020/cms/components/element-renderer/element-renderer.module.mjs +16 -0
- package/esm2020/cms/components/element-tools-panel/element-tools-panel.component.mjs +35 -0
- package/esm2020/cms/components/element.component.mjs +45 -0
- package/esm2020/cms/components/index.mjs +2 -0
- package/esm2020/cms/components/plugin.component.mjs +17 -0
- package/esm2020/cms/components/preview/index.mjs +4 -0
- package/esm2020/cms/components/preview/preview.component.mjs +75 -0
- package/esm2020/cms/components/preview/preview.module.mjs +42 -0
- package/esm2020/cms/components/preview/preview.types.mjs +2 -0
- package/esm2020/cms/decorators/element.decorator.mjs +6 -0
- package/esm2020/cms/decorators/index.mjs +2 -0
- package/esm2020/cms/definitions/index.mjs +2 -0
- package/esm2020/cms/definitions/ui-builder.definitions.mjs +18 -0
- package/esm2020/cms/directives/custom-template.directive.mjs +38 -0
- package/esm2020/cms/engine/models/entity.mjs +17 -0
- package/esm2020/cms/engine/models/plugin.mjs +6 -0
- package/esm2020/cms/index.mjs +16 -0
- package/esm2020/cms/injection-tokens.mjs +7 -0
- package/esm2020/cms/launcher.module.mjs +24 -0
- package/esm2020/cms/modules/federated/default-options.mjs +5 -0
- package/esm2020/cms/modules/federated/export.mjs +2 -0
- package/esm2020/cms/modules/federated/federated-host.directive.mjs +16 -0
- package/esm2020/cms/modules/federated/federated.component.mjs +74 -0
- package/esm2020/cms/modules/federated/federated.module.mjs +20 -0
- package/esm2020/cms/modules/federated/federated.types.mjs +2 -0
- package/esm2020/cms/modules/migrations/index.mjs +3 -0
- package/esm2020/cms/modules/migrations/migrations.mjs +22 -0
- package/esm2020/cms/modules/migrations/migrations.module.mjs +15 -0
- package/esm2020/cms/modules/migrations/services/migrations.service.mjs +47 -0
- package/esm2020/cms/modules/migrations/types/migrations.types.mjs +2 -0
- package/esm2020/cms/modules/runtime/index.mjs +4 -0
- package/esm2020/cms/modules/runtime/runtime.module.mjs +32 -0
- package/esm2020/cms/modules/runtime/services/compilation.service.mjs +93 -0
- package/esm2020/cms/modules/runtime/services/runtime-editor.service.mjs +30 -0
- package/esm2020/cms/modules/runtime/services/runtime.service.mjs +117 -0
- package/esm2020/cms/modules/runtime/tokens.mjs +3 -0
- package/esm2020/cms/modules/runtime/types/compilation.types.mjs +2 -0
- package/esm2020/cms/modules/runtime/types/runtime.actions.mjs +2 -0
- package/esm2020/cms/plugins/element-hover.plugin.mjs +121 -0
- package/esm2020/cms/plugins/io.plugin.mjs +45 -0
- package/esm2020/cms/plugins/page.plugin.mjs +37 -0
- package/esm2020/cms/plugins/region.plugin.mjs +59 -0
- package/esm2020/cms/plugins/script.plugin.mjs +31 -0
- package/esm2020/cms/services/element-context.service.mjs +10 -0
- package/esm2020/cms/services/index.mjs +3 -0
- package/esm2020/cms/services/io-provider.service.mjs +53 -0
- package/esm2020/cms/services/resources.service.mjs +71 -0
- package/esm2020/cms/services/templates.service.mjs +32 -0
- package/esm2020/cms/types/common.types.mjs +2 -0
- package/esm2020/cms/types/elements.types.mjs +2 -0
- package/esm2020/cms/types/index.mjs +7 -0
- package/esm2020/cms/types/layouts.types.mjs +71 -0
- package/esm2020/cms/types/pages.types.mjs +2 -0
- package/esm2020/cms/types/path.types.mjs +2 -0
- package/esm2020/cms/utils/element-metadata-worker.mjs +31 -0
- package/esm2020/cms/utils/element.utils.mjs +182 -0
- package/esm2020/cms/utils/elements-resolver.mjs +206 -0
- package/esm2020/cms/utils/encoding.utils.mjs +29 -0
- package/esm2020/cms/utils/index.mjs +10 -0
- package/esm2020/cms/utils/inject.mjs +27 -0
- package/esm2020/cms/utils/path.utils.mjs +44 -0
- package/esm2020/cms/utils/script.utils.mjs +46 -0
- package/esm2020/cms/utils/transpilation-worker.mjs +52 -0
- package/esm2020/cms/utils/ui-builder-layout.utils.mjs +46 -0
- package/esm2020/cms/utils/ui-definition.utils.mjs +85 -0
- package/esm2020/cms/veloceapps-sdk-cms.mjs +5 -0
- package/esm2020/cms/vendor-map.mjs +83 -0
- package/esm2020/core/core.module.mjs +54 -0
- package/esm2020/core/directives/directives.module.mjs +16 -0
- package/esm2020/core/directives/index.mjs +3 -0
- package/esm2020/core/directives/primeng-calendar.directive.mjs +41 -0
- package/esm2020/core/index.mjs +9 -0
- package/esm2020/core/modules/configuration/configuration.module.mjs +34 -0
- package/esm2020/core/modules/configuration/index.mjs +7 -0
- package/esm2020/core/modules/configuration/services/configuration-runtime.service.mjs +29 -0
- package/esm2020/core/modules/configuration/services/configuration-state.service.mjs +381 -0
- package/esm2020/core/modules/configuration/services/configuration.service.mjs +159 -0
- package/esm2020/core/modules/configuration/services/guided-selling.service.mjs +62 -0
- package/esm2020/core/modules/configuration/services/test-mode-configuration.service.mjs +97 -0
- package/esm2020/core/modules/configuration/types/configuration-runtime.types.mjs +2 -0
- package/esm2020/core/modules/configuration/types/configuration.types.mjs +2 -0
- package/esm2020/core/modules/configuration/types/index.mjs +3 -0
- package/esm2020/core/modules/flow-configuration/flow-configuration.module.mjs +17 -0
- package/esm2020/core/modules/flow-configuration/index.mjs +2 -0
- package/esm2020/core/modules/flow-configuration/services/flow-configuration.service.mjs +80 -0
- package/esm2020/core/modules/index.mjs +3 -0
- package/esm2020/core/operators/filter-successful-execute.operator.mjs +5 -0
- package/esm2020/core/operators/index.mjs +2 -0
- package/esm2020/core/pipes/action-code.pipe.mjs +20 -0
- package/esm2020/core/pipes/date.pipe.mjs +44 -0
- package/esm2020/core/pipes/index.mjs +6 -0
- package/esm2020/core/pipes/number.pipe.mjs +27 -0
- package/esm2020/core/pipes/pipes.module.mjs +19 -0
- package/esm2020/core/pipes/price.pipe.mjs +30 -0
- package/esm2020/core/services/catalog-products.service.mjs +25 -0
- package/esm2020/core/services/flow-info.service.mjs +146 -0
- package/esm2020/core/services/flow-state-configuration.service.mjs +120 -0
- package/esm2020/core/services/flow-state.service.mjs +417 -0
- package/esm2020/core/services/index.mjs +9 -0
- package/esm2020/core/services/integration.state.mjs +36 -0
- package/esm2020/core/services/product-images.service.mjs +30 -0
- package/esm2020/core/services/runtime-settings.service.mjs +112 -0
- package/esm2020/core/services/sales-transaction.service.mjs +67 -0
- package/esm2020/core/types/flow-customization.types.mjs +3 -0
- package/esm2020/core/types/flow-state.types.mjs +2 -0
- package/esm2020/core/types/formatting-settings.types.mjs +3 -0
- package/esm2020/core/types/index.mjs +6 -0
- package/esm2020/core/types/integration.types.mjs +2 -0
- package/esm2020/core/types/pipe.types.mjs +2 -0
- package/esm2020/core/types/ui-definition.types.mjs +2 -0
- package/esm2020/core/utils/index.mjs +5 -0
- package/esm2020/core/utils/pcm.utils.mjs +15 -0
- package/esm2020/core/utils/transaction-item.utils.mjs +144 -0
- package/esm2020/core/utils/transaction-item.worker.mjs +16 -0
- package/esm2020/core/utils/ui-definition.utils.mjs +9 -0
- package/esm2020/core/veloceapps-sdk-core.mjs +5 -0
- package/esm2020/index.mjs +2 -0
- package/esm2020/src/components/dialog/dialog.component.mjs +36 -0
- package/esm2020/src/components/dialog/dialog.module.mjs +19 -0
- package/esm2020/src/components/dialog/dialog.types.mjs +2 -0
- package/esm2020/src/components/flow-header/flow-header.component.mjs +107 -0
- package/esm2020/src/components/flow-header/flow-header.module.mjs +19 -0
- package/esm2020/src/components/flow-header/index.mjs +2 -0
- package/esm2020/src/components/guided-selling/guided-selling.component.mjs +107 -0
- package/esm2020/src/components/guided-selling/guided-selling.module.mjs +19 -0
- package/esm2020/src/configure-primeng.mjs +33 -0
- package/esm2020/src/constants.mjs +2 -0
- package/esm2020/src/flow-routing.module.mjs +97 -0
- package/esm2020/src/flow.component.mjs +39 -0
- package/esm2020/src/flow.module.mjs +60 -0
- package/esm2020/src/guards/flow.guard.mjs +35 -0
- package/esm2020/src/guards/product-unload.guard.mjs +49 -0
- package/esm2020/src/guards/root.guard.mjs +46 -0
- package/esm2020/src/index.mjs +5 -0
- package/esm2020/src/pages/assets/assets.component.mjs +106 -0
- package/esm2020/src/pages/assets/assets.module.mjs +20 -0
- package/esm2020/src/pages/catalog/catalog.component.mjs +106 -0
- package/esm2020/src/pages/catalog/catalog.module.mjs +20 -0
- package/esm2020/src/pages/debug/debug.component.mjs +49 -0
- package/esm2020/src/pages/debug/debug.module.mjs +46 -0
- package/esm2020/src/pages/product/product.component.mjs +55 -0
- package/esm2020/src/pages/product/product.module.mjs +20 -0
- package/esm2020/src/pages/record-not-found/record-not-found.component.mjs +27 -0
- package/esm2020/src/pages/record-not-found/record-not-found.module.mjs +20 -0
- package/esm2020/src/pages/shopping-cart/shopping-cart.component.mjs +106 -0
- package/esm2020/src/pages/shopping-cart/shopping-cart.module.mjs +20 -0
- package/esm2020/src/resolvers/flow.resolver.mjs +50 -0
- package/esm2020/src/resolvers/pcm-model.resolver.mjs +12 -0
- package/esm2020/src/resolvers/sales-transaction.resolver.mjs +64 -0
- package/esm2020/src/resolvers/ui-definition.resolver.mjs +44 -0
- package/esm2020/src/services/flow-dialog.service.mjs +91 -0
- package/esm2020/src/services/flow-router.service.mjs +173 -0
- package/esm2020/src/services/flow.service.mjs +102 -0
- package/esm2020/src/services/guided-selling.service.mjs +34 -0
- package/esm2020/src/services/index.mjs +4 -0
- package/esm2020/src/types/index.mjs +2 -0
- package/esm2020/src/types/route.types.mjs +2 -0
- package/esm2020/veloceapps-sdk.mjs +5 -0
- package/fesm2015/veloceapps-sdk-cms.mjs +2514 -0
- package/fesm2015/veloceapps-sdk-cms.mjs.map +1 -0
- package/fesm2015/veloceapps-sdk-core.mjs +2084 -0
- package/fesm2015/veloceapps-sdk-core.mjs.map +1 -0
- package/fesm2015/veloceapps-sdk.mjs +1598 -0
- package/fesm2015/veloceapps-sdk.mjs.map +1 -0
- package/fesm2020/veloceapps-sdk-cms.mjs +2613 -0
- package/fesm2020/veloceapps-sdk-cms.mjs.map +1 -0
- package/{fesm2022 → fesm2020}/veloceapps-sdk-core.mjs +146 -164
- package/fesm2020/veloceapps-sdk-core.mjs.map +1 -0
- package/{fesm2022 → fesm2020}/veloceapps-sdk.mjs +192 -186
- package/fesm2020/veloceapps-sdk.mjs.map +1 -0
- package/index.d.ts +1 -330
- package/package.json +34 -17
- package/src/components/dialog/dialog.component.d.ts +13 -0
- package/src/components/dialog/dialog.module.d.ts +9 -0
- package/src/components/dialog/dialog.types.d.ts +7 -0
- package/src/components/flow-header/flow-header.component.d.ts +25 -0
- package/src/components/flow-header/flow-header.module.d.ts +9 -0
- package/src/components/flow-header/index.d.ts +1 -0
- package/src/components/guided-selling/guided-selling.component.d.ts +25 -0
- package/src/components/guided-selling/guided-selling.module.d.ts +9 -0
- package/src/configure-primeng.d.ts +1 -0
- package/src/constants.d.ts +1 -0
- package/src/flow-routing.module.d.ts +11 -0
- package/src/flow.component.d.ts +21 -0
- package/src/flow.module.d.ts +16 -0
- package/src/guards/flow.guard.d.ts +2 -0
- package/src/guards/product-unload.guard.d.ts +16 -0
- package/src/guards/root.guard.d.ts +14 -0
- package/src/index.d.ts +4 -0
- package/src/pages/assets/assets.component.d.ts +31 -0
- package/src/pages/assets/assets.module.d.ts +10 -0
- package/src/pages/catalog/catalog.component.d.ts +31 -0
- package/src/pages/catalog/catalog.module.d.ts +10 -0
- package/src/pages/debug/debug.component.d.ts +21 -0
- package/src/pages/debug/debug.module.d.ts +14 -0
- package/src/pages/product/product.component.d.ts +24 -0
- package/src/pages/product/product.module.d.ts +10 -0
- package/src/pages/record-not-found/record-not-found.component.d.ts +12 -0
- package/src/pages/record-not-found/record-not-found.module.d.ts +9 -0
- package/src/pages/shopping-cart/shopping-cart.component.d.ts +31 -0
- package/src/pages/shopping-cart/shopping-cart.module.d.ts +10 -0
- package/src/resolvers/flow.resolver.d.ts +14 -0
- package/src/resolvers/pcm-model.resolver.d.ts +3 -0
- package/src/resolvers/sales-transaction.resolver.d.ts +18 -0
- package/src/resolvers/ui-definition.resolver.d.ts +3 -0
- package/src/services/flow-dialog.service.d.ts +23 -0
- package/src/services/flow-router.service.d.ts +42 -0
- package/src/services/flow.service.d.ts +21 -0
- package/src/services/guided-selling.service.d.ts +13 -0
- package/src/services/index.d.ts +3 -0
- package/src/types/index.d.ts +1 -0
- package/src/types/route.types.d.ts +4 -0
- package/fesm2022/veloceapps-sdk-cms.mjs +0 -2611
- package/fesm2022/veloceapps-sdk-cms.mjs.map +0 -1
- package/fesm2022/veloceapps-sdk-core.mjs.map +0 -1
- package/fesm2022/veloceapps-sdk.mjs.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, InjectionToken, Optional, Inject, NgModule, inject,
|
|
3
|
-
import {
|
|
2
|
+
import { Injectable, InjectionToken, Optional, Inject, NgModule, inject, Directive, Input, LOCALE_ID, Pipe } from '@angular/core';
|
|
3
|
+
import { DEFAULT_CURRENCY_ISO_CODE, DEFAULT_CURRENCY_SYMBOL, validateDateFormat, DEFAULT_DATE_FORMAT, DEFAULT_DECIMALS_COUNT, getSupportedDateFormats, DEFAULT_DECIMAL_SEPARATOR, DEFAULT_THOUSANDS_SEPARATOR, DEFAULT_ACTION_CODE_LABELS, parseJsonSafely, isDefined, UITemplateType, SalesforceIdUtils, UUID, extractErrorDetails, ConfigurationProcessorTypes, EntityUtil, DEFAULT_TIME_FORMAT, formatNumber } from '@veloceapps/core';
|
|
4
4
|
import * as i3 from '@veloceapps/api';
|
|
5
5
|
import { ApiModule } from '@veloceapps/api';
|
|
6
6
|
import * as i6 from '@veloceapps/components';
|
|
7
7
|
import { ToastType, ConfirmationDialogModule } from '@veloceapps/components';
|
|
8
8
|
import * as i1 from '@veloceapps/api/v2';
|
|
9
|
-
import {
|
|
9
|
+
import { tap, BehaviorSubject, map, filter, switchMap, of, forkJoin, noop, throwError, Subject, catchError as catchError$1, combineLatest, finalize as finalize$1, buffer, debounceTime, share, take, distinctUntilChanged, shareReplay, takeUntil, first } from 'rxjs';
|
|
10
10
|
import { uniqBy, flatten, omit, cloneDeep, assign, isEqual } from 'lodash';
|
|
11
11
|
import * as i2 from 'primeng/api';
|
|
12
12
|
import { filter as filter$1, map as map$1, tap as tap$1, catchError, finalize } from 'rxjs/operators';
|
|
@@ -18,34 +18,25 @@ class ConfigurationRuntimeService {
|
|
|
18
18
|
constructor(pcmApiService) {
|
|
19
19
|
this.pcmApiService = pcmApiService;
|
|
20
20
|
this.uiDefinitionContainer = null;
|
|
21
|
-
this.pcmModelSubj$ = new BehaviorSubject(null);
|
|
22
21
|
}
|
|
23
22
|
get uiDefinitionProps() {
|
|
24
23
|
return this.uiDefinitionContainer?.source.properties ?? {};
|
|
25
24
|
}
|
|
26
|
-
get pcmModel() {
|
|
27
|
-
return this.pcmModelSubj$.value;
|
|
28
|
-
}
|
|
29
|
-
get pcmModel$() {
|
|
30
|
-
return this.pcmModelSubj$;
|
|
31
|
-
}
|
|
32
25
|
reset() {
|
|
33
26
|
this.uiDefinitionContainer = null;
|
|
34
27
|
this.initializationProps = undefined;
|
|
35
|
-
this.
|
|
28
|
+
this.pcmModel = undefined;
|
|
36
29
|
}
|
|
37
30
|
init$(props) {
|
|
38
31
|
this.initializationProps = props;
|
|
39
|
-
return this.pcmApiService
|
|
40
|
-
.fetchPCMByProductId(props.productId)
|
|
41
|
-
.pipe(tap(pcmModel => this.pcmModelSubj$.next(pcmModel)));
|
|
32
|
+
return this.pcmApiService.fetchPCMByProductId(props.productId).pipe(tap(pcmModel => (this.pcmModel = pcmModel)));
|
|
42
33
|
}
|
|
43
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: ConfigurationRuntimeService, deps: [{ token: i1.PCMApiService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
44
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: ConfigurationRuntimeService }); }
|
|
45
34
|
}
|
|
46
|
-
i0.ɵɵ
|
|
35
|
+
ConfigurationRuntimeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationRuntimeService, deps: [{ token: i1.PCMApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
36
|
+
ConfigurationRuntimeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationRuntimeService });
|
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationRuntimeService, decorators: [{
|
|
47
38
|
type: Injectable
|
|
48
|
-
}], ctorParameters: ()
|
|
39
|
+
}], ctorParameters: function () { return [{ type: i1.PCMApiService }]; } });
|
|
49
40
|
|
|
50
41
|
const FLOW_CUSTOMIZATION = new InjectionToken('FLOW_CUSTOMIZATION');
|
|
51
42
|
|
|
@@ -147,12 +138,12 @@ class RuntimeSettingsService {
|
|
|
147
138
|
const newSettings = uniqBy([...settings, ...this.shoppingCartSettings$.value], 'id');
|
|
148
139
|
this.shoppingCartSettings$.next(newSettings);
|
|
149
140
|
}
|
|
150
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: RuntimeSettingsService, deps: [{ token: i1.ConfigurationSettingsApiService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
151
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: RuntimeSettingsService }); }
|
|
152
141
|
}
|
|
153
|
-
i0.ɵɵ
|
|
142
|
+
RuntimeSettingsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RuntimeSettingsService, deps: [{ token: i1.ConfigurationSettingsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
143
|
+
RuntimeSettingsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RuntimeSettingsService });
|
|
144
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RuntimeSettingsService, decorators: [{
|
|
154
145
|
type: Injectable
|
|
155
|
-
}], ctorParameters: ()
|
|
146
|
+
}], ctorParameters: function () { return [{ type: i1.ConfigurationSettingsApiService }]; } });
|
|
156
147
|
|
|
157
148
|
class FlowInfoService {
|
|
158
149
|
constructor(runtimeSettingsService, templatesAdminApiService, customizationService) {
|
|
@@ -279,17 +270,17 @@ class FlowInfoService {
|
|
|
279
270
|
}
|
|
280
271
|
return objectName.toUpperCase();
|
|
281
272
|
}
|
|
282
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: FlowInfoService, deps: [{ token: RuntimeSettingsService }, { token: i1.UITemplatesAdminApiService }, { token: FLOW_CUSTOMIZATION, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
283
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: FlowInfoService }); }
|
|
284
273
|
}
|
|
285
|
-
i0.ɵɵ
|
|
274
|
+
FlowInfoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowInfoService, deps: [{ token: RuntimeSettingsService }, { token: i1.UITemplatesAdminApiService }, { token: FLOW_CUSTOMIZATION, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
275
|
+
FlowInfoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowInfoService });
|
|
276
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowInfoService, decorators: [{
|
|
286
277
|
type: Injectable
|
|
287
|
-
}], ctorParameters: ()
|
|
278
|
+
}], ctorParameters: function () { return [{ type: RuntimeSettingsService }, { type: i1.UITemplatesAdminApiService }, { type: undefined, decorators: [{
|
|
288
279
|
type: Optional
|
|
289
280
|
}, {
|
|
290
281
|
type: Inject,
|
|
291
282
|
args: [FLOW_CUSTOMIZATION]
|
|
292
|
-
}] }] });
|
|
283
|
+
}] }]; } });
|
|
293
284
|
|
|
294
285
|
class PCMUtils {
|
|
295
286
|
static mapByPrcId(pcm) {
|
|
@@ -519,12 +510,12 @@ class GuidedSellingService {
|
|
|
519
510
|
attributes: {},
|
|
520
511
|
};
|
|
521
512
|
}
|
|
522
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: GuidedSellingService, deps: [{ token: i1.OrchestrationsApiService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
523
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: GuidedSellingService }); }
|
|
524
513
|
}
|
|
525
|
-
i0.ɵɵ
|
|
514
|
+
GuidedSellingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingService, deps: [{ token: i1.OrchestrationsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
515
|
+
GuidedSellingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingService });
|
|
516
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingService, decorators: [{
|
|
526
517
|
type: Injectable
|
|
527
|
-
}], ctorParameters: ()
|
|
518
|
+
}], ctorParameters: function () { return [{ type: i1.OrchestrationsApiService }]; } });
|
|
528
519
|
|
|
529
520
|
class ConfigurationService {
|
|
530
521
|
constructor(flowInfoService, messageService, configurationRuntimeService, salesTransactionService, orchestrationsApiService, guidedSellingService) {
|
|
@@ -597,22 +588,6 @@ class ConfigurationService {
|
|
|
597
588
|
this.previousConfigurationStateSubj$.next(configurationState);
|
|
598
589
|
}), map$1(noop));
|
|
599
590
|
}
|
|
600
|
-
patchState$(context) {
|
|
601
|
-
return this.configure$(context).pipe(catchError(error => {
|
|
602
|
-
console.error(error);
|
|
603
|
-
if (!this.configurationRuntimeService.uiDefinitionProps.suppressToastMessages) {
|
|
604
|
-
this.messageService.add({ severity: 'error', summary: error });
|
|
605
|
-
}
|
|
606
|
-
return throwError(() => error);
|
|
607
|
-
}), tap$1(() => {
|
|
608
|
-
if (!this.hasUnsavedChanges) {
|
|
609
|
-
this.hasUnsavedChanges = true;
|
|
610
|
-
}
|
|
611
|
-
}), map$1(noop));
|
|
612
|
-
}
|
|
613
|
-
patchState(context) {
|
|
614
|
-
this.patchState$(context).subscribe();
|
|
615
|
-
}
|
|
616
591
|
patch$(transactionItem) {
|
|
617
592
|
const { state, root } = this;
|
|
618
593
|
if (!state) {
|
|
@@ -629,7 +604,17 @@ class ConfigurationService {
|
|
|
629
604
|
salesTransactionItems: [newRoot],
|
|
630
605
|
},
|
|
631
606
|
};
|
|
632
|
-
return this.
|
|
607
|
+
return this.configure$(newTransactionContext).pipe(catchError(error => {
|
|
608
|
+
console.error(error);
|
|
609
|
+
if (!this.configurationRuntimeService.uiDefinitionProps.suppressToastMessages) {
|
|
610
|
+
this.messageService.add({ severity: 'error', summary: error });
|
|
611
|
+
}
|
|
612
|
+
return throwError(() => error);
|
|
613
|
+
}), tap$1(() => {
|
|
614
|
+
if (!this.hasUnsavedChanges) {
|
|
615
|
+
this.hasUnsavedChanges = true;
|
|
616
|
+
}
|
|
617
|
+
}), map$1(noop));
|
|
633
618
|
}
|
|
634
619
|
patch(transactionItem) {
|
|
635
620
|
this.patch$(transactionItem).subscribe();
|
|
@@ -667,25 +652,12 @@ class ConfigurationService {
|
|
|
667
652
|
}
|
|
668
653
|
return pcmModel;
|
|
669
654
|
}
|
|
670
|
-
getPCMModel$() {
|
|
671
|
-
return this.configurationRuntimeService.pcmModel$.pipe(distinctUntilChanged((prev, curr) => prev?.id === curr?.id));
|
|
672
|
-
}
|
|
673
|
-
swapProduct$(productId) {
|
|
674
|
-
const rootTransactionItem = this.root;
|
|
675
|
-
this.flowInfoService.updateContext({ productId });
|
|
676
|
-
return this.configurationRuntimeService.init$({ productId }).pipe(map$1(pcm => generateTransactionItem(pcm, this.state?.salesTransaction.id, rootTransactionItem?.qty)), switchMap(salesTransactionItem => {
|
|
677
|
-
return this.patch$({
|
|
678
|
-
...salesTransactionItem,
|
|
679
|
-
id: rootTransactionItem?.id ?? salesTransactionItem.id,
|
|
680
|
-
});
|
|
681
|
-
}));
|
|
682
|
-
}
|
|
683
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: ConfigurationService, deps: [{ token: FlowInfoService }, { token: i2.MessageService }, { token: ConfigurationRuntimeService }, { token: SalesTransactionService }, { token: i1.OrchestrationsApiService }, { token: GuidedSellingService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
684
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: ConfigurationService }); }
|
|
685
655
|
}
|
|
686
|
-
i0.ɵɵ
|
|
656
|
+
ConfigurationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationService, deps: [{ token: FlowInfoService }, { token: i2.MessageService }, { token: ConfigurationRuntimeService }, { token: SalesTransactionService }, { token: i1.OrchestrationsApiService }, { token: GuidedSellingService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
657
|
+
ConfigurationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationService });
|
|
658
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationService, decorators: [{
|
|
687
659
|
type: Injectable
|
|
688
|
-
}], ctorParameters: ()
|
|
660
|
+
}], ctorParameters: function () { return [{ type: FlowInfoService }, { type: i2.MessageService }, { type: ConfigurationRuntimeService }, { type: SalesTransactionService }, { type: i1.OrchestrationsApiService }, { type: GuidedSellingService }]; } });
|
|
689
661
|
|
|
690
662
|
class SalesTransactionService {
|
|
691
663
|
get isInitialized$() {
|
|
@@ -741,12 +713,12 @@ class SalesTransactionService {
|
|
|
741
713
|
setState(state) {
|
|
742
714
|
this.stateSubj$.next(state);
|
|
743
715
|
}
|
|
744
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: SalesTransactionService, deps: [{ token: i1.SalesTransactionApiService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
745
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: SalesTransactionService }); }
|
|
746
716
|
}
|
|
747
|
-
i0.ɵɵ
|
|
717
|
+
SalesTransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesTransactionService, deps: [{ token: i1.SalesTransactionApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
718
|
+
SalesTransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesTransactionService });
|
|
719
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesTransactionService, decorators: [{
|
|
748
720
|
type: Injectable
|
|
749
|
-
}], ctorParameters: ()
|
|
721
|
+
}], ctorParameters: function () { return [{ type: i1.SalesTransactionApiService }]; } });
|
|
750
722
|
|
|
751
723
|
class FlowConfigurationService {
|
|
752
724
|
constructor(orchestrationsApiService, salesTransactionService, flowInfoService) {
|
|
@@ -811,12 +783,12 @@ class FlowConfigurationService {
|
|
|
811
783
|
}));
|
|
812
784
|
};
|
|
813
785
|
}
|
|
814
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: FlowConfigurationService, deps: [{ token: i1.OrchestrationsApiService }, { token: SalesTransactionService }, { token: FlowInfoService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
815
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: FlowConfigurationService }); }
|
|
816
786
|
}
|
|
817
|
-
i0.ɵɵ
|
|
787
|
+
FlowConfigurationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowConfigurationService, deps: [{ token: i1.OrchestrationsApiService }, { token: SalesTransactionService }, { token: FlowInfoService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
788
|
+
FlowConfigurationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowConfigurationService });
|
|
789
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowConfigurationService, decorators: [{
|
|
818
790
|
type: Injectable
|
|
819
|
-
}], ctorParameters: ()
|
|
791
|
+
}], ctorParameters: function () { return [{ type: i1.OrchestrationsApiService }, { type: SalesTransactionService }, { type: FlowInfoService }]; } });
|
|
820
792
|
|
|
821
793
|
class TestModeConfigurationService {
|
|
822
794
|
constructor(flowInfoService, configurationService, configurationRuntimeService, salesTransactionService, runtimeSettingsService, sfApiService) {
|
|
@@ -831,7 +803,7 @@ class TestModeConfigurationService {
|
|
|
831
803
|
initTestMode$(uiDefinitionContainer, options) {
|
|
832
804
|
this.configurationRuntimeService.uiDefinitionContainer = uiDefinitionContainer;
|
|
833
805
|
if (this.checkInitialized(uiDefinitionContainer)) {
|
|
834
|
-
this.configurationRuntimeService.
|
|
806
|
+
this.configurationRuntimeService.pcmModel = this.pcmModel;
|
|
835
807
|
return of(undefined);
|
|
836
808
|
}
|
|
837
809
|
this.configurationService.reset();
|
|
@@ -896,12 +868,12 @@ class TestModeConfigurationService {
|
|
|
896
868
|
checkInitialized(uiDefinitionContainer) {
|
|
897
869
|
return this.isInitialized && !!uiDefinitionContainer.source.properties?.persistTestState;
|
|
898
870
|
}
|
|
899
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: TestModeConfigurationService, deps: [{ token: FlowInfoService }, { token: ConfigurationService }, { token: ConfigurationRuntimeService }, { token: SalesTransactionService }, { token: RuntimeSettingsService }, { token: i1.SalesforceApiService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
900
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: TestModeConfigurationService }); }
|
|
901
871
|
}
|
|
902
|
-
i0.ɵɵ
|
|
872
|
+
TestModeConfigurationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TestModeConfigurationService, deps: [{ token: FlowInfoService }, { token: ConfigurationService }, { token: ConfigurationRuntimeService }, { token: SalesTransactionService }, { token: RuntimeSettingsService }, { token: i1.SalesforceApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
873
|
+
TestModeConfigurationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TestModeConfigurationService });
|
|
874
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TestModeConfigurationService, decorators: [{
|
|
903
875
|
type: Injectable
|
|
904
|
-
}], ctorParameters: ()
|
|
876
|
+
}], ctorParameters: function () { return [{ type: FlowInfoService }, { type: ConfigurationService }, { type: ConfigurationRuntimeService }, { type: SalesTransactionService }, { type: RuntimeSettingsService }, { type: i1.SalesforceApiService }]; } });
|
|
905
877
|
|
|
906
878
|
class FlowStateService {
|
|
907
879
|
constructor(flowConfiguration, flowInfoService, flowStateApiService, processorsApiService, salesTransactionApiService, salesTransactionService, toastService, customizationService) {
|
|
@@ -1290,17 +1262,17 @@ class FlowStateService {
|
|
|
1290
1262
|
this.trackedStatefulChangesMap.set(requestId, hasChanges);
|
|
1291
1263
|
}
|
|
1292
1264
|
}
|
|
1293
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: FlowStateService, deps: [{ token: FlowConfigurationService }, { token: FlowInfoService }, { token: i3.FlowStateApiService }, { token: i1.ConfigurationProcessorsApiService }, { token: i1.SalesTransactionApiService }, { token: SalesTransactionService }, { token: i6.ToastService }, { token: FLOW_CUSTOMIZATION, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1294
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: FlowStateService }); }
|
|
1295
1265
|
}
|
|
1296
|
-
i0.ɵɵ
|
|
1266
|
+
FlowStateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowStateService, deps: [{ token: FlowConfigurationService }, { token: FlowInfoService }, { token: i3.FlowStateApiService }, { token: i1.ConfigurationProcessorsApiService }, { token: i1.SalesTransactionApiService }, { token: SalesTransactionService }, { token: i6.ToastService }, { token: FLOW_CUSTOMIZATION, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1267
|
+
FlowStateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowStateService });
|
|
1268
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowStateService, decorators: [{
|
|
1297
1269
|
type: Injectable
|
|
1298
|
-
}], ctorParameters: ()
|
|
1270
|
+
}], ctorParameters: function () { return [{ type: FlowConfigurationService }, { type: FlowInfoService }, { type: i3.FlowStateApiService }, { type: i1.ConfigurationProcessorsApiService }, { type: i1.SalesTransactionApiService }, { type: SalesTransactionService }, { type: i6.ToastService }, { type: undefined, decorators: [{
|
|
1299
1271
|
type: Optional
|
|
1300
1272
|
}, {
|
|
1301
1273
|
type: Inject,
|
|
1302
1274
|
args: [FLOW_CUSTOMIZATION]
|
|
1303
|
-
}] }] });
|
|
1275
|
+
}] }]; } });
|
|
1304
1276
|
|
|
1305
1277
|
class FlowStateConfigurationService {
|
|
1306
1278
|
constructor(flowInfoService, flowStateService, configurationService, salesTransactionService, flowConfigurationService, pcmApiService) {
|
|
@@ -1399,12 +1371,12 @@ class FlowStateConfigurationService {
|
|
|
1399
1371
|
.fetchPCMByProductId(productId)
|
|
1400
1372
|
.pipe(tap(pcmProduct => (this.pcmCache[productId] = pcmProduct)));
|
|
1401
1373
|
}
|
|
1402
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: FlowStateConfigurationService, deps: [{ token: FlowInfoService }, { token: FlowStateService }, { token: ConfigurationService }, { token: SalesTransactionService }, { token: FlowConfigurationService }, { token: i1.PCMApiService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1403
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: FlowStateConfigurationService }); }
|
|
1404
1374
|
}
|
|
1405
|
-
i0.ɵɵ
|
|
1375
|
+
FlowStateConfigurationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowStateConfigurationService, deps: [{ token: FlowInfoService }, { token: FlowStateService }, { token: ConfigurationService }, { token: SalesTransactionService }, { token: FlowConfigurationService }, { token: i1.PCMApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1376
|
+
FlowStateConfigurationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowStateConfigurationService });
|
|
1377
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowStateConfigurationService, decorators: [{
|
|
1406
1378
|
type: Injectable
|
|
1407
|
-
}], ctorParameters: ()
|
|
1379
|
+
}], ctorParameters: function () { return [{ type: FlowInfoService }, { type: FlowStateService }, { type: ConfigurationService }, { type: SalesTransactionService }, { type: FlowConfigurationService }, { type: i1.PCMApiService }]; } });
|
|
1408
1380
|
|
|
1409
1381
|
class IntegrationState {
|
|
1410
1382
|
constructor() {
|
|
@@ -1432,10 +1404,10 @@ class IntegrationState {
|
|
|
1432
1404
|
reset() {
|
|
1433
1405
|
this.stateSubj$.next({});
|
|
1434
1406
|
}
|
|
1435
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: IntegrationState, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1436
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: IntegrationState }); }
|
|
1437
1407
|
}
|
|
1438
|
-
i0.ɵɵ
|
|
1408
|
+
IntegrationState.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IntegrationState, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1409
|
+
IntegrationState.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IntegrationState });
|
|
1410
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IntegrationState, decorators: [{
|
|
1439
1411
|
type: Injectable
|
|
1440
1412
|
}] });
|
|
1441
1413
|
|
|
@@ -1457,12 +1429,12 @@ class ProductImagesService {
|
|
|
1457
1429
|
.pipe(map(file => URL.createObjectURL(file)), catchError$1(() => of('')), tap(url => this.imagesMap$.next({ ...this.imagesMap$.value, [productId]: url })))
|
|
1458
1430
|
.subscribe();
|
|
1459
1431
|
}
|
|
1460
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: ProductImagesService, deps: [{ token: i1.ProductsAdminApiService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1461
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: ProductImagesService }); }
|
|
1462
1432
|
}
|
|
1463
|
-
i0.ɵɵ
|
|
1433
|
+
ProductImagesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductImagesService, deps: [{ token: i1.ProductsAdminApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1434
|
+
ProductImagesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductImagesService });
|
|
1435
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductImagesService, decorators: [{
|
|
1464
1436
|
type: Injectable
|
|
1465
|
-
}], ctorParameters: ()
|
|
1437
|
+
}], ctorParameters: function () { return [{ type: i1.ProductsAdminApiService }]; } });
|
|
1466
1438
|
|
|
1467
1439
|
class CatalogProductsService {
|
|
1468
1440
|
constructor() {
|
|
@@ -1478,10 +1450,10 @@ class CatalogProductsService {
|
|
|
1478
1450
|
setState(state) {
|
|
1479
1451
|
this.stateSubj$.next(state);
|
|
1480
1452
|
}
|
|
1481
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: CatalogProductsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1482
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: CatalogProductsService }); }
|
|
1483
1453
|
}
|
|
1484
|
-
i0.ɵɵ
|
|
1454
|
+
CatalogProductsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogProductsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1455
|
+
CatalogProductsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogProductsService });
|
|
1456
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogProductsService, decorators: [{
|
|
1485
1457
|
type: Injectable
|
|
1486
1458
|
}] });
|
|
1487
1459
|
|
|
@@ -1614,12 +1586,12 @@ class ConfigurationStateService {
|
|
|
1614
1586
|
return of({ id: '' });
|
|
1615
1587
|
}
|
|
1616
1588
|
const { standalone } = this.flowInfoService.flow.properties;
|
|
1617
|
-
const transactionContext = this.
|
|
1589
|
+
const transactionContext = this.salesTransactionService.state;
|
|
1618
1590
|
const configurationRoot = this.configurationService.root;
|
|
1619
1591
|
if (!transactionContext || !configurationRoot) {
|
|
1620
1592
|
return of({ id: '' });
|
|
1621
1593
|
}
|
|
1622
|
-
const stateItems =
|
|
1594
|
+
const stateItems = transactionContext.salesTransaction.salesTransactionItems;
|
|
1623
1595
|
const isNewTransactionItem = stateItems.every(ti => ti.id !== configurationRoot.id);
|
|
1624
1596
|
let salesTransactionItems;
|
|
1625
1597
|
if (isNewTransactionItem) {
|
|
@@ -1839,25 +1811,25 @@ class ConfigurationStateService {
|
|
|
1839
1811
|
return result;
|
|
1840
1812
|
}, { stateId: '', selectors: {} });
|
|
1841
1813
|
}
|
|
1842
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: ConfigurationStateService, deps: [{ token: ConfigurationRuntimeService }, { token: ConfigurationService }, { token: FlowStateService }, { token: FlowInfoService }, { token: FlowConfigurationService }, { token: i3.FlowStateApiService }, { token: SalesTransactionService }, { token: i1.SalesTransactionApiService }, { token: i6.ToastService }, { token: i1.PCMApiService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1843
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: ConfigurationStateService }); }
|
|
1844
1814
|
}
|
|
1845
|
-
i0.ɵɵ
|
|
1815
|
+
ConfigurationStateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationStateService, deps: [{ token: ConfigurationRuntimeService }, { token: ConfigurationService }, { token: FlowStateService }, { token: FlowInfoService }, { token: FlowConfigurationService }, { token: i3.FlowStateApiService }, { token: SalesTransactionService }, { token: i1.SalesTransactionApiService }, { token: i6.ToastService }, { token: i1.PCMApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1816
|
+
ConfigurationStateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationStateService });
|
|
1817
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationStateService, decorators: [{
|
|
1846
1818
|
type: Injectable
|
|
1847
|
-
}], ctorParameters: ()
|
|
1819
|
+
}], ctorParameters: function () { return [{ type: ConfigurationRuntimeService }, { type: ConfigurationService }, { type: FlowStateService }, { type: FlowInfoService }, { type: FlowConfigurationService }, { type: i3.FlowStateApiService }, { type: SalesTransactionService }, { type: i1.SalesTransactionApiService }, { type: i6.ToastService }, { type: i1.PCMApiService }]; } });
|
|
1848
1820
|
|
|
1849
1821
|
class ConfigurationModule {
|
|
1850
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: ConfigurationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1851
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.4", ngImport: i0, type: ConfigurationModule, imports: [ConfirmationDialogModule, ApiModule] }); }
|
|
1852
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: ConfigurationModule, providers: [
|
|
1853
|
-
ConfigurationService,
|
|
1854
|
-
ConfigurationStateService,
|
|
1855
|
-
ConfigurationRuntimeService,
|
|
1856
|
-
TestModeConfigurationService,
|
|
1857
|
-
GuidedSellingService,
|
|
1858
|
-
], imports: [ConfirmationDialogModule, ApiModule] }); }
|
|
1859
1822
|
}
|
|
1860
|
-
i0.ɵɵ
|
|
1823
|
+
ConfigurationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1824
|
+
ConfigurationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationModule, imports: [ConfirmationDialogModule, ApiModule] });
|
|
1825
|
+
ConfigurationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationModule, providers: [
|
|
1826
|
+
ConfigurationService,
|
|
1827
|
+
ConfigurationStateService,
|
|
1828
|
+
ConfigurationRuntimeService,
|
|
1829
|
+
TestModeConfigurationService,
|
|
1830
|
+
GuidedSellingService,
|
|
1831
|
+
], imports: [ConfirmationDialogModule, ApiModule] });
|
|
1832
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationModule, decorators: [{
|
|
1861
1833
|
type: NgModule,
|
|
1862
1834
|
args: [{
|
|
1863
1835
|
imports: [ConfirmationDialogModule, ApiModule],
|
|
@@ -1872,11 +1844,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImpor
|
|
|
1872
1844
|
}] });
|
|
1873
1845
|
|
|
1874
1846
|
class FlowConfigurationModule {
|
|
1875
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: FlowConfigurationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1876
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.4", ngImport: i0, type: FlowConfigurationModule, imports: [ApiModule] }); }
|
|
1877
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: FlowConfigurationModule, providers: [FlowConfigurationService], imports: [ApiModule] }); }
|
|
1878
1847
|
}
|
|
1879
|
-
i0.ɵɵ
|
|
1848
|
+
FlowConfigurationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowConfigurationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1849
|
+
FlowConfigurationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: FlowConfigurationModule, imports: [ApiModule] });
|
|
1850
|
+
FlowConfigurationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowConfigurationModule, providers: [FlowConfigurationService], imports: [ApiModule] });
|
|
1851
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowConfigurationModule, decorators: [{
|
|
1880
1852
|
type: NgModule,
|
|
1881
1853
|
args: [{
|
|
1882
1854
|
imports: [ApiModule],
|
|
@@ -1897,24 +1869,24 @@ const DEFAULT_FORMATTING_SETTINGS = {
|
|
|
1897
1869
|
actionCodeLabels: DEFAULT_ACTION_CODE_LABELS,
|
|
1898
1870
|
};
|
|
1899
1871
|
class SdkCoreModule {
|
|
1900
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: SdkCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1901
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.4", ngImport: i0, type: SdkCoreModule, imports: [ConfigurationModule, FlowConfigurationModule] }); }
|
|
1902
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: SdkCoreModule, providers: [
|
|
1903
|
-
FlowInfoService,
|
|
1904
|
-
ProductImagesService,
|
|
1905
|
-
IntegrationState,
|
|
1906
|
-
FlowStateService,
|
|
1907
|
-
FlowStateConfigurationService,
|
|
1908
|
-
RuntimeSettingsService,
|
|
1909
|
-
SalesTransactionService,
|
|
1910
|
-
CatalogProductsService,
|
|
1911
|
-
{
|
|
1912
|
-
provide: FORMATTING_SETTINGS_TOKEN,
|
|
1913
|
-
useExisting: RuntimeSettingsService,
|
|
1914
|
-
},
|
|
1915
|
-
], imports: [ConfigurationModule, FlowConfigurationModule] }); }
|
|
1916
1872
|
}
|
|
1917
|
-
i0.ɵɵ
|
|
1873
|
+
SdkCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SdkCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1874
|
+
SdkCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SdkCoreModule, imports: [ConfigurationModule, FlowConfigurationModule] });
|
|
1875
|
+
SdkCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SdkCoreModule, providers: [
|
|
1876
|
+
FlowInfoService,
|
|
1877
|
+
ProductImagesService,
|
|
1878
|
+
IntegrationState,
|
|
1879
|
+
FlowStateService,
|
|
1880
|
+
FlowStateConfigurationService,
|
|
1881
|
+
RuntimeSettingsService,
|
|
1882
|
+
SalesTransactionService,
|
|
1883
|
+
CatalogProductsService,
|
|
1884
|
+
{
|
|
1885
|
+
provide: FORMATTING_SETTINGS_TOKEN,
|
|
1886
|
+
useExisting: RuntimeSettingsService,
|
|
1887
|
+
},
|
|
1888
|
+
], imports: [ConfigurationModule, FlowConfigurationModule] });
|
|
1889
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SdkCoreModule, decorators: [{
|
|
1918
1890
|
type: NgModule,
|
|
1919
1891
|
args: [{
|
|
1920
1892
|
imports: [ConfigurationModule, FlowConfigurationModule],
|
|
@@ -1957,25 +1929,27 @@ class CalendarDirective {
|
|
|
1957
1929
|
}
|
|
1958
1930
|
}
|
|
1959
1931
|
}
|
|
1960
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: CalendarDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1961
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.1.4", type: CalendarDirective, isStandalone: true, selector: "[vlCalendar]", inputs: { vlCalendar: "vlCalendar" }, ngImport: i0 }); }
|
|
1962
1932
|
}
|
|
1963
|
-
i0.ɵɵ
|
|
1933
|
+
CalendarDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CalendarDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1934
|
+
CalendarDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: CalendarDirective, selector: "[vlCalendar]", inputs: { vlCalendar: "vlCalendar" }, ngImport: i0 });
|
|
1935
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CalendarDirective, decorators: [{
|
|
1964
1936
|
type: Directive,
|
|
1965
|
-
args: [{
|
|
1937
|
+
args: [{
|
|
1938
|
+
selector: '[vlCalendar]',
|
|
1939
|
+
}]
|
|
1966
1940
|
}], propDecorators: { vlCalendar: [{
|
|
1967
1941
|
type: Input
|
|
1968
1942
|
}] } });
|
|
1969
1943
|
|
|
1970
1944
|
class SdkDirectivesModule {
|
|
1971
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: SdkDirectivesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1972
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.4", ngImport: i0, type: SdkDirectivesModule, imports: [CalendarDirective], exports: [CalendarDirective] }); }
|
|
1973
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: SdkDirectivesModule }); }
|
|
1974
1945
|
}
|
|
1975
|
-
i0.ɵɵ
|
|
1946
|
+
SdkDirectivesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SdkDirectivesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1947
|
+
SdkDirectivesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SdkDirectivesModule, declarations: [CalendarDirective], exports: [CalendarDirective] });
|
|
1948
|
+
SdkDirectivesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SdkDirectivesModule });
|
|
1949
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SdkDirectivesModule, decorators: [{
|
|
1976
1950
|
type: NgModule,
|
|
1977
1951
|
args: [{
|
|
1978
|
-
|
|
1952
|
+
declarations: [CalendarDirective],
|
|
1979
1953
|
exports: [CalendarDirective],
|
|
1980
1954
|
}]
|
|
1981
1955
|
}] });
|
|
@@ -2012,12 +1986,14 @@ class DatePipe {
|
|
|
2012
1986
|
return new Date(date).toString();
|
|
2013
1987
|
}
|
|
2014
1988
|
}
|
|
2015
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: DatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2016
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.1.4", ngImport: i0, type: DatePipe, isStandalone: true, name: "vlDate" }); }
|
|
2017
1989
|
}
|
|
2018
|
-
i0.ɵɵ
|
|
1990
|
+
DatePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1991
|
+
DatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: DatePipe, name: "vlDate" });
|
|
1992
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DatePipe, decorators: [{
|
|
2019
1993
|
type: Pipe,
|
|
2020
|
-
args: [{
|
|
1994
|
+
args: [{
|
|
1995
|
+
name: 'vlDate',
|
|
1996
|
+
}]
|
|
2021
1997
|
}] });
|
|
2022
1998
|
|
|
2023
1999
|
class NumberPipe {
|
|
@@ -2032,12 +2008,14 @@ class NumberPipe {
|
|
|
2032
2008
|
transform(price) {
|
|
2033
2009
|
return formatNumber(price, this.formattingSettings?.thousandsSeparator, this.formattingSettings?.decimalSeparator, this.formattingSettings?.decimalsCount);
|
|
2034
2010
|
}
|
|
2035
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: NumberPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2036
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.1.4", ngImport: i0, type: NumberPipe, isStandalone: true, name: "vlNumber" }); }
|
|
2037
2011
|
}
|
|
2038
|
-
i0.ɵɵ
|
|
2012
|
+
NumberPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NumberPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2013
|
+
NumberPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: NumberPipe, name: "vlNumber" });
|
|
2014
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NumberPipe, decorators: [{
|
|
2039
2015
|
type: Pipe,
|
|
2040
|
-
args: [{
|
|
2016
|
+
args: [{
|
|
2017
|
+
name: 'vlNumber',
|
|
2018
|
+
}]
|
|
2041
2019
|
}] });
|
|
2042
2020
|
|
|
2043
2021
|
class PricePipe {
|
|
@@ -2055,12 +2033,14 @@ class PricePipe {
|
|
|
2055
2033
|
}
|
|
2056
2034
|
return `${this.formattingSettings?.currencySymbol || DEFAULT_CURRENCY_SYMBOL}${formatNumber(price, this.formattingSettings?.thousandsSeparator, this.formattingSettings?.decimalSeparator, this.formattingSettings?.decimalsCount)}`;
|
|
2057
2035
|
}
|
|
2058
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: PricePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2059
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.1.4", ngImport: i0, type: PricePipe, isStandalone: true, name: "vlPrice" }); }
|
|
2060
2036
|
}
|
|
2061
|
-
i0.ɵɵ
|
|
2037
|
+
PricePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PricePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2038
|
+
PricePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: PricePipe, name: "vlPrice" });
|
|
2039
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PricePipe, decorators: [{
|
|
2062
2040
|
type: Pipe,
|
|
2063
|
-
args: [{
|
|
2041
|
+
args: [{
|
|
2042
|
+
name: 'vlPrice',
|
|
2043
|
+
}]
|
|
2064
2044
|
}] });
|
|
2065
2045
|
|
|
2066
2046
|
class ActionCodePipe {
|
|
@@ -2070,23 +2050,25 @@ class ActionCodePipe {
|
|
|
2070
2050
|
transform(actionCode) {
|
|
2071
2051
|
return this.formattingSettings?.actionCodeLabels[actionCode] ?? actionCode;
|
|
2072
2052
|
}
|
|
2073
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: ActionCodePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2074
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.1.4", ngImport: i0, type: ActionCodePipe, isStandalone: true, name: "vlActionCode" }); }
|
|
2075
2053
|
}
|
|
2076
|
-
i0.ɵɵ
|
|
2054
|
+
ActionCodePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ActionCodePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2055
|
+
ActionCodePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ActionCodePipe, name: "vlActionCode" });
|
|
2056
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ActionCodePipe, decorators: [{
|
|
2077
2057
|
type: Pipe,
|
|
2078
|
-
args: [{
|
|
2058
|
+
args: [{
|
|
2059
|
+
name: 'vlActionCode',
|
|
2060
|
+
}]
|
|
2079
2061
|
}] });
|
|
2080
2062
|
|
|
2081
2063
|
class SdkPipesModule {
|
|
2082
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: SdkPipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2083
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.4", ngImport: i0, type: SdkPipesModule, imports: [NumberPipe, PricePipe, DatePipe, ActionCodePipe], exports: [NumberPipe, PricePipe, DatePipe, ActionCodePipe] }); }
|
|
2084
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: SdkPipesModule }); }
|
|
2085
2064
|
}
|
|
2086
|
-
i0.ɵɵ
|
|
2065
|
+
SdkPipesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SdkPipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2066
|
+
SdkPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SdkPipesModule, declarations: [NumberPipe, PricePipe, DatePipe, ActionCodePipe], exports: [NumberPipe, PricePipe, DatePipe, ActionCodePipe] });
|
|
2067
|
+
SdkPipesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SdkPipesModule });
|
|
2068
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SdkPipesModule, decorators: [{
|
|
2087
2069
|
type: NgModule,
|
|
2088
2070
|
args: [{
|
|
2089
|
-
|
|
2071
|
+
declarations: [NumberPipe, PricePipe, DatePipe, ActionCodePipe],
|
|
2090
2072
|
exports: [NumberPipe, PricePipe, DatePipe, ActionCodePipe],
|
|
2091
2073
|
}]
|
|
2092
2074
|
}] });
|