@pepperi-addons/ngx-composite-lib 0.0.10-beta.4 → 0.0.10-beta.42
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 +2 -1
- package/bundles/pepperi-addons-ngx-composite-lib-color-settings.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-composite-lib-dimx-export.umd.js +771 -0
- package/bundles/pepperi-addons-ngx-composite-lib-dimx-export.umd.js.map +1 -0
- package/bundles/pepperi-addons-ngx-composite-lib-file-status-panel.umd.js +119 -0
- package/bundles/pepperi-addons-ngx-composite-lib-file-status-panel.umd.js.map +1 -0
- package/bundles/pepperi-addons-ngx-composite-lib-generic-list.umd.js +493 -105
- 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 +4 -1
- package/bundles/pepperi-addons-ngx-composite-lib-group-buttons-settings.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-composite-lib-shadow-settings.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-composite-lib.umd.js +586 -51
- package/bundles/pepperi-addons-ngx-composite-lib.umd.js.map +1 -1
- package/color-settings/package.json +0 -3
- package/core/common/directives/index.d.ts +1 -0
- package/core/common/directives/public-api.d.ts +1 -0
- package/core/common/directives/reset-configuration-field.directive.d.ts +38 -0
- package/core/common/index.d.ts +1 -0
- package/core/common/public-api.d.ts +2 -0
- package/core/common/services/index.d.ts +1 -0
- package/core/common/services/public-api.d.ts +1 -0
- package/core/common/services/utilities.service.d.ts +6 -0
- package/core/index.d.ts +1 -0
- package/core/public-api.d.ts +1 -0
- package/dimx-export/dimx.component.d.ts +73 -0
- package/dimx-export/dimx.model.d.ts +7 -0
- package/dimx-export/dimx.module.d.ts +15 -0
- package/dimx-export/dimx.service.d.ts +20 -0
- package/dimx-export/package.json +16 -0
- package/{draggable-item/pepperi-addons-ngx-composite-lib-draggable-item.d.ts → dimx-export/pepperi-addons-ngx-composite-lib-dimx-export.d.ts} +1 -1
- package/dimx-export/public-api.d.ts +3 -0
- package/esm2015/color-settings/color-settings.component.js +9 -8
- package/esm2015/color-settings/color-settings.model.js +1 -1
- package/esm2015/core/common/directives/index.js +5 -0
- package/esm2015/core/common/directives/public-api.js +5 -0
- package/esm2015/core/common/directives/reset-configuration-field.directive.js +153 -0
- package/esm2015/core/common/index.js +5 -0
- package/esm2015/core/common/public-api.js +6 -0
- package/esm2015/core/common/services/index.js +5 -0
- package/esm2015/core/common/services/public-api.js +5 -0
- package/esm2015/core/common/services/utilities.service.js +19 -0
- package/esm2015/core/index.js +5 -0
- package/esm2015/core/public-api.js +5 -0
- package/esm2015/dimx-export/dimx.component.js +241 -0
- package/esm2015/dimx-export/dimx.model.js +8 -0
- package/esm2015/dimx-export/dimx.module.js +49 -0
- package/esm2015/dimx-export/dimx.service.js +50 -0
- package/esm2015/dimx-export/pepperi-addons-ngx-composite-lib-dimx-export.js +5 -0
- package/esm2015/dimx-export/public-api.js +7 -0
- package/esm2015/file-status-panel/file-status-panel.component.js +34 -0
- package/esm2015/file-status-panel/file-status-panel.model.js +8 -0
- package/esm2015/file-status-panel/file-status-panel.module.js +40 -0
- package/esm2015/file-status-panel/pepperi-addons-ngx-composite-lib-file-status-panel.js +5 -0
- package/esm2015/file-status-panel/public-api.js +7 -0
- package/esm2015/generic-list/generic-list.component.js +337 -80
- package/esm2015/generic-list/generic-list.model.js +1 -1
- package/esm2015/generic-list/generic-list.module.js +18 -6
- package/esm2015/generic-list/generic-list.service.js +42 -0
- package/esm2015/generic-list/public-api.js +2 -1
- package/esm2015/group-buttons-settings/group-buttons-settings.component.js +5 -2
- package/esm2015/ngx-composite-lib.module.js +28 -9
- package/esm2015/public-api.js +2 -1
- package/esm2015/shadow-settings/shadow-settings.model.js +1 -1
- package/fesm2015/pepperi-addons-ngx-composite-lib-color-settings.js +8 -7
- package/fesm2015/pepperi-addons-ngx-composite-lib-color-settings.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-composite-lib-dimx-export.js +350 -0
- package/fesm2015/pepperi-addons-ngx-composite-lib-dimx-export.js.map +1 -0
- package/fesm2015/pepperi-addons-ngx-composite-lib-file-status-panel.js +90 -0
- package/fesm2015/pepperi-addons-ngx-composite-lib-file-status-panel.js.map +1 -0
- package/fesm2015/pepperi-addons-ngx-composite-lib-generic-list.js +391 -85
- package/fesm2015/pepperi-addons-ngx-composite-lib-generic-list.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-composite-lib-group-buttons-settings.js +4 -1
- package/fesm2015/pepperi-addons-ngx-composite-lib-group-buttons-settings.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-composite-lib-shadow-settings.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-composite-lib.js +225 -13
- package/fesm2015/pepperi-addons-ngx-composite-lib.js.map +1 -1
- package/file-status-panel/file-status-panel.component.d.ts +14 -0
- package/file-status-panel/file-status-panel.model.d.ts +6 -0
- package/file-status-panel/file-status-panel.module.d.ts +12 -0
- package/file-status-panel/package.json +10 -0
- package/file-status-panel/pepperi-addons-ngx-composite-lib-file-status-panel.d.ts +5 -0
- package/file-status-panel/public-api.d.ts +3 -0
- package/generic-list/generic-list.component.d.ts +68 -22
- package/generic-list/generic-list.model.d.ts +35 -5
- package/generic-list/generic-list.module.d.ts +2 -1
- package/generic-list/generic-list.service.d.ts +13 -0
- package/generic-list/package.json +0 -1
- package/generic-list/public-api.d.ts +1 -0
- package/group-buttons-settings/group-buttons-settings.component.d.ts +2 -1
- package/group-buttons-settings/package.json +0 -3
- package/ngx-composite-lib.module.d.ts +6 -1
- package/package.json +2 -2
- package/public-api.d.ts +1 -0
- package/shadow-settings/package.json +0 -3
- package/src/assets/i18n/en.ngx-composite-lib.json +5 -2
- package/src/core/style/abstracts/functions.scss +0 -0
- package/src/core/style/abstracts/mixins.scss +0 -0
- package/src/core/style/abstracts/variables.scss +0 -0
- package/src/core/style/base/helpers.scss +0 -0
- package/src/core/style/components/general.scss +0 -0
- package/styling.scss +11 -0
- package/bundles/pepperi-addons-ngx-composite-lib-draggable-item.umd.js +0 -112
- package/bundles/pepperi-addons-ngx-composite-lib-draggable-item.umd.js.map +0 -1
- package/draggable-item/draggable-item.component.d.ts +0 -11
- package/draggable-item/draggable-item.module.d.ts +0 -11
- package/draggable-item/package.json +0 -13
- package/draggable-item/public-api.d.ts +0 -2
- package/esm2015/draggable-item/draggable-item.component.js +0 -40
- package/esm2015/draggable-item/draggable-item.module.js +0 -36
- package/esm2015/draggable-item/pepperi-addons-ngx-composite-lib-draggable-item.js +0 -5
- package/esm2015/draggable-item/public-api.js +0 -6
- package/fesm2015/pepperi-addons-ngx-composite-lib-draggable-item.js +0 -84
- package/fesm2015/pepperi-addons-ngx-composite-lib-draggable-item.js.map +0 -1
- package/styles.scss +0 -38
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@pepperi-addons/ngx-lib'), require('@pepperi-addons/ngx-lib/list'), require('@pepperi-addons/papi-sdk/dist/entities/data-view'), require('@ngx-translate/core'), require('@pepperi-addons/ngx-lib/page-layout'), require('@pepperi-addons/ngx-lib/top-bar'), require('@pepperi-addons/ngx-lib/search'), require('@pepperi-addons/ngx-lib/form'), require('@pepperi-addons/ngx-lib/menu')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@pepperi-addons/ngx-composite-lib/generic-list', ['exports', '@angular/core', '@angular/common', '@pepperi-addons/ngx-lib', '@pepperi-addons/ngx-lib/list', '@pepperi-addons/papi-sdk/dist/entities/data-view', '@ngx-translate/core', '@pepperi-addons/ngx-lib/page-layout', '@pepperi-addons/ngx-lib/top-bar', '@pepperi-addons/ngx-lib/search', '@pepperi-addons/ngx-lib/form', '@pepperi-addons/ngx-lib/menu'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["pepperi-addons"] = global["pepperi-addons"] || {}, global["pepperi-addons"]["ngx-composite-lib"] = global["pepperi-addons"]["ngx-composite-lib"] || {}, global["pepperi-addons"]["ngx-composite-lib"]["generic-list"] = {}), global.ng.core, global.ng.common, global["ngx-lib"], global["ngx-lib/list"], global["papi-sdk/data-view"], global.translate, global["ngx-lib/page-layout"], global["ngx-lib/top-bar"], global["ngx-lib/search"], global["ngx-lib/form"], global["ngx-lib/menu"]));
|
|
5
|
-
})(this, (function (exports, i0,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@pepperi-addons/ngx-lib'), require('@pepperi-addons/ngx-lib/list'), require('@pepperi-addons/papi-sdk/dist/entities/data-view'), require('@pepperi-addons/data-views'), require('rxjs'), require('@ngx-translate/core'), require('@pepperi-addons/ngx-lib/page-layout'), require('@pepperi-addons/ngx-lib/top-bar'), require('@pepperi-addons/ngx-lib/search'), require('@pepperi-addons/ngx-lib/bread-crumbs'), require('@pepperi-addons/ngx-lib/form'), require('@pepperi-addons/ngx-lib/menu')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@pepperi-addons/ngx-composite-lib/generic-list', ['exports', '@angular/core', '@angular/common', '@pepperi-addons/ngx-lib', '@pepperi-addons/ngx-lib/list', '@pepperi-addons/papi-sdk/dist/entities/data-view', '@pepperi-addons/data-views', 'rxjs', '@ngx-translate/core', '@pepperi-addons/ngx-lib/page-layout', '@pepperi-addons/ngx-lib/top-bar', '@pepperi-addons/ngx-lib/search', '@pepperi-addons/ngx-lib/bread-crumbs', '@pepperi-addons/ngx-lib/form', '@pepperi-addons/ngx-lib/menu'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["pepperi-addons"] = global["pepperi-addons"] || {}, global["pepperi-addons"]["ngx-composite-lib"] = global["pepperi-addons"]["ngx-composite-lib"] || {}, global["pepperi-addons"]["ngx-composite-lib"]["generic-list"] = {}), global.ng.core, global.ng.common, global["ngx-lib"], global["ngx-lib/list"], global["papi-sdk/data-view"], global.dataViews, global.rxjs, global.translate, global["ngx-lib/page-layout"], global["ngx-lib/top-bar"], global["ngx-lib/search"], global["ngx-lib/bread-crumbs"], global["ngx-lib/form"], global["ngx-lib/menu"]));
|
|
5
|
+
})(this, (function (exports, i0, i9, i2, i6, dataView, dataViews, rxjs, i3, i4, i5, i7, i8, form, menu) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -23,13 +23,14 @@
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
|
-
var
|
|
27
|
-
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
28
|
-
var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
|
|
26
|
+
var i9__namespace = /*#__PURE__*/_interopNamespace(i9);
|
|
29
27
|
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
28
|
+
var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
|
|
30
29
|
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
31
30
|
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
32
|
-
var
|
|
31
|
+
var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
|
|
32
|
+
var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
|
|
33
|
+
var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
|
|
33
34
|
|
|
34
35
|
/*! *****************************************************************************
|
|
35
36
|
Copyright (c) Microsoft Corporation.
|
|
@@ -349,46 +350,307 @@
|
|
|
349
350
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
350
351
|
}
|
|
351
352
|
|
|
353
|
+
//test
|
|
354
|
+
var PepGenericListService = /** @class */ (function () {
|
|
355
|
+
function PepGenericListService() {
|
|
356
|
+
this._refresh$ = new rxjs.BehaviorSubject(false);
|
|
357
|
+
this.refresh$ = this._refresh$.asObservable();
|
|
358
|
+
//
|
|
359
|
+
}
|
|
360
|
+
Object.defineProperty(PepGenericListService.prototype, "pepList", {
|
|
361
|
+
get: function () {
|
|
362
|
+
return this._pepList;
|
|
363
|
+
},
|
|
364
|
+
set: function (val) {
|
|
365
|
+
this._pepList = val;
|
|
366
|
+
},
|
|
367
|
+
enumerable: false,
|
|
368
|
+
configurable: true
|
|
369
|
+
});
|
|
370
|
+
PepGenericListService.prototype.getItemById = function (id) {
|
|
371
|
+
if (this._pepList) {
|
|
372
|
+
return this._pepList.getItemDataByID(id);
|
|
373
|
+
}
|
|
374
|
+
else {
|
|
375
|
+
return null;
|
|
376
|
+
}
|
|
377
|
+
};
|
|
378
|
+
PepGenericListService.prototype.getSelectedItems = function () {
|
|
379
|
+
if (this._pepList) {
|
|
380
|
+
return this._pepList.getSelectedItemsData();
|
|
381
|
+
}
|
|
382
|
+
else {
|
|
383
|
+
return null;
|
|
384
|
+
}
|
|
385
|
+
};
|
|
386
|
+
return PepGenericListService;
|
|
387
|
+
}());
|
|
388
|
+
PepGenericListService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericListService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
389
|
+
PepGenericListService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericListService, providedIn: 'root' });
|
|
390
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericListService, decorators: [{
|
|
391
|
+
type: i0.Injectable,
|
|
392
|
+
args: [{
|
|
393
|
+
providedIn: 'root'
|
|
394
|
+
}]
|
|
395
|
+
}], ctorParameters: function () { return []; } });
|
|
396
|
+
|
|
352
397
|
var GenericListComponent = /** @class */ (function () {
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
this.
|
|
357
|
-
this.
|
|
358
|
-
this.
|
|
359
|
-
this.
|
|
360
|
-
this.
|
|
398
|
+
function GenericListComponent(_resolver, _genericListService, _dataConvertorService, _layoutService, _translate) {
|
|
399
|
+
var _this = this;
|
|
400
|
+
this._resolver = _resolver;
|
|
401
|
+
this._genericListService = _genericListService;
|
|
402
|
+
this._dataConvertorService = _dataConvertorService;
|
|
403
|
+
this._layoutService = _layoutService;
|
|
404
|
+
this._translate = _translate;
|
|
405
|
+
this._dataSource = {
|
|
406
|
+
init: function (params) { return __awaiter(_this, void 0, void 0, function () {
|
|
407
|
+
return __generator(this, function (_f) {
|
|
408
|
+
return [2 /*return*/, {
|
|
409
|
+
dataView: {
|
|
410
|
+
Type: 'Grid'
|
|
411
|
+
},
|
|
412
|
+
totalCount: -1,
|
|
413
|
+
items: []
|
|
414
|
+
}];
|
|
415
|
+
});
|
|
416
|
+
}); }
|
|
417
|
+
};
|
|
418
|
+
this.actions = {
|
|
419
|
+
get: function (data) { return __awaiter(_this, void 0, void 0, function () {
|
|
420
|
+
return __generator(this, function (_f) {
|
|
421
|
+
return [2 /*return*/, []];
|
|
422
|
+
});
|
|
423
|
+
}); }
|
|
424
|
+
};
|
|
425
|
+
this.uuidMapping = 'key';
|
|
361
426
|
this.addPadding = false;
|
|
362
427
|
this.title = '';
|
|
363
428
|
this.inline = false;
|
|
364
429
|
this.showSearch = false;
|
|
365
|
-
this.
|
|
366
|
-
this.
|
|
367
|
-
this.allowMultipleSelection = false;
|
|
430
|
+
this.showTopBar = false;
|
|
431
|
+
this.breadCrumbsItems = new Array();
|
|
368
432
|
this.fieldClick = new i0.EventEmitter();
|
|
369
|
-
|
|
370
|
-
|
|
433
|
+
this.valueChange = new i0.EventEmitter();
|
|
434
|
+
this.breadCrumbItemClick = new i0.EventEmitter();
|
|
435
|
+
this._resize$ = new rxjs.Subscription();
|
|
436
|
+
this._dataView = {
|
|
437
|
+
Type: 'Grid'
|
|
438
|
+
};
|
|
439
|
+
this._tableInputs = {
|
|
440
|
+
supportSorting: false,
|
|
441
|
+
selectionType: 'single',
|
|
442
|
+
pager: {
|
|
443
|
+
type: 'scroll'
|
|
444
|
+
},
|
|
445
|
+
noDataFoundMsg: ''
|
|
446
|
+
};
|
|
447
|
+
this.totalRowCount = -1;
|
|
448
|
+
this.searchString = '';
|
|
449
|
+
this._sorting = undefined;
|
|
371
450
|
this.menuHandlers = {};
|
|
372
451
|
this.menuActions = [];
|
|
373
|
-
this.
|
|
374
|
-
//
|
|
452
|
+
this._resize$ = this._layoutService.onResize$.pipe().subscribe(function (size) {
|
|
453
|
+
//
|
|
375
454
|
});
|
|
376
455
|
}
|
|
456
|
+
Object.defineProperty(GenericListComponent.prototype, "pepListContainer", {
|
|
457
|
+
set: function (val) {
|
|
458
|
+
this._pepListContainer = val;
|
|
459
|
+
},
|
|
460
|
+
enumerable: false,
|
|
461
|
+
configurable: true
|
|
462
|
+
});
|
|
463
|
+
Object.defineProperty(GenericListComponent.prototype, "dataSource", {
|
|
464
|
+
set: function (val) {
|
|
465
|
+
this._dataSource = val;
|
|
466
|
+
this.searchString = '';
|
|
467
|
+
this._sorting = undefined;
|
|
468
|
+
this.initTable();
|
|
469
|
+
},
|
|
470
|
+
enumerable: false,
|
|
471
|
+
configurable: true
|
|
472
|
+
});
|
|
473
|
+
Object.defineProperty(GenericListComponent.prototype, "noDataFoundMsg", {
|
|
474
|
+
set: function (val) {
|
|
475
|
+
this._tableInputs.noDataFoundMsg = val;
|
|
476
|
+
},
|
|
477
|
+
enumerable: false,
|
|
478
|
+
configurable: true
|
|
479
|
+
});
|
|
480
|
+
Object.defineProperty(GenericListComponent.prototype, "selectionType", {
|
|
481
|
+
set: function (val) {
|
|
482
|
+
this._tableInputs.selectionType = val;
|
|
483
|
+
},
|
|
484
|
+
enumerable: false,
|
|
485
|
+
configurable: true
|
|
486
|
+
});
|
|
487
|
+
Object.defineProperty(GenericListComponent.prototype, "supportSorting", {
|
|
488
|
+
set: function (val) {
|
|
489
|
+
this._tableInputs.supportSorting = val;
|
|
490
|
+
},
|
|
491
|
+
enumerable: false,
|
|
492
|
+
configurable: true
|
|
493
|
+
});
|
|
494
|
+
Object.defineProperty(GenericListComponent.prototype, "pager", {
|
|
495
|
+
set: function (val) {
|
|
496
|
+
this._tableInputs.pager = val;
|
|
497
|
+
},
|
|
498
|
+
enumerable: false,
|
|
499
|
+
configurable: true
|
|
500
|
+
});
|
|
501
|
+
Object.defineProperty(GenericListComponent.prototype, "pepList", {
|
|
502
|
+
get: function () {
|
|
503
|
+
return this._genericListService.pepList;
|
|
504
|
+
},
|
|
505
|
+
set: function (val) {
|
|
506
|
+
this._genericListService.pepList = val;
|
|
507
|
+
},
|
|
508
|
+
enumerable: false,
|
|
509
|
+
configurable: true
|
|
510
|
+
});
|
|
511
|
+
GenericListComponent.prototype.ngOnInit = function () {
|
|
512
|
+
//
|
|
513
|
+
};
|
|
514
|
+
GenericListComponent.prototype.initTable = function () {
|
|
515
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
516
|
+
var _this = this;
|
|
517
|
+
return __generator(this, function (_f) {
|
|
518
|
+
setTimeout(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
519
|
+
var _a, _b, _c, _d, _e, factory, componentRef, tableInputs, fromIndex, toIndex, data, convertedList, uiControl;
|
|
520
|
+
var _this = this;
|
|
521
|
+
return __generator(this, function (_f) {
|
|
522
|
+
switch (_f.label) {
|
|
523
|
+
case 0:
|
|
524
|
+
if (!(this._dataSource &&
|
|
525
|
+
this._pepListContainer)) return [3 /*break*/, 3];
|
|
526
|
+
if (this._pepListContainer.length > 0) {
|
|
527
|
+
this._pepListContainer.remove();
|
|
528
|
+
}
|
|
529
|
+
factory = this._resolver.resolveComponentFactory(i6.PepListComponent);
|
|
530
|
+
componentRef = this._pepListContainer.createComponent(factory);
|
|
531
|
+
this.pepList = componentRef.instance;
|
|
532
|
+
return [4 /*yield*/, this.loadTableInputs()];
|
|
533
|
+
case 1:
|
|
534
|
+
tableInputs = _f.sent();
|
|
535
|
+
fromIndex = 0;
|
|
536
|
+
toIndex = 0;
|
|
537
|
+
if (((_a = tableInputs.pager) === null || _a === void 0 ? void 0 : _a.type) === 'pages') {
|
|
538
|
+
toIndex = fromIndex + (((_b = tableInputs.pager) === null || _b === void 0 ? void 0 : _b.size) || i6.DEFAULT_PAGE_SIZE) - 1;
|
|
539
|
+
}
|
|
540
|
+
else {
|
|
541
|
+
toIndex = 100; //TO DO - get reesult from - this.customList.getTopItems()
|
|
542
|
+
}
|
|
543
|
+
return [4 /*yield*/, this.loadData(fromIndex, toIndex)];
|
|
544
|
+
case 2:
|
|
545
|
+
data = _f.sent();
|
|
546
|
+
this.totalRowCount = (data === null || data === void 0 ? void 0 : data.totalCount) || 0;
|
|
547
|
+
componentRef.instance.viewType = 'table';
|
|
548
|
+
componentRef.instance.supportSorting = tableInputs.supportSorting;
|
|
549
|
+
componentRef.instance.selectionTypeForActions = tableInputs.selectionType;
|
|
550
|
+
componentRef.instance.pagerType = tableInputs.pager.type;
|
|
551
|
+
if (tableInputs.pager.type === 'pages') {
|
|
552
|
+
componentRef.instance.pageSize = ((_c = tableInputs.pager) === null || _c === void 0 ? void 0 : _c.size) || i6.DEFAULT_PAGE_SIZE;
|
|
553
|
+
componentRef.instance.pageIndex = ((_d = tableInputs.pager) === null || _d === void 0 ? void 0 : _d.index) || 0;
|
|
554
|
+
}
|
|
555
|
+
componentRef.instance.noDataFoundMsg = tableInputs.noDataFoundMsg;
|
|
556
|
+
componentRef.instance.fieldClick.subscribe(function ($event) {
|
|
557
|
+
_this.onCustomizeFieldClick($event);
|
|
558
|
+
});
|
|
559
|
+
componentRef.instance.selectedItemsChange.subscribe(function ($event) {
|
|
560
|
+
_this.onSelectedItemsChanged($event);
|
|
561
|
+
});
|
|
562
|
+
componentRef.instance.loadItems.subscribe(function ($event) {
|
|
563
|
+
_this.onLoadItems($event);
|
|
564
|
+
});
|
|
565
|
+
componentRef.instance.loadPage.subscribe(function ($event) {
|
|
566
|
+
_this.onLoadPage($event);
|
|
567
|
+
});
|
|
568
|
+
componentRef.instance.valueChange.subscribe(function ($event) {
|
|
569
|
+
_this.onValueChanged($event);
|
|
570
|
+
});
|
|
571
|
+
componentRef.instance.sortingChange.subscribe(function ($event) {
|
|
572
|
+
_this.onSortingChange($event);
|
|
573
|
+
});
|
|
574
|
+
convertedList = [];
|
|
575
|
+
if (data) {
|
|
576
|
+
if (((_e = data === null || data === void 0 ? void 0 : data.items) === null || _e === void 0 ? void 0 : _e.length) > 0) {
|
|
577
|
+
convertedList = this._dataConvertorService.convertListData(data.items);
|
|
578
|
+
}
|
|
579
|
+
uiControl = this.getUiControl(dataViews.DataViewConverter.toUIControlData(data.dataView));
|
|
580
|
+
componentRef.instance.initListData(uiControl, data.totalCount, convertedList);
|
|
581
|
+
}
|
|
582
|
+
_f.label = 3;
|
|
583
|
+
case 3: return [2 /*return*/];
|
|
584
|
+
}
|
|
585
|
+
});
|
|
586
|
+
}); }, 0);
|
|
587
|
+
return [2 /*return*/];
|
|
588
|
+
});
|
|
589
|
+
});
|
|
590
|
+
};
|
|
591
|
+
/**
|
|
592
|
+
* checks if the object contains property
|
|
593
|
+
* @param obj object
|
|
594
|
+
* @param prop property name
|
|
595
|
+
* @returns true if contains, false otherwise
|
|
596
|
+
*/
|
|
597
|
+
GenericListComponent.prototype.hasProperty = function (obj, prop) {
|
|
598
|
+
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
599
|
+
};
|
|
600
|
+
/**
|
|
601
|
+
* loads callback inputs in case they are provided and merge with selector inputs
|
|
602
|
+
* @returns merged pep-list inputs
|
|
603
|
+
*/
|
|
604
|
+
GenericListComponent.prototype.loadTableInputs = function () {
|
|
605
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
606
|
+
var tableInputs, inputs;
|
|
607
|
+
var _this = this;
|
|
608
|
+
return __generator(this, function (_f) {
|
|
609
|
+
switch (_f.label) {
|
|
610
|
+
case 0:
|
|
611
|
+
tableInputs = Object.assign({}, this._tableInputs);
|
|
612
|
+
if (!this._dataSource.inputs) return [3 /*break*/, 2];
|
|
613
|
+
return [4 /*yield*/, this._dataSource.inputs()];
|
|
614
|
+
case 1:
|
|
615
|
+
inputs = _f.sent();
|
|
616
|
+
if (inputs) {
|
|
617
|
+
Object.entries(inputs).forEach(function (item) {
|
|
618
|
+
if (_this.hasProperty(tableInputs, item[0])) {
|
|
619
|
+
tableInputs[item[0]] = item[1];
|
|
620
|
+
}
|
|
621
|
+
});
|
|
622
|
+
}
|
|
623
|
+
_f.label = 2;
|
|
624
|
+
case 2: return [2 /*return*/, tableInputs];
|
|
625
|
+
}
|
|
626
|
+
});
|
|
627
|
+
});
|
|
628
|
+
};
|
|
629
|
+
GenericListComponent.prototype.getUiControl = function (data) {
|
|
630
|
+
var _this = this;
|
|
631
|
+
var uiControl = new i2.UIControl();
|
|
632
|
+
uiControl.ControlFields = [];
|
|
633
|
+
if (data === null || data === void 0 ? void 0 : data.ControlFields) {
|
|
634
|
+
uiControl.ControlFields = data.ControlFields.map(function (field) { return _this.convertToUiControlField(field); });
|
|
635
|
+
}
|
|
636
|
+
return uiControl;
|
|
637
|
+
};
|
|
377
638
|
GenericListComponent.prototype.loadMenuItems = function () {
|
|
378
639
|
var _this = this;
|
|
379
|
-
if (this.
|
|
640
|
+
if (this._tableInputs.selectionType !== 'none') {
|
|
380
641
|
this.getMenuActions().then(function (x) { return _this.menuActions = x; });
|
|
381
642
|
}
|
|
382
643
|
};
|
|
383
644
|
GenericListComponent.prototype.convertToPepRowData = function (object, dataView$1) {
|
|
384
|
-
var row = new
|
|
645
|
+
var row = new i2.PepRowData();
|
|
646
|
+
row.UUID = object[this.uuidMapping] || undefined;
|
|
385
647
|
row.Fields = [];
|
|
386
648
|
if ((dataView$1 === null || dataView$1 === void 0 ? void 0 : dataView$1.Fields) && dataView$1.Columns) {
|
|
387
649
|
for (var index = 0; index < dataView$1.Fields.length; index++) {
|
|
388
650
|
var field = dataView$1.Fields[index];
|
|
389
651
|
row.Fields.push({
|
|
390
652
|
ApiName: field.FieldID,
|
|
391
|
-
Title: this.
|
|
653
|
+
Title: this._translate.instant(field.Title),
|
|
392
654
|
XAlignment: 1,
|
|
393
655
|
FormattedValue: (object[field.FieldID] || '').toString(),
|
|
394
656
|
Value: (object[field.FieldID] || '').toString(),
|
|
@@ -403,109 +665,214 @@
|
|
|
403
665
|
}
|
|
404
666
|
return row;
|
|
405
667
|
};
|
|
668
|
+
GenericListComponent.prototype.convertToUiControlField = function (field) {
|
|
669
|
+
return {
|
|
670
|
+
ApiName: field.ApiName,
|
|
671
|
+
FieldType: field.FieldType,
|
|
672
|
+
Title: field.Title,
|
|
673
|
+
ReadOnly: field.ReadOnlyField,
|
|
674
|
+
ColumnWidth: field.ColumnWidth,
|
|
675
|
+
ColumnWidthType: 1,
|
|
676
|
+
Layout: {
|
|
677
|
+
X: field.Layout.X,
|
|
678
|
+
Y: field.Layout.Y,
|
|
679
|
+
Width: field.Layout.Width,
|
|
680
|
+
Height: field.Layout.Field_Height,
|
|
681
|
+
XAlignment: field.Layout.xAlignment,
|
|
682
|
+
YAlignment: field.Layout.yAlignment,
|
|
683
|
+
}
|
|
684
|
+
};
|
|
685
|
+
};
|
|
406
686
|
GenericListComponent.prototype.getMenuActions = function () {
|
|
407
|
-
var _a;
|
|
408
687
|
return __awaiter(this, void 0, void 0, function () {
|
|
409
|
-
var
|
|
688
|
+
var res, result, actions;
|
|
410
689
|
var _this = this;
|
|
411
|
-
return __generator(this, function (
|
|
412
|
-
switch (
|
|
413
|
-
case 0:
|
|
414
|
-
case 1:
|
|
415
|
-
actions = _d.sent();
|
|
690
|
+
return __generator(this, function (_f) {
|
|
691
|
+
switch (_f.label) {
|
|
692
|
+
case 0:
|
|
416
693
|
res = [];
|
|
694
|
+
result = this.getMenuObjects();
|
|
695
|
+
if (!result.success) return [3 /*break*/, 2];
|
|
696
|
+
return [4 /*yield*/, this.actions.get(result.data)];
|
|
697
|
+
case 1:
|
|
698
|
+
actions = _f.sent();
|
|
417
699
|
this.menuHandlers = {};
|
|
418
700
|
actions === null || actions === void 0 ? void 0 : actions.forEach(function (item) {
|
|
419
|
-
var uuid =
|
|
701
|
+
var uuid = i2.PepGuid.newGuid();
|
|
420
702
|
_this.menuHandlers[uuid] = item.handler;
|
|
421
703
|
res.push({
|
|
422
704
|
key: uuid,
|
|
423
705
|
text: item.title
|
|
424
706
|
});
|
|
425
707
|
});
|
|
426
|
-
|
|
708
|
+
_f.label = 2;
|
|
709
|
+
case 2: return [2 /*return*/, res];
|
|
427
710
|
}
|
|
428
711
|
});
|
|
429
712
|
});
|
|
430
713
|
};
|
|
431
714
|
GenericListComponent.prototype.getMenuObjects = function () {
|
|
432
|
-
var
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
715
|
+
var menuObjects = {
|
|
716
|
+
success: false,
|
|
717
|
+
data: new i6.PepSelectionData()
|
|
718
|
+
};
|
|
719
|
+
if (this.pepList) {
|
|
720
|
+
menuObjects.success = true;
|
|
721
|
+
menuObjects.data = this.pepList.getSelectedItemsData();
|
|
437
722
|
}
|
|
438
|
-
|
|
439
|
-
return objects;
|
|
723
|
+
return menuObjects;
|
|
440
724
|
};
|
|
441
|
-
GenericListComponent.prototype.
|
|
442
|
-
|
|
725
|
+
GenericListComponent.prototype.onActionItemClicked = function (action) {
|
|
726
|
+
var result = this.getMenuObjects();
|
|
727
|
+
if (result.success) {
|
|
728
|
+
this.menuHandlers[action.source.key](result.data);
|
|
729
|
+
}
|
|
443
730
|
};
|
|
444
|
-
GenericListComponent.prototype.
|
|
731
|
+
GenericListComponent.prototype.onSearchChanged = function (event) {
|
|
732
|
+
this.searchString = event.value;
|
|
733
|
+
this.initTable();
|
|
734
|
+
};
|
|
735
|
+
GenericListComponent.prototype.onSelectedItemsChanged = function (selectedRowsCount) {
|
|
736
|
+
var _this = this;
|
|
737
|
+
//loading menu items after pep-list selected items are updated
|
|
738
|
+
setTimeout(function () {
|
|
739
|
+
_this.loadMenuItems();
|
|
740
|
+
}, 0);
|
|
445
741
|
};
|
|
446
|
-
GenericListComponent.prototype.
|
|
447
|
-
this.
|
|
742
|
+
GenericListComponent.prototype.onCustomizeFieldClick = function (fieldClickEvent) {
|
|
743
|
+
this.fieldClick.emit(fieldClickEvent);
|
|
448
744
|
};
|
|
449
|
-
GenericListComponent.prototype.
|
|
450
|
-
this.
|
|
745
|
+
GenericListComponent.prototype.onBreadCrumbItemClick = function (event) {
|
|
746
|
+
this.breadCrumbItemClick.emit(event);
|
|
451
747
|
};
|
|
452
|
-
GenericListComponent.prototype.
|
|
453
|
-
this.
|
|
454
|
-
|
|
748
|
+
GenericListComponent.prototype.onValueChanged = function (event) {
|
|
749
|
+
this.valueChange.emit(event);
|
|
750
|
+
};
|
|
751
|
+
GenericListComponent.prototype.onSortingChange = function (event) {
|
|
752
|
+
this._sorting = event;
|
|
753
|
+
this.initTable();
|
|
754
|
+
};
|
|
755
|
+
GenericListComponent.prototype.loadData = function (fromIndex, toIndex) {
|
|
756
|
+
var _a;
|
|
757
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
758
|
+
var data;
|
|
759
|
+
var _this = this;
|
|
760
|
+
return __generator(this, function (_f) {
|
|
761
|
+
switch (_f.label) {
|
|
762
|
+
case 0: return [4 /*yield*/, this._dataSource.init({
|
|
763
|
+
searchString: this.searchString || undefined,
|
|
764
|
+
sorting: this._sorting || undefined,
|
|
765
|
+
fromIndex: fromIndex,
|
|
766
|
+
toIndex: toIndex
|
|
767
|
+
})];
|
|
768
|
+
case 1:
|
|
769
|
+
data = _f.sent();
|
|
770
|
+
if (data) {
|
|
771
|
+
this._dataView = data.dataView;
|
|
772
|
+
if (((_a = data.items) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
773
|
+
data.items = data.items.map(function (item) { return _this.convertToPepRowData(item, data.dataView); });
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
return [2 /*return*/, data];
|
|
777
|
+
}
|
|
778
|
+
});
|
|
779
|
+
});
|
|
455
780
|
};
|
|
456
|
-
GenericListComponent.prototype.
|
|
781
|
+
GenericListComponent.prototype.updateDataList = function (fromIndex, toIndex, pageIndex) {
|
|
782
|
+
if (pageIndex === void 0) { pageIndex = undefined; }
|
|
457
783
|
return __awaiter(this, void 0, void 0, function () {
|
|
458
|
-
var
|
|
784
|
+
var dataList;
|
|
459
785
|
var _this = this;
|
|
460
|
-
return __generator(this, function (
|
|
461
|
-
switch (
|
|
786
|
+
return __generator(this, function (_f) {
|
|
787
|
+
switch (_f.label) {
|
|
462
788
|
case 0:
|
|
463
|
-
if (!
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
789
|
+
if (!this._dataSource.update) return [3 /*break*/, 2];
|
|
790
|
+
return [4 /*yield*/, this._dataSource.update({
|
|
791
|
+
searchString: this.searchString || undefined,
|
|
792
|
+
sorting: this._sorting || undefined,
|
|
793
|
+
fromIndex: fromIndex,
|
|
794
|
+
toIndex: toIndex,
|
|
795
|
+
pageIndex: pageIndex
|
|
467
796
|
})];
|
|
468
797
|
case 1:
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
uiControl = this.dataConvertorService.getUiControl(tableData[0]);
|
|
479
|
-
this.customList.initListData(uiControl, data.length, data);
|
|
480
|
-
this.loadMenuItems();
|
|
481
|
-
_e.label = 3;
|
|
798
|
+
dataList = _f.sent();
|
|
799
|
+
if ((dataList === null || dataList === void 0 ? void 0 : dataList.length) > 0) {
|
|
800
|
+
return [2 /*return*/, dataList.map(function (item) { return _this.convertToPepRowData(item, _this._dataView); })];
|
|
801
|
+
}
|
|
802
|
+
else {
|
|
803
|
+
return [2 /*return*/, []];
|
|
804
|
+
}
|
|
805
|
+
return [3 /*break*/, 3];
|
|
806
|
+
case 2: return [2 /*return*/, []];
|
|
482
807
|
case 3: return [2 /*return*/];
|
|
483
808
|
}
|
|
484
809
|
});
|
|
485
810
|
});
|
|
486
811
|
};
|
|
487
|
-
|
|
488
|
-
|
|
812
|
+
/**
|
|
813
|
+
* loads virtual scroll items from api
|
|
814
|
+
*/
|
|
815
|
+
GenericListComponent.prototype.onLoadItems = function (event) {
|
|
816
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
817
|
+
var list, convertedList;
|
|
818
|
+
return __generator(this, function (_f) {
|
|
819
|
+
switch (_f.label) {
|
|
820
|
+
case 0: return [4 /*yield*/, this.updateDataList(event.fromIndex, event.toIndex)];
|
|
821
|
+
case 1:
|
|
822
|
+
list = _f.sent();
|
|
823
|
+
convertedList = this._dataConvertorService.convertListData(list);
|
|
824
|
+
this.pepList.updateItems(convertedList, event);
|
|
825
|
+
return [2 /*return*/];
|
|
826
|
+
}
|
|
827
|
+
});
|
|
828
|
+
});
|
|
489
829
|
};
|
|
490
|
-
|
|
491
|
-
|
|
830
|
+
/**
|
|
831
|
+
* loads paging bulk from api
|
|
832
|
+
*/
|
|
833
|
+
GenericListComponent.prototype.onLoadPage = function (event) {
|
|
834
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
835
|
+
var fromIndex, toIndex, list, convertedList;
|
|
836
|
+
return __generator(this, function (_f) {
|
|
837
|
+
switch (_f.label) {
|
|
838
|
+
case 0:
|
|
839
|
+
fromIndex = event.pageIndex * event.pageSize;
|
|
840
|
+
toIndex = Math.min(fromIndex + event.pageSize - 1, this.totalRowCount - 1);
|
|
841
|
+
return [4 /*yield*/, this.updateDataList(fromIndex, toIndex, event.pageIndex)];
|
|
842
|
+
case 1:
|
|
843
|
+
list = _f.sent();
|
|
844
|
+
convertedList = this._dataConvertorService.convertListData(list);
|
|
845
|
+
this.pepList.updatePage(convertedList, event);
|
|
846
|
+
return [2 /*return*/];
|
|
847
|
+
}
|
|
848
|
+
});
|
|
849
|
+
});
|
|
850
|
+
};
|
|
851
|
+
GenericListComponent.prototype.ngOnDestroy = function () {
|
|
852
|
+
if (this._resize$) {
|
|
853
|
+
this._resize$.unsubscribe();
|
|
854
|
+
}
|
|
492
855
|
};
|
|
493
856
|
return GenericListComponent;
|
|
494
857
|
}());
|
|
495
|
-
GenericListComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: GenericListComponent, deps: [{ token:
|
|
496
|
-
GenericListComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: GenericListComponent, selector: "pep-generic-list", inputs: { dataSource: "dataSource", addPadding: "addPadding", title: "title", inline: "inline", showSearch: "showSearch",
|
|
858
|
+
GenericListComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: GenericListComponent, deps: [{ token: i0__namespace.ComponentFactoryResolver }, { token: PepGenericListService }, { token: i2__namespace.PepDataConvertorService }, { token: i2__namespace.PepLayoutService }, { token: i3__namespace.TranslateService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
859
|
+
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", addPadding: "addPadding", title: "title", inline: "inline", showSearch: "showSearch", noDataFoundMsg: "noDataFoundMsg", selectionType: "selectionType", supportSorting: "supportSorting", pager: "pager", showTopBar: "showTopBar", breadCrumbsItems: "breadCrumbsItems" }, outputs: { fieldClick: "fieldClick", valueChange: "valueChange", breadCrumbItemClick: "breadCrumbItemClick" }, viewQueries: [{ 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>\n <div *ngIf=\"showTopBar\" class=\"inline-top-bar-container\">\n <ng-container *ngTemplateOutlet=\"topBarTemplate\"></ng-container>\n </div>\n <ng-container *ngIf=\"breadCrumbsItems.length > 0\">\n <ng-container *ngTemplateOutlet=\"breadCrumbsTemplate\"></ng-container>\n </ng-container>\n </div>\n <ng-container *ngTemplateOutlet=\"listTemplate\"></ng-container>\n</div>\n\n<pep-page-layout *ngIf=\"!inline\" [addPadding]=\"addPadding\">\n <ng-container *ngIf=\"showTopBar\" pep-top-area>\n <ng-container *ngTemplateOutlet=\"topBarTemplate\"></ng-container>\n </ng-container>\n <ng-container *ngIf=\"breadCrumbsItems.length > 0\" 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\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\n <pep-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 #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}.inline-container.add-padding{padding-inline:var(--pep-spacing-lg, 1rem)}.noDataFoundMsg{height:100%;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.PepBreadCrumbsComponent, selector: "pep-bread-crumbs", inputs: ["addSpacing", "items", "displayType"], outputs: ["itemClick"] }], directives: [{ type: i9__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i9__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i9__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
497
860
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: GenericListComponent, decorators: [{
|
|
498
861
|
type: i0.Component,
|
|
499
862
|
args: [{
|
|
500
863
|
selector: 'pep-generic-list',
|
|
501
864
|
templateUrl: './generic-list.component.html',
|
|
502
|
-
styleUrls: ['./generic-list.component.scss']
|
|
865
|
+
styleUrls: ['./generic-list.component.scss']
|
|
503
866
|
}]
|
|
504
|
-
}], ctorParameters: function () { return [{ type:
|
|
867
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ComponentFactoryResolver }, { type: PepGenericListService }, { type: i2__namespace.PepDataConvertorService }, { type: i2__namespace.PepLayoutService }, { type: i3__namespace.TranslateService }]; }, propDecorators: { pepListContainer: [{
|
|
505
868
|
type: i0.ViewChild,
|
|
506
|
-
args: [
|
|
869
|
+
args: ['pepListContainer', { read: i0.ViewContainerRef }]
|
|
507
870
|
}], dataSource: [{
|
|
508
871
|
type: i0.Input
|
|
872
|
+
}], actions: [{
|
|
873
|
+
type: i0.Input
|
|
874
|
+
}], uuidMapping: [{
|
|
875
|
+
type: i0.Input
|
|
509
876
|
}], addPadding: [{
|
|
510
877
|
type: i0.Input
|
|
511
878
|
}], title: [{
|
|
@@ -514,14 +881,24 @@
|
|
|
514
881
|
type: i0.Input
|
|
515
882
|
}], showSearch: [{
|
|
516
883
|
type: i0.Input
|
|
517
|
-
}],
|
|
884
|
+
}], noDataFoundMsg: [{
|
|
518
885
|
type: i0.Input
|
|
519
|
-
}],
|
|
886
|
+
}], selectionType: [{
|
|
520
887
|
type: i0.Input
|
|
521
|
-
}],
|
|
888
|
+
}], supportSorting: [{
|
|
889
|
+
type: i0.Input
|
|
890
|
+
}], pager: [{
|
|
891
|
+
type: i0.Input
|
|
892
|
+
}], showTopBar: [{
|
|
893
|
+
type: i0.Input
|
|
894
|
+
}], breadCrumbsItems: [{
|
|
522
895
|
type: i0.Input
|
|
523
896
|
}], fieldClick: [{
|
|
524
897
|
type: i0.Output
|
|
898
|
+
}], valueChange: [{
|
|
899
|
+
type: i0.Output
|
|
900
|
+
}], breadCrumbItemClick: [{
|
|
901
|
+
type: i0.Output
|
|
525
902
|
}] } });
|
|
526
903
|
|
|
527
904
|
var PepGenericListModule = /** @class */ (function () {
|
|
@@ -530,23 +907,27 @@
|
|
|
530
907
|
return PepGenericListModule;
|
|
531
908
|
}());
|
|
532
909
|
PepGenericListModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericListModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
533
|
-
PepGenericListModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericListModule, declarations: [GenericListComponent], imports: [
|
|
534
|
-
|
|
535
|
-
|
|
910
|
+
PepGenericListModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericListModule, declarations: [GenericListComponent], imports: [i9.CommonModule,
|
|
911
|
+
i2.PepNgxLibModule,
|
|
912
|
+
i6.PepListModule,
|
|
536
913
|
form.PepFormModule,
|
|
537
914
|
menu.PepMenuModule,
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
915
|
+
i4.PepPageLayoutModule,
|
|
916
|
+
i5.PepTopBarModule,
|
|
917
|
+
i7.PepSearchModule,
|
|
918
|
+
i8.PepBreadCrumbsModule], exports: [GenericListComponent] });
|
|
919
|
+
PepGenericListModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericListModule, providers: [
|
|
920
|
+
PepGenericListService
|
|
921
|
+
], imports: [[
|
|
922
|
+
i9.CommonModule,
|
|
923
|
+
i2.PepNgxLibModule,
|
|
924
|
+
i6.PepListModule,
|
|
545
925
|
form.PepFormModule,
|
|
546
926
|
menu.PepMenuModule,
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
927
|
+
i4.PepPageLayoutModule,
|
|
928
|
+
i5.PepTopBarModule,
|
|
929
|
+
i7.PepSearchModule,
|
|
930
|
+
i8.PepBreadCrumbsModule
|
|
550
931
|
]] });
|
|
551
932
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericListModule, decorators: [{
|
|
552
933
|
type: i0.NgModule,
|
|
@@ -555,16 +936,22 @@
|
|
|
555
936
|
GenericListComponent
|
|
556
937
|
],
|
|
557
938
|
imports: [
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
939
|
+
i9.CommonModule,
|
|
940
|
+
i2.PepNgxLibModule,
|
|
941
|
+
i6.PepListModule,
|
|
561
942
|
form.PepFormModule,
|
|
562
943
|
menu.PepMenuModule,
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
944
|
+
i4.PepPageLayoutModule,
|
|
945
|
+
i5.PepTopBarModule,
|
|
946
|
+
i7.PepSearchModule,
|
|
947
|
+
i8.PepBreadCrumbsModule
|
|
948
|
+
],
|
|
949
|
+
exports: [
|
|
950
|
+
GenericListComponent
|
|
566
951
|
],
|
|
567
|
-
|
|
952
|
+
providers: [
|
|
953
|
+
PepGenericListService
|
|
954
|
+
]
|
|
568
955
|
}]
|
|
569
956
|
}] });
|
|
570
957
|
|
|
@@ -578,6 +965,7 @@
|
|
|
578
965
|
|
|
579
966
|
exports.GenericListComponent = GenericListComponent;
|
|
580
967
|
exports.PepGenericListModule = PepGenericListModule;
|
|
968
|
+
exports.PepGenericListService = PepGenericListService;
|
|
581
969
|
|
|
582
970
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
583
971
|
|