@pepperi-addons/ngx-composite-lib 0.0.16-beta.35 → 0.0.16-beta.36

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 (127) hide show
  1. package/bundles/pepperi-addons-ngx-composite-lib-color-settings.umd.js +126 -126
  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 +647 -647
  5. package/bundles/pepperi-addons-ngx-composite-lib-generic-list.umd.js +1005 -998
  6. package/bundles/pepperi-addons-ngx-composite-lib-generic-list.umd.js.map +1 -1
  7. package/bundles/pepperi-addons-ngx-composite-lib-group-buttons-settings.umd.js +179 -179
  8. package/bundles/pepperi-addons-ngx-composite-lib-shadow-settings.umd.js +117 -117
  9. package/bundles/pepperi-addons-ngx-composite-lib.umd.js +598 -598
  10. package/color-settings/color-settings.component.d.ts +23 -23
  11. package/color-settings/color-settings.model.d.ts +5 -5
  12. package/color-settings/color-settings.module.d.ts +12 -12
  13. package/color-settings/pepperi-addons-ngx-composite-lib-color-settings.d.ts +5 -5
  14. package/color-settings/public-api.d.ts +3 -3
  15. package/core/common/directives/index.d.ts +1 -1
  16. package/core/common/directives/public-api.d.ts +1 -1
  17. package/core/common/directives/reset-configuration-field.directive.d.ts +39 -39
  18. package/core/common/index.d.ts +1 -1
  19. package/core/common/public-api.d.ts +2 -2
  20. package/core/common/services/dimx.service.d.ts +32 -32
  21. package/core/common/services/index.d.ts +1 -1
  22. package/core/common/services/public-api.d.ts +2 -2
  23. package/core/common/services/utilities.service.d.ts +6 -6
  24. package/core/index.d.ts +1 -1
  25. package/core/public-api.d.ts +1 -1
  26. package/data-view-builder/data-view-builder.component.d.ts +35 -35
  27. package/data-view-builder/data-view-builder.model.d.ts +1 -1
  28. package/data-view-builder/data-view-builder.module.d.ts +23 -23
  29. package/data-view-builder/data-view-builder.service.d.ts +14 -14
  30. package/data-view-builder/menu-data-view/menu-data-view.component.d.ts +36 -36
  31. package/data-view-builder/pepperi-addons-ngx-composite-lib-data-view-builder.d.ts +5 -5
  32. package/data-view-builder/public-api.d.ts +3 -3
  33. package/esm2015/color-settings/color-settings.component.js +84 -84
  34. package/esm2015/color-settings/color-settings.model.js +8 -8
  35. package/esm2015/color-settings/color-settings.module.js +39 -39
  36. package/esm2015/color-settings/pepperi-addons-ngx-composite-lib-color-settings.js +4 -4
  37. package/esm2015/color-settings/public-api.js +6 -6
  38. package/esm2015/core/common/directives/index.js +4 -4
  39. package/esm2015/core/common/directives/public-api.js +4 -4
  40. package/esm2015/core/common/directives/reset-configuration-field.directive.js +139 -139
  41. package/esm2015/core/common/index.js +4 -4
  42. package/esm2015/core/common/public-api.js +5 -5
  43. package/esm2015/core/common/services/dimx.service.js +49 -49
  44. package/esm2015/core/common/services/index.js +4 -4
  45. package/esm2015/core/common/services/public-api.js +5 -5
  46. package/esm2015/core/common/services/utilities.service.js +18 -18
  47. package/esm2015/core/index.js +4 -4
  48. package/esm2015/core/public-api.js +4 -4
  49. package/esm2015/data-view-builder/data-view-builder.component.js +121 -121
  50. package/esm2015/data-view-builder/data-view-builder.model.js +1 -1
  51. package/esm2015/data-view-builder/data-view-builder.module.js +81 -81
  52. package/esm2015/data-view-builder/data-view-builder.service.js +38 -38
  53. package/esm2015/data-view-builder/menu-data-view/menu-data-view.component.js +121 -121
  54. package/esm2015/data-view-builder/pepperi-addons-ngx-composite-lib-data-view-builder.js +4 -4
  55. package/esm2015/data-view-builder/public-api.js +6 -6
  56. package/esm2015/file-status-panel/file-status-panel.component.js +38 -38
  57. package/esm2015/file-status-panel/file-status-panel.model.js +8 -8
  58. package/esm2015/file-status-panel/file-status-panel.module.js +55 -55
  59. package/esm2015/file-status-panel/pepperi-addons-ngx-composite-lib-file-status-panel.js +4 -4
  60. package/esm2015/file-status-panel/public-api.js +6 -6
  61. package/esm2015/generic-form/generic-form.component.js +189 -189
  62. package/esm2015/generic-form/generic-form.model.js +1 -1
  63. package/esm2015/generic-form/generic-form.module.js +73 -73
  64. package/esm2015/generic-form/generic-form.service.js +67 -67
  65. package/esm2015/generic-form/index.js +4 -4
  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 +445 -438
  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 +116 -116
  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 +301 -301
  91. package/fesm2015/pepperi-addons-ngx-composite-lib-generic-list.js +602 -595
  92. package/fesm2015/pepperi-addons-ngx-composite-lib-generic-list.js.map +1 -1
  93. package/fesm2015/pepperi-addons-ngx-composite-lib-group-buttons-settings.js +170 -170
  94. package/fesm2015/pepperi-addons-ngx-composite-lib-shadow-settings.js +107 -107
  95. package/fesm2015/pepperi-addons-ngx-composite-lib.js +255 -255
  96. package/file-status-panel/file-status-panel.component.d.ts +14 -14
  97. package/file-status-panel/file-status-panel.model.d.ts +7 -7
  98. package/file-status-panel/file-status-panel.module.d.ts +17 -17
  99. package/file-status-panel/pepperi-addons-ngx-composite-lib-file-status-panel.d.ts +5 -5
  100. package/file-status-panel/public-api.d.ts +3 -3
  101. package/generic-form/generic-form.component.d.ts +46 -46
  102. package/generic-form/generic-form.model.d.ts +34 -34
  103. package/generic-form/generic-form.module.d.ts +13 -13
  104. package/generic-form/generic-form.service.d.ts +16 -16
  105. package/generic-form/index.d.ts +1 -1
  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 -100
  109. package/generic-list/generic-list.model.d.ts +51 -51
  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 +1 -1
  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
@@ -27,609 +27,616 @@ import { PepBreadCrumbsModule } from '@pepperi-addons/ngx-lib/bread-crumbs';
27
27
  import { PepFormModule } from '@pepperi-addons/ngx-lib/form';
28
28
  import { PepMenuModule } from '@pepperi-addons/ngx-lib/menu';
29
29
 
