@veloceapps/sdk 3.1.3 → 3.1.5

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.
Files changed (62) hide show
  1. package/bundles/veloce-sdk-cms.umd.js +108 -75
  2. package/bundles/veloce-sdk-cms.umd.js.map +1 -1
  3. package/bundles/veloce-sdk-core.umd.js +7 -1
  4. package/bundles/veloce-sdk-core.umd.js.map +1 -1
  5. package/bundles/veloce-sdk.umd.js +181 -98
  6. package/bundles/veloce-sdk.umd.js.map +1 -1
  7. package/cms/cms.actions.d.ts +12 -0
  8. package/cms/index.d.ts +2 -0
  9. package/cms/modules/federated/default-options.d.ts +4 -0
  10. package/cms/modules/federated/export.d.ts +1 -0
  11. package/cms/{components → modules}/federated/federated.component.d.ts +12 -22
  12. package/cms/{components → modules}/federated/federated.module.d.ts +3 -1
  13. package/cms/modules/federated/federated.types.d.ts +30 -0
  14. package/cms/modules/federated/federated.utils.d.ts +1 -0
  15. package/cms/services/integration.state.d.ts +1 -4
  16. package/cms/types/index.d.ts +1 -0
  17. package/cms/types/integration.types.d.ts +4 -0
  18. package/cms/utils/index.d.ts +0 -1
  19. package/cms/vendor-map.d.ts +8 -0
  20. package/core/modules/configuration/services/configuration.service.d.ts +1 -0
  21. package/esm2015/cms/cms.actions.js +17 -0
  22. package/esm2015/cms/index.js +3 -1
  23. package/esm2015/cms/modules/federated/default-options.js +5 -0
  24. package/esm2015/cms/modules/federated/export.js +2 -0
  25. package/esm2015/cms/modules/federated/federated.component.js +82 -0
  26. package/esm2015/cms/modules/federated/federated.module.js +19 -0
  27. package/esm2015/cms/modules/federated/federated.types.js +2 -0
  28. package/esm2015/cms/modules/federated/federated.utils.js +37 -0
  29. package/esm2015/cms/services/integration.state.js +1 -1
  30. package/esm2015/cms/services/launcher.service.js +2 -2
  31. package/esm2015/cms/types/index.js +2 -1
  32. package/esm2015/cms/types/integration.types.js +2 -0
  33. package/esm2015/cms/utils/index.js +1 -2
  34. package/esm2015/cms/vendor-map.js +4 -3
  35. package/esm2015/core/modules/configuration/services/configuration-runtime.service.js +2 -2
  36. package/esm2015/core/modules/configuration/services/configuration.service.js +7 -1
  37. package/esm2015/src/components/header/cart-overlay/cart-overlay.component.js +4 -4
  38. package/esm2015/src/components/header/header.component.js +3 -2
  39. package/esm2015/src/flow-routing.module.js +21 -3
  40. package/esm2015/src/guards/product-unload.guard.js +30 -0
  41. package/esm2015/src/pages/product/product.component.js +26 -38
  42. package/esm2015/src/services/flow-router.service.js +13 -5
  43. package/esm2015/src/services/flow.service.js +47 -12
  44. package/esm2015/src/services/fow-dialog.service.js +9 -1
  45. package/fesm2015/veloce-sdk-cms.js +96 -68
  46. package/fesm2015/veloce-sdk-cms.js.map +1 -1
  47. package/fesm2015/veloce-sdk-core.js +7 -1
  48. package/fesm2015/veloce-sdk-core.js.map +1 -1
  49. package/fesm2015/veloce-sdk.js +151 -70
  50. package/fesm2015/veloce-sdk.js.map +1 -1
  51. package/package.json +1 -1
  52. package/src/components/header/cart-overlay/cart-overlay.component.d.ts +1 -1
  53. package/src/components/header/header.component.d.ts +1 -0
  54. package/src/guards/product-unload.guard.d.ts +13 -0
  55. package/src/pages/product/product.component.d.ts +3 -6
  56. package/src/services/flow-router.service.d.ts +3 -1
  57. package/src/services/flow.service.d.ts +5 -1
  58. package/src/services/fow-dialog.service.d.ts +1 -0
  59. package/cms/utils/federated.util.d.ts +0 -6
  60. package/esm2015/cms/components/federated/federated.component.js +0 -81
  61. package/esm2015/cms/components/federated/federated.module.js +0 -16
  62. package/esm2015/cms/utils/federated.util.js +0 -37
