@pepperi-addons/ngx-composite-lib 0.0.16-beta.5 → 0.0.16-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/pepperi-addons-ngx-composite-lib-color-settings.umd.js +123 -123
- package/bundles/pepperi-addons-ngx-composite-lib-dimx-export.umd.js +835 -835
- package/bundles/pepperi-addons-ngx-composite-lib-dimx-export.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-composite-lib-file-status-panel.umd.js +84 -84
- package/bundles/pepperi-addons-ngx-composite-lib-generic-form.umd.js +647 -647
- package/bundles/pepperi-addons-ngx-composite-lib-generic-list.umd.js +961 -961
- package/bundles/pepperi-addons-ngx-composite-lib-generic-list.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-composite-lib-group-buttons-settings.umd.js +176 -176
- package/bundles/pepperi-addons-ngx-composite-lib-shadow-settings.umd.js +117 -117
- package/bundles/pepperi-addons-ngx-composite-lib.umd.js +538 -538
- package/color-settings/color-settings.component.d.ts +22 -22
- package/color-settings/color-settings.model.d.ts +5 -5
- package/color-settings/color-settings.module.d.ts +12 -12
- package/color-settings/pepperi-addons-ngx-composite-lib-color-settings.d.ts +5 -5
- package/color-settings/public-api.d.ts +3 -3
- package/core/common/directives/index.d.ts +1 -1
- package/core/common/directives/public-api.d.ts +1 -1
- package/core/common/directives/reset-configuration-field.directive.d.ts +38 -38
- package/core/common/index.d.ts +1 -1
- package/core/common/public-api.d.ts +2 -2
- package/core/common/services/index.d.ts +1 -1
- package/core/common/services/public-api.d.ts +1 -1
- package/core/common/services/utilities.service.d.ts +6 -6
- package/core/index.d.ts +1 -1
- package/core/public-api.d.ts +1 -1
- package/dimx-export/dimx.component.d.ts +86 -86
- package/dimx-export/dimx.model.d.ts +5 -5
- package/dimx-export/dimx.module.d.ts +16 -16
- package/dimx-export/dimx.service.d.ts +20 -21
- package/dimx-export/index.d.ts +1 -1
- package/dimx-export/pepperi-addons-ngx-composite-lib-dimx-export.d.ts +5 -5
- package/dimx-export/public-api.d.ts +3 -3
- package/esm2015/color-settings/color-settings.component.js +81 -81
- package/esm2015/color-settings/color-settings.model.js +8 -8
- package/esm2015/color-settings/color-settings.module.js +39 -39
- package/esm2015/color-settings/pepperi-addons-ngx-composite-lib-color-settings.js +4 -4
- package/esm2015/color-settings/public-api.js +6 -6
- package/esm2015/core/common/directives/index.js +4 -4
- package/esm2015/core/common/directives/public-api.js +4 -4
- package/esm2015/core/common/directives/reset-configuration-field.directive.js +135 -135
- package/esm2015/core/common/index.js +4 -4
- package/esm2015/core/common/public-api.js +5 -5
- package/esm2015/core/common/services/index.js +4 -4
- package/esm2015/core/common/services/public-api.js +4 -4
- package/esm2015/core/common/services/utilities.service.js +18 -18
- package/esm2015/core/index.js +4 -4
- package/esm2015/core/public-api.js +4 -4
- package/esm2015/dimx-export/dimx.component.js +335 -335
- package/esm2015/dimx-export/dimx.model.js +7 -7
- package/esm2015/dimx-export/dimx.module.js +52 -52
- package/esm2015/dimx-export/dimx.service.js +50 -50
- package/esm2015/dimx-export/index.js +4 -4
- package/esm2015/dimx-export/pepperi-addons-ngx-composite-lib-dimx-export.js +4 -4
- package/esm2015/dimx-export/public-api.js +6 -6
- package/esm2015/file-status-panel/file-status-panel.component.js +38 -38
- package/esm2015/file-status-panel/file-status-panel.model.js +8 -8
- package/esm2015/file-status-panel/file-status-panel.module.js +47 -47
- package/esm2015/file-status-panel/pepperi-addons-ngx-composite-lib-file-status-panel.js +4 -4
- package/esm2015/file-status-panel/public-api.js +6 -6
- package/esm2015/generic-form/generic-form.component.js +189 -189
- package/esm2015/generic-form/generic-form.model.js +1 -1
- package/esm2015/generic-form/generic-form.module.js +73 -73
- package/esm2015/generic-form/generic-form.service.js +67 -67
- package/esm2015/generic-form/index.js +4 -4
- package/esm2015/generic-form/pepperi-addons-ngx-composite-lib-generic-form.js +4 -4
- package/esm2015/generic-form/public-api.js +7 -7
- package/esm2015/generic-list/generic-list.component.js +417 -417
- package/esm2015/generic-list/generic-list.model.js +1 -1
- package/esm2015/generic-list/generic-list.module.js +68 -68
- package/esm2015/generic-list/generic-list.service.js +113 -113
- package/esm2015/generic-list/pepperi-addons-ngx-composite-lib-generic-list.js +4 -4
- package/esm2015/generic-list/public-api.js +7 -7
- package/esm2015/group-buttons-settings/group-buttons-settings.component.js +134 -134
- package/esm2015/group-buttons-settings/group-buttons-settings.model.js +1 -1
- package/esm2015/group-buttons-settings/group-buttons-settings.module.js +46 -46
- package/esm2015/group-buttons-settings/pepperi-addons-ngx-composite-lib-group-buttons-settings.js +4 -4
- package/esm2015/group-buttons-settings/public-api.js +6 -6
- package/esm2015/ngx-composite-lib.module.js +44 -44
- package/esm2015/pepperi-addons-ngx-composite-lib.js +4 -4
- package/esm2015/public-api.js +5 -5
- package/esm2015/shadow-settings/pepperi-addons-ngx-composite-lib-shadow-settings.js +4 -4
- package/esm2015/shadow-settings/public-api.js +6 -6
- package/esm2015/shadow-settings/shadow-settings.component.js +72 -72
- package/esm2015/shadow-settings/shadow-settings.model.js +7 -7
- package/esm2015/shadow-settings/shadow-settings.module.js +43 -43
- package/fesm2015/pepperi-addons-ngx-composite-lib-color-settings.js +113 -113
- package/fesm2015/pepperi-addons-ngx-composite-lib-dimx-export.js +415 -415
- package/fesm2015/pepperi-addons-ngx-composite-lib-dimx-export.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-composite-lib-file-status-panel.js +77 -77
- package/fesm2015/pepperi-addons-ngx-composite-lib-generic-form.js +301 -301
- package/fesm2015/pepperi-addons-ngx-composite-lib-generic-list.js +559 -559
- package/fesm2015/pepperi-addons-ngx-composite-lib-generic-list.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-composite-lib-group-buttons-settings.js +167 -167
- package/fesm2015/pepperi-addons-ngx-composite-lib-shadow-settings.js +107 -107
- package/fesm2015/pepperi-addons-ngx-composite-lib.js +197 -197
- package/file-status-panel/file-status-panel.component.d.ts +14 -14
- package/file-status-panel/file-status-panel.model.d.ts +7 -7
- package/file-status-panel/file-status-panel.module.d.ts +14 -14
- package/file-status-panel/pepperi-addons-ngx-composite-lib-file-status-panel.d.ts +5 -5
- package/file-status-panel/public-api.d.ts +3 -3
- package/generic-form/generic-form.component.d.ts +49 -49
- package/generic-form/generic-form.model.d.ts +39 -39
- package/generic-form/generic-form.module.d.ts +13 -13
- package/generic-form/generic-form.service.d.ts +16 -16
- package/generic-form/index.d.ts +1 -1
- package/generic-form/pepperi-addons-ngx-composite-lib-generic-form.d.ts +5 -5
- package/generic-form/public-api.d.ts +4 -4
- package/generic-list/generic-list.component.d.ts +99 -99
- package/generic-list/generic-list.model.d.ts +50 -50
- package/generic-list/generic-list.module.d.ts +18 -18
- package/generic-list/generic-list.service.d.ts +42 -42
- package/generic-list/pepperi-addons-ngx-composite-lib-generic-list.d.ts +5 -5
- package/generic-list/public-api.d.ts +4 -4
- package/group-buttons-settings/group-buttons-settings.component.d.ts +33 -33
- package/group-buttons-settings/group-buttons-settings.model.d.ts +1 -1
- package/group-buttons-settings/group-buttons-settings.module.d.ts +14 -14
- package/group-buttons-settings/pepperi-addons-ngx-composite-lib-group-buttons-settings.d.ts +5 -5
- package/group-buttons-settings/public-api.d.ts +3 -3
- package/ngx-composite-lib.module.d.ts +11 -11
- package/package.json +1 -1
- package/pepperi-addons-ngx-composite-lib.d.ts +5 -5
- package/public-api.d.ts +2 -2
- package/shadow-settings/pepperi-addons-ngx-composite-lib-shadow-settings.d.ts +5 -5
- package/shadow-settings/public-api.d.ts +3 -3
- package/shadow-settings/shadow-settings.component.d.ts +23 -23
- package/shadow-settings/shadow-settings.model.d.ts +7 -7
- package/shadow-settings/shadow-settings.module.d.ts +13 -13
|
@@ -35,977 +35,977 @@
|
|
|
35
35
|
var i9__namespace = /*#__PURE__*/_interopNamespace(i9);
|
|
36
36
|
var i10__namespace = /*#__PURE__*/_interopNamespace(i10);
|
|
37
37
|
|
|
38
|
-
/*! *****************************************************************************
|
|
39
|
-
Copyright (c) Microsoft Corporation.
|
|
40
|
-
|
|
41
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
42
|
-
purpose with or without fee is hereby granted.
|
|
43
|
-
|
|
44
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
45
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
46
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
47
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
48
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
49
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
50
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
51
|
-
***************************************************************************** */
|
|
52
|
-
/* global Reflect, Promise */
|
|
53
|
-
var extendStatics = function (d, b) {
|
|
54
|
-
extendStatics = Object.setPrototypeOf ||
|
|
55
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
56
|
-
function (d, b) { for (var p in b)
|
|
57
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
58
|
-
d[p] = b[p]; };
|
|
59
|
-
return extendStatics(d, b);
|
|
60
|
-
};
|
|
61
|
-
function __extends(d, b) {
|
|
62
|
-
if (typeof b !== "function" && b !== null)
|
|
63
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
64
|
-
extendStatics(d, b);
|
|
65
|
-
function __() { this.constructor = d; }
|
|
66
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
67
|
-
}
|
|
68
|
-
var __assign = function () {
|
|
69
|
-
__assign = Object.assign || function __assign(t) {
|
|
70
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
71
|
-
s = arguments[i];
|
|
72
|
-
for (var p in s)
|
|
73
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
74
|
-
t[p] = s[p];
|
|
75
|
-
}
|
|
76
|
-
return t;
|
|
77
|
-
};
|
|
78
|
-
return __assign.apply(this, arguments);
|
|
79
|
-
};
|
|
80
|
-
function __rest(s, e) {
|
|
81
|
-
var t = {};
|
|
82
|
-
for (var p in s)
|
|
83
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
84
|
-
t[p] = s[p];
|
|
85
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
86
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
87
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
88
|
-
t[p[i]] = s[p[i]];
|
|
89
|
-
}
|
|
90
|
-
return t;
|
|
91
|
-
}
|
|
92
|
-
function __decorate(decorators, target, key, desc) {
|
|
93
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
94
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
95
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
96
|
-
else
|
|
97
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
98
|
-
if (d = decorators[i])
|
|
99
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
100
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
101
|
-
}
|
|
102
|
-
function __param(paramIndex, decorator) {
|
|
103
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
104
|
-
}
|
|
105
|
-
function __metadata(metadataKey, metadataValue) {
|
|
106
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
107
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
108
|
-
}
|
|
109
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
110
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
111
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
112
|
-
function fulfilled(value) { try {
|
|
113
|
-
step(generator.next(value));
|
|
114
|
-
}
|
|
115
|
-
catch (e) {
|
|
116
|
-
reject(e);
|
|
117
|
-
} }
|
|
118
|
-
function rejected(value) { try {
|
|
119
|
-
step(generator["throw"](value));
|
|
120
|
-
}
|
|
121
|
-
catch (e) {
|
|
122
|
-
reject(e);
|
|
123
|
-
} }
|
|
124
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
125
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
function __generator(thisArg, body) {
|
|
129
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
130
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
131
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
132
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
133
|
-
function step(op) {
|
|
134
|
-
if (f)
|
|
135
|
-
throw new TypeError("Generator is already executing.");
|
|
136
|
-
while (_)
|
|
137
|
-
try {
|
|
138
|
-
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)
|
|
139
|
-
return t;
|
|
140
|
-
if (y = 0, t)
|
|
141
|
-
op = [op[0] & 2, t.value];
|
|
142
|
-
switch (op[0]) {
|
|
143
|
-
case 0:
|
|
144
|
-
case 1:
|
|
145
|
-
t = op;
|
|
146
|
-
break;
|
|
147
|
-
case 4:
|
|
148
|
-
_.label++;
|
|
149
|
-
return { value: op[1], done: false };
|
|
150
|
-
case 5:
|
|
151
|
-
_.label++;
|
|
152
|
-
y = op[1];
|
|
153
|
-
op = [0];
|
|
154
|
-
continue;
|
|
155
|
-
case 7:
|
|
156
|
-
op = _.ops.pop();
|
|
157
|
-
_.trys.pop();
|
|
158
|
-
continue;
|
|
159
|
-
default:
|
|
160
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
161
|
-
_ = 0;
|
|
162
|
-
continue;
|
|
163
|
-
}
|
|
164
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
165
|
-
_.label = op[1];
|
|
166
|
-
break;
|
|
167
|
-
}
|
|
168
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
169
|
-
_.label = t[1];
|
|
170
|
-
t = op;
|
|
171
|
-
break;
|
|
172
|
-
}
|
|
173
|
-
if (t && _.label < t[2]) {
|
|
174
|
-
_.label = t[2];
|
|
175
|
-
_.ops.push(op);
|
|
176
|
-
break;
|
|
177
|
-
}
|
|
178
|
-
if (t[2])
|
|
179
|
-
_.ops.pop();
|
|
180
|
-
_.trys.pop();
|
|
181
|
-
continue;
|
|
182
|
-
}
|
|
183
|
-
op = body.call(thisArg, _);
|
|
184
|
-
}
|
|
185
|
-
catch (e) {
|
|
186
|
-
op = [6, e];
|
|
187
|
-
y = 0;
|
|
188
|
-
}
|
|
189
|
-
finally {
|
|
190
|
-
f = t = 0;
|
|
191
|
-
}
|
|
192
|
-
if (op[0] & 5)
|
|
193
|
-
throw op[1];
|
|
194
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
198
|
-
if (k2 === undefined)
|
|
199
|
-
k2 = k;
|
|
200
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
201
|
-
}) : (function (o, m, k, k2) {
|
|
202
|
-
if (k2 === undefined)
|
|
203
|
-
k2 = k;
|
|
204
|
-
o[k2] = m[k];
|
|
205
|
-
});
|
|
206
|
-
function __exportStar(m, o) {
|
|
207
|
-
for (var p in m)
|
|
208
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
209
|
-
__createBinding(o, m, p);
|
|
210
|
-
}
|
|
211
|
-
function __values(o) {
|
|
212
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
213
|
-
if (m)
|
|
214
|
-
return m.call(o);
|
|
215
|
-
if (o && typeof o.length === "number")
|
|
216
|
-
return {
|
|
217
|
-
next: function () {
|
|
218
|
-
if (o && i >= o.length)
|
|
219
|
-
o = void 0;
|
|
220
|
-
return { value: o && o[i++], done: !o };
|
|
221
|
-
}
|
|
222
|
-
};
|
|
223
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
224
|
-
}
|
|
225
|
-
function __read(o, n) {
|
|
226
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
227
|
-
if (!m)
|
|
228
|
-
return o;
|
|
229
|
-
var i = m.call(o), r, ar = [], e;
|
|
230
|
-
try {
|
|
231
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
232
|
-
ar.push(r.value);
|
|
233
|
-
}
|
|
234
|
-
catch (error) {
|
|
235
|
-
e = { error: error };
|
|
236
|
-
}
|
|
237
|
-
finally {
|
|
238
|
-
try {
|
|
239
|
-
if (r && !r.done && (m = i["return"]))
|
|
240
|
-
m.call(i);
|
|
241
|
-
}
|
|
242
|
-
finally {
|
|
243
|
-
if (e)
|
|
244
|
-
throw e.error;
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
return ar;
|
|
248
|
-
}
|
|
249
|
-
/** @deprecated */
|
|
250
|
-
function __spread() {
|
|
251
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
252
|
-
ar = ar.concat(__read(arguments[i]));
|
|
253
|
-
return ar;
|
|
254
|
-
}
|
|
255
|
-
/** @deprecated */
|
|
256
|
-
function __spreadArrays() {
|
|
257
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
258
|
-
s += arguments[i].length;
|
|
259
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
260
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
261
|
-
r[k] = a[j];
|
|
262
|
-
return r;
|
|
263
|
-
}
|
|
264
|
-
function __spreadArray(to, from, pack) {
|
|
265
|
-
if (pack || arguments.length === 2)
|
|
266
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
267
|
-
if (ar || !(i in from)) {
|
|
268
|
-
if (!ar)
|
|
269
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
270
|
-
ar[i] = from[i];
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
274
|
-
}
|
|
275
|
-
function __await(v) {
|
|
276
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
277
|
-
}
|
|
278
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
279
|
-
if (!Symbol.asyncIterator)
|
|
280
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
281
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
282
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
283
|
-
function verb(n) { if (g[n])
|
|
284
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
285
|
-
function resume(n, v) { try {
|
|
286
|
-
step(g[n](v));
|
|
287
|
-
}
|
|
288
|
-
catch (e) {
|
|
289
|
-
settle(q[0][3], e);
|
|
290
|
-
} }
|
|
291
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
292
|
-
function fulfill(value) { resume("next", value); }
|
|
293
|
-
function reject(value) { resume("throw", value); }
|
|
294
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
295
|
-
resume(q[0][0], q[0][1]); }
|
|
296
|
-
}
|
|
297
|
-
function __asyncDelegator(o) {
|
|
298
|
-
var i, p;
|
|
299
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
300
|
-
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; }
|
|
301
|
-
}
|
|
302
|
-
function __asyncValues(o) {
|
|
303
|
-
if (!Symbol.asyncIterator)
|
|
304
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
305
|
-
var m = o[Symbol.asyncIterator], i;
|
|
306
|
-
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);
|
|
307
|
-
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); }); }; }
|
|
308
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
309
|
-
}
|
|
310
|
-
function __makeTemplateObject(cooked, raw) {
|
|
311
|
-
if (Object.defineProperty) {
|
|
312
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
313
|
-
}
|
|
314
|
-
else {
|
|
315
|
-
cooked.raw = raw;
|
|
316
|
-
}
|
|
317
|
-
return cooked;
|
|
318
|
-
}
|
|
319
|
-
;
|
|
320
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
321
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
322
|
-
}) : function (o, v) {
|
|
323
|
-
o["default"] = v;
|
|
324
|
-
};
|
|
325
|
-
function __importStar(mod) {
|
|
326
|
-
if (mod && mod.__esModule)
|
|
327
|
-
return mod;
|
|
328
|
-
var result = {};
|
|
329
|
-
if (mod != null)
|
|
330
|
-
for (var k in mod)
|
|
331
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
332
|
-
__createBinding(result, mod, k);
|
|
333
|
-
__setModuleDefault(result, mod);
|
|
334
|
-
return result;
|
|
335
|
-
}
|
|
336
|
-
function __importDefault(mod) {
|
|
337
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
338
|
-
}
|
|
339
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
340
|
-
if (kind === "a" && !f)
|
|
341
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
342
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
343
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
344
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
345
|
-
}
|
|
346
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
347
|
-
if (kind === "m")
|
|
348
|
-
throw new TypeError("Private method is not writable");
|
|
349
|
-
if (kind === "a" && !f)
|
|
350
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
351
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
352
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
353
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
38
|
+
/*! *****************************************************************************
|
|
39
|
+
Copyright (c) Microsoft Corporation.
|
|
40
|
+
|
|
41
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
42
|
+
purpose with or without fee is hereby granted.
|
|
43
|
+
|
|
44
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
45
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
46
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
47
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
48
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
49
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
50
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
51
|
+
***************************************************************************** */
|
|
52
|
+
/* global Reflect, Promise */
|
|
53
|
+
var extendStatics = function (d, b) {
|
|
54
|
+
extendStatics = Object.setPrototypeOf ||
|
|
55
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
56
|
+
function (d, b) { for (var p in b)
|
|
57
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
58
|
+
d[p] = b[p]; };
|
|
59
|
+
return extendStatics(d, b);
|
|
60
|
+
};
|
|
61
|
+
function __extends(d, b) {
|
|
62
|
+
if (typeof b !== "function" && b !== null)
|
|
63
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
64
|
+
extendStatics(d, b);
|
|
65
|
+
function __() { this.constructor = d; }
|
|
66
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
67
|
+
}
|
|
68
|
+
var __assign = function () {
|
|
69
|
+
__assign = Object.assign || function __assign(t) {
|
|
70
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
71
|
+
s = arguments[i];
|
|
72
|
+
for (var p in s)
|
|
73
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
74
|
+
t[p] = s[p];
|
|
75
|
+
}
|
|
76
|
+
return t;
|
|
77
|
+
};
|
|
78
|
+
return __assign.apply(this, arguments);
|
|
79
|
+
};
|
|
80
|
+
function __rest(s, e) {
|
|
81
|
+
var t = {};
|
|
82
|
+
for (var p in s)
|
|
83
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
84
|
+
t[p] = s[p];
|
|
85
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
86
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
87
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
88
|
+
t[p[i]] = s[p[i]];
|
|
89
|
+
}
|
|
90
|
+
return t;
|
|
91
|
+
}
|
|
92
|
+
function __decorate(decorators, target, key, desc) {
|
|
93
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
94
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
95
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
96
|
+
else
|
|
97
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
98
|
+
if (d = decorators[i])
|
|
99
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
100
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
101
|
+
}
|
|
102
|
+
function __param(paramIndex, decorator) {
|
|
103
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
|
104
|
+
}
|
|
105
|
+
function __metadata(metadataKey, metadataValue) {
|
|
106
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
107
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
108
|
+
}
|
|
109
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
110
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
111
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
112
|
+
function fulfilled(value) { try {
|
|
113
|
+
step(generator.next(value));
|
|
114
|
+
}
|
|
115
|
+
catch (e) {
|
|
116
|
+
reject(e);
|
|
117
|
+
} }
|
|
118
|
+
function rejected(value) { try {
|
|
119
|
+
step(generator["throw"](value));
|
|
120
|
+
}
|
|
121
|
+
catch (e) {
|
|
122
|
+
reject(e);
|
|
123
|
+
} }
|
|
124
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
125
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
function __generator(thisArg, body) {
|
|
129
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
130
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
131
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
132
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
133
|
+
function step(op) {
|
|
134
|
+
if (f)
|
|
135
|
+
throw new TypeError("Generator is already executing.");
|
|
136
|
+
while (_)
|
|
137
|
+
try {
|
|
138
|
+
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)
|
|
139
|
+
return t;
|
|
140
|
+
if (y = 0, t)
|
|
141
|
+
op = [op[0] & 2, t.value];
|
|
142
|
+
switch (op[0]) {
|
|
143
|
+
case 0:
|
|
144
|
+
case 1:
|
|
145
|
+
t = op;
|
|
146
|
+
break;
|
|
147
|
+
case 4:
|
|
148
|
+
_.label++;
|
|
149
|
+
return { value: op[1], done: false };
|
|
150
|
+
case 5:
|
|
151
|
+
_.label++;
|
|
152
|
+
y = op[1];
|
|
153
|
+
op = [0];
|
|
154
|
+
continue;
|
|
155
|
+
case 7:
|
|
156
|
+
op = _.ops.pop();
|
|
157
|
+
_.trys.pop();
|
|
158
|
+
continue;
|
|
159
|
+
default:
|
|
160
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
161
|
+
_ = 0;
|
|
162
|
+
continue;
|
|
163
|
+
}
|
|
164
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
165
|
+
_.label = op[1];
|
|
166
|
+
break;
|
|
167
|
+
}
|
|
168
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
169
|
+
_.label = t[1];
|
|
170
|
+
t = op;
|
|
171
|
+
break;
|
|
172
|
+
}
|
|
173
|
+
if (t && _.label < t[2]) {
|
|
174
|
+
_.label = t[2];
|
|
175
|
+
_.ops.push(op);
|
|
176
|
+
break;
|
|
177
|
+
}
|
|
178
|
+
if (t[2])
|
|
179
|
+
_.ops.pop();
|
|
180
|
+
_.trys.pop();
|
|
181
|
+
continue;
|
|
182
|
+
}
|
|
183
|
+
op = body.call(thisArg, _);
|
|
184
|
+
}
|
|
185
|
+
catch (e) {
|
|
186
|
+
op = [6, e];
|
|
187
|
+
y = 0;
|
|
188
|
+
}
|
|
189
|
+
finally {
|
|
190
|
+
f = t = 0;
|
|
191
|
+
}
|
|
192
|
+
if (op[0] & 5)
|
|
193
|
+
throw op[1];
|
|
194
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
198
|
+
if (k2 === undefined)
|
|
199
|
+
k2 = k;
|
|
200
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
201
|
+
}) : (function (o, m, k, k2) {
|
|
202
|
+
if (k2 === undefined)
|
|
203
|
+
k2 = k;
|
|
204
|
+
o[k2] = m[k];
|
|
205
|
+
});
|
|
206
|
+
function __exportStar(m, o) {
|
|
207
|
+
for (var p in m)
|
|
208
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
209
|
+
__createBinding(o, m, p);
|
|
210
|
+
}
|
|
211
|
+
function __values(o) {
|
|
212
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
213
|
+
if (m)
|
|
214
|
+
return m.call(o);
|
|
215
|
+
if (o && typeof o.length === "number")
|
|
216
|
+
return {
|
|
217
|
+
next: function () {
|
|
218
|
+
if (o && i >= o.length)
|
|
219
|
+
o = void 0;
|
|
220
|
+
return { value: o && o[i++], done: !o };
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
224
|
+
}
|
|
225
|
+
function __read(o, n) {
|
|
226
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
227
|
+
if (!m)
|
|
228
|
+
return o;
|
|
229
|
+
var i = m.call(o), r, ar = [], e;
|
|
230
|
+
try {
|
|
231
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
232
|
+
ar.push(r.value);
|
|
233
|
+
}
|
|
234
|
+
catch (error) {
|
|
235
|
+
e = { error: error };
|
|
236
|
+
}
|
|
237
|
+
finally {
|
|
238
|
+
try {
|
|
239
|
+
if (r && !r.done && (m = i["return"]))
|
|
240
|
+
m.call(i);
|
|
241
|
+
}
|
|
242
|
+
finally {
|
|
243
|
+
if (e)
|
|
244
|
+
throw e.error;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
return ar;
|
|
248
|
+
}
|
|
249
|
+
/** @deprecated */
|
|
250
|
+
function __spread() {
|
|
251
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
252
|
+
ar = ar.concat(__read(arguments[i]));
|
|
253
|
+
return ar;
|
|
254
|
+
}
|
|
255
|
+
/** @deprecated */
|
|
256
|
+
function __spreadArrays() {
|
|
257
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
258
|
+
s += arguments[i].length;
|
|
259
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
260
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
261
|
+
r[k] = a[j];
|
|
262
|
+
return r;
|
|
263
|
+
}
|
|
264
|
+
function __spreadArray(to, from, pack) {
|
|
265
|
+
if (pack || arguments.length === 2)
|
|
266
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
267
|
+
if (ar || !(i in from)) {
|
|
268
|
+
if (!ar)
|
|
269
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
270
|
+
ar[i] = from[i];
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
274
|
+
}
|
|
275
|
+
function __await(v) {
|
|
276
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
277
|
+
}
|
|
278
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
279
|
+
if (!Symbol.asyncIterator)
|
|
280
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
281
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
282
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
283
|
+
function verb(n) { if (g[n])
|
|
284
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
285
|
+
function resume(n, v) { try {
|
|
286
|
+
step(g[n](v));
|
|
287
|
+
}
|
|
288
|
+
catch (e) {
|
|
289
|
+
settle(q[0][3], e);
|
|
290
|
+
} }
|
|
291
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
292
|
+
function fulfill(value) { resume("next", value); }
|
|
293
|
+
function reject(value) { resume("throw", value); }
|
|
294
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
295
|
+
resume(q[0][0], q[0][1]); }
|
|
296
|
+
}
|
|
297
|
+
function __asyncDelegator(o) {
|
|
298
|
+
var i, p;
|
|
299
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
300
|
+
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; }
|
|
301
|
+
}
|
|
302
|
+
function __asyncValues(o) {
|
|
303
|
+
if (!Symbol.asyncIterator)
|
|
304
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
305
|
+
var m = o[Symbol.asyncIterator], i;
|
|
306
|
+
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);
|
|
307
|
+
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); }); }; }
|
|
308
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
309
|
+
}
|
|
310
|
+
function __makeTemplateObject(cooked, raw) {
|
|
311
|
+
if (Object.defineProperty) {
|
|
312
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
313
|
+
}
|
|
314
|
+
else {
|
|
315
|
+
cooked.raw = raw;
|
|
316
|
+
}
|
|
317
|
+
return cooked;
|
|
318
|
+
}
|
|
319
|
+
;
|
|
320
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
321
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
322
|
+
}) : function (o, v) {
|
|
323
|
+
o["default"] = v;
|
|
324
|
+
};
|
|
325
|
+
function __importStar(mod) {
|
|
326
|
+
if (mod && mod.__esModule)
|
|
327
|
+
return mod;
|
|
328
|
+
var result = {};
|
|
329
|
+
if (mod != null)
|
|
330
|
+
for (var k in mod)
|
|
331
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
332
|
+
__createBinding(result, mod, k);
|
|
333
|
+
__setModuleDefault(result, mod);
|
|
334
|
+
return result;
|
|
335
|
+
}
|
|
336
|
+
function __importDefault(mod) {
|
|
337
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
338
|
+
}
|
|
339
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
340
|
+
if (kind === "a" && !f)
|
|
341
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
342
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
343
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
344
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
345
|
+
}
|
|
346
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
347
|
+
if (kind === "m")
|
|
348
|
+
throw new TypeError("Private method is not writable");
|
|
349
|
+
if (kind === "a" && !f)
|
|
350
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
351
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
352
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
353
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
354
354
|
}
|
|
355
355
|
|
|
356
|
-
var PepGenericListService = /** @class */ (function () {
|
|
357
|
-
function PepGenericListService(_translate, _queryBuilderService) {
|
|
358
|
-
this._translate = _translate;
|
|
359
|
-
this._queryBuilderService = _queryBuilderService;
|
|
360
|
-
//
|
|
361
|
-
}
|
|
362
|
-
/**
|
|
363
|
-
* checks if the object contains property
|
|
364
|
-
* @param obj object
|
|
365
|
-
* @param prop property name
|
|
366
|
-
* @returns true if contains, false otherwise
|
|
367
|
-
*/
|
|
368
|
-
PepGenericListService.prototype.hasProperty = function (obj, prop) {
|
|
369
|
-
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
370
|
-
};
|
|
371
|
-
PepGenericListService.prototype.convertToPepRowData = function (object, dataView$1, uuidMapping) {
|
|
372
|
-
var row = new i1.PepRowData();
|
|
373
|
-
var itemFields;
|
|
374
|
-
if (this.hasProperty(object, 'fields') && typeof object.fields === 'object') {
|
|
375
|
-
itemFields = object.fields;
|
|
376
|
-
if (object.isEditable === false) {
|
|
377
|
-
row.IsEditable = false;
|
|
378
|
-
}
|
|
379
|
-
if (object.isSelectableForActions === false) {
|
|
380
|
-
row.IsSelectableForActions = false;
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
else {
|
|
384
|
-
itemFields = object;
|
|
385
|
-
}
|
|
386
|
-
row.UUID = itemFields[uuidMapping] || undefined;
|
|
387
|
-
row.Fields = [];
|
|
388
|
-
if ((dataView$1 === null || dataView$1 === void 0 ? void 0 : dataView$1.Fields) && dataView$1.Columns) {
|
|
389
|
-
for (var index = 0; index < dataView$1.Fields.length; index++) {
|
|
390
|
-
var field = dataView$1.Fields[index];
|
|
391
|
-
row.Fields.push({
|
|
392
|
-
ApiName: field.FieldID,
|
|
393
|
-
Title: this._translate.instant(field.Title),
|
|
394
|
-
XAlignment: 1,
|
|
395
|
-
FormattedValue: (itemFields[field.FieldID] || '').toString(),
|
|
396
|
-
Value: (itemFields[field.FieldID] || '').toString(),
|
|
397
|
-
ColumnWidth: dataView$1.Columns[index].Width,
|
|
398
|
-
AdditionalValue: '',
|
|
399
|
-
OptionalValues: [],
|
|
400
|
-
FieldType: dataView.DataViewFieldTypes[field.Type],
|
|
401
|
-
ReadOnly: field.ReadOnly,
|
|
402
|
-
Enabled: !field.ReadOnly
|
|
403
|
-
});
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
return row;
|
|
407
|
-
};
|
|
408
|
-
PepGenericListService.prototype.convertToUiControlField = function (field) {
|
|
409
|
-
return {
|
|
410
|
-
ApiName: field.ApiName,
|
|
411
|
-
FieldType: field.FieldType,
|
|
412
|
-
Title: field.Title,
|
|
413
|
-
ReadOnly: field.ReadOnlyField,
|
|
414
|
-
ColumnWidth: field.ColumnWidth,
|
|
415
|
-
ColumnWidthType: 1,
|
|
416
|
-
Layout: {
|
|
417
|
-
X: field.Layout.X,
|
|
418
|
-
Y: field.Layout.Y,
|
|
419
|
-
Width: field.Layout.Width,
|
|
420
|
-
Height: field.Layout.Field_Height,
|
|
421
|
-
XAlignment: field.Layout.xAlignment,
|
|
422
|
-
YAlignment: field.Layout.yAlignment,
|
|
423
|
-
}
|
|
424
|
-
};
|
|
425
|
-
};
|
|
426
|
-
PepGenericListService.prototype.convertToSmartFilter = function (smartFilter) {
|
|
427
|
-
var _a;
|
|
428
|
-
var convertedFields = [];
|
|
429
|
-
var filterData = [];
|
|
430
|
-
if (smartFilter === null || smartFilter === void 0 ? void 0 : smartFilter.dataView) {
|
|
431
|
-
convertedFields = this.createSmartFilterFields(smartFilter.dataView);
|
|
432
|
-
if ((_a = smartFilter.data) === null || _a === void 0 ? void 0 : _a.length) {
|
|
433
|
-
filterData = smartFilter.data;
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
return {
|
|
437
|
-
fields: convertedFields,
|
|
438
|
-
data: filterData
|
|
439
|
-
};
|
|
440
|
-
};
|
|
441
|
-
PepGenericListService.prototype.createSmartFilterFields = function (dataView) {
|
|
442
|
-
var smartFields = [];
|
|
443
|
-
var fields = dataView.Fields.map(function (field) {
|
|
444
|
-
return {
|
|
445
|
-
FieldID: field.FieldID,
|
|
446
|
-
FieldType: field.Type,
|
|
447
|
-
Title: field.Title,
|
|
448
|
-
OptionalValues: field.OptionalValues
|
|
449
|
-
};
|
|
450
|
-
});
|
|
451
|
-
var smartFilterfields = this._queryBuilderService.convertToSmartFilterFields(fields);
|
|
452
|
-
if (smartFilterfields === null || smartFilterfields === void 0 ? void 0 : smartFilterfields.length) {
|
|
453
|
-
smartFields = smartFilterfields.map((function (field) { return field.smart; }));
|
|
454
|
-
}
|
|
455
|
-
return smartFields;
|
|
456
|
-
};
|
|
457
|
-
return PepGenericListService;
|
|
458
|
-
}());
|
|
459
|
-
PepGenericListService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericListService, deps: [{ token: i1__namespace.TranslateService }, { token: i2__namespace.PepQueryBuilderService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
460
|
-
PepGenericListService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericListService });
|
|
461
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericListService, decorators: [{
|
|
462
|
-
type: i0.Injectable
|
|
356
|
+
var PepGenericListService = /** @class */ (function () {
|
|
357
|
+
function PepGenericListService(_translate, _queryBuilderService) {
|
|
358
|
+
this._translate = _translate;
|
|
359
|
+
this._queryBuilderService = _queryBuilderService;
|
|
360
|
+
//
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* checks if the object contains property
|
|
364
|
+
* @param obj object
|
|
365
|
+
* @param prop property name
|
|
366
|
+
* @returns true if contains, false otherwise
|
|
367
|
+
*/
|
|
368
|
+
PepGenericListService.prototype.hasProperty = function (obj, prop) {
|
|
369
|
+
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
370
|
+
};
|
|
371
|
+
PepGenericListService.prototype.convertToPepRowData = function (object, dataView$1, uuidMapping) {
|
|
372
|
+
var row = new i1.PepRowData();
|
|
373
|
+
var itemFields;
|
|
374
|
+
if (this.hasProperty(object, 'fields') && typeof object.fields === 'object') {
|
|
375
|
+
itemFields = object.fields;
|
|
376
|
+
if (object.isEditable === false) {
|
|
377
|
+
row.IsEditable = false;
|
|
378
|
+
}
|
|
379
|
+
if (object.isSelectableForActions === false) {
|
|
380
|
+
row.IsSelectableForActions = false;
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
else {
|
|
384
|
+
itemFields = object;
|
|
385
|
+
}
|
|
386
|
+
row.UUID = itemFields[uuidMapping] || undefined;
|
|
387
|
+
row.Fields = [];
|
|
388
|
+
if ((dataView$1 === null || dataView$1 === void 0 ? void 0 : dataView$1.Fields) && dataView$1.Columns) {
|
|
389
|
+
for (var index = 0; index < dataView$1.Fields.length; index++) {
|
|
390
|
+
var field = dataView$1.Fields[index];
|
|
391
|
+
row.Fields.push({
|
|
392
|
+
ApiName: field.FieldID,
|
|
393
|
+
Title: this._translate.instant(field.Title),
|
|
394
|
+
XAlignment: 1,
|
|
395
|
+
FormattedValue: (itemFields[field.FieldID] || '').toString(),
|
|
396
|
+
Value: (itemFields[field.FieldID] || '').toString(),
|
|
397
|
+
ColumnWidth: dataView$1.Columns[index].Width,
|
|
398
|
+
AdditionalValue: '',
|
|
399
|
+
OptionalValues: [],
|
|
400
|
+
FieldType: dataView.DataViewFieldTypes[field.Type],
|
|
401
|
+
ReadOnly: field.ReadOnly,
|
|
402
|
+
Enabled: !field.ReadOnly
|
|
403
|
+
});
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
return row;
|
|
407
|
+
};
|
|
408
|
+
PepGenericListService.prototype.convertToUiControlField = function (field) {
|
|
409
|
+
return {
|
|
410
|
+
ApiName: field.ApiName,
|
|
411
|
+
FieldType: field.FieldType,
|
|
412
|
+
Title: field.Title,
|
|
413
|
+
ReadOnly: field.ReadOnlyField,
|
|
414
|
+
ColumnWidth: field.ColumnWidth,
|
|
415
|
+
ColumnWidthType: 1,
|
|
416
|
+
Layout: {
|
|
417
|
+
X: field.Layout.X,
|
|
418
|
+
Y: field.Layout.Y,
|
|
419
|
+
Width: field.Layout.Width,
|
|
420
|
+
Height: field.Layout.Field_Height,
|
|
421
|
+
XAlignment: field.Layout.xAlignment,
|
|
422
|
+
YAlignment: field.Layout.yAlignment,
|
|
423
|
+
}
|
|
424
|
+
};
|
|
425
|
+
};
|
|
426
|
+
PepGenericListService.prototype.convertToSmartFilter = function (smartFilter) {
|
|
427
|
+
var _a;
|
|
428
|
+
var convertedFields = [];
|
|
429
|
+
var filterData = [];
|
|
430
|
+
if (smartFilter === null || smartFilter === void 0 ? void 0 : smartFilter.dataView) {
|
|
431
|
+
convertedFields = this.createSmartFilterFields(smartFilter.dataView);
|
|
432
|
+
if ((_a = smartFilter.data) === null || _a === void 0 ? void 0 : _a.length) {
|
|
433
|
+
filterData = smartFilter.data;
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
return {
|
|
437
|
+
fields: convertedFields,
|
|
438
|
+
data: filterData
|
|
439
|
+
};
|
|
440
|
+
};
|
|
441
|
+
PepGenericListService.prototype.createSmartFilterFields = function (dataView) {
|
|
442
|
+
var smartFields = [];
|
|
443
|
+
var fields = dataView.Fields.map(function (field) {
|
|
444
|
+
return {
|
|
445
|
+
FieldID: field.FieldID,
|
|
446
|
+
FieldType: field.Type,
|
|
447
|
+
Title: field.Title,
|
|
448
|
+
OptionalValues: field.OptionalValues
|
|
449
|
+
};
|
|
450
|
+
});
|
|
451
|
+
var smartFilterfields = this._queryBuilderService.convertToSmartFilterFields(fields);
|
|
452
|
+
if (smartFilterfields === null || smartFilterfields === void 0 ? void 0 : smartFilterfields.length) {
|
|
453
|
+
smartFields = smartFilterfields.map((function (field) { return field.smart; }));
|
|
454
|
+
}
|
|
455
|
+
return smartFields;
|
|
456
|
+
};
|
|
457
|
+
return PepGenericListService;
|
|
458
|
+
}());
|
|
459
|
+
PepGenericListService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericListService, deps: [{ token: i1__namespace.TranslateService }, { token: i2__namespace.PepQueryBuilderService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
460
|
+
PepGenericListService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericListService });
|
|
461
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericListService, decorators: [{
|
|
462
|
+
type: i0.Injectable
|
|
463
463
|
}], ctorParameters: function () { return [{ type: i1__namespace.TranslateService }, { type: i2__namespace.PepQueryBuilderService }]; } });
|
|
464
464
|
|
|
465
|
-
var GenericListComponent = /** @class */ (function () {
|
|
466
|
-
function GenericListComponent(_resolver, _dataConvertorService, _layoutService, _translate, _genericListService) {
|
|
467
|
-
var _this = this;
|
|
468
|
-
this._resolver = _resolver;
|
|
469
|
-
this._dataConvertorService = _dataConvertorService;
|
|
470
|
-
this._layoutService = _layoutService;
|
|
471
|
-
this._translate = _translate;
|
|
472
|
-
this._genericListService = _genericListService;
|
|
473
|
-
this._dataSource = {
|
|
474
|
-
init: function (params) { return __awaiter(_this, void 0, void 0, function () {
|
|
475
|
-
return __generator(this, function (_d) {
|
|
476
|
-
return [2 /*return*/, {
|
|
477
|
-
dataView: {
|
|
478
|
-
Type: 'Grid'
|
|
479
|
-
},
|
|
480
|
-
totalCount: -1,
|
|
481
|
-
items: []
|
|
482
|
-
}];
|
|
483
|
-
});
|
|
484
|
-
}); }
|
|
485
|
-
};
|
|
486
|
-
this.actions = {
|
|
487
|
-
get: function (data) { return __awaiter(_this, void 0, void 0, function () {
|
|
488
|
-
return __generator(this, function (_d) {
|
|
489
|
-
return [2 /*return*/, []];
|
|
490
|
-
});
|
|
491
|
-
}); }
|
|
492
|
-
};
|
|
493
|
-
this.uuidMapping = 'key';
|
|
494
|
-
this.disabled = false;
|
|
495
|
-
this.addPadding = false;
|
|
496
|
-
this.title = '';
|
|
497
|
-
this.inline = false;
|
|
498
|
-
this.showSearch = false;
|
|
499
|
-
this.noDataFoundMsg = '';
|
|
500
|
-
this.selectionType = 'single';
|
|
501
|
-
this.supportSorting = false;
|
|
502
|
-
this.pager = {
|
|
503
|
-
type: 'scroll'
|
|
504
|
-
};
|
|
505
|
-
this.tableViewType = 'regular';
|
|
506
|
-
this.zebraStripes = false;
|
|
507
|
-
this.showTopBar = false;
|
|
508
|
-
this.breadCrumbsItems = new Array();
|
|
509
|
-
this.fieldClick = new i0.EventEmitter();
|
|
510
|
-
this.valueChange = new i0.EventEmitter();
|
|
511
|
-
this.breadCrumbItemClick = new i0.EventEmitter();
|
|
512
|
-
this._resize$ = new rxjs.Subscription();
|
|
513
|
-
this._dataView = {
|
|
514
|
-
Type: 'Grid'
|
|
515
|
-
};
|
|
516
|
-
this.totalRowCount = -1;
|
|
517
|
-
this.searchString = '';
|
|
518
|
-
this.showSmartFilter = false;
|
|
519
|
-
this.internalSmartFilter = {
|
|
520
|
-
fields: [],
|
|
521
|
-
data: []
|
|
522
|
-
};
|
|
523
|
-
this._appliedFilters = [];
|
|
524
|
-
this._sorting = undefined;
|
|
525
|
-
this.menuHandlers = {};
|
|
526
|
-
this.menuActions = [];
|
|
527
|
-
this._resize$ = this._layoutService.onResize$.pipe().subscribe(function (size) {
|
|
528
|
-
//
|
|
529
|
-
});
|
|
530
|
-
}
|
|
531
|
-
Object.defineProperty(GenericListComponent.prototype, "pepListContainer", {
|
|
532
|
-
set: function (val) {
|
|
533
|
-
this._pepListContainer = val;
|
|
534
|
-
},
|
|
535
|
-
enumerable: false,
|
|
536
|
-
configurable: true
|
|
537
|
-
});
|
|
538
|
-
Object.defineProperty(GenericListComponent.prototype, "dataSource", {
|
|
539
|
-
set: function (val) {
|
|
540
|
-
this._dataSource = val;
|
|
541
|
-
this._sorting = undefined;
|
|
542
|
-
this.initSearch();
|
|
543
|
-
this.initTable();
|
|
544
|
-
},
|
|
545
|
-
enumerable: false,
|
|
546
|
-
configurable: true
|
|
547
|
-
});
|
|
548
|
-
Object.defineProperty(GenericListComponent.prototype, "smartFilter", {
|
|
549
|
-
set: function (val) {
|
|
550
|
-
this.internalSmartFilter = this._genericListService.convertToSmartFilter(val);
|
|
551
|
-
this.showSmartFilter = this.internalSmartFilter.fields.length > 0;
|
|
552
|
-
},
|
|
553
|
-
enumerable: false,
|
|
554
|
-
configurable: true
|
|
555
|
-
});
|
|
556
|
-
Object.defineProperty(GenericListComponent.prototype, "pepList", {
|
|
557
|
-
get: function () {
|
|
558
|
-
return this._pepList;
|
|
559
|
-
},
|
|
560
|
-
set: function (val) {
|
|
561
|
-
this._pepList = val;
|
|
562
|
-
},
|
|
563
|
-
enumerable: false,
|
|
564
|
-
configurable: true
|
|
565
|
-
});
|
|
566
|
-
GenericListComponent.prototype.ngOnInit = function () {
|
|
567
|
-
//
|
|
568
|
-
};
|
|
569
|
-
GenericListComponent.prototype.initTable = function () {
|
|
570
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
571
|
-
var _this = this;
|
|
572
|
-
return __generator(this, function (_d) {
|
|
573
|
-
setTimeout(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
574
|
-
var _a, _b, _c, factory, componentRef, fromIndex, toIndex, data, convertedList, uiControl;
|
|
575
|
-
var _this = this;
|
|
576
|
-
return __generator(this, function (_d) {
|
|
577
|
-
switch (_d.label) {
|
|
578
|
-
case 0:
|
|
579
|
-
if (!(this._dataSource &&
|
|
580
|
-
this._pepListContainer)) return [3 /*break*/, 2];
|
|
581
|
-
if (this._pepListContainer.length > 0) {
|
|
582
|
-
this._pepListContainer.remove();
|
|
583
|
-
}
|
|
584
|
-
factory = this._resolver.resolveComponentFactory(i6.PepListComponent);
|
|
585
|
-
componentRef = this._pepListContainer.createComponent(factory);
|
|
586
|
-
this.pepList = componentRef.instance;
|
|
587
|
-
//merge selector inputs with callback inputs
|
|
588
|
-
this.loadTableInputs();
|
|
589
|
-
fromIndex = 0;
|
|
590
|
-
toIndex = 0;
|
|
591
|
-
if (this._tableInputs.pager.type === 'pages') {
|
|
592
|
-
toIndex = fromIndex + (this._tableInputs.pager.size || i6.DEFAULT_PAGE_SIZE) - 1;
|
|
593
|
-
}
|
|
594
|
-
else {
|
|
595
|
-
toIndex = 100; //TO DO - get value from - this.customList.getTopItems()
|
|
596
|
-
}
|
|
597
|
-
return [4 /*yield*/, this.loadData(fromIndex, toIndex)];
|
|
598
|
-
case 1:
|
|
599
|
-
data = _d.sent();
|
|
600
|
-
this.totalRowCount = (data === null || data === void 0 ? void 0 : data.totalCount) || 0;
|
|
601
|
-
componentRef.instance.viewType = 'table';
|
|
602
|
-
componentRef.instance.tableViewType = this._tableInputs.tableViewType;
|
|
603
|
-
componentRef.instance.zebraStripes = this._tableInputs.zebraStripes;
|
|
604
|
-
if (this.disabled) {
|
|
605
|
-
componentRef.instance.disabled = true;
|
|
606
|
-
componentRef.instance.lockItemInnerEvents = true;
|
|
607
|
-
}
|
|
608
|
-
componentRef.instance.supportSorting = this._tableInputs.supportSorting;
|
|
609
|
-
componentRef.instance.selectionTypeForActions = this._tableInputs.selectionType;
|
|
610
|
-
componentRef.instance.pagerType = this._tableInputs.pager.type;
|
|
611
|
-
if (this._tableInputs.pager.type === 'pages') {
|
|
612
|
-
componentRef.instance.pageSize = ((_a = this._tableInputs.pager) === null || _a === void 0 ? void 0 : _a.size) || i6.DEFAULT_PAGE_SIZE;
|
|
613
|
-
componentRef.instance.pageIndex = ((_b = this._tableInputs.pager) === null || _b === void 0 ? void 0 : _b.index) || 0;
|
|
614
|
-
}
|
|
615
|
-
componentRef.instance.noDataFoundMsg = this._tableInputs.noDataFoundMsg;
|
|
616
|
-
componentRef.instance.fieldClick.subscribe(function ($event) {
|
|
617
|
-
_this.onCustomizeFieldClick($event);
|
|
618
|
-
});
|
|
619
|
-
componentRef.instance.selectedItemsChange.subscribe(function ($event) {
|
|
620
|
-
_this.onSelectedItemsChanged($event);
|
|
621
|
-
});
|
|
622
|
-
componentRef.instance.loadItems.subscribe(function ($event) {
|
|
623
|
-
_this.onLoadItems($event);
|
|
624
|
-
});
|
|
625
|
-
componentRef.instance.loadPage.subscribe(function ($event) {
|
|
626
|
-
_this.onLoadPage($event);
|
|
627
|
-
});
|
|
628
|
-
componentRef.instance.valueChange.subscribe(function ($event) {
|
|
629
|
-
_this.onValueChanged($event);
|
|
630
|
-
});
|
|
631
|
-
componentRef.instance.sortingChange.subscribe(function ($event) {
|
|
632
|
-
_this.onSortingChange($event);
|
|
633
|
-
});
|
|
634
|
-
convertedList = [];
|
|
635
|
-
if (data) {
|
|
636
|
-
if ((_c = data.items) === null || _c === void 0 ? void 0 : _c.length) {
|
|
637
|
-
convertedList = this._dataConvertorService.convertListData(data.items);
|
|
638
|
-
}
|
|
639
|
-
uiControl = this.getUiControl(dataViews.DataViewConverter.toUIControlData(data.dataView));
|
|
640
|
-
componentRef.instance.initListData(uiControl, data.totalCount, convertedList);
|
|
641
|
-
}
|
|
642
|
-
_d.label = 2;
|
|
643
|
-
case 2: return [2 /*return*/];
|
|
644
|
-
}
|
|
645
|
-
});
|
|
646
|
-
}); }, 0);
|
|
647
|
-
return [2 /*return*/];
|
|
648
|
-
});
|
|
649
|
-
});
|
|
650
|
-
};
|
|
651
|
-
/**
|
|
652
|
-
* loads inputs in case they are provided and merge with selector inputs
|
|
653
|
-
* @returns merged pep-list inputs
|
|
654
|
-
*/
|
|
655
|
-
GenericListComponent.prototype.loadTableInputs = function () {
|
|
656
|
-
var _this = this;
|
|
657
|
-
this._tableInputs = {
|
|
658
|
-
supportSorting: this.supportSorting,
|
|
659
|
-
selectionType: this.selectionType,
|
|
660
|
-
pager: this.pager,
|
|
661
|
-
noDataFoundMsg: this.noDataFoundMsg,
|
|
662
|
-
tableViewType: this.tableViewType,
|
|
663
|
-
zebraStripes: this.zebraStripes
|
|
664
|
-
};
|
|
665
|
-
if (this._dataSource.inputs) {
|
|
666
|
-
Object.entries(this._dataSource.inputs).forEach(function (item) {
|
|
667
|
-
if (_this._genericListService.hasProperty(_this._tableInputs, item[0])) {
|
|
668
|
-
_this._tableInputs[item[0]] = item[1];
|
|
669
|
-
}
|
|
670
|
-
});
|
|
671
|
-
}
|
|
672
|
-
};
|
|
673
|
-
GenericListComponent.prototype.getUiControl = function (data) {
|
|
674
|
-
var _this = this;
|
|
675
|
-
var uiControl = new i1.UIControl();
|
|
676
|
-
uiControl.ControlFields = [];
|
|
677
|
-
if (data === null || data === void 0 ? void 0 : data.ControlFields) {
|
|
678
|
-
uiControl.ControlFields = data.ControlFields.map(function (field) { return _this._genericListService.convertToUiControlField(field); });
|
|
679
|
-
}
|
|
680
|
-
return uiControl;
|
|
681
|
-
};
|
|
682
|
-
GenericListComponent.prototype.loadMenuItems = function () {
|
|
683
|
-
var _this = this;
|
|
684
|
-
if (this._tableInputs.selectionType !== 'none') {
|
|
685
|
-
this.getMenuActions().then(function (x) { return _this.menuActions = x; });
|
|
686
|
-
}
|
|
687
|
-
};
|
|
688
|
-
GenericListComponent.prototype.getMenuActions = function () {
|
|
689
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
690
|
-
var res, result, actions;
|
|
691
|
-
var _this = this;
|
|
692
|
-
return __generator(this, function (_d) {
|
|
693
|
-
switch (_d.label) {
|
|
694
|
-
case 0:
|
|
695
|
-
res = [];
|
|
696
|
-
result = this.getMenuObjects();
|
|
697
|
-
if (!result.success) return [3 /*break*/, 2];
|
|
698
|
-
return [4 /*yield*/, this.actions.get(result.data)];
|
|
699
|
-
case 1:
|
|
700
|
-
actions = _d.sent();
|
|
701
|
-
this.menuHandlers = {};
|
|
702
|
-
actions === null || actions === void 0 ? void 0 : actions.forEach(function (item) {
|
|
703
|
-
var uuid = i1.PepGuid.newGuid();
|
|
704
|
-
_this.menuHandlers[uuid] = item.handler;
|
|
705
|
-
res.push({
|
|
706
|
-
key: uuid,
|
|
707
|
-
text: item.title
|
|
708
|
-
});
|
|
709
|
-
});
|
|
710
|
-
_d.label = 2;
|
|
711
|
-
case 2: return [2 /*return*/, res];
|
|
712
|
-
}
|
|
713
|
-
});
|
|
714
|
-
});
|
|
715
|
-
};
|
|
716
|
-
GenericListComponent.prototype.getMenuObjects = function () {
|
|
717
|
-
var menuObjects = {
|
|
718
|
-
success: false,
|
|
719
|
-
data: new i6.PepSelectionData()
|
|
720
|
-
};
|
|
721
|
-
if (this.pepList) {
|
|
722
|
-
menuObjects.success = true;
|
|
723
|
-
menuObjects.data = this.pepList.getSelectedItemsData();
|
|
724
|
-
}
|
|
725
|
-
return menuObjects;
|
|
726
|
-
};
|
|
727
|
-
GenericListComponent.prototype.initSearch = function () {
|
|
728
|
-
var _a;
|
|
729
|
-
this.searchString = '';
|
|
730
|
-
(_a = this.search) === null || _a === void 0 ? void 0 : _a.initSearch();
|
|
731
|
-
};
|
|
732
|
-
GenericListComponent.prototype.loadData = function (fromIndex, toIndex) {
|
|
733
|
-
var _a;
|
|
734
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
735
|
-
var data;
|
|
736
|
-
var _this = this;
|
|
737
|
-
return __generator(this, function (_d) {
|
|
738
|
-
switch (_d.label) {
|
|
739
|
-
case 0: return [4 /*yield*/, this._dataSource.init({
|
|
740
|
-
searchString: this.searchString || undefined,
|
|
741
|
-
filters: this._appliedFilters.length ? this._appliedFilters : undefined,
|
|
742
|
-
sorting: this._sorting || undefined,
|
|
743
|
-
fromIndex: fromIndex,
|
|
744
|
-
toIndex: toIndex
|
|
745
|
-
})];
|
|
746
|
-
case 1:
|
|
747
|
-
data = _d.sent();
|
|
748
|
-
if (data) {
|
|
749
|
-
this._dataView = data.dataView;
|
|
750
|
-
if (((_a = data.items) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
751
|
-
data.items = data.items.map(function (item) { return _this._genericListService.convertToPepRowData(item, data.dataView, _this.uuidMapping); });
|
|
752
|
-
}
|
|
753
|
-
}
|
|
754
|
-
return [2 /*return*/, data];
|
|
755
|
-
}
|
|
756
|
-
});
|
|
757
|
-
});
|
|
758
|
-
};
|
|
759
|
-
GenericListComponent.prototype.updateDataList = function (fromIndex, toIndex, pageIndex) {
|
|
760
|
-
if (pageIndex === void 0) { pageIndex = undefined; }
|
|
761
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
762
|
-
var dataList;
|
|
763
|
-
var _this = this;
|
|
764
|
-
return __generator(this, function (_d) {
|
|
765
|
-
switch (_d.label) {
|
|
766
|
-
case 0:
|
|
767
|
-
if (!this._dataSource.update) return [3 /*break*/, 2];
|
|
768
|
-
return [4 /*yield*/, this._dataSource.update({
|
|
769
|
-
searchString: this.searchString || undefined,
|
|
770
|
-
filters: this._appliedFilters.length ? this._appliedFilters : undefined,
|
|
771
|
-
sorting: this._sorting || undefined,
|
|
772
|
-
fromIndex: fromIndex,
|
|
773
|
-
toIndex: toIndex,
|
|
774
|
-
pageIndex: pageIndex
|
|
775
|
-
})];
|
|
776
|
-
case 1:
|
|
777
|
-
dataList = _d.sent();
|
|
778
|
-
if ((dataList === null || dataList === void 0 ? void 0 : dataList.length) > 0) {
|
|
779
|
-
return [2 /*return*/, dataList.map(function (item) { return _this._genericListService.convertToPepRowData(item, _this._dataView, _this.uuidMapping); })];
|
|
780
|
-
}
|
|
781
|
-
else {
|
|
782
|
-
return [2 /*return*/, []];
|
|
783
|
-
}
|
|
784
|
-
return [3 /*break*/, 3];
|
|
785
|
-
case 2: return [2 /*return*/, []];
|
|
786
|
-
case 3: return [2 /*return*/];
|
|
787
|
-
}
|
|
788
|
-
});
|
|
789
|
-
});
|
|
790
|
-
};
|
|
791
|
-
/**
|
|
792
|
-
* loads virtual scroll items from api
|
|
793
|
-
*/
|
|
794
|
-
GenericListComponent.prototype.onLoadItems = function (event) {
|
|
795
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
796
|
-
var list, convertedList;
|
|
797
|
-
return __generator(this, function (_d) {
|
|
798
|
-
switch (_d.label) {
|
|
799
|
-
case 0: return [4 /*yield*/, this.updateDataList(event.fromIndex, event.toIndex)];
|
|
800
|
-
case 1:
|
|
801
|
-
list = _d.sent();
|
|
802
|
-
convertedList = this._dataConvertorService.convertListData(list);
|
|
803
|
-
this.pepList.updateItems(convertedList, event);
|
|
804
|
-
return [2 /*return*/];
|
|
805
|
-
}
|
|
806
|
-
});
|
|
807
|
-
});
|
|
808
|
-
};
|
|
809
|
-
/**
|
|
810
|
-
* loads paging bulk from api
|
|
811
|
-
*/
|
|
812
|
-
GenericListComponent.prototype.onLoadPage = function (event) {
|
|
813
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
814
|
-
var fromIndex, toIndex, list, convertedList;
|
|
815
|
-
return __generator(this, function (_d) {
|
|
816
|
-
switch (_d.label) {
|
|
817
|
-
case 0:
|
|
818
|
-
fromIndex = event.pageIndex * event.pageSize;
|
|
819
|
-
toIndex = Math.min(fromIndex + event.pageSize - 1, this.totalRowCount - 1);
|
|
820
|
-
return [4 /*yield*/, this.updateDataList(fromIndex, toIndex, event.pageIndex)];
|
|
821
|
-
case 1:
|
|
822
|
-
list = _d.sent();
|
|
823
|
-
convertedList = this._dataConvertorService.convertListData(list);
|
|
824
|
-
this.pepList.updatePage(convertedList, event);
|
|
825
|
-
return [2 /*return*/];
|
|
826
|
-
}
|
|
827
|
-
});
|
|
828
|
-
});
|
|
829
|
-
};
|
|
830
|
-
GenericListComponent.prototype.getItemById = function (id) {
|
|
831
|
-
if (this.pepList) {
|
|
832
|
-
return this._pepList.getItemDataByID(id);
|
|
833
|
-
}
|
|
834
|
-
else {
|
|
835
|
-
return null;
|
|
836
|
-
}
|
|
837
|
-
};
|
|
838
|
-
GenericListComponent.prototype.getSelectedItems = function () {
|
|
839
|
-
if (this.pepList) {
|
|
840
|
-
return this._pepList.getSelectedItemsData();
|
|
841
|
-
}
|
|
842
|
-
else {
|
|
843
|
-
return null;
|
|
844
|
-
}
|
|
845
|
-
};
|
|
846
|
-
GenericListComponent.prototype.onActionItemClicked = function (action) {
|
|
847
|
-
var result = this.getMenuObjects();
|
|
848
|
-
if (result.success) {
|
|
849
|
-
this.menuHandlers[action.source.key](result.data);
|
|
850
|
-
}
|
|
851
|
-
};
|
|
852
|
-
GenericListComponent.prototype.onSearchChanged = function (event) {
|
|
853
|
-
this.searchString = event.value;
|
|
854
|
-
this.initTable();
|
|
855
|
-
};
|
|
856
|
-
GenericListComponent.prototype.onSelectedItemsChanged = function (selectedRowsCount) {
|
|
857
|
-
var _this = this;
|
|
858
|
-
//loading menu items after pep-list selected items are updated
|
|
859
|
-
setTimeout(function () {
|
|
860
|
-
_this.loadMenuItems();
|
|
861
|
-
}, 0);
|
|
862
|
-
};
|
|
863
|
-
GenericListComponent.prototype.onCustomizeFieldClick = function (fieldClickEvent) {
|
|
864
|
-
this.fieldClick.emit(fieldClickEvent);
|
|
865
|
-
};
|
|
866
|
-
GenericListComponent.prototype.onBreadCrumbItemClick = function (event) {
|
|
867
|
-
this.breadCrumbItemClick.emit(event);
|
|
868
|
-
};
|
|
869
|
-
GenericListComponent.prototype.onValueChanged = function (event) {
|
|
870
|
-
this.valueChange.emit(event);
|
|
871
|
-
};
|
|
872
|
-
GenericListComponent.prototype.onSortingChange = function (event) {
|
|
873
|
-
this._sorting = event;
|
|
874
|
-
this.initTable();
|
|
875
|
-
};
|
|
876
|
-
GenericListComponent.prototype.onFiltersChange = function (filters) {
|
|
877
|
-
this._appliedFilters = filters;
|
|
878
|
-
this.initTable();
|
|
879
|
-
};
|
|
880
|
-
GenericListComponent.prototype.ngOnDestroy = function () {
|
|
881
|
-
if (this._resize$) {
|
|
882
|
-
this._resize$.unsubscribe();
|
|
883
|
-
}
|
|
884
|
-
};
|
|
885
|
-
return GenericListComponent;
|
|
886
|
-
}());
|
|
887
|
-
GenericListComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: GenericListComponent, deps: [{ token: i0__namespace.ComponentFactoryResolver }, { token: i1__namespace$1.PepDataConvertorService }, { token: i1__namespace$1.PepLayoutService }, { token: i1__namespace.TranslateService }, { token: PepGenericListService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
888
|
-
GenericListComponent.ɵcmp = i0__namespace.ɵɵ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", 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: i0.ViewContainerRef }], ngImport: i0__namespace, 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=\"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\n<pep-page-layout *ngIf=\"!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=\"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-
|
|
889
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: GenericListComponent, decorators: [{
|
|
890
|
-
type: i0.Component,
|
|
891
|
-
args: [{
|
|
892
|
-
selector: 'pep-generic-list',
|
|
893
|
-
templateUrl: './generic-list.component.html',
|
|
894
|
-
styleUrls: ['./generic-list.component.scss'],
|
|
895
|
-
providers: [PepGenericListService]
|
|
896
|
-
}]
|
|
897
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ComponentFactoryResolver }, { type: i1__namespace$1.PepDataConvertorService }, { type: i1__namespace$1.PepLayoutService }, { type: i1__namespace.TranslateService }, { type: PepGenericListService }]; }, propDecorators: { search: [{
|
|
898
|
-
type: i0.ViewChild,
|
|
899
|
-
args: ['search']
|
|
900
|
-
}], pepListContainer: [{
|
|
901
|
-
type: i0.ViewChild,
|
|
902
|
-
args: ['pepListContainer', { read: i0.ViewContainerRef }]
|
|
903
|
-
}], dataSource: [{
|
|
904
|
-
type: i0.Input
|
|
905
|
-
}], actions: [{
|
|
906
|
-
type: i0.Input
|
|
907
|
-
}], uuidMapping: [{
|
|
908
|
-
type: i0.Input
|
|
909
|
-
}], disabled: [{
|
|
910
|
-
type: i0.Input
|
|
911
|
-
}], addPadding: [{
|
|
912
|
-
type: i0.Input
|
|
913
|
-
}], title: [{
|
|
914
|
-
type: i0.Input
|
|
915
|
-
}], inline: [{
|
|
916
|
-
type: i0.Input
|
|
917
|
-
}], showSearch: [{
|
|
918
|
-
type: i0.Input
|
|
919
|
-
}], noDataFoundMsg: [{
|
|
920
|
-
type: i0.Input
|
|
921
|
-
}], selectionType: [{
|
|
922
|
-
type: i0.Input
|
|
923
|
-
}], supportSorting: [{
|
|
924
|
-
type: i0.Input
|
|
925
|
-
}], pager: [{
|
|
926
|
-
type: i0.Input
|
|
927
|
-
}], tableViewType: [{
|
|
928
|
-
type: i0.Input
|
|
929
|
-
}], zebraStripes: [{
|
|
930
|
-
type: i0.Input
|
|
931
|
-
}], smartFilter: [{
|
|
932
|
-
type: i0.Input
|
|
933
|
-
}], showTopBar: [{
|
|
934
|
-
type: i0.Input
|
|
935
|
-
}], breadCrumbsItems: [{
|
|
936
|
-
type: i0.Input
|
|
937
|
-
}], fieldClick: [{
|
|
938
|
-
type: i0.Output
|
|
939
|
-
}], valueChange: [{
|
|
940
|
-
type: i0.Output
|
|
941
|
-
}], breadCrumbItemClick: [{
|
|
942
|
-
type: i0.Output
|
|
465
|
+
var GenericListComponent = /** @class */ (function () {
|
|
466
|
+
function GenericListComponent(_resolver, _dataConvertorService, _layoutService, _translate, _genericListService) {
|
|
467
|
+
var _this = this;
|
|
468
|
+
this._resolver = _resolver;
|
|
469
|
+
this._dataConvertorService = _dataConvertorService;
|
|
470
|
+
this._layoutService = _layoutService;
|
|
471
|
+
this._translate = _translate;
|
|
472
|
+
this._genericListService = _genericListService;
|
|
473
|
+
this._dataSource = {
|
|
474
|
+
init: function (params) { return __awaiter(_this, void 0, void 0, function () {
|
|
475
|
+
return __generator(this, function (_d) {
|
|
476
|
+
return [2 /*return*/, {
|
|
477
|
+
dataView: {
|
|
478
|
+
Type: 'Grid'
|
|
479
|
+
},
|
|
480
|
+
totalCount: -1,
|
|
481
|
+
items: []
|
|
482
|
+
}];
|
|
483
|
+
});
|
|
484
|
+
}); }
|
|
485
|
+
};
|
|
486
|
+
this.actions = {
|
|
487
|
+
get: function (data) { return __awaiter(_this, void 0, void 0, function () {
|
|
488
|
+
return __generator(this, function (_d) {
|
|
489
|
+
return [2 /*return*/, []];
|
|
490
|
+
});
|
|
491
|
+
}); }
|
|
492
|
+
};
|
|
493
|
+
this.uuidMapping = 'key';
|
|
494
|
+
this.disabled = false;
|
|
495
|
+
this.addPadding = false;
|
|
496
|
+
this.title = '';
|
|
497
|
+
this.inline = false;
|
|
498
|
+
this.showSearch = false;
|
|
499
|
+
this.noDataFoundMsg = '';
|
|
500
|
+
this.selectionType = 'single';
|
|
501
|
+
this.supportSorting = false;
|
|
502
|
+
this.pager = {
|
|
503
|
+
type: 'scroll'
|
|
504
|
+
};
|
|
505
|
+
this.tableViewType = 'regular';
|
|
506
|
+
this.zebraStripes = false;
|
|
507
|
+
this.showTopBar = false;
|
|
508
|
+
this.breadCrumbsItems = new Array();
|
|
509
|
+
this.fieldClick = new i0.EventEmitter();
|
|
510
|
+
this.valueChange = new i0.EventEmitter();
|
|
511
|
+
this.breadCrumbItemClick = new i0.EventEmitter();
|
|
512
|
+
this._resize$ = new rxjs.Subscription();
|
|
513
|
+
this._dataView = {
|
|
514
|
+
Type: 'Grid'
|
|
515
|
+
};
|
|
516
|
+
this.totalRowCount = -1;
|
|
517
|
+
this.searchString = '';
|
|
518
|
+
this.showSmartFilter = false;
|
|
519
|
+
this.internalSmartFilter = {
|
|
520
|
+
fields: [],
|
|
521
|
+
data: []
|
|
522
|
+
};
|
|
523
|
+
this._appliedFilters = [];
|
|
524
|
+
this._sorting = undefined;
|
|
525
|
+
this.menuHandlers = {};
|
|
526
|
+
this.menuActions = [];
|
|
527
|
+
this._resize$ = this._layoutService.onResize$.pipe().subscribe(function (size) {
|
|
528
|
+
//
|
|
529
|
+
});
|
|
530
|
+
}
|
|
531
|
+
Object.defineProperty(GenericListComponent.prototype, "pepListContainer", {
|
|
532
|
+
set: function (val) {
|
|
533
|
+
this._pepListContainer = val;
|
|
534
|
+
},
|
|
535
|
+
enumerable: false,
|
|
536
|
+
configurable: true
|
|
537
|
+
});
|
|
538
|
+
Object.defineProperty(GenericListComponent.prototype, "dataSource", {
|
|
539
|
+
set: function (val) {
|
|
540
|
+
this._dataSource = val;
|
|
541
|
+
this._sorting = undefined;
|
|
542
|
+
this.initSearch();
|
|
543
|
+
this.initTable();
|
|
544
|
+
},
|
|
545
|
+
enumerable: false,
|
|
546
|
+
configurable: true
|
|
547
|
+
});
|
|
548
|
+
Object.defineProperty(GenericListComponent.prototype, "smartFilter", {
|
|
549
|
+
set: function (val) {
|
|
550
|
+
this.internalSmartFilter = this._genericListService.convertToSmartFilter(val);
|
|
551
|
+
this.showSmartFilter = this.internalSmartFilter.fields.length > 0;
|
|
552
|
+
},
|
|
553
|
+
enumerable: false,
|
|
554
|
+
configurable: true
|
|
555
|
+
});
|
|
556
|
+
Object.defineProperty(GenericListComponent.prototype, "pepList", {
|
|
557
|
+
get: function () {
|
|
558
|
+
return this._pepList;
|
|
559
|
+
},
|
|
560
|
+
set: function (val) {
|
|
561
|
+
this._pepList = val;
|
|
562
|
+
},
|
|
563
|
+
enumerable: false,
|
|
564
|
+
configurable: true
|
|
565
|
+
});
|
|
566
|
+
GenericListComponent.prototype.ngOnInit = function () {
|
|
567
|
+
//
|
|
568
|
+
};
|
|
569
|
+
GenericListComponent.prototype.initTable = function () {
|
|
570
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
571
|
+
var _this = this;
|
|
572
|
+
return __generator(this, function (_d) {
|
|
573
|
+
setTimeout(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
574
|
+
var _a, _b, _c, factory, componentRef, fromIndex, toIndex, data, convertedList, uiControl;
|
|
575
|
+
var _this = this;
|
|
576
|
+
return __generator(this, function (_d) {
|
|
577
|
+
switch (_d.label) {
|
|
578
|
+
case 0:
|
|
579
|
+
if (!(this._dataSource &&
|
|
580
|
+
this._pepListContainer)) return [3 /*break*/, 2];
|
|
581
|
+
if (this._pepListContainer.length > 0) {
|
|
582
|
+
this._pepListContainer.remove();
|
|
583
|
+
}
|
|
584
|
+
factory = this._resolver.resolveComponentFactory(i6.PepListComponent);
|
|
585
|
+
componentRef = this._pepListContainer.createComponent(factory);
|
|
586
|
+
this.pepList = componentRef.instance;
|
|
587
|
+
//merge selector inputs with callback inputs
|
|
588
|
+
this.loadTableInputs();
|
|
589
|
+
fromIndex = 0;
|
|
590
|
+
toIndex = 0;
|
|
591
|
+
if (this._tableInputs.pager.type === 'pages') {
|
|
592
|
+
toIndex = fromIndex + (this._tableInputs.pager.size || i6.DEFAULT_PAGE_SIZE) - 1;
|
|
593
|
+
}
|
|
594
|
+
else {
|
|
595
|
+
toIndex = 100; //TO DO - get value from - this.customList.getTopItems()
|
|
596
|
+
}
|
|
597
|
+
return [4 /*yield*/, this.loadData(fromIndex, toIndex)];
|
|
598
|
+
case 1:
|
|
599
|
+
data = _d.sent();
|
|
600
|
+
this.totalRowCount = (data === null || data === void 0 ? void 0 : data.totalCount) || 0;
|
|
601
|
+
componentRef.instance.viewType = 'table';
|
|
602
|
+
componentRef.instance.tableViewType = this._tableInputs.tableViewType;
|
|
603
|
+
componentRef.instance.zebraStripes = this._tableInputs.zebraStripes;
|
|
604
|
+
if (this.disabled) {
|
|
605
|
+
componentRef.instance.disabled = true;
|
|
606
|
+
componentRef.instance.lockItemInnerEvents = true;
|
|
607
|
+
}
|
|
608
|
+
componentRef.instance.supportSorting = this._tableInputs.supportSorting;
|
|
609
|
+
componentRef.instance.selectionTypeForActions = this._tableInputs.selectionType;
|
|
610
|
+
componentRef.instance.pagerType = this._tableInputs.pager.type;
|
|
611
|
+
if (this._tableInputs.pager.type === 'pages') {
|
|
612
|
+
componentRef.instance.pageSize = ((_a = this._tableInputs.pager) === null || _a === void 0 ? void 0 : _a.size) || i6.DEFAULT_PAGE_SIZE;
|
|
613
|
+
componentRef.instance.pageIndex = ((_b = this._tableInputs.pager) === null || _b === void 0 ? void 0 : _b.index) || 0;
|
|
614
|
+
}
|
|
615
|
+
componentRef.instance.noDataFoundMsg = this._tableInputs.noDataFoundMsg;
|
|
616
|
+
componentRef.instance.fieldClick.subscribe(function ($event) {
|
|
617
|
+
_this.onCustomizeFieldClick($event);
|
|
618
|
+
});
|
|
619
|
+
componentRef.instance.selectedItemsChange.subscribe(function ($event) {
|
|
620
|
+
_this.onSelectedItemsChanged($event);
|
|
621
|
+
});
|
|
622
|
+
componentRef.instance.loadItems.subscribe(function ($event) {
|
|
623
|
+
_this.onLoadItems($event);
|
|
624
|
+
});
|
|
625
|
+
componentRef.instance.loadPage.subscribe(function ($event) {
|
|
626
|
+
_this.onLoadPage($event);
|
|
627
|
+
});
|
|
628
|
+
componentRef.instance.valueChange.subscribe(function ($event) {
|
|
629
|
+
_this.onValueChanged($event);
|
|
630
|
+
});
|
|
631
|
+
componentRef.instance.sortingChange.subscribe(function ($event) {
|
|
632
|
+
_this.onSortingChange($event);
|
|
633
|
+
});
|
|
634
|
+
convertedList = [];
|
|
635
|
+
if (data) {
|
|
636
|
+
if ((_c = data.items) === null || _c === void 0 ? void 0 : _c.length) {
|
|
637
|
+
convertedList = this._dataConvertorService.convertListData(data.items);
|
|
638
|
+
}
|
|
639
|
+
uiControl = this.getUiControl(dataViews.DataViewConverter.toUIControlData(data.dataView));
|
|
640
|
+
componentRef.instance.initListData(uiControl, data.totalCount, convertedList);
|
|
641
|
+
}
|
|
642
|
+
_d.label = 2;
|
|
643
|
+
case 2: return [2 /*return*/];
|
|
644
|
+
}
|
|
645
|
+
});
|
|
646
|
+
}); }, 0);
|
|
647
|
+
return [2 /*return*/];
|
|
648
|
+
});
|
|
649
|
+
});
|
|
650
|
+
};
|
|
651
|
+
/**
|
|
652
|
+
* loads inputs in case they are provided and merge with selector inputs
|
|
653
|
+
* @returns merged pep-list inputs
|
|
654
|
+
*/
|
|
655
|
+
GenericListComponent.prototype.loadTableInputs = function () {
|
|
656
|
+
var _this = this;
|
|
657
|
+
this._tableInputs = {
|
|
658
|
+
supportSorting: this.supportSorting,
|
|
659
|
+
selectionType: this.selectionType,
|
|
660
|
+
pager: this.pager,
|
|
661
|
+
noDataFoundMsg: this.noDataFoundMsg,
|
|
662
|
+
tableViewType: this.tableViewType,
|
|
663
|
+
zebraStripes: this.zebraStripes
|
|
664
|
+
};
|
|
665
|
+
if (this._dataSource.inputs) {
|
|
666
|
+
Object.entries(this._dataSource.inputs).forEach(function (item) {
|
|
667
|
+
if (_this._genericListService.hasProperty(_this._tableInputs, item[0])) {
|
|
668
|
+
_this._tableInputs[item[0]] = item[1];
|
|
669
|
+
}
|
|
670
|
+
});
|
|
671
|
+
}
|
|
672
|
+
};
|
|
673
|
+
GenericListComponent.prototype.getUiControl = function (data) {
|
|
674
|
+
var _this = this;
|
|
675
|
+
var uiControl = new i1.UIControl();
|
|
676
|
+
uiControl.ControlFields = [];
|
|
677
|
+
if (data === null || data === void 0 ? void 0 : data.ControlFields) {
|
|
678
|
+
uiControl.ControlFields = data.ControlFields.map(function (field) { return _this._genericListService.convertToUiControlField(field); });
|
|
679
|
+
}
|
|
680
|
+
return uiControl;
|
|
681
|
+
};
|
|
682
|
+
GenericListComponent.prototype.loadMenuItems = function () {
|
|
683
|
+
var _this = this;
|
|
684
|
+
if (this._tableInputs.selectionType !== 'none') {
|
|
685
|
+
this.getMenuActions().then(function (x) { return _this.menuActions = x; });
|
|
686
|
+
}
|
|
687
|
+
};
|
|
688
|
+
GenericListComponent.prototype.getMenuActions = function () {
|
|
689
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
690
|
+
var res, result, actions;
|
|
691
|
+
var _this = this;
|
|
692
|
+
return __generator(this, function (_d) {
|
|
693
|
+
switch (_d.label) {
|
|
694
|
+
case 0:
|
|
695
|
+
res = [];
|
|
696
|
+
result = this.getMenuObjects();
|
|
697
|
+
if (!result.success) return [3 /*break*/, 2];
|
|
698
|
+
return [4 /*yield*/, this.actions.get(result.data)];
|
|
699
|
+
case 1:
|
|
700
|
+
actions = _d.sent();
|
|
701
|
+
this.menuHandlers = {};
|
|
702
|
+
actions === null || actions === void 0 ? void 0 : actions.forEach(function (item) {
|
|
703
|
+
var uuid = i1.PepGuid.newGuid();
|
|
704
|
+
_this.menuHandlers[uuid] = item.handler;
|
|
705
|
+
res.push({
|
|
706
|
+
key: uuid,
|
|
707
|
+
text: item.title
|
|
708
|
+
});
|
|
709
|
+
});
|
|
710
|
+
_d.label = 2;
|
|
711
|
+
case 2: return [2 /*return*/, res];
|
|
712
|
+
}
|
|
713
|
+
});
|
|
714
|
+
});
|
|
715
|
+
};
|
|
716
|
+
GenericListComponent.prototype.getMenuObjects = function () {
|
|
717
|
+
var menuObjects = {
|
|
718
|
+
success: false,
|
|
719
|
+
data: new i6.PepSelectionData()
|
|
720
|
+
};
|
|
721
|
+
if (this.pepList) {
|
|
722
|
+
menuObjects.success = true;
|
|
723
|
+
menuObjects.data = this.pepList.getSelectedItemsData();
|
|
724
|
+
}
|
|
725
|
+
return menuObjects;
|
|
726
|
+
};
|
|
727
|
+
GenericListComponent.prototype.initSearch = function () {
|
|
728
|
+
var _a;
|
|
729
|
+
this.searchString = '';
|
|
730
|
+
(_a = this.search) === null || _a === void 0 ? void 0 : _a.initSearch();
|
|
731
|
+
};
|
|
732
|
+
GenericListComponent.prototype.loadData = function (fromIndex, toIndex) {
|
|
733
|
+
var _a;
|
|
734
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
735
|
+
var data;
|
|
736
|
+
var _this = this;
|
|
737
|
+
return __generator(this, function (_d) {
|
|
738
|
+
switch (_d.label) {
|
|
739
|
+
case 0: return [4 /*yield*/, this._dataSource.init({
|
|
740
|
+
searchString: this.searchString || undefined,
|
|
741
|
+
filters: this._appliedFilters.length ? this._appliedFilters : undefined,
|
|
742
|
+
sorting: this._sorting || undefined,
|
|
743
|
+
fromIndex: fromIndex,
|
|
744
|
+
toIndex: toIndex
|
|
745
|
+
})];
|
|
746
|
+
case 1:
|
|
747
|
+
data = _d.sent();
|
|
748
|
+
if (data) {
|
|
749
|
+
this._dataView = data.dataView;
|
|
750
|
+
if (((_a = data.items) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
751
|
+
data.items = data.items.map(function (item) { return _this._genericListService.convertToPepRowData(item, data.dataView, _this.uuidMapping); });
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
return [2 /*return*/, data];
|
|
755
|
+
}
|
|
756
|
+
});
|
|
757
|
+
});
|
|
758
|
+
};
|
|
759
|
+
GenericListComponent.prototype.updateDataList = function (fromIndex, toIndex, pageIndex) {
|
|
760
|
+
if (pageIndex === void 0) { pageIndex = undefined; }
|
|
761
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
762
|
+
var dataList;
|
|
763
|
+
var _this = this;
|
|
764
|
+
return __generator(this, function (_d) {
|
|
765
|
+
switch (_d.label) {
|
|
766
|
+
case 0:
|
|
767
|
+
if (!this._dataSource.update) return [3 /*break*/, 2];
|
|
768
|
+
return [4 /*yield*/, this._dataSource.update({
|
|
769
|
+
searchString: this.searchString || undefined,
|
|
770
|
+
filters: this._appliedFilters.length ? this._appliedFilters : undefined,
|
|
771
|
+
sorting: this._sorting || undefined,
|
|
772
|
+
fromIndex: fromIndex,
|
|
773
|
+
toIndex: toIndex,
|
|
774
|
+
pageIndex: pageIndex
|
|
775
|
+
})];
|
|
776
|
+
case 1:
|
|
777
|
+
dataList = _d.sent();
|
|
778
|
+
if ((dataList === null || dataList === void 0 ? void 0 : dataList.length) > 0) {
|
|
779
|
+
return [2 /*return*/, dataList.map(function (item) { return _this._genericListService.convertToPepRowData(item, _this._dataView, _this.uuidMapping); })];
|
|
780
|
+
}
|
|
781
|
+
else {
|
|
782
|
+
return [2 /*return*/, []];
|
|
783
|
+
}
|
|
784
|
+
return [3 /*break*/, 3];
|
|
785
|
+
case 2: return [2 /*return*/, []];
|
|
786
|
+
case 3: return [2 /*return*/];
|
|
787
|
+
}
|
|
788
|
+
});
|
|
789
|
+
});
|
|
790
|
+
};
|
|
791
|
+
/**
|
|
792
|
+
* loads virtual scroll items from api
|
|
793
|
+
*/
|
|
794
|
+
GenericListComponent.prototype.onLoadItems = function (event) {
|
|
795
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
796
|
+
var list, convertedList;
|
|
797
|
+
return __generator(this, function (_d) {
|
|
798
|
+
switch (_d.label) {
|
|
799
|
+
case 0: return [4 /*yield*/, this.updateDataList(event.fromIndex, event.toIndex)];
|
|
800
|
+
case 1:
|
|
801
|
+
list = _d.sent();
|
|
802
|
+
convertedList = this._dataConvertorService.convertListData(list);
|
|
803
|
+
this.pepList.updateItems(convertedList, event);
|
|
804
|
+
return [2 /*return*/];
|
|
805
|
+
}
|
|
806
|
+
});
|
|
807
|
+
});
|
|
808
|
+
};
|
|
809
|
+
/**
|
|
810
|
+
* loads paging bulk from api
|
|
811
|
+
*/
|
|
812
|
+
GenericListComponent.prototype.onLoadPage = function (event) {
|
|
813
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
814
|
+
var fromIndex, toIndex, list, convertedList;
|
|
815
|
+
return __generator(this, function (_d) {
|
|
816
|
+
switch (_d.label) {
|
|
817
|
+
case 0:
|
|
818
|
+
fromIndex = event.pageIndex * event.pageSize;
|
|
819
|
+
toIndex = Math.min(fromIndex + event.pageSize - 1, this.totalRowCount - 1);
|
|
820
|
+
return [4 /*yield*/, this.updateDataList(fromIndex, toIndex, event.pageIndex)];
|
|
821
|
+
case 1:
|
|
822
|
+
list = _d.sent();
|
|
823
|
+
convertedList = this._dataConvertorService.convertListData(list);
|
|
824
|
+
this.pepList.updatePage(convertedList, event);
|
|
825
|
+
return [2 /*return*/];
|
|
826
|
+
}
|
|
827
|
+
});
|
|
828
|
+
});
|
|
829
|
+
};
|
|
830
|
+
GenericListComponent.prototype.getItemById = function (id) {
|
|
831
|
+
if (this.pepList) {
|
|
832
|
+
return this._pepList.getItemDataByID(id);
|
|
833
|
+
}
|
|
834
|
+
else {
|
|
835
|
+
return null;
|
|
836
|
+
}
|
|
837
|
+
};
|
|
838
|
+
GenericListComponent.prototype.getSelectedItems = function () {
|
|
839
|
+
if (this.pepList) {
|
|
840
|
+
return this._pepList.getSelectedItemsData();
|
|
841
|
+
}
|
|
842
|
+
else {
|
|
843
|
+
return null;
|
|
844
|
+
}
|
|
845
|
+
};
|
|
846
|
+
GenericListComponent.prototype.onActionItemClicked = function (action) {
|
|
847
|
+
var result = this.getMenuObjects();
|
|
848
|
+
if (result.success) {
|
|
849
|
+
this.menuHandlers[action.source.key](result.data);
|
|
850
|
+
}
|
|
851
|
+
};
|
|
852
|
+
GenericListComponent.prototype.onSearchChanged = function (event) {
|
|
853
|
+
this.searchString = event.value;
|
|
854
|
+
this.initTable();
|
|
855
|
+
};
|
|
856
|
+
GenericListComponent.prototype.onSelectedItemsChanged = function (selectedRowsCount) {
|
|
857
|
+
var _this = this;
|
|
858
|
+
//loading menu items after pep-list selected items are updated
|
|
859
|
+
setTimeout(function () {
|
|
860
|
+
_this.loadMenuItems();
|
|
861
|
+
}, 0);
|
|
862
|
+
};
|
|
863
|
+
GenericListComponent.prototype.onCustomizeFieldClick = function (fieldClickEvent) {
|
|
864
|
+
this.fieldClick.emit(fieldClickEvent);
|
|
865
|
+
};
|
|
866
|
+
GenericListComponent.prototype.onBreadCrumbItemClick = function (event) {
|
|
867
|
+
this.breadCrumbItemClick.emit(event);
|
|
868
|
+
};
|
|
869
|
+
GenericListComponent.prototype.onValueChanged = function (event) {
|
|
870
|
+
this.valueChange.emit(event);
|
|
871
|
+
};
|
|
872
|
+
GenericListComponent.prototype.onSortingChange = function (event) {
|
|
873
|
+
this._sorting = event;
|
|
874
|
+
this.initTable();
|
|
875
|
+
};
|
|
876
|
+
GenericListComponent.prototype.onFiltersChange = function (filters) {
|
|
877
|
+
this._appliedFilters = filters;
|
|
878
|
+
this.initTable();
|
|
879
|
+
};
|
|
880
|
+
GenericListComponent.prototype.ngOnDestroy = function () {
|
|
881
|
+
if (this._resize$) {
|
|
882
|
+
this._resize$.unsubscribe();
|
|
883
|
+
}
|
|
884
|
+
};
|
|
885
|
+
return GenericListComponent;
|
|
886
|
+
}());
|
|
887
|
+
GenericListComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: GenericListComponent, deps: [{ token: i0__namespace.ComponentFactoryResolver }, { token: i1__namespace$1.PepDataConvertorService }, { token: i1__namespace$1.PepLayoutService }, { token: i1__namespace.TranslateService }, { token: PepGenericListService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
888
|
+
GenericListComponent.ɵcmp = i0__namespace.ɵɵ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", 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: i0.ViewContainerRef }], ngImport: i0__namespace, 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=\"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\n<pep-page-layout *ngIf=\"!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=\"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}::ng-deep .pep-top-bar-container:not(.inline){margin-inline:var(--pep-spacing-xs, .25rem)}.noDataFoundMsg{margin:1rem 0;height:calc(100% - 2rem);width:100%;background:rgba(26,26,26,.12);display:flex;justify-content:center;align-items:center}.bread-crumbs{padding:var(--pep-spacing-lg, 1rem) 0 var(--pep-spacing-sm, .5rem) 0}\n"], components: [{ type: i4__namespace.PepPageLayoutComponent, selector: "pep-page-layout", inputs: ["addPadding", "showShadow"] }, { type: i5__namespace.PepTopBarComponent, selector: "pep-top-bar", inputs: ["inline", "title"], outputs: ["footerStateChange"] }, { type: i6__namespace.PepListActionsComponent, selector: "pep-list-actions", inputs: ["actions", "sizeType", "xPosition", "hidden"], outputs: ["actionClick", "stateChange", "menuClick"] }, { type: i6__namespace.PepListTotalComponent, selector: "pep-list-total", inputs: ["totalRows", "totalAmount", "isMapView", "sizeType"] }, { type: i7__namespace.PepSearchComponent, selector: "pep-search", inputs: ["triggerOn", "autoCompleteTop", "sizeType", "autoCompleteValues", "shrink", "value", "searchControl", "useAsWebComponent"], outputs: ["search", "autocompleteChange", "stateChange"] }, { type: i8__namespace.PepSideBarComponent, selector: "pep-side-bar", inputs: ["ignoreResize", "showHeader", "showFooter", "useAsWebComponent"], outputs: ["stateChange"] }, { type: i9__namespace.PepSmartFiltersComponent, selector: "pep-smart-filters", inputs: ["title", "filters", "fields", "useAsWebComponent"], outputs: ["filtersChange", "fieldToggleChange"] }, { type: i10__namespace.PepBreadCrumbsComponent, selector: "pep-bread-crumbs", inputs: ["addSpacing", "items", "displayType"], outputs: ["itemClick"] }], directives: [{ type: i11__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i11__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i11__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
889
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: GenericListComponent, decorators: [{
|
|
890
|
+
type: i0.Component,
|
|
891
|
+
args: [{
|
|
892
|
+
selector: 'pep-generic-list',
|
|
893
|
+
templateUrl: './generic-list.component.html',
|
|
894
|
+
styleUrls: ['./generic-list.component.scss'],
|
|
895
|
+
providers: [PepGenericListService]
|
|
896
|
+
}]
|
|
897
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ComponentFactoryResolver }, { type: i1__namespace$1.PepDataConvertorService }, { type: i1__namespace$1.PepLayoutService }, { type: i1__namespace.TranslateService }, { type: PepGenericListService }]; }, propDecorators: { search: [{
|
|
898
|
+
type: i0.ViewChild,
|
|
899
|
+
args: ['search']
|
|
900
|
+
}], pepListContainer: [{
|
|
901
|
+
type: i0.ViewChild,
|
|
902
|
+
args: ['pepListContainer', { read: i0.ViewContainerRef }]
|
|
903
|
+
}], dataSource: [{
|
|
904
|
+
type: i0.Input
|
|
905
|
+
}], actions: [{
|
|
906
|
+
type: i0.Input
|
|
907
|
+
}], uuidMapping: [{
|
|
908
|
+
type: i0.Input
|
|
909
|
+
}], disabled: [{
|
|
910
|
+
type: i0.Input
|
|
911
|
+
}], addPadding: [{
|
|
912
|
+
type: i0.Input
|
|
913
|
+
}], title: [{
|
|
914
|
+
type: i0.Input
|
|
915
|
+
}], inline: [{
|
|
916
|
+
type: i0.Input
|
|
917
|
+
}], showSearch: [{
|
|
918
|
+
type: i0.Input
|
|
919
|
+
}], noDataFoundMsg: [{
|
|
920
|
+
type: i0.Input
|
|
921
|
+
}], selectionType: [{
|
|
922
|
+
type: i0.Input
|
|
923
|
+
}], supportSorting: [{
|
|
924
|
+
type: i0.Input
|
|
925
|
+
}], pager: [{
|
|
926
|
+
type: i0.Input
|
|
927
|
+
}], tableViewType: [{
|
|
928
|
+
type: i0.Input
|
|
929
|
+
}], zebraStripes: [{
|
|
930
|
+
type: i0.Input
|
|
931
|
+
}], smartFilter: [{
|
|
932
|
+
type: i0.Input
|
|
933
|
+
}], showTopBar: [{
|
|
934
|
+
type: i0.Input
|
|
935
|
+
}], breadCrumbsItems: [{
|
|
936
|
+
type: i0.Input
|
|
937
|
+
}], fieldClick: [{
|
|
938
|
+
type: i0.Output
|
|
939
|
+
}], valueChange: [{
|
|
940
|
+
type: i0.Output
|
|
941
|
+
}], breadCrumbItemClick: [{
|
|
942
|
+
type: i0.Output
|
|
943
943
|
}] } });
|
|
944
944
|
|
|
945
|
-
var PepGenericListModule = /** @class */ (function () {
|
|
946
|
-
function PepGenericListModule() {
|
|
947
|
-
}
|
|
948
|
-
return PepGenericListModule;
|
|
949
|
-
}());
|
|
950
|
-
PepGenericListModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericListModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
951
|
-
PepGenericListModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericListModule, declarations: [GenericListComponent], imports: [i11.CommonModule,
|
|
952
|
-
i1.PepNgxLibModule,
|
|
953
|
-
i6.PepListModule,
|
|
954
|
-
form.PepFormModule,
|
|
955
|
-
menu.PepMenuModule,
|
|
956
|
-
i4.PepPageLayoutModule,
|
|
957
|
-
i5.PepTopBarModule,
|
|
958
|
-
i8.PepSideBarModule,
|
|
959
|
-
i7.PepSearchModule,
|
|
960
|
-
i10.PepBreadCrumbsModule,
|
|
961
|
-
i9.PepSmartFiltersModule], exports: [GenericListComponent] });
|
|
962
|
-
PepGenericListModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericListModule, imports: [[
|
|
963
|
-
i11.CommonModule,
|
|
964
|
-
i1.PepNgxLibModule,
|
|
965
|
-
i6.PepListModule,
|
|
966
|
-
form.PepFormModule,
|
|
967
|
-
menu.PepMenuModule,
|
|
968
|
-
i4.PepPageLayoutModule,
|
|
969
|
-
i5.PepTopBarModule,
|
|
970
|
-
i8.PepSideBarModule,
|
|
971
|
-
i7.PepSearchModule,
|
|
972
|
-
i10.PepBreadCrumbsModule,
|
|
973
|
-
i9.PepSmartFiltersModule
|
|
974
|
-
]] });
|
|
975
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericListModule, decorators: [{
|
|
976
|
-
type: i0.NgModule,
|
|
977
|
-
args: [{
|
|
978
|
-
declarations: [
|
|
979
|
-
GenericListComponent
|
|
980
|
-
],
|
|
981
|
-
imports: [
|
|
982
|
-
i11.CommonModule,
|
|
983
|
-
i1.PepNgxLibModule,
|
|
984
|
-
i6.PepListModule,
|
|
985
|
-
form.PepFormModule,
|
|
986
|
-
menu.PepMenuModule,
|
|
987
|
-
i4.PepPageLayoutModule,
|
|
988
|
-
i5.PepTopBarModule,
|
|
989
|
-
i8.PepSideBarModule,
|
|
990
|
-
i7.PepSearchModule,
|
|
991
|
-
i10.PepBreadCrumbsModule,
|
|
992
|
-
i9.PepSmartFiltersModule
|
|
993
|
-
],
|
|
994
|
-
exports: [
|
|
995
|
-
GenericListComponent
|
|
996
|
-
] /*,
|
|
997
|
-
providers: [
|
|
998
|
-
PepGenericListService
|
|
999
|
-
] */
|
|
1000
|
-
}]
|
|
945
|
+
var PepGenericListModule = /** @class */ (function () {
|
|
946
|
+
function PepGenericListModule() {
|
|
947
|
+
}
|
|
948
|
+
return PepGenericListModule;
|
|
949
|
+
}());
|
|
950
|
+
PepGenericListModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericListModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
951
|
+
PepGenericListModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericListModule, declarations: [GenericListComponent], imports: [i11.CommonModule,
|
|
952
|
+
i1.PepNgxLibModule,
|
|
953
|
+
i6.PepListModule,
|
|
954
|
+
form.PepFormModule,
|
|
955
|
+
menu.PepMenuModule,
|
|
956
|
+
i4.PepPageLayoutModule,
|
|
957
|
+
i5.PepTopBarModule,
|
|
958
|
+
i8.PepSideBarModule,
|
|
959
|
+
i7.PepSearchModule,
|
|
960
|
+
i10.PepBreadCrumbsModule,
|
|
961
|
+
i9.PepSmartFiltersModule], exports: [GenericListComponent] });
|
|
962
|
+
PepGenericListModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericListModule, imports: [[
|
|
963
|
+
i11.CommonModule,
|
|
964
|
+
i1.PepNgxLibModule,
|
|
965
|
+
i6.PepListModule,
|
|
966
|
+
form.PepFormModule,
|
|
967
|
+
menu.PepMenuModule,
|
|
968
|
+
i4.PepPageLayoutModule,
|
|
969
|
+
i5.PepTopBarModule,
|
|
970
|
+
i8.PepSideBarModule,
|
|
971
|
+
i7.PepSearchModule,
|
|
972
|
+
i10.PepBreadCrumbsModule,
|
|
973
|
+
i9.PepSmartFiltersModule
|
|
974
|
+
]] });
|
|
975
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericListModule, decorators: [{
|
|
976
|
+
type: i0.NgModule,
|
|
977
|
+
args: [{
|
|
978
|
+
declarations: [
|
|
979
|
+
GenericListComponent
|
|
980
|
+
],
|
|
981
|
+
imports: [
|
|
982
|
+
i11.CommonModule,
|
|
983
|
+
i1.PepNgxLibModule,
|
|
984
|
+
i6.PepListModule,
|
|
985
|
+
form.PepFormModule,
|
|
986
|
+
menu.PepMenuModule,
|
|
987
|
+
i4.PepPageLayoutModule,
|
|
988
|
+
i5.PepTopBarModule,
|
|
989
|
+
i8.PepSideBarModule,
|
|
990
|
+
i7.PepSearchModule,
|
|
991
|
+
i10.PepBreadCrumbsModule,
|
|
992
|
+
i9.PepSmartFiltersModule
|
|
993
|
+
],
|
|
994
|
+
exports: [
|
|
995
|
+
GenericListComponent
|
|
996
|
+
] /*,
|
|
997
|
+
providers: [
|
|
998
|
+
PepGenericListService
|
|
999
|
+
] */
|
|
1000
|
+
}]
|
|
1001
1001
|
}] });
|
|
1002
1002
|
|
|
1003
|
-
/*
|
|
1004
|
-
* Public API Surface of ngx-composite-lib/generic-list
|
|
1003
|
+
/*
|
|
1004
|
+
* Public API Surface of ngx-composite-lib/generic-list
|
|
1005
1005
|
*/
|
|
1006
1006
|
|
|
1007
|
-
/**
|
|
1008
|
-
* Generated bundle index. Do not edit.
|
|
1007
|
+
/**
|
|
1008
|
+
* Generated bundle index. Do not edit.
|
|
1009
1009
|
*/
|
|
1010
1010
|
|
|
1011
1011
|
exports.GenericListComponent = GenericListComponent;
|