@veloceapps/sdk 7.0.2-17 → 7.0.2-19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. package/cms/cms.actions.d.ts +7 -1
  2. package/cms/components/element-children/element-children.component.d.ts +3 -1
  3. package/cms/components/preview/preview.types.d.ts +4 -0
  4. package/cms/injection-tokens.d.ts +1 -3
  5. package/cms/modules/runtime/services/compilation.service.d.ts +2 -1
  6. package/cms/plugins/script.plugin.d.ts +0 -3
  7. package/cms/types/common.types.d.ts +2 -2
  8. package/cms/utils/elements-resolver.d.ts +5 -1
  9. package/cms/utils/script.utils.d.ts +2 -0
  10. package/cms/vendor-map.d.ts +1 -2
  11. package/core/types/ui-definition.types.d.ts +7 -2
  12. package/esm2020/cms/cms.actions.mjs +11 -2
  13. package/esm2020/cms/cms.elements.mjs +5 -5
  14. package/esm2020/cms/components/element-children/element-children.component.mjs +11 -6
  15. package/esm2020/cms/components/element-tools-panel/element-tools-panel.component.mjs +2 -2
  16. package/esm2020/cms/components/preview/preview.types.mjs +1 -1
  17. package/esm2020/cms/injection-tokens.mjs +1 -2
  18. package/esm2020/cms/modules/runtime/services/compilation.service.mjs +3 -3
  19. package/esm2020/cms/modules/runtime/services/runtime.service.mjs +2 -2
  20. package/esm2020/cms/plugins/script.plugin.mjs +6 -40
  21. package/esm2020/cms/services/integration.state.mjs +3 -6
  22. package/esm2020/cms/types/common.types.mjs +1 -1
  23. package/esm2020/cms/utils/elements-resolver.mjs +22 -8
  24. package/esm2020/cms/utils/script.utils.mjs +42 -0
  25. package/esm2020/core/types/ui-definition.types.mjs +1 -1
  26. package/esm2020/src/flow-routing.module.mjs +1 -2
  27. package/fesm2015/veloceapps-sdk-cms.mjs +134 -105
  28. package/fesm2015/veloceapps-sdk-cms.mjs.map +1 -1
  29. package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
  30. package/fesm2015/veloceapps-sdk.mjs +0 -1
  31. package/fesm2015/veloceapps-sdk.mjs.map +1 -1
  32. package/fesm2020/veloceapps-sdk-cms.mjs +147 -117
  33. package/fesm2020/veloceapps-sdk-cms.mjs.map +1 -1
  34. package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
  35. package/fesm2020/veloceapps-sdk.mjs +0 -1
  36. package/fesm2020/veloceapps-sdk.mjs.map +1 -1
  37. package/package.json +1 -1