30
- class PepGenericListService {
31
- constructor(_translate, _queryBuilderService) {
32
- this._translate = _translate;
33
- this._queryBuilderService = _queryBuilderService;
34
- //
35
- }
36
- /**
37
- * checks if the object contains property
38
- * @param obj object
39
- * @param prop property name
40
- * @returns true if contains, false otherwise
41
- */
42
- hasProperty(obj, prop) {
43
- return Object.prototype.hasOwnProperty.call(obj, prop);
44
- }
45
- getListViewType(dataViewType) {
46
- switch (dataViewType) {
47
- case 'Grid':
48
- return 'table';
49
- case 'Card':
50
- return 'cards';
51
- case 'Line':
52
- return 'lines';
53
- default:
54
- return 'table';
55
- }
56
- }
57
- convertToPepRowData(item, dataView, uuidMapping) {
58
- var _a;
59
- const row = new PepRowData();
60
- let itemFields;
61
- if (this.hasProperty(item, 'fields') && typeof item.fields === 'object') {
62
- itemFields = item.fields;
63
- if (item.isEditable === false) {
64
- row.IsEditable = false;
65
- }
66
- if (item.isSelectableForActions === false) {
67
- row.IsSelectableForActions = false;
68
- }
69
- }
70
- else {
71
- itemFields = item;
72
- }
73
- row.UUID = itemFields[uuidMapping] || undefined;
74
- row.Fields = [];
75
- if ((dataView === null || dataView === void 0 ? void 0 : dataView.Fields) && dataView.Columns) {
76
- for (let index = 0; index < dataView.Fields.length; index++) {
77
- const field = dataView.Fields[index];
78
- row.Fields.push({
79
- ApiName: field.FieldID,
80
- Title: field.Title ? this._translate.instant(field.Title) : '',
81
- XAlignment: 1,
82
- FormattedValue: (itemFields[field.FieldID] || '').toString(),
83
- Value: (itemFields[field.FieldID] || '').toString(),
84
- ColumnWidth: ((_a = dataView.Columns[index]) === null || _a === void 0 ? void 0 : _a.Width) || undefined,
85
- AdditionalValue: '',
86
- OptionalValues: [],
87
- FieldType: DataViewFieldTypes[field.Type],
88
- ReadOnly: field.ReadOnly,
89
- Enabled: !field.ReadOnly
90
- });
91
- }
92
- }
93
- return row;
94
- }
95
- convertToUiControlField(field) {
96
- return {
97
- ApiName: field.ApiName,
98
- FieldType: field.FieldType,
99
- Title: field.Title,
100
- ReadOnly: field.ReadOnlyField,
101
- ColumnWidth: field.ColumnWidth,
102
- ColumnWidthType: 1,
103
- Layout: {
104
- X: field.Layout.X,
105
- Y: field.Layout.Y,
106
- Width: field.Layout.Width,
107
- Height: field.Layout.Field_Height,
108
- XAlignment: field.Layout.xAlignment,
109
- YAlignment: field.Layout.yAlignment,
110
- }
111
- };
112
- }
113
- convertToSmartFilter(smartFilter) {
114
- var _a;
115
- let convertedFields = [];
116
- let filterData = [];
117
- if (smartFilter === null || smartFilter === void 0 ? void 0 : smartFilter.dataView) {
118
- convertedFields = this.createSmartFilterFields(smartFilter.dataView);
119
- if ((_a = smartFilter.data) === null || _a === void 0 ? void 0 : _a.length) {
120
- filterData = smartFilter.data;
121
- }
122
- }
123
- return {
124
- fields: convertedFields,
125
- data: filterData
126
- };
127
- }
128
- createSmartFilterFields(dataView) {
129
- let smartFields = [];
130
- const fields = dataView.Fields.map((field) => {
131
- return {
132
- FieldID: field.FieldID,
133
- FieldType: field.Type,
134
- Title: field.Title,
135
- OptionalValues: field.OptionalValues
136
- };
137
- });
138
- const smartFilterfields = this._queryBuilderService.convertToSmartFilterFields(fields);
139
- if (smartFilterfields === null || smartFilterfields === void 0 ? void 0 : smartFilterfields.length) {
140
- smartFields = smartFilterfields.map((field => field.smart));
141
- }
142
- return smartFields;
143
- }
144
- }
145
- PepGenericListService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepGenericListService, deps: [{ token: i1.TranslateService }, { token: i2.PepQueryBuilderService }], target: i0.ɵɵFactoryTarget.Injectable });
146
- PepGenericListService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepGenericListService });
147
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepGenericListService, decorators: [{
148
- type: Injectable
30
+ class PepGenericListService {
31
+ constructor(_translate, _queryBuilderService) {
32
+ this._translate = _translate;
33
+ this._queryBuilderService = _queryBuilderService;
34
+ //
35
+ }
36
+ /**
37
+ * checks if the object contains property
38
+ * @param obj object
39
+ * @param prop property name
40
+ * @returns true if contains, false otherwise
41
+ */
42
+ hasProperty(obj, prop) {
43
+ return Object.prototype.hasOwnProperty.call(obj, prop);
44
+ }
45
+ getListViewType(dataViewType) {
46
+ switch (dataViewType) {
47
+ case 'Grid':
48
+ return 'table';
49
+ case 'Card':
50
+ return 'cards';
51
+ case 'Line':
52
+ return 'lines';
53
+ default:
54
+ return 'table';
55
+ }
56
+ }
57
+ convertToPepRowData(item, dataView, uuidMapping) {
58
+ var _a;
59
+ const row = new PepRowData();
60
+ let itemFields;
61
+ if (this.hasProperty(item, 'fields') && typeof item.fields === 'object') {
62
+ itemFields = item.fields;
63
+ if (item.isEditable === false) {
64
+ row.IsEditable = false;
65
+ }
66
+ if (item.isSelectableForActions === false) {
67
+ row.IsSelectableForActions = false;
68
+ }
69
+ }
70
+ else {
71
+ itemFields = item;
72
+ }
73
+ row.UUID = itemFields[uuidMapping] || undefined;
74
+ row.Fields = [];
75
+ if ((dataView === null || dataView === void 0 ? void 0 : dataView.Fields) && dataView.Columns) {
76
+ for (let index = 0; index < dataView.Fields.length; index++) {
77
+ const field = dataView.Fields[index];
78
+ row.Fields.push({
79
+ ApiName: field.FieldID,
80
+ Title: field.Title ? this._translate.instant(field.Title) : '',
81
+ XAlignment: 1,
82
+ FormattedValue: (itemFields[field.FieldID] || '').toString(),
83
+ Value: (itemFields[field.FieldID] || '').toString(),
84
+ ColumnWidth: ((_a = dataView.Columns[index]) === null || _a === void 0 ? void 0 : _a.Width) || undefined,
85
+ AdditionalValue: '',
86
+ OptionalValues: [],
87
+ FieldType: DataViewFieldTypes[field.Type],
88
+ ReadOnly: field.ReadOnly,
89
+ Enabled: !field.ReadOnly
90
+ });
91
+ }
92
+ }
93
+ return row;
94
+ }
95
+ convertToUiControlField(field) {
96
+ return {
97
+ ApiName: field.ApiName,
98
+ FieldType: field.FieldType,
99
+ Title: field.Title,
100
+ ReadOnly: field.ReadOnlyField,
101
+ ColumnWidth: field.ColumnWidth,
102
+ ColumnWidthType: 1,
103
+ Layout: {
104
+ X: field.Layout.X,
105
+ Y: field.Layout.Y,
106
+ Width: field.Layout.Width,
107
+ Height: field.Layout.Field_Height,
108
+ XAlignment: field.Layout.xAlignment,
109
+ YAlignment: field.Layout.yAlignment,
110
+ }
111
+ };
112
+ }
113
+ convertToSmartFilter(smartFilter) {
114
+ var _a;
115
+ let convertedFields = [];
116
+ let filterData = [];
117
+ if (smartFilter === null || smartFilter === void 0 ? void 0 : smartFilter.dataView) {
118
+ convertedFields = this.createSmartFilterFields(smartFilter.dataView);
119
+ if ((_a = smartFilter.data) === null || _a === void 0 ? void 0 : _a.length) {
120
+ filterData = smartFilter.data;
121
+ }
122
+ }
123
+ return {
124
+ fields: convertedFields,
125
+ data: filterData
126
+ };
127
+ }
128
+ createSmartFilterFields(dataView) {
129
+ let smartFields = [];
130
+ const fields = dataView.Fields.map((field) => {
131
+ return {
132
+ FieldID: field.FieldID,
133
+ FieldType: field.Type,
134
+ Title: field.Title,
135
+ OptionalValues: field.OptionalValues
136
+ };
137
+ });
138
+ const smartFilterfields = this._queryBuilderService.convertToSmartFilterFields(fields);
139
+ if (smartFilterfields === null || smartFilterfields === void 0 ? void 0 : smartFilterfields.length) {
140
+ smartFields = smartFilterfields.map((field => field.smart));
141
+ }
142
+ return smartFields;
143
+ }
144
+ }
145
+ PepGenericListService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepGenericListService, deps: [{ token: i1.TranslateService }, { token: i2.PepQueryBuilderService }], target: i0.ɵɵFactoryTarget.Injectable });
146
+ PepGenericListService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepGenericListService });
147
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepGenericListService, decorators: [{
148
+ type: Injectable
149
149
  }], ctorParameters: function () { return [{ type: i1.TranslateService }, { type: i2.PepQueryBuilderService }]; } });
150
150
 
