@acorex/layout 6.5.29 → 6.5.32
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/acorex-layout.d.ts +5 -5
- package/esm2020/acorex-layout.mjs +4 -4
- package/esm2020/lib/widget-board/editors/widget-size-editor/widget-size.editor.mjs +46 -46
- package/esm2020/lib/widget-board/editors/widget-size-editor/widget-size.module.mjs +21 -21
- package/esm2020/lib/widget-board/widget-board.component.mjs +450 -450
- package/esm2020/lib/widget-board/widget-board.module.mjs +111 -111
- package/esm2020/lib/widget-board/widget-config.component.mjs +82 -82
- package/esm2020/lib/widget-board/widget-host.component.mjs +295 -295
- package/esm2020/lib/widget-board/widget-save.component.mjs +79 -79
- package/esm2020/lib/widget-board/widget.class.mjs +127 -127
- package/esm2020/public-api.mjs +7 -7
- package/fesm2015/acorex-layout.mjs +1147 -1147
- package/fesm2015/acorex-layout.mjs.map +1 -1
- package/fesm2020/acorex-layout.mjs +1140 -1140
- package/fesm2020/acorex-layout.mjs.map +1 -1
- package/lib/widget-board/editors/widget-size-editor/widget-size.editor.d.ts +19 -19
- package/lib/widget-board/editors/widget-size-editor/widget-size.module.d.ts +10 -10
- package/lib/widget-board/widget-board.component.d.ts +61 -61
- package/lib/widget-board/widget-board.module.d.ts +18 -18
- package/lib/widget-board/widget-config.component.d.ts +23 -23
- package/lib/widget-board/widget-host.component.d.ts +52 -52
- package/lib/widget-board/widget-save.component.d.ts +19 -19
- package/lib/widget-board/widget.class.d.ts +58 -58
- package/package.json +1 -1
- package/public-api.d.ts +6 -6
@@ -1,111 +1,111 @@
|
|
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,
|
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, AXWidgetSa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udDogQVhXaWRnZXRTaXplUHJvcGVydHlFZGl0b3JDb21wb25lbnQsXG4gICAgICAgICAgICAgICAgcGF0aDogJ2F4L2VkaXRvcnMvd2lkZ2V0LXNpemUnXG4gICAgICAgICAgICB9LFxuICAgICAgICBdKVxuICAgIF0sXG4gICAgZXhwb3J0czogW0FYV2lkZ2V0Qm9hcmRDb21wb25lbnQsIEFYUHJvcHBlcnR5RWRpdG9yTW9kdWxlXSxcbiAgICBkZWNsYXJhdGlvbnM6IFtBWFdpZGdldEJvYXJkQ29tcG9uZW50LCBBWFdpZGdldEhvc3RDb21wb25lbnQsIEFYV2lkZ2V0Q29uZmlnQ29tcG9uZW50LCBBWFdpZGdldFNhdmVDb21wb25lbnRdLFxuICAgIHByb3ZpZGVyczogW11cbn0pXG5leHBvcnQgY2xhc3MgQVhXaWRnZXRCb2FyZE1vZHVsZSB7XG4gICAgLyoqXG4gICAgICpcbiAgICAgKi9cbiAgICBjb25zdHJ1Y3RvcigpIHtcbiAgICAgICAgQVhUcmFuc2xhdG9yLmxvYWQoJ2VuJywge1xuICAgICAgICAgICAgJ3dpZGdldC1ib2FyZCc6IHtcbiAgICAgICAgICAgICAgICAnY29uZmlndXJhYmxlLXByb3BzJzogJ0NvbmZpZ3VyYWJsZSBQcm9wZXJ0aWVzJyxcbiAgICAgICAgICAgICAgICBjb25maWd1cmU6ICdDb25maWd1cmUgV2lkZ2V0J1xuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICAgICAgQVhUcmFuc2xhdG9yLmxvYWQoJ2ZhJywge1xuICAgICAgICAgICAgJ3dpZGdldC1ib2FyZCc6IHtcbiAgICAgICAgICAgICAgICAnY29uZmlndXJhYmxlLXByb3BzJzogJ9mI24zamNqv24wg2YfYp9uMINmC2KfYqNmEINiq2YbYuNuM2YUnLFxuICAgICAgICAgICAgICAgIGNvbmZpZ3VyZTogJ9m+24zaqdixINio2YbYr9uMINin2KjYstin2LHaqSdcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG5cbiAgICB9XG5cbn1cbiJdfQ==
|
@@ -1,82 +1,82 @@
|
|
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>\
|
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>\
|
78
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { form: [{
|
79
|
-
type: ViewChild,
|
80
|
-
args: [AXValidationFormComponent]
|
81
|
-
}] } });
|
82
|
-
//# sourceMappingURL=data:application/json;base64,
|
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2lkZ2V0LWNvbmZpZy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hY29yZXgvbGF5b3V0L3NyYy9saWIvd2lkZ2V0LWJvYXJkL3dpZGdldC1jb25maWcuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWNvcmV4L2xheW91dC9zcmMvbGliL3dpZGdldC1ib2FyZC93aWRnZXQtY29uZmlnLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsaUJBQWlCLEVBQUUsdUJBQX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bXSA9IFtdO1xuICAgIGRpc3BsYXlQcm9wczogQVhQcm9wZXJ0eUNvbmZpZ1tdID0gW107XG5cblxuICAgIGNoYW5nZXM6IEFYUHJvcGVydHlDb25maWdbXSA9IFtdO1xuXG4gICAgY29udGV4dDogYW55ID0ge307XG5cblxuICAgIGdldEZvb3RlckJ1dHRvbnMoKTogQVhCdXR0b25JdGVtW10ge1xuICAgICAgICByZXR1cm4gW1xuICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIG5hbWU6ICdva2F5JyxcbiAgICAgICAgICAgICAgICBzdWJtaXRCZWhhdmlvcjogdHJ1ZSxcbiAgICAgICAgICAgICAgICB0ZXh0OiBBWFRyYW5zbGF0b3IuZ2V0KCdjb21tb24uY29uZmlybScpLFxuICAgICAgICAgICAgICAgIHN0eWxlOiAnc3VjY2VzcydcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgbmFtZTogJ2NhbmNlbCcsXG4gICAgICAgICAgICAgICAgY2FuY2VsQmVoYXZpb3I6IHRydWUsXG4gICAgICAgICAgICAgICAgdGV4dDogQVhUcmFuc2xhdG9yLmdldCgnY29tbW9uLmNhbmNlbCcpLFxuICAgICAgICAgICAgICAgIHN0eWxlOiAnZGFuZ2VyIGJsYW5rJ1xuICAgICAgICAgICAgfVxuICAgICAgICBdO1xuICAgIH1cblxuXG5cblxuXG4gICAgb25Gb290ZXJCdXR0b25DbGljayhlOiBBWE1lbnVJdGVtQ2xpY2tFdmVudCkge1xuICAgICAgICBpZiAoZS5uYW1lID09PSAnY2FuY2VsJykge1xuICAgICAgICAgICAgdGhpcy5jbG9zZSgpO1xuICAgICAgICB9XG4gICAgICAgIGlmIChlLm5hbWUgPT09ICdva2F5Jykge1xuICAgICAgICAgICAgdGhpcy5mb3JtLnZhbGlkYXRlKCkudGhlbihjID0+IHtcbiAgICAgICAgICAgICAgICBpZiAoYy5yZXN1bHQpIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpc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mFtZV0gPSBwLnZhbHVlO1xuICAgICAgICB9KTtcbiAgICAgICAgdGhpcy5jb250ZXh0ID0gY3R4O1xuICAgIH1cblxuXG4gICAgaWRlbnRpZnkoaW5kZXgsIGl0ZW06IEFYUHJvcGVydHlDb25maWcpIHtcbiAgICAgICAgcmV0dXJuIGl0ZW0ucHJvcGVydHkubmFtZTtcbiAgICB9XG5cbn0iLCI8YXgtcGFnZT5cbiAgICA8YXgtcGFnZS1jb250ZW50PlxuICAgICAgICA8ZGl2IGNsYXNzPVwiY29udGFpbmVyXCI+XG4gICAgICAgICAgICA8YXgtdmFsaWRhdGlvbi1mb3JtICNmb3JtPlxuICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJyb3dcIiAqbmdGb3I9XCJsZXQgcCBvZiBkaXNwbGF5UHJvcHM7IHRyYWNrQnk6IGlkZW50aWZ5XCI+XG4gICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJjb2wtMTJcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgIDxheC1sYWJlbD57e3AucHJvcGVydHkudGl0bGUgfCB0cmFuc319PC9heC1sYWJlbD5cbiAgICAgICAgICAgICAgICAgICAgICAgIDxuZy1jb250YWluZXIgYXgtcHJvcGVydHktZWRpdG9yLXJlbmRlcmVyIFtwcm9wZXJ0eV09XCJwXCIgW2NvbnRleHRdPVwiY29udGV4dFwiIFtob3N0XT1cIndpZGdldFwiICBbdmFsaWRhdGlvbkZvcm1dPVwiZm9ybVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgKG9uVmFsdWVDaGFuZ2UpPVwiaGFuZGxlVmFsdWVDaGFuZ2UoJGV2ZW50KVwiPlxuICAgICAgICAgICAgICAgICAgICAgICAgPC9uZy1jb250YWluZXI+XG4gICAgICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgPC9heC12YWxpZGF0aW9uLWZvcm0+XG4gICAgICAgIDwvZGl2PlxuICAgIDwvYXgtcGFnZS1jb250ZW50PlxuPC9heC1wYWdlPiJdfQ==
|