@veloceapps/sdk 3.0.16 → 3.1.0
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 +74 -836
- package/bundles/veloce-sdk-cms.umd.js.map +1 -1
- package/bundles/veloce-sdk-core.umd.js +1269 -0
- package/bundles/veloce-sdk-core.umd.js.map +1 -0
- package/bundles/veloce-sdk-runtime.umd.js +53 -166
- package/bundles/veloce-sdk-runtime.umd.js.map +1 -1
- package/bundles/veloce-sdk.umd.js +322 -155
- package/bundles/veloce-sdk.umd.js.map +1 -1
- 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 -3
- package/cms/decorators/element.decorator.d.ts +2 -2
- package/cms/index.d.ts +1 -1
- package/cms/injection-tokens.d.ts +1 -1
- package/cms/launcher.module.d.ts +2 -3
- package/cms/plugins/script.plugin.d.ts +1 -0
- package/cms/services/launcher.service.d.ts +1 -1
- package/cms/types/common.types.d.ts +4 -9
- package/cms/types/configuration.types.d.ts +0 -5
- package/cms/types/index.d.ts +1 -2
- package/cms/types/path.types.d.ts +11 -0
- package/cms/utils/element.utils.d.ts +6 -5
- package/cms/utils/elements-resolver.d.ts +2 -1
- package/cms/utils/index.d.ts +3 -1
- package/cms/utils/path.utils.d.ts +2 -1
- package/cms/vendor-map.d.ts +677 -2
- package/core/core.module.d.ts +8 -0
- package/core/index.d.ts +6 -0
- package/{cms → core}/modules/configuration/configuration.module.d.ts +0 -0
- package/{cms → core}/modules/configuration/helpers.d.ts +1 -2
- package/{cms → core}/modules/configuration/index.d.ts +0 -1
- package/{cms → core}/modules/configuration/services/configuration-runtime.service.d.ts +2 -3
- package/{cms → core}/modules/configuration/services/configuration.service.d.ts +2 -2
- package/{cms → core}/modules/configuration/services/runtime-context.service.d.ts +1 -1
- package/{cms → core}/modules/configuration/types/configuration-runtime.types.d.ts +0 -0
- package/{cms → core}/modules/flow-configuration/flow-configuration.module.d.ts +0 -0
- package/{cms → core}/modules/flow-configuration/index.d.ts +0 -0
- package/{cms → core}/modules/flow-configuration/services/flow-configuration.service.d.ts +7 -4
- package/{cms → core}/modules/flow-configuration/services/flow-update.service.d.ts +0 -0
- package/{cms → core}/modules/flow-configuration/types/update.types.d.ts +0 -0
- package/{cms → core}/modules/index.d.ts +0 -0
- package/core/package.json +10 -0
- package/{runtime → core}/services/context.service.d.ts +0 -0
- package/core/services/index.d.ts +2 -0
- package/{runtime/services/quote.service.d.ts → core/services/quote-draft.service.d.ts} +11 -6
- package/core/types/index.d.ts +3 -0
- package/core/types/quote-states.types.d.ts +6 -0
- package/{runtime/types/runtime-context.types.d.ts → core/types/runtime.types.d.ts} +4 -5
- package/{cms → core}/types/ui-definition.types.d.ts +0 -4
- package/core/utils/index.d.ts +2 -0
- package/{cms → core}/utils/line-item.utils.d.ts +0 -2
- package/{cms/types/line-item.types.d.ts → core/utils/line-item.worker.d.ts} +0 -0
- package/core/veloce-sdk-core.d.ts +5 -0
- package/esm2015/cms/cms.default.js +1 -1
- package/esm2015/cms/components/element-renderer/element-renderer.component.js +3 -3
- package/esm2015/cms/components/preview/preview.component.js +9 -10
- package/esm2015/cms/decorators/element.decorator.js +1 -1
- package/esm2015/cms/index.js +1 -2
- package/esm2015/cms/injection-tokens.js +1 -1
- package/esm2015/cms/launcher.module.js +5 -6
- package/esm2015/cms/plugins/configuration.plugin.js +3 -4
- package/esm2015/cms/plugins/script.plugin.js +27 -14
- package/esm2015/cms/services/launcher.service.js +1 -1
- package/esm2015/cms/types/common.types.js +1 -1
- package/esm2015/cms/types/configuration.types.js +1 -1
- package/esm2015/cms/types/index.js +2 -3
- package/esm2015/cms/types/path.types.js +2 -0
- package/esm2015/cms/utils/element.utils.js +1 -1
- package/esm2015/cms/utils/elements-resolver.js +1 -1
- package/esm2015/cms/utils/index.js +4 -2
- package/esm2015/cms/utils/path.utils.js +11 -1
- package/esm2015/cms/vendor-map.js +6 -5
- package/esm2015/core/core.module.js +18 -0
- package/esm2015/core/index.js +7 -0
- package/esm2015/core/modules/configuration/configuration.module.js +34 -0
- package/esm2015/core/modules/configuration/helpers.js +10 -0
- package/esm2015/core/modules/configuration/index.js +5 -0
- package/esm2015/core/modules/configuration/services/configuration-runtime.service.js +93 -0
- package/esm2015/core/modules/configuration/services/configuration.service.js +147 -0
- package/esm2015/core/modules/configuration/services/runtime-context.service.js +61 -0
- package/esm2015/core/modules/configuration/types/configuration-runtime.types.js +2 -0
- package/esm2015/core/modules/flow-configuration/flow-configuration.module.js +18 -0
- package/esm2015/core/modules/flow-configuration/index.js +5 -0
- package/esm2015/core/modules/flow-configuration/services/flow-configuration.service.js +90 -0
- package/esm2015/core/modules/flow-configuration/services/flow-update.service.js +114 -0
- package/esm2015/core/modules/flow-configuration/types/update.types.js +2 -0
- package/esm2015/core/modules/index.js +3 -0
- package/esm2015/core/services/context.service.js +41 -0
- package/esm2015/core/services/index.js +3 -0
- package/esm2015/core/services/quote-draft.service.js +67 -0
- package/esm2015/core/types/index.js +4 -0
- package/esm2015/core/types/quote-states.types.js +2 -0
- package/esm2015/core/types/runtime.types.js +16 -0
- package/esm2015/core/types/ui-definition.types.js +2 -0
- package/esm2015/core/utils/index.js +3 -0
- package/esm2015/core/utils/line-item.utils.js +98 -0
- package/esm2015/core/utils/line-item.worker.js +19 -0
- package/esm2015/core/veloce-sdk-core.js +5 -0
- package/esm2015/runtime/components/component-preview/component-preview.component.js +2 -2
- package/esm2015/runtime/components/ui-runtime/runtime.component.js +10 -9
- package/esm2015/runtime/components/ui-runtime-preview/runtime-preview.component.js +3 -3
- package/esm2015/runtime/execution/directives/section-script.directive.js +19 -20
- package/esm2015/runtime/execution/directives/velo-port.directive.js +1 -1
- package/esm2015/runtime/execution/directives/vl-quote.directive.js +1 -1
- package/esm2015/runtime/execution/directives/vl-ramp.directive.js +2 -2
- package/esm2015/runtime/execution/runtime-execution.module.js +6 -8
- package/esm2015/runtime/runtime.module.js +7 -9
- package/esm2015/runtime/services/cart.service.js +5 -6
- package/esm2015/runtime/services/configuration.service.js +9 -9
- package/esm2015/runtime/services/index.js +1 -3
- package/esm2015/runtime/services/runtime-context.service.js +4 -4
- package/esm2015/runtime/services/runtime.service.js +3 -3
- package/esm2015/runtime/types/index.js +1 -2
- package/esm2015/runtime/types/runtime.types.js +1 -1
- package/esm2015/src/components/dialog/dialog.component.js +30 -0
- package/esm2015/src/components/dialog/dialog.module.js +19 -0
- package/esm2015/src/components/dialog/dialog.types.js +2 -0
- package/esm2015/src/components/header/cart-overlay/cart-overlay.component.js +2 -2
- package/esm2015/src/components/header/header.component.js +51 -11
- package/esm2015/src/flow.component.js +2 -2
- package/esm2015/src/flow.module.js +33 -6
- package/esm2015/src/pages/debug/debug.component.js +14 -16
- package/esm2015/src/pages/legacy-product/legacy-product.component.js +12 -11
- package/esm2015/src/pages/product/product.component.js +12 -12
- package/esm2015/src/pages/shopping-cart/shopping-cart.component.js +1 -1
- package/esm2015/src/resolvers/context.resolver.js +2 -2
- package/esm2015/src/resolvers/quote.resolver.js +9 -16
- package/esm2015/src/services/flow-router.service.js +2 -2
- package/esm2015/src/services/fow-dialog.service.js +58 -0
- package/esm2015/src/types/flow-customization.types.js +1 -1
- package/esm2015/src/utils/flow.utils.js +11 -1
- package/fesm2015/veloce-sdk-cms.js +64 -714
- package/fesm2015/veloce-sdk-cms.js.map +1 -1
- package/fesm2015/veloce-sdk-core.js +785 -0
- package/fesm2015/veloce-sdk-core.js.map +1 -0
- package/fesm2015/veloce-sdk-runtime.js +48 -144
- package/fesm2015/veloce-sdk-runtime.js.map +1 -1
- package/fesm2015/veloce-sdk.js +260 -99
- package/fesm2015/veloce-sdk.js.map +1 -1
- package/package.json +2 -2
- package/runtime/components/ui-runtime/runtime.component.d.ts +3 -3
- package/runtime/components/ui-runtime-preview/runtime-preview.component.d.ts +1 -1
- package/runtime/execution/directives/section-script.directive.d.ts +2 -3
- package/runtime/execution/directives/velo-port.directive.d.ts +2 -2
- package/runtime/execution/directives/vl-ramp.directive.d.ts +1 -1
- package/runtime/execution/runtime-execution.module.d.ts +2 -1
- package/runtime/runtime.module.d.ts +2 -1
- package/runtime/services/cart.service.d.ts +2 -3
- package/runtime/services/configuration.service.d.ts +4 -5
- package/runtime/services/index.d.ts +0 -2
- package/runtime/services/runtime-context.service.d.ts +3 -3
- package/runtime/services/runtime.service.d.ts +5 -6
- package/runtime/types/index.d.ts +0 -1
- package/runtime/types/runtime.types.d.ts +5 -6
- 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 +6 -0
- package/src/components/header/cart-overlay/cart-overlay.component.d.ts +1 -1
- package/src/components/header/header.component.d.ts +10 -5
- package/src/flow.component.d.ts +1 -1
- package/src/flow.module.d.ts +3 -1
- package/src/pages/debug/debug.component.d.ts +3 -4
- package/src/pages/legacy-product/legacy-product.component.d.ts +4 -3
- package/src/pages/product/product.component.d.ts +3 -4
- package/src/pages/shopping-cart/shopping-cart.component.d.ts +1 -1
- package/src/resolvers/context.resolver.d.ts +1 -1
- package/src/resolvers/quote.resolver.d.ts +3 -4
- package/src/services/flow-router.service.d.ts +1 -1
- package/src/services/fow-dialog.service.d.ts +17 -0
- package/src/types/flow-customization.types.d.ts +1 -1
- package/src/utils/flow.utils.d.ts +2 -0
- package/cms/modules/configuration/types/configuration.types.d.ts +0 -15
- package/esm2015/cms/modules/configuration/configuration.module.js +0 -37
- package/esm2015/cms/modules/configuration/helpers.js +0 -10
- package/esm2015/cms/modules/configuration/index.js +0 -6
- package/esm2015/cms/modules/configuration/services/configuration-runtime.service.js +0 -93
- package/esm2015/cms/modules/configuration/services/configuration.service.js +0 -147
- package/esm2015/cms/modules/configuration/services/runtime-context.service.js +0 -61
- package/esm2015/cms/modules/configuration/types/configuration-runtime.types.js +0 -2
- package/esm2015/cms/modules/configuration/types/configuration.types.js +0 -2
- package/esm2015/cms/modules/flow-configuration/flow-configuration.module.js +0 -18
- package/esm2015/cms/modules/flow-configuration/index.js +0 -5
- package/esm2015/cms/modules/flow-configuration/services/flow-configuration.service.js +0 -83
- package/esm2015/cms/modules/flow-configuration/services/flow-update.service.js +0 -114
- package/esm2015/cms/modules/flow-configuration/types/update.types.js +0 -2
- package/esm2015/cms/modules/index.js +0 -3
- package/esm2015/cms/types/line-item.types.js +0 -19
- package/esm2015/cms/types/ui-definition.types.js +0 -2
- package/esm2015/cms/utils/line-item.utils.js +0 -107
- package/esm2015/runtime/services/context.service.js +0 -41
- package/esm2015/runtime/services/quote.service.js +0 -53
- package/esm2015/runtime/types/runtime-context.types.js +0 -16
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 '@veloce/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,12 +1,10 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { ConfigurationRuntimeService, ConfigurationService, UIDefinition } from '@veloce/sdk/core';
|
|
2
3
|
import { MessageService } from 'primeng/api';
|
|
3
4
|
import { BehaviorSubject } from 'rxjs';
|
|
4
|
-
import { ConfigurationRuntimeService } from '../../modules/configuration/services/configuration-runtime.service';
|
|
5
|
-
import { ConfigurationService } from '../../modules/configuration/services/configuration.service';
|
|
6
5
|
import { IntegrationState } from '../../services';
|
|
7
6
|
import { LauncherService } from '../../services/launcher.service';
|
|
8
7
|
import { ElementMetadata } from '../../types/common.types';
|
|
9
|
-
import { UIDefinition } from '../../types/ui-definition.types';
|
|
10
8
|
import * as i0 from "@angular/core";
|
|
11
9
|
interface State {
|
|
12
10
|
loading: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function ElementDefinition(definition:
|
|
1
|
+
import { ElementDefaultMetadata } from '../types';
|
|
2
|
+
export declare function ElementDefinition(definition: ElementDefaultMetadata): (constructor: any) => any;
|
package/cms/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export * from './components/preview';
|
|
|
3
3
|
export * from './decorators';
|
|
4
4
|
export * from './injection-tokens';
|
|
5
5
|
export * from './launcher.module';
|
|
6
|
-
export * from './modules';
|
|
7
6
|
export * from './services';
|
|
8
7
|
export * from './types';
|
|
9
8
|
export * from './utils';
|
|
9
|
+
export { VendorMap } from './vendor-map';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { UIDefinitionMetadata } from '@veloce/sdk/core';
|
|
2
3
|
import { Dictionary } from 'lodash';
|
|
3
4
|
import { Plugin } from './engine/models/plugin';
|
|
4
5
|
import { ElementConfig, ElementMetadata } from './types/common.types';
|
|
5
|
-
import { UIDefinitionMetadata } from './types/ui-definition.types';
|
|
6
6
|
export declare const DEFAULT_PLUGINS_TOKEN: InjectionToken<(typeof Plugin)[]>;
|
|
7
7
|
export declare const UI_DEFINITION_METADATA: InjectionToken<UIDefinitionMetadata>;
|
|
8
8
|
export declare const ELEMENT_METADATA: InjectionToken<ElementMetadata>;
|
package/cms/launcher.module.d.ts
CHANGED
|
@@ -2,10 +2,9 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "@angular/common";
|
|
3
3
|
import * as i2 from "@veloce/core";
|
|
4
4
|
import * as i3 from "@veloce/api";
|
|
5
|
-
import * as i4 from "
|
|
6
|
-
import * as i5 from "./modules/flow-configuration/flow-configuration.module";
|
|
5
|
+
import * as i4 from "@veloce/sdk/core";
|
|
7
6
|
export declare class LauncherModule {
|
|
8
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<LauncherModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<LauncherModule, never, [typeof i1.CommonModule, typeof i2.CoreModule, typeof i3.ApiModule, typeof i4.
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<LauncherModule, never, [typeof i1.CommonModule, typeof i2.CoreModule, typeof i3.ApiModule, typeof i4.SdkCoreModule], never>;
|
|
10
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<LauncherModule>;
|
|
11
10
|
}
|
|
@@ -7,6 +7,7 @@ export declare class ScriptPlugin implements PluginComponent {
|
|
|
7
7
|
private vendorMap;
|
|
8
8
|
constructor(host: ElementComponent);
|
|
9
9
|
private addScript;
|
|
10
|
+
private normalizeImports;
|
|
10
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScriptPlugin, never>;
|
|
11
12
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ScriptPlugin, never, never, {}, {}, never>;
|
|
12
13
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Compiler, ModuleWithComponentFactories, NgModule } from '@angular/core';
|
|
2
|
+
import { UIDefinitionMetadata } from '@veloce/sdk/core';
|
|
2
3
|
import { Observable } from 'rxjs';
|
|
3
4
|
import { ElementMetadata } from '../types';
|
|
4
|
-
import { UIDefinitionMetadata } from '../types/ui-definition.types';
|
|
5
5
|
import { DynamicModuleService } from './dynamic-module.service';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class LauncherService {
|
|
@@ -9,7 +9,7 @@ export interface ElementConfig {
|
|
|
9
9
|
suppressTemplate?: boolean;
|
|
10
10
|
suppressStyles?: boolean;
|
|
11
11
|
}
|
|
12
|
-
export interface
|
|
12
|
+
export interface ElementModel {
|
|
13
13
|
/**
|
|
14
14
|
* Defines a path for an element model.
|
|
15
15
|
* It's combined with a path to a target element and an output property name.
|
|
@@ -84,15 +84,16 @@ export interface ElementDefaultMetadata {
|
|
|
84
84
|
* Same output but accessing dataservice by the Service module
|
|
85
85
|
*/
|
|
86
86
|
outputs?: Dictionary<string | null>;
|
|
87
|
-
model?:
|
|
87
|
+
model?: ElementModel;
|
|
88
88
|
/**
|
|
89
89
|
* Defines a shared component name to use as a reference
|
|
90
90
|
*
|
|
91
91
|
* Used only when `type === REFERENCE`
|
|
92
92
|
*/
|
|
93
93
|
reference?: string;
|
|
94
|
+
children?: string[];
|
|
94
95
|
}
|
|
95
|
-
export interface ElementMetadata extends ElementDefaultMetadata {
|
|
96
|
+
export interface ElementMetadata extends Omit<ElementDefaultMetadata, 'children'> {
|
|
96
97
|
path?: string;
|
|
97
98
|
children: ElementMetadata[];
|
|
98
99
|
template?: string;
|
|
@@ -100,9 +101,3 @@ export interface ElementMetadata extends ElementDefaultMetadata {
|
|
|
100
101
|
script?: string;
|
|
101
102
|
metadata?: string;
|
|
102
103
|
}
|
|
103
|
-
export interface ElementPath {
|
|
104
|
-
isAbsolute: boolean;
|
|
105
|
-
segments: string[];
|
|
106
|
-
module?: string;
|
|
107
|
-
variable?: string;
|
|
108
|
-
}
|
package/cms/types/index.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UIElement } from '@veloce/sdk/core';
|
|
2
|
+
import { ElementConfig, ElementDefaultMetadata, ElementMetadata, ELEMENT_TYPE } from '../types';
|
|
2
3
|
export declare class UiBuildError extends Error {
|
|
3
4
|
affectedMetadata: ElementMetadata;
|
|
4
5
|
constructor(message: string, affectedMetadata: ElementMetadata);
|
|
5
6
|
}
|
|
6
7
|
export declare const elementToMetadata: (el: UIElement, parentPath?: string | undefined) => ElementMetadata;
|
|
7
8
|
export declare const metadataToElement: (metadata: ElementMetadata, recursive?: boolean) => UIElement;
|
|
8
|
-
export declare const normalizeElementMetadata: (elementMetadata:
|
|
9
|
-
export declare const extractElementMetadata: (script: string) =>
|
|
10
|
-
export declare const extendElementMetadata: (script: string, extend: Partial<
|
|
9
|
+
export declare const normalizeElementMetadata: (elementMetadata: ElementDefaultMetadata) => ElementDefaultMetadata;
|
|
10
|
+
export declare const extractElementMetadata: (script: string) => ElementDefaultMetadata;
|
|
11
|
+
export declare const extendElementMetadata: (script: string, extend: Partial<ElementDefaultMetadata>) => string;
|
|
11
12
|
export declare const getElementConfig: (type: ELEMENT_TYPE) => ElementConfig;
|
|
12
13
|
export declare const doesElementSupportIO: (type: ELEMENT_TYPE) => boolean;
|
|
13
|
-
export declare function stringifyElementMetadata(elementMetadata:
|
|
14
|
+
export declare function stringifyElementMetadata(elementMetadata: ElementDefaultMetadata): string;
|
|
14
15
|
export declare const isValidScript: (script?: string | undefined) => boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Type } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { UIDefinitionMetadata } from '@veloce/sdk/core';
|
|
3
|
+
import { ElementMetadata } from '../types';
|
|
3
4
|
export declare class ElementsResolver {
|
|
4
5
|
private uiDef;
|
|
5
6
|
readonly elements: ElementMetadata[];
|
package/cms/utils/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ElementMetadata, ElementPath } from '../types';
|
|
1
|
+
import { ElementMetadata, ElementPath, PathBlock } from '../types';
|
|
2
|
+
export declare const parseBoundPath: (path: string) => PathBlock[];
|
|
2
3
|
export declare const parsePath: (path: string) => ElementPath;
|
|
3
4
|
export declare const findElementByModule: (elements: ElementMetadata[], module: string, elementName: string) => ElementMetadata | undefined;
|
|
4
5
|
export declare const getAbsolutePath: (elements: ElementMetadata[], subject: ElementMetadata, path: ElementPath) => string | undefined;
|