@@ -1,6 +1,6 @@
1
1
  import { __decorate, __param, __awaiter, __rest } from 'tslib';
2
2
  import * as i0 from '@angular/core';
3
- import { InjectionToken, Component, ChangeDetectionStrategy, Inject, Injector, Injectable, Directive, ViewContainerRef, SkipSelf, ViewChild, Input, EventEmitter, TemplateRef, Output, NgModule, ViewEncapsulation } from '@angular/core';
3
+ import { InjectionToken, Component, ChangeDetectionStrategy, Inject, Injector, Injectable, Directive, ViewContainerRef, SkipSelf, ViewChild, Input, NgModule, ViewEncapsulation } from '@angular/core';
4
4
  import * as rxjs from 'rxjs';
5
5
  import { BehaviorSubject, Subject, takeUntil, map, filter, from, tap, of, switchMap, forkJoin, catchError } from 'rxjs';
6
6
  import * as lodash from 'lodash';
@@ -13,14 +13,39 @@ import * as angularForms from '@angular/forms';
13
13
  import { FormsModule, ReactiveFormsModule } from '@angular/forms';
14
14
  import * as i2 from '@veloce/sdk/core';
15
15
  import { ConfigurationService, LineItemWorker, generateLineItem, getAttributeValue, FlowConfigurationService, lineItemUtils, SdkCoreModule } from '@veloce/sdk/core';
16
+ import * as i1 from '@veloce/components';
17
+ import { LoaderModule } from '@veloce/components';
16
18
  import { transform } from '@babel/standalone';
17
19
  import { SalesforceApiService, QuoteApiService, DocumentTemplatesApiService, DocumentAttachmentApiService, RampApiService, CatalogApiService, ApiModule } from '@veloce/api';
18
20
  import * as rxjsOperators from 'rxjs/operators';
19
21
  import * as i3 from 'primeng/api';
20
- import * as i5 from '@veloce/components';
21
- import { LoaderModule } from '@veloce/components';
22
22
  import { DialogService } from 'primeng/dynamicdialog';
23
23
 
24
+ var FlowAction;
25
+ (function (FlowAction) {
26
+ FlowAction["FLOW_CONFIGURE_PRODUCT"] = "FLOW_CONFIGURE_PRODUCT";
27
+ FlowAction["FLOW_NAVIGATE_BACK"] = "FLOW_NAVIGATE_BACK";
28
+ FlowAction["FLOW_APPLY_PRODUCT_CONFIGURATION"] = "FLOW_APPLY_PRODUCT_CONFIGURATION";
29
+ })(FlowAction || (FlowAction = {}));
30
+ const ConfigureProductAction = ({ lineItemId, productId, }) => ({
31
+ type: FlowAction.FLOW_CONFIGURE_PRODUCT,
32
+ payload: { lineItemId, productId },
33
+ });
34
+ const NavigateBackAction = () => ({
35
+ type: FlowAction.FLOW_NAVIGATE_BACK,
36
+ });
37
+ const ApplyProductConfigurationAction = () => ({
38
+ type: FlowAction.FLOW_APPLY_PRODUCT_CONFIGURATION,
39
+ });
40
+
41
+ var cmsInjectionTokens = /*#__PURE__*/Object.freeze({
42
+ __proto__: null,
43
+ get FlowAction () { return FlowAction; },
44
+ ConfigureProductAction: ConfigureProductAction,
45
+ NavigateBackAction: NavigateBackAction,
46
+ ApplyProductConfigurationAction: ApplyProductConfigurationAction
47
+ });
48
+
24
49
  const DEFAULT_PLUGINS_TOKEN = new InjectionToken('DEFAULT_PLUGINS_TOKEN');
25
50
  const UI_DEFINITION_METADATA = new InjectionToken('UI_DEFINITION_METADATA_TOKEN');
26
51
  const ELEMENT_METADATA = new InjectionToken('ELEMENT_METADATA_TOKEN');
