@pepperi-addons/ngx-composite-lib 0.0.10-beta.2 → 0.0.10-beta.21

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 (133) hide show
  1. package/README.md +24 -24
  2. package/bundles/pepperi-addons-ngx-composite-lib-color-settings.umd.js +123 -122
  3. package/bundles/pepperi-addons-ngx-composite-lib-color-settings.umd.js.map +1 -1
  4. package/bundles/pepperi-addons-ngx-composite-lib-draggable-item.umd.js +72 -70
  5. package/bundles/pepperi-addons-ngx-composite-lib-draggable-item.umd.js.map +1 -1
  6. package/bundles/pepperi-addons-ngx-composite-lib-file-status-panel.umd.js +119 -0
  7. package/bundles/pepperi-addons-ngx-composite-lib-file-status-panel.umd.js.map +1 -0
  8. package/bundles/pepperi-addons-ngx-composite-lib-generic-list.umd.js +644 -540
  9. package/bundles/pepperi-addons-ngx-composite-lib-generic-list.umd.js.map +1 -1
  10. package/bundles/pepperi-addons-ngx-composite-lib-group-buttons-settings.umd.js +173 -173
  11. package/bundles/pepperi-addons-ngx-composite-lib-group-buttons-settings.umd.js.map +1 -1
  12. package/bundles/pepperi-addons-ngx-composite-lib-shadow-settings.umd.js +117 -117
  13. package/bundles/pepperi-addons-ngx-composite-lib-shadow-settings.umd.js.map +1 -1
  14. package/bundles/pepperi-addons-ngx-composite-lib.umd.js +72 -29
  15. package/bundles/pepperi-addons-ngx-composite-lib.umd.js.map +1 -1
  16. package/color-settings/color-settings.component.d.ts +22 -22
  17. package/color-settings/color-settings.model.d.ts +5 -5
  18. package/color-settings/color-settings.module.d.ts +12 -12
  19. package/color-settings/package.json +1 -1
  20. package/color-settings/pepperi-addons-ngx-composite-lib-color-settings.d.ts +5 -5
  21. package/color-settings/public-api.d.ts +3 -3
  22. package/core/common/index.d.ts +1 -0
  23. package/core/common/public-api.d.ts +1 -0
  24. package/core/common/services/index.d.ts +1 -0
  25. package/core/common/services/public-api.d.ts +1 -0
  26. package/core/common/services/utilities.service.d.ts +6 -0
  27. package/core/index.d.ts +1 -0
  28. package/core/public-api.d.ts +1 -0
  29. package/draggable-item/draggable-item.component.d.ts +11 -11
  30. package/draggable-item/draggable-item.module.d.ts +11 -11
  31. package/draggable-item/package.json +1 -1
  32. package/draggable-item/pepperi-addons-ngx-composite-lib-draggable-item.d.ts +5 -5
  33. package/draggable-item/public-api.d.ts +2 -2
  34. package/esm2015/color-settings/color-settings.component.js +82 -81
  35. package/esm2015/color-settings/color-settings.model.js +9 -9
  36. package/esm2015/color-settings/color-settings.module.js +40 -40
  37. package/esm2015/color-settings/pepperi-addons-ngx-composite-lib-color-settings.js +4 -4
  38. package/esm2015/color-settings/public-api.js +7 -7
  39. package/esm2015/core/common/index.js +5 -0
  40. package/esm2015/core/common/public-api.js +5 -0
  41. package/esm2015/core/common/services/index.js +5 -0
  42. package/esm2015/core/common/services/public-api.js +5 -0
  43. package/esm2015/core/common/services/utilities.service.js +19 -0
  44. package/esm2015/core/index.js +5 -0
  45. package/esm2015/core/public-api.js +5 -0
  46. package/esm2015/draggable-item/draggable-item.component.js +42 -40
  47. package/esm2015/draggable-item/draggable-item.module.js +36 -36
  48. package/esm2015/draggable-item/pepperi-addons-ngx-composite-lib-draggable-item.js +4 -4
  49. package/esm2015/draggable-item/public-api.js +6 -6
  50. package/esm2015/file-status-panel/file-status-panel.component.js +34 -0
  51. package/esm2015/file-status-panel/file-status-panel.model.js +8 -0
  52. package/esm2015/file-status-panel/file-status-panel.module.js +40 -0
  53. package/esm2015/file-status-panel/pepperi-addons-ngx-composite-lib-file-status-panel.js +5 -0
  54. package/esm2015/file-status-panel/public-api.js +7 -0
  55. package/esm2015/generic-list/generic-list.component.js +240 -164
  56. package/esm2015/generic-list/generic-list.model.js +2 -2
  57. package/esm2015/generic-list/generic-list.module.js +56 -52
  58. package/esm2015/generic-list/pepperi-addons-ngx-composite-lib-generic-list.js +4 -4
  59. package/esm2015/generic-list/public-api.js +7 -7
  60. package/esm2015/group-buttons-settings/group-buttons-settings.component.js +132 -132
  61. package/esm2015/group-buttons-settings/group-buttons-settings.model.js +1 -1
  62. package/esm2015/group-buttons-settings/group-buttons-settings.module.js +47 -47
  63. package/esm2015/group-buttons-settings/pepperi-addons-ngx-composite-lib-group-buttons-settings.js +4 -4
  64. package/esm2015/group-buttons-settings/public-api.js +7 -7
  65. package/esm2015/ngx-composite-lib.module.js +26 -26
  66. package/esm2015/pepperi-addons-ngx-composite-lib.js +4 -4
  67. package/esm2015/public-api.js +6 -5
  68. package/esm2015/shadow-settings/pepperi-addons-ngx-composite-lib-shadow-settings.js +4 -4
  69. package/esm2015/shadow-settings/public-api.js +7 -7
  70. package/esm2015/shadow-settings/shadow-settings.component.js +73 -73
  71. package/esm2015/shadow-settings/shadow-settings.model.js +8 -8
  72. package/esm2015/shadow-settings/shadow-settings.module.js +44 -44
  73. package/fesm2015/pepperi-addons-ngx-composite-lib-color-settings.js +113 -112
  74. package/fesm2015/pepperi-addons-ngx-composite-lib-color-settings.js.map +1 -1
  75. package/fesm2015/pepperi-addons-ngx-composite-lib-draggable-item.js +68 -66
  76. package/fesm2015/pepperi-addons-ngx-composite-lib-draggable-item.js.map +1 -1
  77. package/fesm2015/pepperi-addons-ngx-composite-lib-file-status-panel.js +90 -0
  78. package/fesm2015/pepperi-addons-ngx-composite-lib-file-status-panel.js.map +1 -0
  79. package/fesm2015/pepperi-addons-ngx-composite-lib-generic-list.js +274 -194
  80. package/fesm2015/pepperi-addons-ngx-composite-lib-generic-list.js.map +1 -1
  81. package/fesm2015/pepperi-addons-ngx-composite-lib-group-buttons-settings.js +164 -164
  82. package/fesm2015/pepperi-addons-ngx-composite-lib-group-buttons-settings.js.map +1 -1
  83. package/fesm2015/pepperi-addons-ngx-composite-lib-shadow-settings.js +107 -107
  84. package/fesm2015/pepperi-addons-ngx-composite-lib-shadow-settings.js.map +1 -1
  85. package/fesm2015/pepperi-addons-ngx-composite-lib.js +70 -29
  86. package/fesm2015/pepperi-addons-ngx-composite-lib.js.map +1 -1
  87. package/file-status-panel/file-status-panel.component.d.ts +14 -0
  88. package/file-status-panel/file-status-panel.model.d.ts +6 -0
  89. package/file-status-panel/file-status-panel.module.d.ts +12 -0
  90. package/file-status-panel/package.json +13 -0
  91. package/file-status-panel/pepperi-addons-ngx-composite-lib-file-status-panel.d.ts +5 -0
  92. package/file-status-panel/public-api.d.ts +3 -0
  93. package/generic-list/generic-list.component.d.ts +60 -45
  94. package/generic-list/generic-list.model.d.ts +22 -11
  95. package/generic-list/generic-list.module.d.ts +16 -15
  96. package/generic-list/package.json +1 -1
  97. package/generic-list/pepperi-addons-ngx-composite-lib-generic-list.d.ts +5 -5
  98. package/generic-list/public-api.d.ts +3 -3
  99. package/group-buttons-settings/group-buttons-settings.component.d.ts +32 -32
  100. package/group-buttons-settings/group-buttons-settings.model.d.ts +1 -1
  101. package/group-buttons-settings/group-buttons-settings.module.d.ts +14 -14
  102. package/group-buttons-settings/package.json +1 -1
  103. package/group-buttons-settings/pepperi-addons-ngx-composite-lib-group-buttons-settings.d.ts +5 -5
  104. package/group-buttons-settings/public-api.d.ts +3 -3
  105. package/ngx-composite-lib.module.d.ts +6 -6
  106. package/package.json +2 -2
  107. package/pepperi-addons-ngx-composite-lib.d.ts +5 -5
  108. package/public-api.d.ts +2 -1
  109. package/shadow-settings/package.json +1 -1
  110. package/shadow-settings/pepperi-addons-ngx-composite-lib-shadow-settings.d.ts +5 -5
  111. package/shadow-settings/public-api.d.ts +3 -3
  112. package/shadow-settings/shadow-settings.component.d.ts +23 -23
  113. package/shadow-settings/shadow-settings.model.d.ts +7 -7
  114. package/shadow-settings/shadow-settings.module.d.ts +13 -13
  115. package/src/assets/i18n/de.ngx-composite-lib.json +1 -1
  116. package/src/assets/i18n/en.ngx-composite-lib.json +42 -42
  117. package/src/assets/i18n/es.ngx-composite-lib.json +1 -1
  118. package/src/assets/i18n/fr.ngx-composite-lib.json +1 -1
  119. package/src/assets/i18n/he.ngx-composite-lib.json +1 -1
  120. package/src/assets/i18n/hu.ngx-composite-lib.json +1 -1
  121. package/src/assets/i18n/it.ngx-composite-lib.json +1 -1
  122. package/src/assets/i18n/ja.ngx-composite-lib.json +1 -1
  123. package/src/assets/i18n/nl.ngx-composite-lib.json +1 -1
  124. package/src/assets/i18n/pl.ngx-composite-lib.json +1 -1
  125. package/src/assets/i18n/pt.ngx-composite-lib.json +1 -1
  126. package/src/assets/i18n/ru.ngx-composite-lib.json +1 -1
  127. package/src/assets/i18n/zh.ngx-lib.json +1 -1
  128. package/src/core/style/abstracts/functions.scss +0 -0
  129. package/src/core/style/abstracts/mixins.scss +0 -0
  130. package/src/core/style/abstracts/variables.scss +1 -0
  131. package/src/core/style/base/helpers.scss +0 -0
  132. package/{styles.scss → src/core/style/components/general.scss} +6 -4
  133. package/styling.scss +14 -0
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@pepperi-addons/ngx-lib'), require('@pepperi-addons/ngx-lib/list'), require('@pepperi-addons/papi-sdk/dist/entities/data-view'), require('@ngx-translate/core'), require('@pepperi-addons/ngx-lib/page-layout'), require('@pepperi-addons/ngx-lib/top-bar'), require('@pepperi-addons/ngx-lib/search'), require('@pepperi-addons/ngx-lib/form'), require('@pepperi-addons/ngx-lib/menu')) :
3
- typeof define === 'function' && define.amd ? define('@pepperi-addons/ngx-composite-lib/generic-list', ['exports', '@angular/core', '@angular/common', '@pepperi-addons/ngx-lib', '@pepperi-addons/ngx-lib/list', '@pepperi-addons/papi-sdk/dist/entities/data-view', '@ngx-translate/core', '@pepperi-addons/ngx-lib/page-layout', '@pepperi-addons/ngx-lib/top-bar', '@pepperi-addons/ngx-lib/search', '@pepperi-addons/ngx-lib/form', '@pepperi-addons/ngx-lib/menu'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["pepperi-addons"] = global["pepperi-addons"] || {}, global["pepperi-addons"]["ngx-composite-lib"] = global["pepperi-addons"]["ngx-composite-lib"] || {}, global["pepperi-addons"]["ngx-composite-lib"]["generic-list"] = {}), global.ng.core, global.ng.common, global["ngx-lib"], global["ngx-lib/list"], global["papi-sdk/data-view"], global.translate, global["ngx-lib/page-layout"], global["ngx-lib/top-bar"], global["ngx-lib/search"], global["ngx-lib/form"], global["ngx-lib/menu"]));
5
- })(this, (function (exports, i0, i7, i1, i5, dataView, i2, i3, i4, i6, form, menu) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@pepperi-addons/ngx-lib'), require('@pepperi-addons/ngx-lib/list'), require('@pepperi-addons/papi-sdk/dist/entities/data-view'), require('@ngx-translate/core'), require('@pepperi-addons/ngx-lib/page-layout'), require('@pepperi-addons/ngx-lib/top-bar'), require('@pepperi-addons/ngx-lib/search'), require('@pepperi-addons/ngx-lib/bread-crumbs'), require('@pepperi-addons/ngx-lib/form'), require('@pepperi-addons/ngx-lib/menu')) :
3
+ typeof define === 'function' && define.amd ? define('@pepperi-addons/ngx-composite-lib/generic-list', ['exports', '@angular/core', '@angular/common', '@pepperi-addons/ngx-lib', '@pepperi-addons/ngx-lib/list', '@pepperi-addons/papi-sdk/dist/entities/data-view', '@ngx-translate/core', '@pepperi-addons/ngx-lib/page-layout', '@pepperi-addons/ngx-lib/top-bar', '@pepperi-addons/ngx-lib/search', '@pepperi-addons/ngx-lib/bread-crumbs', '@pepperi-addons/ngx-lib/form', '@pepperi-addons/ngx-lib/menu'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["pepperi-addons"] = global["pepperi-addons"] || {}, global["pepperi-addons"]["ngx-composite-lib"] = global["pepperi-addons"]["ngx-composite-lib"] || {}, global["pepperi-addons"]["ngx-composite-lib"]["generic-list"] = {}), global.ng.core, global.ng.common, global["ngx-lib"], global["ngx-lib/list"], global["papi-sdk/data-view"], global.translate, global["ngx-lib/page-layout"], global["ngx-lib/top-bar"], global["ngx-lib/search"], global["ngx-lib/bread-crumbs"], global["ngx-lib/form"], global["ngx-lib/menu"]));
5
+ })(this, (function (exports, i0, i8, i1, i5, dataView, i2, i3, i4, i6, i7, form, menu) { 'use strict';
6
6
 
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) return e;
@@ -23,557 +23,661 @@
23
23
  }
24
24
 
25
25
  var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
- var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
26
+ var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
27
27
  var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
28
28
  var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
29
29
  var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
30
30
  var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
31
31
  var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
32
32
  var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
33
+ var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
33
34
 
34
- /*! *****************************************************************************
35
- Copyright (c) Microsoft Corporation.
36
-
37
- Permission to use, copy, modify, and/or distribute this software for any
38
- purpose with or without fee is hereby granted.
39
-
40
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
41
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
42
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
43
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
44
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
45
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
46
- PERFORMANCE OF THIS SOFTWARE.
47
- ***************************************************************************** */
48
- /* global Reflect, Promise */
49
- var extendStatics = function (d, b) {
50
- extendStatics = Object.setPrototypeOf ||
51
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
52
- function (d, b) { for (var p in b)
53
- if (Object.prototype.hasOwnProperty.call(b, p))
54
- d[p] = b[p]; };
55
- return extendStatics(d, b);
56
- };
57
- function __extends(d, b) {
58
- if (typeof b !== "function" && b !== null)
59
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
60
- extendStatics(d, b);
61
- function __() { this.constructor = d; }
62
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
63
- }
64
- var __assign = function () {
65
- __assign = Object.assign || function __assign(t) {
66
- for (var s, i = 1, n = arguments.length; i < n; i++) {
67
- s = arguments[i];
68
- for (var p in s)
69
- if (Object.prototype.hasOwnProperty.call(s, p))
70
- t[p] = s[p];
71
- }
72
- return t;
73
- };
74
- return __assign.apply(this, arguments);
75
- };
76
- function __rest(s, e) {
77
- var t = {};
78
- for (var p in s)
79
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
80
- t[p] = s[p];
81
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
82
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
83
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
84
- t[p[i]] = s[p[i]];
85
- }
86
- return t;
87
- }
88
- function __decorate(decorators, target, key, desc) {
89
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
90
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
91
- r = Reflect.decorate(decorators, target, key, desc);
92
- else
93
- for (var i = decorators.length - 1; i >= 0; i--)
94
- if (d = decorators[i])
95
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
96
- return c > 3 && r && Object.defineProperty(target, key, r), r;
97
- }
98
- function __param(paramIndex, decorator) {
99
- return function (target, key) { decorator(target, key, paramIndex); };
100
- }
101
- function __metadata(metadataKey, metadataValue) {
102
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
103
- return Reflect.metadata(metadataKey, metadataValue);
104
- }
105
- function __awaiter(thisArg, _arguments, P, generator) {
106
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
107
- return new (P || (P = Promise))(function (resolve, reject) {
108
- function fulfilled(value) { try {
109
- step(generator.next(value));
110
- }
111
- catch (e) {
112
- reject(e);
113
- } }
114
- function rejected(value) { try {
115
- step(generator["throw"](value));
116
- }
117
- catch (e) {
118
- reject(e);
119
- } }
120
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
121
- step((generator = generator.apply(thisArg, _arguments || [])).next());
122
- });
123
- }
124
- function __generator(thisArg, body) {
125
- var _ = { label: 0, sent: function () { if (t[0] & 1)
126
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
127
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
128
- function verb(n) { return function (v) { return step([n, v]); }; }
129
- function step(op) {
130
- if (f)
131
- throw new TypeError("Generator is already executing.");
132
- while (_)
133
- try {
134
- 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)
135
- return t;
136
- if (y = 0, t)
137
- op = [op[0] & 2, t.value];
138
- switch (op[0]) {
139
- case 0:
140
- case 1:
141
- t = op;
142
- break;
143
- case 4:
144
- _.label++;
145
- return { value: op[1], done: false };
146
- case 5:
147
- _.label++;
148
- y = op[1];
149
- op = [0];
150
- continue;
151
- case 7:
152
- op = _.ops.pop();
153
- _.trys.pop();
154
- continue;
155
- default:
156
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
157
- _ = 0;
158
- continue;
159
- }
160
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
161
- _.label = op[1];
162
- break;
163
- }
164
- if (op[0] === 6 && _.label < t[1]) {
165
- _.label = t[1];
166
- t = op;
167
- break;
168
- }
169
- if (t && _.label < t[2]) {
170
- _.label = t[2];
171
- _.ops.push(op);
172
- break;
173
- }
174
- if (t[2])
175
- _.ops.pop();
176
- _.trys.pop();
177
- continue;
178
- }
179
- op = body.call(thisArg, _);
180
- }
181
- catch (e) {
182
- op = [6, e];
183
- y = 0;
184
- }
185
- finally {
186
- f = t = 0;
187
- }
188
- if (op[0] & 5)
189
- throw op[1];
190
- return { value: op[0] ? op[1] : void 0, done: true };
191
- }
192
- }
193
- var __createBinding = Object.create ? (function (o, m, k, k2) {
194
- if (k2 === undefined)
195
- k2 = k;
196
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
197
- }) : (function (o, m, k, k2) {
198
- if (k2 === undefined)
199
- k2 = k;
200
- o[k2] = m[k];
201
- });
202
- function __exportStar(m, o) {
203
- for (var p in m)
204
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
205
- __createBinding(o, m, p);
206
- }
207
- function __values(o) {
208
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
209
- if (m)
210
- return m.call(o);
211
- if (o && typeof o.length === "number")
212
- return {
213
- next: function () {
214
- if (o && i >= o.length)
215
- o = void 0;
216
- return { value: o && o[i++], done: !o };
217
- }
218
- };
219
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
220
- }
221
- function __read(o, n) {
222
- var m = typeof Symbol === "function" && o[Symbol.iterator];
223
- if (!m)
224
- return o;
225
- var i = m.call(o), r, ar = [], e;
226
- try {
227
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
228
- ar.push(r.value);
229
- }
230
- catch (error) {
231
- e = { error: error };
232
- }
233
- finally {
234
- try {
235
- if (r && !r.done && (m = i["return"]))
236
- m.call(i);
237
- }
238
- finally {
239
- if (e)
240
- throw e.error;
241
- }
242
- }
243
- return ar;
244
- }
245
- /** @deprecated */
246
- function __spread() {
247
- for (var ar = [], i = 0; i < arguments.length; i++)
248
- ar = ar.concat(__read(arguments[i]));
249
- return ar;
250
- }
251
- /** @deprecated */
252
- function __spreadArrays() {
253
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
254
- s += arguments[i].length;
255
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
256
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
257
- r[k] = a[j];
258
- return r;
259
- }
260
- function __spreadArray(to, from, pack) {
261
- if (pack || arguments.length === 2)
262
- for (var i = 0, l = from.length, ar; i < l; i++) {
263
- if (ar || !(i in from)) {
264
- if (!ar)
265
- ar = Array.prototype.slice.call(from, 0, i);
266
- ar[i] = from[i];
267
- }
268
- }
269
- return to.concat(ar || Array.prototype.slice.call(from));
270
- }
271
- function __await(v) {
272
- return this instanceof __await ? (this.v = v, this) : new __await(v);
273
- }
274
- function __asyncGenerator(thisArg, _arguments, generator) {
275
- if (!Symbol.asyncIterator)
276
- throw new TypeError("Symbol.asyncIterator is not defined.");
277
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
278
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
279
- function verb(n) { if (g[n])
280
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
281
- function resume(n, v) { try {
282
- step(g[n](v));
283
- }
284
- catch (e) {
285
- settle(q[0][3], e);
286
- } }
287
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
288
- function fulfill(value) { resume("next", value); }
289
- function reject(value) { resume("throw", value); }
290
- function settle(f, v) { if (f(v), q.shift(), q.length)
291
- resume(q[0][0], q[0][1]); }
292
- }
293
- function __asyncDelegator(o) {
294
- var i, p;
295
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
296
- 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; }
297
- }
298
- function __asyncValues(o) {
299
- if (!Symbol.asyncIterator)
300
- throw new TypeError("Symbol.asyncIterator is not defined.");
301
- var m = o[Symbol.asyncIterator], i;
302
- 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);
303
- 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); }); }; }
304
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
305
- }
306
- function __makeTemplateObject(cooked, raw) {
307
- if (Object.defineProperty) {
308
- Object.defineProperty(cooked, "raw", { value: raw });
309
- }
310
- else {
311
- cooked.raw = raw;
312
- }
313
- return cooked;
314
- }
315
- ;
316
- var __setModuleDefault = Object.create ? (function (o, v) {
317
- Object.defineProperty(o, "default", { enumerable: true, value: v });
318
- }) : function (o, v) {
319
- o["default"] = v;
320
- };
321
- function __importStar(mod) {
322
- if (mod && mod.__esModule)
323
- return mod;
324
- var result = {};
325
- if (mod != null)
326
- for (var k in mod)
327
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
328
- __createBinding(result, mod, k);
329
- __setModuleDefault(result, mod);
330
- return result;
331
- }
332
- function __importDefault(mod) {
333
- return (mod && mod.__esModule) ? mod : { default: mod };
334
- }
335
- function __classPrivateFieldGet(receiver, state, kind, f) {
336
- if (kind === "a" && !f)
337
- throw new TypeError("Private accessor was defined without a getter");
338
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
339
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
340
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
341
- }
342
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
343
- if (kind === "m")
344
- throw new TypeError("Private method is not writable");
345
- if (kind === "a" && !f)
346
- throw new TypeError("Private accessor was defined without a setter");
347
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
348
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
349
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
35
+ /*! *****************************************************************************
36
+ Copyright (c) Microsoft Corporation.
37
+
38
+ Permission to use, copy, modify, and/or distribute this software for any
39
+ purpose with or without fee is hereby granted.
40
+
41
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
42
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
43
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
44
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
45
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
46
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
47
+ PERFORMANCE OF THIS SOFTWARE.
48
+ ***************************************************************************** */
49
+ /* global Reflect, Promise */
50
+ var extendStatics = function (d, b) {
51
+ extendStatics = Object.setPrototypeOf ||
52
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
53
+ function (d, b) { for (var p in b)
54
+ if (Object.prototype.hasOwnProperty.call(b, p))
55
+ d[p] = b[p]; };
56
+ return extendStatics(d, b);
57
+ };
58
+ function __extends(d, b) {
59
+ if (typeof b !== "function" && b !== null)
60
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
61
+ extendStatics(d, b);
62
+ function __() { this.constructor = d; }
63
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
64
+ }
65
+ var __assign = function () {
66
+ __assign = Object.assign || function __assign(t) {
67
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
68
+ s = arguments[i];
69
+ for (var p in s)
70
+ if (Object.prototype.hasOwnProperty.call(s, p))
71
+ t[p] = s[p];
72
+ }
73
+ return t;
74
+ };
75
+ return __assign.apply(this, arguments);
76
+ };
77
+ function __rest(s, e) {
78
+ var t = {};
79
+ for (var p in s)
80
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
81
+ t[p] = s[p];
82
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
83
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
84
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
85
+ t[p[i]] = s[p[i]];
86
+ }
87
+ return t;
88
+ }
89
+ function __decorate(decorators, target, key, desc) {
90
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
91
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
92
+ r = Reflect.decorate(decorators, target, key, desc);
93
+ else
94
+ for (var i = decorators.length - 1; i >= 0; i--)
95
+ if (d = decorators[i])
96
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
97
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
98
+ }
99
+ function __param(paramIndex, decorator) {
100
+ return function (target, key) { decorator(target, key, paramIndex); };
101
+ }
102
+ function __metadata(metadataKey, metadataValue) {
103
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
104
+ return Reflect.metadata(metadataKey, metadataValue);
105
+ }
106
+ function __awaiter(thisArg, _arguments, P, generator) {
107
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
108
+ return new (P || (P = Promise))(function (resolve, reject) {
109
+ function fulfilled(value) { try {
110
+ step(generator.next(value));
111
+ }
112
+ catch (e) {
113
+ reject(e);
114
+ } }
115
+ function rejected(value) { try {
116
+ step(generator["throw"](value));
117
+ }
118
+ catch (e) {
119
+ reject(e);
120
+ } }
121
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
122
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
123
+ });
124
+ }
125
+ function __generator(thisArg, body) {
126
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
127
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
128
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
129
+ function verb(n) { return function (v) { return step([n, v]); }; }
130
+ function step(op) {
131
+ if (f)
132
+ throw new TypeError("Generator is already executing.");
133
+ while (_)
134
+ try {
135
+ 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)
136
+ return t;
137
+ if (y = 0, t)
138
+ op = [op[0] & 2, t.value];
139
+ switch (op[0]) {
140
+ case 0:
141
+ case 1:
142
+ t = op;
143
+ break;
144
+ case 4:
145
+ _.label++;
146
+ return { value: op[1], done: false };
147
+ case 5:
148
+ _.label++;
149
+ y = op[1];
150
+ op = [0];
151
+ continue;
152
+ case 7:
153
+ op = _.ops.pop();
154
+ _.trys.pop();
155
+ continue;
156
+ default:
157
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
158
+ _ = 0;
159
+ continue;
160
+ }
161
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
162
+ _.label = op[1];
163
+ break;
164
+ }
165
+ if (op[0] === 6 && _.label < t[1]) {
166
+ _.label = t[1];
167
+ t = op;
168
+ break;
169
+ }
170
+ if (t && _.label < t[2]) {
171
+ _.label = t[2];
172
+ _.ops.push(op);
173
+ break;
174
+ }
175
+ if (t[2])
176
+ _.ops.pop();
177
+ _.trys.pop();
178
+ continue;
179
+ }
180
+ op = body.call(thisArg, _);
181
+ }
182
+ catch (e) {
183
+ op = [6, e];
184
+ y = 0;
185
+ }
186
+ finally {
187
+ f = t = 0;
188
+ }
189
+ if (op[0] & 5)
190
+ throw op[1];
191
+ return { value: op[0] ? op[1] : void 0, done: true };
192
+ }
193
+ }
194
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
195
+ if (k2 === undefined)
196
+ k2 = k;
197
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
198
+ }) : (function (o, m, k, k2) {
199
+ if (k2 === undefined)
200
+ k2 = k;
201
+ o[k2] = m[k];
202
+ });
203
+ function __exportStar(m, o) {
204
+ for (var p in m)
205
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
206
+ __createBinding(o, m, p);
207
+ }
208
+ function __values(o) {
209
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
210
+ if (m)
211
+ return m.call(o);
212
+ if (o && typeof o.length === "number")
213
+ return {
214
+ next: function () {
215
+ if (o && i >= o.length)
216
+ o = void 0;
217
+ return { value: o && o[i++], done: !o };
218
+ }
219
+ };
220
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
221
+ }
222
+ function __read(o, n) {
223
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
224
+ if (!m)
225
+ return o;
226
+ var i = m.call(o), r, ar = [], e;
227
+ try {
228
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
229
+ ar.push(r.value);
230
+ }
231
+ catch (error) {
232
+ e = { error: error };
233
+ }
234
+ finally {
235
+ try {
236
+ if (r && !r.done && (m = i["return"]))
237
+ m.call(i);
238
+ }
239
+ finally {
240
+ if (e)
241
+ throw e.error;
242
+ }
243
+ }
244
+ return ar;
245
+ }
246
+ /** @deprecated */
247
+ function __spread() {
248
+ for (var ar = [], i = 0; i < arguments.length; i++)
249
+ ar = ar.concat(__read(arguments[i]));
250
+ return ar;
251
+ }
252
+ /** @deprecated */
253
+ function __spreadArrays() {
254
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
255
+ s += arguments[i].length;
256
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
257
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
258
+ r[k] = a[j];
259
+ return r;
260
+ }
261
+ function __spreadArray(to, from, pack) {
262
+ if (pack || arguments.length === 2)
263
+ for (var i = 0, l = from.length, ar; i < l; i++) {
264
+ if (ar || !(i in from)) {
265
+ if (!ar)
266
+ ar = Array.prototype.slice.call(from, 0, i);
267
+ ar[i] = from[i];
268
+ }
269
+ }
270
+ return to.concat(ar || Array.prototype.slice.call(from));
271
+ }
272
+ function __await(v) {
273
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
274
+ }
275
+ function __asyncGenerator(thisArg, _arguments, generator) {
276
+ if (!Symbol.asyncIterator)
277
+ throw new TypeError("Symbol.asyncIterator is not defined.");
278
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
279
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
280
+ function verb(n) { if (g[n])
281
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
282
+ function resume(n, v) { try {
283
+ step(g[n](v));
284
+ }
285
+ catch (e) {
286
+ settle(q[0][3], e);
287
+ } }
288
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
289
+ function fulfill(value) { resume("next", value); }
290
+ function reject(value) { resume("throw", value); }
291
+ function settle(f, v) { if (f(v), q.shift(), q.length)
292
+ resume(q[0][0], q[0][1]); }
293
+ }
294
+ function __asyncDelegator(o) {
295
+ var i, p;
296
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
297
+ 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; }
298
+ }
299
+ function __asyncValues(o) {
300
+ if (!Symbol.asyncIterator)
301
+ throw new TypeError("Symbol.asyncIterator is not defined.");
302
+ var m = o[Symbol.asyncIterator], i;
303
+ 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);
304
+ 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); }); }; }
305
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
306
+ }
307
+ function __makeTemplateObject(cooked, raw) {
308
+ if (Object.defineProperty) {
309
+ Object.defineProperty(cooked, "raw", { value: raw });
310
+ }
311
+ else {
312
+ cooked.raw = raw;
313
+ }
314
+ return cooked;
315
+ }
316
+ ;
317
+ var __setModuleDefault = Object.create ? (function (o, v) {
318
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
319
+ }) : function (o, v) {
320
+ o["default"] = v;
321
+ };
322
+ function __importStar(mod) {
323
+ if (mod && mod.__esModule)
324
+ return mod;
325
+ var result = {};
326
+ if (mod != null)
327
+ for (var k in mod)
328
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
329
+ __createBinding(result, mod, k);
330
+ __setModuleDefault(result, mod);
331
+ return result;
332
+ }
333
+ function __importDefault(mod) {
334
+ return (mod && mod.__esModule) ? mod : { default: mod };
335
+ }
336
+ function __classPrivateFieldGet(receiver, state, kind, f) {
337
+ if (kind === "a" && !f)
338
+ throw new TypeError("Private accessor was defined without a getter");
339
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
340
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
341
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
342
+ }
343
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
344
+ if (kind === "m")
345
+ throw new TypeError("Private method is not writable");
346
+ if (kind === "a" && !f)
347
+ throw new TypeError("Private accessor was defined without a setter");
348
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
349
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
350
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
350
351
  }
