@veloceapps/sdk 6.0.0-4 → 6.0.0-40
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/veloceapps-sdk-cms.umd.js +1409 -822
- package/bundles/veloceapps-sdk-cms.umd.js.map +1 -1
- package/bundles/veloceapps-sdk-core.umd.js +735 -610
- package/bundles/veloceapps-sdk-core.umd.js.map +1 -1
- package/bundles/veloceapps-sdk-runtime.umd.js +209 -142
- package/bundles/veloceapps-sdk-runtime.umd.js.map +1 -1
- package/bundles/veloceapps-sdk.umd.js +361 -298
- package/bundles/veloceapps-sdk.umd.js.map +1 -1
- package/cms/components/element-children/element-children.component.d.ts +13 -3
- package/cms/components/element-children/element-children.module.d.ts +4 -2
- 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 +3 -3
- package/cms/components/preview/index.d.ts +1 -0
- package/cms/components/preview/preview.component.d.ts +9 -8
- package/cms/components/preview/preview.module.d.ts +2 -1
- package/cms/components/preview/preview.types.d.ts +11 -0
- package/cms/index.d.ts +2 -0
- package/cms/launcher.module.d.ts +3 -1
- 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 +2 -0
- package/cms/modules/runtime/runtime.module.d.ts +8 -0
- package/cms/modules/runtime/services/compilation.service.d.ts +18 -0
- package/cms/modules/runtime/services/runtime-editor.service.d.ts +18 -0
- package/cms/modules/runtime/services/runtime.service.d.ts +27 -0
- package/cms/modules/runtime/tokens.d.ts +3 -0
- package/cms/{types → modules/runtime/types}/compilation.types.d.ts +1 -1
- package/cms/modules/runtime/types/runtime.actions.d.ts +9 -0
- package/cms/plugins/element-hover.plugin.d.ts +32 -0
- package/cms/services/index.d.ts +0 -1
- package/cms/services/io-provider.service.d.ts +3 -3
- package/cms/types/common.types.d.ts +1 -1
- package/cms/types/configuration.types.d.ts +1 -0
- package/cms/types/index.d.ts +1 -1
- package/cms/utils/elements-resolver.d.ts +3 -2
- package/cms/utils/index.d.ts +1 -0
- package/cms/utils/path.utils.d.ts +0 -1
- package/cms/utils/ui-definition.utils.d.ts +6 -0
- package/cms/vendor-map.d.ts +26 -14
- package/core/modules/configuration/services/configuration-runtime.service.d.ts +2 -4
- package/core/modules/configuration/services/configuration.service.d.ts +6 -4
- package/core/modules/configuration/types/configuration-runtime.types.d.ts +0 -2
- package/core/modules/flow-configuration/services/flow-configuration.service.d.ts +6 -3
- package/core/services/metric-calculation/metric-calculation.service.d.ts +5 -1
- package/core/services/quote-draft.service.d.ts +2 -2
- package/core/types/index.d.ts +0 -1
- package/core/types/ui-definition.types.d.ts +19 -4
- package/core/utils/index.d.ts +1 -0
- package/core/utils/line-item.utils.d.ts +2 -0
- package/core/utils/ui-definition.utils.d.ts +2 -0
- package/esm2015/cms/cms.elements.js +17 -4
- package/esm2015/cms/components/element-children/element-children.component.js +24 -8
- package/esm2015/cms/components/element-children/element-children.module.js +8 -6
- package/esm2015/cms/components/element-drop-handle/element-drop-handle.component.js +32 -0
- package/esm2015/cms/components/element-drop-handle/element-drop-handle.module.js +19 -0
- package/esm2015/cms/components/element-renderer/element-renderer.component.js +9 -9
- 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/index.js +2 -1
- package/esm2015/cms/components/preview/preview.component.js +21 -36
- package/esm2015/cms/components/preview/preview.module.js +7 -6
- package/esm2015/cms/components/preview/preview.types.js +2 -0
- package/esm2015/cms/directives/custom-template.directive.js +3 -3
- package/esm2015/cms/index.js +3 -1
- package/esm2015/cms/launcher.module.js +10 -9
- package/esm2015/cms/modules/federated/federated.component.js +3 -3
- package/esm2015/cms/modules/federated/federated.module.js +4 -4
- package/esm2015/cms/modules/migrations/index.js +3 -0
- package/esm2015/cms/modules/migrations/migrations.js +11 -0
- package/esm2015/cms/modules/migrations/migrations.module.js +15 -0
- package/esm2015/cms/modules/migrations/services/migrations.service.js +43 -0
- package/esm2015/cms/modules/migrations/types/migrations.types.js +2 -0
- package/esm2015/cms/modules/runtime/index.js +3 -0
- package/esm2015/cms/modules/runtime/runtime.module.js +32 -0
- package/esm2015/cms/modules/runtime/services/compilation.service.js +84 -0
- package/esm2015/cms/modules/runtime/services/runtime-editor.service.js +27 -0
- package/esm2015/cms/modules/runtime/services/runtime.service.js +74 -0
- package/esm2015/cms/modules/runtime/tokens.js +3 -0
- package/esm2015/cms/modules/runtime/types/compilation.types.js +2 -0
- package/esm2015/cms/modules/runtime/types/runtime.actions.js +2 -0
- package/esm2015/cms/plugins/configuration.plugin.js +12 -4
- package/esm2015/cms/plugins/element-hover.plugin.js +157 -0
- package/esm2015/cms/plugins/io.plugin.js +3 -3
- package/esm2015/cms/plugins/script.plugin.js +3 -3
- package/esm2015/cms/services/element-context.service.js +3 -3
- package/esm2015/cms/services/index.js +1 -2
- package/esm2015/cms/services/integration.state.js +3 -3
- package/esm2015/cms/services/io-provider.service.js +9 -9
- package/esm2015/cms/services/templates.service.js +3 -3
- 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 -2
- package/esm2015/cms/utils/elements-resolver.js +18 -8
- package/esm2015/cms/utils/index.js +2 -1
- package/esm2015/cms/utils/path.utils.js +2 -13
- package/esm2015/cms/utils/ui-definition.utils.js +82 -0
- package/esm2015/cms/vendor-map.js +11 -4
- package/esm2015/core/core.module.js +4 -4
- package/esm2015/core/modules/configuration/configuration.module.js +4 -4
- package/esm2015/core/modules/configuration/services/configuration-runtime.service.js +5 -10
- package/esm2015/core/modules/configuration/services/configuration.service.js +27 -24
- package/esm2015/core/modules/configuration/services/runtime-context.service.js +3 -3
- package/esm2015/core/modules/configuration/types/configuration-runtime.types.js +1 -1
- package/esm2015/core/modules/flow-configuration/flow-configuration.module.js +4 -4
- package/esm2015/core/modules/flow-configuration/services/flow-configuration.service.js +17 -9
- package/esm2015/core/modules/flow-configuration/services/flow-update.service.js +3 -3
- package/esm2015/core/services/context.service.js +3 -3
- package/esm2015/core/services/metric-calculation/metric-calculation.service.js +18 -9
- package/esm2015/core/services/product-images.service.js +3 -3
- package/esm2015/core/services/quote-draft.service.js +7 -7
- package/esm2015/core/types/index.js +1 -2
- package/esm2015/core/types/ui-definition.types.js +2 -2
- package/esm2015/core/utils/index.js +2 -1
- package/esm2015/core/utils/line-item.utils.js +27 -11
- package/esm2015/core/utils/ui-definition.utils.js +9 -0
- package/esm2015/runtime/components/component-preview/component-preview.component.js +4 -4
- package/esm2015/runtime/components/section-renderer/section-renderer.component.js +3 -3
- package/esm2015/runtime/components/ui-runtime/runtime.component.js +3 -3
- package/esm2015/runtime/components/ui-runtime-preview/runtime-preview.component.js +3 -3
- package/esm2015/runtime/execution/components/children-placeholder/children-placeholder.component.js +6 -6
- package/esm2015/runtime/execution/components/context-provider/context-provider.component.js +3 -3
- package/esm2015/runtime/execution/components/execution-section-renderer/execution-section-renderer.component.js +3 -3
- package/esm2015/runtime/execution/components/federated/federated.component.js +3 -3
- 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 +3 -3
- package/esm2015/runtime/execution/components/velo-port-dropdown/velo-port-dropdown.component.js +3 -3
- package/esm2015/runtime/execution/components/velo-port-radio/velo-port-radio.component.js +3 -3
- package/esm2015/runtime/execution/components/velo-type/velo-type.component.js +3 -3
- package/esm2015/runtime/execution/directives/section-script.directive.js +3 -3
- package/esm2015/runtime/execution/directives/sf-query.directive.js +3 -3
- package/esm2015/runtime/execution/directives/velo-attribute.directive.js +3 -3
- package/esm2015/runtime/execution/directives/velo-port.directive.js +18 -18
- package/esm2015/runtime/execution/directives/vl-approval.directive.js +3 -3
- package/esm2015/runtime/execution/directives/vl-document-attachments.directive.js +3 -3
- package/esm2015/runtime/execution/directives/vl-document-templates.directive.js +3 -3
- package/esm2015/runtime/execution/directives/vl-quote.directive.js +4 -4
- package/esm2015/runtime/execution/directives/vl-ramp.directive.js +3 -3
- package/esm2015/runtime/execution/runtime-execution.module.js +4 -4
- package/esm2015/runtime/runtime.module.js +4 -4
- package/esm2015/runtime/services/cart.service.js +3 -3
- package/esm2015/runtime/services/collapsible-state.service.js +3 -3
- package/esm2015/runtime/services/configuration.service.js +4 -4
- package/esm2015/runtime/services/current-state.service.js +3 -3
- package/esm2015/runtime/services/form-scope.service.js +3 -3
- package/esm2015/runtime/services/product-model-cache.service.js +3 -3
- package/esm2015/runtime/services/runtime-context.service.js +3 -3
- package/esm2015/runtime/services/runtime-form.service.js +3 -3
- package/esm2015/runtime/services/runtime.service.js +4 -4
- package/esm2015/runtime/services/section-helper.service.js +3 -3
- package/esm2015/runtime/services/section-scope.service.js +3 -3
- package/esm2015/runtime/services/section-store.service.js +3 -3
- package/esm2015/runtime/services/section.service.js +6 -6
- package/esm2015/runtime/types/index.js +2 -1
- package/esm2015/runtime/types/quote-states.types.js +2 -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 +3 -3
- package/esm2015/src/components/doc-gen/doc-gen.module.js +4 -4
- package/esm2015/src/components/header/cart-overlay/cart-preview.component.js +3 -3
- package/esm2015/src/components/header/cart-overlay/cart-preview.module.js +4 -4
- package/esm2015/src/components/header/header.component.js +8 -9
- package/esm2015/src/components/header/header.module.js +4 -4
- package/esm2015/src/components/header/metrics/metrics.component.js +79 -67
- package/esm2015/src/components/header/metrics/metrics.definitions.js +1 -8
- package/esm2015/src/components/header/metrics/metrics.module.js +4 -4
- package/esm2015/src/flow-routing.module.js +4 -4
- package/esm2015/src/flow.component.js +3 -3
- package/esm2015/src/flow.module.js +4 -4
- package/esm2015/src/guards/context.guard.js +3 -3
- package/esm2015/src/guards/product-unload.guard.js +3 -3
- package/esm2015/src/guards/root.guard.js +3 -3
- package/esm2015/src/pages/catalog/catalog.component.js +3 -3
- package/esm2015/src/pages/catalog/catalog.module.js +4 -4
- package/esm2015/src/pages/debug/debug.component.js +3 -3
- package/esm2015/src/pages/debug/debug.module.js +4 -4
- package/esm2015/src/pages/empty-account/empty-account.component.js +3 -3
- package/esm2015/src/pages/empty-account/empty-account.module.js +4 -4
- package/esm2015/src/pages/legacy-product/legacy-product.component.js +4 -4
- package/esm2015/src/pages/legacy-product/legacy-product.module.js +4 -4
- package/esm2015/src/pages/product/product.component.js +5 -12
- package/esm2015/src/pages/product/product.module.js +4 -4
- 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 +5 -8
- package/esm2015/src/pages/remote/remote.module.js +4 -4
- package/esm2015/src/pages/shopping-cart/shopping-cart.component.js +3 -3
- package/esm2015/src/pages/shopping-cart/shopping-cart.module.js +4 -4
- package/esm2015/src/resolvers/flow.resolver.js +3 -3
- package/esm2015/src/resolvers/quote.resolver.js +8 -8
- package/esm2015/src/services/doc-gen.service.js +3 -3
- package/esm2015/src/services/flow-dialog.service.js +3 -3
- package/esm2015/src/services/flow-router.service.js +3 -3
- package/esm2015/src/services/flow.service.js +3 -3
- package/esm2015/src/utils/flow.utils.js +3 -3
- package/fesm2015/veloceapps-sdk-cms.js +1181 -713
- package/fesm2015/veloceapps-sdk-cms.js.map +1 -1
- package/fesm2015/veloceapps-sdk-core.js +557 -517
- package/fesm2015/veloceapps-sdk-core.js.map +1 -1
- package/fesm2015/veloceapps-sdk-runtime.js +138 -138
- package/fesm2015/veloceapps-sdk-runtime.js.map +1 -1
- package/fesm2015/veloceapps-sdk.js +239 -244
- package/fesm2015/veloceapps-sdk.js.map +1 -1
- package/package.json +5 -3
- package/runtime/services/configuration.service.d.ts +2 -1
- package/runtime/services/runtime.service.d.ts +2 -1
- package/runtime/types/index.d.ts +1 -0
- package/src/components/header/metrics/metrics.component.d.ts +15 -6
- package/src/components/header/metrics/metrics.definitions.d.ts +0 -3
- package/src/pages/product/product.component.d.ts +0 -1
- package/cms/services/dynamic-module.service.d.ts +0 -15
- package/cms/services/launcher.service.d.ts +0 -18
- package/esm2015/cms/services/dynamic-module.service.js +0 -33
- package/esm2015/cms/services/launcher.service.js +0 -58
- package/esm2015/cms/types/compilation.types.js +0 -2
- package/esm2015/core/types/quote-states.types.js +0 -2
- /package/{core → runtime}/types/quote-states.types.d.ts +0 -0
@@ -1,10 +1,20 @@
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy } from '@angular/core';
|
2
|
+
import { Observable } from 'rxjs';
|
3
|
+
import { RuntimeEditorService } from '../../modules/runtime/services/runtime-editor.service';
|
4
|
+
import { RuntimeService } from '../../modules/runtime/services/runtime.service';
|
1
5
|
import { ElementContextService } from '../../services/element-context.service';
|
2
6
|
import { ElementMetadata } from '../../types/common.types';
|
3
7
|
import * as i0 from "@angular/core";
|
4
|
-
export declare class ElementChildrenComponent {
|
8
|
+
export declare class ElementChildrenComponent implements OnDestroy {
|
5
9
|
private elementContext;
|
6
|
-
|
7
|
-
|
10
|
+
private runtimeService;
|
11
|
+
private runtimeEditorService;
|
12
|
+
private cdr;
|
13
|
+
metadata$: Observable<ElementMetadata | undefined>;
|
14
|
+
dragMode$: Observable<boolean>;
|
15
|
+
private destroyed$;
|
16
|
+
constructor(elementContext: ElementContextService, runtimeService: RuntimeService, runtimeEditorService: RuntimeEditorService, cdr: ChangeDetectorRef);
|
17
|
+
ngOnDestroy(): void;
|
8
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<ElementChildrenComponent, never>;
|
9
19
|
static ɵcmp: i0.ɵɵComponentDeclaration<ElementChildrenComponent, "element-children", never, {}, {}, never, never>;
|
10
20
|
}
|
@@ -1,8 +1,10 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
2
|
import * as i1 from "./element-children.component";
|
3
|
-
import * as i2 from "
|
3
|
+
import * as i2 from "@veloceapps/components";
|
4
|
+
import * as i3 from "../element-renderer/element-renderer.module";
|
5
|
+
import * as i4 from "../element-drop-handle/element-drop-handle.module";
|
4
6
|
export declare class ElementChildrenModule {
|
5
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<ElementChildrenModule, never>;
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ElementChildrenModule, [typeof i1.ElementChildrenComponent], [typeof i2.ElementRendererModule], [typeof i1.ElementChildrenComponent]>;
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ElementChildrenModule, [typeof i1.ElementChildrenComponent], [typeof i2.LetDirectiveModule, typeof i3.ElementRendererModule, typeof i4.ElementDropHandleModule], [typeof i1.ElementChildrenComponent]>;
|
7
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<ElementChildrenModule>;
|
8
10
|
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { DndDropEvent } from 'ngx-drag-drop';
|
2
|
+
import { RuntimeEditorService } from '../../modules/runtime/services/runtime-editor.service';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class ElementDropHandleComponent {
|
5
|
+
private runtimeService;
|
6
|
+
index: number;
|
7
|
+
parentPath: string;
|
8
|
+
constructor(runtimeService: RuntimeEditorService);
|
9
|
+
handleDrop(e: DndDropEvent): void;
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ElementDropHandleComponent, never>;
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ElementDropHandleComponent, "vl-element-drop-handle", never, { "index": "index"; "parentPath": "parentPath"; }, {}, never, never>;
|
12
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./element-drop-handle.component";
|
3
|
+
import * as i2 from "@angular/common";
|
4
|
+
import * as i3 from "ngx-drag-drop";
|
5
|
+
export declare class ElementDropHandleModule {
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ElementDropHandleModule, never>;
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ElementDropHandleModule, [typeof i1.ElementDropHandleComponent], [typeof i2.CommonModule, typeof i3.DndModule], [typeof i1.ElementDropHandleComponent]>;
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ElementDropHandleModule>;
|
9
|
+
}
|
@@ -1,13 +1,13 @@
|
|
1
1
|
import { ChangeDetectorRef, ElementRef, Injector, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
|
2
2
|
import { ConfigurationService } from '@veloceapps/sdk/core';
|
3
|
-
import {
|
3
|
+
import { RuntimeService } from '../../modules/runtime/services/runtime.service';
|
4
4
|
import { ElementContextService } from '../../services/element-context.service';
|
5
5
|
import { IOProviderService } from '../../services/io-provider.service';
|
6
6
|
import { ElementMetadata } from '../../types/common.types';
|
7
7
|
import * as i0 from "@angular/core";
|
8
8
|
export declare class ElementRendererComponent implements OnInit, OnDestroy {
|
9
9
|
private parentInjector;
|
10
|
-
private
|
10
|
+
private runtimeService;
|
11
11
|
private elementContext;
|
12
12
|
private ioProviderService;
|
13
13
|
private configurationService;
|
@@ -18,7 +18,7 @@ export declare class ElementRendererComponent implements OnInit, OnDestroy {
|
|
18
18
|
private factory?;
|
19
19
|
private refs;
|
20
20
|
private destroy$;
|
21
|
-
constructor(parentInjector: Injector,
|
21
|
+
constructor(parentInjector: Injector, runtimeService: RuntimeService, elementContext: ElementContextService, ioProviderService: IOProviderService, configurationService: ConfigurationService, elementRef: ElementRef, cdr: ChangeDetectorRef);
|
22
22
|
ngOnInit(): void;
|
23
23
|
ngOnDestroy(): void;
|
24
24
|
private createComponents;
|
@@ -1,34 +1,35 @@
|
|
1
|
-
import { OnDestroy, OnInit } from '@angular/core';
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
2
2
|
import { ConfigurationRuntimeService, ConfigurationService, UIDefinition } from '@veloceapps/sdk/core';
|
3
3
|
import { MessageService } from 'primeng/api';
|
4
4
|
import { BehaviorSubject } from 'rxjs';
|
5
|
+
import { RuntimeService } from '../../modules/runtime/services/runtime.service';
|
5
6
|
import { IntegrationState } from '../../services';
|
6
|
-
import { LauncherService } from '../../services/launcher.service';
|
7
7
|
import { ElementMetadata } from '../../types/common.types';
|
8
|
+
import { CMSPreviewConfig } from './preview.types';
|
8
9
|
import * as i0 from "@angular/core";
|
9
10
|
interface State {
|
10
11
|
loading: boolean;
|
11
12
|
failure: boolean;
|
12
13
|
}
|
13
14
|
export declare class PreviewComponent implements OnInit, OnDestroy {
|
14
|
-
private
|
15
|
+
private runtimeService;
|
15
16
|
private configurationService;
|
16
17
|
private messageService;
|
17
|
-
private
|
18
|
+
private configurationRuntimeService;
|
18
19
|
private integrationState;
|
20
|
+
private cdr;
|
19
21
|
modelId?: string;
|
20
22
|
uiDefinition?: UIDefinition;
|
21
|
-
|
23
|
+
config?: CMSPreviewConfig;
|
22
24
|
state$: BehaviorSubject<State>;
|
23
25
|
elements: ElementMetadata[];
|
24
26
|
private destroy$;
|
25
|
-
constructor(
|
27
|
+
constructor(runtimeService: RuntimeService, configurationService: ConfigurationService, messageService: MessageService, configurationRuntimeService: ConfigurationRuntimeService, integrationState: IntegrationState, cdr: ChangeDetectorRef);
|
26
28
|
ngOnInit(): void;
|
27
29
|
ngOnDestroy(): void;
|
28
30
|
private initializeConfiguration$;
|
29
|
-
private elementToMetadataSafe;
|
30
31
|
private startPreview;
|
31
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<PreviewComponent, never>;
|
32
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PreviewComponent, "vl-cms-preview", never, { "modelId": "modelId"; "uiDefinition": "uiDefinition"; "
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PreviewComponent, "vl-cms-preview", never, { "modelId": "modelId"; "uiDefinition": "uiDefinition"; "config": "config"; }, {}, never, never>;
|
33
34
|
}
|
34
35
|
export {};
|
@@ -4,8 +4,9 @@ import * as i2 from "@angular/common";
|
|
4
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
|
+
import * as i6 from "../element-drop-handle/element-drop-handle.module";
|
7
8
|
export declare class PreviewModule {
|
8
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<PreviewModule, never>;
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PreviewModule, [typeof i1.PreviewComponent], [typeof i2.CommonModule, typeof i3.LoaderModule, typeof i4.ElementRendererModule, typeof i5.ElementChildrenModule], [typeof i1.PreviewComponent]>;
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PreviewModule, [typeof i1.PreviewComponent], [typeof i2.CommonModule, typeof i3.LoaderModule, typeof i4.ElementRendererModule, typeof i5.ElementChildrenModule, typeof i6.ElementDropHandleModule], [typeof i1.PreviewComponent]>;
|
10
11
|
static ɵinj: i0.ɵɵInjectorDeclaration<PreviewModule>;
|
11
12
|
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
export interface CMSPreviewConfig {
|
2
|
+
/**
|
3
|
+
* When `true`, IntegrationState keeps data on component destroy
|
4
|
+
*/
|
5
|
+
suppressClearState?: boolean;
|
6
|
+
/**
|
7
|
+
* When `true`, preview adds additional components/plugins needed for UIBuilder
|
8
|
+
* (like element hover/selection or Drag&Drop zones)
|
9
|
+
*/
|
10
|
+
uiBuilderMode?: boolean;
|
11
|
+
}
|
package/cms/index.d.ts
CHANGED
@@ -5,6 +5,8 @@ export * from './decorators';
|
|
5
5
|
export * from './injection-tokens';
|
6
6
|
export * from './launcher.module';
|
7
7
|
export * from './modules/federated/export';
|
8
|
+
export * from './modules/migrations';
|
9
|
+
export * from './modules/runtime';
|
8
10
|
export * from './services';
|
9
11
|
export * from './types';
|
10
12
|
export * from './utils';
|
package/cms/launcher.module.d.ts
CHANGED
@@ -3,8 +3,10 @@ import * as i1 from "@angular/common";
|
|
3
3
|
import * as i2 from "@veloceapps/core";
|
4
4
|
import * as i3 from "@veloceapps/api";
|
5
5
|
import * as i4 from "@veloceapps/sdk/core";
|
6
|
+
import * as i5 from "./modules/runtime/runtime.module";
|
7
|
+
import * as i6 from "./components/preview/preview.module";
|
6
8
|
export declare class LauncherModule {
|
7
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<LauncherModule, never>;
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<LauncherModule, never, [typeof i1.CommonModule, typeof i2.CoreModule, typeof i3.ApiModule, typeof i4.SdkCoreModule],
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<LauncherModule, never, [typeof i1.CommonModule, typeof i2.CoreModule, typeof i3.ApiModule, typeof i4.SdkCoreModule, typeof i5.RuntimeModule, typeof i6.PreviewModule], [typeof i6.PreviewModule]>;
|
9
11
|
static ɵinj: i0.ɵɵInjectorDeclaration<LauncherModule>;
|
10
12
|
}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
export declare class MigrationsModule {
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MigrationsModule, never>;
|
4
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MigrationsModule, never, never, never>;
|
5
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MigrationsModule>;
|
6
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { ToastService } from '@veloceapps/components';
|
2
|
+
import { UIDefinition } from '@veloceapps/sdk/core';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class MigrationsService {
|
5
|
+
private toastService;
|
6
|
+
constructor(toastService: ToastService);
|
7
|
+
migrateUIDefinition(uiDef: UIDefinition): UIDefinition | undefined;
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MigrationsService, never>;
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MigrationsService>;
|
10
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "@angular/common";
|
3
|
+
import * as i2 from "@veloceapps/core";
|
4
|
+
export declare class RuntimeModule {
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeModule, never>;
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<RuntimeModule, never, [typeof i1.CommonModule, typeof i2.CoreModule], never>;
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<RuntimeModule>;
|
8
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { Compiler, NgModule, Type } from '@angular/core';
|
2
|
+
import { UIDefinition } from '@veloceapps/sdk/core';
|
3
|
+
import { Observable } from 'rxjs';
|
4
|
+
import { CompilationResult } from '../../../modules/runtime/types/compilation.types';
|
5
|
+
import { ElementMetadata } from '../../../types/common.types';
|
6
|
+
import * as i0 from "@angular/core";
|
7
|
+
export declare class CompilationService {
|
8
|
+
private compiler;
|
9
|
+
private uiDefinitionMeta?;
|
10
|
+
private elementsResolver?;
|
11
|
+
constructor(compiler: Compiler);
|
12
|
+
compileUIDefinition$(uiDefinition: UIDefinition): Observable<CompilationResult>;
|
13
|
+
compileElement$(element: ElementMetadata): Observable<CompilationResult>;
|
14
|
+
clearModuleCache(modules: Type<NgModule>[]): void;
|
15
|
+
private getModule;
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CompilationService, never>;
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CompilationService>;
|
18
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { Patch } from 'rfc6902';
|
2
|
+
import { BehaviorSubject, Observable, ReplaySubject } from 'rxjs';
|
3
|
+
import { RuntimeElementDeleted, RuntimeElementDropped } from '../types/runtime.actions';
|
4
|
+
import { RuntimeService } from './runtime.service';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
export declare class RuntimeEditorService {
|
7
|
+
private runtimeService;
|
8
|
+
private editorModeSubj$;
|
9
|
+
dragMode$: BehaviorSubject<boolean>;
|
10
|
+
elementDropped$: ReplaySubject<RuntimeElementDropped>;
|
11
|
+
elementDeleted$: ReplaySubject<RuntimeElementDeleted>;
|
12
|
+
editorMode$: Observable<boolean>;
|
13
|
+
constructor(runtimeService: RuntimeService);
|
14
|
+
applyPatch$(patch: Patch): Observable<void>;
|
15
|
+
toggleEditorMode(): void;
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeEditorService, never>;
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RuntimeEditorService>;
|
18
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { ComponentFactory, Injector, NgModule, Type } from '@angular/core';
|
2
|
+
import { UIDefinition } from '@veloceapps/sdk/core';
|
3
|
+
import { Patch } from 'rfc6902';
|
4
|
+
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
5
|
+
import { CMSPreviewConfig } from '../../../components/preview/preview.types';
|
6
|
+
import { ElementMetadata } from '../../../types';
|
7
|
+
import * as i0 from "@angular/core";
|
8
|
+
export declare class RuntimeService {
|
9
|
+
private injector;
|
10
|
+
modules: Type<NgModule>[];
|
11
|
+
componentFactories: Record<string, ComponentFactory<any>>;
|
12
|
+
applicationTree: ElementMetadata[];
|
13
|
+
config?: CMSPreviewConfig;
|
14
|
+
isInitialized$: BehaviorSubject<boolean>;
|
15
|
+
updated$: Subject<void>;
|
16
|
+
private compilationService;
|
17
|
+
constructor(injector: Injector);
|
18
|
+
initialize$(uiDefinition?: UIDefinition, config?: CMSPreviewConfig): Observable<ElementMetadata[]>;
|
19
|
+
applyPatch$(patch: Patch): Observable<void>;
|
20
|
+
getCompiledElement$(path: string): Observable<ElementMetadata | undefined>;
|
21
|
+
clear(): void;
|
22
|
+
private addElement$;
|
23
|
+
private deleteElement;
|
24
|
+
private addComponentFactories;
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeService, never>;
|
26
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RuntimeService>;
|
27
|
+
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ModuleWithComponentFactories, NgModule } from '@angular/core';
|
2
|
-
import { ElementMetadata } from '
|
2
|
+
import { ElementMetadata } from '../../../types/common.types';
|
3
3
|
export interface CompilationResult {
|
4
4
|
elements: ElementMetadata[];
|
5
5
|
module: ModuleWithComponentFactories<NgModule>;
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
2
|
+
import { ElementComponent } from '../components/element.component';
|
3
|
+
import { PluginComponent } from '../components/plugin.component';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
export declare class ElementHoverPlugin implements PluginComponent, OnDestroy {
|
6
|
+
host: ElementComponent;
|
7
|
+
private readonly hoverClassName;
|
8
|
+
private readonly color;
|
9
|
+
private el;
|
10
|
+
private metadata;
|
11
|
+
private document;
|
12
|
+
private runtimeEditorService;
|
13
|
+
private overlayEl?;
|
14
|
+
private highlighted;
|
15
|
+
private destroyed$;
|
16
|
+
private mouseOverListenerBound;
|
17
|
+
private mouseLeaveListenerBound;
|
18
|
+
constructor(host: ElementComponent);
|
19
|
+
ngOnDestroy(): void;
|
20
|
+
private attachListeners;
|
21
|
+
private detachListeners;
|
22
|
+
private mouseOverListener;
|
23
|
+
private mouseLeaveListener;
|
24
|
+
private addHighlight;
|
25
|
+
private removeHighlight;
|
26
|
+
private createContainer;
|
27
|
+
private addRemoveButton;
|
28
|
+
private addElementName;
|
29
|
+
private deleteRemoveButton;
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ElementHoverPlugin, never>;
|
31
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ElementHoverPlugin, never, never, {}, {}, never>;
|
32
|
+
}
|
package/cms/services/index.d.ts
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import { BehaviorSubject, Observable } from 'rxjs';
|
2
|
+
import { RuntimeService } from '../modules/runtime/services/runtime.service';
|
2
3
|
import { ElementMetadata } from '../types/common.types';
|
3
|
-
import { DynamicModuleService } from './dynamic-module.service';
|
4
4
|
import * as i0 from "@angular/core";
|
5
5
|
export declare class IOProviderService {
|
6
|
-
private
|
6
|
+
private runtimeService;
|
7
7
|
private inputs;
|
8
|
-
constructor(
|
8
|
+
constructor(runtimeService: RuntimeService);
|
9
9
|
connect(el: ElementMetadata, name: string, target?: string | null): Observable<any> | undefined;
|
10
10
|
provide(el: ElementMetadata, name: string, target?: string | null): BehaviorSubject<any> | undefined;
|
11
11
|
private resolveTarget;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Dictionary } from 'lodash';
|
2
2
|
import { Entity } from '../engine/models/entity';
|
3
3
|
import { Plugin } from '../engine/models/plugin';
|
4
|
-
export declare type ELEMENT_TYPE = 'CUSTOM' | 'CONTAINER' | 'SERVICE' | 'REFERENCE';
|
4
|
+
export declare type ELEMENT_TYPE = 'CUSTOM' | 'CONTAINER' | 'SERVICE' | 'REFERENCE' | 'PAGE' | 'PAGE_LAYOUT' | 'LAYOUT_REGION';
|
5
5
|
export declare type ElementStyleDeclaration = Partial<CSSStyleDeclaration>;
|
6
6
|
export interface ElementConfig {
|
7
7
|
component: typeof Entity;
|
package/cms/types/index.d.ts
CHANGED
@@ -3,10 +3,11 @@ import { UIDefinitionMetadata } from '@veloceapps/sdk/core';
|
|
3
3
|
import { ElementMetadata } from '../types';
|
4
4
|
export declare class ElementsResolver {
|
5
5
|
private uiDef;
|
6
|
-
|
6
|
+
elements: ElementMetadata[];
|
7
7
|
private renderableElements;
|
8
8
|
private sharedElements;
|
9
|
-
constructor(uiDef: UIDefinitionMetadata, elements: ElementMetadata[]);
|
9
|
+
constructor(uiDef: UIDefinitionMetadata, elements: ElementMetadata[], sharedElements?: ElementMetadata[]);
|
10
|
+
addElement(element: ElementMetadata): void;
|
10
11
|
getNgComponents(): Type<any>[];
|
11
12
|
private transpile;
|
12
13
|
private transpileScripts;
|
package/cms/utils/index.d.ts
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
import { ElementMetadata, ElementPath, PathBlock } from '../types';
|
2
2
|
export declare const parseBoundPath: (path: string) => PathBlock[];
|
3
3
|
export declare const parsePath: (path: string) => ElementPath;
|
4
|
-
export declare const findElementByModule: (elements: ElementMetadata[], module: string, elementName: string) => ElementMetadata | undefined;
|
5
4
|
export declare const getAbsolutePath: (elements: ElementMetadata[], subject: ElementMetadata, path: ElementPath) => string | undefined;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { ElementMetadata } from '../types';
|
2
|
+
export declare function getElementUniqueName<T>(collection: T[], name: string, comparator: (name: string) => (value: T, index?: number, array?: T[]) => boolean): string;
|
3
|
+
export declare const insertElement: (source: ElementMetadata[], target: ElementMetadata, path: string, index: number) => ElementMetadata[];
|
4
|
+
export declare const removeElement: (source: ElementMetadata[], path: string) => ElementMetadata[];
|
5
|
+
export declare const findElementByPath: (source: ElementMetadata[], path: string) => ElementMetadata | undefined;
|
6
|
+
export declare const findElementByModule: (elements: ElementMetadata[], module: string, elementName: string) => ElementMetadata | undefined;
|
package/cms/vendor-map.d.ts
CHANGED
@@ -1,7 +1,8 @@
|
|
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 '@veloceapps/api';
|
4
|
-
import {
|
3
|
+
import { CatalogApiService, ConfigurationSettingsApiService, DeltaApiService, DocumentAttachmentApiService, DocumentTemplatesApiService, PicklistsApiService, PriceApiService, QuoteApiService, RampApiService, SalesforceApiService, ShoppingCartSettingsApiService } from '@veloceapps/api';
|
4
|
+
import { ToastService } from '@veloceapps/components';
|
5
|
+
import { ConfigurationService, ContextService, FlowConfigurationService, LineItemWorker, ProductImagesService, QuoteDraftService } from '@veloceapps/sdk/core';
|
5
6
|
import * as lodash from 'lodash';
|
6
7
|
import * as rxjs from 'rxjs';
|
7
8
|
import * as rxjsOperators from 'rxjs/operators';
|
@@ -18,7 +19,7 @@ export declare const vendorMap: {
|
|
18
19
|
VERSION: string;
|
19
20
|
templateSettings: lodash.TemplateSettings;
|
20
21
|
chunk<T>(array: lodash.List<T> | null | undefined, size?: number | undefined): T[][];
|
21
|
-
compact<T_1>(array: lodash.List<
|
22
|
+
compact<T_1>(array: lodash.List<T_1 | lodash.Falsey> | null | undefined): T_1[];
|
22
23
|
concat<T_2>(...values: lodash.Many<T_2>[]): T_2[];
|
23
24
|
difference<T_3>(array: lodash.List<T_3> | null | undefined, ...values: lodash.List<T_3>[]): T_3[];
|
24
25
|
differenceBy<T1, T2>(array: lodash.List<T1> | null | undefined, values: lodash.List<T2>, iteratee: lodash.ValueIteratee<T1 | T2>): T1[];
|
@@ -316,6 +317,7 @@ export declare const vendorMap: {
|
|
316
317
|
}>(value?: T_184 | undefined): boolean;
|
317
318
|
isEmpty(value: string): value is "";
|
318
319
|
isEmpty(value: lodash.List<any> | Map<any, any> | Set<any> | null | undefined): boolean;
|
320
|
+
isEmpty(value: object): boolean;
|
319
321
|
isEmpty<T_185 extends object>(value: T_185 | null | undefined): value is lodash.EmptyObjectOf<T_185> | null | undefined;
|
320
322
|
isEmpty(value?: any): boolean;
|
321
323
|
isEqual(value: any, other: any): boolean;
|
@@ -458,6 +460,8 @@ export declare const vendorMap: {
|
|
458
460
|
get<T_212, TDefault_4>(object: lodash.NumericDictionary<T_212> | null | undefined, path: number, defaultValue: TDefault_4): T_212 | TDefault_4;
|
459
461
|
get<TDefault_5>(object: null | undefined, path: lodash.PropertyPath, defaultValue: TDefault_5): TDefault_5;
|
460
462
|
get(object: null | undefined, path: lodash.PropertyPath): undefined;
|
463
|
+
get<TObject_47, TPath extends string>(data: TObject_47, path: TPath): string extends TPath ? any : lodash.GetFieldType<TObject_47, TPath>;
|
464
|
+
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>;
|
461
465
|
get(object: any, path: lodash.PropertyPath, defaultValue?: any): any;
|
462
466
|
has<T_213>(object: T_213, path: lodash.PropertyPath): boolean;
|
463
467
|
hasIn<T_214>(object: T_214, path: lodash.PropertyPath): boolean;
|
@@ -480,15 +484,15 @@ export declare const vendorMap: {
|
|
480
484
|
mapValues<T_225>(obj: lodash.Dictionary<T_225> | lodash.NumericDictionary<T_225> | null | undefined): lodash.Dictionary<T_225>;
|
481
485
|
mapValues<T_226 extends object>(obj: T_226): T_226;
|
482
486
|
mapValues<T_227 extends object>(obj: T_227 | null | undefined): Partial<T_227>;
|
483
|
-
merge<
|
484
|
-
merge<
|
485
|
-
merge<
|
486
|
-
merge<
|
487
|
+
merge<TObject_49, TSource_7>(object: TObject_49, source: TSource_7): TObject_49 & TSource_7;
|
488
|
+
merge<TObject_50, TSource1_21, TSource2_21>(object: TObject_50, source1: TSource1_21, source2: TSource2_21): TObject_50 & TSource1_21 & TSource2_21;
|
489
|
+
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;
|
490
|
+
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;
|
487
491
|
merge(object: any, ...otherArgs: any[]): any;
|
488
|
-
mergeWith<
|
489
|
-
mergeWith<
|
490
|
-
mergeWith<
|
491
|
-
mergeWith<
|
492
|
+
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;
|
493
|
+
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;
|
494
|
+
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;
|
495
|
+
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;
|
492
496
|
mergeWith(object: any, ...otherArgs: any[]): any;
|
493
497
|
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]>>;
|
494
498
|
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>;
|
@@ -497,7 +501,7 @@ export declare const vendorMap: {
|
|
497
501
|
omitBy<T_232>(object: lodash.NumericDictionary<T_232> | null | undefined, predicate?: lodash.ValueKeyIteratee<T_232> | undefined): lodash.NumericDictionary<T_232>;
|
498
502
|
omitBy<T_233 extends object>(object: T_233 | null | undefined, predicate: lodash.ValueKeyIteratee<T_233[keyof T_233]>): Partial<T_233>;
|
499
503
|
pick<T_234 extends object, U_4 extends keyof T_234>(object: T_234, ...props: lodash.Many<U_4>[]): Pick<T_234, U_4>;
|
500
|
-
pick<T_235>(object: T_235 | null | undefined, ...props: lodash.PropertyPath[]): Partial<T_235>;
|
504
|
+
pick<T_235>(object: T_235 | null | undefined, ...props: lodash.Many<lodash.PropertyPath>[]): Partial<T_235>;
|
501
505
|
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>;
|
502
506
|
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>;
|
503
507
|
pickBy<T_238>(object: lodash.Dictionary<T_238> | null | undefined, predicate?: lodash.ValueKeyIteratee<T_238> | undefined): lodash.Dictionary<T_238>;
|
@@ -581,7 +585,7 @@ export declare const vendorMap: {
|
|
581
585
|
conforms<T_264>(source: lodash.ConformsPredicateObject<T_264>): (value: T_264) => boolean;
|
582
586
|
constant<T_265>(value: T_265): () => T_265;
|
583
587
|
defaultTo<T_266>(value: T_266 | null | undefined, defaultValue: T_266): T_266;
|
584
|
-
defaultTo<T_267,
|
588
|
+
defaultTo<T_267, TDefault_7>(value: T_267 | null | undefined, defaultValue: TDefault_7): T_267 | TDefault_7;
|
585
589
|
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;
|
586
590
|
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;
|
587
591
|
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;
|
@@ -607,7 +611,7 @@ export declare const vendorMap: {
|
|
607
611
|
matchesProperty<T_272, V_1>(path: lodash.PropertyPath, srcValue: T_272): (value: V_1) => boolean;
|
608
612
|
method(path: lodash.PropertyPath, ...args: any[]): (object: any) => any;
|
609
613
|
methodOf(object: object, ...args: any[]): (path: lodash.PropertyPath) => any;
|
610
|
-
mixin<
|
614
|
+
mixin<TObject_57>(object: TObject_57, source: lodash.Dictionary<(...args: any[]) => any>, options?: lodash.MixinOptions | undefined): TObject_57;
|
611
615
|
mixin<TResult_44>(source: lodash.Dictionary<(...args: any[]) => any>, options?: lodash.MixinOptions | undefined): lodash.LoDashStatic;
|
612
616
|
noConflict(): lodash.LoDashStatic;
|
613
617
|
noop(...args: any[]): void;
|
@@ -642,6 +646,8 @@ export declare const vendorMap: {
|
|
642
646
|
insertLineItem: (lineItem: import("@veloceapps/core").LineItem, parentId: string, toInsert: import("@veloceapps/core").LineItem) => import("@veloceapps/core").LineItem;
|
643
647
|
removeLineItem: (lineItem: import("@veloceapps/core").LineItem, idToRemove: string) => import("@veloceapps/core").LineItem;
|
644
648
|
replaceLineItem: (lineItem: import("@veloceapps/core").LineItem, replaceTo: import("@veloceapps/core").LineItem) => import("@veloceapps/core").LineItem;
|
649
|
+
calculateCardinalityVariables: (lineItems: import("@veloceapps/core").LineItem[]) => Map<string, number>;
|
650
|
+
recalculateCardinalityVariables: (original: import("@veloceapps/core").LineItem, updated: import("@veloceapps/core").LineItem) => import("@veloceapps/core").LineItem;
|
645
651
|
mapAttributes: (attributes: import("@veloceapps/core").Attribute[]) => lodash.Dictionary<any>;
|
646
652
|
getAttributes: (attributes: import("@veloceapps/core").Attribute[], names?: string[] | undefined) => import("@veloceapps/core").Attribute[];
|
647
653
|
upsertAttributes: (originalAttributes: import("@veloceapps/core").Attribute[], attributesToUpsert: {
|
@@ -667,6 +673,7 @@ export declare const vendorMap: {
|
|
667
673
|
FlowConfigurationService: typeof FlowConfigurationService;
|
668
674
|
LineItemWorker: typeof LineItemWorker;
|
669
675
|
ProductImagesService: typeof ProductImagesService;
|
676
|
+
ContextService: typeof ContextService;
|
670
677
|
};
|
671
678
|
'@veloceapps/sdk/cms': {
|
672
679
|
TemplatesService: typeof TemplatesService;
|
@@ -704,6 +711,11 @@ export declare const vendorMap: {
|
|
704
711
|
DeltaApiService: typeof DeltaApiService;
|
705
712
|
PicklistsApiService: typeof PicklistsApiService;
|
706
713
|
PriceApiService: typeof PriceApiService;
|
714
|
+
ShoppingCartSettingsApiService: typeof ShoppingCartSettingsApiService;
|
715
|
+
ConfigurationSettingsApiService: typeof ConfigurationSettingsApiService;
|
716
|
+
};
|
717
|
+
'@veloceapps/components': {
|
718
|
+
ToastService: typeof ToastService;
|
707
719
|
};
|
708
720
|
};
|
709
721
|
export declare type VendorMap = typeof vendorMap;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ConfigurationApiService } from '@veloceapps/api';
|
2
|
-
import {
|
2
|
+
import { 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';
|
@@ -11,7 +11,6 @@ export declare class ConfigurationRuntimeService {
|
|
11
11
|
private contextService;
|
12
12
|
private runtimeContextService;
|
13
13
|
private _runtimeContext?;
|
14
|
-
private _assets?;
|
15
14
|
private _isInitialized;
|
16
15
|
initializationProps?: RuntimeInitializationProps;
|
17
16
|
uiDefinitionProperties: UIDefinitionProps;
|
@@ -20,7 +19,6 @@ export declare class ConfigurationRuntimeService {
|
|
20
19
|
initTestMode(modelId: string, uiDefinition: UIDefinition): any;
|
21
20
|
init(props: RuntimeInitializationProps): Observable<RuntimeContext | undefined>;
|
22
21
|
private id15to18;
|
23
|
-
getAsset(lineItem: LineItem): LineItem | undefined;
|
24
22
|
get isInitialized(): boolean;
|
25
23
|
get runtimeModel(): RuntimeModel | undefined;
|
26
24
|
get runtimeContext(): RuntimeContext | undefined;
|