@@ -28,7 +53,7 @@ const SHARED_ELEMENT_METADATA = new InjectionToken('SHARED_ELEMENT_METADATA_TOKE
28
53
  const ELEMENT_CONFIG = new InjectionToken('ELEMENT_CONFIG_TOKEN');
29
54
  const VENDOR_MAP = new InjectionToken('VENDOR_MAP');
30
55
 
31
- var vlInjectionTokens = /*#__PURE__*/Object.freeze({
56
+ var cmsActions = /*#__PURE__*/Object.freeze({
32
57
  __proto__: null,
33
58
  DEFAULT_PLUGINS_TOKEN: DEFAULT_PLUGINS_TOKEN,
34
59
  UI_DEFINITION_METADATA: UI_DEFINITION_METADATA,
@@ -665,6 +690,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
665
690
  }]
666
691
  }], ctorParameters: function () { return [{ type: ElementContextService }]; } });
667
692
 
693
+ // eslint-disable-next-line @angular-eslint/directive-selector
694
+ class CustomTemplateDirective {
695
+ constructor(templateRef, templatesService) {
696
+ this.templateRef = templateRef;
697
+ this.templatesService = templatesService;
698
+ }
699
+ ngAfterViewInit() {
700
+ if (!this.customTemplate) {
701
+ return;
702
+ }
703
+ this.templatesService.register(this.customTemplate, this.templateRef);
704
+ }
705
+ }
706
+ CustomTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: CustomTemplateDirective, deps: [{ token: i0.TemplateRef }, { token: TemplatesService }], target: i0.ɵɵFactoryTarget.Directive });
707
+ CustomTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.15", type: CustomTemplateDirective, selector: "[customTemplate]", inputs: { customTemplate: "customTemplate" }, ngImport: i0 });
708
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: CustomTemplateDirective, decorators: [{
709
+ type: Directive,
710
+ args: [{ selector: '[customTemplate]' }]
711
+ }], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: TemplatesService }]; }, propDecorators: { customTemplate: [{
712
+ type: Input
713
+ }] } });
714
+
715
+ const defaultOptions = {
716
+ suppressLoading: false,
717
+ loadingLabel: 'LOADING',
718
+ };
719
+
668
720
  const moduleMap = {};
