@acorex/layout 6.5.71 → 6.5.72

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. package/README.md +7 -2
  2. package/esm2022/acorex-layout.mjs +5 -0
  3. package/esm2022/index.mjs +7 -0
  4. package/esm2022/lib/widget-board/editors/widget-size-editor/widget-size.editor.mjs +49 -0
  5. package/esm2022/lib/widget-board/editors/widget-size-editor/widget-size.module.mjs +21 -0
  6. package/esm2022/lib/widget-board/widget-board.component.mjs +452 -0
  7. package/esm2022/lib/widget-board/widget-board.module.mjs +109 -0
  8. package/esm2022/lib/widget-board/widget-config.component.mjs +85 -0
  9. package/esm2022/lib/widget-board/widget-host.component.mjs +311 -0
  10. package/esm2022/lib/widget-board/widget-save.component.mjs +79 -0
  11. package/esm2022/lib/widget-board/widget.class.mjs +130 -0
  12. package/{fesm2020 → fesm2022}/acorex-layout.mjs +158 -127
  13. package/fesm2022/acorex-layout.mjs.map +1 -0
  14. package/lib/widget-board/editors/widget-size-editor/widget-size.editor.d.ts +1 -1
  15. package/lib/widget-board/widget-board.component.d.ts +1 -1
  16. package/lib/widget-board/widget-config.component.d.ts +1 -1
  17. package/lib/widget-board/widget-host.component.d.ts +1 -1
  18. package/lib/widget-board/widget-save.component.d.ts +1 -1
  19. package/package.json +12 -18
  20. package/acorex-layout.d.ts +0 -5
  21. package/esm2020/acorex-layout.mjs +0 -5
  22. package/esm2020/lib/widget-board/editors/widget-size-editor/widget-size.editor.mjs +0 -46
  23. package/esm2020/lib/widget-board/editors/widget-size-editor/widget-size.module.mjs +0 -21
  24. package/esm2020/lib/widget-board/widget-board.component.mjs +0 -444
  25. package/esm2020/lib/widget-board/widget-board.module.mjs +0 -111
  26. package/esm2020/lib/widget-board/widget-config.component.mjs +0 -82
  27. package/esm2020/lib/widget-board/widget-host.component.mjs +0 -295
  28. package/esm2020/lib/widget-board/widget-save.component.mjs +0 -79
  29. package/esm2020/lib/widget-board/widget.class.mjs +0 -127
  30. package/esm2020/public-api.mjs +0 -7
  31. package/fesm2015/acorex-layout.mjs +0 -1175
  32. package/fesm2015/acorex-layout.mjs.map +0 -1
  33. package/fesm2020/acorex-layout.mjs.map +0 -1
  34. /package/{public-api.d.ts → index.d.ts} +0 -0
