@pepperi-addons/ngx-composite-lib 0.0.16-beta.43 → 0.0.16-beta.44

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.
Files changed (129) hide show
  1. package/bundles/pepperi-addons-ngx-composite-lib-color-settings.umd.js +132 -132
  2. package/bundles/pepperi-addons-ngx-composite-lib-data-view-builder.umd.js +338 -338
  3. package/bundles/pepperi-addons-ngx-composite-lib-file-status-panel.umd.js +89 -89
  4. package/bundles/pepperi-addons-ngx-composite-lib-generic-form.umd.js +635 -647
  5. package/bundles/pepperi-addons-ngx-composite-lib-generic-form.umd.js.map +1 -1
  6. package/bundles/pepperi-addons-ngx-composite-lib-generic-list.umd.js +998 -1006
  7. package/bundles/pepperi-addons-ngx-composite-lib-generic-list.umd.js.map +1 -1
  8. package/bundles/pepperi-addons-ngx-composite-lib-group-buttons-settings.umd.js +179 -179
  9. package/bundles/pepperi-addons-ngx-composite-lib-shadow-settings.umd.js +117 -117
  10. package/bundles/pepperi-addons-ngx-composite-lib.umd.js +598 -598
  11. package/color-settings/color-settings.component.d.ts +25 -25
  12. package/color-settings/color-settings.model.d.ts +5 -5
  13. package/color-settings/color-settings.module.d.ts +12 -12
  14. package/color-settings/pepperi-addons-ngx-composite-lib-color-settings.d.ts +5 -5
  15. package/color-settings/public-api.d.ts +3 -3
  16. package/core/common/directives/index.d.ts +1 -1
  17. package/core/common/directives/public-api.d.ts +1 -1
  18. package/core/common/directives/reset-configuration-field.directive.d.ts +39 -39
  19. package/core/common/index.d.ts +1 -1
  20. package/core/common/public-api.d.ts +2 -2
  21. package/core/common/services/dimx.service.d.ts +32 -32
  22. package/core/common/services/index.d.ts +1 -1
  23. package/core/common/services/public-api.d.ts +2 -2
  24. package/core/common/services/utilities.service.d.ts +6 -6
  25. package/core/index.d.ts +1 -1
  26. package/core/public-api.d.ts +1 -1
  27. package/data-view-builder/data-view-builder.component.d.ts +35 -35
  28. package/data-view-builder/data-view-builder.model.d.ts +1 -1
  29. package/data-view-builder/data-view-builder.module.d.ts +23 -23
  30. package/data-view-builder/data-view-builder.service.d.ts +14 -14
  31. package/data-view-builder/menu-data-view/menu-data-view.component.d.ts +36 -36
  32. package/data-view-builder/pepperi-addons-ngx-composite-lib-data-view-builder.d.ts +5 -5
  33. package/data-view-builder/public-api.d.ts +3 -3
  34. package/esm2015/color-settings/color-settings.component.js +90 -90
  35. package/esm2015/color-settings/color-settings.model.js +8 -8
  36. package/esm2015/color-settings/color-settings.module.js +39 -39
  37. package/esm2015/color-settings/pepperi-addons-ngx-composite-lib-color-settings.js +4 -4
  38. package/esm2015/color-settings/public-api.js +6 -6
  39. package/esm2015/core/common/directives/index.js +4 -4
  40. package/esm2015/core/common/directives/public-api.js +4 -4
  41. package/esm2015/core/common/directives/reset-configuration-field.directive.js +139 -139
  42. package/esm2015/core/common/index.js +4 -4
  43. package/esm2015/core/common/public-api.js +5 -5
  44. package/esm2015/core/common/services/dimx.service.js +49 -49
  45. package/esm2015/core/common/services/index.js +4 -4
  46. package/esm2015/core/common/services/public-api.js +5 -5
  47. package/esm2015/core/common/services/utilities.service.js +18 -18
  48. package/esm2015/core/index.js +4 -4
  49. package/esm2015/core/public-api.js +4 -4
  50. package/esm2015/data-view-builder/data-view-builder.component.js +121 -121
  51. package/esm2015/data-view-builder/data-view-builder.model.js +1 -1
  52. package/esm2015/data-view-builder/data-view-builder.module.js +81 -81
  53. package/esm2015/data-view-builder/data-view-builder.service.js +38 -38
  54. package/esm2015/data-view-builder/menu-data-view/menu-data-view.component.js +121 -121
  55. package/esm2015/data-view-builder/pepperi-addons-ngx-composite-lib-data-view-builder.js +4 -4
  56. package/esm2015/data-view-builder/public-api.js +6 -6
  57. package/esm2015/file-status-panel/file-status-panel.component.js +38 -38
  58. package/esm2015/file-status-panel/file-status-panel.model.js +8 -8
  59. package/esm2015/file-status-panel/file-status-panel.module.js +55 -55
  60. package/esm2015/file-status-panel/pepperi-addons-ngx-composite-lib-file-status-panel.js +4 -4
  61. package/esm2015/file-status-panel/public-api.js +6 -6
  62. package/esm2015/generic-form/generic-form.component.js +187 -190
  63. package/esm2015/generic-form/generic-form.model.js +2 -2
  64. package/esm2015/generic-form/generic-form.module.js +73 -73
  65. package/esm2015/generic-form/generic-form.service.js +58 -68
  66. package/esm2015/generic-form/pepperi-addons-ngx-composite-lib-generic-form.js +4 -4
  67. package/esm2015/generic-form/public-api.js +7 -7
  68. package/esm2015/generic-list/generic-list.component.js +438 -446
  69. package/esm2015/generic-list/generic-list.model.js +1 -1
  70. package/esm2015/generic-list/generic-list.module.js +71 -71
  71. package/esm2015/generic-list/generic-list.service.js +126 -126
  72. package/esm2015/generic-list/pepperi-addons-ngx-composite-lib-generic-list.js +4 -4
  73. package/esm2015/generic-list/public-api.js +7 -7
  74. package/esm2015/group-buttons-settings/group-buttons-settings.component.js +134 -134
  75. package/esm2015/group-buttons-settings/group-buttons-settings.model.js +1 -1
  76. package/esm2015/group-buttons-settings/group-buttons-settings.module.js +49 -49
  77. package/esm2015/group-buttons-settings/pepperi-addons-ngx-composite-lib-group-buttons-settings.js +4 -4
  78. package/esm2015/group-buttons-settings/public-api.js +6 -6
  79. package/esm2015/ngx-composite-lib.module.js +55 -55
  80. package/esm2015/pepperi-addons-ngx-composite-lib.js +4 -4
  81. package/esm2015/public-api.js +5 -5
  82. package/esm2015/shadow-settings/pepperi-addons-ngx-composite-lib-shadow-settings.js +4 -4
  83. package/esm2015/shadow-settings/public-api.js +6 -6
  84. package/esm2015/shadow-settings/shadow-settings.component.js +72 -72
  85. package/esm2015/shadow-settings/shadow-settings.model.js +7 -7
  86. package/esm2015/shadow-settings/shadow-settings.module.js +43 -43
  87. package/fesm2015/pepperi-addons-ngx-composite-lib-color-settings.js +122 -122
  88. package/fesm2015/pepperi-addons-ngx-composite-lib-data-view-builder.js +319 -319
  89. package/fesm2015/pepperi-addons-ngx-composite-lib-file-status-panel.js +84 -84
  90. package/fesm2015/pepperi-addons-ngx-composite-lib-generic-form.js +290 -302
  91. package/fesm2015/pepperi-addons-ngx-composite-lib-generic-form.js.map +1 -1
  92. package/fesm2015/pepperi-addons-ngx-composite-lib-generic-list.js +595 -603
  93. package/fesm2015/pepperi-addons-ngx-composite-lib-generic-list.js.map +1 -1
  94. package/fesm2015/pepperi-addons-ngx-composite-lib-group-buttons-settings.js +170 -170
  95. package/fesm2015/pepperi-addons-ngx-composite-lib-shadow-settings.js +107 -107
  96. package/fesm2015/pepperi-addons-ngx-composite-lib.js +255 -255
  97. package/file-status-panel/file-status-panel.component.d.ts +14 -14
  98. package/file-status-panel/file-status-panel.model.d.ts +7 -7
  99. package/file-status-panel/file-status-panel.module.d.ts +17 -17
  100. package/file-status-panel/pepperi-addons-ngx-composite-lib-file-status-panel.d.ts +5 -5
  101. package/file-status-panel/public-api.d.ts +3 -3
  102. package/generic-form/generic-form.component.d.ts +44 -46
  103. package/generic-form/generic-form.model.d.ts +34 -34
  104. package/generic-form/generic-form.module.d.ts +13 -13
  105. package/generic-form/generic-form.service.d.ts +15 -16
  106. package/generic-form/pepperi-addons-ngx-composite-lib-generic-form.d.ts +5 -5
  107. package/generic-form/public-api.d.ts +4 -4
  108. package/generic-list/generic-list.component.d.ts +101 -101
  109. package/generic-list/generic-list.model.d.ts +54 -54
  110. package/generic-list/generic-list.module.d.ts +18 -18
  111. package/generic-list/generic-list.service.d.ts +43 -43
  112. package/generic-list/pepperi-addons-ngx-composite-lib-generic-list.d.ts +5 -5
  113. package/generic-list/public-api.d.ts +4 -4
  114. package/group-buttons-settings/group-buttons-settings.component.d.ts +33 -33
  115. package/group-buttons-settings/group-buttons-settings.model.d.ts +1 -1
  116. package/group-buttons-settings/group-buttons-settings.module.d.ts +15 -15
  117. package/group-buttons-settings/pepperi-addons-ngx-composite-lib-group-buttons-settings.d.ts +5 -5
  118. package/group-buttons-settings/public-api.d.ts +3 -3
  119. package/ngx-composite-lib.module.d.ts +13 -13
  120. package/package.json +2 -2
  121. package/pepperi-addons-ngx-composite-lib.d.ts +5 -5
  122. package/public-api.d.ts +2 -2
  123. package/shadow-settings/pepperi-addons-ngx-composite-lib-shadow-settings.d.ts +5 -5
  124. package/shadow-settings/public-api.d.ts +3 -3
  125. package/shadow-settings/shadow-settings.component.d.ts +23 -23
  126. package/shadow-settings/shadow-settings.model.d.ts +7 -7
  127. package/shadow-settings/shadow-settings.module.d.ts +13 -13
  128. package/esm2015/generic-form/index.js +0 -5
  129. package/generic-form/index.d.ts +0 -1
