@veloceapps/sdk 2.0.2 → 2.0.3
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 +9 -4
- package/bundles/veloce-sdk-cms.umd.js.map +1 -1
- package/esm2015/cms/launcher.module.js +4 -3
- package/esm2015/cms/plugins/script.plugin.js +6 -1
- package/esm2015/cms/utils/element.utils.js +4 -3
- package/fesm2015/veloce-sdk-cms.js +10 -5
- package/fesm2015/veloce-sdk-cms.js.map +1 -1
- package/package.json +2 -2
|
@@ -846,7 +846,7 @@
|
|
|
846
846
|
}] });
|
|
847
847
|
|
|
848
848
|
var EXPORTED_CLASS_REGEX = /export class (\S+)/;
|
|
849
|
-
var METADATA_DECORATOR_REGEX = /@ElementDefinition\(([
|
|
849
|
+
var METADATA_DECORATOR_REGEX = /@ElementDefinition\(([\s\S]+)\)(\n|.)*export class/g;
|
|
850
850
|
var elementToMetadata = function (el, parentPath) {
|
|
851
851
|
var _a;
|
|
852
852
|
var script = el.script && window.atob(el.script);
|
|
@@ -866,6 +866,7 @@
|
|
|
866
866
|
type: metadata.type,
|
|
867
867
|
model: metadata.model,
|
|
868
868
|
module: metadata.module,
|
|
869
|
+
reference: metadata.reference,
|
|
869
870
|
inputs: metadata.inputs,
|
|
870
871
|
outputs: metadata.outputs,
|
|
871
872
|
children: metadata.children.map(function (_b) {
|
|
@@ -874,7 +875,7 @@
|
|
|
874
875
|
}),
|
|
875
876
|
};
|
|
876
877
|
var script = metadata.script &&
|
|
877
|
-
window.btoa(metadata.script.replace(EXPORTED_CLASS_REGEX, "@ElementDefinition(" + JSON.stringify(elMetadata) + ") export class Script
|
|
878
|
+
window.btoa(metadata.script.replace(EXPORTED_CLASS_REGEX, "@ElementDefinition(" + JSON.stringify(elMetadata) + ") export class Script"));
|
|
878
879
|
var template = metadata.template && window.btoa(metadata.template);
|
|
879
880
|
var styles = metadata.styles && window.btoa(metadata.styles);
|
|
880
881
|
return {
|
|
@@ -1236,6 +1237,10 @@
|
|
|
1236
1237
|
|
|
1237
1238
|
var vendorMap = {
|
|
1238
1239
|
'@veloce/sdk/cms': Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, vlCmsModules), vlCmsUtils), vlCmsLineItemTypes), vlInjectionTokens), { TemplatesService: TemplatesService }),
|
|
1240
|
+
'@veloce/api': {
|
|
1241
|
+
SalesforceApiService: i1.SalesforceApiService,
|
|
1242
|
+
QuoteApiService: i1.QuoteApiService
|
|
1243
|
+
},
|
|
1239
1244
|
'@angular/core': i0__namespace,
|
|
1240
1245
|
'@angular/forms': angularForms__namespace,
|
|
1241
1246
|
rxjs: rxjs__namespace,
|
|
@@ -1794,12 +1799,12 @@
|
|
|
1794
1799
|
}());
|
|
1795
1800
|
LauncherModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: LauncherModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1796
1801
|
LauncherModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: LauncherModule, imports: [i6.CommonModule, core.CoreModule, ConfigurationModule] });
|
|
1797
|
-
LauncherModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: LauncherModule, providers: [LauncherService, DynamicModuleService], imports: [[i6.CommonModule, core.CoreModule, ConfigurationModule]] });
|
|
1802
|
+
LauncherModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: LauncherModule, providers: [LauncherService, DynamicModuleService, i1.SalesforceApiService, i1.QuoteApiService], imports: [[i6.CommonModule, core.CoreModule, ConfigurationModule]] });
|
|
1798
1803
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: LauncherModule, decorators: [{
|
|
1799
1804
|
type: i0.NgModule,
|
|
1800
1805
|
args: [{
|
|
1801
1806
|
imports: [i6.CommonModule, core.CoreModule, ConfigurationModule],
|
|
1802
|
-
providers: [LauncherService, DynamicModuleService],
|
|
1807
|
+
providers: [LauncherService, DynamicModuleService, i1.SalesforceApiService, i1.QuoteApiService],
|
|
1803
1808
|
}]
|
|
1804
1809
|
}] });
|
|
1805
1810
|
|