@veloceapps/sdk 5.0.14-GOOGLE → 5.0.15-1
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/bundles/{veloce-sdk-cms.umd.js → veloceapps-sdk-cms.umd.js} +149 -81
- package/bundles/veloceapps-sdk-cms.umd.js.map +1 -0
- package/bundles/{veloce-sdk-core.umd.js → veloceapps-sdk-core.umd.js} +765 -543
- package/bundles/veloceapps-sdk-core.umd.js.map +1 -0
- package/bundles/{veloce-sdk-runtime.umd.js → veloceapps-sdk-runtime.umd.js} +213 -146
- package/bundles/veloceapps-sdk-runtime.umd.js.map +1 -0
- package/bundles/{veloce-sdk.umd.js → veloceapps-sdk.umd.js} +225 -154
- package/bundles/veloceapps-sdk.umd.js.map +1 -0
- package/cms/cms.default.d.ts +1 -1
- package/cms/components/element-renderer/element-renderer.component.d.ts +1 -1
- package/cms/components/preview/preview.component.d.ts +1 -1
- package/cms/components/preview/preview.module.d.ts +1 -1
- package/cms/injection-tokens.d.ts +1 -1
- package/cms/launcher.module.d.ts +3 -3
- package/cms/modules/federated/federated.module.d.ts +1 -1
- package/cms/package.json +7 -7
- package/cms/services/launcher.service.d.ts +1 -1
- package/cms/types/configuration.types.d.ts +1 -1
- package/cms/utils/element.utils.d.ts +1 -1
- package/cms/utils/elements-resolver.d.ts +1 -1
- package/{core/veloce-sdk-core.d.ts → cms/veloceapps-sdk-cms.d.ts} +1 -1
- package/cms/vendor-map.d.ts +86 -82
- package/core/modules/configuration/configuration.module.d.ts +1 -1
- package/core/modules/configuration/helpers.d.ts +1 -1
- package/core/modules/configuration/services/configuration-runtime.service.d.ts +3 -3
- package/core/modules/configuration/services/configuration.service.d.ts +4 -3
- package/core/modules/configuration/services/runtime-context.service.d.ts +1 -1
- package/core/modules/configuration/types/configuration-runtime.types.d.ts +1 -1
- package/core/modules/flow-configuration/services/flow-configuration.service.d.ts +5 -4
- package/core/modules/flow-configuration/services/flow-update.service.d.ts +1 -1
- package/core/package.json +7 -7
- package/core/services/context.service.d.ts +2 -2
- package/core/services/index.d.ts +1 -0
- package/core/services/metric-calculation/metric-calculation.service.d.ts +21 -0
- package/core/services/metric-calculation/metric-calculation.types.d.ts +1 -0
- package/core/services/metric-calculation/metric-calculation.utils.d.ts +5 -0
- package/core/services/product-images.service.d.ts +1 -1
- package/core/services/quote-draft.service.d.ts +5 -3
- package/core/types/quote-states.types.d.ts +1 -1
- package/core/types/runtime.types.d.ts +1 -1
- package/core/utils/line-item.utils.d.ts +2 -1
- package/core/utils/line-item.worker.d.ts +1 -1
- package/{runtime/veloce-sdk-runtime.d.ts → core/veloceapps-sdk-core.d.ts} +1 -1
- package/esm2015/cms/cms.default.js +1 -1
- package/esm2015/cms/components/element-children/element-children.component.js +3 -3
- package/esm2015/cms/components/element-children/element-children.module.js +4 -4
- package/esm2015/cms/components/element-renderer/element-renderer.component.js +6 -6
- package/esm2015/cms/components/element-renderer/element-renderer.module.js +4 -4
- package/esm2015/cms/components/plugin.component.js +3 -3
- package/esm2015/cms/components/preview/preview.component.js +6 -6
- package/esm2015/cms/components/preview/preview.module.js +6 -6
- package/esm2015/cms/directives/custom-template.directive.js +3 -3
- package/esm2015/cms/injection-tokens.js +1 -1
- package/esm2015/cms/launcher.module.js +8 -8
- package/esm2015/cms/modules/federated/federated.component.js +4 -4
- package/esm2015/cms/modules/federated/federated.module.js +6 -6
- package/esm2015/cms/plugins/configuration.plugin.js +5 -5
- package/esm2015/cms/plugins/io.plugin.js +3 -3
- package/esm2015/cms/plugins/script.plugin.js +5 -5
- package/esm2015/cms/services/dynamic-module.service.js +3 -3
- package/esm2015/cms/services/element-context.service.js +3 -3
- package/esm2015/cms/services/integration.state.js +3 -3
- package/esm2015/cms/services/io-provider.service.js +3 -3
- package/esm2015/cms/services/launcher.service.js +6 -5
- package/esm2015/cms/services/templates.service.js +3 -3
- package/esm2015/cms/types/configuration.types.js +1 -1
- package/esm2015/cms/utils/element.utils.js +1 -1
- package/esm2015/cms/utils/elements-resolver.js +1 -1
- package/esm2015/cms/veloceapps-sdk-cms.js +5 -0
- package/esm2015/cms/vendor-map.js +9 -12
- package/esm2015/core/core.module.js +7 -7
- package/esm2015/core/modules/configuration/configuration.module.js +7 -7
- package/esm2015/core/modules/configuration/helpers.js +2 -2
- package/esm2015/core/modules/configuration/services/configuration-runtime.service.js +7 -7
- package/esm2015/core/modules/configuration/services/configuration.service.js +13 -12
- package/esm2015/core/modules/configuration/services/runtime-context.service.js +6 -6
- package/esm2015/core/modules/configuration/types/configuration-runtime.types.js +1 -1
- package/esm2015/core/modules/flow-configuration/flow-configuration.module.js +6 -6
- package/esm2015/core/modules/flow-configuration/services/flow-configuration.service.js +18 -10
- package/esm2015/core/modules/flow-configuration/services/flow-update.service.js +5 -5
- package/esm2015/core/services/context.service.js +6 -6
- package/esm2015/core/services/index.js +2 -1
- package/esm2015/core/services/metric-calculation/metric-calculation.service.js +74 -0
- package/esm2015/core/services/metric-calculation/metric-calculation.types.js +2 -0
- package/esm2015/core/services/metric-calculation/metric-calculation.utils.js +42 -0
- package/esm2015/core/services/product-images.service.js +5 -5
- package/esm2015/core/services/quote-draft.service.js +20 -10
- package/esm2015/core/types/quote-states.types.js +1 -1
- package/esm2015/core/types/runtime.types.js +1 -1
- package/esm2015/core/utils/line-item.utils.js +14 -3
- package/esm2015/core/utils/line-item.worker.js +1 -1
- package/esm2015/core/veloceapps-sdk-core.js +5 -0
- package/esm2015/runtime/components/component-preview/component-preview.component.js +7 -7
- package/esm2015/runtime/components/section-renderer/section-renderer.component.js +4 -4
- package/esm2015/runtime/components/ui-runtime/runtime.component.js +8 -8
- package/esm2015/runtime/components/ui-runtime-preview/runtime-preview.component.js +8 -8
- package/esm2015/runtime/execution/components/children-placeholder/children-placeholder.component.js +8 -8
- package/esm2015/runtime/execution/components/context-provider/context-provider.component.js +5 -5
- package/esm2015/runtime/execution/components/execution-section-renderer/execution-section-renderer.component.js +4 -4
- package/esm2015/runtime/execution/components/federated/federated.component.js +4 -4
- package/esm2015/runtime/execution/components/velo-attribute/velo-attribute.component.js +3 -3
- package/esm2015/runtime/execution/components/velo-multiselect/velo-multiselect.component.js +3 -3
- package/esm2015/runtime/execution/components/velo-port-checkbox/velo-port-checkbox.component.js +4 -4
- package/esm2015/runtime/execution/components/velo-port-dropdown/velo-port-dropdown.component.js +6 -6
- package/esm2015/runtime/execution/components/velo-port-radio/velo-port-radio.component.js +4 -4
- package/esm2015/runtime/execution/components/velo-type/velo-type.component.js +5 -5
- package/esm2015/runtime/execution/directives/section-script.directive.js +6 -6
- package/esm2015/runtime/execution/directives/sf-query.directive.js +5 -5
- package/esm2015/runtime/execution/directives/velo-attribute.directive.js +5 -5
- package/esm2015/runtime/execution/directives/velo-port.directive.js +21 -21
- package/esm2015/runtime/execution/directives/vl-approval.directive.js +5 -5
- package/esm2015/runtime/execution/directives/vl-document-attachments.directive.js +5 -5
- package/esm2015/runtime/execution/directives/vl-document-templates.directive.js +5 -5
- package/esm2015/runtime/execution/directives/vl-quote.directive.js +6 -6
- package/esm2015/runtime/execution/directives/vl-ramp.directive.js +6 -6
- package/esm2015/runtime/execution/runtime-execution.module.js +10 -10
- package/esm2015/runtime/runtime.module.js +10 -10
- package/esm2015/runtime/services/cart.service.js +6 -6
- package/esm2015/runtime/services/collapsible-state.service.js +3 -3
- package/esm2015/runtime/services/configuration.service.js +9 -9
- package/esm2015/runtime/services/current-state.service.js +4 -4
- package/esm2015/runtime/services/form-scope.service.js +3 -3
- package/esm2015/runtime/services/product-model-cache.service.js +5 -5
- package/esm2015/runtime/services/runtime-context.service.js +8 -8
- package/esm2015/runtime/services/runtime-form.service.js +5 -5
- package/esm2015/runtime/services/runtime.service.js +6 -6
- package/esm2015/runtime/services/section-helper.service.js +5 -5
- package/esm2015/runtime/services/section-scope.service.js +4 -4
- package/esm2015/runtime/services/section-store.service.js +4 -4
- package/esm2015/runtime/services/section.service.js +9 -9
- package/esm2015/runtime/types/bound-data.types.js +1 -1
- package/esm2015/runtime/types/runtime.types.js +1 -1
- package/esm2015/runtime/types/script-registry.types.js +2 -2
- package/esm2015/runtime/utils/line-item.util.js +2 -2
- package/esm2015/runtime/utils/section.utils.js +2 -2
- package/esm2015/runtime/utils/sections-binder.helper.js +2 -2
- package/esm2015/runtime/veloceapps-sdk-runtime.js +5 -0
- package/esm2015/src/components/dialog/dialog.component.js +3 -3
- package/esm2015/src/components/dialog/dialog.module.js +4 -4
- package/esm2015/src/components/doc-gen/doc-gen.component.js +11 -11
- package/esm2015/src/components/doc-gen/doc-gen.module.js +6 -6
- package/esm2015/src/components/header/cart-overlay/cart-preview.component.js +6 -6
- package/esm2015/src/components/header/cart-overlay/cart-preview.module.js +6 -6
- package/esm2015/src/components/header/header.component.js +10 -10
- package/esm2015/src/components/header/header.module.js +6 -6
- package/esm2015/src/components/header/metrics/metrics.component.js +20 -16
- package/esm2015/src/components/header/metrics/metrics.definitions.js +6 -6
- package/esm2015/src/components/header/metrics/metrics.module.js +6 -6
- package/esm2015/src/flow-routing.module.js +4 -4
- package/esm2015/src/flow.component.js +7 -7
- package/esm2015/src/flow.module.js +9 -9
- package/esm2015/src/guards/context.guard.js +6 -6
- package/esm2015/src/guards/product-unload.guard.js +5 -5
- package/esm2015/src/guards/root.guard.js +3 -3
- package/esm2015/src/pages/catalog/catalog.component.js +10 -10
- package/esm2015/src/pages/catalog/catalog.module.js +7 -7
- package/esm2015/src/pages/debug/debug.component.js +6 -6
- package/esm2015/src/pages/debug/debug.module.js +4 -4
- package/esm2015/src/pages/empty-account/empty-account.component.js +4 -4
- package/esm2015/src/pages/empty-account/empty-account.module.js +7 -7
- package/esm2015/src/pages/legacy-product/legacy-product.component.js +9 -9
- package/esm2015/src/pages/legacy-product/legacy-product.module.js +6 -6
- package/esm2015/src/pages/product/product.component.js +7 -7
- package/esm2015/src/pages/product/product.module.js +7 -7
- package/esm2015/src/pages/record-not-found/record-not-found.component.js +3 -3
- package/esm2015/src/pages/record-not-found/record-not-found.module.js +4 -4
- package/esm2015/src/pages/remote/remote.component.js +10 -10
- package/esm2015/src/pages/remote/remote.module.js +7 -7
- package/esm2015/src/pages/remote/remote.types.js +1 -1
- package/esm2015/src/pages/shopping-cart/shopping-cart.component.js +10 -10
- package/esm2015/src/pages/shopping-cart/shopping-cart.module.js +7 -7
- package/esm2015/src/resolvers/flow.resolver.js +6 -6
- package/esm2015/src/resolvers/quote.resolver.js +14 -14
- package/esm2015/src/services/doc-gen.service.js +6 -6
- package/esm2015/src/services/flow-dialog.service.js +5 -5
- package/esm2015/src/services/flow-router.service.js +6 -6
- package/esm2015/src/services/flow.service.js +7 -7
- package/esm2015/src/types/context-route.types.js +1 -1
- package/esm2015/src/types/flow-customization.types.js +1 -1
- package/esm2015/src/utils/flow.utils.js +2 -2
- package/esm2015/veloceapps-sdk.js +5 -0
- package/fesm2015/{veloce-sdk-cms.js → veloceapps-sdk-cms.js} +77 -79
- package/fesm2015/veloceapps-sdk-cms.js.map +1 -0
- package/fesm2015/{veloce-sdk-core.js → veloceapps-sdk-core.js} +420 -284
- package/fesm2015/veloceapps-sdk-core.js.map +1 -0
- package/fesm2015/{veloce-sdk-runtime.js → veloceapps-sdk-runtime.js} +148 -148
- package/fesm2015/veloceapps-sdk-runtime.js.map +1 -0
- package/fesm2015/{veloce-sdk.js → veloceapps-sdk.js} +163 -159
- package/fesm2015/veloceapps-sdk.js.map +1 -0
- package/package.json +14 -13
- package/runtime/components/component-preview/component-preview.component.d.ts +1 -1
- package/runtime/components/section-renderer/section-renderer.component.d.ts +1 -1
- package/runtime/components/ui-runtime/runtime.component.d.ts +2 -2
- package/runtime/components/ui-runtime-preview/runtime-preview.component.d.ts +3 -3
- package/runtime/execution/components/children-placeholder/children-placeholder.component.d.ts +1 -1
- package/runtime/execution/components/context-provider/context-provider.component.d.ts +2 -2
- package/runtime/execution/components/execution-section-renderer/execution-section-renderer.component.d.ts +1 -1
- package/runtime/execution/components/federated/federated.component.d.ts +1 -1
- package/runtime/execution/components/velo-port-checkbox/velo-port-checkbox.component.d.ts +1 -1
- package/runtime/execution/components/velo-port-dropdown/velo-port-dropdown.component.d.ts +1 -1
- package/runtime/execution/components/velo-port-radio/velo-port-radio.component.d.ts +1 -1
- package/runtime/execution/components/velo-type/velo-type.component.d.ts +1 -1
- package/runtime/execution/directives/section-script.directive.d.ts +1 -1
- package/runtime/execution/directives/sf-query.directive.d.ts +2 -2
- package/runtime/execution/directives/velo-attribute.directive.d.ts +1 -1
- package/runtime/execution/directives/velo-port.directive.d.ts +1 -1
- package/runtime/execution/directives/vl-approval.directive.d.ts +2 -2
- package/runtime/execution/directives/vl-document-attachments.directive.d.ts +2 -2
- package/runtime/execution/directives/vl-document-templates.directive.d.ts +2 -2
- package/runtime/execution/directives/vl-quote.directive.d.ts +2 -2
- package/runtime/execution/directives/vl-ramp.directive.d.ts +3 -3
- package/runtime/execution/runtime-execution.module.d.ts +5 -5
- package/runtime/package.json +7 -7
- package/runtime/runtime.module.d.ts +5 -5
- package/runtime/services/cart.service.d.ts +3 -3
- package/runtime/services/configuration.service.d.ts +3 -3
- package/runtime/services/current-state.service.d.ts +1 -1
- package/runtime/services/product-model-cache.service.d.ts +2 -2
- package/runtime/services/runtime-context.service.d.ts +2 -2
- package/runtime/services/runtime-form.service.d.ts +1 -1
- package/runtime/services/runtime.service.d.ts +2 -2
- package/runtime/services/section-helper.service.d.ts +1 -1
- package/runtime/services/section-scope.service.d.ts +1 -1
- package/runtime/services/section-store.service.d.ts +1 -1
- package/runtime/services/section.service.d.ts +1 -1
- package/runtime/types/bound-data.types.d.ts +1 -1
- package/runtime/types/runtime.types.d.ts +2 -2
- package/runtime/utils/line-item.util.d.ts +1 -1
- package/runtime/utils/section.utils.d.ts +1 -1
- package/runtime/utils/sections-binder.helper.d.ts +1 -1
- package/{veloce-sdk.d.ts → runtime/veloceapps-sdk-runtime.d.ts} +1 -1
- package/src/components/doc-gen/doc-gen.component.d.ts +3 -3
- package/src/components/doc-gen/doc-gen.module.d.ts +1 -1
- package/src/components/header/cart-overlay/cart-preview.component.d.ts +1 -1
- package/src/components/header/cart-overlay/cart-preview.module.d.ts +1 -1
- package/src/components/header/header.component.d.ts +4 -4
- package/src/components/header/header.module.d.ts +1 -1
- package/src/components/header/metrics/metrics.component.d.ts +5 -4
- package/src/components/header/metrics/metrics.definitions.d.ts +1 -1
- package/src/components/header/metrics/metrics.module.d.ts +1 -1
- package/src/flow.component.d.ts +2 -2
- package/src/flow.module.d.ts +4 -4
- package/src/guards/context.guard.d.ts +1 -1
- package/src/guards/product-unload.guard.d.ts +1 -1
- package/src/pages/catalog/catalog.component.d.ts +3 -3
- package/src/pages/catalog/catalog.module.d.ts +2 -2
- package/src/pages/debug/debug.component.d.ts +3 -3
- package/src/pages/empty-account/empty-account.module.d.ts +2 -2
- package/src/pages/legacy-product/legacy-product.component.d.ts +4 -4
- package/src/pages/legacy-product/legacy-product.module.d.ts +1 -1
- package/src/pages/product/product.component.d.ts +1 -1
- package/src/pages/product/product.module.d.ts +2 -2
- package/src/pages/remote/remote.component.d.ts +3 -3
- package/src/pages/remote/remote.module.d.ts +2 -2
- package/src/pages/remote/remote.types.d.ts +1 -1
- package/src/pages/shopping-cart/shopping-cart.component.d.ts +3 -3
- package/src/pages/shopping-cart/shopping-cart.module.d.ts +2 -2
- package/src/resolvers/flow.resolver.d.ts +2 -2
- package/src/resolvers/quote.resolver.d.ts +1 -1
- package/src/services/doc-gen.service.d.ts +1 -1
- package/src/services/flow-dialog.service.d.ts +1 -1
- package/src/services/flow-router.service.d.ts +1 -1
- package/src/services/flow.service.d.ts +2 -2
- package/src/types/context-route.types.d.ts +1 -1
- package/src/types/flow-customization.types.d.ts +2 -2
- package/src/utils/flow.utils.d.ts +1 -1
- package/{cms/veloce-sdk-cms.d.ts → veloceapps-sdk.d.ts} +1 -1
- package/bundles/veloce-sdk-cms.umd.js.map +0 -1
- package/bundles/veloce-sdk-core.umd.js.map +0 -1
- package/bundles/veloce-sdk-runtime.umd.js.map +0 -1
- package/bundles/veloce-sdk.umd.js.map +0 -1
- package/esm2015/cms/veloce-sdk-cms.js +0 -5
- package/esm2015/core/veloce-sdk-core.js +0 -5
- package/esm2015/runtime/veloce-sdk-runtime.js +0 -5
- package/esm2015/veloce-sdk.js +0 -5
- package/fesm2015/veloce-sdk-cms.js.map +0 -1
- package/fesm2015/veloce-sdk-core.js.map +0 -1
- package/fesm2015/veloce-sdk-runtime.js.map +0 -1
- package/fesm2015/veloce-sdk.js.map +0 -1
package/cms/cms.default.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ChangeDetectorRef, ElementRef, Injector, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
|
2
|
-
import { ConfigurationService } from '@
|
2
|
+
import { ConfigurationService } from '@veloceapps/sdk/core';
|
3
3
|
import { DynamicModuleService } from '../../services/dynamic-module.service';
|
4
4
|
import { ElementContextService } from '../../services/element-context.service';
|
5
5
|
import { IOProviderService } from '../../services/io-provider.service';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
2
|
-
import { ConfigurationRuntimeService, ConfigurationService, UIDefinition } from '@
|
2
|
+
import { ConfigurationRuntimeService, ConfigurationService, UIDefinition } from '@veloceapps/sdk/core';
|
3
3
|
import { MessageService } from 'primeng/api';
|
4
4
|
import { BehaviorSubject } from 'rxjs';
|
5
5
|
import { IntegrationState } from '../../services';
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
2
|
import * as i1 from "./preview.component";
|
3
3
|
import * as i2 from "@angular/common";
|
4
|
-
import * as i3 from "@
|
4
|
+
import * as i3 from "@veloceapps/components";
|
5
5
|
import * as i4 from "../element-renderer/element-renderer.module";
|
6
6
|
import * as i5 from "../element-children/element-children.module";
|
7
7
|
export declare class PreviewModule {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
2
|
-
import { UIDefinitionMetadata } from '@
|
2
|
+
import { UIDefinitionMetadata } from '@veloceapps/sdk/core';
|
3
3
|
import { Dictionary } from 'lodash';
|
4
4
|
import { Plugin } from './engine/models/plugin';
|
5
5
|
import { ElementConfig, ElementMetadata } from './types/common.types';
|
package/cms/launcher.module.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
2
|
import * as i1 from "@angular/common";
|
3
|
-
import * as i2 from "@
|
4
|
-
import * as i3 from "@
|
5
|
-
import * as i4 from "@
|
3
|
+
import * as i2 from "@veloceapps/core";
|
4
|
+
import * as i3 from "@veloceapps/api";
|
5
|
+
import * as i4 from "@veloceapps/sdk/core";
|
6
6
|
export declare class LauncherModule {
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<LauncherModule, never>;
|
8
8
|
static ɵmod: i0.ɵɵNgModuleDeclaration<LauncherModule, never, [typeof i1.CommonModule, typeof i2.CoreModule, typeof i3.ApiModule, typeof i4.SdkCoreModule], never>;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
2
|
import * as i1 from "./federated.component";
|
3
3
|
import * as i2 from "@angular/common";
|
4
|
-
import * as i3 from "@
|
4
|
+
import * as i3 from "@veloceapps/components";
|
5
5
|
export declare class FederatedModule {
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<FederatedModule, never>;
|
7
7
|
static ɵmod: i0.ɵɵNgModuleDeclaration<FederatedModule, [typeof i1.FederatedComponent], [typeof i2.CommonModule, typeof i3.LoaderModule], [typeof i1.FederatedComponent]>;
|
package/cms/package.json
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
{
|
2
|
-
"name": "@
|
2
|
+
"name": "@veloceapps/sdk/cms",
|
3
3
|
"sideEffects": false,
|
4
|
-
"main": "../bundles/
|
5
|
-
"module": "../fesm2015/
|
6
|
-
"es2015": "../fesm2015/
|
7
|
-
"esm2015": "../esm2015/cms/
|
8
|
-
"fesm2015": "../fesm2015/
|
9
|
-
"typings": "
|
4
|
+
"main": "../bundles/veloceapps-sdk-cms.umd.js",
|
5
|
+
"module": "../fesm2015/veloceapps-sdk-cms.js",
|
6
|
+
"es2015": "../fesm2015/veloceapps-sdk-cms.js",
|
7
|
+
"esm2015": "../esm2015/cms/veloceapps-sdk-cms.js",
|
8
|
+
"fesm2015": "../fesm2015/veloceapps-sdk-cms.js",
|
9
|
+
"typings": "veloceapps-sdk-cms.d.ts"
|
10
10
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Compiler } from '@angular/core';
|
2
|
-
import { UIDefinitionMetadata } from '@
|
2
|
+
import { UIDefinitionMetadata } from '@veloceapps/sdk/core';
|
3
3
|
import { Observable } from 'rxjs';
|
4
4
|
import { CompilationResult, ElementMetadata } from '../types';
|
5
5
|
import { DynamicModuleService } from './dynamic-module.service';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { UIElement } from '@
|
1
|
+
import { UIElement } from '@veloceapps/sdk/core';
|
2
2
|
import { ElementConfig, ElementDefaultMetadata, ElementMetadata, ELEMENT_TYPE } from '../types';
|
3
3
|
export declare class UiBuildError extends Error {
|
4
4
|
affectedMetadata: ElementMetadata;
|
package/cms/vendor-map.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as angularCore from '@angular/core';
|
2
2
|
import * as angularForms from '@angular/forms';
|
3
|
-
import { CatalogApiService, DeltaApiService, DocumentAttachmentApiService, DocumentTemplatesApiService, PicklistsApiService, PriceApiService, QuoteApiService, RampApiService, SalesforceApiService } from '@
|
4
|
-
import { ConfigurationService, FlowConfigurationService, LineItemWorker, ProductImagesService, QuoteDraftService } from '@
|
3
|
+
import { CatalogApiService, DeltaApiService, DocumentAttachmentApiService, DocumentTemplatesApiService, PicklistsApiService, PriceApiService, QuoteApiService, RampApiService, SalesforceApiService } from '@veloceapps/api';
|
4
|
+
import { ConfigurationService, FlowConfigurationService, LineItemWorker, ProductImagesService, QuoteDraftService } from '@veloceapps/sdk/core';
|
5
5
|
import * as lodash from 'lodash';
|
6
6
|
import * as rxjs from 'rxjs';
|
7
7
|
import * as rxjsOperators from 'rxjs/operators';
|
@@ -9,74 +9,6 @@ import * as cmsActions from './cms.actions';
|
|
9
9
|
import { IntegrationState } from './services/integration.state';
|
10
10
|
import { TemplatesService } from './services/templates.service';
|
11
11
|
export declare const vendorMap: {
|
12
|
-
'@veloce/sdk/core': {
|
13
|
-
findLineItem: (id: string, lineItems: import("@veloce/core").LineItem[]) => import("@veloce/core").LineItem | undefined;
|
14
|
-
findLineItemWithComparator: (lineItems: import("@veloce/core").LineItem[], comparator: (li: import("@veloce/core").LineItem) => boolean) => import("@veloce/core").LineItem | undefined;
|
15
|
-
insertLineItem: (lineItem: import("@veloce/core").LineItem, parentId: string, toInsert: import("@veloce/core").LineItem) => import("@veloce/core").LineItem;
|
16
|
-
removeLineItem: (lineItem: import("@veloce/core").LineItem, idToRemove: string) => import("@veloce/core").LineItem;
|
17
|
-
replaceLineItem: (lineItem: import("@veloce/core").LineItem, replaceTo: import("@veloce/core").LineItem) => import("@veloce/core").LineItem;
|
18
|
-
mapAttributes: (attributes: import("@veloce/core").Attribute[]) => lodash.Dictionary<any>;
|
19
|
-
getAttributes: (attributes: import("@veloce/core").Attribute[], names?: string[] | undefined) => import("@veloce/core").Attribute[];
|
20
|
-
upsertAttributes: (originalAttributes: import("@veloce/core").Attribute[], attributesToUpsert: {
|
21
|
-
name: string;
|
22
|
-
value: any;
|
23
|
-
}[]) => import("@veloce/core").Attribute[];
|
24
|
-
patchAttributes: (rootLineItem: import("@veloce/core").LineItem, id: string, attrs: {
|
25
|
-
name: string;
|
26
|
-
value: any;
|
27
|
-
}[]) => import("@veloce/core").LineItem;
|
28
|
-
getAttributeValue: (attributes: import("@veloce/core").Attribute[], name: string) => any;
|
29
|
-
generateLineItem: (port: string, type: string, parentId: string, attributes?: {
|
30
|
-
name: string;
|
31
|
-
value: any;
|
32
|
-
}[] | undefined, lineItems?: import("@veloce/core").LineItem[] | undefined) => import("@veloce/core").LineItem;
|
33
|
-
getRecommendedPrices: (portDomain: import("@veloce/core").PortDomain, type: string) => {
|
34
|
-
net: number;
|
35
|
-
list: number;
|
36
|
-
};
|
37
|
-
ConfigurationService: typeof ConfigurationService;
|
38
|
-
QuoteDraftService: typeof QuoteDraftService;
|
39
|
-
FlowConfigurationService: typeof FlowConfigurationService;
|
40
|
-
LineItemWorker: typeof LineItemWorker;
|
41
|
-
ProductImagesService: typeof ProductImagesService;
|
42
|
-
};
|
43
|
-
'@veloce/sdk/cms': {
|
44
|
-
TemplatesService: typeof TemplatesService;
|
45
|
-
IntegrationState: typeof IntegrationState;
|
46
|
-
FlowAction: typeof cmsActions.FlowAction;
|
47
|
-
ConfigureProductAction: ({ lineItemId, productId, }: {
|
48
|
-
lineItemId?: string | undefined;
|
49
|
-
productId?: string | undefined;
|
50
|
-
}) => import("@veloce/sdk/cms").IntegrationAction<any>;
|
51
|
-
NavigateBackAction: () => import("@veloce/sdk/cms").IntegrationAction<any>;
|
52
|
-
NavigateToCatalogAction: () => import("@veloce/sdk/cms").IntegrationAction<any>;
|
53
|
-
ApplyProductConfigurationAction: () => import("@veloce/sdk/cms").IntegrationAction<any>;
|
54
|
-
OpenDocGenAction: () => import("@veloce/sdk/cms").IntegrationAction<any>;
|
55
|
-
CloseDocGenAction: () => import("@veloce/sdk/cms").IntegrationAction<any>;
|
56
|
-
RemoteApplyAction: () => import("@veloce/sdk/cms").IntegrationAction<any>;
|
57
|
-
RemoteCancelAction: () => import("@veloce/sdk/cms").IntegrationAction<any>;
|
58
|
-
SwitchObjectAction: (payload: {
|
59
|
-
id: string;
|
60
|
-
}) => import("@veloce/sdk/cms").IntegrationAction<any>;
|
61
|
-
SetDefaultMetrics: (metrics: import("@veloce/sdk/cms").Metric[]) => import("@veloce/sdk/cms").IntegrationAction<any>;
|
62
|
-
DEFAULT_PLUGINS_TOKEN: angularCore.InjectionToken<typeof import("./engine/models/plugin").Plugin[]>;
|
63
|
-
UI_DEFINITION_METADATA: angularCore.InjectionToken<import("@veloce/sdk/core").UIDefinitionMetadata>;
|
64
|
-
ELEMENT_METADATA: angularCore.InjectionToken<import("@veloce/sdk/cms").ElementMetadata>;
|
65
|
-
SHARED_ELEMENT_METADATA: angularCore.InjectionToken<import("@veloce/sdk/cms").ElementMetadata>;
|
66
|
-
ELEMENT_CONFIG: angularCore.InjectionToken<import("@veloce/sdk/cms").ElementConfig>;
|
67
|
-
VENDOR_MAP: angularCore.InjectionToken<lodash.Dictionary<any>>;
|
68
|
-
};
|
69
|
-
'@veloce/api': {
|
70
|
-
SalesforceApiService: typeof SalesforceApiService;
|
71
|
-
QuoteApiService: typeof QuoteApiService;
|
72
|
-
DocumentTemplatesApiService: typeof DocumentTemplatesApiService;
|
73
|
-
DocumentAttachmentApiService: typeof DocumentAttachmentApiService;
|
74
|
-
RampApiService: typeof RampApiService;
|
75
|
-
CatalogApiService: typeof CatalogApiService;
|
76
|
-
DeltaApiService: typeof DeltaApiService;
|
77
|
-
PicklistsApiService: typeof PicklistsApiService;
|
78
|
-
PriceApiService: typeof PriceApiService;
|
79
|
-
};
|
80
12
|
'@angular/core': typeof angularCore;
|
81
13
|
'@angular/forms': typeof angularForms;
|
82
14
|
rxjs: typeof rxjs;
|
@@ -86,7 +18,7 @@ export declare const vendorMap: {
|
|
86
18
|
VERSION: string;
|
87
19
|
templateSettings: lodash.TemplateSettings;
|
88
20
|
chunk<T>(array: lodash.List<T> | null | undefined, size?: number | undefined): T[][];
|
89
|
-
compact<T_1>(array: lodash.List<
|
21
|
+
compact<T_1>(array: lodash.List<T_1 | lodash.Falsey> | null | undefined): T_1[];
|
90
22
|
concat<T_2>(...values: lodash.Many<T_2>[]): T_2[];
|
91
23
|
difference<T_3>(array: lodash.List<T_3> | null | undefined, ...values: lodash.List<T_3>[]): T_3[];
|
92
24
|
differenceBy<T1, T2>(array: lodash.List<T1> | null | undefined, values: lodash.List<T2>, iteratee: lodash.ValueIteratee<T1 | T2>): T1[];
|
@@ -384,6 +316,7 @@ export declare const vendorMap: {
|
|
384
316
|
}>(value?: T_184 | undefined): boolean;
|
385
317
|
isEmpty(value: string): value is "";
|
386
318
|
isEmpty(value: lodash.List<any> | Map<any, any> | Set<any> | null | undefined): boolean;
|
319
|
+
isEmpty(value: object): boolean;
|
387
320
|
isEmpty<T_185 extends object>(value: T_185 | null | undefined): value is lodash.EmptyObjectOf<T_185> | null | undefined;
|
388
321
|
isEmpty(value?: any): boolean;
|
389
322
|
isEqual(value: any, other: any): boolean;
|
@@ -526,6 +459,8 @@ export declare const vendorMap: {
|
|
526
459
|
get<T_212, TDefault_4>(object: lodash.NumericDictionary<T_212> | null | undefined, path: number, defaultValue: TDefault_4): T_212 | TDefault_4;
|
527
460
|
get<TDefault_5>(object: null | undefined, path: lodash.PropertyPath, defaultValue: TDefault_5): TDefault_5;
|
528
461
|
get(object: null | undefined, path: lodash.PropertyPath): undefined;
|
462
|
+
get<TObject_47, TPath extends string>(data: TObject_47, path: TPath): string extends TPath ? any : lodash.GetFieldType<TObject_47, TPath>;
|
463
|
+
get<TObject_48, TPath_1 extends string, TDefault_6 = lodash.GetFieldType<TObject_48, TPath_1>>(data: TObject_48, path: TPath_1, defaultValue: TDefault_6): TDefault_6 | Exclude<lodash.GetFieldType<TObject_48, TPath_1>, null | undefined>;
|
529
464
|
get(object: any, path: lodash.PropertyPath, defaultValue?: any): any;
|
530
465
|
has<T_213>(object: T_213, path: lodash.PropertyPath): boolean;
|
531
466
|
hasIn<T_214>(object: T_214, path: lodash.PropertyPath): boolean;
|
@@ -548,15 +483,15 @@ export declare const vendorMap: {
|
|
548
483
|
mapValues<T_225>(obj: lodash.Dictionary<T_225> | lodash.NumericDictionary<T_225> | null | undefined): lodash.Dictionary<T_225>;
|
549
484
|
mapValues<T_226 extends object>(obj: T_226): T_226;
|
550
485
|
mapValues<T_227 extends object>(obj: T_227 | null | undefined): Partial<T_227>;
|
551
|
-
merge<
|
552
|
-
merge<
|
553
|
-
merge<
|
554
|
-
merge<
|
486
|
+
merge<TObject_49, TSource_7>(object: TObject_49, source: TSource_7): TObject_49 & TSource_7;
|
487
|
+
merge<TObject_50, TSource1_21, TSource2_21>(object: TObject_50, source1: TSource1_21, source2: TSource2_21): TObject_50 & TSource1_21 & TSource2_21;
|
488
|
+
merge<TObject_51, TSource1_22, TSource2_22, TSource3_14>(object: TObject_51, source1: TSource1_22, source2: TSource2_22, source3: TSource3_14): TObject_51 & TSource1_22 & TSource2_22 & TSource3_14;
|
489
|
+
merge<TObject_52, TSource1_23, TSource2_23, TSource3_15, TSource4_7>(object: TObject_52, source1: TSource1_23, source2: TSource2_23, source3: TSource3_15, source4: TSource4_7): TObject_52 & TSource1_23 & TSource2_23 & TSource3_15 & TSource4_7;
|
555
490
|
merge(object: any, ...otherArgs: any[]): any;
|
556
|
-
mergeWith<
|
557
|
-
mergeWith<
|
558
|
-
mergeWith<
|
559
|
-
mergeWith<
|
491
|
+
mergeWith<TObject_53, TSource_8>(object: TObject_53, source: TSource_8, customizer: (value: any, srcValue: any, key: string, object: any, source: any) => any): TObject_53 & TSource_8;
|
492
|
+
mergeWith<TObject_54, TSource1_24, TSource2_24>(object: TObject_54, source1: TSource1_24, source2: TSource2_24, customizer: (value: any, srcValue: any, key: string, object: any, source: any) => any): TObject_54 & TSource1_24 & TSource2_24;
|
493
|
+
mergeWith<TObject_55, TSource1_25, TSource2_25, TSource3_16>(object: TObject_55, source1: TSource1_25, source2: TSource2_25, source3: TSource3_16, customizer: (value: any, srcValue: any, key: string, object: any, source: any) => any): TObject_55 & TSource1_25 & TSource2_25 & TSource3_16;
|
494
|
+
mergeWith<TObject_56, TSource1_26, TSource2_26, TSource3_17, TSource4_8>(object: TObject_56, source1: TSource1_26, source2: TSource2_26, source3: TSource3_17, source4: TSource4_8, customizer: (value: any, srcValue: any, key: string, object: any, source: any) => any): TObject_56 & TSource1_26 & TSource2_26 & TSource3_17 & TSource4_8;
|
560
495
|
mergeWith(object: any, ...otherArgs: any[]): any;
|
561
496
|
omit<T_228 extends object, K_1 extends lodash.PropertyName[]>(object: T_228 | null | undefined, ...paths: K_1): Pick<T_228, Exclude<keyof T_228, K_1[number]>>;
|
562
497
|
omit<T_229 extends object, K_2 extends keyof T_229>(object: T_229 | null | undefined, ...paths: lodash.Many<K_2>[]): lodash.Omit<T_229, K_2>;
|
@@ -565,7 +500,7 @@ export declare const vendorMap: {
|
|
565
500
|
omitBy<T_232>(object: lodash.NumericDictionary<T_232> | null | undefined, predicate?: lodash.ValueKeyIteratee<T_232> | undefined): lodash.NumericDictionary<T_232>;
|
566
501
|
omitBy<T_233 extends object>(object: T_233 | null | undefined, predicate: lodash.ValueKeyIteratee<T_233[keyof T_233]>): Partial<T_233>;
|
567
502
|
pick<T_234 extends object, U_4 extends keyof T_234>(object: T_234, ...props: lodash.Many<U_4>[]): Pick<T_234, U_4>;
|
568
|
-
pick<T_235>(object: T_235 | null | undefined, ...props: lodash.PropertyPath[]): Partial<T_235>;
|
503
|
+
pick<T_235>(object: T_235 | null | undefined, ...props: lodash.Many<lodash.PropertyPath>[]): Partial<T_235>;
|
569
504
|
pickBy<T_236, S_6 extends T_236>(object: lodash.Dictionary<T_236> | null | undefined, predicate: lodash.ValueKeyIterateeTypeGuard<T_236, S_6>): lodash.Dictionary<S_6>;
|
570
505
|
pickBy<T_237, S_7 extends T_237>(object: lodash.NumericDictionary<T_237> | null | undefined, predicate: lodash.ValueKeyIterateeTypeGuard<T_237, S_7>): lodash.NumericDictionary<S_7>;
|
571
506
|
pickBy<T_238>(object: lodash.Dictionary<T_238> | null | undefined, predicate?: lodash.ValueKeyIteratee<T_238> | undefined): lodash.Dictionary<T_238>;
|
@@ -649,7 +584,7 @@ export declare const vendorMap: {
|
|
649
584
|
conforms<T_264>(source: lodash.ConformsPredicateObject<T_264>): (value: T_264) => boolean;
|
650
585
|
constant<T_265>(value: T_265): () => T_265;
|
651
586
|
defaultTo<T_266>(value: T_266 | null | undefined, defaultValue: T_266): T_266;
|
652
|
-
defaultTo<T_267,
|
587
|
+
defaultTo<T_267, TDefault_7>(value: T_267 | null | undefined, defaultValue: TDefault_7): T_267 | TDefault_7;
|
653
588
|
flow<A extends any[], R1, R2, R3, R4, R5, R6, R7>(f1: (...args: A) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6, f7: (a: R6) => R7): (...args: A) => R7;
|
654
589
|
flow<A_1 extends any[], R1_1, R2_1, R3_1, R4_1, R5_1, R6_1, R7_1>(f1: (...args: A_1) => R1_1, f2: (a: R1_1) => R2_1, f3: (a: R2_1) => R3_1, f4: (a: R3_1) => R4_1, f5: (a: R4_1) => R5_1, f6: (a: R5_1) => R6_1, f7: (a: R6_1) => R7_1, ...func: lodash.Many<(a: any) => any>[]): (...args: A_1) => any;
|
655
590
|
flow<A_2 extends any[], R1_2, R2_2, R3_2, R4_2, R5_2, R6_2>(f1: (...args: A_2) => R1_2, f2: (a: R1_2) => R2_2, f3: (a: R2_2) => R3_2, f4: (a: R3_2) => R4_2, f5: (a: R4_2) => R5_2, f6: (a: R5_2) => R6_2): (...args: A_2) => R6_2;
|
@@ -675,7 +610,7 @@ export declare const vendorMap: {
|
|
675
610
|
matchesProperty<T_272, V_1>(path: lodash.PropertyPath, srcValue: T_272): (value: V_1) => boolean;
|
676
611
|
method(path: lodash.PropertyPath, ...args: any[]): (object: any) => any;
|
677
612
|
methodOf(object: object, ...args: any[]): (path: lodash.PropertyPath) => any;
|
678
|
-
mixin<
|
613
|
+
mixin<TObject_57>(object: TObject_57, source: lodash.Dictionary<(...args: any[]) => any>, options?: lodash.MixinOptions | undefined): TObject_57;
|
679
614
|
mixin<TResult_44>(source: lodash.Dictionary<(...args: any[]) => any>, options?: lodash.MixinOptions | undefined): lodash.LoDashStatic;
|
680
615
|
noConflict(): lodash.LoDashStatic;
|
681
616
|
noop(...args: any[]): void;
|
@@ -704,5 +639,74 @@ export declare const vendorMap: {
|
|
704
639
|
toPath(value: any): string[];
|
705
640
|
uniqueId(prefix?: string | undefined): string;
|
706
641
|
};
|
642
|
+
'@veloceapps/sdk/core': {
|
643
|
+
findLineItem: (id: string, lineItems: import("@veloceapps/core").LineItem[]) => import("@veloceapps/core").LineItem | undefined;
|
644
|
+
findLineItemWithComparator: (lineItems: import("@veloceapps/core").LineItem[], comparator: (li: import("@veloceapps/core").LineItem) => boolean) => import("@veloceapps/core").LineItem | undefined;
|
645
|
+
insertLineItem: (lineItem: import("@veloceapps/core").LineItem, parentId: string, toInsert: import("@veloceapps/core").LineItem) => import("@veloceapps/core").LineItem;
|
646
|
+
removeLineItem: (lineItem: import("@veloceapps/core").LineItem, idToRemove: string) => import("@veloceapps/core").LineItem;
|
647
|
+
replaceLineItem: (lineItem: import("@veloceapps/core").LineItem, replaceTo: import("@veloceapps/core").LineItem) => import("@veloceapps/core").LineItem;
|
648
|
+
mapAttributes: (attributes: import("@veloceapps/core").Attribute[]) => lodash.Dictionary<any>;
|
649
|
+
getAttributes: (attributes: import("@veloceapps/core").Attribute[], names?: string[] | undefined) => import("@veloceapps/core").Attribute[];
|
650
|
+
upsertAttributes: (originalAttributes: import("@veloceapps/core").Attribute[], attributesToUpsert: {
|
651
|
+
name: string;
|
652
|
+
value: any;
|
653
|
+
}[]) => import("@veloceapps/core").Attribute[];
|
654
|
+
patchAttributes: (rootLineItem: import("@veloceapps/core").LineItem, id: string, attrs: {
|
655
|
+
name: string;
|
656
|
+
value: any;
|
657
|
+
}[]) => import("@veloceapps/core").LineItem;
|
658
|
+
getAttributeValue: (attributes: import("@veloceapps/core").Attribute[], name: string) => any;
|
659
|
+
generateLineItem: (port: string, type: string, parentId: string, attributes?: {
|
660
|
+
name: string;
|
661
|
+
value: any;
|
662
|
+
}[] | undefined, lineItems?: import("@veloceapps/core").LineItem[] | undefined) => import("@veloceapps/core").LineItem;
|
663
|
+
getRecommendedPrices: (portDomain: import("@veloceapps/core").PortDomain, type: string) => {
|
664
|
+
net: number;
|
665
|
+
list: number;
|
666
|
+
};
|
667
|
+
multiplyLineItems: (lineItem: import("@veloceapps/core").LineItem, qty: number, split: boolean) => import("@veloceapps/core").LineItem[];
|
668
|
+
ConfigurationService: typeof ConfigurationService;
|
669
|
+
QuoteDraftService: typeof QuoteDraftService;
|
670
|
+
FlowConfigurationService: typeof FlowConfigurationService;
|
671
|
+
LineItemWorker: typeof LineItemWorker;
|
672
|
+
ProductImagesService: typeof ProductImagesService;
|
673
|
+
};
|
674
|
+
'@veloceapps/sdk/cms': {
|
675
|
+
TemplatesService: typeof TemplatesService;
|
676
|
+
IntegrationState: typeof IntegrationState;
|
677
|
+
FlowAction: typeof cmsActions.FlowAction;
|
678
|
+
ConfigureProductAction: ({ lineItemId, productId, }: {
|
679
|
+
lineItemId?: string | undefined;
|
680
|
+
productId?: string | undefined;
|
681
|
+
}) => import("@veloceapps/sdk/cms").IntegrationAction<any>;
|
682
|
+
NavigateBackAction: () => import("@veloceapps/sdk/cms").IntegrationAction<any>;
|
683
|
+
NavigateToCatalogAction: () => import("@veloceapps/sdk/cms").IntegrationAction<any>;
|
684
|
+
ApplyProductConfigurationAction: () => import("@veloceapps/sdk/cms").IntegrationAction<any>;
|
685
|
+
OpenDocGenAction: () => import("@veloceapps/sdk/cms").IntegrationAction<any>;
|
686
|
+
CloseDocGenAction: () => import("@veloceapps/sdk/cms").IntegrationAction<any>;
|
687
|
+
RemoteApplyAction: () => import("@veloceapps/sdk/cms").IntegrationAction<any>;
|
688
|
+
RemoteCancelAction: () => import("@veloceapps/sdk/cms").IntegrationAction<any>;
|
689
|
+
SwitchObjectAction: (payload: {
|
690
|
+
id: string;
|
691
|
+
}) => import("@veloceapps/sdk/cms").IntegrationAction<any>;
|
692
|
+
SetDefaultMetrics: (metrics: import("@veloceapps/sdk/cms").Metric[]) => import("@veloceapps/sdk/cms").IntegrationAction<any>;
|
693
|
+
DEFAULT_PLUGINS_TOKEN: angularCore.InjectionToken<typeof import("./engine/models/plugin").Plugin[]>;
|
694
|
+
UI_DEFINITION_METADATA: angularCore.InjectionToken<import("@veloceapps/sdk/core").UIDefinitionMetadata>;
|
695
|
+
ELEMENT_METADATA: angularCore.InjectionToken<import("@veloceapps/sdk/cms").ElementMetadata>;
|
696
|
+
SHARED_ELEMENT_METADATA: angularCore.InjectionToken<import("@veloceapps/sdk/cms").ElementMetadata>;
|
697
|
+
ELEMENT_CONFIG: angularCore.InjectionToken<import("@veloceapps/sdk/cms").ElementConfig>;
|
698
|
+
VENDOR_MAP: angularCore.InjectionToken<lodash.Dictionary<any>>;
|
699
|
+
};
|
700
|
+
'@veloceapps/api': {
|
701
|
+
SalesforceApiService: typeof SalesforceApiService;
|
702
|
+
QuoteApiService: typeof QuoteApiService;
|
703
|
+
DocumentTemplatesApiService: typeof DocumentTemplatesApiService;
|
704
|
+
DocumentAttachmentApiService: typeof DocumentAttachmentApiService;
|
705
|
+
RampApiService: typeof RampApiService;
|
706
|
+
CatalogApiService: typeof CatalogApiService;
|
707
|
+
DeltaApiService: typeof DeltaApiService;
|
708
|
+
PicklistsApiService: typeof PicklistsApiService;
|
709
|
+
PriceApiService: typeof PriceApiService;
|
710
|
+
};
|
707
711
|
};
|
708
712
|
export declare type VendorMap = typeof vendorMap;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
|
-
import * as i1 from "@
|
2
|
+
import * as i1 from "@veloceapps/components";
|
3
3
|
export declare class ConfigurationModule {
|
4
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationModule, never>;
|
5
5
|
static ɵmod: i0.ɵɵNgModuleDeclaration<ConfigurationModule, never, [typeof i1.ConfirmationDialogModule], never>;
|
@@ -1,3 +1,3 @@
|
|
1
|
-
import { LineItem } from '@
|
1
|
+
import { LineItem } from '@veloceapps/core';
|
2
2
|
import { RuntimeContext, UIDefinitionProps } from '../../types';
|
3
3
|
export declare const getDefaultLineItem: (context: RuntimeContext, uiDefinitionProperties: UIDefinitionProps, qty?: number) => LineItem;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { ConfigurationApiService } from '@
|
2
|
-
import { LineItem, RuntimeModel } from '@
|
1
|
+
import { ConfigurationApiService } from '@veloceapps/api';
|
2
|
+
import { LineItem, RuntimeModel } from '@veloceapps/core';
|
3
3
|
import { Observable } from 'rxjs';
|
4
|
-
import { ContextService } from '../../../services';
|
4
|
+
import { ContextService } from '../../../services/context.service';
|
5
5
|
import { RuntimeContext, UIDefinition, UIDefinitionProps } from '../../../types';
|
6
6
|
import { RuntimeInitializationProps } from '../types/configuration-runtime.types';
|
7
7
|
import { RuntimeContextService } from './runtime-context.service';
|
@@ -1,10 +1,11 @@
|
|
1
|
-
import { ConfigurationApiService } from '@
|
2
|
-
import { Charge, CompiledPricePlan, ConfigurationContext, LineItem, RuntimeModel } from '@
|
1
|
+
import { ConfigurationApiService } from '@veloceapps/api';
|
2
|
+
import { Charge, CompiledPricePlan, ConfigurationContext, LineItem, RuntimeModel } from '@veloceapps/core';
|
3
3
|
import { Dictionary } from 'lodash';
|
4
4
|
import { MessageService } from 'primeng/api';
|
5
5
|
import { DialogService } from 'primeng/dynamicdialog';
|
6
6
|
import { Observable } from 'rxjs';
|
7
|
-
import { ContextService
|
7
|
+
import { ContextService } from '../../../services/context.service';
|
8
|
+
import { QuoteDraftService } from '../../../services/quote-draft.service';
|
8
9
|
import { QuoteStates, RuntimeContext } from '../../../types';
|
9
10
|
import { ConfigurationRuntimeService } from './configuration-runtime.service';
|
10
11
|
import * as i0 from "@angular/core";
|
@@ -1,9 +1,10 @@
|
|
1
|
-
import { ProceduresApiService } from '@
|
2
|
-
import { Charge, CompiledPricePlan, ConfigurationContext, LineItem, QuoteDraft } from '@
|
1
|
+
import { ProceduresApiService } from '@veloceapps/api';
|
2
|
+
import { Charge, CompiledPricePlan, ConfigurationContext, LineItem, QuoteDraft } from '@veloceapps/core';
|
3
3
|
import { Dictionary } from 'lodash';
|
4
4
|
import { Observable } from 'rxjs';
|
5
|
-
import { ContextService
|
6
|
-
import {
|
5
|
+
import { ContextService } from '../../../services/context.service';
|
6
|
+
import { QuoteDraftService } from '../../../services/quote-draft.service';
|
7
|
+
import { ConfigurationService } from '../../configuration/services/configuration.service';
|
7
8
|
import { FlowUpdateParams } from '../types/update.types';
|
8
9
|
import { FlowUpdateService } from './flow-update.service';
|
9
10
|
import * as i0 from "@angular/core";
|
package/core/package.json
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
{
|
2
|
-
"name": "@
|
2
|
+
"name": "@veloceapps/sdk/core",
|
3
3
|
"sideEffects": false,
|
4
|
-
"main": "../bundles/
|
5
|
-
"module": "../fesm2015/
|
6
|
-
"es2015": "../fesm2015/
|
7
|
-
"esm2015": "../esm2015/core/
|
8
|
-
"fesm2015": "../fesm2015/
|
9
|
-
"typings": "
|
4
|
+
"main": "../bundles/veloceapps-sdk-core.umd.js",
|
5
|
+
"module": "../fesm2015/veloceapps-sdk-core.js",
|
6
|
+
"es2015": "../fesm2015/veloceapps-sdk-core.js",
|
7
|
+
"esm2015": "../esm2015/core/veloceapps-sdk-core.js",
|
8
|
+
"fesm2015": "../fesm2015/veloceapps-sdk-core.js",
|
9
|
+
"typings": "veloceapps-sdk-core.d.ts"
|
10
10
|
}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { ContextApiService } from '@
|
2
|
-
import { ConfigurationContext, ConfigurationContextMode } from '@
|
1
|
+
import { ContextApiService } from '@veloceapps/api';
|
2
|
+
import { ConfigurationContext, ConfigurationContextMode } from '@veloceapps/core';
|
3
3
|
import { Observable } from 'rxjs';
|
4
4
|
import * as i0 from "@angular/core";
|
5
5
|
export declare class ContextService {
|
package/core/services/index.d.ts
CHANGED
@@ -0,0 +1,21 @@
|
|
1
|
+
import { ConfigurationSettingsApiService } from '@veloceapps/api';
|
2
|
+
import { Observable } from 'rxjs';
|
3
|
+
import { QuoteDraftService } from '../quote-draft.service';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
export declare class MetricsCalculationService {
|
6
|
+
private quoteDraftService;
|
7
|
+
private settingsService;
|
8
|
+
get onMetricsUpdate$(): Observable<void>;
|
9
|
+
private metricsUpdated$;
|
10
|
+
private quoteMetricsSettings;
|
11
|
+
private metricsCalculationMethodMap;
|
12
|
+
private metricsData;
|
13
|
+
constructor(quoteDraftService: QuoteDraftService, settingsService: ConfigurationSettingsApiService);
|
14
|
+
getMetricValue(metric: string): number;
|
15
|
+
private updateMetrics;
|
16
|
+
private calculateMetric;
|
17
|
+
private buildMetricsCalculationMethods;
|
18
|
+
private collectMetricKeys;
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MetricsCalculationService, never>;
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MetricsCalculationService>;
|
21
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare type MetricCalculationMethod = 'last' | 'first' | 'avg' | 'sum';
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { LineItem } from '@veloceapps/core';
|
2
|
+
import { MetricCalculationMethod } from './metric-calculation.types';
|
3
|
+
export declare function calculateMetricByMethod(lineItems: LineItem[], metric: string, method: MetricCalculationMethod): number;
|
4
|
+
export declare function getLineItemsByMethod(lineItems: LineItem[], method: MetricCalculationMethod): LineItem[][];
|
5
|
+
export declare function getDateValue(date: string): number;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { PriceApiService, QuoteApiService } from '@
|
2
|
-
import { LineItem, PriceList, PriceSummary, QuoteDraft } from '@
|
1
|
+
import { PriceApiService, QuoteApiService } from '@veloceapps/api';
|
2
|
+
import { LineItem, PriceList, PriceSummary, QuoteDraft } from '@veloceapps/core';
|
3
3
|
import { Dictionary } from 'lodash';
|
4
4
|
import { Observable } from 'rxjs';
|
5
5
|
import { ContextService } from './context.service';
|
@@ -12,13 +12,15 @@ export declare class QuoteDraftService {
|
|
12
12
|
private resetSubj$;
|
13
13
|
private isInitializedSubj$;
|
14
14
|
private initialCurrentState;
|
15
|
+
private _hasUnsavedChanges;
|
15
16
|
get isInitialized(): boolean;
|
16
17
|
set isInitialized(value: boolean);
|
18
|
+
get hasUnsavedChanges(): boolean;
|
19
|
+
set hasUnsavedChanges(value: boolean);
|
17
20
|
get hasAssets$(): Observable<boolean>;
|
18
21
|
get hasAssets(): boolean;
|
19
22
|
allPriceLists: PriceList[];
|
20
23
|
assetPriceLists: PriceList[];
|
21
|
-
hasUnsavedChanges: boolean;
|
22
24
|
reset$: Observable<boolean>;
|
23
25
|
activePriceList$: Observable<PriceList | null>;
|
24
26
|
constructor(context: ContextService, quoteApiService: QuoteApiService, priceApiService: PriceApiService);
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Attribute, LineItem, PortDomain } from '@
|
1
|
+
import { Attribute, LineItem, PortDomain } from '@veloceapps/core';
|
2
2
|
import { Dictionary } from 'lodash';
|
3
3
|
export declare const findLineItem: (id: string, lineItems: LineItem[]) => LineItem | undefined;
|
4
4
|
export declare const findLineItemWithComparator: (lineItems: LineItem[], comparator: (li: LineItem) => boolean) => LineItem | undefined;
|
@@ -24,3 +24,4 @@ export declare const getRecommendedPrices: (portDomain: PortDomain, type: string
|
|
24
24
|
net: number;
|
25
25
|
list: number;
|
26
26
|
};
|
27
|
+
export declare const multiplyLineItems: (lineItem: LineItem, qty: number, split: boolean) => LineItem[];
|
@@ -3,4 +3,4 @@ export const DEFAULT_PLUGINS = {
|
|
3
3
|
CONFIGURATION: [ConfigurationPlugin],
|
4
4
|
DEFAULT: [],
|
5
5
|
};
|
6
|
-
//# sourceMappingURL=data:application/json;base64,
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY21zLmRlZmF1bHQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL3Nkay9jbXMvY21zLmRlZmF1bHQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sZ0NBQWdDLENBQUM7QUFFckUsTUFBTSxDQUFDLE1BQU0sZUFBZSxHQUFtRDtJQUM3RSxhQUFhLEVBQUUsQ0FBQyxtQkFBbUIsQ0FBQztJQUNwQyxPQUFPLEVBQUUsRUFBRTtDQUNaLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBVSURlZmluaXRpb25UeXBlIH0gZnJvbSAnQHZlbG9jZWFwcHMvc2RrL2NvcmUnO1xuaW1wb3J0IHsgUGx1Z2luIH0gZnJvbSAnLi9lbmdpbmUvbW9kZWxzL3BsdWdpbic7XG5pbXBvcnQgeyBDb25maWd1cmF0aW9uUGx1Z2luIH0gZnJvbSAnLi9wbHVnaW5zL2NvbmZpZ3VyYXRpb24ucGx1Z2luJztcblxuZXhwb3J0IGNvbnN0IERFRkFVTFRfUExVR0lOUzogeyBba2V5IGluIFVJRGVmaW5pdGlvblR5cGVdOiB0eXBlb2YgUGx1Z2luW10gfSA9IHtcbiAgQ09ORklHVVJBVElPTjogW0NvbmZpZ3VyYXRpb25QbHVnaW5dLFxuICBERUZBVUxUOiBbXSxcbn07XG4iXX0=
|