@@ -28,663 +28,651 @@
28
28
  var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
29
29
  var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
30
30
 
31
- var PepGenericFormService = /** @class */ (function () {
32
- function PepGenericFormService() {
33
- //
34
- }
35
- /**
36
- * checks if the object contains property
37
- * @param obj object
38
- * @param prop property name
39
- * @returns true if contains, false otherwise
40
- */
41
- PepGenericFormService.prototype.hasProperty = function (obj, prop) {
42
- return Object.prototype.hasOwnProperty.call(obj, prop);
43
- };
44
- PepGenericFormService.prototype.createFormField = function (controlField, value, optionalValues) {
45
- var field = new i1.ObjectsDataRowCell();
46
- field.ApiName = controlField.ApiName;
47
- field.Value = value;
48
- field.FieldType = controlField.FieldType;
49
- field.Enabled = !controlField.ReadOnly;
50
- field.Visible = !controlField.Hidden;
51
- /* field.Accessory = "";
52
- field.AdditionalValue = "";
53
- field.BackgroundColor = "";
54
- field.FormattedValue = "";*/
55
- field.GroupFields = [];
56
- field.Highlighted = false;
57
- // field.NotificationInfo = "";
58
- field.OptionalValues = optionalValues;
59
- /* field.ReferenceObjectInternalType = "";
60
- field.ReferenceObjectSubType = "";
61
- field.ReferenceObjectType = '0';
62
- field.TextColor = "";
63
- field.UiPageKey = "";*/
64
- return field;
65
- };
66
- PepGenericFormService.prototype.convertToUiControlField = function (field) {
67
- return {
68
- ApiName: field.ApiName,
69
- FieldType: field.FieldType,
70
- Title: field.Title,
71
- ReadOnly: field.ReadOnlyField,
72
- Mandatory: field.MandatoryField,
73
- Hidden: field.Hidden,
74
- ColumnWidth: field.ColumnWidth,
75
- ColumnWidthType: 1,
76
- MaxFieldCharacters: field.MaxCharacters,
77
- MinValue: field.MinValue,
78
- MaxValue: field.MaxValue,
79
- Layout: {
80
- X: field.Layout.X,
81
- Y: field.Layout.Y,
82
- Width: field.Layout.Width,
83
- Height: field.Layout.Field_Height,
84
- XAlignment: field.Layout.xAlignment,
85
- YAlignment: field.Layout.yAlignment,
86
- }
87
- };
88
- };
89
- return PepGenericFormService;
90
- }());
91
- PepGenericFormService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericFormService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
92
- PepGenericFormService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericFormService });
93
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericFormService, decorators: [{
94
- type: i0.Injectable
31
+ var PepGenericFormService = /** @class */ (function () {
32
+ function PepGenericFormService() {
33
+ //
34
+ }
35
+ /**
36
+ * checks if the object contains property
37
+ * @param obj object
38
+ * @param prop property name
39
+ * @returns true if contains, false otherwise
40
+ */
41
+ PepGenericFormService.prototype.hasProperty = function (obj, prop) {
42
+ return Object.prototype.hasOwnProperty.call(obj, prop);
43
+ };
44
+ PepGenericFormService.prototype.createFormField = function (data) {
45
+ var field = {};
46
+ field.ApiName = data.ApiName;
47
+ field.Value = data.controlFieldValue;
48
+ field.FieldType = data.FieldType;
49
+ field.Enabled = !data.ReadOnly;
50
+ field.Visible = !data.Hidden;
51
+ field.GroupFields = [];
52
+ field.Highlighted = false;
53
+ field.OptionalValues = data.OptionalValues;
54
+ field.AdditionalProps = data.AdditionalProps;
55
+ return field;
56
+ };
57
+ PepGenericFormService.prototype.convertToUiControlField = function (field) {
58
+ return {
59
+ ApiName: field.ApiName,
60
+ FieldType: field.FieldType,
61
+ Title: field.Title,
62
+ ReadOnly: field.ReadOnlyField,
63
+ Mandatory: field.MandatoryField,
64
+ Hidden: field.Hidden,
65
+ ColumnWidth: field.ColumnWidth,
66
+ ColumnWidthType: 1,
67
+ MaxFieldCharacters: field.MaxCharacters,
68
+ MinValue: field.MinValue,
69
+ MaxValue: field.MaxValue,
70
+ Layout: {
71
+ X: field.Layout.X,
72
+ Y: field.Layout.Y,
73
+ Width: field.Layout.Width,
74
+ Height: field.Layout.Field_Height,
75
+ XAlignment: field.Layout.xAlignment,
76
+ YAlignment: field.Layout.yAlignment,
77
+ }
78
+ };
79
+ };
80
+ return PepGenericFormService;
81
+ }());
82
+ PepGenericFormService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericFormService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
83
+ PepGenericFormService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericFormService });
84
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericFormService, decorators: [{
85
+ type: i0.Injectable
95
86
  }], ctorParameters: function () { return []; } });
