@pepperi-addons/ngx-composite-lib 0.4.1-beta.12 → 0.4.1-beta.13
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/color-settings/color-settings.component.d.ts +25 -25
- package/color-settings/color-settings.model.d.ts +6 -6
- package/color-settings/color-settings.module.d.ts +12 -12
- package/color-settings/index.d.ts +5 -5
- package/color-settings/public-api.d.ts +3 -3
- package/core/common/directives/index.d.ts +1 -1
- package/core/common/directives/public-api.d.ts +1 -1
- package/core/common/directives/reset-configuration-field.directive.d.ts +39 -39
- package/core/common/index.d.ts +1 -1
- package/core/common/public-api.d.ts +2 -2
- package/core/common/services/dimx.service.d.ts +46 -46
- package/core/common/services/index.d.ts +1 -1
- package/core/common/services/public-api.d.ts +2 -2
- package/core/common/services/utilities.service.d.ts +6 -6
- package/core/index.d.ts +1 -1
- package/core/public-api.d.ts +1 -1
- package/data-view-builder/data-view-builder.component.d.ts +35 -35
- package/data-view-builder/data-view-builder.model.d.ts +1 -1
- package/data-view-builder/data-view-builder.module.d.ts +23 -23
- package/data-view-builder/data-view-builder.service.d.ts +14 -14
- package/data-view-builder/index.d.ts +5 -5
- package/data-view-builder/menu-data-view/menu-data-view.component.d.ts +36 -36
- package/data-view-builder/public-api.d.ts +3 -3
- package/esm2020/color-settings/color-settings.component.mjs +86 -86
- package/esm2020/color-settings/color-settings.model.mjs +8 -8
- package/esm2020/color-settings/color-settings.module.mjs +37 -37
- package/esm2020/color-settings/pepperi-addons-ngx-composite-lib-color-settings.mjs +4 -4
- package/esm2020/color-settings/public-api.mjs +6 -6
- package/esm2020/core/common/directives/index.mjs +4 -4
- package/esm2020/core/common/directives/public-api.mjs +4 -4
- package/esm2020/core/common/directives/reset-configuration-field.directive.mjs +135 -135
- package/esm2020/core/common/index.mjs +4 -4
- package/esm2020/core/common/public-api.mjs +5 -5
- package/esm2020/core/common/services/dimx.service.mjs +63 -63
- package/esm2020/core/common/services/index.mjs +4 -4
- package/esm2020/core/common/services/public-api.mjs +5 -5
- package/esm2020/core/common/services/utilities.service.mjs +18 -18
- package/esm2020/core/index.mjs +4 -4
- package/esm2020/core/public-api.mjs +4 -4
- package/esm2020/data-view-builder/data-view-builder.component.mjs +116 -116
- package/esm2020/data-view-builder/data-view-builder.model.mjs +1 -1
- package/esm2020/data-view-builder/data-view-builder.module.mjs +79 -79
- package/esm2020/data-view-builder/data-view-builder.service.mjs +38 -38
- package/esm2020/data-view-builder/menu-data-view/menu-data-view.component.mjs +116 -116
- package/esm2020/data-view-builder/pepperi-addons-ngx-composite-lib-data-view-builder.mjs +4 -4
- package/esm2020/data-view-builder/public-api.mjs +6 -6
- package/esm2020/file-status-panel/file-status-panel.component.mjs +34 -34
- package/esm2020/file-status-panel/file-status-panel.model.mjs +8 -8
- package/esm2020/file-status-panel/file-status-panel.module.mjs +53 -53
- package/esm2020/file-status-panel/pepperi-addons-ngx-composite-lib-file-status-panel.mjs +4 -4
- package/esm2020/file-status-panel/public-api.mjs +6 -6
- package/esm2020/generic-form/generic-form.component.mjs +189 -189
- package/esm2020/generic-form/generic-form.model.mjs +1 -1
- package/esm2020/generic-form/generic-form.module.mjs +67 -67
- package/esm2020/generic-form/generic-form.service.mjs +58 -59
- package/esm2020/generic-form/pepperi-addons-ngx-composite-lib-generic-form.mjs +4 -4
- package/esm2020/generic-form/public-api.mjs +7 -7
- package/esm2020/generic-list/generic-list.component.mjs +458 -458
- package/esm2020/generic-list/generic-list.model.mjs +1 -1
- package/esm2020/generic-list/generic-list.module.mjs +106 -106
- package/esm2020/generic-list/generic-list.service.mjs +136 -136
- package/esm2020/generic-list/pepperi-addons-ngx-composite-lib-generic-list.mjs +4 -4
- package/esm2020/generic-list/public-api.mjs +7 -7
- package/esm2020/group-buttons-settings/group-buttons-settings.component.mjs +129 -129
- package/esm2020/group-buttons-settings/group-buttons-settings.model.mjs +1 -1
- package/esm2020/group-buttons-settings/group-buttons-settings.module.mjs +47 -47
- package/esm2020/group-buttons-settings/pepperi-addons-ngx-composite-lib-group-buttons-settings.mjs +4 -4
- package/esm2020/group-buttons-settings/public-api.mjs +6 -6
- package/esm2020/ngx-composite-lib.module.mjs +53 -53
- package/esm2020/pepperi-addons-ngx-composite-lib.mjs +4 -4
- package/esm2020/public-api.mjs +5 -5
- package/esm2020/shadow-settings/pepperi-addons-ngx-composite-lib-shadow-settings.mjs +4 -4
- package/esm2020/shadow-settings/public-api.mjs +6 -6
- package/esm2020/shadow-settings/shadow-settings.component.mjs +68 -68
- package/esm2020/shadow-settings/shadow-settings.model.mjs +7 -7
- package/esm2020/shadow-settings/shadow-settings.module.mjs +41 -41
- package/fesm2015/pepperi-addons-ngx-composite-lib-color-settings.mjs +116 -116
- package/fesm2015/pepperi-addons-ngx-composite-lib-data-view-builder.mjs +309 -309
- package/fesm2015/pepperi-addons-ngx-composite-lib-data-view-builder.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-composite-lib-file-status-panel.mjs +80 -80
- package/fesm2015/pepperi-addons-ngx-composite-lib-generic-form.mjs +285 -286
- package/fesm2015/pepperi-addons-ngx-composite-lib-generic-form.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-composite-lib-generic-list.mjs +674 -674
- package/fesm2015/pepperi-addons-ngx-composite-lib-group-buttons-settings.mjs +164 -164
- package/fesm2015/pepperi-addons-ngx-composite-lib-shadow-settings.mjs +101 -101
- package/fesm2015/pepperi-addons-ngx-composite-lib.mjs +271 -271
- package/fesm2020/pepperi-addons-ngx-composite-lib-color-settings.mjs +116 -116
- package/fesm2020/pepperi-addons-ngx-composite-lib-data-view-builder.mjs +307 -307
- package/fesm2020/pepperi-addons-ngx-composite-lib-data-view-builder.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-composite-lib-file-status-panel.mjs +78 -78
- package/fesm2020/pepperi-addons-ngx-composite-lib-generic-form.mjs +287 -288
- package/fesm2020/pepperi-addons-ngx-composite-lib-generic-form.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-composite-lib-generic-list.mjs +656 -656
- package/fesm2020/pepperi-addons-ngx-composite-lib-group-buttons-settings.mjs +163 -163
- package/fesm2020/pepperi-addons-ngx-composite-lib-shadow-settings.mjs +101 -101
- package/fesm2020/pepperi-addons-ngx-composite-lib.mjs +264 -264
- package/file-status-panel/file-status-panel.component.d.ts +14 -14
- package/file-status-panel/file-status-panel.model.d.ts +7 -7
- package/file-status-panel/file-status-panel.module.d.ts +17 -17
- package/file-status-panel/index.d.ts +5 -5
- package/file-status-panel/public-api.d.ts +3 -3
- package/generic-form/generic-form.component.d.ts +43 -43
- package/generic-form/generic-form.model.d.ts +42 -42
- package/generic-form/generic-form.module.d.ts +13 -13
- package/generic-form/generic-form.service.d.ts +15 -15
- package/generic-form/index.d.ts +5 -5
- package/generic-form/public-api.d.ts +4 -4
- package/generic-list/generic-list.component.d.ts +109 -109
- package/generic-list/generic-list.model.d.ts +66 -66
- package/generic-list/generic-list.module.d.ts +25 -25
- package/generic-list/generic-list.service.d.ts +44 -44
- package/generic-list/index.d.ts +5 -5
- package/generic-list/public-api.d.ts +4 -4
- package/group-buttons-settings/group-buttons-settings.component.d.ts +33 -33
- package/group-buttons-settings/group-buttons-settings.model.d.ts +1 -1
- package/group-buttons-settings/group-buttons-settings.module.d.ts +15 -15
- package/group-buttons-settings/index.d.ts +5 -5
- package/group-buttons-settings/public-api.d.ts +3 -3
- package/index.d.ts +5 -5
- package/ngx-composite-lib.module.d.ts +13 -13
- package/package.json +1 -1
- package/public-api.d.ts +2 -2
- package/shadow-settings/index.d.ts +5 -5
- package/shadow-settings/public-api.d.ts +3 -3
- package/shadow-settings/shadow-settings.component.d.ts +23 -23
- package/shadow-settings/shadow-settings.model.d.ts +8 -8
- package/shadow-settings/shadow-settings.module.d.ts +13 -13
|
@@ -12,302 +12,301 @@ import * as i5 from '@pepperi-addons/ngx-lib/top-bar';
|
|
|
12
12
|
import { PepTopBarModule } from '@pepperi-addons/ngx-lib/top-bar';
|
|
13
13
|
import { DataViewConverter } from '@pepperi-addons/data-views';
|
|
14
14
|
|
|
15
|
-
class PepGenericFormService {
|
|
16
|
-
constructor() {
|
|
17
|
-
//
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* checks if the object contains property
|
|
21
|
-
* @param obj object
|
|
22
|
-
* @param prop property name
|
|
23
|
-
* @returns true if contains, false otherwise
|
|
24
|
-
*/
|
|
25
|
-
hasProperty(obj, prop) {
|
|
26
|
-
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
27
|
-
}
|
|
28
|
-
createFormField(data) {
|
|
29
|
-
let field = {};
|
|
30
|
-
field.ApiName = data.ApiName;
|
|
31
|
-
field.Value = data.controlFieldValue;
|
|
32
|
-
field.
|
|
33
|
-
field.
|
|
34
|
-
field.
|
|
35
|
-
field.
|
|
36
|
-
field.
|
|
37
|
-
field.
|
|
38
|
-
field.
|
|
39
|
-
field
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
PepGenericFormService.ɵ
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
type: Injectable
|
|
15
|
+
class PepGenericFormService {
|
|
16
|
+
constructor() {
|
|
17
|
+
//
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* checks if the object contains property
|
|
21
|
+
* @param obj object
|
|
22
|
+
* @param prop property name
|
|
23
|
+
* @returns true if contains, false otherwise
|
|
24
|
+
*/
|
|
25
|
+
hasProperty(obj, prop) {
|
|
26
|
+
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
27
|
+
}
|
|
28
|
+
createFormField(data) {
|
|
29
|
+
let field = {};
|
|
30
|
+
field.ApiName = data.ApiName;
|
|
31
|
+
field.Value = data.controlFieldValue;
|
|
32
|
+
field.FieldType = data.FieldType;
|
|
33
|
+
field.Enabled = !data.ReadOnly;
|
|
34
|
+
field.Visible = !data.Hidden;
|
|
35
|
+
field.GroupFields = [];
|
|
36
|
+
field.Highlighted = false;
|
|
37
|
+
field.OptionalValues = data.OptionalValues;
|
|
38
|
+
field.AdditionalProps = data.AdditionalProps;
|
|
39
|
+
return field;
|
|
40
|
+
}
|
|
41
|
+
convertToUiControlField(field) {
|
|
42
|
+
return {
|
|
43
|
+
ApiName: field.ApiName,
|
|
44
|
+
FieldType: field.FieldType,
|
|
45
|
+
Title: field.Title,
|
|
46
|
+
ReadOnly: field.ReadOnlyField,
|
|
47
|
+
Mandatory: field.MandatoryField,
|
|
48
|
+
Hidden: field.Hidden,
|
|
49
|
+
ColumnWidth: field.ColumnWidth,
|
|
50
|
+
ColumnWidthType: 1,
|
|
51
|
+
MaxFieldCharacters: field.MaxCharacters,
|
|
52
|
+
MinValue: field.MinValue,
|
|
53
|
+
MaxValue: field.MaxValue,
|
|
54
|
+
Layout: {
|
|
55
|
+
X: field.Layout.X,
|
|
56
|
+
Y: field.Layout.Y,
|
|
57
|
+
Width: field.Layout.Width,
|
|
58
|
+
Height: field.Layout.Field_Height,
|
|
59
|
+
XAlignment: field.Layout.xAlignment,
|
|
60
|
+
YAlignment: field.Layout.yAlignment,
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
PepGenericFormService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepGenericFormService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
66
|
+
PepGenericFormService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepGenericFormService });
|
|
67
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepGenericFormService, decorators: [{
|
|
68
|
+
type: Injectable
|
|
70
69
|
}], ctorParameters: function () { return []; } });
|
|
71
70
|
|
|
72
|
-
class GenericFormComponent {
|
|
73
|
-
constructor(layoutService, _genericFormService) {
|
|
74
|
-
this.layoutService = layoutService;
|
|
75
|
-
this._genericFormService = _genericFormService;
|
|
76
|
-
this.isLocked = false;
|
|
77
|
-
this.inline = false;
|
|
78
|
-
this.showTopBar = false;
|
|
79
|
-
this.addPadding = false;
|
|
80
|
-
this.valueChange = new EventEmitter();
|
|
81
|
-
this.fieldClick = new EventEmitter();
|
|
82
|
-
this.formValidationChange = new EventEmitter();
|
|
83
|
-
this.layoutService.onResize$.pipe().subscribe((size) => {
|
|
84
|
-
//
|
|
85
|
-
});
|
|
86
|
-
this._formData = new ObjectsDataRow();
|
|
87
|
-
this._uiControl = new UIControl();
|
|
88
|
-
}
|
|
89
|
-
set pepListContainer(val) {
|
|
90
|
-
this._pepFormContainer = val;
|
|
91
|
-
}
|
|
92
|
-
set dataSource(val) {
|
|
93
|
-
this._data = val;
|
|
94
|
-
}
|
|
95
|
-
set dataView(val) {
|
|
96
|
-
this.initForm(val);
|
|
97
|
-
}
|
|
98
|
-
ngOnInit() {
|
|
99
|
-
//
|
|
100
|
-
}
|
|
101
|
-
initForm(dataView) {
|
|
102
|
-
setTimeout(async () => {
|
|
103
|
-
if (this._pepFormContainer) {
|
|
104
|
-
if (this._pepFormContainer.length) {
|
|
105
|
-
this._pepFormContainer.remove();
|
|
106
|
-
this._formData = new ObjectsDataRow();
|
|
107
|
-
this._uiControl = new UIControl();
|
|
108
|
-
}
|
|
109
|
-
const { PepFormComponent } = await import('@pepperi-addons/ngx-lib/form');
|
|
110
|
-
const componentRef = this._pepFormContainer.createComponent(PepFormComponent);
|
|
111
|
-
this._pepForm = componentRef.instance;
|
|
112
|
-
this._formData.IsEditable = !this.isLocked;
|
|
113
|
-
this._formData.UID = dataView.UID || PepGuid.newGuid();
|
|
114
|
-
const uiControlData = DataViewConverter.toUIControlData(dataView);
|
|
115
|
-
if (uiControlData) {
|
|
116
|
-
if (uiControlData?.ControlFields) {
|
|
117
|
-
this._uiControl.ControlFields = uiControlData.ControlFields.map((field) => this._genericFormService.convertToUiControlField(field));
|
|
118
|
-
}
|
|
119
|
-
this._uiControl.Columns = uiControlData.Columns;
|
|
120
|
-
if (this._uiControl.ControlFields?.length) {
|
|
121
|
-
this._formData.Fields = [];
|
|
122
|
-
this._uiControl.ControlFields.forEach((item) => {
|
|
123
|
-
let value = '';
|
|
124
|
-
if (this._genericFormService.hasProperty(this._data, item.ApiName)) {
|
|
125
|
-
value = this._data[item.ApiName];
|
|
126
|
-
}
|
|
127
|
-
let dataViewField;
|
|
128
|
-
if (dataView.Fields) {
|
|
129
|
-
dataViewField = dataView.Fields.find(field => field.FieldID === item.ApiName);
|
|
130
|
-
}
|
|
131
|
-
const controlFieldData = {
|
|
132
|
-
...item,
|
|
133
|
-
...{
|
|
134
|
-
controlFieldValue: value
|
|
135
|
-
},
|
|
136
|
-
...{
|
|
137
|
-
OptionalValues: dataViewField?.OptionalValues?.length ? dataViewField.OptionalValues : [],
|
|
138
|
-
AdditionalProps: dataViewField?.AdditionalProps || null
|
|
139
|
-
}
|
|
140
|
-
};
|
|
141
|
-
this._formData.Fields.push(this._genericFormService.createFormField(controlFieldData));
|
|
142
|
-
});
|
|
143
|
-
componentRef.instance.layoutType = 'form';
|
|
144
|
-
componentRef.instance.layout = this._uiControl;
|
|
145
|
-
componentRef.instance.data = this._formData;
|
|
146
|
-
componentRef.instance.isInternal = false;
|
|
147
|
-
componentRef.instance.lockFields = this.isLocked;
|
|
148
|
-
componentRef.instance.valueChange.subscribe(($event) => {
|
|
149
|
-
this.onValueChanged($event);
|
|
150
|
-
});
|
|
151
|
-
componentRef.instance.fieldClick.subscribe(($event) => {
|
|
152
|
-
this.onfieldClicked($event);
|
|
153
|
-
});
|
|
154
|
-
componentRef.instance.formValidationChange.subscribe(($event) => {
|
|
155
|
-
this.onFormValidationChanged($event);
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
}, 0);
|
|
161
|
-
}
|
|
162
|
-
/**
|
|
163
|
-
* updates form field's value
|
|
164
|
-
* @param field object containing the data of the required update
|
|
165
|
-
*/
|
|
166
|
-
updateFieldValue(fieldChanged) {
|
|
167
|
-
this._data[fieldChanged.ApiName] = fieldChanged.Value;
|
|
168
|
-
}
|
|
169
|
-
getData() {
|
|
170
|
-
return {
|
|
171
|
-
UID: this._formData.UID,
|
|
172
|
-
Values: this._data
|
|
173
|
-
};
|
|
174
|
-
}
|
|
175
|
-
/**
|
|
176
|
-
* updates form field(s) params
|
|
177
|
-
* @param fields
|
|
178
|
-
*/
|
|
179
|
-
updateFields(fields) {
|
|
180
|
-
// update data view with current data
|
|
181
|
-
for (const [key, value] of Object.entries(this._data)) {
|
|
182
|
-
const index = this._formData.Fields.findIndex((item) => item.ApiName === key);
|
|
183
|
-
if (index >= 0) {
|
|
184
|
-
const item = this._formData.Fields[index];
|
|
185
|
-
item.Value = value;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
fields.forEach((field) => {
|
|
189
|
-
const index = this._formData.Fields.findIndex((item) => item.ApiName === field.FieldId);
|
|
190
|
-
if (index >= 0) {
|
|
191
|
-
for (const [key, value] of Object.entries(field.Params)) {
|
|
192
|
-
if (this._genericFormService.hasProperty(this._formData.Fields[index], key)) {
|
|
193
|
-
const item = this._formData.Fields[index];
|
|
194
|
-
item[key] = value;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
});
|
|
199
|
-
this._pepForm.ReloadForm();
|
|
200
|
-
this._pepForm.data = this._formData;
|
|
201
|
-
}
|
|
202
|
-
onValueChanged(event) {
|
|
203
|
-
const field = {
|
|
204
|
-
UID: event.id,
|
|
205
|
-
ApiName: event.key,
|
|
206
|
-
Value: event.value
|
|
207
|
-
};
|
|
208
|
-
this.updateFieldValue(field);
|
|
209
|
-
this.valueChange.emit(field);
|
|
210
|
-
}
|
|
211
|
-
onfieldClicked(event) {
|
|
212
|
-
const field = {
|
|
213
|
-
UID: event.id,
|
|
214
|
-
ApiName: event.key,
|
|
215
|
-
Value: event.value
|
|
216
|
-
};
|
|
217
|
-
this.updateFieldValue(field);
|
|
218
|
-
this.fieldClick.emit(field);
|
|
219
|
-
}
|
|
220
|
-
onFormValidationChanged(event) {
|
|
221
|
-
this.formValidationChange.emit(event);
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
GenericFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: GenericFormComponent, deps: [{ token: i1.PepLayoutService }, { token: PepGenericFormService }], target: i0.ɵɵFactoryTarget.Component });
|
|
225
|
-
GenericFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: GenericFormComponent, selector: "pep-generic-form", inputs: { dataSource: "dataSource", dataView: "dataView", isLocked: "isLocked", inline: "inline", showTopBar: "showTopBar", addPadding: "addPadding" }, outputs: { valueChange: "valueChange", fieldClick: "fieldClick", formValidationChange: "formValidationChange" }, providers: [PepGenericFormService], viewQueries: [{ propertyName: "pepListContainer", first: true, predicate: ["pepFormContainer"], descendants: true, read: ViewContainerRef }], ngImport: i0, template: "<div *ngIf=\"inline\" class=\"inline-container\" [ngClass]=\"{ 'add-padding': addPadding }\">\n <div *ngIf=\"showTopBar\" class=\"inline-top-bar-container\">\n <ng-container *ngTemplateOutlet=\"topBarTemplate\"></ng-container>\n </div>\n <ng-container *ngTemplateOutlet=\"formTemplate\"></ng-container>\n</div>\n\n<pep-page-layout *ngIf=\"!inline\" [addPadding]=\"addPadding\">\n <ng-container *ngIf=\"showTopBar\" pep-top-area>\n <ng-container *ngTemplateOutlet=\"topBarTemplate\"></ng-container>\n </ng-container>\n <div pep-main-area class=\"main-area-container\">\n <ng-container *ngTemplateOutlet=\"formTemplate\"></ng-container>\n </div>\n</pep-page-layout>\n\n<ng-template #topBarTemplate>\n <pep-top-bar [inline]=\"inline\"> \n <div header-start-content>\n <ng-content select=\"[left-buttons]\"></ng-content>\n </div>\n <div header-end-content>\n <ng-content select=\"[right-buttons]\"></ng-content>\n </div>\n\n <!-- <div footer-start-content>\n <ng-content select=\"[bottom-left-buttons]\"></ng-content>\n </div>\n <div footer-end-content>\n <ng-content select=\"[bottom-right-buttons]\"></ng-content>\n </div> -->\n </pep-top-bar>\n</ng-template>\n\n<ng-template #formTemplate>\n <div class=\"form-view\">\n <ng-container #pepFormContainer></ng-container>\n </div>\n</ng-template>\n", styles: [":host{height:inherit;display:block}.main-area-container{display:grid;height:inherit}.inline-container{height:inherit;display:grid;grid-template-rows:auto 1fr}.inline-container.add-padding{padding-inline:var(--pep-spacing-lg, 1rem)}\n"], dependencies: [{ kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i4.PepPageLayoutComponent, selector: "pep-page-layout", inputs: ["addPadding", "showShadow"] }, { kind: "component", type: i5.PepTopBarComponent, selector: "pep-top-bar", inputs: ["inline", "title"], outputs: ["footerStateChange"] }] });
|
|
226
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: GenericFormComponent, decorators: [{
|
|
227
|
-
type: Component,
|
|
228
|
-
args: [{ selector: 'pep-generic-form', providers: [PepGenericFormService], template: "<div *ngIf=\"inline\" class=\"inline-container\" [ngClass]=\"{ 'add-padding': addPadding }\">\n <div *ngIf=\"showTopBar\" class=\"inline-top-bar-container\">\n <ng-container *ngTemplateOutlet=\"topBarTemplate\"></ng-container>\n </div>\n <ng-container *ngTemplateOutlet=\"formTemplate\"></ng-container>\n</div>\n\n<pep-page-layout *ngIf=\"!inline\" [addPadding]=\"addPadding\">\n <ng-container *ngIf=\"showTopBar\" pep-top-area>\n <ng-container *ngTemplateOutlet=\"topBarTemplate\"></ng-container>\n </ng-container>\n <div pep-main-area class=\"main-area-container\">\n <ng-container *ngTemplateOutlet=\"formTemplate\"></ng-container>\n </div>\n</pep-page-layout>\n\n<ng-template #topBarTemplate>\n <pep-top-bar [inline]=\"inline\"> \n <div header-start-content>\n <ng-content select=\"[left-buttons]\"></ng-content>\n </div>\n <div header-end-content>\n <ng-content select=\"[right-buttons]\"></ng-content>\n </div>\n\n <!-- <div footer-start-content>\n <ng-content select=\"[bottom-left-buttons]\"></ng-content>\n </div>\n <div footer-end-content>\n <ng-content select=\"[bottom-right-buttons]\"></ng-content>\n </div> -->\n </pep-top-bar>\n</ng-template>\n\n<ng-template #formTemplate>\n <div class=\"form-view\">\n <ng-container #pepFormContainer></ng-container>\n </div>\n</ng-template>\n", styles: [":host{height:inherit;display:block}.main-area-container{display:grid;height:inherit}.inline-container{height:inherit;display:grid;grid-template-rows:auto 1fr}.inline-container.add-padding{padding-inline:var(--pep-spacing-lg, 1rem)}\n"] }]
|
|
229
|
-
}], ctorParameters: function () { return [{ type: i1.PepLayoutService }, { type: PepGenericFormService }]; }, propDecorators: { pepListContainer: [{
|
|
230
|
-
type: ViewChild,
|
|
231
|
-
args: ['pepFormContainer', { read: ViewContainerRef }]
|
|
232
|
-
}], dataSource: [{
|
|
233
|
-
type: Input
|
|
234
|
-
}], dataView: [{
|
|
235
|
-
type: Input
|
|
236
|
-
}], isLocked: [{
|
|
237
|
-
type: Input
|
|
238
|
-
}], inline: [{
|
|
239
|
-
type: Input
|
|
240
|
-
}], showTopBar: [{
|
|
241
|
-
type: Input
|
|
242
|
-
}], addPadding: [{
|
|
243
|
-
type: Input
|
|
244
|
-
}], valueChange: [{
|
|
245
|
-
type: Output
|
|
246
|
-
}], fieldClick: [{
|
|
247
|
-
type: Output
|
|
248
|
-
}], formValidationChange: [{
|
|
249
|
-
type: Output
|
|
71
|
+
class GenericFormComponent {
|
|
72
|
+
constructor(layoutService, _genericFormService) {
|
|
73
|
+
this.layoutService = layoutService;
|
|
74
|
+
this._genericFormService = _genericFormService;
|
|
75
|
+
this.isLocked = false;
|
|
76
|
+
this.inline = false;
|
|
77
|
+
this.showTopBar = false;
|
|
78
|
+
this.addPadding = false;
|
|
79
|
+
this.valueChange = new EventEmitter();
|
|
80
|
+
this.fieldClick = new EventEmitter();
|
|
81
|
+
this.formValidationChange = new EventEmitter();
|
|
82
|
+
this.layoutService.onResize$.pipe().subscribe((size) => {
|
|
83
|
+
//
|
|
84
|
+
});
|
|
85
|
+
this._formData = new ObjectsDataRow();
|
|
86
|
+
this._uiControl = new UIControl();
|
|
87
|
+
}
|
|
88
|
+
set pepListContainer(val) {
|
|
89
|
+
this._pepFormContainer = val;
|
|
90
|
+
}
|
|
91
|
+
set dataSource(val) {
|
|
92
|
+
this._data = val;
|
|
93
|
+
}
|
|
94
|
+
set dataView(val) {
|
|
95
|
+
this.initForm(val);
|
|
96
|
+
}
|
|
97
|
+
ngOnInit() {
|
|
98
|
+
//
|
|
99
|
+
}
|
|
100
|
+
initForm(dataView) {
|
|
101
|
+
setTimeout(async () => {
|
|
102
|
+
if (this._pepFormContainer) {
|
|
103
|
+
if (this._pepFormContainer.length) {
|
|
104
|
+
this._pepFormContainer.remove();
|
|
105
|
+
this._formData = new ObjectsDataRow();
|
|
106
|
+
this._uiControl = new UIControl();
|
|
107
|
+
}
|
|
108
|
+
const { PepFormComponent } = await import('@pepperi-addons/ngx-lib/form');
|
|
109
|
+
const componentRef = this._pepFormContainer.createComponent(PepFormComponent);
|
|
110
|
+
this._pepForm = componentRef.instance;
|
|
111
|
+
this._formData.IsEditable = !this.isLocked;
|
|
112
|
+
this._formData.UID = dataView.UID || PepGuid.newGuid();
|
|
113
|
+
const uiControlData = DataViewConverter.toUIControlData(dataView);
|
|
114
|
+
if (uiControlData) {
|
|
115
|
+
if (uiControlData?.ControlFields) {
|
|
116
|
+
this._uiControl.ControlFields = uiControlData.ControlFields.map((field) => this._genericFormService.convertToUiControlField(field));
|
|
117
|
+
}
|
|
118
|
+
this._uiControl.Columns = uiControlData.Columns;
|
|
119
|
+
if (this._uiControl.ControlFields?.length) {
|
|
120
|
+
this._formData.Fields = [];
|
|
121
|
+
this._uiControl.ControlFields.forEach((item) => {
|
|
122
|
+
let value = '';
|
|
123
|
+
if (this._genericFormService.hasProperty(this._data, item.ApiName)) {
|
|
124
|
+
value = this._data[item.ApiName];
|
|
125
|
+
}
|
|
126
|
+
let dataViewField;
|
|
127
|
+
if (dataView.Fields) {
|
|
128
|
+
dataViewField = dataView.Fields.find(field => field.FieldID === item.ApiName);
|
|
129
|
+
}
|
|
130
|
+
const controlFieldData = {
|
|
131
|
+
...item,
|
|
132
|
+
...{
|
|
133
|
+
controlFieldValue: value
|
|
134
|
+
},
|
|
135
|
+
...{
|
|
136
|
+
OptionalValues: dataViewField?.OptionalValues?.length ? dataViewField.OptionalValues : [],
|
|
137
|
+
AdditionalProps: dataViewField?.AdditionalProps || null
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
this._formData.Fields.push(this._genericFormService.createFormField(controlFieldData));
|
|
141
|
+
});
|
|
142
|
+
componentRef.instance.layoutType = 'form';
|
|
143
|
+
componentRef.instance.layout = this._uiControl;
|
|
144
|
+
componentRef.instance.data = this._formData;
|
|
145
|
+
componentRef.instance.isInternal = false;
|
|
146
|
+
componentRef.instance.lockFields = this.isLocked;
|
|
147
|
+
componentRef.instance.valueChange.subscribe(($event) => {
|
|
148
|
+
this.onValueChanged($event);
|
|
149
|
+
});
|
|
150
|
+
componentRef.instance.fieldClick.subscribe(($event) => {
|
|
151
|
+
this.onfieldClicked($event);
|
|
152
|
+
});
|
|
153
|
+
componentRef.instance.formValidationChange.subscribe(($event) => {
|
|
154
|
+
this.onFormValidationChanged($event);
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}, 0);
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* updates form field's value
|
|
163
|
+
* @param field object containing the data of the required update
|
|
164
|
+
*/
|
|
165
|
+
updateFieldValue(fieldChanged) {
|
|
166
|
+
this._data[fieldChanged.ApiName] = fieldChanged.Value;
|
|
167
|
+
}
|
|
168
|
+
getData() {
|
|
169
|
+
return {
|
|
170
|
+
UID: this._formData.UID,
|
|
171
|
+
Values: this._data
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* updates form field(s) params
|
|
176
|
+
* @param fields
|
|
177
|
+
*/
|
|
178
|
+
updateFields(fields) {
|
|
179
|
+
// update data view with current data
|
|
180
|
+
for (const [key, value] of Object.entries(this._data)) {
|
|
181
|
+
const index = this._formData.Fields.findIndex((item) => item.ApiName === key);
|
|
182
|
+
if (index >= 0) {
|
|
183
|
+
const item = this._formData.Fields[index];
|
|
184
|
+
item.Value = value;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
fields.forEach((field) => {
|
|
188
|
+
const index = this._formData.Fields.findIndex((item) => item.ApiName === field.FieldId);
|
|
189
|
+
if (index >= 0) {
|
|
190
|
+
for (const [key, value] of Object.entries(field.Params)) {
|
|
191
|
+
if (this._genericFormService.hasProperty(this._formData.Fields[index], key)) {
|
|
192
|
+
const item = this._formData.Fields[index];
|
|
193
|
+
item[key] = value;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
this._pepForm.ReloadForm();
|
|
199
|
+
this._pepForm.data = this._formData;
|
|
200
|
+
}
|
|
201
|
+
onValueChanged(event) {
|
|
202
|
+
const field = {
|
|
203
|
+
UID: event.id,
|
|
204
|
+
ApiName: event.key,
|
|
205
|
+
Value: event.value
|
|
206
|
+
};
|
|
207
|
+
this.updateFieldValue(field);
|
|
208
|
+
this.valueChange.emit(field);
|
|
209
|
+
}
|
|
210
|
+
onfieldClicked(event) {
|
|
211
|
+
const field = {
|
|
212
|
+
UID: event.id,
|
|
213
|
+
ApiName: event.key,
|
|
214
|
+
Value: event.value
|
|
215
|
+
};
|
|
216
|
+
this.updateFieldValue(field);
|
|
217
|
+
this.fieldClick.emit(field);
|
|
218
|
+
}
|
|
219
|
+
onFormValidationChanged(event) {
|
|
220
|
+
this.formValidationChange.emit(event);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
GenericFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: GenericFormComponent, deps: [{ token: i1.PepLayoutService }, { token: PepGenericFormService }], target: i0.ɵɵFactoryTarget.Component });
|
|
224
|
+
GenericFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: GenericFormComponent, selector: "pep-generic-form", inputs: { dataSource: "dataSource", dataView: "dataView", isLocked: "isLocked", inline: "inline", showTopBar: "showTopBar", addPadding: "addPadding" }, outputs: { valueChange: "valueChange", fieldClick: "fieldClick", formValidationChange: "formValidationChange" }, providers: [PepGenericFormService], viewQueries: [{ propertyName: "pepListContainer", first: true, predicate: ["pepFormContainer"], descendants: true, read: ViewContainerRef }], ngImport: i0, template: "<div *ngIf=\"inline\" class=\"inline-container\" [ngClass]=\"{ 'add-padding': addPadding }\">\n <div *ngIf=\"showTopBar\" class=\"inline-top-bar-container\">\n <ng-container *ngTemplateOutlet=\"topBarTemplate\"></ng-container>\n </div>\n <ng-container *ngTemplateOutlet=\"formTemplate\"></ng-container>\n</div>\n\n<pep-page-layout *ngIf=\"!inline\" [addPadding]=\"addPadding\">\n <ng-container *ngIf=\"showTopBar\" pep-top-area>\n <ng-container *ngTemplateOutlet=\"topBarTemplate\"></ng-container>\n </ng-container>\n <div pep-main-area class=\"main-area-container\">\n <ng-container *ngTemplateOutlet=\"formTemplate\"></ng-container>\n </div>\n</pep-page-layout>\n\n<ng-template #topBarTemplate>\n <pep-top-bar [inline]=\"inline\"> \n <div header-start-content>\n <ng-content select=\"[left-buttons]\"></ng-content>\n </div>\n <div header-end-content>\n <ng-content select=\"[right-buttons]\"></ng-content>\n </div>\n\n <!-- <div footer-start-content>\n <ng-content select=\"[bottom-left-buttons]\"></ng-content>\n </div>\n <div footer-end-content>\n <ng-content select=\"[bottom-right-buttons]\"></ng-content>\n </div> -->\n </pep-top-bar>\n</ng-template>\n\n<ng-template #formTemplate>\n <div class=\"form-view\">\n <ng-container #pepFormContainer></ng-container>\n </div>\n</ng-template>\n", styles: [":host{height:inherit;display:block}.main-area-container{display:grid;height:inherit}.inline-container{height:inherit;display:grid;grid-template-rows:auto 1fr}.inline-container.add-padding{padding-inline:var(--pep-spacing-lg, 1rem)}\n"], dependencies: [{ kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i4.PepPageLayoutComponent, selector: "pep-page-layout", inputs: ["addPadding", "showShadow"] }, { kind: "component", type: i5.PepTopBarComponent, selector: "pep-top-bar", inputs: ["inline", "title"], outputs: ["footerStateChange"] }] });
|
|
225
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: GenericFormComponent, decorators: [{
|
|
226
|
+
type: Component,
|
|
227
|
+
args: [{ selector: 'pep-generic-form', providers: [PepGenericFormService], template: "<div *ngIf=\"inline\" class=\"inline-container\" [ngClass]=\"{ 'add-padding': addPadding }\">\n <div *ngIf=\"showTopBar\" class=\"inline-top-bar-container\">\n <ng-container *ngTemplateOutlet=\"topBarTemplate\"></ng-container>\n </div>\n <ng-container *ngTemplateOutlet=\"formTemplate\"></ng-container>\n</div>\n\n<pep-page-layout *ngIf=\"!inline\" [addPadding]=\"addPadding\">\n <ng-container *ngIf=\"showTopBar\" pep-top-area>\n <ng-container *ngTemplateOutlet=\"topBarTemplate\"></ng-container>\n </ng-container>\n <div pep-main-area class=\"main-area-container\">\n <ng-container *ngTemplateOutlet=\"formTemplate\"></ng-container>\n </div>\n</pep-page-layout>\n\n<ng-template #topBarTemplate>\n <pep-top-bar [inline]=\"inline\"> \n <div header-start-content>\n <ng-content select=\"[left-buttons]\"></ng-content>\n </div>\n <div header-end-content>\n <ng-content select=\"[right-buttons]\"></ng-content>\n </div>\n\n <!-- <div footer-start-content>\n <ng-content select=\"[bottom-left-buttons]\"></ng-content>\n </div>\n <div footer-end-content>\n <ng-content select=\"[bottom-right-buttons]\"></ng-content>\n </div> -->\n </pep-top-bar>\n</ng-template>\n\n<ng-template #formTemplate>\n <div class=\"form-view\">\n <ng-container #pepFormContainer></ng-container>\n </div>\n</ng-template>\n", styles: [":host{height:inherit;display:block}.main-area-container{display:grid;height:inherit}.inline-container{height:inherit;display:grid;grid-template-rows:auto 1fr}.inline-container.add-padding{padding-inline:var(--pep-spacing-lg, 1rem)}\n"] }]
|
|
228
|
+
}], ctorParameters: function () { return [{ type: i1.PepLayoutService }, { type: PepGenericFormService }]; }, propDecorators: { pepListContainer: [{
|
|
229
|
+
type: ViewChild,
|
|
230
|
+
args: ['pepFormContainer', { read: ViewContainerRef }]
|
|
231
|
+
}], dataSource: [{
|
|
232
|
+
type: Input
|
|
233
|
+
}], dataView: [{
|
|
234
|
+
type: Input
|
|
235
|
+
}], isLocked: [{
|
|
236
|
+
type: Input
|
|
237
|
+
}], inline: [{
|
|
238
|
+
type: Input
|
|
239
|
+
}], showTopBar: [{
|
|
240
|
+
type: Input
|
|
241
|
+
}], addPadding: [{
|
|
242
|
+
type: Input
|
|
243
|
+
}], valueChange: [{
|
|
244
|
+
type: Output
|
|
245
|
+
}], fieldClick: [{
|
|
246
|
+
type: Output
|
|
247
|
+
}], formValidationChange: [{
|
|
248
|
+
type: Output
|
|
250
249
|
}] } });
|
|
251
250
|
|
|
252
|
-
class PepGenericFormModule {
|
|
253
|
-
}
|
|
254
|
-
PepGenericFormModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepGenericFormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
255
|
-
PepGenericFormModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: PepGenericFormModule, declarations: [GenericFormComponent], imports: [CommonModule,
|
|
256
|
-
// MatFormFieldModule,
|
|
257
|
-
// ReactiveFormsModule,
|
|
258
|
-
PepNgxLibModule,
|
|
259
|
-
// PepListModule,
|
|
260
|
-
PepFormModule,
|
|
261
|
-
PepMenuModule,
|
|
262
|
-
PepPageLayoutModule,
|
|
263
|
-
PepTopBarModule], exports: [GenericFormComponent] });
|
|
264
|
-
PepGenericFormModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepGenericFormModule, providers: [
|
|
265
|
-
PepGenericFormService
|
|
266
|
-
], imports: [CommonModule,
|
|
267
|
-
// MatFormFieldModule,
|
|
268
|
-
// ReactiveFormsModule,
|
|
269
|
-
PepNgxLibModule,
|
|
270
|
-
// PepListModule,
|
|
271
|
-
PepFormModule,
|
|
272
|
-
PepMenuModule,
|
|
273
|
-
PepPageLayoutModule,
|
|
274
|
-
PepTopBarModule] });
|
|
275
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepGenericFormModule, decorators: [{
|
|
276
|
-
type: NgModule,
|
|
277
|
-
args: [{
|
|
278
|
-
declarations: [
|
|
279
|
-
GenericFormComponent
|
|
280
|
-
],
|
|
281
|
-
imports: [
|
|
282
|
-
CommonModule,
|
|
283
|
-
// MatFormFieldModule,
|
|
284
|
-
// ReactiveFormsModule,
|
|
285
|
-
PepNgxLibModule,
|
|
286
|
-
// PepListModule,
|
|
287
|
-
PepFormModule,
|
|
288
|
-
PepMenuModule,
|
|
289
|
-
PepPageLayoutModule,
|
|
290
|
-
PepTopBarModule,
|
|
291
|
-
// PepTextboxModule,
|
|
292
|
-
// PepDateModule
|
|
293
|
-
// PepSearchModule,
|
|
294
|
-
// PepBreadCrumbsModule
|
|
295
|
-
],
|
|
296
|
-
exports: [
|
|
297
|
-
GenericFormComponent
|
|
298
|
-
],
|
|
299
|
-
providers: [
|
|
300
|
-
PepGenericFormService
|
|
301
|
-
]
|
|
302
|
-
}]
|
|
251
|
+
class PepGenericFormModule {
|
|
252
|
+
}
|
|
253
|
+
PepGenericFormModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepGenericFormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
254
|
+
PepGenericFormModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: PepGenericFormModule, declarations: [GenericFormComponent], imports: [CommonModule,
|
|
255
|
+
// MatFormFieldModule,
|
|
256
|
+
// ReactiveFormsModule,
|
|
257
|
+
PepNgxLibModule,
|
|
258
|
+
// PepListModule,
|
|
259
|
+
PepFormModule,
|
|
260
|
+
PepMenuModule,
|
|
261
|
+
PepPageLayoutModule,
|
|
262
|
+
PepTopBarModule], exports: [GenericFormComponent] });
|
|
263
|
+
PepGenericFormModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepGenericFormModule, providers: [
|
|
264
|
+
PepGenericFormService
|
|
265
|
+
], imports: [CommonModule,
|
|
266
|
+
// MatFormFieldModule,
|
|
267
|
+
// ReactiveFormsModule,
|
|
268
|
+
PepNgxLibModule,
|
|
269
|
+
// PepListModule,
|
|
270
|
+
PepFormModule,
|
|
271
|
+
PepMenuModule,
|
|
272
|
+
PepPageLayoutModule,
|
|
273
|
+
PepTopBarModule] });
|
|
274
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepGenericFormModule, decorators: [{
|
|
275
|
+
type: NgModule,
|
|
276
|
+
args: [{
|
|
277
|
+
declarations: [
|
|
278
|
+
GenericFormComponent
|
|
279
|
+
],
|
|
280
|
+
imports: [
|
|
281
|
+
CommonModule,
|
|
282
|
+
// MatFormFieldModule,
|
|
283
|
+
// ReactiveFormsModule,
|
|
284
|
+
PepNgxLibModule,
|
|
285
|
+
// PepListModule,
|
|
286
|
+
PepFormModule,
|
|
287
|
+
PepMenuModule,
|
|
288
|
+
PepPageLayoutModule,
|
|
289
|
+
PepTopBarModule,
|
|
290
|
+
// PepTextboxModule,
|
|
291
|
+
// PepDateModule
|
|
292
|
+
// PepSearchModule,
|
|
293
|
+
// PepBreadCrumbsModule
|
|
294
|
+
],
|
|
295
|
+
exports: [
|
|
296
|
+
GenericFormComponent
|
|
297
|
+
],
|
|
298
|
+
providers: [
|
|
299
|
+
PepGenericFormService
|
|
300
|
+
]
|
|
301
|
+
}]
|
|
303
302
|
}] });
|
|
304
303
|
|
|
305
|
-
/*
|
|
306
|
-
* Public API Surface of ngx-composite-lib/generic-form
|
|
304
|
+
/*
|
|
305
|
+
* Public API Surface of ngx-composite-lib/generic-form
|
|
307
306
|
*/
|
|
308
307
|
|
|
309
|
-
/**
|
|
310
|
-
* Generated bundle index. Do not edit.
|
|
308
|
+
/**
|
|
309
|
+
* Generated bundle index. Do not edit.
|
|
311
310
|
*/
|
|
312
311
|
|
|
313
312
|
export { GenericFormComponent, PepGenericFormModule, PepGenericFormService };
|