351
352
 
352
- var GenericListComponent = /** @class */ (function () {
353
- // PepScreenSizeType = PepScreenSizeType;
354
- // screenSize: PepScreenSizeType;
355
- function GenericListComponent(dataConvertorService, layoutService, translate) {
356
- this.dataConvertorService = dataConvertorService;
357
- this.layoutService = layoutService;
358
- this.translate = translate;
359
- this.dataObjects = [];
360
- this.searchString = '';
361
- this.addPadding = false;
362
- this.title = '';
363
- this.inline = false;
364
- this.showSearch = false;
365
- this.allowSelection = true;
366
- this.noDataMessage = "No data";
367
- this.allowMultipleSelection = false;
368
- this.fieldClick = new i0.EventEmitter();
369
- // @Output()
370
- // onAddClicked = new EventEmitter<void>();
371
- this.menuHandlers = {};
372
- this.menuActions = [];
373
- this.layoutService.onResize$.pipe().subscribe(function (size) {
374
- // this.screenSize = size;
375
- });
376
- }
377
- GenericListComponent.prototype.loadMenuItems = function () {
378
- var _this = this;
379
- if (this.allowSelection) {
380
- this.getMenuActions().then(function (x) { return _this.menuActions = x; });
381
- }
382
- };
383
- GenericListComponent.prototype.convertToPepRowData = function (object, dataView$1) {
384
- var row = new i1.PepRowData();
385
- row.Fields = [];
386
- if ((dataView$1 === null || dataView$1 === void 0 ? void 0 : dataView$1.Fields) && dataView$1.Columns) {
387
- for (var index = 0; index < dataView$1.Fields.length; index++) {
388
- var field = dataView$1.Fields[index];
389
- row.Fields.push({
390
- ApiName: field.FieldID,
391
- Title: this.translate.instant(field.Title),
392
- XAlignment: 1,
393
- FormattedValue: (object[field.FieldID] || '').toString(),
394
- Value: (object[field.FieldID] || '').toString(),
395
- ColumnWidth: dataView$1.Columns[index].Width,
396
- AdditionalValue: '',
397
- OptionalValues: [],
398
- FieldType: dataView.DataViewFieldTypes[field.Type],
399
- ReadOnly: field.ReadOnly,
400
- Enabled: !field.ReadOnly
401
- });
402
- }
403
- }
404
- return row;
405
- };
406
- GenericListComponent.prototype.getMenuActions = function () {
407
- var _a;
408
- return __awaiter(this, void 0, void 0, function () {
409
- var actions, res;
410
- var _this = this;
411
- return __generator(this, function (_d) {
412
- switch (_d.label) {
413
- case 0: return [4 /*yield*/, ((_a = this.dataSource) === null || _a === void 0 ? void 0 : _a.getActions(this.getMenuObjects()))];
414
- case 1:
415
- actions = _d.sent();
416
- res = [];
417
- this.menuHandlers = {};
418
- actions === null || actions === void 0 ? void 0 : actions.forEach(function (item) {
419
- var uuid = i1.PepGuid.newGuid();
420
- _this.menuHandlers[uuid] = item.handler;
421
- res.push({
422
- key: uuid,
423
- text: item.title
424
- });
425
- });
426
- return [2 /*return*/, res];
427
- }
428
- });
429
- });
430
- };
431
- GenericListComponent.prototype.getMenuObjects = function () {
432
- var _this = this;
433
- var _a, _b, _c;
434
- var uuids = (_b = (_a = this.customList) === null || _a === void 0 ? void 0 : _a.getSelectedItemsData().rows) !== null && _b !== void 0 ? _b : [];
435
- if ((_c = this.customList) === null || _c === void 0 ? void 0 : _c.getIsAllSelectedForActions()) {
436
- uuids = this.dataObjects.map(function (obj) { return obj.UID; }).filter(function (x) { return uuids.indexOf(x) != -1; });
437
- }
438
- var objects = uuids.map(function (uuid) { return _this.getObject(uuid); });
439
- return objects;
440
- };
441
- GenericListComponent.prototype.getObject = function (uuid) {
442
- return this.dataObjects.find(function (obj) { return obj.UID === uuid; });
443
- };
444
- GenericListComponent.prototype.ngOnInit = function () {
445
- };
446
- GenericListComponent.prototype.ngAfterViewInit = function () {
447
- this.reload();
448
- };
449
- GenericListComponent.prototype.onMenuItemClicked = function (action) {
450
- this.menuHandlers[action.source.key](this.getMenuObjects());
451
- };
452
- GenericListComponent.prototype.onSearchChanged = function (event) {
453
- this.searchString = event.value;
454
- this.reload();
455
- };
456
- GenericListComponent.prototype.reload = function () {
457
- return __awaiter(this, void 0, void 0, function () {
458
- var _d, dataView_1, tableData, data, uiControl;
459
- var _this = this;
460
- return __generator(this, function (_e) {
461
- switch (_e.label) {
462
- case 0:
463
- if (!(this.customList && this.dataSource)) return [3 /*break*/, 3];
464
- _d = this;
465
- return [4 /*yield*/, this.dataSource.getList({
466
- searchString: this.searchString
467
- })];
468
- case 1:
469
- _d.dataObjects = _e.sent();
470
- return [4 /*yield*/, this.dataSource.getDataView()];
471
- case 2:
472
- dataView_1 = _e.sent();
473
- tableData = this.dataObjects.map(function (x) { return _this.convertToPepRowData(x, dataView_1); });
474
- data = this.dataConvertorService.convertListData(tableData);
475
- data.forEach(function (obj, i) {
476
- _this.dataObjects[i].UID = obj.UID;
477
- });
478
- uiControl = this.dataConvertorService.getUiControl(tableData[0]);
479
- this.customList.initListData(uiControl, data.length, data);
480
- this.loadMenuItems();
481
- _e.label = 3;
482
- case 3: return [2 /*return*/];
483
- }
484
- });
485
- });
486
- };
487
- GenericListComponent.prototype.selectedRowsChanged = function (selectedRowsCount) {
488
- this.loadMenuItems();
489
- };
490
- GenericListComponent.prototype.onCustomizeFieldClick = function (fieldClickEvent) {
491
- this.fieldClick.emit(fieldClickEvent);
492
- };
493
- return GenericListComponent;
494
- }());
495
- GenericListComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: GenericListComponent, deps: [{ token: i1__namespace.PepDataConvertorService }, { token: i1__namespace.PepLayoutService }, { token: i2__namespace.TranslateService }], target: i0__namespace.ɵɵFactoryTarget.Component });
496
- GenericListComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: GenericListComponent, selector: "pep-generic-list", inputs: { dataSource: "dataSource", addPadding: "addPadding", title: "title", inline: "inline", showSearch: "showSearch", allowSelection: "allowSelection", noDataMessage: "noDataMessage", allowMultipleSelection: "allowMultipleSelection" }, outputs: { fieldClick: "fieldClick" }, viewQueries: [{ propertyName: "customList", first: true, predicate: i5.PepListComponent, descendants: true }], ngImport: i0__namespace, template: "<div *ngIf=\"inline\" class=\"inline-container\" [ngClass]=\"{ 'add-padding': addPadding }\">\n <div class=\"inline-top-bar-container\">\n <ng-container *ngTemplateOutlet=\"topBarTemplate\"></ng-container>\n </div>\n <ng-container *ngTemplateOutlet=\"listTemplate\"></ng-container>\n</div>\n\n<pep-page-layout *ngIf=\"!inline\" [addPadding]=\"addPadding\">\n <ng-container pep-top-area>\n <ng-container *ngTemplateOutlet=\"topBarTemplate\"></ng-container>\n </ng-container>\n\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 <pep-list-actions [sizeType]=\"inline ? 'sm' : 'md'\" [actions]=\"menuActions\" (actionClick)=\"onMenuItemClicked($event)\"></pep-list-actions>\n <pep-list-total [sizeType]=\"inline ? 'sm' : 'md'\" [totalRows]=\"customList ? customList.totalRows : -1\"></pep-list-total>\n\n <pep-search *ngIf=\"showSearch\" [sizeType]=\"inline ? 'sm' : 'md'\" (search)=\"onSearchChanged($event)\">\n </pep-search>\n </pep-top-bar>\n</ng-template>\n\n<ng-template #listTemplate>\n <div #listContainer class=\"list-container\">\n <pep-list viewType=\"table\" [supportSorting]=\"false\"\n [selectionTypeForActions]=\"allowMultipleSelection ? 'multi' : (allowSelection ? 'single' : 'none')\" [noDataFoundMsg]=\"noDataMessage\"\n (fieldClick)=\"onCustomizeFieldClick($event)\"\n (selectedItemsChange)=\"selectedRowsChanged($event)\">\n </pep-list>\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}.inline-container.add-padding{padding-inline:var(--pep-spacing-lg, 1rem)}.inline-container ::ng-deep .pep-top-bar-container.inline{height:auto;overflow:hidden}\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"] }, { type: i5__namespace.PepListActionsComponent, selector: "pep-list-actions", inputs: ["actions", "sizeType", "xPosition", "hidden"], outputs: ["actionClick", "stateChange", "menuClick"] }, { type: i5__namespace.PepListTotalComponent, selector: "pep-list-total", inputs: ["totalRows", "totalAmount", "isMapView", "sizeType"] }, { type: i6__namespace.PepSearchComponent, selector: "pep-search", inputs: ["triggerOn", "autoCompleteTop", "shrinkInSmallScreen", "sizeType", "autoCompleteValues", "value", "searchControl", "useAsWebComponent"], outputs: ["search", "autocompleteChange", "stateChange"] }, { type: i5__namespace.PepListComponent, selector: "pep-list", inputs: ["noDataFoundMsg", "selectionTypeForActions", "showCardSelection", "hideAllSelectionInMulti", "cardSize", "firstFieldAsLink", "supportSorting", "supportResizing", "disabled", "lockItemInnerEvents", "printMode", "isReport", "totalsRow", "pagerType", "pageSize", "pageIndex", "scrollAnimationTime", "scrollDebounceTime", "scrollThrottlingTime", "viewType", "parentScroll", "lockEvents", "useAsWebComponent"], outputs: ["itemClick", "fieldClick", "valueChange", "sortingChange", "selectedItemsChange", "selectedItemChange", "selectAllClick", "listLoad", "loadItems", "loadPage", "startIndexChange"] }], directives: [{ type: i7__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i7__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
497
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: GenericListComponent, decorators: [{
498
- type: i0.Component,
499
- args: [{
500
- selector: 'pep-generic-list',
501
- templateUrl: './generic-list.component.html',
502
- styleUrls: ['./generic-list.component.scss'],
503
- }]
504
- }], ctorParameters: function () { return [{ type: i1__namespace.PepDataConvertorService }, { type: i1__namespace.PepLayoutService }, { type: i2__namespace.TranslateService }]; }, propDecorators: { customList: [{
505
- type: i0.ViewChild,
506
- args: [i5.PepListComponent]
507
- }], dataSource: [{
508
- type: i0.Input
509
- }], addPadding: [{
510
- type: i0.Input
511
- }], title: [{
512
- type: i0.Input
513
- }], inline: [{
514
- type: i0.Input
515
- }], showSearch: [{
516
- type: i0.Input
517
- }], allowSelection: [{
518
- type: i0.Input
519
- }], noDataMessage: [{
520
- type: i0.Input
521
- }], allowMultipleSelection: [{
522
- type: i0.Input
523
- }], fieldClick: [{
524
- type: i0.Output
353
+ var GenericListComponent = /** @class */ (function () {
354
+ function GenericListComponent(dataConvertorService, layoutService, translate) {
355
+ var _this = this;
356
+ this.dataConvertorService = dataConvertorService;
357
+ this.layoutService = layoutService;
358
+ this.translate = translate;
359
+ this.data = {
360
+ getList: function (options) { return __awaiter(_this, void 0, void 0, function () {
361
+ return __generator(this, function (_b) {
362
+ return [2 /*return*/, []];
363
+ });
364
+ }); },
365
+ dataView: {
366
+ Type: 'Grid'
367
+ },
368
+ totalCount: 0
369
+ };
370
+ this.actions = {
371
+ get: function (data) { return __awaiter(_this, void 0, void 0, function () {
372
+ return __generator(this, function (_b) {
373
+ return [2 /*return*/, []];
374
+ });
375
+ }); }
376
+ };
377
+ this.addPadding = false;
378
+ this.title = '';
379
+ this.inline = false;
380
+ this.showSearch = false;
381
+ this.allowSelection = true;
382
+ this.noDataFoundMsg = this.translate.instant('GENERIC_LIST.NO_DATA');
383
+ this.allowMultipleSelection = false;
384
+ this.firstFieldAsLink = false;
385
+ this.supportSorting = false;
386
+ this.showTopBar = true;
387
+ this.breadCrumbsItems = new Array();
388
+ this.pager = {
389
+ type: 'scroll',
390
+ size: i5.DEFAULT_PAGE_SIZE,
391
+ index: 0
392
+ };
393
+ this.fieldClick = new i0.EventEmitter();
394
+ this.valueChange = new i0.EventEmitter();
395
+ this.breadCrumbItemClick = new i0.EventEmitter();
396
+ // dataObjects: any[] = [];
397
+ this.searchString = '';
398
+ this.menuHandlers = {};
399
+ this.menuActions = [];
400
+ this.hasRows = true;
401
+ this.layoutService.onResize$.pipe().subscribe(function (size) {
402
+ //
403
+ });
404
+ }
405
+ GenericListComponent.prototype.loadMenuItems = function () {
406
+ var _this = this;
407
+ if (this.allowSelection) {
408
+ this.getMenuActions().then(function (x) { return _this.menuActions = x; });
409
+ }
410
+ };
411
+ GenericListComponent.prototype.convertToPepRowData = function (object, dataView$1) {
412
+ var row = new i1.PepRowData();
413
+ row.Fields = [];
414
+ if ((dataView$1 === null || dataView$1 === void 0 ? void 0 : dataView$1.Fields) && dataView$1.Columns) {
415
+ for (var index = 0; index < dataView$1.Fields.length; index++) {
416
+ var field = dataView$1.Fields[index];
417
+ row.Fields.push({
418
+ ApiName: field.FieldID,
419
+ Title: this.translate.instant(field.Title),
420
+ XAlignment: 1,
421
+ FormattedValue: (object[field.FieldID] || '').toString(),
422
+ Value: (object[field.FieldID] || '').toString(),
423
+ ColumnWidth: dataView$1.Columns[index].Width,
424
+ AdditionalValue: '',
425
+ OptionalValues: [],
426
+ FieldType: dataView.DataViewFieldTypes[field.Type],
427
+ ReadOnly: field.ReadOnly,
428
+ Enabled: !field.ReadOnly
429
+ });
430
+ }
431
+ }
432
+ return row;
433
+ };
434
+ GenericListComponent.prototype.getMenuActions = function () {
435
+ return __awaiter(this, void 0, void 0, function () {
436
+ var actions, res;
437
+ var _this = this;
438
+ return __generator(this, function (_b) {
439
+ switch (_b.label) {
440
+ case 0: return [4 /*yield*/, this.actions.get(this.getMenuObjects())];
441
+ case 1:
442
+ actions = _b.sent();
443
+ res = [];
444
+ this.menuHandlers = {};
445
+ actions === null || actions === void 0 ? void 0 : actions.forEach(function (item) {
446
+ var uuid = i1.PepGuid.newGuid();
447
+ _this.menuHandlers[uuid] = item.handler;
448
+ res.push({
449
+ key: uuid,
450
+ text: item.title
451
+ });
452
+ });
453
+ return [2 /*return*/, res];
454
+ }
455
+ });
456
+ });
457
+ };
458
+ GenericListComponent.prototype.getMenuObjects = function () {
459
+ var _a;
460
+ var selectedData = ((_a = this.customList) === null || _a === void 0 ? void 0 : _a.getSelectedItemsData()) || new i5.PepSelectionData();
461
+ // if (selectedData.rows?.length > 0 && this.customList?.getIsAllSelectedForActions()) {
462
+ // selectedData.rows = this.dataObjects.map(obj => obj.UID).filter(x => selectedData.rows.indexOf(x) !== -1);
463
+ // }
464
+ // if (selectedData.rows?.length > 0) {
465
+ // selectedData.rows = selectedData.rows.map(uuid => this.getObject(uuid));
466
+ // }
467
+ return selectedData;
468
+ };
469
+ GenericListComponent.prototype.getObject = function (uuid) {
470
+ var _a;
471
+ return (_a = this.customList) === null || _a === void 0 ? void 0 : _a.getItemDataByID(uuid); // this.dataObjects.find(obj => obj.UID === uuid);
472
+ };
473
+ GenericListComponent.prototype.ngOnInit = function () {
474
+ //
475
+ };
476
+ GenericListComponent.prototype.ngAfterViewInit = function () {
477
+ this.reload();
478
+ };
479
+ GenericListComponent.prototype.onMenuItemClicked = function (action) {
480
+ this.menuHandlers[action.source.key](this.getMenuObjects());
481
+ };
482
+ GenericListComponent.prototype.onSearchChanged = function (event) {
483
+ this.searchString = event.value;
484
+ this.reload();
485
+ };
486
+ GenericListComponent.prototype.reload = function () {
487
+ return __awaiter(this, void 0, void 0, function () {
488
+ var fromIndex, toIndex, dataList, convertedList, uiControl;
489
+ return __generator(this, function (_b) {
490
+ switch (_b.label) {
491
+ case 0:
492
+ if (!(this.customList && this.data.totalCount > 0)) return [3 /*break*/, 2];
493
+ fromIndex = 0;
494
+ toIndex = Math.min(fromIndex + this.pager.size - 1, this.data.totalCount - 1);
495
+ return [4 /*yield*/, this.getDataList(fromIndex, toIndex)];
496
+ case 1:
497
+ dataList = _b.sent();
498
+ convertedList = this.dataConvertorService.convertListData(dataList);
499
+ uiControl = this.dataConvertorService.getUiControl(dataList[0]);
500
+ this.customList.initListData(uiControl, this.data.totalCount, convertedList);
501
+ this.loadMenuItems();
502
+ this.hasRows = dataList.length > 0 ? true : false;
503
+ return [3 /*break*/, 3];
504
+ case 2:
505
+ this.hasRows = false;
506
+ _b.label = 3;
507
+ case 3: return [2 /*return*/];
508
+ }
509
+ });
510
+ });
511
+ };
512
+ GenericListComponent.prototype.onSelectedRowsChanged = function (selectedRowsCount) {
513
+ this.loadMenuItems();
514
+ };
515
+ GenericListComponent.prototype.onCustomizeFieldClick = function (fieldClickEvent) {
516
+ this.fieldClick.emit(fieldClickEvent);
517
+ };
518
+ GenericListComponent.prototype.onBreadCrumbItemClick = function (event) {
519
+ this.breadCrumbItemClick.emit(event);
520
+ };
521
+ GenericListComponent.prototype.onValueChanged = function (event) {
522
+ this.valueChange.emit(event);
523
+ };
524
+ GenericListComponent.prototype.getDataList = function (fromIndex, toIndex) {
525
+ return __awaiter(this, void 0, void 0, function () {
526
+ var dataList, dataView;
527
+ var _this = this;
528
+ return __generator(this, function (_b) {
529
+ switch (_b.label) {
530
+ case 0: return [4 /*yield*/, this.data.getList({
531
+ searchString: this.searchString,
532
+ fromIndex: fromIndex,
533
+ toIndex: toIndex
534
+ })];
535
+ case 1:
536
+ dataList = _b.sent();
537
+ dataView = this.data.dataView;
538
+ return [2 /*return*/, dataList.map(function (item) { return _this.convertToPepRowData(item, dataView); })];
539
+ }
540
+ });
541
+ });
542
+ };
543
+ GenericListComponent.prototype.onLoadItems = function (event) {
544
+ var _a;
545
+ return __awaiter(this, void 0, void 0, function () {
546
+ var dataList, data;
547
+ return __generator(this, function (_b) {
548
+ switch (_b.label) {
549
+ case 0: return [4 /*yield*/, this.getDataList(event.fromIndex, event.toIndex)];
550
+ case 1:
551
+ dataList = _b.sent();
552
+ data = this.dataConvertorService.convertListData(dataList);
553
+ (_a = this.customList) === null || _a === void 0 ? void 0 : _a.updateItems(data, event);
554
+ return [2 /*return*/];
555
+ }
556
+ });
557
+ });
558
+ };
559
+ GenericListComponent.prototype.onLoadPage = function (event) {
560
+ var _a;
561
+ return __awaiter(this, void 0, void 0, function () {
562
+ var fromIndex, toIndex, dataList, data;
563
+ return __generator(this, function (_b) {
564
+ switch (_b.label) {
565
+ case 0:
566
+ fromIndex = event.pageIndex * event.pageSize;
567
+ toIndex = Math.min(fromIndex + event.pageSize - 1, this.data.totalCount - 1);
568
+ return [4 /*yield*/, this.getDataList(fromIndex, toIndex)];
569
+ case 1:
570
+ dataList = _b.sent();
571
+ data = this.dataConvertorService.convertListData(dataList);
572
+ (_a = this.customList) === null || _a === void 0 ? void 0 : _a.updatePage(data, event);
573
+ return [2 /*return*/];
574
+ }
575
+ });
576
+ });
577
+ };
578
+ return GenericListComponent;
579
+ }());
580
+ GenericListComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: GenericListComponent, deps: [{ token: i1__namespace.PepDataConvertorService }, { token: i1__namespace.PepLayoutService }, { token: i2__namespace.TranslateService }], target: i0__namespace.ɵɵFactoryTarget.Component });
581
+ GenericListComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: GenericListComponent, selector: "pep-generic-list", inputs: { data: "data", actions: "actions", addPadding: "addPadding", title: "title", inline: "inline", showSearch: "showSearch", allowSelection: "allowSelection", noDataFoundMsg: "noDataFoundMsg", allowMultipleSelection: "allowMultipleSelection", firstFieldAsLink: "firstFieldAsLink", supportSorting: "supportSorting", showTopBar: "showTopBar", breadCrumbsItems: "breadCrumbsItems", pager: "pager" }, outputs: { fieldClick: "fieldClick", valueChange: "valueChange", breadCrumbItemClick: "breadCrumbItemClick" }, viewQueries: [{ propertyName: "customList", first: true, predicate: i5.PepListComponent, descendants: true }], ngImport: i0__namespace, template: "<div *ngIf=\"inline\" class=\"inline-container\" [ngClass]=\"{ 'add-padding': addPadding }\">\r\n <div>\r\n <div *ngIf=\"showTopBar\" class=\"inline-top-bar-container\">\r\n <ng-container *ngTemplateOutlet=\"topBarTemplate\"></ng-container>\r\n </div>\r\n <ng-container *ngIf=\"breadCrumbsItems && breadCrumbsItems.length > 0\">\r\n <ng-container *ngTemplateOutlet=\"breadCrumbsTemplate\"></ng-container>\r\n </ng-container>\r\n </div>\r\n <ng-container *ngTemplateOutlet=\"listTemplate\"></ng-container>\r\n</div>\r\n\r\n<pep-page-layout *ngIf=\"!inline\" [addPadding]=\"addPadding\">\r\n <ng-container *ngIf=\"showTopBar\" pep-top-area>\r\n <ng-container *ngTemplateOutlet=\"topBarTemplate\"></ng-container>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"breadCrumbsItems && breadCrumbsItems.length > 0\" pep-top-area>\r\n <ng-container *ngTemplateOutlet=\"breadCrumbsTemplate\"></ng-container>\r\n </ng-container>\r\n\r\n <div pep-main-area class=\"main-area-container\">\r\n <ng-container *ngTemplateOutlet=\"listTemplate\"></ng-container>\r\n </div>\r\n</pep-page-layout>\r\n\r\n<ng-template #topBarTemplate>\r\n <pep-top-bar [title]=\"title\" [inline]=\"inline\">\r\n <div header-start-content>\r\n <ng-content select=\"[left-buttons]\"></ng-content>\r\n </div>\r\n <div header-end-content>\r\n <ng-content select=\"[right-buttons]\"></ng-content>\r\n </div>\r\n <pep-list-actions [sizeType]=\"inline ? 'sm' : 'md'\" [actions]=\"menuActions\"\r\n (actionClick)=\"onMenuItemClicked($event)\"></pep-list-actions>\r\n <pep-list-total [sizeType]=\"inline ? 'sm' : 'md'\" [totalRows]=\"customList ? customList.totalRows : -1\">\r\n </pep-list-total>\r\n\r\n <pep-search *ngIf=\"showSearch\" [sizeType]=\"inline ? 'sm' : 'md'\" (search)=\"onSearchChanged($event)\">\r\n </pep-search>\r\n </pep-top-bar>\r\n</ng-template>\r\n\r\n<ng-template #breadCrumbsTemplate>\r\n <pep-bread-crumbs class=\"bread-crumbs\" [items]=\"breadCrumbsItems\" [addSpacing]=\"true\" [displayType]=\"'items'\"\r\n (itemClick)=\"onBreadCrumbItemClick($event)\"></pep-bread-crumbs>\r\n</ng-template>\r\n\r\n<ng-template #listTemplate>\r\n <div class=\"list-container\">\r\n <pep-list #customList *ngIf=\"hasRows\" viewType=\"table\" [supportSorting]=\"supportSorting\"\r\n [selectionTypeForActions]=\"allowMultipleSelection ? 'multi' : (allowSelection ? 'single' : 'none')\"\r\n [pagerType]=\"pager.type\" [pageSize]=\"pager.size\" [pageIndex]=\"pager.index\" [noDataFoundMsg]=\"noDataFoundMsg\"\r\n (fieldClick)=\"onCustomizeFieldClick($event)\" [firstFieldAsLink]=\"firstFieldAsLink\"\r\n (selectedItemsChange)=\"onSelectedRowsChanged($event)\" (loadItems)=\"onLoadItems($event)\"\r\n (loadPage)=\"onLoadPage($event)\" (valueChange)=\"onValueChanged($event)\">\r\n </pep-list>\r\n <ng-container *ngIf=\"!hasRows\">\r\n <div class=\"noDataFoundMsg\">\r\n <h2>{{noDataFoundMsg}}</h2>\r\n </div>\r\n </ng-container>\r\n </div>\r\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}.inline-container.add-padding{padding-inline:var(--pep-spacing-lg, 1rem)}.inline-container ::ng-deep .pep-top-bar-container.inline{height:auto;overflow:hidden}.noDataFoundMsg{height:100%;width:100%;background:rgba(26,26,26,.12);display:flex;justify-content:center;align-items:center}.bread-crumbs{padding:1rem 0 .5rem}\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"] }, { type: i5__namespace.PepListActionsComponent, selector: "pep-list-actions", inputs: ["actions", "sizeType", "xPosition", "hidden"], outputs: ["actionClick", "stateChange", "menuClick"] }, { type: i5__namespace.PepListTotalComponent, selector: "pep-list-total", inputs: ["totalRows", "totalAmount", "isMapView", "sizeType"] }, { type: i6__namespace.PepSearchComponent, selector: "pep-search", inputs: ["triggerOn", "autoCompleteTop", "shrinkInSmallScreen", "sizeType", "autoCompleteValues", "value", "searchControl", "useAsWebComponent"], outputs: ["search", "autocompleteChange", "stateChange"] }, { type: i7__namespace.PepBreadCrumbsComponent, selector: "pep-bread-crumbs", inputs: ["addSpacing", "items", "displayType"], outputs: ["itemClick"] }, { type: i5__namespace.PepListComponent, selector: "pep-list", inputs: ["noDataFoundMsg", "selectionTypeForActions", "showCardSelection", "hideAllSelectionInMulti", "cardSize", "firstFieldAsLink", "supportSorting", "supportResizing", "disabled", "lockItemInnerEvents", "printMode", "isReport", "totalsRow", "pagerType", "pageSize", "pageIndex", "scrollAnimationTime", "scrollDebounceTime", "scrollThrottlingTime", "viewType", "parentScroll", "lockEvents", "useAsWebComponent"], outputs: ["itemClick", "fieldClick", "valueChange", "sortingChange", "selectedItemsChange", "selectedItemChange", "selectAllClick", "listLoad", "loadItems", "loadPage", "startIndexChange"] }], directives: [{ type: i8__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i8__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i8__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
582
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: GenericListComponent, decorators: [{
583
+ type: i0.Component,
584
+ args: [{
585
+ selector: 'pep-generic-list',
586
+ templateUrl: './generic-list.component.html',
587
+ styleUrls: ['./generic-list.component.scss'],
588
+ }]
589
+ }], ctorParameters: function () { return [{ type: i1__namespace.PepDataConvertorService }, { type: i1__namespace.PepLayoutService }, { type: i2__namespace.TranslateService }]; }, propDecorators: { customList: [{
590
+ type: i0.ViewChild,
591
+ args: [i5.PepListComponent]
592
+ }], data: [{
593
+ type: i0.Input
594
+ }], actions: [{
595
+ type: i0.Input
596
+ }], addPadding: [{
597
+ type: i0.Input
598
+ }], title: [{
599
+ type: i0.Input
600
+ }], inline: [{
601
+ type: i0.Input
602
+ }], showSearch: [{
603
+ type: i0.Input
604
+ }], allowSelection: [{
605
+ type: i0.Input
606
+ }], noDataFoundMsg: [{
607
+ type: i0.Input
608
+ }], allowMultipleSelection: [{
609
+ type: i0.Input
610
+ }], firstFieldAsLink: [{
611
+ type: i0.Input
612
+ }], supportSorting: [{
613
+ type: i0.Input
614
+ }], showTopBar: [{
615
+ type: i0.Input
616
+ }], breadCrumbsItems: [{
617
+ type: i0.Input
618
+ }], pager: [{
619
+ type: i0.Input
620
+ }], fieldClick: [{
621
+ type: i0.Output
622
+ }], valueChange: [{
623
+ type: i0.Output
624
+ }], breadCrumbItemClick: [{
625
+ type: i0.Output
525
626
  }] } });