@@ -17,7 +17,7 @@ export class CompilationService {
17
17
  constructor(injector) {
18
18
  this.injector = injector;
19
19
  }
20
- compileUIDefinition$(uiDefinition) {
20
+ compileUIDefinition$(uiDefinition, config) {
21
21
  return of([]).pipe(map(() => {
22
22
  const { children, pages, components, ...uiDefinitionMeta } = uiDefinition;
23
23
  this.uiDefinitionMeta = uiDefinitionMeta;
@@ -25,7 +25,7 @@ export class CompilationService {
25
25
  const sharedElements = components ?? [];
26
26
  const metadata = elements.map(element => elementToMetadata(element));
27
27
  const sharedMetadata = sharedElements.map(element => elementToMetadata(element));
28
- this.elementsResolver = new ElementsResolver(uiDefinition, metadata, sharedMetadata);
28
+ this.elementsResolver = new ElementsResolver(uiDefinition, metadata, sharedMetadata, config);
29
29
  const componentTypes = this.elementsResolver.getNgComponents();
30
30
  const module = this.getModule(componentTypes);
31
31
  return {
@@ -84,4 +84,4 @@ CompilationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", v
84
84
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: CompilationService, decorators: [{
85
85
  type: Injectable
86
86
  }], ctorParameters: function () { return [{ type: i0.Injector }]; } });
87
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcGlsYXRpb24uc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc2RrL2Ntcy9tb2R1bGVzL3J1bnRpbWUvc2VydmljZXMvY29tcGlsYXRpb24uc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHB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W10sXG4gICAgICAgICAgY29tcG9uZW50VHlwZXMsXG4gICAgICAgIH07XG4gICAgICB9KSxcbiAgICApO1xuICB9XG5cbiAgcHVibGljIGNvbXBpbGVFbGVtZW50JChlbGVtZW50OiBFbGVtZW50TWV0YWRhdGEpOiBPYnNlcnZhYmxlPENvbXBpbGF0aW9uUmVzdWx0PiB7XG4gICAgaWYgKCF0aGlzLnVpRGVmaW5pdGlvbk1ldGEpIHtcbiAgICAgIHRocm93ICdObyBVSSBEZWZpbml0aW9uIGNvbnRleHQnO1xuICAgIH1cblxuICAgIHJldHVybiBvZih0aGlzLnVpRGVmaW5pdGlvbk1ldGEpLnBpcGUoXG4gICAgICBtYXAodWlEZWZpbml0aW9uID0+IHtcbiAgICAgICAgY29uc3QgZWxlbWVudHNSZXNvbHZlciA9IHRoaXMuZWxlbWVudHNSZXNvbHZlciA/PyBuZXcgRWxlbWVudHNSZXNvbHZlcih1aURlZmluaXRpb24sIFtdKTtcbiAgICAgICAgZWxlbWVudHNSZXNvbHZlci5hZGRFbGVtZW50KGVsZW1lbnQpO1xuICAgICAgICBjb25zdCBjb21wb25lbnRUeXBlcyA9IGVsZW1lbnRzUmVzb2x2ZXIuZ2V0TmdDb21wb25lbnRzKCk7XG4gICAgICAgIGNvbnN0IG1vZHVsZSA9IHRoaXMuZ2V0TW9kdWxlKGNvbXBvbmVudFR5cGVzKTtcblxuICAgICAgICByZXR1cm4ge1xuICAgICAgICAgIG1vZHVsZVJlZjogY3JlYXRlTmdNb2R1bGUobW9kdWxlLCB0aGlzLmluamVjdG9yKSxcbiAgICAgICAgICBlbGVtZW50czogdGhpcy5lbGVtZW50c1Jlc29sdmVyPy5lbGVtZW50cyA/PyBbXSxcbiAgICAgICAgICBjb21wb25lbnRUeXBlcyxcbiAgICAgICAgfTtcbiAgICAgIH0pLFxuICAgICk7XG4gIH1cblxuICBwdWJsaWMgY2xlYXIoKTogdm9pZCB7XG4gICAgdGhpcy51aURlZmluaXRpb25NZXRhID0gdW5kZWZpbmVkO1xuICB9XG5cbiAgcHJpdmF0ZSBnZXRNb2R1bGUoY29tcG9uZW50czogUmVjb3JkPHN0cmluZywgVHlwZTxFbnRpdHk+Pik6IFR5cGU8TmdNb2R1bGU+IHtcbiAgICBATmdNb2R1bGUoe1xuICAgICAgaW1wb3J0czogW1xuICAgICAgICBDb21tb25Nb2R1bGUsXG4gICAgICAgIEZvcm1zTW9kdWxlLFxuICAgICAgICBSZWFjdGl2ZUZvcm1zTW9kdWxlLFxuICAgICAgICBEcmFnRHJvcE1vZHVsZSxcbiAgICAgICAgRG5kTW9kdWxlLFxuICAgICAgICBTY3JvbGxpbmdNb2R1bGUsXG4gICAgICAgIEVsZW1lbnRDaGlsZHJlbk1vZHVsZSxcbiAgICAgICAgRWxlbWVudFJlbmRlcmVyTW9kdWxlLFxuICAgICAgICBFbGVtZW50RHJvcEhhbmRsZU1vZHVsZSxcbiAgICAgICAgQ3VzdG9tVGVtcGxhdGVEaXJlY3RpdmVNb2R1bGUsXG4gICAgICAgIEZlZGVyYXRlZE1vZHVsZSxcbiAgICAgIF0sXG4gICAgICBkZWNsYXJhdGlvbnM6IE9iamVjdC52YWx1ZXMoY29tcG9uZW50cyksXG4gICAgICBqaXQ6IHRydWUsXG4gICAgfSlcbiAgICBjbGFzcyBEeW5hbWljTW9kdWxlIHt9XG5cbiAgICByZXR1cm4gRHluYW1pY01vZHVsZTtcbiAgfVxufVxuIl19
@@ -19,7 +19,7 @@ export class RuntimeService {
19
19
  if (!uiDefinition) {
20
20
  return of([]);
21
21
  }
22
- return this.compilationService.compileUIDefinition$(uiDefinition).pipe(map(result => {
22
+ return this.compilationService.compileUIDefinition$(uiDefinition, config).pipe(map(result => {
23
23
  this.applicationTree = result.elements;
24
24
  this.componentTypes = {
25
25
  ...this.componentTypes,
@@ -77,4 +77,4 @@ RuntimeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", versi
77
77
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: RuntimeService, decorators: [{
78
78
  type: Injectable
79
79
  }], ctorParameters: function () { return [{ type: i0.Injector }]; } });
80
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicnVudGltZS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9zZGsvY21zL21vZHVsZXMvcnVudGltZS9zZXJ2aWNlcy9ydW50aW1lLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxRQUFRLEVBQStCLE1BQU0sZUFBZSxDQUFDO0FBRWxGLE9BQU8sRUFBUyxVQUFVLEVBQUUsTUFBTSxTQUFTLENBQUM7QUFFNUMsT0FBTyxFQUFFLGVBQWUsRUFBYyxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsR0FBRyxFQUFFLEVBQUUsRUFBRSxTQUFTLEVBQUUsU0FBUyxFQUFFLEdBQUcsRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUl0SCxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxvQ0FBb0MsQ0FBQztBQUN2RSxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSxXQUFXLENBQUM7O0FBSXBELE1BQU0sT0FBTyxjQUFjO0lBVXpCLFlBQW9CLFFBQWtCO1FBQWxCLGFBQVEsR0FBUixRQUFRLENBQVU7UUFUL0IsZUFBVSxHQUE0QixFQUFFLENBQUM7UUFDekMsbUJBQWMsR0FBaUMsRUFBRSxDQUFDO1FBQ2xELG9CQUFlLEdBQXNCLEVBQUUsQ0FBQztRQUV4QyxtQkFBYyxHQUFHLElBQUksZUFBZSxDQUFDLEtBQUssQ0FBQyxDQUFDO1FBQzVDLGFBQVEsR0FBRyxJQUFJLE9BQU8sRUFBUSxDQUFDO1FBS3BDL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KTtcbiAgfVxuXG4gIHByaXZhdGUgYWRkRWxlbWVudCQob3BlcmF0aW9uOiBBZGRPcGVyYXRpb24pOiBPYnNlcnZhYmxlPHZvaWQ+IHtcbiAgICByZXR1cm4gdGhpcy5jb21waWxhdGlvblNlcnZpY2UuY29tcGlsZUVsZW1lbnQkKG9wZXJhdGlvbi52YWx1ZSkucGlwZShcbiAgICAgIG1hcChyZXN1bHQgPT4ge1xuICAgICAgICB0aGlzLmNvbXBvbmVudFR5cGVzID0ge1xuICAgICAgICAgIC4uLnRoaXMuY29tcG9uZW50VHlwZXMsXG4gICAgICAgICAgLi4ucmVzdWx0LmNvbXBvbmVudFR5cGVzLFxuICAgICAgICB9O1xuICAgICAgICB0aGlzLm1vZHVsZVJlZnMucHVzaChyZXN1bHQubW9kdWxlUmVmKTtcbiAgICAgICAgYXBwbHlQYXRjaCh0aGlzLmFwcGxpY2F0aW9uVHJlZSwgW3sgLi4ub3BlcmF0aW9uLCB2YWx1ZTogcmVzdWx0LmVsZW1lbnRzWzBdIH1dKTtcbiAgICAgIH0pLFxuICAgICk7XG4gIH1cblxuICBwcml2YXRlIGRlbGV0ZUVsZW1lbnQob3BlcmF0aW9uOiBSZW1vdmVPcGVyYXRpb24pOiB2b2lkIHtcbiAgICBhcHBseVBhdGNoKHRoaXMuYXBwbGljYXRpb25UcmVlLCBbb3BlcmF0aW9uXSk7XG4gIH1cbn1cbiJdfQ==
@@ -1,32 +1,12 @@
1
- import { DOCUMENT } from '@angular/common';
2
1
  import { Directive } from '@angular/core';
3
- import { UUID } from '@veloceapps/core';
4
2
  import { ElementComponent } from '../components/element.component';
5
- import { ELEMENT_METADATA, SHARED_ELEMENT_METADATA, VENDOR_MAP } from '../injection-tokens';
3
+ import { ELEMENT_METADATA, SHARED_ELEMENT_METADATA } from '../injection-tokens';
4
+ import { getScriptClass } from '../utils/script.utils';
6
5
  import * as i0 from "@angular/core";
7
6
  import * as i1 from "../components/element.component";
8
7
  export class ScriptPlugin {
9
8
  constructor(host) {
10
9
  this.host = host;
11
- this.normalizeImports = (script, elementPath) => {
12
- const regexp = new RegExp(`import([ \\n\\t]*(?:[^ \\n\\t\\{\\}]+[ \\n\\t]*,?)?(?:[ \\n\\t]*\\{(?:[ \\n\\t]*[^ \\n\\t"'\\{\\}]+[ \\n\\t]*,?)+\\})?[ \\n\\t]*)from[ \\n\\t]*(['"])([^'"\\n]+)(?:['"]);`, 'g');
13
- const result = script.replace(regexp, (match, g1, g2, src) => {
14
- const imports = g1
15
- .trim()
16
- .slice(1, -1)
17
- .split(',')
18
- .map(item => item.trim());
19
- imports.forEach(item => {
20
- if (!this.vendorMap[src]?.[item]) {
21
- throw new Error(`Failed to import ${item} from '${src}' in ${elementPath}/script.ts`);
22
- }
23
- });
24
- return `const ${g1} = vendor['${src}'];`;
25
- });
26
- return result;
27
- };
28
- this.document = this.host.injector.get(DOCUMENT);
29
- this.vendorMap = this.host.injector.get(VENDOR_MAP);
30
10
  const elementMetadata = this.host.injector.get(ELEMENT_METADATA);
31
11
  const sharedElementMetadata = this.host.injector.get(SHARED_ELEMENT_METADATA);
32
12
  this.addScript(sharedElementMetadata);
@@ -36,25 +16,11 @@ export class ScriptPlugin {
36
16
  if (!metadata?.script) {
37
17
  return;
38
18
  }
39
- const id = btoa(UUID.UUID());
40
- const script = this.document.createElement('script');
41
- script.type = `text/javascript`;
42
- let scriptContent = this.normalizeImports(metadata.script, metadata.path ?? metadata.name);
43
- const classMatch = /export class (\S+)/.exec(scriptContent);
44
- const className = classMatch?.[1];
45
- if (!classMatch || !className) {
46
- console.error("Script doesn't have exported class");
47
- return;
48
- }
49
- scriptContent = scriptContent.replace(classMatch[0], `class ${className}`);
50
- script.text = `var ${id} = function(vendor) {${scriptContent}
51
- return ${className}; };`;
52
- this.document.body.appendChild(script);
53
- const ScriptClass = window[id](this.vendorMap);
19
+ const ScriptClass = getScriptClass(metadata);
54
20
  if (ScriptClass instanceof Object) {
55
- this.host.registerPlugin(new ScriptClass(this.host));
21
+ const instance = new ScriptClass(this.host);
22
+ this.host.registerPlugin(instance);
56
23
  }
57
- this.document.body.removeChild(script);
58
24
  }
59
25
  }
60
26
  ScriptPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ScriptPlugin, deps: [{ token: i1.ElementComponent }], target: i0.ɵɵFactoryTarget.Directive });
@@ -62,4 +28,4 @@ ScriptPlugin.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version:
62
28
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ScriptPlugin, decorators: [{
63
29
  type: Directive
64
30
  }], ctorParameters: function () { return [{ type: i1.ElementComponent }]; } });
65
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NyaXB0LnBsdWdpbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc2RrL2Ntcy9wbHVnaW5zL3NjcmlwdC5wbHVnaW4udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQzNDLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDMUMsT0FBTyxFQUFFLElBQUksRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBRXhDLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLGlDQUFpQyxDQUFDO0FBRW5FLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSx1QkFBdUIsRUFBRSxVQUFVLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQzs7O0FBSTVGLE1BQU0sT0FBTyxZQUFZO0lBSXZCLFlBQW1CLElBQXNCO1FBQXRCLFNBQUksR0FBSixJQUFJLENBQWtCO1FBNENqQyxxQkFBZ0IsR0FBR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q2xhc3MgaW5zdGFuY2VvZiBPYmplY3QpIHtcbiAgICAgIGNvbnN0IGluc3RhbmNlOiBQbHVnaW4gPSBuZXcgKFNjcmlwdENsYXNzIGFzIGFueSkodGhpcy5ob3N0KTtcbiAgICAgIHRoaXMuaG9zdC5yZWdpc3RlclBsdWdpbihpbnN0YW5jZSk7XG4gICAgfVxuICB9XG59XG4iXX0=
@@ -1,12 +1,10 @@
1
1
  import { Injectable } from '@angular/core';
2
- import { BehaviorSubject, filter, map } from 'rxjs';
2
+ import { BehaviorSubject, filter, map, Subject } from 'rxjs';
3
3
  import * as i0 from "@angular/core";
4
- const InitAction = { type: 'INIT' };
5
- const ClearAction = { type: 'CLEAR' };
6
4
  export class IntegrationState {
7
5
  constructor() {
8
6
  this.stateSubj$ = new BehaviorSubject({});
9
- this.action$ = new BehaviorSubject(InitAction);
7
+ this.action$ = new Subject();
10
8
  }
11
9
  get state$() {
12
10
  return this.stateSubj$.asObservable();
@@ -28,7 +26,6 @@ export class IntegrationState {
28
26
  }
29
27
  clear() {
30
28
  this.stateSubj$.next({});
31
- this.action$.next(ClearAction);
32
29
  }
33
30
  }
34
31
  IntegrationState.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: IntegrationState, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
@@ -37,4 +34,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
37
34
  type: Injectable,
38
35
  args: [{ providedIn: 'root' }]
39
36
  }] });
40
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWdyYXRpb24uc3RhdGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL3Nkay9jbXMvc2VydmljZXMvaW50ZWdyYXRpb24uc3RhdGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEs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SBidWlsZGVyXG4gICAqL1xuICBjb25maWd1cmVkU3R5bGVzPzogRWxlbWVudFN0eWxlRGVjbGFyYXRpb247XG4gIC8qKlxuICAgKiBQYWdlIGxheW91dFxuICAgKlxuICAgKiBVc2VkIG9ubHkgd2hlbiBgdHlwZSA9PT0gUEFHRWBcbiAgICovXG4gIGxheW91dD86IFBhZ2VMYXlvdXQ7XG4gIC8qKlxuICAgKiBQYWdlIFR5cGVcbiAgICpcbiAgICogVXNlZCBvbmx5IHdoZW4gYHR5cGUgPT09IFBBR0VgXG4gICAqL1xuICBwYWdlVHlwZT86IFBhZ2VUeXBlO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIEVsZW1lbnRNZXRhZGF0YSBleHRlbmRzIE9taXQ8RWxlbWVudERlZmF1bHRNZXRhZGF0YSwgJ2NoaWxkcmVuJz4ge1xuICBwYXRoOiBzdHJpbmc7XG4gIGNoaWxkcmVuOiBFbGVtZW50TWV0YWRhdGFbXTtcbiAgdGVtcGxhdGU/OiBzdHJpbmc7XG4gIHN0eWxlcz86IHN0cmluZztcbiAgc2NyaXB0Pzogc3RyaW5nO1xuICBtZXRhZGF0YT86IHN0cmluZztcbn1cbiJdfQ==
@@ -5,11 +5,12 @@ import { flatten, kebabCase, set } from 'lodash';
5
5
  import { DEFAULT_PLUGINS } from '../cms.default';
6
6
  import { CONFIG } from '../cms.elements';
7
7
  import { LAYOUT } from '../cms.layouts';
8
- import { DEFAULT_PLUGINS_TOKEN, ELEMENT_CONFIG, ELEMENT_METADATA, SHARED_ELEMENT_METADATA, UI_DEFINITION_METADATA, VENDOR_MAP, } from '../injection-tokens';
9
- import { vendorMap } from '../vendor-map';
8
+ import { DEFAULT_PLUGINS_TOKEN, ELEMENT_CONFIG, ELEMENT_METADATA, SHARED_ELEMENT_METADATA, UI_DEFINITION_METADATA, } from '../injection-tokens';
9
+ import { getScriptClass } from './script.utils';
10
10
  export class ElementsResolver {
11
- constructor(uiDef, elements, sharedElements = []) {
11
+ constructor(uiDef, elements, sharedElements = [], config) {
12
12
  this.uiDef = uiDef;
13
+ this.config = config;
13
14
  this.renderableElements = [];
14
15
  this.sharedElements = [];
15
16
  const transpiledElements = this.transpileScripts(elements);
@@ -19,6 +20,10 @@ export class ElementsResolver {
19
20
  .concat(transpiledSharedElements);
20
21
  this.elements = transpiledElements.map(el => this.processElementMetadata(el)).filter(isDefined);
21
22
  this.renderableElements = this.getRenderableElements(this.elements);
23
+ this.uiDefMetadata = {
24
+ ...this.uiDef,
25
+ customization: this.uiDef.customization ?? this.getDefaultCustomizationState(),
26
+ };
22
27
  }
23
28
  addElement(element) {
24
29
  if (element.isShared) {
@@ -61,7 +66,9 @@ export class ElementsResolver {
61
66
  getRenderableElements(elements) {
62
67
  const renderable = [];
63
68
  for (const el of elements) {
64
- if (!this.isSharedElement(el)) {
69
+ // In `customizationMode` render only element with CUSTOMIZATION_PAGE type
70
+ const typePerMode = Boolean(this.config?.customizationMode) === (el.type === 'CUSTOMIZATION_PAGE');
71
+ if (!this.isSharedElement(el) && typePerMode) {
65
72
  const children = el.children.filter(child => !this.isSharedElement(child));
66
73
  const renderableChildren = this.getRenderableElements(children);
67
74
  renderable.push({ ...el, children }, ...renderableChildren);
@@ -140,7 +147,7 @@ export class ElementsResolver {
140
147
  }
141
148
  resolveElement(element) {
142
149
  const config = CONFIG[element.type];
143
- const defaultPlugins = DEFAULT_PLUGINS[this.uiDef.type] ?? [];
150
+ const defaultPlugins = DEFAULT_PLUGINS[this.uiDefMetadata.type] ?? [];
144
151
  if (!config) {
145
152
  console.warn(`Unknown element type "${element.type}"`);
146
153
  return;
@@ -152,11 +159,10 @@ export class ElementsResolver {
152
159
  ...(styles ? { styles: [styles] } : {}),
153
160
  providers: [
154
161
  { provide: DEFAULT_PLUGINS_TOKEN, useValue: defaultPlugins },
155
- { provide: UI_DEFINITION_METADATA, useValue: this.uiDef },
162
+ { provide: UI_DEFINITION_METADATA, useValue: this.uiDefMetadata },
156
163
  { provide: ELEMENT_METADATA, useValue: element },
157
164
  { provide: SHARED_ELEMENT_METADATA, useValue: this.getSharedElement(element) },
158
165
  { provide: ELEMENT_CONFIG, useValue: config },
159
- { provide: VENDOR_MAP, useValue: vendorMap },
160
166
  ],
161
167
  };
162
168
  const cmp = Component(component)(class C extends config.component {
@@ -188,5 +194,13 @@ export class ElementsResolver {
188
194
  result += '}\n';
189
195
  return result;
190
196
  }
197
+ getDefaultCustomizationState() {
198
+ const customizationPage = this.elements.find(el => el.type === 'CUSTOMIZATION_PAGE');
199
+ if (!customizationPage?.script) {
200
+ return;
201
+ }
202
+ const c = getScriptClass(customizationPage);
203
+ return c && 'default' in c ? c.default : undefined;
204
+ }
191
205
  }
192
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWxlbWVudHMtcmVzb2x2ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL3Nkay9jbXMvdXRpbHMvZWxlbWVudHMtcmVzb2x2ZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBUSxNQUFNLGVBQWUsQ0FBQztBQUNoRCxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFDOUMsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBRTdDLE9BQU8sRUFBRSxPQUFPLEVBQUUsU0FBUyxFQUFFLEdBQUcsRUFBRSxNQUFNLFFBQVEsQ0FBQztBQUNqRCxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDakQsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQ3pDLE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUV4QyxPQUFPLEVBQ0wscUJBQXFCL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xhcmF0aW9uKTogc3RyaW5nIHtcbiAgICBpZiAoIXN0eWxlcykge1xuICAgICAgcmV0dXJuICcnO1xuICAgIH1cblxuICAgIGNvbnN0IGVudHJpZXMgPSBPYmplY3QuZW50cmllcyhzdHlsZXMpO1xuICAgIGxldCByZXN1bHQgPSAnOmhvc3Qge1xcbic7XG5cbiAgICBlbnRyaWVzLmZvckVhY2goKFtzdHlsZSwgdmFsdWVdKSA9PiB7XG4gICAgICByZXN1bHQgKz0gYCAgJHtrZWJhYkNhc2Uoc3R5bGUpfToke3ZhbHVlfTtcXG5gO1xuICAgIH0pO1xuXG4gICAgcmVzdWx0ICs9ICd9XFxuJztcblxuICAgIHJldHVybiByZXN1bHQ7XG4gIH1cblxuICBwcml2YXRlIGdldERlZmF1bHRDdXN0b21pemF0aW9uU3RhdGUoKTogdW5rbm93biB7XG4gICAgY29uc3QgY3VzdG9taXphdGlvblBhZ2UgPSB0aGlzLmVsZW1lbnRzLmZpbmQoZWwgPT4gZWwudHlwZSA9PT0gJ0NVU1RPTUlaQVRJT05fUEFHRScpO1xuICAgIGlmICghY3VzdG9taXphdGlvblBhZ2U/LnNjcmlwdCkge1xuICAgICAgcmV0dXJuO1xuICAgIH1cblxuICAgIGNvbnN0IGMgPSBnZXRTY3JpcHRDbGFzcyhjdXN0b21pemF0aW9uUGFnZSk7XG4gICAgcmV0dXJuIGMgJiYgJ2RlZmF1bHQnIGluIGMgPyBjLmRlZmF1bHQgOiB1bmRlZmluZWQ7XG4gIH1cbn1cbiJdfQ==
@@ -0,0 +1,42 @@
1
+ import { UUID } from '@veloceapps/core';
2
+ import { vendorMap } from '../vendor-map';
3
+ const importRegexp = new RegExp(`import([ \\n\\t]*(?:[^ \\n\\t\\{\\}]+[ \\n\\t]*,?)?(?:[ \\n\\t]*\\{(?:[ \\n\\t]*[^ \\n\\t"'\\{\\}]+[ \\n\\t]*,?)+\\})?[ \\n\\t]*)from[ \\n\\t]*(['"])([^'"\\n]+)(?:['"]);`, 'g');
4
+ const normalizeImports = (script, elementPath) => {
5
+ const result = script.replace(importRegexp, (match, g1, g2, src) => {
6
+ const imports = g1
7
+ .trim()
8
+ .slice(1, -1)
9
+ .split(',')
10
+ .map(item => item.trim());
11
+ imports.forEach(item => {
12
+ if (!vendorMap[src]?.[item]) {
13
+ throw new Error(`Failed to import ${item} from '${src}' in ${elementPath}/script.ts`);
14
+ }
15
+ });
16
+ return `const ${g1} = vendor['${src}'];`;
17
+ });
18
+ return result;
19
+ };
20
+ export const getScriptClass = (metadata) => {
21
+ if (!metadata?.script) {
22
+ return;
23
+ }
24
+ const id = btoa(UUID.UUID());
25
+ const script = document.createElement('script');
26
+ script.type = `text/javascript`;
27
+ let scriptContent = normalizeImports(metadata.script, metadata.path);
28
+ const classMatch = /export class (\S+)/.exec(scriptContent);
29
+ const className = classMatch?.[1];
30
+ if (!classMatch || !className) {
31
+ console.error("Script doesn't have exported class");
32
+ return;
33
+ }
34
+ scriptContent = scriptContent.replace(classMatch[0], `class ${className}`);
35
+ script.text = `var ${id} = function(vendor) {${scriptContent}
36
+ return ${className}; };`;
37
+ document.body.appendChild(script);
38
+ const ScriptClass = window?.[id]?.(vendorMap);
39
+ document.body.removeChild(script);
40
+ return ScriptClass;
41
+ };
42
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NyaXB0LnV0aWxzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9zZGsvY21zL3V0aWxzL3NjcmlwdC51dGlscy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFFeEMsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUUxQyxNQUFNLFlBQVksR0FBRyxJQUFJLE1BQU0sQ0FDN0IsMktBQTJLLEVBQzNLLEd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NyaXB0Pzogc3RyaW5nO1xuICBzdHlsZXM/OiBzdHJpbmc7XG59XG4iXX0=
@@ -33,7 +33,6 @@ const rootRoute = {
33
33
  canActivate: [RootGuard],
34
34
  canDeactivate: [RootGuard],
35
35
  children: [
36
- { path: '', redirectTo: 'debug', pathMatch: 'full' },
37
36
  {
38
37
  path: 'flows',
39
38
  runGuardsAndResolvers: 'paramsOrQueryParamsChange',
@@ -146,4 +145,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
146
145
  providers: [FlowRouterService, RootGuard, ContextGuard, ProductUnloadGuard, FlowResolver, QuoteResolver],
147
146
  }]
148
147
  }] });
149
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmxvdy1yb3V0aW5nLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvc2RrL3NyYy9mbG93LXJvdXRpbmcubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxzQkFBc0IsRUFBRSxNQUFNLGFBQWEsQ0FBQztBQUNyRCxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFDakQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQ3RELE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLCtCQUErQixDQUFDO0FBQ25FLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUNoRCxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0saUNBQWlDLENBQUM7QUFDbEUs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