@@ -1,111 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { AXWidgetBoardComponent } from './widget-board.component';
3
- import { CommonModule } from '@angular/common';
4
- import { AXWidgetHostComponent } from './widget-host.component';
5
- import { AXSearchBoxModule, AXLoadingModule, AXProppertyEditorModule, AXPageModule, AXLabelModule, AXToolbarModule, AXTabStripModule, AXMenuModule, AXFormGroupModule, AXTextAreaModule, AXTextBoxModule, AXFieldsetModule, AXCheckBoxModule, AXValidationModule } from '@acorex/components';
6
- import { RouterModule } from '@angular/router';
7
- import { AXWidgetConfigComponent } from './widget-config.component';
8
- import { AXTranslator, AXTranslatorModule } from '@acorex/core';
9
- import { AXWidgetSizePropertyEditorComponent } from './editors/widget-size-editor/widget-size.editor';
10
- import { AXWidgetSaveComponent } from './widget-save.component';
11
- import * as i0 from "@angular/core";
12
- import * as i1 from "@angular/router";
13
- export class AXWidgetBoardModule {
14
- /**
15
- *
16
- */
17
- constructor() {
18
- AXTranslator.load('en', {
19
- 'widget-board': {
20
- 'configurable-props': 'Configurable Properties',
21
- configure: 'Configure Widget'
22
- }
23
- });
24
- AXTranslator.load('fa', {
25
- 'widget-board': {
26
- 'configurable-props': 'ویژگی های قابل تنظیم',
27
- configure: 'پیکر بندی ابزارک'
28
- }
29
- });
30
- }
31
- }
32
- AXWidgetBoardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXWidgetBoardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
33
- AXWidgetBoardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXWidgetBoardModule, declarations: [AXWidgetBoardComponent, AXWidgetHostComponent, AXWidgetConfigComponent, AXWidgetSaveComponent], imports: [CommonModule,
34
- AXSearchBoxModule,
35
- AXLoadingModule,
36
- RouterModule,
37
- AXProppertyEditorModule,
38
- AXPageModule,
39
- AXToolbarModule,
40
- AXTranslatorModule,
41
- AXLabelModule,
42
- AXTextAreaModule,
43
- AXFieldsetModule,
44
- AXTextBoxModule,
45
- AXFormGroupModule,
46
- AXTabStripModule,
47
- AXCheckBoxModule,
48
- AXMenuModule,
49
- AXTranslatorModule,
50
- AXValidationModule, i1.RouterModule], exports: [AXWidgetBoardComponent, AXProppertyEditorModule] });
51
- AXWidgetBoardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXWidgetBoardModule, providers: [], imports: [[
52
- CommonModule,
53
- AXSearchBoxModule,
54
- AXLoadingModule,
55
- RouterModule,
56
- AXProppertyEditorModule,
57
- AXPageModule,
58
- AXToolbarModule,
59
- AXTranslatorModule,
60
- AXLabelModule,
61
- AXTextAreaModule,
62
- AXFieldsetModule,
63
- AXTextBoxModule,
64
- AXFormGroupModule,
65
- AXTabStripModule,
66
- AXCheckBoxModule,
67
- AXMenuModule,
68
- AXTranslatorModule,
69
- AXValidationModule,
70
- RouterModule.forChild([
71
- {
72
- component: AXWidgetSizePropertyEditorComponent,
73
- path: 'ax/editors/widget-size'
74
- },
75
- ])
76
- ], AXProppertyEditorModule] });
77
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXWidgetBoardModule, decorators: [{
78
- type: NgModule,
79
- args: [{
80
- imports: [
81
- CommonModule,
82
- AXSearchBoxModule,
83
- AXLoadingModule,
84
- RouterModule,
85
- AXProppertyEditorModule,
86
- AXPageModule,
87
- AXToolbarModule,
88
- AXTranslatorModule,
89
- AXLabelModule,
90
- AXTextAreaModule,
91
- AXFieldsetModule,
92
- AXTextBoxModule,
93
- AXFormGroupModule,
94
- AXTabStripModule,
95
- AXCheckBoxModule,
96
- AXMenuModule,
97
- AXTranslatorModule,
98
- AXValidationModule,
99
- RouterModule.forChild([
100
- {
101
- component: AXWidgetSizePropertyEditorComponent,
102
- path: 'ax/editors/widget-size'
103
- },
104
- ])
105
- ],
106
- exports: [AXWidgetBoardComponent, AXProppertyEditorModule],
107
- declarations: [AXWidgetBoardComponent, AXWidgetHostComponent, AXWidgetConfigComponent, AXWidgetSaveComponent],
108
- providers: []
109
- }]
110
- }], ctorParameters: function () { return []; } });
111
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2lkZ2V0LWJvYXJkLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Fjb3JleC9sYXlvdXQvc3JjL2xpYi93aWRnZXQtYm9hcmQvd2lkZ2V0LWJvYXJkLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSxzQkFBc0IsRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBQ2xFLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUscUJBQXFCLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUNoRSxPQUFPLEVBQ0gsaUJBQWlCLEVBQ2pCLGVBQWUsRUFDZix1QkFBdUIsRUFDdkIsWUFBWSxFQUFFLGFBQWEsRUFDM0IsZUFBZSxFQUNmLGdCQUFnQixFQUNoQixZQUFZLEVBQ1osaUJBQWlCLEVBQ2pCLGdCQUFnQixFQUFFLGVBQWUsRUFBRSxnQkFBZ0IsRUFBRSxnQkFBZ0IsRUFBRSxrQkFBa0IsRUFDNUYsTUFBTSxvQkFBb0IsQ0FBQztBQUM1QixPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQ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mxlLXByb3BzJzogJ9mI24zamNqv24wg2YfYp9uMINmC2KfYqNmEINiq2YbYuNuM2YUnLFxuICAgICAgICAgICAgICAgIGNvbmZpZ3VyZTogJ9m+24zaqdixINio2YbYr9uMINin2KjYstin2LHaqSdcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG5cbiAgICB9XG5cbn1cbiJdfQ==
@@ -1,82 +0,0 @@
1
- import { Component, ViewEncapsulation, ChangeDetectionStrategy, ChangeDetectorRef, ViewChild } from '@angular/core';
2
- import { AXBasePopupPageComponent, AXValidationFormComponent } from '@acorex/components';
3
- import { AXTranslator } from '@acorex/core';
4
- import * as i0 from "@angular/core";
5
- import * as i1 from "@acorex/components";
6
- import * as i2 from "@angular/common";
7
- import * as i3 from "@acorex/core";
8
- export class AXWidgetConfigComponent extends AXBasePopupPageComponent {
9
- constructor(cdr) {
10
- super();
11
- this.cdr = cdr;
12
- this.props = [];
13
- this.displayProps = [];
14
- this.changes = [];
15
- this.context = {};
16
- }
17
- getFooterButtons() {
18
- return [
19
- {
20
- name: 'okay',
21
- submitBehavior: true,
22
- text: AXTranslator.get('common.confirm'),
23
- style: 'success'
24
- },
25
- {
26
- name: 'cancel',
27
- cancelBehavior: true,
28
- text: AXTranslator.get('common.cancel'),
29
- style: 'danger blank'
30
- }
31
- ];
32
- }
33
- onFooterButtonClick(e) {
34
- if (e.name === 'cancel') {
35
- this.close();
36
- }
37
- if (e.name === 'okay') {
38
- this.form.validate().then(c => {
39
- if (c.result) {
40
- this.close(this.changes);
41
- }
42
- });
43
- }
44
- }
45
- handleValueChange(e) {
46
- const prop = this.changes.find(c => c.property.name === e.property.name);
47
- if (prop) {
48
- prop.value = e.value;
49
- }
50
- else {
51
- this.changes.push({ property: e.property, value: e.value });
52
- }
53
- this.updateContext();
54
- }
55
- ngOnInit() {
56
- this.displayProps = this.props.filter(c => c.property.visible !== false).sort((a, b) => a.property.order - b.property.order);
57
- this.updateContext();
58
- }
59
- updateContext() {
60
- const ctx = {};
61
- this.props.forEach(p => {
62
- ctx[p.property.name] = p.value;
63
- });
64
- this.changes.forEach(p => {
65
- ctx[p.property.name] = p.value;
66
- });
67
- this.context = ctx;
68
- }
69
- identify(index, item) {
70
- return item.property.name;
71
- }
72
- }
73
- AXWidgetConfigComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXWidgetConfigComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
74
- AXWidgetConfigComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXWidgetConfigComponent, selector: "ng-component", viewQueries: [{ propertyName: "form", first: true, predicate: AXValidationFormComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ax-page>\n <ax-page-content>\n <div class=\"container\">\n <ax-validation-form #form>\n <div class=\"row\" *ngFor=\"let p of displayProps; trackBy: identify\">\n <div class=\"col-12\">\n <ax-label>{{p.property.title | trans}}</ax-label>\n <ng-container ax-property-editor-renderer [property]=\"p\" [context]=\"context\" [host]=\"widget\" [validationForm]=\"form\"\n (onValueChange)=\"handleValueChange($event)\">\n </ng-container>\n </div>\n </div>\n </ax-validation-form>\n </div>\n </ax-page-content>\n</ax-page>", components: [{ type: i1.AXPageComponent, selector: "ax-page" }, { type: i1.AXPageContentComponent, selector: "ax-page-content" }, { type: i1.AXValidationFormComponent, selector: "ax-validation-form", inputs: ["validateOn"], outputs: ["onInit"] }, { type: i1.AXLabelComponent, selector: "ax-label", inputs: ["size"] }], directives: [{ type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.AXPropertyEditorRendererDirective, selector: "[ax-property-editor-renderer]", inputs: ["property", "validationForm", "context", "host", "groupId"], outputs: ["onValueChange"] }], pipes: { "trans": i3.AXTranslatorPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
75
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXWidgetConfigComponent, decorators: [{
76
- type: Component,
77
- args: [{ encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ax-page>\n <ax-page-content>\n <div class=\"container\">\n <ax-validation-form #form>\n <div class=\"row\" *ngFor=\"let p of displayProps; trackBy: identify\">\n <div class=\"col-12\">\n <ax-label>{{p.property.title | trans}}</ax-label>\n <ng-container ax-property-editor-renderer [property]=\"p\" [context]=\"context\" [host]=\"widget\" [validationForm]=\"form\"\n (onValueChange)=\"handleValueChange($event)\">\n </ng-container>\n </div>\n </div>\n </ax-validation-form>\n </div>\n </ax-page-content>\n</ax-page>" }]
78
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { form: [{
79
- type: ViewChild,
80
- args: [AXValidationFormComponent]
81
- }] } });
82
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2lkZ2V0LWNvbmZpZy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hY29yZXgvbGF5b3V0L3NyYy9saWIvd2lkZ2V0LWJvYXJkL3dpZGdldC1jb25maWcuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWNvcmV4L2xheW91dC9zcmMvbGliL3dpZGdldC1ib2FyZC93aWRnZXQtY29uZmlnLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsaUJBQWlCLEVBQUUsdUJBQXVCLEVBQUUsaUJBQWlCLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3BILE9BQU8sRUFBb0Isd0JBQXdCLEVBQXlELHlCQUF5QixFQ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SA9IFtdO1xuXG4gICAgY29udGV4dDogYW55ID0ge307XG5cblxuICAgIGdldEZvb3RlckJ1dHRvbnMoKTogQVhCdXR0b25JdGVtW10ge1xuICAgICAgICByZXR1cm4gW1xuICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIG5hbWU6ICdva2F5JyxcbiAgICAgICAgICAgICAgICBzdWJtaXRCZWhhdmlvcjogdHJ1ZSxcbiAgICAgICAgICAgICAgICB0ZXh0OiBBWFRyYW5zbGF0b3IuZ2V0KCdjb21tb24uY29uZmlybScpLFxuICAgICAgICAgICAgICAgIHN0eWxlOiAnc3VjY2VzcydcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgbmFtZTogJ2NhbmNlbCcsXG4gICAgICAgICAgICAgICAgY2FuY2VsQmVoYXZpb3I6IHRydWUsXG4gICAgICAgICAgICAgICAgdGV4dDogQVhUcmFuc2xhdG9yLmdldCgnY29tbW9uLmNhbmNlbCcpLFxuICAgICAgICAgICAgICAgIHN0eWxlOiAnZGFuZ2VyIGJsYW5rJ1xuICAgICAgICAgICAgfVxuICAgICAgICBdO1xuICAgIH1cblxuXG5cblxuXG4gICAgb25Gb290ZXJCdXR0b25DbGljayhlOiBBWE1lbnVJdGVtQ2xpY2tFdmVudCkge1xuICAgICAgICBpZiAoZS5uYW1lID09PSAnY2FuY2VsJykge1xuICAgICAgICAgICAgdGhpcy5jbG9zZSgpO1xuICAgICAgICB9XG4gICAgICAgIGlmIChlLm5hbWUgPT09ICdva2F5Jykge1xuICAgICAgICAgICAgdGhpcy5mb3JtLnZhbGlkYXRlKCkudGhlbihjID0+IHtcbiAgICAgICAgICAgICAgICBpZiAoYy5yZXN1bHQpIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5jbG9zZSh0aGlzLmNoYW5nZXMpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgaGFuZGxlVmF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sIGl0ZW06IEFYUHJvcGVydHlDb25maWcpIHtcbiAgICAgICAgcmV0dXJuIGl0ZW0ucHJvcGVydHkubmFtZTtcbiAgICB9XG5cbn0iLCI8YXgtcGFnZT5cbiAgICA8YXgtcGFnZS1jb250ZW50PlxuICAgICAgICA8ZGl2IGNsYXNzPVwiY29udGFpbmVyXCI+XG4gICAgICAgICAgICA8YXgtdmFsaWRhdGlvbi1mb3JtICNmb3JtPlxuICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJyb3dcIiAqbmdGb3I9XCJsZXQgcCBvZiBkaXNwbGF5UHJvcHM7IHRyYWNrQnk6IGlkZW50aWZ5XCI+XG4gICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJjb2wtMTJcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgIDxheC1sYWJlbD57e3AucHJvcGVydHkudGl0bGUgfCB0cmFuc319PC9heC1sYWJlbD5cbiAgICAgICAgICAgICAgICAgICAgICAgIDxuZy1jb250YWluZXIgYXgtcHJvcGVydHktZWRpdG9yLXJlbmRlcmVyIFtwcm9wZXJ0eV09XCJwXCIgW2NvbnRleHRdPVwiY29udGV4dFwiIFtob3N0XT1cIndpZGdldFwiICBbdmFsaWRhdGlvbkZvcm1dPVwiZm9ybVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgKG9uVmFsdWVDaGFuZ2UpPVwiaGFuZGxlVmFsdWVDaGFuZ2UoJGV2ZW50KVwiPlxuICAgICAgICAgICAgICAgICAgICAgICAgPC9uZy1jb250YWluZXI+XG4gICAgICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgPC9heC12YWxpZGF0aW9uLWZvcm0+XG4gICAgICAgIDwvZGl2PlxuICAgIDwvYXgtcGFnZS1jb250ZW50PlxuPC9heC1wYWdlPiJdfQ==
@@ -1,295 +0,0 @@
1
- import { Component, ViewEncapsulation, Input, ElementRef, HostBinding, ComponentFactoryResolver, ViewChild, ViewContainerRef, Output, EventEmitter, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core';
2
- import { AXObjectUtil, AXRenderService } from '@acorex/core';
3
- import { AXPopupService, AXPropertyDecorators, AXLoadingService } from '@acorex/components';
4
- import { AXWidgetConfigComponent } from './widget-config.component';
5
- import { AXTranslator } from '@acorex/core';
6
- import { AXWidgetSaveComponent } from './widget-save.component';
7
- import * as i0 from "@angular/core";
8
- import * as i1 from "@acorex/core";
9
- import * as i2 from "@acorex/components";
10
- import * as i3 from "@angular/common";
11
- export class AXWidgetHostComponent {
12
- constructor(ref, componentFactoryResolver, rendererService, cdr, popup, loadingService) {
13
- this.ref = ref;
14
- this.componentFactoryResolver = componentFactoryResolver;
15
- this.rendererService = rendererService;
16
- this.cdr = cdr;
17
- this.popup = popup;
18
- this.loadingService = loadingService;
19
- this._hasProps = false;
20
- this._hasMenu = false;
21
- this.configMenuItem = [
22
- {
23
- icon: 'far fa-ellipsis-h',
24
- items: []
25
- }
26
- ];
27
- this.onRemove = new EventEmitter();
28
- this.onConfigChanged = new EventEmitter();
29
- this.onResized = new EventEmitter();
30
- this.onSave = new EventEmitter();
31
- this.readonly = false;
32
- this._isLoading = false;
33
- this.sizeX = 1;
34
- this.sizeY = 1;
35
- this.col = 1;
36
- this.row = 1;
37
- }
38
- get widget() {
39
- return this._widget;
40
- }
41
- get element() {
42
- return this.ref.nativeElement;
43
- }
44
- get isLoading() {
45
- return this._isLoading;
46
- }
47
- set isLoading(v) {
48
- this._isLoading = v;
49
- if (this._loadingId && !v) {
50
- this.loadingService.hide(this._loadingId);
51
- this._loadingId = null;
52
- }
53
- if (v) {
54
- this._loadingId = this.loadingService.show(this.ref.nativeElement);
55
- }
56
- }
57
- get isConfigured() {
58
- return this._widget?.isConfigured || false;
59
- }
60
- ngOnInit() {
61
- this.isLoading = true;
62
- }
63
- async ngAfterViewInit() {
64
- let component;
65
- if (typeof this.config.component === 'string') {
66
- const route = await this.rendererService.findLoadedComponentByRoute(this.config.component, 20);
67
- component = route?.component;
68
- }
69
- else if (typeof this.config.component === 'function') {
70
- component = this.config.component;
71
- }
72
- if (component == null) {
73
- console.error(`Invalid Widget Component!`, this.config);
74
- this.onRemove.emit(this);
75
- return;
76
- }
77
- const widgetFactory = this.componentFactoryResolver.resolveComponentFactory(component);
78
- this.componentRef = this.vc.createComponent(widgetFactory);
79
- this._widget = this.componentRef.instance;
80
- this._widget.provideValue = this.provideValue;
81
- if (this._widget.onBusyChanged) {
82
- this._widget.onBusyChanged.subscribe((d) => {
83
- if (!this._widget.widgetSize) {
84
- this._widget.setValue('widgetSize', [this.sizeX, this.sizeY]);
85
- }
86
- else {
87
- this.setSizeFromOptions();
88
- }
89
- this.isLoading = d.value;
90
- this.cdr.detectChanges();
91
- });
92
- }
93
- if (this._widget.onConfiguredChanged) {
94
- this._widget.onConfiguredChanged.subscribe(() => {
95
- this.setSizeFromOptions();
96
- });
97
- }
98
- //
99
- if (this.config.options) {
100
- Object.assign(this._widget, this.config.options);
101
- }
102
- this._hasProps = AXPropertyDecorators.getProperties(this._widget).length > 0;
103
- this.isLoading = false;
104
- this.config['__meta__'].instance = this;
105
- this._widget['__meta__'] = {};
106
- this._widget['__meta__'].config = this.config;
107
- //
108
- this.configMenuItem[0].items.push({
109
- name: 'refresh',
110
- icon: 'far fa-undo',
111
- text: AXTranslator.get('common.refresh'),
112
- onClick: () => {
113
- this?.widget?.refresh();
114
- }
115
- });
116
- //
117
- if (this._hasProps) {
118
- this.configMenuItem[0].items.push({
119
- name: 'configs',
120
- icon: 'far fa-cogs',
121
- text: AXTranslator.get('common.configs'),
122
- onClick: () => {
123
- this.openConfigDialog();
124
- }
125
- });
126
- }
127
- this.configMenuItem[0].items.push({
128
- name: 'save',
129
- icon: 'far fa-save',
130
- text: AXTranslator.get('common.save-as'),
131
- onClick: () => {
132
- this.openSaveDialog();
133
- }
134
- });
135
- if (true) {
136
- this.configMenuItem[0].items.push({
137
- name: 'remove',
138
- icon: 'far fa-times',
139
- style: 'ax danger blank',
140
- text: AXTranslator.get('common.remove'),
141
- onClick: () => {
142
- this.onRemove.emit(this);
143
- }
144
- });
145
- }
146
- this._hasMenu = this.configMenuItem[0].items.length > 0;
147
- this.cdr.detectChanges();
148
- }
149
- setSizeFromOptions() {
150
- this._widget.getValue('widgetSize').then(c => {
151
- const oldSizeX = this.sizeX;
152
- const oldSizeY = this.sizeY;
153
- if (c && Array.isArray(c) && (oldSizeX !== c[0] || oldSizeY !== c[1])) {
154
- this.config.sizeX = this.sizeX = c[0];
155
- this.config.sizeY = this.sizeY = c[1];
156
- this.onResized.emit({
157
- component: this._widget,
158
- config: this.config
159
- });
160
- }
161
- this.cdr.detectChanges();
162
- });
163
- }
164
- remove(e) {
165
- e.preventDefault();
166
- e.stopPropagation();
167
- if (!this.readonly)
168
- this.onRemove.emit(this);
169
- return false;
170
- }
171
- handleConfig(e) {
172
- e.preventDefault();
173
- e.stopPropagation();
174
- if (!this.readonly)
175
- this.openConfigDialog();
176
- return false;
177
- }
178
- openConfigDialog() {
179
- const ppp = this.getMergedProps();
180
- this.popup.open(AXWidgetConfigComponent, {
181
- title: AXTranslator.get('common.configs'),
182
- size: 'sm',
183
- data: {
184
- props: ppp.map(c => ({ property: c.options, value: this._widget[c.options.name] })),
185
- widget: this.widget
186
- }
187
- }).then(c => {
188
- if (c.data) {
189
- if (!this.config.options) {
190
- this.config.options = {};
191
- }
192
- c.data.forEach(p => {
193
- this._widget.setValue(p.property.name, p.value);
194
- this.config.options[p.property.name] = p.value;
195
- });
196
- this.emitConfigChanged();
197
- this._widget.redraw();
198
- this.cdr.detectChanges();
199
- }
200
- });
201
- }
202
- openSaveDialog() {
203
- const ppp = this.getMergedProps();
204
- this.popup.open(AXWidgetSaveComponent, {
205
- title: AXTranslator.get('common.save-as'),
206
- size: 'sm',
207
- data: {
208
- config: this.config,
209
- props: ppp.map(c => ({ property: c.options, value: this._widget[c.options.name] }))
210
- }
211
- }).then(c => {
212
- if (c.data) {
213
- this.onSave.emit({
214
- component: this._widget,
215
- data: c.data
216
- });
217
- }
218
- });
219
- }
220
- handleOptionClick(e) {
221
- e.preventDefault();
222
- e.stopPropagation();
223
- this.openConfigDialog();
224
- return false;
225
- }
226
- ngOnDestroy() {
227
- this.vc.clear();
228
- if (this.componentRef) {
229
- this.componentRef.destroy();
230
- }
231
- }
232
- getMergedProps() {
233
- const ppp = AXObjectUtil.deepCopy(AXPropertyDecorators.getProperties(this._widget));
234
- for (const key in this.config.props) {
235
- if (Object.prototype.hasOwnProperty.call(this.config.props, key)) {
236
- const newP = this.config.props[key];
237
- const existPropDec = ppp.find(p => p.property === key);
238
- if (existPropDec) {
239
- Object.assign(existPropDec.options, newP);
240
- }
241
- }
242
- }
243
- return ppp;
244
- }
245
- emitConfigChanged() {
246
- this.onConfigChanged.emit({
247
- component: this._widget,
248
- config: this.config
249
- });
250
- }
251
- }
252
- AXWidgetHostComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXWidgetHostComponent, deps: [{ token: i0.ElementRef }, { token: i0.ComponentFactoryResolver }, { token: i1.AXRenderService }, { token: i0.ChangeDetectorRef }, { token: i2.AXPopupService }, { token: i2.AXLoadingService }], target: i0.ɵɵFactoryTarget.Component });
253
- AXWidgetHostComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXWidgetHostComponent, selector: "ax-widget-host", inputs: { provideValue: "provideValue", config: "config", readonly: "readonly", sizeX: "sizeX", sizeY: "sizeY", col: "col", row: "row" }, outputs: { onRemove: "onRemove", onConfigChanged: "onConfigChanged", onResized: "onResized", onSave: "onSave" }, host: { attributes: { "tabindex": "0" }, properties: { "attr.data-size-x": "this.sizeX", "attr.data-size-y": "this.sizeY", "attr.data-col": "this.col", "attr.data-row": "this.row" }, classAttribute: "ax widget-host" }, viewQueries: [{ propertyName: "vc", first: true, predicate: ["vc"], descendants: true, read: ViewContainerRef }], ngImport: i0, template: "<div class='widget-container'>\n <div class=\"widget-config-overlay\" *ngIf=\"!isConfigured\" (click)=\"handleConfig($event)\">\n <div class=\"widget-title\">{{config.title}}</div>\n <div class=\"widget-config-box\">\n <div class=\"config-title\">{{ 'widget-board.configure' | trans}}</div>\n <div class=\"config-icon\" *ngIf=\"!readonly\"><i class=\"fas fa-cogs fa-5x\" aria-hidden=\"true\"></i></div>\n </div>\n </div>\n <div class='widget-edit-overlay' >\n <div class='widget-edit-menu'>\n <button class=\"widget-edit-menu-button\" (click)=\"handleConfig($event)\"\n (mousedown)=\"$event.stopPropagation()\" *ngIf=\"_hasProps\" (mouseup)=\"$event.stopPropagation()\">\n <i class=\"far fa-cogs\" aria-hidden=\"true\"></i>\n </button>\n <button class=\"widget-edit-menu-button\" (click)=\"remove($event)\" (mousedown)=\"$event.stopPropagation()\"\n (mouseup)=\"$event.stopPropagation()\">\n <i class=\"far fa-times\" aria-hidden=\"true\"></i>\n </button>\n </div>\n\n </div>\n <div class=\"widget-options-menu\" *ngIf=\"_hasMenu && !readonly\">\n <ax-menu [items]='configMenuItem' direction=\"horizontal\"></ax-menu>\n </div>\n <!-- <ax-loading-panel [visible]=\"isBusy\">\n </ax-loading-panel> -->\n <div class=\"widget-content\">\n <ng-container #vc></ng-container>\n </div>\n</div>", components: [{ type: i2.AXMenuComponent, selector: "ax-menu", inputs: ["menuTemplate", "rtl", "size", "selection", "mode", "target", "floatAlignment", "floatPlacemnet", "direction", "items"], outputs: ["onItemClick"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "trans": i1.AXTranslatorPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
254
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXWidgetHostComponent, decorators: [{
255
- type: Component,
256
- args: [{ selector: 'ax-widget-host', host: { class: 'ax widget-host', tabindex: '0' }, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class='widget-container'>\n <div class=\"widget-config-overlay\" *ngIf=\"!isConfigured\" (click)=\"handleConfig($event)\">\n <div class=\"widget-title\">{{config.title}}</div>\n <div class=\"widget-config-box\">\n <div class=\"config-title\">{{ 'widget-board.configure' | trans}}</div>\n <div class=\"config-icon\" *ngIf=\"!readonly\"><i class=\"fas fa-cogs fa-5x\" aria-hidden=\"true\"></i></div>\n </div>\n </div>\n <div class='widget-edit-overlay' >\n <div class='widget-edit-menu'>\n <button class=\"widget-edit-menu-button\" (click)=\"handleConfig($event)\"\n (mousedown)=\"$event.stopPropagation()\" *ngIf=\"_hasProps\" (mouseup)=\"$event.stopPropagation()\">\n <i class=\"far fa-cogs\" aria-hidden=\"true\"></i>\n </button>\n <button class=\"widget-edit-menu-button\" (click)=\"remove($event)\" (mousedown)=\"$event.stopPropagation()\"\n (mouseup)=\"$event.stopPropagation()\">\n <i class=\"far fa-times\" aria-hidden=\"true\"></i>\n </button>\n </div>\n\n </div>\n <div class=\"widget-options-menu\" *ngIf=\"_hasMenu && !readonly\">\n <ax-menu [items]='configMenuItem' direction=\"horizontal\"></ax-menu>\n </div>\n <!-- <ax-loading-panel [visible]=\"isBusy\">\n </ax-loading-panel> -->\n <div class=\"widget-content\">\n <ng-container #vc></ng-container>\n </div>\n</div>" }]
257
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ComponentFactoryResolver }, { type: i1.AXRenderService }, { type: i0.ChangeDetectorRef }, { type: i2.AXPopupService }, { type: i2.AXLoadingService }]; }, propDecorators: { provideValue: [{
258
- type: Input
259
- }], onRemove: [{
260
- type: Output
261
- }], onConfigChanged: [{
262
- type: Output
263
- }], onResized: [{
264
- type: Output
265
- }], onSave: [{
266
- type: Output
267
- }], config: [{
268
- type: Input
269
- }], vc: [{
270
- type: ViewChild,
271
- args: ['vc', { read: ViewContainerRef }]
272
- }], readonly: [{
273
- type: Input
274
- }], sizeX: [{
275
- type: HostBinding,
276
- args: ['attr.data-size-x']
277
- }, {
278
- type: Input
279
- }], sizeY: [{
280
- type: HostBinding,
281
- args: ['attr.data-size-y']
282
- }, {
283
- type: Input
284
- }], col: [{
285
- type: HostBinding,
286
- args: ['attr.data-col']
287
- }, {
288
- type: Input
289
- }], row: [{
290
- type: HostBinding,
291
- args: ['attr.data-row']
292
- }, {
293
- type: Input
294
- }] } });
295
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2lkZ2V0LWhvc3QuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWNvcmV4L2xheW91dC9zcmMvbGliL3dpZGdldC1ib2FyZC93aWRnZXQtaG9zdC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hY29yZXgvbGF5b3V0L3NyYy9saWIvd2lkZ2V0LWJvYXJkL3dpZGdldC1ob3N0LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDSCxTQUFTLEVBQ1QsaUJBQWlCLEVBQUUsS0FBSyxFQUN4QixVQUFVLEVBQUUsV0FBVyxFQUFFLHdCQUF3QixFQUFFLFNBQVMsRUFDNUQsZ0JBQWdCLEVBQUUsTUFBTSxFQUFFLFlBQVksRUFBRSx1QkFBdUIsRUFDL0QsaUJBQWlCLEVBQ3BCLE1BQU0sZUFBZSxDQUFDO0FBRXZCLE9BQU8sRUFBRSxZQUFZLEVBQUUsZUFBZSxFQUFFLE1BQU0sY0FBYyxDQUFDO0FBQzdELE9BQU8sRUFBRSxjQUFjLEVBQUUsb0JBQW9CLEVBQXVCLGdCQUFnQixFQUFFLE1BQU0sb0JBQW9CLENBQUM7QUFDakgsT0FBTyxFQUFFLHVCQUF1QixFQUFFLE1BQU0sMkJBQTJC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ICAgICAgICAgIHRoaXMuc2V0U2l6ZUZyb21PcHRpb25zKCk7XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgICAgICAvL1xuICAgICAgICBpZiAodGhpcy5jb25maWcub3B0aW9ucykge1xuICAgICAgICAgICAgT2JqZWN0LmFzc2lnbih0aGlzLl93aWRnZXQsIHRoaXMuY29uZmlnLm9wdGlvbnMpO1xuICAgICAgICB9XG4gICAgICAgIHRoaXMuX2hhc1Byb3BzID0gQVhQcm9wZXJ0eURlY29yYXRvcnMuZ2V0UHJvcGVydGllcyh0aGlzLl93aWRnZXQpLmxlbmd0aCA+IDA7XG5cbiAgICAgICAgdGhpcy5pc0xvYWRpbmcgPSBmYWxzZTtcbiAgICAgICAgdGhpcy5jb25maWdbJ19fbWV0YV9fJ10uaW5zdGFuY2UgPSB0aGlzO1xuICAgICAgICB0aGlzLl93aWRnZXRbJ19fbWV0YV9fJ10gPSB7fTtcbiAgICAgICAgdGhpcy5fd2lkZ2V0WydfX21ldGFfXyddLmNvbmZpZyA9IHRoaXMuY29uZmlnO1xuICAgICAgICAvL1xuICAgICAgICB0aGlzLmNvbmZpZ01lbnVJdGVtWzBdLml0ZW1zLnB1c2goe1xuICAgICAgICAgICAgbmFtZTogJ3JlZnJlc2gnLFxuICAgICAgICAgICAgaWNvbjogJ2ZhciBmYS11bmRvJyxcbiAgICAgICAgICAgIHRleHQ6IEFYVHJhbnNsYXRvci5nZXQoJ2NvbW1vbi5yZWZyZXNoJyksXG4gICAgICAgICAgICBvbkNsaWNrOiAoKSA9PiB7XG4gICAgICAgICAgICAgICAgdGhpcz8ud2lkZ2V0Py5yZWZyZXNoKCk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgICAgICAvL1xuICAgICAgICBpZiAodGhpcy5faGFzUHJvcHMpIHtcbiAgICAgICAgICAgIHRoaXMuY29uZmlnTWVudUl0ZW1bMF0uaXRlbXMucHVzaCh7XG4gICAgICAgICAgICAgICAgbmFtZTogJ2NvbmZpZ3MnLFxuICAgICAgICAgICAgICAgIGljb246ICdmYXIgZmEtY29ncycsXG4gICAgICAgICAgICAgICAgdGV4dDogQVhUcmFuc2xhdG9yLmdldCgnY29tbW9uLmNvbmZpZ3MnKSxcbiAgICAgICAgICAgICAgICBvbkNsaWNrOiAoKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMub3BlbkNvbmZpZ0RpYWxvZygpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgICAgIHRoaXMuY29uZmlnTWVudUl0ZW1bMF0uaXRlbXMucHVzaCh7XG4gICAgICAgICAgICBuYW1lOiAnc2F2ZScsXG4gICAgICAgICAgICBpY29uOiAnZmFyIGZhLXNhdmUnLFxuICAgICAgICAgICAgdGV4dDogQVhUcmFuc2xhdG9yLmdldCgnY29tbW9uLnNhdmUtYXMnKSxcbiAgICAgICAgICAgIG9uQ2xpY2s6ICgpID0+IHtcbiAgICAgICAgICAgICAgICB0aGlzLm9wZW5TYXZlRGlhbG9nKCk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgICAgICBpZiAodHJ1ZSkge1xuICAgICAgICAgICAgdGhpcy5jb25maWdNZW51SXRlbVswXS5pdGVtcy5wdXNoKHtcbiAgICAgICAgICAgICAgICBuYW1lOiAncmVtb3ZlJyxcbiAgICAgICAgICAgICAgICBpY29uOiAnZmFyIGZhLXRpbWVzJyxcbiAgICAgICAgICAgICAgICBzdHlsZTogJ2F4IGRhbmdlciBibGFuaycsXG4gICAgICAgICAgICAgICAgdGV4dDogQVhUcmFuc2xhdG9yLmdldCgnY29tbW9uLnJlbW92ZScpLFxuICAgICAgICAgICAgICAgIG9uQ2xpY2s6ICgpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5vblJlbW92ZS5lbWl0KHRoaXMpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgIC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ICAgICAgICAgY29tcG9uZW50OiB0aGlzLl93aWRnZXQsXG4gICAgICAgICAgICAgICAgICAgIGNvbmZpZzogdGhpcy5jb25maWdcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHRoaXMuY2RyLmRldGVjdENoYW5nZXMoKTtcbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgcmVtb3ZlKGU6IE1vdXNlRXZlbnQpIHtcbiAgICAgICAgZS5wcmV2ZW50RGVmYXVsdCgpO1xuICAgICAgICBlLnN0b3BQcm9wYWdhdGlvbigpO1xuICAgICAgICBpZiAoIXRoaXMucmVhZG9ubHkpXG4gICAgICAgICAgICB0aGlzLm9uUmVtb3ZlLmVtaXQodGhpcyk7XG4gICAgICAgIHJldHVybiBmYWxzZTtcbiAgICB9XG5cbiAgICBoYW5kbGVDb25maWcoZTogTW91c2VFdmVudCkge1xuICAgICAgICBlLnByZXZlbnREZWZhdWx0KCk7XG4gICAgICAgIGUuc3RvcFByb3BhZ2F0aW9uKCk7XG4gICAgICAgIGlmICghdGhpcy5yZWFkb25seSlcbiAgICAgICAgICAgIHRoaXMub3BlbkNvbmZpZ0RpYWxvZygpO1xuICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgfVxuXG4gICAgcHJpdmF0ZSBvcGVuQ29uZmlnRGlhbG9nKCkge1xuICAgICAgICBjb25zdCBwcHAgPSB0aGlzLmdldE1lcmdlZFByb3BzKCk7XG4gICAgICAgIHRoaXMucG9wdXAub3BlbihBWFdpZGdldENvbmZpZ0NvbXBvbmVudCwge1xuICAgICAgICAgICAgdGl0bGU6IEFYVHJhbnNsYXRvci5nZXQoJ2NvbW1vbi5jb25maWdzJyksXG4gICAgICAgICAgICBzaXplOiAnc20nLFxuICAgICAgICAgICAgZGF0YToge1xuICAgICAgICAgICAgICAgIHByb3BzOiBwcHAubWFwKGMgPT4gKHsgcHJvcGVydHk6IGMub3B0aW9ucywgdmFsdWU6IHRoaXMuX3dpZGdldFtjLm9wdGlvbnMubmFtZV0gfSkpLFxuICAgICAgICAgICAgICAgIHdpZGdldDogdGhpcy53aWRnZXRcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSkudGhlbihjID0+IHtcbiAgICAgICAgICAgIGlmIChjLmRhdGEpIHtcbiAgICAgICAgICAgICAgICBpZiAoIXRoaXMuY29uZmlnLm9wdGlvbnMpIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5jb25maWcub3B0aW9ucyA9IHt9O1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBjLmRhdGEuZm9yRWFjaChwID0+IHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5fd2lkZ2V0LnNldFZhbHVlKHAucHJvcGVydHkubmFtZSwgcC52YWx1ZSk7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuY29uZmlnLm9wdGlvbnNbcC5wcm9wZXJ0eS5uYW1lXSA9IHAudmFsdWU7XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgdGhpcy5lbWl0Q29uZmlnQ2hhbmdlZCgpO1xuICAgICAgICAgICAgICAgIHRoaXMuX3dpZGdldC5yZWRyYXcoKTtcbiAgICAgICAgICAgICAgICB0aGlzLmNkci5kZXRlY3RDaGFuZ2VzKCk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIHByaXZhdGUgb3BlblNhdmVEaWFsb2coKSB7XG4gICAgICAgIGNvbnN0IHBwcCA9IHRoaXMuZ2V0TWVyZ2VkUHJvcHMoKTtcbiAgICAgICAgdGhpcy5wb3B1cC5vcGVuKEFYV2lkZ2V0U2F2ZUNvbXBvbmVudCwge1xuICAgICAgICAgICAgdGl0bGU6IEFYVHJhbnNsYXRvci5nZXQoJ2NvbW1vbi5zYXZlLWFzJyksXG4gICAgICAgICAgICBzaXplOiAnc20nLFxuICAgICAgICAgICAgZGF0YToge1xuICAgICAgICAgICAgICAgIGNvbmZpZzogdGhpc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gZm9yIChjb25zdCBrZXkgaW4gdGhpcy5jb25maWcucHJvcHMpIHtcbiAgICAgICAgICAgIGlmIChPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwodGhpcy5jb25maWcucHJvcHMsIGtleSkpIHtcbiAgICAgICAgICAgICAgICBjb25zdCBuZXdQID0gdGhpcy5jb25maWcucHJvcHNba2V5XTtcbiAgICAgICAgICAgICAgICBjb25zdCBleGlzdFByb3BEZWMgPSBwcHAuZmluZChwID0+IHAucHJvcGVydHkgPT09IGtleSk7XG4gICAgICAgICAgICAgICAgaWYgKGV4aXN0UHJvcERlYykge1xuICAgICAgICAgICAgICAgICAgICBPYmplY3QuYXNzaWduKGV4aXN0UHJvcERlYy5vcHRpb25zLCBuZXdQKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIHBwcDtcbiAgICB9XG5cbiAgICBwcml2YXRlIGVtaXRDb25maWdDaGFuZ2VkKCkge1xuICAgICAgICB0aGlzLm9uQ29uZmlnQ2hhbmdlZC5lbWl0KHtcbiAgICAgICAgICAgIGNvbXBvbmVudDogdGhpcy5fd2lkZ2V0LFxuICAgICAgICAgICAgY29uZmlnOiB0aGlzLmNvbmZpZ1xuICAgICAgICB9KTtcbiAgICB9XG5cbn0iLCI8ZGl2IGNsYXNzPSd3aWRnZXQtY29udGFpbmVyJz5cbiAgICA8ZGl2IGNsYXNzPVwid2lkZ2V0LWNvbmZpZy1vdmVybGF5XCIgKm5nSWY9XCIhaXNDb25maWd1cmVkXCIgKGNsaWNrKT1cImhhbmRsZUNvbmZpZygkZXZlbnQpXCI+XG4gICAgICAgIDxkaXYgY2xhc3M9XCJ3aWRnZXQtdGl0bGVcIj57e2NvbmZpZy50aXRsZX19PC9kaXY+XG4gICAgICAgIDxkaXYgY2xhc3M9XCJ3aWRnZXQtY29uZmlnLWJveFwiPlxuICAgICAgICAgICAgPGRpdiBjbGFzcz1cImN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