669
721
  function loadRemoteEntry(remoteEntry) {
670
722
  return new Promise((resolve, reject) => {
@@ -694,59 +746,64 @@ function lookupExposedModule(remoteName, exposedModule) {
694
746
  return Module;
695
747
  });
696
748
  }
697
- function loadRemoteModule(options) {
749
+ function loadRemoteModule(remoteEntry, remoteName, exposedModule) {
698
750
  return __awaiter(this, void 0, void 0, function* () {
699
- yield loadRemoteEntry(options.remoteEntry);
700
- return yield lookupExposedModule(options.remoteName, options.exposedModule);
751
+ yield loadRemoteEntry(remoteEntry);
752
+ return yield lookupExposedModule(remoteName, exposedModule);
701
753
  });
702
754
  }
703
755
 
704
- var IntegrationEvent;
705
- (function (IntegrationEvent) {
706
- IntegrationEvent["Init"] = "Init";
707
- })(IntegrationEvent || (IntegrationEvent = {}));
708
756
  class FederatedComponent {
709
757
  constructor(injector, compiler, appRef, renderer) {
710
758
  this.injector = injector;
711
759
  this.compiler = compiler;
712
760
  this.appRef = appRef;
713
761
  this.renderer = renderer;
714
- this.integrationEvent = new EventEmitter();
715
- this.moduleReady = false;
762
+ this.isLoading$ = new BehaviorSubject(false);
763
+ // configs
764
+ this.suppressLoading = defaultOptions.suppressLoading;
765
+ this.loadingLabel = defaultOptions.loadingLabel;
766
+ }
767
+ ngOnChanges(changes) {
768
+ var _a, _b, _c, _d;
769
+ if (changes.data && this.instance) {
770
+ this.instance.data = this.data;
771
+ }
772
+ if (changes.options) {
773
+ this.suppressLoading = (_b = (_a = this.options) === null || _a === void 0 ? void 0 : _a.suppressLoading) !== null && _b !== void 0 ? _b : defaultOptions.suppressLoading;
774
+ this.loadingLabel = (_d = (_c = this.options) === null || _c === void 0 ? void 0 : _c.loadingLabel) !== null && _d !== void 0 ? _d : defaultOptions.loadingLabel;
775
+ }
776
+ }
777
+ ngOnInit() {
778
+ this.isLoading$.next(true);
716
779
  }
717
780
  ngAfterViewInit() {
718
- if (!this.remoteEntry || !this.remoteName || !this.exposedModule) {
781
+ var _a, _b, _c, _d, _e, _f;
782
+ const remoteEntry = (_b = (_a = this.options) === null || _a === void 0 ? void 0 : _a.remoteEntry) !== null && _b !== void 0 ? _b : this.remoteEntry;
783
+ const remoteName = (_d = (_c = this.options) === null || _c === void 0 ? void 0 : _c.remoteName) !== null && _d !== void 0 ? _d : this.remoteName;
784
+ const exposedModule = (_f = (_e = this.options) === null || _e === void 0 ? void 0 : _e.exposedModule) !== null && _f !== void 0 ? _f : this.exposedModule;
785
+ if (!remoteEntry || !remoteName || !exposedModule) {
719
786
  return;
720
787
  }
721
- loadRemoteModule({
722
- remoteEntry: this.remoteEntry,
723
- remoteName: this.remoteName,
724
- exposedModule: this.exposedModule,
725
- }).then(federated => {
726
- this.compiler.compileModuleAsync(federated[this.exposedModule]).then(moduleFactory => {
727
- var _a;
788
+ loadRemoteModule(remoteEntry, remoteName, exposedModule).then(federated => {
789
+ this.compiler.compileModuleAsync(federated[exposedModule]).then(moduleFactory => {
790
+ var _a, _b, _c;
728
791
  const rootModuleRef = moduleFactory.create(this.injector);
729
- const rootComponentFactory = rootModuleRef.componentFactoryResolver.resolveComponentFactory(federated[this.exposedModule].rootComponent);
792
+ const rootComponentFactory = rootModuleRef.componentFactoryResolver.resolveComponentFactory(federated[exposedModule].rootComponent);
730
793
  const node = document.createElement('div');
731
794
  const { instance, hostView } = rootComponentFactory.create(this.injector, [], node);
732
795
  this.instance = instance;
733
796
  this.instance.data = this.data;
734
- this.instance.eventData = this.eventData;
735
- this.instance.integrationEvent = this.integrationEvent;
736
797
  this.renderer.appendChild((_a = this.moduleHostRef) === null || _a === void 0 ? void 0 : _a.nativeElement, node);
737
798
  this.appRef.attachView(hostView);
799
+ (_c = (_b = this.options) === null || _b === void 0 ? void 0 : _b.onReady) === null || _c === void 0 ? void 0 : _c.call(_b);
800
+ this.isLoading$.next(false);
738
801
  });
739
802
  });
740
803
  }
741
- ngOnChanges(changes) {
742
- if (!this.instance) {
743
- return;
744
- }
745
- this.instance.ngOnChanges(changes);
746
- }
747
804
  }
748
805
  FederatedComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: FederatedComponent, deps: [{ token: i0.Injector }, { token: i0.Compiler }, { token: i0.ApplicationRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
749
- FederatedComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: FederatedComponent, selector: "veloce-host-federated", inputs: { remoteEntry: "remoteEntry", remoteName: "remoteName", exposedModule: "exposedModule", data: "data", eventData: "eventData" }, outputs: { integrationEvent: "integrationEvent" }, viewQueries: [{ propertyName: "federatedComponent", first: true, predicate: ["federatedComponent"], descendants: true, read: ViewContainerRef }, { propertyName: "foo", first: true, predicate: ["foo"], descendants: true, read: TemplateRef }, { propertyName: "moduleHostRef", first: true, predicate: ["moduleHost"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div #moduleHost></div>\n", styles: [":host{display:block}div{height:100%}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
806
+ FederatedComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: FederatedComponent, selector: "veloce-host-federated", inputs: { remoteEntry: "remoteEntry", remoteName: "remoteName", exposedModule: "exposedModule", data: "data", options: "options" }, viewQueries: [{ propertyName: "moduleHostRef", first: true, predicate: ["moduleHost"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div #moduleHost></div>\n\n<vl-loader *ngIf=\"!suppressLoading && (isLoading$ | async)\" [label]=\"loadingLabel\"></vl-loader>\n", styles: [":host{display:block}div{height:100%}\n"], components: [{ type: i1.LoaderComponent, selector: "vl-loader", inputs: ["label", "overlayVisible"] }], directives: [{ type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i7.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
750
807
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: FederatedComponent, decorators: [{
751
808
  type: Component,
752
809
  args: [{
@@ -756,13 +813,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
756
813
  styleUrls: ['./federated.component.scss'],
757
814
  changeDetection: ChangeDetectionStrategy.OnPush,
758
815
  }]
759
- }], ctorParameters: function () { return [{ type: i0.Injector }, { type: i0.Compiler }, { type: i0.ApplicationRef }, { type: i0.Renderer2 }]; }, propDecorators: { federatedComponent: [{
760
- type: ViewChild,
761
- args: ['federatedComponent', { read: ViewContainerRef }]
762
- }], foo: [{
763
- type: ViewChild,
764
- args: ['foo', { read: TemplateRef }]
765
- }], moduleHostRef: [{
816
+ }], ctorParameters: function () { return [{ type: i0.Injector }, { type: i0.Compiler }, { type: i0.ApplicationRef }, { type: i0.Renderer2 }]; }, propDecorators: { moduleHostRef: [{
766
817
  type: ViewChild,
767
818
  args: ['moduleHost', { static: false }]
768
819
  }], remoteEntry: [{
@@ -773,47 +824,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
773
824
  type: Input
774
825
  }], data: [{
775
826
  type: Input
776
- }], eventData: [{
827
+ }], options: [{
777
828
  type: Input
778
- }], integrationEvent: [{
779
- type: Output
780
829
  }] } });
781
830
 
782
831
  class FederatedModule {
783
832
  }
784
833
  FederatedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: FederatedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
785
- FederatedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: FederatedModule, declarations: [FederatedComponent], exports: [FederatedComponent] });
786
- FederatedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: FederatedModule });
834
+ FederatedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: FederatedModule, declarations: [FederatedComponent], imports: [CommonModule, LoaderModule], exports: [FederatedComponent] });
835
+ FederatedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: FederatedModule, imports: [[CommonModule, LoaderModule]] });
787
836
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: FederatedModule, decorators: [{
788
837
  type: NgModule,
789
838
  args: [{
790
839
  declarations: [FederatedComponent],
840
+ imports: [CommonModule, LoaderModule],
791
841
  exports: [FederatedComponent],
792
842
  }]
793
843
  }] });
794
844
 
795
- // eslint-disable-next-line @angular-eslint/directive-selector
796
- class CustomTemplateDirective {
797
- constructor(templateRef, templatesService) {
798
- this.templateRef = templateRef;
799
- this.templatesService = templatesService;
800
- }
801
- ngAfterViewInit() {
802
- if (!this.customTemplate) {
803
- return;
804
- }
805
- this.templatesService.register(this.customTemplate, this.templateRef);
806
- }
807
- }
808
- CustomTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: CustomTemplateDirective, deps: [{ token: i0.TemplateRef }, { token: TemplatesService }], target: i0.ɵɵFactoryTarget.Directive });
809
- CustomTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.15", type: CustomTemplateDirective, selector: "[customTemplate]", inputs: { customTemplate: "customTemplate" }, ngImport: i0 });
810
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: CustomTemplateDirective, decorators: [{
811
- type: Directive,
812
- args: [{ selector: '[customTemplate]' }]
813
- }], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: TemplatesService }]; }, propDecorators: { customTemplate: [{
814
- type: Input
815
- }] } });
816
-
817
845
  class ConfigurationPlugin {
818
846
  constructor(host) {
819
847
  var _a, _b;
@@ -948,7 +976,7 @@ const vendorMap = {
948
976
  '@veloce/sdk/core': Object.assign({ ConfigurationService,
949
977
  FlowConfigurationService,
950
978
  LineItemWorker }, lineItemUtils),
951
- '@veloce/sdk/cms': Object.assign(Object.assign({}, vlInjectionTokens), { TemplatesService,
979
+ '@veloce/sdk/cms': Object.assign(Object.assign(Object.assign({}, cmsInjectionTokens), cmsActions), { TemplatesService,
952
980
  IntegrationState }),
953
981
  '@veloce/api': {
954
982
  SalesforceApiService,
@@ -1181,7 +1209,7 @@ class PreviewComponent {
1181
1209
  }
1182
1210
  }
1183
1211
  PreviewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PreviewComponent, deps: [{ token: LauncherService }, { token: i2.ConfigurationService }, { token: i3.MessageService }, { token: i2.ConfigurationRuntimeService }, { token: IntegrationState }], target: i0.ɵɵFactoryTarget.Component });
1184
- PreviewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: PreviewComponent, selector: "vl-cms-preview", inputs: { modelId: "modelId", uiDefinition: "uiDefinition", clearState: "clearState" }, providers: [IOProviderService, TemplatesService], ngImport: i0, template: "<ng-container *ngIf=\"state$ | async as state\">\n <vl-loader *ngIf=\"state.loading; else content\" [label]=\"'Loading UI'\"></vl-loader>\n\n <ng-template #content>\n <ng-container *ngIf=\"!state.failure\">\n <vl-cms-element-renderer *ngFor=\"let el of elements\" [meta]=\"el\"></vl-cms-element-renderer>\n </ng-container>\n </ng-template>\n</ng-container>\n", styles: [":host{flex-grow:1;display:flex;flex-direction:column;height:100%}\n"], components: [{ type: i5.LoaderComponent, selector: "vl-loader", inputs: ["label", "overlayVisible"] }, { type: ElementRendererComponent, selector: "vl-cms-element-renderer", inputs: ["meta"] }], directives: [{ type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "async": i7.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.ShadowDom });
1212
+ PreviewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: PreviewComponent, selector: "vl-cms-preview", inputs: { modelId: "modelId", uiDefinition: "uiDefinition", clearState: "clearState" }, providers: [IOProviderService, TemplatesService], ngImport: i0, template: "<ng-container *ngIf=\"state$ | async as state\">\n <vl-loader *ngIf=\"state.loading; else content\" [label]=\"'Loading UI'\"></vl-loader>\n\n <ng-template #content>\n <ng-container *ngIf=\"!state.failure\">\n <vl-cms-element-renderer *ngFor=\"let el of elements\" [meta]=\"el\"></vl-cms-element-renderer>\n </ng-container>\n </ng-template>\n</ng-container>\n", styles: [":host{flex-grow:1;display:flex;flex-direction:column;height:100%}\n"], components: [{ type: i1.LoaderComponent, selector: "vl-loader", inputs: ["label", "overlayVisible"] }, { type: ElementRendererComponent, selector: "vl-cms-element-renderer", inputs: ["meta"] }], directives: [{ type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "async": i7.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.ShadowDom });
1185
1213
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PreviewComponent, decorators: [{
1186
1214
  type: Component,
1187
1215
  args: [{
@@ -1266,5 +1294,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
1266
1294
  * Generated bundle index. Do not edit.
1267
1295
  */
1268
1296
 
1269
- export { DEFAULT_PLUGINS_TOKEN, ELEMENT_CONFIG, ELEMENT_METADATA, ElementComponent, ElementDefinition, ElementsResolver, IntegrationState, LauncherModule, LauncherService, PreviewComponent, PreviewModule, SHARED_ELEMENT_METADATA, TemplatesService, UI_DEFINITION_METADATA, UiBuildError, VENDOR_MAP, doesElementSupportIO, elementToMetadata, extendElementMetadata, extractElementMetadata, findElementByModule, getAbsolutePath, getElementConfig, isValidScript, loadRemoteModule, metadataToElement, normalizeElementMetadata, parseBoundPath, parsePath, stringifyElementMetadata };
1297
+ export { ApplyProductConfigurationAction, ConfigureProductAction, DEFAULT_PLUGINS_TOKEN, ELEMENT_CONFIG, ELEMENT_METADATA, ElementComponent, ElementDefinition, ElementsResolver, FlowAction, IntegrationState, LauncherModule, LauncherService, NavigateBackAction, PreviewComponent, PreviewModule, SHARED_ELEMENT_METADATA, TemplatesService, UI_DEFINITION_METADATA, UiBuildError, VENDOR_MAP, doesElementSupportIO, elementToMetadata, extendElementMetadata, extractElementMetadata, findElementByModule, getAbsolutePath, getElementConfig, isValidScript, metadataToElement, normalizeElementMetadata, parseBoundPath, parsePath, stringifyElementMetadata };
1270
1298
  //# sourceMappingURL=veloce-sdk-cms.js.map