526
627
 
527
- var PepGenericListModule = /** @class */ (function () {
528
- function PepGenericListModule() {
529
- }
530
- return PepGenericListModule;
531
- }());
532
- PepGenericListModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericListModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
533
- PepGenericListModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericListModule, declarations: [GenericListComponent], imports: [i7.CommonModule,
534
- i1.PepNgxLibModule,
535
- i5.PepListModule,
536
- form.PepFormModule,
537
- menu.PepMenuModule,
538
- i3.PepPageLayoutModule,
539
- i4.PepTopBarModule,
540
- i6.PepSearchModule], exports: [GenericListComponent] });
541
- PepGenericListModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericListModule, imports: [[
542
- i7.CommonModule,
543
- i1.PepNgxLibModule,
544
- i5.PepListModule,
545
- form.PepFormModule,
546
- menu.PepMenuModule,
547
- i3.PepPageLayoutModule,
548
- i4.PepTopBarModule,
549
- i6.PepSearchModule
550
- ]] });
551
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericListModule, decorators: [{
552
- type: i0.NgModule,
553
- args: [{
554
- declarations: [
555
- GenericListComponent
556
- ],
557
- imports: [
558
- i7.CommonModule,
559
- i1.PepNgxLibModule,
560
- i5.PepListModule,
561
- form.PepFormModule,
562
- menu.PepMenuModule,
563
- i3.PepPageLayoutModule,
564
- i4.PepTopBarModule,
565
- i6.PepSearchModule
566
- ],
567
- exports: [GenericListComponent],
568
- }]
628
+ var PepGenericListModule = /** @class */ (function () {
629
+ function PepGenericListModule() {
630
+ }
631
+ return PepGenericListModule;
632
+ }());
633
+ PepGenericListModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericListModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
634
+ PepGenericListModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericListModule, declarations: [GenericListComponent], imports: [i8.CommonModule,
635
+ i1.PepNgxLibModule,
636
+ i5.PepListModule,
637
+ form.PepFormModule,
638
+ menu.PepMenuModule,
639
+ i3.PepPageLayoutModule,
640
+ i4.PepTopBarModule,
641
+ i6.PepSearchModule,
642
+ i7.PepBreadCrumbsModule], exports: [GenericListComponent] });
643
+ PepGenericListModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericListModule, imports: [[
644
+ i8.CommonModule,
645
+ i1.PepNgxLibModule,
646
+ i5.PepListModule,
647
+ form.PepFormModule,
648
+ menu.PepMenuModule,
649
+ i3.PepPageLayoutModule,
650
+ i4.PepTopBarModule,
651
+ i6.PepSearchModule,
652
+ i7.PepBreadCrumbsModule
653
+ ]] });
654
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericListModule, decorators: [{
655
+ type: i0.NgModule,
656
+ args: [{
657
+ declarations: [
658
+ GenericListComponent
659
+ ],
660
+ imports: [
661
+ i8.CommonModule,
662
+ i1.PepNgxLibModule,
663
+ i5.PepListModule,
664
+ form.PepFormModule,
665
+ menu.PepMenuModule,
666
+ i3.PepPageLayoutModule,
667
+ i4.PepTopBarModule,
668
+ i6.PepSearchModule,
669
+ i7.PepBreadCrumbsModule
670
+ ],
671
+ exports: [GenericListComponent],
672
+ }]
569
673
  }] });
570
674
 
571
- /*
572
- * Public API Surface of ngx-composite-lib/generic-list
675
+ /*
676
+ * Public API Surface of ngx-composite-lib/generic-list
573
677
  */
574
678
 
575
- /**
576
- * Generated bundle index. Do not edit.
679
+ /**
680
+ * Generated bundle index. Do not edit.
577
681
  */
578
682
 
579
683
  exports.GenericListComponent = GenericListComponent;