151
- class GenericListComponent {
152
- constructor(_resolver, _dataConvertorService, _layoutService, _loaderService,
153
- // private _translate: TranslateService,
154
- _genericListService) {
155
- this._resolver = _resolver;
156
- this._dataConvertorService = _dataConvertorService;
157
- this._layoutService = _layoutService;
158
- this._loaderService = _loaderService;
159
- this._genericListService = _genericListService;
160
- this._dataSource = {
161
- init: (params) => __awaiter(this, void 0, void 0, function* () {
162
- return {
163
- dataView: {
164
- Type: 'Grid'
165
- },
166
- totalCount: -1,
167
- items: []
168
- };
169
- })
170
- };
171
- this.actions = {
172
- get: (data) => __awaiter(this, void 0, void 0, function* () {
173
- return [];
174
- })
175
- };
176
- this.uuidMapping = 'key';
177
- this.disabled = false;
178
- this.addPadding = false;
179
- this.title = '';
180
- this.description = '';
181
- this.inline = false;
182
- this.showSearch = false;
183
- this.noDataFoundMsg = '';
184
- this.selectionType = 'multi';
185
- this.supportSorting = false;
186
- this.pager = {
187
- type: 'scroll'
188
- };
189
- this.tableViewType = 'regular';
190
- this.zebraStripes = false;
191
- this.showTopBar = false;
192
- this.breadCrumbsItems = new Array();
193
- this.fieldClick = new EventEmitter();
194
- this.valueChange = new EventEmitter();
195
- this.breadCrumbItemClick = new EventEmitter();
196
- this._resize$ = new Subscription();
197
- this._loader$ = new Subscription();
198
- this._dataView = {
199
- Type: 'Grid'
200
- };
201
- this.totalRowCount = -1;
202
- this.searchString = '';
203
- this.showSmartFilter = false;
204
- this.internalSmartFilter = {
205
- fields: [],
206
- data: []
207
- };
208
- this._appliedFilters = [];
209
- this._sorting = undefined;
210
- this.menuHandlers = {};
211
- this.menuActions = [];
212
- this._resize$ = this._layoutService.onResize$.pipe().subscribe((size) => {
213
- //
214
- });
215
- this._loader$ = this._loaderService.onChanged$.subscribe((status) => {
216
- //
217
- });
218
- }
219
- set pepListContainer(val) {
220
- this._pepListContainer = val;
221
- }
222
- set dataSource(val) {
223
- this._dataSource = val;
224
- this._sorting = undefined;
225
- this.initSearch();
226
- this.initTable();
227
- }
228
- set smartFilter(val) {
229
- this.internalSmartFilter = this._genericListService.convertToSmartFilter(val);
230
- this.showSmartFilter = this.internalSmartFilter.fields.length > 0;
231
- }
232
- set pepList(val) {
233
- this._pepList = val;
234
- }
235
- get pepList() {
236
- return this._pepList;
237
- }
238
- ngOnInit() {
239
- //
240
- }
241
- initTable() {
242
- return __awaiter(this, void 0, void 0, function* () {
243
- setTimeout(() => __awaiter(this, void 0, void 0, function* () {
244
- var _a, _b, _c;
245
- if (this._dataSource &&
246
- this._pepListContainer) {
247
- if (this._pepListContainer.length > 0) {
248
- this._pepListContainer.remove();
249
- }
250
- const factory = this._resolver.resolveComponentFactory(PepListComponent);
251
- const componentRef = this._pepListContainer.createComponent(factory);
252
- this.pepList = componentRef.instance;
253
- //merge selector inputs with callback inputs
254
- this.loadTableInputs();
255
- const fromIndex = 0;
256
- let toIndex = 0;
257
- if (this._listInputs.pager.type === 'pages') {
258
- toIndex = fromIndex + (this._listInputs.pager.size || DEFAULT_PAGE_SIZE) - 1;
259
- }
260
- else {
261
- toIndex = 100; //TO DO - get value from - this.customList.getTopItems()
262
- }
263
- const data = yield this.loadData(fromIndex, toIndex);
264
- this.totalRowCount = (data === null || data === void 0 ? void 0 : data.totalCount) || 0;
265
- componentRef.instance.viewType = this._genericListService.getListViewType(this._dataView.Type);
266
- componentRef.instance.tableViewType = this._listInputs.tableViewType;
267
- componentRef.instance.zebraStripes = this._listInputs.zebraStripes;
268
- if (this.disabled) {
269
- componentRef.instance.disabled = true;
270
- componentRef.instance.lockItemInnerEvents = true;
271
- }
272
- componentRef.instance.supportSorting = this._listInputs.supportSorting;
273
- componentRef.instance.selectionTypeForActions = this._listInputs.selectionType;
274
- componentRef.instance.showCardSelection = this._listInputs.selectionType !== 'none';
275
- componentRef.instance.pagerType = this._listInputs.pager.type;
276
- if (this._listInputs.pager.type === 'pages') {
277
- componentRef.instance.pageSize = ((_a = this._listInputs.pager) === null || _a === void 0 ? void 0 : _a.size) || DEFAULT_PAGE_SIZE;
278
- componentRef.instance.pageIndex = ((_b = this._listInputs.pager) === null || _b === void 0 ? void 0 : _b.index) || 0;
279
- }
280
- componentRef.instance.noDataFoundMsg = this._listInputs.noDataFoundMsg;
281
- componentRef.instance.fieldClick.subscribe(($event) => {
282
- this.onCustomizeFieldClick($event);
283
- });
284
- componentRef.instance.selectedItemsChange.subscribe(($event) => {
285
- this.onSelectedItemsChanged($event);
286
- });
287
- componentRef.instance.loadItems.subscribe(($event) => {
288
- this.onLoadItems($event);
289
- });
290
- componentRef.instance.loadPage.subscribe(($event) => {
291
- this.onLoadPage($event);
292
- });
293
- componentRef.instance.valueChange.subscribe(($event) => {
294
- this.onValueChanged($event);
295
- });
296
- componentRef.instance.sortingChange.subscribe(($event) => {
297
- this.onSortingChange($event);
298
- });
299
- let convertedList = [];
300
- if (data) {
301
- if ((_c = data.items) === null || _c === void 0 ? void 0 : _c.length) {
302
- convertedList = this._dataConvertorService.convertListData(data.items);
303
- }
304
- const uiControl = this.getUiControl(DataViewConverter.toUIControlData(data.dataView));
305
- componentRef.instance.initListData(uiControl, data.totalCount, convertedList);
306
- }
307
- }
308
- }), 0);
309
- });
310
- }
311
- /**
312
- * loads inputs in case they are provided and merge with selector inputs
313
- * @returns merged pep-list inputs
314
- */
315
- loadTableInputs() {
316
- this._listInputs = {
317
- supportSorting: this.supportSorting,
318
- selectionType: this.selectionType,
319
- pager: this.pager,
320
- noDataFoundMsg: this.noDataFoundMsg,
321
- tableViewType: this.tableViewType,
322
- zebraStripes: this.zebraStripes
323
- };
324
- if (this._dataSource.inputs) {
325
- Object.entries(this._dataSource.inputs).forEach((item) => {
326
- if (this._genericListService.hasProperty(this._listInputs, item[0])) {
327
- this._listInputs[item[0]] = item[1];
328
- }
329
- });
330
- }
331
- }
332
- getUiControl(data) {
333
- const uiControl = new UIControl();
334
- uiControl.ControlFields = [];
335
- if (data === null || data === void 0 ? void 0 : data.ControlFields) {
336
- uiControl.ControlFields = data.ControlFields.map((field) => this._genericListService.convertToUiControlField(field));
337
- }
338
- return uiControl;
339
- }
340
- loadMenuItems() {
341
- if (this._listInputs.selectionType !== 'none') {
342
- this.getMenuActions().then(x => this.menuActions = x);
343
- }
344
- }
345
- getMenuActions() {
346
- return __awaiter(this, void 0, void 0, function* () {
347
- const res = [];
348
- const result = this.getMenuObjects();
349
- if (result.success) {
350
- const actions = yield this.actions.get(result.data);
351
- this.menuHandlers = {};
352
- actions === null || actions === void 0 ? void 0 : actions.forEach(item => {
353
- const uuid = PepGuid.newGuid();
354
- this.menuHandlers[uuid] = item.handler;
355
- res.push({
356
- key: uuid,
357
- text: item.title
358
- });
359
- });
360
- }
361
- return res;
362
- });
363
- }
364
- getMenuObjects() {
365
- const menuObjects = {
366
- success: false,
367
- data: new PepSelectionData()
368
- };
369
- if (this.pepList) {
370
- menuObjects.success = true;
371
- menuObjects.data = this.pepList.getSelectedItemsData();
372
- }
373
- return menuObjects;
374
- }
375
- initSearch() {
376
- var _a;
377
- this.searchString = '';
378
- (_a = this.search) === null || _a === void 0 ? void 0 : _a.initSearch();
379
- }
380
- loadData(fromIndex, toIndex) {
381
- var _a;
382
- return __awaiter(this, void 0, void 0, function* () {
383
- setTimeout(() => {
384
- this._loaderService.show();
385
- }, 50);
386
- const data = yield this._dataSource.init({
387
- searchString: this.searchString || undefined,
388
- filters: this._appliedFilters.length ? this._appliedFilters : undefined,
389
- sorting: this._sorting || undefined,
390
- fromIndex: fromIndex,
391
- toIndex: toIndex
392
- });
393
- this._loaderService.hide();
394
- if (data) {
395
- this._dataView = data.dataView;
396
- if (((_a = data.items) === null || _a === void 0 ? void 0 : _a.length) > 0 && !data.isPepRowData) {
397
- data.items = data.items.map(item => this._genericListService.convertToPepRowData(item, data.dataView, this.uuidMapping));
398
- }
399
- }
400
- return data;
401
- });
402
- }
403
- updateDataList(fromIndex, toIndex, pageIndex = undefined) {
404
- return __awaiter(this, void 0, void 0, function* () {
405
- if (this._dataSource.update) {
406
- setTimeout(() => {
407
- this._loaderService.show();
408
- }, 50);
409
- const dataList = yield this._dataSource.update({
410
- searchString: this.searchString || undefined,
411
- filters: this._appliedFilters.length ? this._appliedFilters : undefined,
412
- sorting: this._sorting || undefined,
413
- fromIndex: fromIndex,
414
- toIndex: toIndex,
415
- pageIndex: pageIndex
416
- });
417
- this._loaderService.hide();
418
- if ((dataList === null || dataList === void 0 ? void 0 : dataList.length) > 0) {
419
- return dataList.map(item => this._genericListService.convertToPepRowData(item, this._dataView, this.uuidMapping));
420
- }
421
- else {
422
- return [];
423
- }
424
- }
425
- else {
426
- return [];
427
- }
428
- });
429
- }
430
- /**
431
- * loads virtual scroll items from api
432
- */
433
- onLoadItems(event) {
434
- return __awaiter(this, void 0, void 0, function* () {
435
- const list = yield this.updateDataList(event.fromIndex, event.toIndex);
436
- const convertedList = this._dataConvertorService.convertListData(list);
437
- this.pepList.updateItems(convertedList, event);
438
- });
439
- }
440
- /**
441
- * loads paging bulk from api
442
- */
443
- onLoadPage(event) {
444
- return __awaiter(this, void 0, void 0, function* () {
445
- const fromIndex = event.pageIndex * event.pageSize;
446
- const toIndex = Math.min(fromIndex + event.pageSize - 1, this.totalRowCount - 1);
447
- const list = yield this.updateDataList(fromIndex, toIndex, event.pageIndex);
448
- const convertedList = this._dataConvertorService.convertListData(list);
449
- this.pepList.updatePage(convertedList, event);
450
- });
451
- }
452
- getItemById(id) {
453
- if (this.pepList) {
454
- return this._pepList.getItemDataByID(id);
455
- }
456
- else {
457
- return null;
458
- }
459
- }
460
- getSelectedItems() {
461
- if (this.pepList) {
462
- return this._pepList.getSelectedItemsData();
463
- }
464
- else {
465
- return null;
466
- }
467
- }
468
- onActionItemClicked(action) {
469
- const result = this.getMenuObjects();
470
- if (result.success) {
471
- this.menuHandlers[action.source.key](result.data);
472
- }
473
- }
474
- onSearchChanged(event) {
475
- this.searchString = event.value;
476
- this.initTable();
477
- }
478
- onSelectedItemsChanged(selectedRowsCount) {
479
- //loading menu items after pep-list selected items are updated
480
- setTimeout(() => {
481
- this.loadMenuItems();
482
- }, 0);
483
- }
484
- onCustomizeFieldClick(fieldClickEvent) {
485
- this.fieldClick.emit(fieldClickEvent);
486
- }
487
- onBreadCrumbItemClick(event) {
488
- this.breadCrumbItemClick.emit(event);
489
- }
490
- onValueChanged(event) {
491
- this.valueChange.emit(event);
492
- }
493
- onSortingChange(event) {
494
- this._sorting = event;
495
- this.initTable();
496
- }
497
- onFiltersChange(filters) {
498
- this._appliedFilters = filters;
499
- this.initTable();
500
- }
501
- ngOnDestroy() {
502
- if (this._resize$) {
503
- this._resize$.unsubscribe();
504
- }
505
- if (this._loader$) {
506
- this._loader$.unsubscribe();
507
- }
508
- }
509
- }
510
- GenericListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: GenericListComponent, deps: [{ token: i0.ComponentFactoryResolver }, { token: i1$1.PepDataConvertorService }, { token: i1$1.PepLayoutService }, { token: i1$1.PepLoaderService }, { token: PepGenericListService }], target: i0.ɵɵFactoryTarget.Component });
511
- GenericListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: GenericListComponent, selector: "pep-generic-list", inputs: { dataSource: "dataSource", actions: "actions", uuidMapping: "uuidMapping", disabled: "disabled", addPadding: "addPadding", title: "title", description: "description", inline: "inline", showSearch: "showSearch", noDataFoundMsg: "noDataFoundMsg", selectionType: "selectionType", supportSorting: "supportSorting", pager: "pager", tableViewType: "tableViewType", zebraStripes: "zebraStripes", smartFilter: "smartFilter", showTopBar: "showTopBar", breadCrumbsItems: "breadCrumbsItems" }, outputs: { fieldClick: "fieldClick", valueChange: "valueChange", breadCrumbItemClick: "breadCrumbItemClick" }, providers: [PepGenericListService], viewQueries: [{ propertyName: "search", first: true, predicate: ["search"], descendants: true }, { propertyName: "pepListContainer", first: true, predicate: ["pepListContainer"], descendants: true, read: ViewContainerRef }], ngImport: i0, template: "<div *ngIf=\"inline\" class=\"inline-container\" [ngClass]=\"{ 'add-padding': addPadding }\">\n <div class=\"header-area\" >\n <div *ngIf=\"showTopBar\" class=\"inline-top-bar-container\">\n <ng-container *ngTemplateOutlet=\"topBarTemplate\"></ng-container>\n </div>\n <ng-container *ngIf=\"description\">\n <div class=\"list-description\">{{description}}</div>\n </ng-container>\n <ng-container *ngIf=\"breadCrumbsItems.length\">\n <ng-container *ngTemplateOutlet=\"breadCrumbsTemplate\"></ng-container>\n </ng-container>\n </div>\n <ng-container *ngIf=\"showSmartFilter\">\n <ng-container *ngTemplateOutlet=\"smartFilterTemplate\"></ng-container>\n </ng-container>\n <ng-container *ngTemplateOutlet=\"listTemplate\"></ng-container>\n</div>\n<pep-page-layout *ngIf=\"!inline\" class=\"none-inline\" [addPadding]=\"addPadding\" [showShadow]=\"showSmartFilter\">\n <ng-container *ngIf=\"showSmartFilter\" pep-side-area>\n <ng-container *ngTemplateOutlet=\"smartFilterTemplate\"></ng-container>\n </ng-container>\n <ng-container *ngIf=\"showTopBar\" pep-top-area>\n <ng-container *ngTemplateOutlet=\"topBarTemplate\"></ng-container>\n </ng-container>\n <ng-container *ngIf=\"description\" pep-top-area>\n <div class=\"list-description\">{{description}}</div>\n </ng-container>\n <ng-container *ngIf=\"breadCrumbsItems.length\" pep-top-area>\n <ng-container *ngTemplateOutlet=\"breadCrumbsTemplate\"></ng-container>\n </ng-container>\n <div pep-main-area class=\"main-area-container\">\n <ng-container *ngTemplateOutlet=\"listTemplate\"></ng-container>\n </div>\n</pep-page-layout>\n\n<ng-template #topBarTemplate>\n <pep-top-bar [title]=\"title\" [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 <!-- <div footer-start-content>\n <ng-content select=\"[left-bottom-area]\"></ng-content> \n </div>\n <div footer-end-content>\n <ng-content select=\"[right-bottom-area]\"></ng-content> \n </div> -->\n <pep-list-actions *ngIf=\"menuActions.length > 0\" [sizeType]=\"inline ? 'sm' : 'md'\" [actions]=\"menuActions\"\n (actionClick)=\"onActionItemClicked($event)\"></pep-list-actions>\n <pep-list-total [sizeType]=\"inline ? 'sm' : 'md'\" [totalRows]=\"totalRowCount\">\n </pep-list-total>\n <pep-search #search *ngIf=\"showSearch\" [value]=\"searchString\" [sizeType]=\"inline ? 'sm' : 'md'\"\n (search)=\"onSearchChanged($event)\">\n </pep-search>\n </pep-top-bar>\n</ng-template>\n\n<ng-template #smartFilterTemplate>\n <pep-side-bar #sideNav [ngClass]=\"{'smart-filter-area': inline}\">\n <pep-smart-filters title=\"Test filters\" [fields]=\"internalSmartFilter.fields\"\n [filters]=\"internalSmartFilter.data\" (filtersChange)=\"onFiltersChange($event)\">\n </pep-smart-filters>\n </pep-side-bar>\n</ng-template>\n\n<ng-template #breadCrumbsTemplate>\n <pep-bread-crumbs class=\"bread-crumbs\" [items]=\"breadCrumbsItems\" [addSpacing]=\"true\" [displayType]=\"'items'\"\n (itemClick)=\"onBreadCrumbItemClick($event)\"></pep-bread-crumbs>\n</ng-template>\n\n<ng-template #listTemplate>\n <div class=\"list-container\">\n <ng-container #pepListContainer></ng-container>\n </div>\n</ng-template>", styles: [":host{height:inherit;display:block}.main-area-container{display:grid;height:inherit}.list-container{height:100%}.inline-container{height:inherit;display:grid;grid-template-rows:auto 1fr;grid-template-columns:auto 1fr}.inline-container.add-padding{padding-inline:var(--pep-spacing-lg, 1rem)}.inline-container .header-area{grid-column:2/3;grid-row:1/2}.inline-container .smart-filter-area{grid-column:1/2;grid-row:1/3}.inline-container .list-container{grid-column:2/3;grid-row:2/3}.inline-container .list-description{font-size:var(--pep-font-size-xs, .75rem);max-width:640px;padding:var(--pep-spacing-sm, .5rem) 0}.inline-container .bread-crumbs{padding:var(--pep-spacing-md, .75rem) 0 var(--pep-spacing-sm, .5rem) 0}.none-inline .list-description{font-size:var(--pep-font-size-sm, .875rem);max-width:720px;padding:var(--pep-spacing-sm, .5rem) var(--pep-spacing-xs, .25rem)}.none-inline .bread-crumbs{padding:var(--pep-spacing-md, .75rem) var(--pep-spacing-xs, .25rem) var(--pep-spacing-sm, .5rem) var(--pep-spacing-xs, .25rem)}::ng-deep .pep-top-bar-container:not(.inline){margin-inline:var(--pep-spacing-xs, .25rem)}::ng-deep .pep-top-bar-container.inline{height:var(--pep-top-bar-field-height, 2.5rem)!important}.noDataFoundMsg{margin:1rem 0;height:calc(100% - 2rem);width:100%;background:hsla(0deg,0%,10%,.12);display:flex;justify-content:center;align-items:center}\n"], components: [{ type: i3.PepPageLayoutComponent, selector: "pep-page-layout", inputs: ["addPadding", "showShadow"] }, { type: i4.PepTopBarComponent, selector: "pep-top-bar", inputs: ["inline", "title"], outputs: ["footerStateChange"] }, { type: i5.PepListActionsComponent, selector: "pep-list-actions", inputs: ["actions", "sizeType", "xPosition", "hidden"], outputs: ["actionClick", "stateChange", "menuClick"] }, { type: i5.PepListTotalComponent, selector: "pep-list-total", inputs: ["totalRows", "totalAmount", "isMapView", "sizeType"] }, { type: i6.PepSearchComponent, selector: "pep-search", inputs: ["triggerOn", "autoCompleteTop", "sizeType", "autoCompleteValues", "shrink", "value", "searchControl", "useAsWebComponent"], outputs: ["search", "autocompleteChange", "stateChange"] }, { type: i7.PepSideBarComponent, selector: "pep-side-bar", inputs: ["ignoreResize", "showHeader", "showFooter", "useAsWebComponent"], outputs: ["stateChange"] }, { type: i8.PepSmartFiltersComponent, selector: "pep-smart-filters", inputs: ["title", "filters", "fields", "useAsWebComponent"], outputs: ["filtersChange", "fieldToggleChange"] }, { type: i9.PepBreadCrumbsComponent, selector: "pep-bread-crumbs", inputs: ["addSpacing", "items", "displayType"], outputs: ["itemClick"] }], directives: [{ type: i10.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i10.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i10.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
512
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: GenericListComponent, decorators: [{
513
- type: Component,
514
- args: [{
515
- selector: 'pep-generic-list',
516
- templateUrl: './generic-list.component.html',
517
- styleUrls: ['./generic-list.component.scss'],
518
- providers: [PepGenericListService]
519
- }]
520
- }], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }, { type: i1$1.PepDataConvertorService }, { type: i1$1.PepLayoutService }, { type: i1$1.PepLoaderService }, { type: PepGenericListService }]; }, propDecorators: { search: [{
521
- type: ViewChild,
522
- args: ['search']
523
- }], pepListContainer: [{
524
- type: ViewChild,
525
- args: ['pepListContainer', { read: ViewContainerRef }]
526
- }], dataSource: [{
527
- type: Input
528
- }], actions: [{
529
- type: Input
530
- }], uuidMapping: [{
531
- type: Input
532
- }], disabled: [{
533
- type: Input
534
- }], addPadding: [{
535
- type: Input
536
- }], title: [{
537
- type: Input
538
- }], description: [{
539
- type: Input
540
- }], inline: [{
541
- type: Input
542
- }], showSearch: [{
543
- type: Input
544
- }], noDataFoundMsg: [{
545
- type: Input
546
- }], selectionType: [{
547
- type: Input
548
- }], supportSorting: [{
549
- type: Input
550
- }], pager: [{
551
- type: Input
552
- }], tableViewType: [{
553
- type: Input
554
- }], zebraStripes: [{
555
- type: Input
556
- }], smartFilter: [{
557
- type: Input
558
- }], showTopBar: [{
559
- type: Input
560
- }], breadCrumbsItems: [{
561
- type: Input
562
- }], fieldClick: [{
563
- type: Output
564
- }], valueChange: [{
565
- type: Output
566
- }], breadCrumbItemClick: [{
567
- type: Output
151
+ class GenericListComponent {
152
+ constructor(_resolver, _dataConvertorService, _layoutService, _loaderService,
153
+ // private _translate: TranslateService,
154
+ _genericListService) {
155
+ this._resolver = _resolver;
156
+ this._dataConvertorService = _dataConvertorService;
157
+ this._layoutService = _layoutService;
158
+ this._loaderService = _loaderService;
159
+ this._genericListService = _genericListService;
160
+ this._dataSource = {
161
+ init: (params) => __awaiter(this, void 0, void 0, function* () {
162
+ return {
163
+ dataView: {
164
+ Type: 'Grid'
165
+ },
166
+ totalCount: -1,
167
+ items: []
168
+ };
169
+ })
170
+ };
171
+ this.actions = {
172
+ get: (data) => __awaiter(this, void 0, void 0, function* () {
173
+ return [];
174
+ })
175
+ };
176
+ this.uuidMapping = 'key';
177
+ this.disabled = false;
178
+ this.addPadding = false;
179
+ this.title = '';
180
+ this.description = '';
181
+ this.inline = false;
182
+ this.showSearch = false;
183
+ this.noDataFoundMsg = '';
184
+ this.selectionType = 'multi';
185
+ this.supportSorting = false;
186
+ this.pager = {
187
+ type: 'scroll'
188
+ };
189
+ this.tableViewType = 'regular';
190
+ this.zebraStripes = false;
191
+ this.showTopBar = false;
192
+ this.breadCrumbsItems = new Array();
193
+ this.fieldClick = new EventEmitter();
194
+ this.valueChange = new EventEmitter();
195
+ this.breadCrumbItemClick = new EventEmitter();
196
+ this._resize$ = new Subscription();
197
+ this._loader$ = new Subscription();
198
+ this._dataView = {
199
+ Type: 'Grid'
200
+ };
201
+ this.totalRowCount = -1;
202
+ this.searchString = '';
203
+ this.showSmartFilter = false;
204
+ this.internalSmartFilter = {
205
+ fields: [],
206
+ data: []
207
+ };
208
+ this._appliedFilters = [];
209
+ this._sorting = undefined;
210
+ this.menuHandlers = {};
211
+ this.menuActions = [];
212
+ this._resize$ = this._layoutService.onResize$.pipe().subscribe((size) => {
213
+ //
214
+ });
215
+ this._loader$ = this._loaderService.onChanged$.subscribe((status) => {
216
+ //
217
+ });
218
+ }
219
+ set pepListContainer(val) {
220
+ this._pepListContainer = val;
221
+ }
222
+ set dataSource(val) {
223
+ this._dataSource = val;
224
+ this._sorting = undefined;
225
+ this.initSearch();
226
+ this.initTable();
227
+ }
228
+ set smartFilter(val) {
229
+ this.internalSmartFilter = this._genericListService.convertToSmartFilter(val);
230
+ this.showSmartFilter = this.internalSmartFilter.fields.length > 0;
231
+ }
232
+ set pepList(val) {
233
+ this._pepList = val;
234
+ }
235
+ get pepList() {
236
+ return this._pepList;
237
+ }
238
+ ngOnInit() {
239
+ //
240
+ }
241
+ initTable() {
242
+ return __awaiter(this, void 0, void 0, function* () {
243
+ setTimeout(() => __awaiter(this, void 0, void 0, function* () {
244
+ var _a, _b, _c;
245
+ if (this._dataSource &&
246
+ this._pepListContainer) {
247
+ if (this._pepListContainer.length > 0) {
248
+ this._pepListContainer.remove();
249
+ }
250
+ const factory = this._resolver.resolveComponentFactory(PepListComponent);
251
+ const componentRef = this._pepListContainer.createComponent(factory);
252
+ this.pepList = componentRef.instance;
253
+ //merge selector inputs with callback inputs
254
+ this.loadTableInputs();
255
+ const fromIndex = 0;
256
+ let toIndex = 0;
257
+ if (this._listInputs.pager.type === 'pages') {
258
+ toIndex = fromIndex + (this._listInputs.pager.size || DEFAULT_PAGE_SIZE) - 1;
259
+ }
260
+ else {
261
+ toIndex = 100; //TO DO - get value from - this.customList.getTopItems()
262
+ }
263
+ const data = yield this.loadData(fromIndex, toIndex);
264
+ this.totalRowCount = (data === null || data === void 0 ? void 0 : data.totalCount) || 0;
265
+ componentRef.instance.viewType = this._genericListService.getListViewType(this._dataView.Type);
266
+ componentRef.instance.tableViewType = this._listInputs.tableViewType;
267
+ componentRef.instance.zebraStripes = this._listInputs.zebraStripes;
268
+ if (this.disabled) {
269
+ componentRef.instance.disabled = true;
270
+ componentRef.instance.lockItemInnerEvents = true;
271
+ }
272
+ componentRef.instance.supportSorting = this._listInputs.supportSorting;
273
+ componentRef.instance.selectionTypeForActions = this._listInputs.selectionType;
274
+ componentRef.instance.showCardSelection = this._listInputs.selectionType !== 'none';
275
+ componentRef.instance.pagerType = this._listInputs.pager.type;
276
+ if (this._listInputs.pager.type === 'pages') {
277
+ componentRef.instance.pageSize = ((_a = this._listInputs.pager) === null || _a === void 0 ? void 0 : _a.size) || DEFAULT_PAGE_SIZE;
278
+ componentRef.instance.pageIndex = ((_b = this._listInputs.pager) === null || _b === void 0 ? void 0 : _b.index) || 0;
279
+ }
280
+ componentRef.instance.noDataFoundMsg = this._listInputs.noDataFoundMsg;
281
+ componentRef.instance.fieldClick.subscribe(($event) => {
282
+ this.onCustomizeFieldClick($event);
283
+ });
284
+ componentRef.instance.selectedItemsChange.subscribe(($event) => {
285
+ this.onSelectedItemsChanged($event);
286
+ });
287
+ componentRef.instance.loadItems.subscribe(($event) => {
288
+ this.onLoadItems($event);
289
+ });
290
+ componentRef.instance.loadPage.subscribe(($event) => {
291
+ this.onLoadPage($event);
292
+ });
293
+ componentRef.instance.valueChange.subscribe(($event) => {
294
+ this.onValueChanged($event);
295
+ });
296
+ componentRef.instance.sortingChange.subscribe(($event) => {
297
+ this.onSortingChange($event);
298
+ });
299
+ let convertedList = [];
300
+ if (data) {
301
+ if ((_c = data.items) === null || _c === void 0 ? void 0 : _c.length) {
302
+ convertedList = this._dataConvertorService.convertListData(data.items);
303
+ }
304
+ const uiControl = this.getUiControl(DataViewConverter.toUIControlData(data.dataView));
305
+ componentRef.instance.initListData(uiControl, data.totalCount, convertedList);
306
+ }
307
+ }
308
+ }), 0);
309
+ });
310
+ }
311
+ /**
312
+ * loads inputs in case they are provided and merge with selector inputs
313
+ * @returns merged pep-list inputs
314
+ */
315
+ loadTableInputs() {
316
+ this._listInputs = {
317
+ supportSorting: this.supportSorting,
318
+ selectionType: this.selectionType,
319
+ pager: this.pager,
320
+ noDataFoundMsg: this.noDataFoundMsg,
321
+ tableViewType: this.tableViewType,
322
+ zebraStripes: this.zebraStripes
323
+ };
324
+ if (this._dataSource.inputs) {
325
+ Object.entries(this._dataSource.inputs).forEach((item) => {
326
+ if (this._genericListService.hasProperty(this._listInputs, item[0])) {
327
+ this._listInputs[item[0]] = item[1];
328
+ }
329
+ });
330
+ }
331
+ }
332
+ getUiControl(data) {
333
+ const uiControl = new UIControl();
334
+ uiControl.ControlFields = [];
335
+ if (data === null || data === void 0 ? void 0 : data.ControlFields) {
336
+ uiControl.ControlFields = data.ControlFields.map((field) => this._genericListService.convertToUiControlField(field));
337
+ }
338
+ return uiControl;
339
+ }
340
+ loadMenuItems() {
341
+ if (this._listInputs.selectionType !== 'none') {
342
+ this.getMenuActions().then(x => this.menuActions = x);
343
+ }
344
+ }
345
+ getMenuActions() {
346
+ return __awaiter(this, void 0, void 0, function* () {
347
+ const res = [];
348
+ const result = this.getMenuObjects();
349
+ if (result.success) {
350
+ const actions = yield this.actions.get(result.data);
351
+ this.menuHandlers = {};
352
+ actions === null || actions === void 0 ? void 0 : actions.forEach(item => {
353
+ const uuid = PepGuid.newGuid();
354
+ this.menuHandlers[uuid] = item.handler;
355
+ res.push({
356
+ key: uuid,
357
+ text: item.title
358
+ });
359
+ });
360
+ }
361
+ return res;
362
+ });
363
+ }
364
+ getMenuObjects() {
365
+ const menuObjects = {
366
+ success: false,
367
+ data: new PepSelectionData()
368
+ };
369
+ if (this.pepList) {
370
+ menuObjects.success = true;
371
+ menuObjects.data = this.pepList.getSelectedItemsData();
372
+ }
373
+ return menuObjects;
374
+ }
375
+ initSearch() {
376
+ var _a;
377
+ this.searchString = '';
378
+ (_a = this.search) === null || _a === void 0 ? void 0 : _a.initSearch();
379
+ }
380
+ loadData(fromIndex, toIndex) {
381
+ var _a;
382
+ return __awaiter(this, void 0, void 0, function* () {
383
+ setTimeout(() => {
384
+ this._loaderService.show();
385
+ }, 50);
386
+ const data = yield this._dataSource.init({
387
+ searchString: this.searchString || undefined,
388
+ filters: this._appliedFilters.length ? this._appliedFilters : undefined,
389
+ sorting: this._sorting || undefined,
390
+ fromIndex: fromIndex,
391
+ toIndex: toIndex
392
+ });
393
+ setTimeout(() => {
394
+ this._loaderService.hide();
395
+ }, 50);
396
+ if (data) {
397
+ this._dataView = data.dataView;
398
+ if (((_a = data.items) === null || _a === void 0 ? void 0 : _a.length) > 0 && !data.isPepRowData) {
399
+ data.items = data.items.map(item => this._genericListService.convertToPepRowData(item, data.dataView, this.uuidMapping));
400
+ }
401
+ }
402
+ return data;
403
+ });
404
+ }
405
+ updateDataList(fromIndex, toIndex, pageIndex = undefined) {
406
+ return __awaiter(this, void 0, void 0, function* () {
407
+ if (this._dataSource.update) {
408
+ setTimeout(() => {
409
+ this._loaderService.show();
410
+ }, 50);
411
+ const dataList = yield this._dataSource.update({
412
+ searchString: this.searchString || undefined,
413
+ filters: this._appliedFilters.length ? this._appliedFilters : undefined,
414
+ sorting: this._sorting || undefined,
415
+ fromIndex: fromIndex,
416
+ toIndex: toIndex,
417
+ pageIndex: pageIndex
418
+ });
419
+ setTimeout(() => {
420
+ this._loaderService.hide();
421
+ }, 50);
422
+ if ((dataList === null || dataList === void 0 ? void 0 : dataList.length) > 0) {
423
+ return dataList.map(item => this._genericListService.convertToPepRowData(item, this._dataView, this.uuidMapping));
424
+ }
425
+ else {
426
+ return [];
427
+ }
428
+ }
429
+ else {
430
+ return [];
431
+ }
432
+ });
433
+ }
434
+ /**
435
+ * loads virtual scroll items from api
436
+ */
437
+ onLoadItems(event) {
438
+ return __awaiter(this, void 0, void 0, function* () {
439
+ const list = yield this.updateDataList(event.fromIndex, event.toIndex);
440
+ const convertedList = this._dataConvertorService.convertListData(list);
441
+ this.pepList.updateItems(convertedList, event);
442
+ });
443
+ }
444
+ /**
445
+ * loads paging bulk from api
446
+ */
447
+ onLoadPage(event) {
448
+ return __awaiter(this, void 0, void 0, function* () {
449
+ const fromIndex = event.pageIndex * event.pageSize;
450
+ const toIndex = Math.min(fromIndex + event.pageSize - 1, this.totalRowCount - 1);
451
+ const list = yield this.updateDataList(fromIndex, toIndex, event.pageIndex);
452
+ const convertedList = this._dataConvertorService.convertListData(list);
453
+ this.pepList.updatePage(convertedList, event);
454
+ });
455
+ }
456
+ getItemById(id) {
457
+ if (this.pepList) {
458
+ return this._pepList.getItemDataByID(id);
459
+ }
460
+ else {
461
+ return null;
462
+ }
463
+ }
464
+ getSelectedItems() {
465
+ if (this.pepList) {
466
+ return this._pepList.getSelectedItemsData();
467
+ }
468
+ else {
469
+ return null;
470
+ }
471
+ }
472
+ getPageIndex() {
473
+ return this.pepList.pageIndex;
474
+ }
475
+ onActionItemClicked(action) {
476
+ const result = this.getMenuObjects();
477
+ if (result.success) {
478
+ this.menuHandlers[action.source.key](result.data);
479
+ }
480
+ }
481
+ onSearchChanged(event) {
482
+ this.searchString = event.value;
483
+ this.initTable();
484
+ }
485
+ onSelectedItemsChanged(selectedRowsCount) {
486
+ //loading menu items after pep-list selected items are updated
487
+ setTimeout(() => {
488
+ this.loadMenuItems();
489
+ }, 0);
490
+ }
491
+ onCustomizeFieldClick(fieldClickEvent) {
492
+ this.fieldClick.emit(fieldClickEvent);
493
+ }
494
+ onBreadCrumbItemClick(event) {
495
+ this.breadCrumbItemClick.emit(event);
496
+ }
497
+ onValueChanged(event) {
498
+ this.valueChange.emit(event);
499
+ }
500
+ onSortingChange(event) {
501
+ this._sorting = event;
502
+ this.initTable();
503
+ }
504
+ onFiltersChange(filters) {
505
+ this._appliedFilters = filters;
506
+ this.initTable();
507
+ }
508
+ ngOnDestroy() {
509
+ if (this._resize$) {
510
+ this._resize$.unsubscribe();
511
+ }
512
+ if (this._loader$) {
513
+ this._loader$.unsubscribe();
514
+ }
515
+ }
516
+ }
517
+ GenericListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: GenericListComponent, deps: [{ token: i0.ComponentFactoryResolver }, { token: i1$1.PepDataConvertorService }, { token: i1$1.PepLayoutService }, { token: i1$1.PepLoaderService }, { token: PepGenericListService }], target: i0.ɵɵFactoryTarget.Component });
518
+ GenericListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: GenericListComponent, selector: "pep-generic-list", inputs: { dataSource: "dataSource", actions: "actions", uuidMapping: "uuidMapping", disabled: "disabled", addPadding: "addPadding", title: "title", description: "description", inline: "inline", showSearch: "showSearch", noDataFoundMsg: "noDataFoundMsg", selectionType: "selectionType", supportSorting: "supportSorting", pager: "pager", tableViewType: "tableViewType", zebraStripes: "zebraStripes", smartFilter: "smartFilter", showTopBar: "showTopBar", breadCrumbsItems: "breadCrumbsItems" }, outputs: { fieldClick: "fieldClick", valueChange: "valueChange", breadCrumbItemClick: "breadCrumbItemClick" }, providers: [PepGenericListService], viewQueries: [{ propertyName: "search", first: true, predicate: ["search"], descendants: true }, { propertyName: "pepListContainer", first: true, predicate: ["pepListContainer"], descendants: true, read: ViewContainerRef }], ngImport: i0, template: "<div *ngIf=\"inline\" class=\"inline-container\" [ngClass]=\"{ 'add-padding': addPadding }\">\n <div class=\"header-area\" >\n <div *ngIf=\"showTopBar\" class=\"inline-top-bar-container\">\n <ng-container *ngTemplateOutlet=\"topBarTemplate\"></ng-container>\n </div>\n <ng-container *ngIf=\"description\">\n <div class=\"list-description\">{{description}}</div>\n </ng-container>\n <ng-container *ngIf=\"breadCrumbsItems.length\">\n <ng-container *ngTemplateOutlet=\"breadCrumbsTemplate\"></ng-container>\n </ng-container>\n </div>\n <ng-container *ngIf=\"showSmartFilter\">\n <ng-container *ngTemplateOutlet=\"smartFilterTemplate\"></ng-container>\n </ng-container>\n <ng-container *ngTemplateOutlet=\"listTemplate\"></ng-container>\n</div>\n<pep-page-layout *ngIf=\"!inline\" class=\"none-inline\" [addPadding]=\"addPadding\" [showShadow]=\"showSmartFilter\">\n <ng-container *ngIf=\"showSmartFilter\" pep-side-area>\n <ng-container *ngTemplateOutlet=\"smartFilterTemplate\"></ng-container>\n </ng-container>\n <ng-container *ngIf=\"showTopBar\" pep-top-area>\n <ng-container *ngTemplateOutlet=\"topBarTemplate\"></ng-container>\n </ng-container>\n <ng-container *ngIf=\"description\" pep-top-area>\n <div class=\"list-description\">{{description}}</div>\n </ng-container>\n <ng-container *ngIf=\"breadCrumbsItems.length\" pep-top-area>\n <ng-container *ngTemplateOutlet=\"breadCrumbsTemplate\"></ng-container>\n </ng-container>\n <div pep-main-area class=\"main-area-container\">\n <ng-container *ngTemplateOutlet=\"listTemplate\"></ng-container>\n </div>\n</pep-page-layout>\n\n<ng-template #topBarTemplate>\n <pep-top-bar [title]=\"title\" [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 <!-- <div footer-start-content>\n <ng-content select=\"[left-bottom-area]\"></ng-content> \n </div>\n <div footer-end-content>\n <ng-content select=\"[right-bottom-area]\"></ng-content> \n </div> -->\n <pep-list-actions *ngIf=\"menuActions.length > 0\" [sizeType]=\"inline ? 'sm' : 'md'\" [actions]=\"menuActions\"\n (actionClick)=\"onActionItemClicked($event)\"></pep-list-actions>\n <pep-list-total [sizeType]=\"inline ? 'sm' : 'md'\" [totalRows]=\"totalRowCount\">\n </pep-list-total>\n <pep-search #search *ngIf=\"showSearch\" [value]=\"searchString\" [sizeType]=\"inline ? 'sm' : 'md'\"\n (search)=\"onSearchChanged($event)\">\n </pep-search>\n </pep-top-bar>\n</ng-template>\n\n<ng-template #smartFilterTemplate>\n <pep-side-bar #sideNav [ngClass]=\"{'smart-filter-area': inline}\">\n <pep-smart-filters title=\"Test filters\" [fields]=\"internalSmartFilter.fields\"\n [filters]=\"internalSmartFilter.data\" (filtersChange)=\"onFiltersChange($event)\">\n </pep-smart-filters>\n </pep-side-bar>\n</ng-template>\n\n<ng-template #breadCrumbsTemplate>\n <pep-bread-crumbs class=\"bread-crumbs\" [items]=\"breadCrumbsItems\" [addSpacing]=\"true\" [displayType]=\"'items'\"\n (itemClick)=\"onBreadCrumbItemClick($event)\"></pep-bread-crumbs>\n</ng-template>\n\n<ng-template #listTemplate>\n <div class=\"list-container\">\n <ng-container #pepListContainer></ng-container>\n </div>\n</ng-template>", styles: [":host{height:inherit;display:block}.main-area-container{display:grid;height:inherit}.list-container{height:100%}.inline-container{height:inherit;display:grid;grid-template-rows:auto 1fr;grid-template-columns:auto 1fr}.inline-container.add-padding{padding-inline:var(--pep-spacing-lg, 1rem)}.inline-container .header-area{grid-column:2/3;grid-row:1/2}.inline-container .smart-filter-area{grid-column:1/2;grid-row:1/3}.inline-container .list-container{grid-column:2/3;grid-row:2/3}.inline-container .list-description{font-size:var(--pep-font-size-xs, .75rem);max-width:640px;padding:var(--pep-spacing-sm, .5rem) 0}.inline-container .bread-crumbs{padding:var(--pep-spacing-md, .75rem) 0 var(--pep-spacing-sm, .5rem) 0}.none-inline .list-description{font-size:var(--pep-font-size-sm, .875rem);max-width:720px;padding:var(--pep-spacing-sm, .5rem) var(--pep-spacing-xs, .25rem)}.none-inline .bread-crumbs{padding:var(--pep-spacing-md, .75rem) var(--pep-spacing-xs, .25rem) var(--pep-spacing-sm, .5rem) var(--pep-spacing-xs, .25rem)}::ng-deep .pep-top-bar-container:not(.inline){margin-inline:var(--pep-spacing-xs, .25rem)}::ng-deep .pep-top-bar-container.inline{height:var(--pep-top-bar-field-height, 2.5rem)!important}.noDataFoundMsg{margin:1rem 0;height:calc(100% - 2rem);width:100%;background:hsla(0deg,0%,10%,.12);display:flex;justify-content:center;align-items:center}\n"], components: [{ type: i3.PepPageLayoutComponent, selector: "pep-page-layout", inputs: ["addPadding", "showShadow"] }, { type: i4.PepTopBarComponent, selector: "pep-top-bar", inputs: ["inline", "title"], outputs: ["footerStateChange"] }, { type: i5.PepListActionsComponent, selector: "pep-list-actions", inputs: ["actions", "sizeType", "xPosition", "hidden"], outputs: ["actionClick", "stateChange", "menuClick"] }, { type: i5.PepListTotalComponent, selector: "pep-list-total", inputs: ["totalRows", "totalAmount", "isMapView", "sizeType"] }, { type: i6.PepSearchComponent, selector: "pep-search", inputs: ["triggerOn", "autoCompleteTop", "sizeType", "autoCompleteValues", "shrink", "value", "searchControl", "useAsWebComponent"], outputs: ["search", "autocompleteChange", "stateChange"] }, { type: i7.PepSideBarComponent, selector: "pep-side-bar", inputs: ["ignoreResize", "showHeader", "showFooter", "useAsWebComponent"], outputs: ["stateChange"] }, { type: i8.PepSmartFiltersComponent, selector: "pep-smart-filters", inputs: ["title", "filters", "fields", "useAsWebComponent"], outputs: ["filtersChange", "fieldToggleChange"] }, { type: i9.PepBreadCrumbsComponent, selector: "pep-bread-crumbs", inputs: ["addSpacing", "items", "displayType"], outputs: ["itemClick"] }], directives: [{ type: i10.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i10.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i10.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
519
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: GenericListComponent, decorators: [{
520
+ type: Component,
521
+ args: [{
522
+ selector: 'pep-generic-list',
523
+ templateUrl: './generic-list.component.html',
524
+ styleUrls: ['./generic-list.component.scss'],
525
+ providers: [PepGenericListService]
526
+ }]
527
+ }], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }, { type: i1$1.PepDataConvertorService }, { type: i1$1.PepLayoutService }, { type: i1$1.PepLoaderService }, { type: PepGenericListService }]; }, propDecorators: { search: [{
528
+ type: ViewChild,
529
+ args: ['search']
530
+ }], pepListContainer: [{
531
+ type: ViewChild,
532
+ args: ['pepListContainer', { read: ViewContainerRef }]
533
+ }], dataSource: [{
534
+ type: Input
535
+ }], actions: [{
536
+ type: Input
537
+ }], uuidMapping: [{
538
+ type: Input
539
+ }], disabled: [{
540
+ type: Input
541
+ }], addPadding: [{
542
+ type: Input
543
+ }], title: [{
544
+ type: Input
545
+ }], description: [{
546
+ type: Input
547
+ }], inline: [{
548
+ type: Input
549
+ }], showSearch: [{
550
+ type: Input
551
+ }], noDataFoundMsg: [{
552
+ type: Input
553
+ }], selectionType: [{
554
+ type: Input
555
+ }], supportSorting: [{
556
+ type: Input
557
+ }], pager: [{
558
+ type: Input
559
+ }], tableViewType: [{
560
+ type: Input
561
+ }], zebraStripes: [{
562
+ type: Input
563
+ }], smartFilter: [{
564
+ type: Input
565
+ }], showTopBar: [{
566
+ type: Input
567
+ }], breadCrumbsItems: [{
568
+ type: Input
569
+ }], fieldClick: [{
570
+ type: Output
571
+ }], valueChange: [{
572
+ type: Output
573
+ }], breadCrumbItemClick: [{
574
+ type: Output
568
575
  }] } });
