@veloceapps/sdk 3.1.4 → 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.
- package/bundles/veloce-sdk-cms.umd.js +75 -73
- package/bundles/veloce-sdk-cms.umd.js.map +1 -1
- package/bundles/veloce-sdk.umd.js +8 -1
- package/bundles/veloce-sdk.umd.js.map +1 -1
- package/cms/index.d.ts +1 -0
- package/cms/modules/federated/default-options.d.ts +4 -0
- package/cms/modules/federated/export.d.ts +1 -0
- package/cms/{components → modules}/federated/federated.component.d.ts +12 -22
- package/cms/{components → modules}/federated/federated.module.d.ts +3 -1
- package/cms/modules/federated/federated.types.d.ts +30 -0
- package/cms/modules/federated/federated.utils.d.ts +1 -0
- package/cms/utils/index.d.ts +0 -1
- package/esm2015/cms/index.js +2 -1
- package/esm2015/cms/modules/federated/default-options.js +5 -0
- package/esm2015/cms/modules/federated/export.js +2 -0
- package/esm2015/cms/modules/federated/federated.component.js +82 -0
- package/esm2015/cms/modules/federated/federated.module.js +19 -0
- package/esm2015/cms/modules/federated/federated.types.js +2 -0
- package/esm2015/cms/modules/federated/federated.utils.js +37 -0
- package/esm2015/cms/services/launcher.service.js +2 -2
- package/esm2015/cms/utils/index.js +1 -2
- package/esm2015/src/services/flow.service.js +9 -2
- package/fesm2015/veloce-sdk-cms.js +69 -66
- package/fesm2015/veloce-sdk-cms.js.map +1 -1
- package/fesm2015/veloce-sdk.js +8 -1
- package/fesm2015/veloce-sdk.js.map +1 -1
- package/package.json +1 -1
- package/cms/utils/federated.util.d.ts +0 -6
- package/esm2015/cms/components/federated/federated.component.js +0 -81
- package/esm2015/cms/components/federated/federated.module.js +0 -16
- package/esm2015/cms/utils/federated.util.js +0 -37
@@ -1,8 +1,8 @@
|
|
1
1
|
(function (global, factory) {
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('lodash'), require('@angular/common'), require('@veloce/core'), require('@angular/cdk/drag-drop'), require('@angular/forms'), require('@veloce/sdk/core'), require('@babel/standalone'), require('@veloce/api'), require('rxjs/operators'), require('primeng/api'), require('
|
3
|
-
typeof define === 'function' && define.amd ? define('@veloce/sdk/cms', ['exports', '@angular/core', 'rxjs', 'lodash', '@angular/common', '@veloce/core', '@angular/cdk/drag-drop', '@angular/forms', '@veloce/sdk/core', '@babel/standalone', '@veloce/api', 'rxjs/operators', 'primeng/api', '
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.veloce = global.veloce || {}, global.veloce.sdk = global.veloce.sdk || {}, global.veloce.sdk.cms = {}), global.ng.core, global.rxjs, global.lodash, global.ng.common, global["@veloce/core"], global.ng.cdk.dragDrop, global.ng.forms, global.veloce.sdk.core, global["@babel/standalone"], global["@veloce/api"], global.rxjs.operators, global["primeng/api"], global["
|
5
|
-
})(this, (function (exports, i0, rxjs, lodash, i7, core, dragDrop, angularForms, i2, standalone, api, rxjsOperators, i3,
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('lodash'), require('@angular/common'), require('@veloce/core'), require('@angular/cdk/drag-drop'), require('@angular/forms'), require('@veloce/sdk/core'), require('@veloce/components'), require('@babel/standalone'), require('@veloce/api'), require('rxjs/operators'), require('primeng/api'), require('primeng/dynamicdialog')) :
|
3
|
+
typeof define === 'function' && define.amd ? define('@veloce/sdk/cms', ['exports', '@angular/core', 'rxjs', 'lodash', '@angular/common', '@veloce/core', '@angular/cdk/drag-drop', '@angular/forms', '@veloce/sdk/core', '@veloce/components', '@babel/standalone', '@veloce/api', 'rxjs/operators', 'primeng/api', 'primeng/dynamicdialog'], factory) :
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.veloce = global.veloce || {}, global.veloce.sdk = global.veloce.sdk || {}, global.veloce.sdk.cms = {}), global.ng.core, global.rxjs, global.lodash, global.ng.common, global["@veloce/core"], global.ng.cdk.dragDrop, global.ng.forms, global.veloce.sdk.core, global["@veloce/components"], global["@babel/standalone"], global["@veloce/api"], global.rxjs.operators, global["primeng/api"], global["primeng/dynamicdialog"]));
|
5
|
+
})(this, (function (exports, i0, rxjs, lodash, i7, core, dragDrop, angularForms, i2, i1, standalone, api, rxjsOperators, i3, dynamicdialog) { 'use strict';
|
6
6
|
|
7
7
|
function _interopNamespace(e) {
|
8
8
|
if (e && e.__esModule) return e;
|
@@ -28,9 +28,9 @@
|
|
28
28
|
var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
|
29
29
|
var angularForms__namespace = /*#__PURE__*/_interopNamespace(angularForms);
|
30
30
|
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
31
|
+
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
31
32
|
var rxjsOperators__namespace = /*#__PURE__*/_interopNamespace(rxjsOperators);
|
32
33
|
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
33
|
-
var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
|
34
34
|
|
35
35
|
exports.FlowAction = void 0;
|
36
36
|
(function (FlowAction) {
|
@@ -1080,6 +1080,34 @@
|
|
1080
1080
|
}]
|
1081
1081
|
}], ctorParameters: function () { return [{ type: ElementContextService }]; } });
|
1082
1082
|
|
1083
|
+
// eslint-disable-next-line @angular-eslint/directive-selector
|
1084
|
+
var CustomTemplateDirective = /** @class */ (function () {
|
1085
|
+
function CustomTemplateDirective(templateRef, templatesService) {
|
1086
|
+
this.templateRef = templateRef;
|
1087
|
+
this.templatesService = templatesService;
|
1088
|
+
}
|
1089
|
+
CustomTemplateDirective.prototype.ngAfterViewInit = function () {
|
1090
|
+
if (!this.customTemplate) {
|
1091
|
+
return;
|
1092
|
+
}
|
1093
|
+
this.templatesService.register(this.customTemplate, this.templateRef);
|
1094
|
+
};
|
1095
|
+
return CustomTemplateDirective;
|
1096
|
+
}());
|
1097
|
+
CustomTemplateDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: CustomTemplateDirective, deps: [{ token: i0__namespace.TemplateRef }, { token: TemplatesService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
1098
|
+
CustomTemplateDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.15", type: CustomTemplateDirective, selector: "[customTemplate]", inputs: { customTemplate: "customTemplate" }, ngImport: i0__namespace });
|
1099
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: CustomTemplateDirective, decorators: [{
|
1100
|
+
type: i0.Directive,
|
1101
|
+
args: [{ selector: '[customTemplate]' }]
|
1102
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.TemplateRef }, { type: TemplatesService }]; }, propDecorators: { customTemplate: [{
|
1103
|
+
type: i0.Input
|
1104
|
+
}] } });
|
1105
|
+
|
1106
|
+
var defaultOptions = {
|
1107
|
+
suppressLoading: false,
|
1108
|
+
loadingLabel: 'LOADING',
|
1109
|
+
};
|
1110
|
+
|
1083
1111
|
var moduleMap = {};
|
1084
1112
|
function loadRemoteEntry(remoteEntry) {
|
1085
1113
|
return new Promise(function (resolve, reject) {
|
@@ -1123,68 +1151,73 @@
|
|
1123
1151
|
});
|
1124
1152
|
});
|
1125
1153
|
}
|
1126
|
-
function loadRemoteModule(
|
1154
|
+
function loadRemoteModule(remoteEntry, remoteName, exposedModule) {
|
1127
1155
|
return __awaiter(this, void 0, void 0, function () {
|
1128
1156
|
return __generator(this, function (_a) {
|
1129
1157
|
switch (_a.label) {
|
1130
|
-
case 0: return [4 /*yield*/, loadRemoteEntry(
|
1158
|
+
case 0: return [4 /*yield*/, loadRemoteEntry(remoteEntry)];
|
1131
1159
|
case 1:
|
1132
1160
|
_a.sent();
|
1133
|
-
return [4 /*yield*/, lookupExposedModule(
|
1161
|
+
return [4 /*yield*/, lookupExposedModule(remoteName, exposedModule)];
|
1134
1162
|
case 2: return [2 /*return*/, _a.sent()];
|
1135
1163
|
}
|
1136
1164
|
});
|
1137
1165
|
});
|
1138
1166
|
}
|
1139
1167
|
|
1140
|
-
var IntegrationEvent;
|
1141
|
-
(function (IntegrationEvent) {
|
1142
|
-
IntegrationEvent["Init"] = "Init";
|
1143
|
-
})(IntegrationEvent || (IntegrationEvent = {}));
|
1144
1168
|
var FederatedComponent = /** @class */ (function () {
|
1145
1169
|
function FederatedComponent(injector, compiler, appRef, renderer) {
|
1146
1170
|
this.injector = injector;
|
1147
1171
|
this.compiler = compiler;
|
1148
1172
|
this.appRef = appRef;
|
1149
1173
|
this.renderer = renderer;
|
1150
|
-
this.
|
1151
|
-
|
1174
|
+
this.isLoading$ = new rxjs.BehaviorSubject(false);
|
1175
|
+
// configs
|
1176
|
+
this.suppressLoading = defaultOptions.suppressLoading;
|
1177
|
+
this.loadingLabel = defaultOptions.loadingLabel;
|
1152
1178
|
}
|
1179
|
+
FederatedComponent.prototype.ngOnChanges = function (changes) {
|
1180
|
+
var _a, _b, _c, _d;
|
1181
|
+
if (changes.data && this.instance) {
|
1182
|
+
this.instance.data = this.data;
|
1183
|
+
}
|
1184
|
+
if (changes.options) {
|
1185
|
+
this.suppressLoading = (_b = (_a = this.options) === null || _a === void 0 ? void 0 : _a.suppressLoading) !== null && _b !== void 0 ? _b : defaultOptions.suppressLoading;
|
1186
|
+
this.loadingLabel = (_d = (_c = this.options) === null || _c === void 0 ? void 0 : _c.loadingLabel) !== null && _d !== void 0 ? _d : defaultOptions.loadingLabel;
|
1187
|
+
}
|
1188
|
+
};
|
1189
|
+
FederatedComponent.prototype.ngOnInit = function () {
|
1190
|
+
this.isLoading$.next(true);
|
1191
|
+
};
|
1153
1192
|
FederatedComponent.prototype.ngAfterViewInit = function () {
|
1154
1193
|
var _this = this;
|
1155
|
-
|
1194
|
+
var _a, _b, _c, _d, _e, _f;
|
1195
|
+
var remoteEntry = (_b = (_a = this.options) === null || _a === void 0 ? void 0 : _a.remoteEntry) !== null && _b !== void 0 ? _b : this.remoteEntry;
|
1196
|
+
var remoteName = (_d = (_c = this.options) === null || _c === void 0 ? void 0 : _c.remoteName) !== null && _d !== void 0 ? _d : this.remoteName;
|
1197
|
+
var exposedModule = (_f = (_e = this.options) === null || _e === void 0 ? void 0 : _e.exposedModule) !== null && _f !== void 0 ? _f : this.exposedModule;
|
1198
|
+
if (!remoteEntry || !remoteName || !exposedModule) {
|
1156
1199
|
return;
|
1157
1200
|
}
|
1158
|
-
loadRemoteModule({
|
1159
|
-
|
1160
|
-
|
1161
|
-
exposedModule: this.exposedModule,
|
1162
|
-
}).then(function (federated) {
|
1163
|
-
_this.compiler.compileModuleAsync(federated[_this.exposedModule]).then(function (moduleFactory) {
|
1164
|
-
var _a;
|
1201
|
+
loadRemoteModule(remoteEntry, remoteName, exposedModule).then(function (federated) {
|
1202
|
+
_this.compiler.compileModuleAsync(federated[exposedModule]).then(function (moduleFactory) {
|
1203
|
+
var _a, _b, _c;
|
1165
1204
|
var rootModuleRef = moduleFactory.create(_this.injector);
|
1166
|
-
var rootComponentFactory = rootModuleRef.componentFactoryResolver.resolveComponentFactory(federated[
|
1205
|
+
var rootComponentFactory = rootModuleRef.componentFactoryResolver.resolveComponentFactory(federated[exposedModule].rootComponent);
|
1167
1206
|
var node = document.createElement('div');
|
1168
|
-
var
|
1207
|
+
var _g = rootComponentFactory.create(_this.injector, [], node), instance = _g.instance, hostView = _g.hostView;
|
1169
1208
|
_this.instance = instance;
|
1170
1209
|
_this.instance.data = _this.data;
|
1171
|
-
_this.instance.eventData = _this.eventData;
|
1172
|
-
_this.instance.integrationEvent = _this.integrationEvent;
|
1173
1210
|
_this.renderer.appendChild((_a = _this.moduleHostRef) === null || _a === void 0 ? void 0 : _a.nativeElement, node);
|
1174
1211
|
_this.appRef.attachView(hostView);
|
1212
|
+
(_c = (_b = _this.options) === null || _b === void 0 ? void 0 : _b.onReady) === null || _c === void 0 ? void 0 : _c.call(_b);
|
1213
|
+
_this.isLoading$.next(false);
|
1175
1214
|
});
|
1176
1215
|
});
|
1177
1216
|
};
|
1178
|
-
FederatedComponent.prototype.ngOnChanges = function (changes) {
|
1179
|
-
if (!this.instance) {
|
1180
|
-
return;
|
1181
|
-
}
|
1182
|
-
this.instance.ngOnChanges(changes);
|
1183
|
-
};
|
1184
1217
|
return FederatedComponent;
|
1185
1218
|
}());
|
1186
1219
|
FederatedComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FederatedComponent, deps: [{ token: i0__namespace.Injector }, { token: i0__namespace.Compiler }, { token: i0__namespace.ApplicationRef }, { token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
1187
|
-
FederatedComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: FederatedComponent, selector: "veloce-host-federated", inputs: { remoteEntry: "remoteEntry", remoteName: "remoteName", exposedModule: "exposedModule", data: "data",
|
1220
|
+
FederatedComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, 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__namespace.LoaderComponent, selector: "vl-loader", inputs: ["label", "overlayVisible"] }], directives: [{ type: i7__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i7__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
1188
1221
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FederatedComponent, decorators: [{
|
1189
1222
|
type: i0.Component,
|
1190
1223
|
args: [{
|
@@ -1194,13 +1227,7 @@
|
|
1194
1227
|
styleUrls: ['./federated.component.scss'],
|
1195
1228
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
1196
1229
|
}]
|
1197
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.Injector }, { type: i0__namespace.Compiler }, { type: i0__namespace.ApplicationRef }, { type: i0__namespace.Renderer2 }]; }, propDecorators: {
|
1198
|
-
type: i0.ViewChild,
|
1199
|
-
args: ['federatedComponent', { read: i0.ViewContainerRef }]
|
1200
|
-
}], foo: [{
|
1201
|
-
type: i0.ViewChild,
|
1202
|
-
args: ['foo', { read: i0.TemplateRef }]
|
1203
|
-
}], moduleHostRef: [{
|
1230
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.Injector }, { type: i0__namespace.Compiler }, { type: i0__namespace.ApplicationRef }, { type: i0__namespace.Renderer2 }]; }, propDecorators: { moduleHostRef: [{
|
1204
1231
|
type: i0.ViewChild,
|
1205
1232
|
args: ['moduleHost', { static: false }]
|
1206
1233
|
}], remoteEntry: [{
|
@@ -1211,10 +1238,8 @@
|
|
1211
1238
|
type: i0.Input
|
1212
1239
|
}], data: [{
|
1213
1240
|
type: i0.Input
|
1214
|
-
}],
|
1241
|
+
}], options: [{
|
1215
1242
|
type: i0.Input
|
1216
|
-
}], integrationEvent: [{
|
1217
|
-
type: i0.Output
|
1218
1243
|
}] } });
|
1219
1244
|
|
1220
1245
|
var FederatedModule = /** @class */ (function () {
|
@@ -1223,39 +1248,17 @@
|
|
1223
1248
|
return FederatedModule;
|
1224
1249
|
}());
|
1225
1250
|
FederatedModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FederatedModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
1226
|
-
FederatedModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FederatedModule, declarations: [FederatedComponent], exports: [FederatedComponent] });
|
1227
|
-
FederatedModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FederatedModule });
|
1251
|
+
FederatedModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FederatedModule, declarations: [FederatedComponent], imports: [i7.CommonModule, i1.LoaderModule], exports: [FederatedComponent] });
|
1252
|
+
FederatedModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FederatedModule, imports: [[i7.CommonModule, i1.LoaderModule]] });
|
1228
1253
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FederatedModule, decorators: [{
|
1229
1254
|
type: i0.NgModule,
|
1230
1255
|
args: [{
|
1231
1256
|
declarations: [FederatedComponent],
|
1257
|
+
imports: [i7.CommonModule, i1.LoaderModule],
|
1232
1258
|
exports: [FederatedComponent],
|
1233
1259
|
}]
|
1234
1260
|
}] });
|
1235
1261
|
|
1236
|
-
// eslint-disable-next-line @angular-eslint/directive-selector
|
1237
|
-
var CustomTemplateDirective = /** @class */ (function () {
|
1238
|
-
function CustomTemplateDirective(templateRef, templatesService) {
|
1239
|
-
this.templateRef = templateRef;
|
1240
|
-
this.templatesService = templatesService;
|
1241
|
-
}
|
1242
|
-
CustomTemplateDirective.prototype.ngAfterViewInit = function () {
|
1243
|
-
if (!this.customTemplate) {
|
1244
|
-
return;
|
1245
|
-
}
|
1246
|
-
this.templatesService.register(this.customTemplate, this.templateRef);
|
1247
|
-
};
|
1248
|
-
return CustomTemplateDirective;
|
1249
|
-
}());
|
1250
|
-
CustomTemplateDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: CustomTemplateDirective, deps: [{ token: i0__namespace.TemplateRef }, { token: TemplatesService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
1251
|
-
CustomTemplateDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.15", type: CustomTemplateDirective, selector: "[customTemplate]", inputs: { customTemplate: "customTemplate" }, ngImport: i0__namespace });
|
1252
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: CustomTemplateDirective, decorators: [{
|
1253
|
-
type: i0.Directive,
|
1254
|
-
args: [{ selector: '[customTemplate]' }]
|
1255
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.TemplateRef }, { type: TemplatesService }]; }, propDecorators: { customTemplate: [{
|
1256
|
-
type: i0.Input
|
1257
|
-
}] } });
|
1258
|
-
|
1259
1262
|
var ConfigurationPlugin = /** @class */ (function () {
|
1260
1263
|
function ConfigurationPlugin(host) {
|
1261
1264
|
var _this = this;
|
@@ -1675,7 +1678,7 @@
|
|
1675
1678
|
return PreviewComponent;
|
1676
1679
|
}());
|
1677
1680
|
PreviewComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PreviewComponent, deps: [{ token: LauncherService }, { token: i2__namespace.ConfigurationService }, { token: i3__namespace.MessageService }, { token: i2__namespace.ConfigurationRuntimeService }, { token: IntegrationState }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
1678
|
-
PreviewComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, 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:
|
1681
|
+
PreviewComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, 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__namespace.LoaderComponent, selector: "vl-loader", inputs: ["label", "overlayVisible"] }, { type: ElementRendererComponent, selector: "vl-cms-element-renderer", inputs: ["meta"] }], directives: [{ type: i7__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "async": i7__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.ShadowDom });
|
1679
1682
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PreviewComponent, decorators: [{
|
1680
1683
|
type: i0.Component,
|
1681
1684
|
args: [{
|
@@ -1734,13 +1737,13 @@
|
|
1734
1737
|
return PreviewModule;
|
1735
1738
|
}());
|
1736
1739
|
PreviewModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PreviewModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
1737
|
-
PreviewModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PreviewModule, declarations: [PreviewComponent], imports: [i7.CommonModule,
|
1738
|
-
PreviewModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PreviewModule, providers: [IntegrationState], imports: [[i7.CommonModule,
|
1740
|
+
PreviewModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PreviewModule, declarations: [PreviewComponent], imports: [i7.CommonModule, i1.LoaderModule, ElementRendererModule, ElementChildrenModule], exports: [PreviewComponent] });
|
1741
|
+
PreviewModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PreviewModule, providers: [IntegrationState], imports: [[i7.CommonModule, i1.LoaderModule, ElementRendererModule, ElementChildrenModule]] });
|
1739
1742
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PreviewModule, decorators: [{
|
1740
1743
|
type: i0.NgModule,
|
1741
1744
|
args: [{
|
1742
1745
|
declarations: [PreviewComponent],
|
1743
|
-
imports: [i7.CommonModule,
|
1746
|
+
imports: [i7.CommonModule, i1.LoaderModule, ElementRendererModule, ElementChildrenModule],
|
1744
1747
|
providers: [IntegrationState],
|
1745
1748
|
exports: [PreviewComponent],
|
1746
1749
|
}]
|
@@ -1798,7 +1801,6 @@
|
|
1798
1801
|
exports.getAbsolutePath = getAbsolutePath;
|
1799
1802
|
exports.getElementConfig = getElementConfig;
|
1800
1803
|
exports.isValidScript = isValidScript;
|
1801
|
-
exports.loadRemoteModule = loadRemoteModule;
|
1802
1804
|
exports.metadataToElement = metadataToElement;
|
1803
1805
|
exports.normalizeElementMetadata = normalizeElementMetadata;
|
1804
1806
|
exports.parseBoundPath = parseBoundPath;
|