96
87
 
97
- /*! *****************************************************************************
98
- Copyright (c) Microsoft Corporation.
99
-
100
- Permission to use, copy, modify, and/or distribute this software for any
101
- purpose with or without fee is hereby granted.
102
-
103
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
104
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
105
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
106
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
107
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
108
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
109
- PERFORMANCE OF THIS SOFTWARE.
110
- ***************************************************************************** */
111
- /* global Reflect, Promise */
112
- var extendStatics = function (d, b) {
113
- extendStatics = Object.setPrototypeOf ||
114
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
115
- function (d, b) { for (var p in b)
116
- if (Object.prototype.hasOwnProperty.call(b, p))
117
- d[p] = b[p]; };
118
- return extendStatics(d, b);
119
- };
120
- function __extends(d, b) {
121
- if (typeof b !== "function" && b !== null)
122
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
123
- extendStatics(d, b);
124
- function __() { this.constructor = d; }
125
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
126
- }
127
- var __assign = function () {
128
- __assign = Object.assign || function __assign(t) {
129
- for (var s, i = 1, n = arguments.length; i < n; i++) {
130
- s = arguments[i];
131
- for (var p in s)
132
- if (Object.prototype.hasOwnProperty.call(s, p))
133
- t[p] = s[p];
134
- }
135
- return t;
136
- };
137
- return __assign.apply(this, arguments);
138
- };
139
- function __rest(s, e) {
140
- var t = {};
141
- for (var p in s)
142
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
143
- t[p] = s[p];
144
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
145
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
146
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
147
- t[p[i]] = s[p[i]];
148
- }
149
- return t;
150
- }
151
- function __decorate(decorators, target, key, desc) {
152
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
153
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
154
- r = Reflect.decorate(decorators, target, key, desc);
155
- else
156
- for (var i = decorators.length - 1; i >= 0; i--)
157
- if (d = decorators[i])
158
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
159
- return c > 3 && r && Object.defineProperty(target, key, r), r;
160
- }
161
- function __param(paramIndex, decorator) {
162
- return function (target, key) { decorator(target, key, paramIndex); };
163
- }
164
- function __metadata(metadataKey, metadataValue) {
165
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
166
- return Reflect.metadata(metadataKey, metadataValue);
167
- }
168
- function __awaiter(thisArg, _arguments, P, generator) {
169
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
170
- return new (P || (P = Promise))(function (resolve, reject) {
171
- function fulfilled(value) { try {
172
- step(generator.next(value));
173
- }
174
- catch (e) {
175
- reject(e);
176
- } }
177
- function rejected(value) { try {
178
- step(generator["throw"](value));
179
- }
180
- catch (e) {
181
- reject(e);
182
- } }
183
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
184
- step((generator = generator.apply(thisArg, _arguments || [])).next());
185
- });
186
- }
187
- function __generator(thisArg, body) {
188
- var _ = { label: 0, sent: function () { if (t[0] & 1)
189
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
190
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
191
- function verb(n) { return function (v) { return step([n, v]); }; }
192
- function step(op) {
193
- if (f)
194
- throw new TypeError("Generator is already executing.");
195
- while (_)
196
- try {
197
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
198
- return t;
199
- if (y = 0, t)
200
- op = [op[0] & 2, t.value];
201
- switch (op[0]) {
202
- case 0:
203
- case 1:
204
- t = op;
205
- break;
206
- case 4:
207
- _.label++;
208
- return { value: op[1], done: false };
209
- case 5:
210
- _.label++;
211
- y = op[1];
212
- op = [0];
213
- continue;
214
- case 7:
215
- op = _.ops.pop();
216
- _.trys.pop();
217
- continue;
218
- default:
219
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
220
- _ = 0;
221
- continue;
222
- }
223
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
224
- _.label = op[1];
225
- break;
226
- }
227
- if (op[0] === 6 && _.label < t[1]) {
228
- _.label = t[1];
229
- t = op;
230
- break;
231
- }
232
- if (t && _.label < t[2]) {
233
- _.label = t[2];
234
- _.ops.push(op);
235
- break;
236
- }
237
- if (t[2])
238
- _.ops.pop();
239
- _.trys.pop();
240
- continue;
241
- }
242
- op = body.call(thisArg, _);
243
- }
244
- catch (e) {
245
- op = [6, e];
246
- y = 0;
247
- }
248
- finally {
249
- f = t = 0;
250
- }
251
- if (op[0] & 5)
252
- throw op[1];
253
- return { value: op[0] ? op[1] : void 0, done: true };
254
- }
255
- }
256
- var __createBinding = Object.create ? (function (o, m, k, k2) {
257
- if (k2 === undefined)
258
- k2 = k;
259
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
260
- }) : (function (o, m, k, k2) {
261
- if (k2 === undefined)
262
- k2 = k;
263
- o[k2] = m[k];
264
- });
265
- function __exportStar(m, o) {
266
- for (var p in m)
267
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
268
- __createBinding(o, m, p);
269
- }
270
- function __values(o) {
271
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
272
- if (m)
273
- return m.call(o);
274
- if (o && typeof o.length === "number")
275
- return {
276
- next: function () {
277
- if (o && i >= o.length)
278
- o = void 0;
279
- return { value: o && o[i++], done: !o };
280
- }
281
- };
282
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
283
- }
284
- function __read(o, n) {
285
- var m = typeof Symbol === "function" && o[Symbol.iterator];
286
- if (!m)
287
- return o;
288
- var i = m.call(o), r, ar = [], e;
289
- try {
290
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
291
- ar.push(r.value);
292
- }
293
- catch (error) {
294
- e = { error: error };
295
- }
296
- finally {
297
- try {
298
- if (r && !r.done && (m = i["return"]))
299
- m.call(i);
300
- }
301
- finally {
302
- if (e)
303
- throw e.error;
304
- }
305
- }
306
- return ar;
307
- }
308
- /** @deprecated */
309
- function __spread() {
310
- for (var ar = [], i = 0; i < arguments.length; i++)
311
- ar = ar.concat(__read(arguments[i]));
312
- return ar;
313
- }
314
- /** @deprecated */
315
- function __spreadArrays() {
316
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
317
- s += arguments[i].length;
318
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
319
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
320
- r[k] = a[j];
321
- return r;
322
- }
323
- function __spreadArray(to, from, pack) {
324
- if (pack || arguments.length === 2)
325
- for (var i = 0, l = from.length, ar; i < l; i++) {
326
- if (ar || !(i in from)) {
327
- if (!ar)
328
- ar = Array.prototype.slice.call(from, 0, i);
329
- ar[i] = from[i];
330
- }
331
- }
332
- return to.concat(ar || Array.prototype.slice.call(from));
333
- }
334
- function __await(v) {
335
- return this instanceof __await ? (this.v = v, this) : new __await(v);
336
- }
337
- function __asyncGenerator(thisArg, _arguments, generator) {
338
- if (!Symbol.asyncIterator)
339
- throw new TypeError("Symbol.asyncIterator is not defined.");
340
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
341
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
342
- function verb(n) { if (g[n])
343
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
344
- function resume(n, v) { try {
345
- step(g[n](v));
346
- }
347
- catch (e) {
348
- settle(q[0][3], e);
349
- } }
350
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
351
- function fulfill(value) { resume("next", value); }
352
- function reject(value) { resume("throw", value); }
353
- function settle(f, v) { if (f(v), q.shift(), q.length)
354
- resume(q[0][0], q[0][1]); }
355
- }
356
- function __asyncDelegator(o) {
357
- var i, p;
358
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
359
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
360
- }
361
- function __asyncValues(o) {
362
- if (!Symbol.asyncIterator)
363
- throw new TypeError("Symbol.asyncIterator is not defined.");
364
- var m = o[Symbol.asyncIterator], i;
365
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
366
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
367
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
368
- }
369
- function __makeTemplateObject(cooked, raw) {
370
- if (Object.defineProperty) {
371
- Object.defineProperty(cooked, "raw", { value: raw });
372
- }
373
- else {
374
- cooked.raw = raw;
375
- }
376
- return cooked;
377
- }
378
- ;
379
- var __setModuleDefault = Object.create ? (function (o, v) {
380
- Object.defineProperty(o, "default", { enumerable: true, value: v });
381
- }) : function (o, v) {
382
- o["default"] = v;
383
- };
384
- function __importStar(mod) {
385
- if (mod && mod.__esModule)
386
- return mod;
387
- var result = {};
388
- if (mod != null)
389
- for (var k in mod)
390
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
391
- __createBinding(result, mod, k);
392
- __setModuleDefault(result, mod);
393
- return result;
394
- }
395
- function __importDefault(mod) {
396
- return (mod && mod.__esModule) ? mod : { default: mod };
397
- }
398
- function __classPrivateFieldGet(receiver, state, kind, f) {
399
- if (kind === "a" && !f)
400
- throw new TypeError("Private accessor was defined without a getter");
401
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
402
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
403
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
404
- }
405
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
406
- if (kind === "m")
407
- throw new TypeError("Private method is not writable");
408
- if (kind === "a" && !f)
409
- throw new TypeError("Private accessor was defined without a setter");
410
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
411
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
412
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
88
+ /*! *****************************************************************************
89
+ Copyright (c) Microsoft Corporation.
90
+
91
+ Permission to use, copy, modify, and/or distribute this software for any
92
+ purpose with or without fee is hereby granted.
93
+
94
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
95
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
96
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
97
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
98
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
99
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
100
+ PERFORMANCE OF THIS SOFTWARE.
101
+ ***************************************************************************** */
102
+ /* global Reflect, Promise */
103
+ var extendStatics = function (d, b) {
104
+ extendStatics = Object.setPrototypeOf ||
105
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
106
+ function (d, b) { for (var p in b)
107
+ if (Object.prototype.hasOwnProperty.call(b, p))
108
+ d[p] = b[p]; };
109
+ return extendStatics(d, b);
110
+ };
111
+ function __extends(d, b) {
112
+ if (typeof b !== "function" && b !== null)
113
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
114
+ extendStatics(d, b);
115
+ function __() { this.constructor = d; }
116
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
117
+ }
118
+ var __assign = function () {
119
+ __assign = Object.assign || function __assign(t) {
120
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
121
+ s = arguments[i];
122
+ for (var p in s)
123
+ if (Object.prototype.hasOwnProperty.call(s, p))
124
+ t[p] = s[p];
125
+ }
126
+ return t;
127
+ };
128
+ return __assign.apply(this, arguments);
129
+ };
130
+ function __rest(s, e) {
131
+ var t = {};
132
+ for (var p in s)
133
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
134
+ t[p] = s[p];
135
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
136
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
137
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
138
+ t[p[i]] = s[p[i]];
139
+ }
140
+ return t;
141
+ }
142
+ function __decorate(decorators, target, key, desc) {
143
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
144
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
145
+ r = Reflect.decorate(decorators, target, key, desc);
146
+ else
147
+ for (var i = decorators.length - 1; i >= 0; i--)
148
+ if (d = decorators[i])
149
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
150
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
151
+ }
152
+ function __param(paramIndex, decorator) {
153
+ return function (target, key) { decorator(target, key, paramIndex); };
154
+ }
155
+ function __metadata(metadataKey, metadataValue) {
156
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
157
+ return Reflect.metadata(metadataKey, metadataValue);
158
+ }
159
+ function __awaiter(thisArg, _arguments, P, generator) {
160
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
161
+ return new (P || (P = Promise))(function (resolve, reject) {
162
+ function fulfilled(value) { try {
163
+ step(generator.next(value));
164
+ }
165
+ catch (e) {
166
+ reject(e);
167
+ } }
168
+ function rejected(value) { try {
169
+ step(generator["throw"](value));
170
+ }
171
+ catch (e) {
172
+ reject(e);
173
+ } }
174
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
175
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
176
+ });
177
+ }
178
+ function __generator(thisArg, body) {
179
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
180
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
181
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
182
+ function verb(n) { return function (v) { return step([n, v]); }; }
183
+ function step(op) {
184
+ if (f)
185
+ throw new TypeError("Generator is already executing.");
186
+ while (_)
187
+ try {
188
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
189
+ return t;
190
+ if (y = 0, t)
191
+ op = [op[0] & 2, t.value];
192
+ switch (op[0]) {
193
+ case 0:
194
+ case 1:
195
+ t = op;
196
+ break;
197
+ case 4:
198
+ _.label++;
199
+ return { value: op[1], done: false };
200
+ case 5:
201
+ _.label++;
202
+ y = op[1];
203
+ op = [0];
204
+ continue;
205
+ case 7:
206
+ op = _.ops.pop();
207
+ _.trys.pop();
208
+ continue;
209
+ default:
210
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
211
+ _ = 0;
212
+ continue;
213
+ }
214
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
215
+ _.label = op[1];
216
+ break;
217
+ }
218
+ if (op[0] === 6 && _.label < t[1]) {
219
+ _.label = t[1];
220
+ t = op;
221
+ break;
222
+ }
223
+ if (t && _.label < t[2]) {
224
+ _.label = t[2];
225
+ _.ops.push(op);
226
+ break;
227
+ }
228
+ if (t[2])
229
+ _.ops.pop();
230
+ _.trys.pop();
231
+ continue;
232
+ }
233
+ op = body.call(thisArg, _);
234
+ }
235
+ catch (e) {
236
+ op = [6, e];
237
+ y = 0;
238
+ }
239
+ finally {
240
+ f = t = 0;
241
+ }
242
+ if (op[0] & 5)
243
+ throw op[1];
244
+ return { value: op[0] ? op[1] : void 0, done: true };
245
+ }
246
+ }
247
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
248
+ if (k2 === undefined)
249
+ k2 = k;
250
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
251
+ }) : (function (o, m, k, k2) {
252
+ if (k2 === undefined)
253
+ k2 = k;
254
+ o[k2] = m[k];
255
+ });
256
+ function __exportStar(m, o) {
257
+ for (var p in m)
258
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
259
+ __createBinding(o, m, p);
260
+ }
261
+ function __values(o) {
262
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
263
+ if (m)
264
+ return m.call(o);
265
+ if (o && typeof o.length === "number")
266
+ return {
267
+ next: function () {
268
+ if (o && i >= o.length)
269
+ o = void 0;
270
+ return { value: o && o[i++], done: !o };
271
+ }
272
+ };
273
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
274
+ }
275
+ function __read(o, n) {
276
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
277
+ if (!m)
278
+ return o;
279
+ var i = m.call(o), r, ar = [], e;
280
+ try {
281
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
282
+ ar.push(r.value);
283
+ }
284
+ catch (error) {
285
+ e = { error: error };
286
+ }
287
+ finally {
288
+ try {
289
+ if (r && !r.done && (m = i["return"]))
290
+ m.call(i);
291
+ }
292
+ finally {
293
+ if (e)
294
+ throw e.error;
295
+ }
296
+ }
297
+ return ar;
298
+ }
299
+ /** @deprecated */
300
+ function __spread() {
301
+ for (var ar = [], i = 0; i < arguments.length; i++)
302
+ ar = ar.concat(__read(arguments[i]));
303
+ return ar;
304
+ }
305
+ /** @deprecated */
306
+ function __spreadArrays() {
307
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
308
+ s += arguments[i].length;
309
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
310
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
311
+ r[k] = a[j];
312
+ return r;
313
+ }
314
+ function __spreadArray(to, from, pack) {
315
+ if (pack || arguments.length === 2)
316
+ for (var i = 0, l = from.length, ar; i < l; i++) {
317
+ if (ar || !(i in from)) {
318
+ if (!ar)
319
+ ar = Array.prototype.slice.call(from, 0, i);
320
+ ar[i] = from[i];
321
+ }
322
+ }
323
+ return to.concat(ar || Array.prototype.slice.call(from));
324
+ }
325
+ function __await(v) {
326
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
327
+ }
328
+ function __asyncGenerator(thisArg, _arguments, generator) {
329
+ if (!Symbol.asyncIterator)
330
+ throw new TypeError("Symbol.asyncIterator is not defined.");
331
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
332
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
333
+ function verb(n) { if (g[n])
334
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
335
+ function resume(n, v) { try {
336
+ step(g[n](v));
337
+ }
338
+ catch (e) {
339
+ settle(q[0][3], e);
340
+ } }
341
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
342
+ function fulfill(value) { resume("next", value); }
343
+ function reject(value) { resume("throw", value); }
344
+ function settle(f, v) { if (f(v), q.shift(), q.length)
345
+ resume(q[0][0], q[0][1]); }
346
+ }
347
+ function __asyncDelegator(o) {
348
+ var i, p;
349
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
350
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
351
+ }
352
+ function __asyncValues(o) {
353
+ if (!Symbol.asyncIterator)
354
+ throw new TypeError("Symbol.asyncIterator is not defined.");
355
+ var m = o[Symbol.asyncIterator], i;
356
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
357
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
358
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
359
+ }
360
+ function __makeTemplateObject(cooked, raw) {
361
+ if (Object.defineProperty) {
362
+ Object.defineProperty(cooked, "raw", { value: raw });
363
+ }
364
+ else {
365
+ cooked.raw = raw;
366
+ }
367
+ return cooked;
368
+ }
369
+ ;
370
+ var __setModuleDefault = Object.create ? (function (o, v) {
371
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
372
+ }) : function (o, v) {
373
+ o["default"] = v;
374
+ };
375
+ function __importStar(mod) {
376
+ if (mod && mod.__esModule)
377
+ return mod;
378
+ var result = {};
379
+ if (mod != null)
380
+ for (var k in mod)
381
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
382
+ __createBinding(result, mod, k);
383
+ __setModuleDefault(result, mod);
384
+ return result;
385
+ }
386
+ function __importDefault(mod) {
387
+ return (mod && mod.__esModule) ? mod : { default: mod };
388
+ }
389
+ function __classPrivateFieldGet(receiver, state, kind, f) {
390
+ if (kind === "a" && !f)
391
+ throw new TypeError("Private accessor was defined without a getter");
392
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
393
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
394
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
395
+ }
396
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
397
+ if (kind === "m")
398
+ throw new TypeError("Private method is not writable");
399
+ if (kind === "a" && !f)
400
+ throw new TypeError("Private accessor was defined without a setter");
401
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
402
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
403
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
413
404
  }
