@veloceapps/sdk 6.0.0-1 → 6.0.0-100
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/README.md +10 -2
- package/bundles/veloceapps-sdk-cms.umd.js +1270 -798
- package/bundles/veloceapps-sdk-cms.umd.js.map +1 -1
- package/bundles/veloceapps-sdk-core.umd.js +783 -650
- package/bundles/veloceapps-sdk-core.umd.js.map +1 -1
- package/bundles/veloceapps-sdk-runtime.umd.js +216 -150
- package/bundles/veloceapps-sdk-runtime.umd.js.map +1 -1
- package/bundles/veloceapps-sdk.umd.js +574 -309
- package/bundles/veloceapps-sdk.umd.js.map +1 -1
- package/cms/cms.actions.d.ts +2 -4
- 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/services/index.d.ts +1 -1
- package/cms/services/integration.state.d.ts +2 -3
- package/cms/services/io-provider.service.d.ts +3 -3
- package/cms/services/resources.service.d.ts +10 -0
- 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/types/integration.types.d.ts +5 -0
- 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 +51 -30
- 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/modules/flow-configuration/services/flow-update.service.d.ts +3 -2
- package/core/services/context.service.d.ts +1 -0
- 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.actions.js +1 -6
- 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 +11 -10
- 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/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 +2 -2
- package/esm2015/cms/services/integration.state.js +4 -4
- package/esm2015/cms/services/io-provider.service.js +9 -9
- package/esm2015/cms/services/resources.service.js +50 -0
- 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/types/integration.types.js +1 -1
- 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 +27 -10
- 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 +38 -34
- 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 +18 -10
- package/esm2015/core/modules/flow-configuration/services/flow-update.service.js +9 -9
- package/esm2015/core/services/context.service.js +7 -4
- 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 +11 -12
- 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 +16 -6
- package/esm2015/src/components/dialog/dialog.module.js +4 -4
- package/esm2015/src/components/dialog/dialog.types.js +1 -1
- 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 +39 -13
- 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 +18 -5
- 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 +5 -5
- package/esm2015/src/guards/root.guard.js +3 -3
- package/esm2015/src/pages/assets/assets.component.js +117 -0
- package/esm2015/src/pages/assets/assets.module.js +20 -0
- package/esm2015/src/pages/catalog/catalog.component.js +6 -6
- 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 +6 -6
- 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 +17 -12
- package/esm2015/src/services/doc-gen.service.js +3 -3
- package/esm2015/src/services/flow-dialog.service.js +5 -4
- package/esm2015/src/services/flow-router.service.js +12 -4
- package/esm2015/src/services/flow.service.js +12 -5
- package/esm2015/src/types/flow-customization.types.js +1 -1
- package/esm2015/src/utils/flow.utils.js +3 -3
- package/fesm2015/veloceapps-sdk-cms.js +1075 -718
- package/fesm2015/veloceapps-sdk-cms.js.map +1 -1
- package/fesm2015/veloceapps-sdk-core.js +573 -529
- package/fesm2015/veloceapps-sdk-core.js.map +1 -1
- package/fesm2015/veloceapps-sdk-runtime.js +145 -146
- package/fesm2015/veloceapps-sdk-runtime.js.map +1 -1
- package/fesm2015/veloceapps-sdk.js +446 -262
- 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/dialog/dialog.types.d.ts +1 -0
- package/src/components/header/header.component.d.ts +10 -3
- package/src/components/header/metrics/metrics.component.d.ts +15 -6
- package/src/components/header/metrics/metrics.definitions.d.ts +0 -3
- package/src/flow-routing.module.d.ts +4 -3
- package/src/pages/assets/assets.component.d.ts +32 -0
- package/src/pages/assets/assets.module.d.ts +10 -0
- package/src/pages/product/product.component.d.ts +0 -1
- package/src/resolvers/quote.resolver.d.ts +1 -0
- package/src/services/flow-router.service.d.ts +2 -0
- package/src/services/flow.service.d.ts +1 -0
- package/src/types/flow-customization.types.d.ts +1 -0
- 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 -57
- 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
package/cms/cms.actions.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { IntegrationAction
|
1
|
+
import { IntegrationAction } from './types';
|
2
2
|
export declare enum FlowAction {
|
3
3
|
FLOW_CONFIGURE_PRODUCT = "FLOW_CONFIGURE_PRODUCT",
|
4
4
|
FLOW_NAVIGATE_BACK = "FLOW_NAVIGATE_BACK",
|
@@ -8,8 +8,7 @@ export declare enum FlowAction {
|
|
8
8
|
FLOW_CLOSE_DOC_GEN = "FLOW_CLOSE_DOC_GEN",
|
9
9
|
FLOW_SWITCH_OBJECT = "FLOW_SWITCH_OBJECT",
|
10
10
|
REMOTE_APPLY = "REMOTE_APPLY",
|
11
|
-
REMOTE_CANCEL = "REMOTE_CANCEL"
|
12
|
-
SET_DEFAULT_METRICS = "SET_DEFAULT_METRICS"
|
11
|
+
REMOTE_CANCEL = "REMOTE_CANCEL"
|
13
12
|
}
|
14
13
|
export declare const ConfigureProductAction: ({ lineItemId, productId, }: {
|
15
14
|
lineItemId?: string | undefined;
|
@@ -25,4 +24,3 @@ export declare const RemoteCancelAction: () => IntegrationAction;
|
|
25
24
|
export declare const SwitchObjectAction: (payload: {
|
26
25
|
id: string;
|
27
26
|
}) => IntegrationAction;
|
28
|
-
export declare const SetDefaultMetrics: (metrics: Metric[]) => IntegrationAction;
|
@@ -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 will be cleared on component init
|
4
|
+
*/
|
5
|
+
clearStateOnInit?: 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>;
|
package/cms/services/index.d.ts
CHANGED
@@ -1,8 +1,7 @@
|
|
1
|
-
import { Dictionary } from 'lodash';
|
2
1
|
import { Observable } from 'rxjs';
|
3
|
-
import { IntegrationAction } from '../types/integration.types';
|
2
|
+
import { IntegrationAction, IntegrationStateModel } from '../types/integration.types';
|
4
3
|
import * as i0 from "@angular/core";
|
5
|
-
export declare class IntegrationState<S =
|
4
|
+
export declare class IntegrationState<S = IntegrationStateModel> {
|
6
5
|
private readonly stateSubj$;
|
7
6
|
private readonly action$;
|
8
7
|
get state$(): Observable<S>;
|
@@ -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;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { Observable } from 'rxjs';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class ResourcesService {
|
4
|
+
private scripts;
|
5
|
+
private loaded$;
|
6
|
+
loadScript(url: string): Observable<void>;
|
7
|
+
loadStyles(url: string): Observable<void>;
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResourcesService, never>;
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ResourcesService>;
|
10
|
+
}
|
@@ -5,7 +5,7 @@ export declare type ELEMENT_TYPE = 'CUSTOM' | 'CONTAINER' | 'SERVICE' | 'REFEREN
|
|
5
5
|
export declare type ElementStyleDeclaration = Partial<CSSStyleDeclaration>;
|
6
6
|
export interface ElementConfig {
|
7
7
|
component: typeof Entity;
|
8
|
-
plugins?: typeof Plugin[];
|
8
|
+
plugins?: (typeof Plugin)[];
|
9
9
|
defaultTemplate?: string;
|
10
10
|
suppressTemplate?: boolean;
|
11
11
|
suppressStyles?: boolean;
|
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;
|