569
576
 
570
- class PepGenericListModule {
571
- }
572
- PepGenericListModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepGenericListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
573
- PepGenericListModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepGenericListModule, declarations: [GenericListComponent], imports: [CommonModule,
574
- PepNgxLibModule,
575
- PepListModule,
576
- PepFormModule,
577
- PepMenuModule,
578
- PepPageLayoutModule,
579
- PepTopBarModule,
580
- PepSideBarModule,
581
- PepSearchModule,
582
- PepBreadCrumbsModule,
583
- PepSmartFiltersModule], exports: [GenericListComponent] });
584
- PepGenericListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepGenericListModule, providers: [
585
- PepGenericListService
586
- ], imports: [[
587
- CommonModule,
588
- PepNgxLibModule,
589
- PepListModule,
590
- PepFormModule,
591
- PepMenuModule,
592
- PepPageLayoutModule,
593
- PepTopBarModule,
594
- PepSideBarModule,
595
- PepSearchModule,
596
- PepBreadCrumbsModule,
597
- PepSmartFiltersModule
598
- ]] });
599
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepGenericListModule, decorators: [{
600
- type: NgModule,
601
- args: [{
602
- declarations: [
603
- GenericListComponent
604
- ],
605
- imports: [
606
- CommonModule,
607
- PepNgxLibModule,
608
- PepListModule,
609
- PepFormModule,
610
- PepMenuModule,
611
- PepPageLayoutModule,
612
- PepTopBarModule,
613
- PepSideBarModule,
614
- PepSearchModule,
615
- PepBreadCrumbsModule,
616
- PepSmartFiltersModule
617
- ],
618
- exports: [
619
- GenericListComponent
620
- ],
621
- providers: [
622
- PepGenericListService
623
- ]
624
- }]
577
+ class PepGenericListModule {
578
+ }
579
+ PepGenericListModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepGenericListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
580
+ PepGenericListModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepGenericListModule, declarations: [GenericListComponent], imports: [CommonModule,
581
+ PepNgxLibModule,
582
+ PepListModule,
583
+ PepFormModule,
584
+ PepMenuModule,
585
+ PepPageLayoutModule,
586
+ PepTopBarModule,
587
+ PepSideBarModule,
588
+ PepSearchModule,
589
+ PepBreadCrumbsModule,
590
+ PepSmartFiltersModule], exports: [GenericListComponent] });
591
+ PepGenericListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepGenericListModule, providers: [
592
+ PepGenericListService
593
+ ], imports: [[
594
+ CommonModule,
595
+ PepNgxLibModule,
596
+ PepListModule,
597
+ PepFormModule,
598
+ PepMenuModule,
599
+ PepPageLayoutModule,
600
+ PepTopBarModule,
601
+ PepSideBarModule,
602
+ PepSearchModule,
603
+ PepBreadCrumbsModule,
604
+ PepSmartFiltersModule
605
+ ]] });
606
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepGenericListModule, decorators: [{
607
+ type: NgModule,
608
+ args: [{
609
+ declarations: [
610
+ GenericListComponent
611
+ ],
612
+ imports: [
613
+ CommonModule,
614
+ PepNgxLibModule,
615
+ PepListModule,
616
+ PepFormModule,
617
+ PepMenuModule,
618
+ PepPageLayoutModule,
619
+ PepTopBarModule,
620
+ PepSideBarModule,
621
+ PepSearchModule,
622
+ PepBreadCrumbsModule,
623
+ PepSmartFiltersModule
624
+ ],
625
+ exports: [
626
+ GenericListComponent
627
+ ],
628
+ providers: [
629
+ PepGenericListService
630
+ ]
631
+ }]
625
632
  }] });
626
633
 
627
- /*
628
- * Public API Surface of ngx-composite-lib/generic-list
634
+ /*
635
+ * Public API Surface of ngx-composite-lib/generic-list
629
636
  */
630
637
 
631
- /**
632
- * Generated bundle index. Do not edit.
638
+ /**
639
+ * Generated bundle index. Do not edit.
633
640
  */
634
641
 
635
642
  export { GenericListComponent, PepGenericListModule, PepGenericListService };