414
405
 
415
- var GenericFormComponent = /** @class */ (function () {
416
- function GenericFormComponent(_resolver, layoutService, _genericFormService) {
417
- this._resolver = _resolver;
418
- this.layoutService = layoutService;
419
- this._genericFormService = _genericFormService;
420
- this._optionalValues = [];
421
- this.isLocked = false;
422
- this.inline = false;
423
- this.showTopBar = false;
424
- this.addPadding = false;
425
- this.valueChange = new i0.EventEmitter();
426
- this.fieldClick = new i0.EventEmitter();
427
- this.formValidationChange = new i0.EventEmitter();
428
- this.layoutService.onResize$.pipe().subscribe(function (size) {
429
- //
430
- });
431
- this._formData = new i1.ObjectsDataRow();
432
- this._uiControl = new i1.UIControl();
433
- }
434
- Object.defineProperty(GenericFormComponent.prototype, "pepListContainer", {
435
- set: function (val) {
436
- this._pepFormContainer = val;
437
- },
438
- enumerable: false,
439
- configurable: true
440
- });
441
- Object.defineProperty(GenericFormComponent.prototype, "dataSource", {
442
- set: function (val) {
443
- this._data = val;
444
- },
445
- enumerable: false,
446
- configurable: true
447
- });
448
- Object.defineProperty(GenericFormComponent.prototype, "dataView", {
449
- set: function (val) {
450
- this.initForm(val);
451
- },
452
- enumerable: false,
453
- configurable: true
454
- });
455
- GenericFormComponent.prototype.ngOnInit = function () {
456
- //
457
- };
458
- GenericFormComponent.prototype.initForm = function (dataView) {
459
- var _this = this;
460
- setTimeout(function () {
461
- var _a, _b;
462
- if (_this._pepFormContainer) {
463
- if (_this._pepFormContainer.length) {
464
- _this._pepFormContainer.remove();
465
- _this._formData = new i1.ObjectsDataRow();
466
- _this._uiControl = new i1.UIControl();
467
- }
468
- var factory = _this._resolver.resolveComponentFactory(form.PepFormComponent);
469
- var componentRef = _this._pepFormContainer.createComponent(factory);
470
- _this._pepForm = componentRef.instance;
471
- _this._formData.IsEditable = !_this.isLocked;
472
- _this._formData.UID = dataView.UID || i1.PepGuid.newGuid();
473
- var uiControlData = dataViews.DataViewConverter.toUIControlData(dataView);
474
- if (uiControlData) {
475
- if (uiControlData === null || uiControlData === void 0 ? void 0 : uiControlData.ControlFields) {
476
- (_a = dataView.Fields) === null || _a === void 0 ? void 0 : _a.forEach(function (field) {
477
- var _a;
478
- if ((_a = field.OptionalValues) === null || _a === void 0 ? void 0 : _a.length) {
479
- _this._optionalValues.push({
480
- fieldId: field.FieldID,
481
- optionalValues: field.OptionalValues
482
- });
483
- }
484
- });
485
- _this._uiControl.ControlFields = uiControlData.ControlFields.map(function (field) { return _this._genericFormService.convertToUiControlField(field); });
486
- }
487
- _this._uiControl.Columns = uiControlData.Columns;
488
- if ((_b = _this._uiControl.ControlFields) === null || _b === void 0 ? void 0 : _b.length) {
489
- _this._formData.Fields = [];
490
- _this._uiControl.ControlFields.forEach(function (item) {
491
- var value = '';
492
- if (_this._genericFormService.hasProperty(_this._data, item.ApiName)) {
493
- value = _this._data[item.ApiName];
494
- }
495
- _this._formData.Fields.push(_this._genericFormService.createFormField(item, value, _this.getOptionalValues(item.ApiName)));
496
- });
497
- componentRef.instance.layoutType = 'form';
498
- componentRef.instance.layout = _this._uiControl;
499
- componentRef.instance.data = _this._formData;
500
- componentRef.instance.isInternal = false;
501
- componentRef.instance.lockFields = _this.isLocked;
502
- componentRef.instance.valueChange.subscribe(function ($event) {
503
- _this.onValueChanged($event);
504
- });
505
- componentRef.instance.fieldClick.subscribe(function ($event) {
506
- _this.onfieldClicked($event);
507
- });
508
- componentRef.instance.formValidationChange.subscribe(function ($event) {
509
- _this.onFormValidationChanged($event);
510
- });
511
- }
512
- }
513
- }
514
- }, 0);
515
- };
516
- /**
517
- * updates form field's value
518
- * @param field object containing the data of the required update
519
- */
520
- GenericFormComponent.prototype.updateFieldValue = function (fieldChanged) {
521
- this._data[fieldChanged.ApiName] = fieldChanged.Value;
522
- };
523
- GenericFormComponent.prototype.getOptionalValues = function (fieldId) {
524
- var item = this._optionalValues.find(function (item) { return item.fieldId === fieldId; });
525
- return (item === null || item === void 0 ? void 0 : item.optionalValues) || [];
526
- };
527
- GenericFormComponent.prototype.getData = function () {
528
- return {
529
- UID: this._formData.UID,
530
- Values: this._data
531
- };
532
- };
533
- /**
534
- * updates form field(s) params
535
- * @param fields
536
- */
537
- GenericFormComponent.prototype.updateFields = function (fields) {
538
- var _this = this;
539
- fields.forEach(function (field) {
540
- var e_1, _c;
541
- var index = _this._formData.Fields.findIndex(function (item) { return item.ApiName === field.FieldId; });
542
- if (index >= 0) {
543
- try {
544
- for (var _d = __values(Object.entries(field.Params)), _e = _d.next(); !_e.done; _e = _d.next()) {
545
- var _f = __read(_e.value, 2), key = _f[0], value = _f[1];
546
- if (_this._genericFormService.hasProperty(_this._formData.Fields[index], key)) {
547
- var item = _this._formData.Fields[index];
548
- item[key] = value;
549
- }
550
- }
551
- }
552
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
553
- finally {
554
- try {
555
- if (_e && !_e.done && (_c = _d.return)) _c.call(_d);
556
- }
557
- finally { if (e_1) throw e_1.error; }
558
- }
559
- }
560
- });
561
- this._pepForm.ReloadForm();
562
- this._pepForm.data = this._formData;
563
- };
564
- GenericFormComponent.prototype.onValueChanged = function (event) {
565
- var field = {
566
- UID: event.id,
567
- ApiName: event.key,
568
- Value: event.value
569
- };
570
- this.updateFieldValue(field);
571
- this.valueChange.emit(field);
572
- };
573
- GenericFormComponent.prototype.onfieldClicked = function (event) {
574
- var field = {
575
- UID: event.id,
576
- ApiName: event.key,
577
- Value: event.value
578
- };
579
- this.updateFieldValue(field);
580
- this.fieldClick.emit(field);
581
- };
582
- GenericFormComponent.prototype.onFormValidationChanged = function (event) {
583
- this.formValidationChange.emit(event);
584
- };
585
- return GenericFormComponent;
586
- }());
587
- GenericFormComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: GenericFormComponent, deps: [{ token: i0__namespace.ComponentFactoryResolver }, { token: i1__namespace.PepLayoutService }, { token: PepGenericFormService }], target: i0__namespace.ɵɵFactoryTarget.Component });
588
- GenericFormComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", 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: i0.ViewContainerRef }], ngImport: i0__namespace, 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"], components: [{ type: i3__namespace.PepPageLayoutComponent, selector: "pep-page-layout", inputs: ["addPadding", "showShadow"] }, { type: i4__namespace.PepTopBarComponent, selector: "pep-top-bar", inputs: ["inline", "title"], outputs: ["footerStateChange"] }], directives: [{ type: i5__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i5__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
589
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: GenericFormComponent, decorators: [{
590
- type: i0.Component,
591
- args: [{
592
- selector: 'pep-generic-form',
593
- templateUrl: './generic-form.component.html',
594
- styleUrls: ['./generic-form.component.scss'],
595
- providers: [PepGenericFormService]
596
- }]
597
- }], ctorParameters: function () { return [{ type: i0__namespace.ComponentFactoryResolver }, { type: i1__namespace.PepLayoutService }, { type: PepGenericFormService }]; }, propDecorators: { pepListContainer: [{
598
- type: i0.ViewChild,
599
- args: ['pepFormContainer', { read: i0.ViewContainerRef }]
600
- }], dataSource: [{
601
- type: i0.Input
602
- }], dataView: [{
603
- type: i0.Input
604
- }], isLocked: [{
605
- type: i0.Input
606
- }], inline: [{
607
- type: i0.Input
608
- }], showTopBar: [{
609
- type: i0.Input
610
- }], addPadding: [{
611
- type: i0.Input
612
- }], valueChange: [{
613
- type: i0.Output
614
- }], fieldClick: [{
615
- type: i0.Output
616
- }], formValidationChange: [{
617
- type: i0.Output
406
+ var GenericFormComponent = /** @class */ (function () {
407
+ function GenericFormComponent(_resolver, layoutService, _genericFormService) {
408
+ this._resolver = _resolver;
409
+ this.layoutService = layoutService;
410
+ this._genericFormService = _genericFormService;
411
+ this.isLocked = false;
412
+ this.inline = false;
413
+ this.showTopBar = false;
414
+ this.addPadding = false;
415
+ this.valueChange = new i0.EventEmitter();
416
+ this.fieldClick = new i0.EventEmitter();
417
+ this.formValidationChange = new i0.EventEmitter();
418
+ this.layoutService.onResize$.pipe().subscribe(function (size) {
419
+ //
420
+ });
421
+ this._formData = new i1.ObjectsDataRow();
422
+ this._uiControl = new i1.UIControl();
423
+ }
424
+ Object.defineProperty(GenericFormComponent.prototype, "pepListContainer", {
425
+ set: function (val) {
426
+ this._pepFormContainer = val;
427
+ },
428
+ enumerable: false,
429
+ configurable: true
430
+ });
431
+ Object.defineProperty(GenericFormComponent.prototype, "dataSource", {
432
+ set: function (val) {
433
+ this._data = val;
434
+ },
435
+ enumerable: false,
436
+ configurable: true
437
+ });
438
+ Object.defineProperty(GenericFormComponent.prototype, "dataView", {
439
+ set: function (val) {
440
+ this.initForm(val);
441
+ },
442
+ enumerable: false,
443
+ configurable: true
444
+ });
445
+ GenericFormComponent.prototype.ngOnInit = function () {
446
+ //
447
+ };
448
+ GenericFormComponent.prototype.initForm = function (dataView) {
449
+ var _this = this;
450
+ setTimeout(function () {
451
+ var _a;
452
+ if (_this._pepFormContainer) {
453
+ if (_this._pepFormContainer.length) {
454
+ _this._pepFormContainer.remove();
455
+ _this._formData = new i1.ObjectsDataRow();
456
+ _this._uiControl = new i1.UIControl();
457
+ }
458
+ var factory = _this._resolver.resolveComponentFactory(form.PepFormComponent);
459
+ var componentRef = _this._pepFormContainer.createComponent(factory);
460
+ _this._pepForm = componentRef.instance;
461
+ _this._formData.IsEditable = !_this.isLocked;
462
+ _this._formData.UID = dataView.UID || i1.PepGuid.newGuid();
463
+ var uiControlData = dataViews.DataViewConverter.toUIControlData(dataView);
464
+ if (uiControlData) {
465
+ if (uiControlData === null || uiControlData === void 0 ? void 0 : uiControlData.ControlFields) {
466
+ _this._uiControl.ControlFields = uiControlData.ControlFields.map(function (field) { return _this._genericFormService.convertToUiControlField(field); });
467
+ }
468
+ _this._uiControl.Columns = uiControlData.Columns;
469
+ if ((_a = _this._uiControl.ControlFields) === null || _a === void 0 ? void 0 : _a.length) {
470
+ _this._formData.Fields = [];
471
+ _this._uiControl.ControlFields.forEach(function (item) {
472
+ var _a;
473
+ var value = '';
474
+ if (_this._genericFormService.hasProperty(_this._data, item.ApiName)) {
475
+ value = _this._data[item.ApiName];
476
+ }
477
+ var dataViewField;
478
+ if (dataView.Fields) {
479
+ dataViewField = dataView.Fields.find(function (field) { return field.FieldID === item.ApiName; });
480
+ }
481
+ var controlFieldData = Object.assign(Object.assign(Object.assign({}, item), {
482
+ controlFieldValue: value
483
+ }), {
484
+ OptionalValues: ((_a = dataViewField === null || dataViewField === void 0 ? void 0 : dataViewField.OptionalValues) === null || _a === void 0 ? void 0 : _a.length) ? dataViewField.OptionalValues : [],
485
+ AdditionalProps: (dataViewField === null || dataViewField === void 0 ? void 0 : dataViewField.AdditionalProps) || null
486
+ });
487
+ _this._formData.Fields.push(_this._genericFormService.createFormField(controlFieldData));
488
+ });
489
+ componentRef.instance.layoutType = 'form';
490
+ componentRef.instance.layout = _this._uiControl;
491
+ componentRef.instance.data = _this._formData;
492
+ componentRef.instance.isInternal = false;
493
+ componentRef.instance.lockFields = _this.isLocked;
494
+ componentRef.instance.valueChange.subscribe(function ($event) {
495
+ _this.onValueChanged($event);
496
+ });
497
+ componentRef.instance.fieldClick.subscribe(function ($event) {
498
+ _this.onfieldClicked($event);
499
+ });
500
+ componentRef.instance.formValidationChange.subscribe(function ($event) {
501
+ _this.onFormValidationChanged($event);
502
+ });
503
+ }
504
+ }
505
+ }
506
+ }, 0);
507
+ };
508
+ /**
509
+ * updates form field's value
510
+ * @param field object containing the data of the required update
511
+ */
512
+ GenericFormComponent.prototype.updateFieldValue = function (fieldChanged) {
513
+ this._data[fieldChanged.ApiName] = fieldChanged.Value;
514
+ };
515
+ GenericFormComponent.prototype.getData = function () {
516
+ return {
517
+ UID: this._formData.UID,
518
+ Values: this._data
519
+ };
520
+ };
521
+ /**
522
+ * updates form field(s) params
523
+ * @param fields
524
+ */
525
+ GenericFormComponent.prototype.updateFields = function (fields) {
526
+ var _this = this;
527
+ fields.forEach(function (field) {
528
+ var e_1, _b;
529
+ var index = _this._formData.Fields.findIndex(function (item) { return item.ApiName === field.FieldId; });
530
+ if (index >= 0) {
531
+ try {
532
+ for (var _c = __values(Object.entries(field.Params)), _d = _c.next(); !_d.done; _d = _c.next()) {
533
+ var _e = __read(_d.value, 2), key = _e[0], value = _e[1];
534
+ if (_this._genericFormService.hasProperty(_this._formData.Fields[index], key)) {
535
+ var item = _this._formData.Fields[index];
536
+ item[key] = value;
537
+ }
538
+ }
539
+ }
540
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
541
+ finally {
542
+ try {
543
+ if (_d && !_d.done && (_b = _c.return)) _b.call(_c);
544
+ }
545
+ finally { if (e_1) throw e_1.error; }
546
+ }
547
+ }
548
+ });
549
+ this._pepForm.ReloadForm();
550
+ this._pepForm.data = this._formData;
551
+ };
552
+ GenericFormComponent.prototype.onValueChanged = function (event) {
553
+ var field = {
554
+ UID: event.id,
555
+ ApiName: event.key,
556
+ Value: event.value
557
+ };
558
+ this.updateFieldValue(field);
559
+ this.valueChange.emit(field);
560
+ };
561
+ GenericFormComponent.prototype.onfieldClicked = function (event) {
562
+ var field = {
563
+ UID: event.id,
564
+ ApiName: event.key,
565
+ Value: event.value
566
+ };
567
+ this.updateFieldValue(field);
568
+ this.fieldClick.emit(field);
569
+ };
570
+ GenericFormComponent.prototype.onFormValidationChanged = function (event) {
571
+ this.formValidationChange.emit(event);
572
+ };
573
+ return GenericFormComponent;
574
+ }());
575
+ GenericFormComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: GenericFormComponent, deps: [{ token: i0__namespace.ComponentFactoryResolver }, { token: i1__namespace.PepLayoutService }, { token: PepGenericFormService }], target: i0__namespace.ɵɵFactoryTarget.Component });
576
+ GenericFormComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", 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: i0.ViewContainerRef }], ngImport: i0__namespace, 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"], components: [{ type: i3__namespace.PepPageLayoutComponent, selector: "pep-page-layout", inputs: ["addPadding", "showShadow"] }, { type: i4__namespace.PepTopBarComponent, selector: "pep-top-bar", inputs: ["inline", "title"], outputs: ["footerStateChange"] }], directives: [{ type: i5__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i5__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
577
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: GenericFormComponent, decorators: [{
578
+ type: i0.Component,
579
+ args: [{
580
+ selector: 'pep-generic-form',
581
+ templateUrl: './generic-form.component.html',
582
+ styleUrls: ['./generic-form.component.scss'],
583
+ providers: [PepGenericFormService]
584
+ }]
585
+ }], ctorParameters: function () { return [{ type: i0__namespace.ComponentFactoryResolver }, { type: i1__namespace.PepLayoutService }, { type: PepGenericFormService }]; }, propDecorators: { pepListContainer: [{
586
+ type: i0.ViewChild,
587
+ args: ['pepFormContainer', { read: i0.ViewContainerRef }]
588
+ }], dataSource: [{
589
+ type: i0.Input
590
+ }], dataView: [{
591
+ type: i0.Input
592
+ }], isLocked: [{
593
+ type: i0.Input
594
+ }], inline: [{
595
+ type: i0.Input
596
+ }], showTopBar: [{
597
+ type: i0.Input
598
+ }], addPadding: [{
599
+ type: i0.Input
600
+ }], valueChange: [{
601
+ type: i0.Output
602
+ }], fieldClick: [{
603
+ type: i0.Output
604
+ }], formValidationChange: [{
605
+ type: i0.Output
618
606
  }] } });
619
607
 
620
- var PepGenericFormModule = /** @class */ (function () {
621
- function PepGenericFormModule() {
622
- }
623
- return PepGenericFormModule;
624
- }());
625
- PepGenericFormModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericFormModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
626
- PepGenericFormModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericFormModule, declarations: [GenericFormComponent], imports: [i5.CommonModule,
627
- // MatFormFieldModule,
628
- // ReactiveFormsModule,
629
- i1.PepNgxLibModule,
630
- // PepListModule,
631
- form.PepFormModule,
632
- menu.PepMenuModule,
633
- i3.PepPageLayoutModule,
634
- i4.PepTopBarModule], exports: [GenericFormComponent] });
635
- PepGenericFormModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericFormModule, providers: [
636
- PepGenericFormService
637
- ], imports: [[
638
- i5.CommonModule,
639
- // MatFormFieldModule,
640
- // ReactiveFormsModule,
641
- i1.PepNgxLibModule,
642
- // PepListModule,
643
- form.PepFormModule,
644
- menu.PepMenuModule,
645
- i3.PepPageLayoutModule,
646
- i4.PepTopBarModule,
647
- // PepTextboxModule,
648
- // PepDateModule
649
- // PepSearchModule,
650
- // PepBreadCrumbsModule
651
- ]] });
652
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericFormModule, decorators: [{
653
- type: i0.NgModule,
654
- args: [{
655
- declarations: [
656
- GenericFormComponent
657
- ],
658
- imports: [
659
- i5.CommonModule,
660
- // MatFormFieldModule,
661
- // ReactiveFormsModule,
662
- i1.PepNgxLibModule,
663
- // PepListModule,
664
- form.PepFormModule,
665
- menu.PepMenuModule,
666
- i3.PepPageLayoutModule,
667
- i4.PepTopBarModule,
668
- // PepTextboxModule,
669
- // PepDateModule
670
- // PepSearchModule,
671
- // PepBreadCrumbsModule
672
- ],
673
- exports: [
674
- GenericFormComponent
675
- ],
676
- providers: [
677
- PepGenericFormService
678
- ]
679
- }]
608
+ var PepGenericFormModule = /** @class */ (function () {
609
+ function PepGenericFormModule() {
610
+ }
611
+ return PepGenericFormModule;
612
+ }());
613
+ PepGenericFormModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericFormModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
614
+ PepGenericFormModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericFormModule, declarations: [GenericFormComponent], imports: [i5.CommonModule,
615
+ // MatFormFieldModule,
616
+ // ReactiveFormsModule,
617
+ i1.PepNgxLibModule,
618
+ // PepListModule,
619
+ form.PepFormModule,
620
+ menu.PepMenuModule,
621
+ i3.PepPageLayoutModule,
622
+ i4.PepTopBarModule], exports: [GenericFormComponent] });
623
+ PepGenericFormModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericFormModule, providers: [
624
+ PepGenericFormService
625
+ ], imports: [[
626
+ i5.CommonModule,
627
+ // MatFormFieldModule,
628
+ // ReactiveFormsModule,
629
+ i1.PepNgxLibModule,
630
+ // PepListModule,
631
+ form.PepFormModule,
632
+ menu.PepMenuModule,
633
+ i3.PepPageLayoutModule,
634
+ i4.PepTopBarModule,
635
+ // PepTextboxModule,
636
+ // PepDateModule
637
+ // PepSearchModule,
638
+ // PepBreadCrumbsModule
639
+ ]] });
640
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericFormModule, decorators: [{
641
+ type: i0.NgModule,
642
+ args: [{
643
+ declarations: [
644
+ GenericFormComponent
645
+ ],
646
+ imports: [
647
+ i5.CommonModule,
648
+ // MatFormFieldModule,
649
+ // ReactiveFormsModule,
650
+ i1.PepNgxLibModule,
651
+ // PepListModule,
652
+ form.PepFormModule,
653
+ menu.PepMenuModule,
654
+ i3.PepPageLayoutModule,
655
+ i4.PepTopBarModule,
656
+ // PepTextboxModule,
657
+ // PepDateModule
658
+ // PepSearchModule,
659
+ // PepBreadCrumbsModule
660
+ ],
661
+ exports: [
662
+ GenericFormComponent
663
+ ],
664
+ providers: [
665
+ PepGenericFormService
666
+ ]
667
+ }]
680
668
  }] });
681
669
 
682
- /*
683
- * Public API Surface of ngx-composite-lib/generic-form
670
+ /*
671
+ * Public API Surface of ngx-composite-lib/generic-form
684
672
  */
685
673
 
686
- /**
687
- * Generated bundle index. Do not edit.
674
+ /**
675
+ * Generated bundle index. Do not edit.
688
676
  */
689
677
 
690
678
  exports.GenericFormComponent = GenericFormComponent;