@pepperi-addons/ngx-composite-lib 0.0.10-beta.1 → 0.0.10-beta.6
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 +122 -122
- package/bundles/pepperi-addons-ngx-composite-lib-draggable-item.umd.js +71 -71
- package/bundles/pepperi-addons-ngx-composite-lib-draggable-item.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-composite-lib-generic-list.umd.js +535 -535
- package/bundles/pepperi-addons-ngx-composite-lib-group-buttons-settings.umd.js +173 -173
- package/bundles/pepperi-addons-ngx-composite-lib-shadow-settings.umd.js +117 -117
- package/bundles/pepperi-addons-ngx-composite-lib.umd.js +72 -29
- package/bundles/pepperi-addons-ngx-composite-lib.umd.js.map +1 -1
- 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/index.d.ts +1 -0
- package/core/common/public-api.d.ts +1 -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/draggable-item/draggable-item.component.d.ts +11 -11
- package/draggable-item/draggable-item.module.d.ts +11 -11
- package/draggable-item/pepperi-addons-ngx-composite-lib-draggable-item.d.ts +5 -5
- package/draggable-item/public-api.d.ts +2 -2
- package/esm2015/color-settings/color-settings.component.js +80 -80
- 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/index.js +5 -0
- package/esm2015/core/common/public-api.js +5 -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/draggable-item/draggable-item.component.js +39 -39
- package/esm2015/draggable-item/draggable-item.module.js +36 -36
- package/esm2015/draggable-item/pepperi-addons-ngx-composite-lib-draggable-item.js +4 -4
- package/esm2015/draggable-item/public-api.js +5 -5
- package/esm2015/generic-list/generic-list.component.js +163 -163
- package/esm2015/generic-list/generic-list.model.js +1 -1
- package/esm2015/generic-list/generic-list.module.js +51 -51
- package/esm2015/generic-list/pepperi-addons-ngx-composite-lib-generic-list.js +4 -4
- package/esm2015/generic-list/public-api.js +6 -6
- package/esm2015/group-buttons-settings/group-buttons-settings.component.js +131 -131
- 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 +25 -25
- package/esm2015/pepperi-addons-ngx-composite-lib.js +4 -4
- package/esm2015/public-api.js +6 -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 +112 -112
- package/fesm2015/pepperi-addons-ngx-composite-lib-draggable-item.js +66 -66
- package/fesm2015/pepperi-addons-ngx-composite-lib-draggable-item.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-composite-lib-generic-list.js +192 -192
- package/fesm2015/pepperi-addons-ngx-composite-lib-group-buttons-settings.js +164 -164
- package/fesm2015/pepperi-addons-ngx-composite-lib-shadow-settings.js +107 -107
- package/fesm2015/pepperi-addons-ngx-composite-lib.js +70 -29
- package/fesm2015/pepperi-addons-ngx-composite-lib.js.map +1 -1
- package/generic-list/generic-list.component.d.ts +45 -45
- package/generic-list/generic-list.model.d.ts +11 -11
- package/generic-list/generic-list.module.d.ts +15 -15
- package/generic-list/pepperi-addons-ngx-composite-lib-generic-list.d.ts +5 -5
- package/generic-list/public-api.d.ts +3 -3
- package/group-buttons-settings/group-buttons-settings.component.d.ts +32 -32
- 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 +6 -6
- package/package.json +1 -1
- package/pepperi-addons-ngx-composite-lib.d.ts +5 -5
- package/public-api.d.ts +2 -1
- 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
- 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 +5 -0
- package/src/core/style/base/helpers.scss +0 -0
- package/src/core/style/components/general.scss +37 -0
- package/styles.scss +11 -35
|
@@ -7,78 +7,78 @@ import * as i1 from '@pepperi-addons/ngx-lib/button';
|
|
|
7
7
|
import { PepButtonModule } from '@pepperi-addons/ngx-lib/button';
|
|
8
8
|
import { DragDropModule } from '@angular/cdk/drag-drop';
|
|
9
9
|
|
|
10
|
-
class DraggableItemComponent {
|
|
11
|
-
// private _isDraggable = false;
|
|
12
|
-
// @Input()
|
|
13
|
-
// set isDraggable(value: boolean) {
|
|
14
|
-
// this._isDraggable = value;
|
|
15
|
-
// this._cursor = value ? 'move' : 'inherit'
|
|
16
|
-
// }
|
|
17
|
-
// get isDraggable(): boolean {
|
|
18
|
-
// return this._isDraggable;
|
|
19
|
-
// }
|
|
20
|
-
constructor() {
|
|
21
|
-
this._cursor = 'move';
|
|
22
|
-
this.title = '';
|
|
23
|
-
this.disabled = false;
|
|
24
|
-
}
|
|
25
|
-
ngOnInit() {
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
DraggableItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: DraggableItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
29
|
-
DraggableItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: DraggableItemComponent, selector: "pep-draggable-item", inputs: { title: "title", disabled: "disabled" }, host: { properties: { "style.cursor": "this._cursor" } }, ngImport: i0, template: "<div class=\"draggable-item-container\" [ngClass]=\"{ 'disabled': disabled }\">\n <div class=\"\">\n <pep-button classNames=\"lock-events\" sizeType=\"xs\" iconName=\"system_move\"></pep-button>\n </div>\n <div *ngIf=\"title !== ''\" class=\"title-container\">\n <span class=\"body-sm bold ellipsis title\" title=\"{{title}}\">{{title}}</span>\n </div>\n <div class=\"actions\">\n <ng-content select=\"[pep-actions]\"></ng-content>\n </div>\n</div>", styles: [":host{display:block}.draggable-item-container{height:2.5rem;width:100%;display:grid;grid-template-columns:auto 1fr auto;align-items:center;border-radius:var(--pep-border-radius-md, .25rem);padding-inline:var(--pep-spacing-sm, .5rem);background:
|
|
30
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: DraggableItemComponent, decorators: [{
|
|
31
|
-
type: Component,
|
|
32
|
-
args: [{
|
|
33
|
-
selector: 'pep-draggable-item',
|
|
34
|
-
templateUrl: './draggable-item.component.html',
|
|
35
|
-
styleUrls: ['./draggable-item.component.scss']
|
|
36
|
-
}]
|
|
37
|
-
}], ctorParameters: function () { return []; }, propDecorators: { _cursor: [{
|
|
38
|
-
type: HostBinding,
|
|
39
|
-
args: ['style.cursor']
|
|
40
|
-
}], title: [{
|
|
41
|
-
type: Input
|
|
42
|
-
}], disabled: [{
|
|
43
|
-
type: Input
|
|
10
|
+
class DraggableItemComponent {
|
|
11
|
+
// private _isDraggable = false;
|
|
12
|
+
// @Input()
|
|
13
|
+
// set isDraggable(value: boolean) {
|
|
14
|
+
// this._isDraggable = value;
|
|
15
|
+
// this._cursor = value ? 'move' : 'inherit'
|
|
16
|
+
// }
|
|
17
|
+
// get isDraggable(): boolean {
|
|
18
|
+
// return this._isDraggable;
|
|
19
|
+
// }
|
|
20
|
+
constructor() {
|
|
21
|
+
this._cursor = 'move';
|
|
22
|
+
this.title = '';
|
|
23
|
+
this.disabled = false;
|
|
24
|
+
}
|
|
25
|
+
ngOnInit() {
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
DraggableItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: DraggableItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
29
|
+
DraggableItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: DraggableItemComponent, selector: "pep-draggable-item", inputs: { title: "title", disabled: "disabled" }, host: { properties: { "style.cursor": "this._cursor" } }, ngImport: i0, template: "<div class=\"draggable-item-container\" [ngClass]=\"{ 'disabled': disabled }\">\n <div class=\"\">\n <pep-button classNames=\"lock-events\" sizeType=\"xs\" iconName=\"system_move\"></pep-button>\n </div>\n <div *ngIf=\"title !== ''\" class=\"title-container\">\n <span class=\"body-sm bold ellipsis title\" title=\"{{title}}\">{{title}}</span>\n </div>\n <div class=\"actions\">\n <ng-content select=\"[pep-actions]\"></ng-content>\n </div>\n</div>", styles: [":host{display:block;cursor:grab}.draggable-item-container{height:2.5rem;width:100%;display:grid;grid-template-columns:auto 1fr auto;align-items:center;border-radius:var(--pep-border-radius-md, .25rem);padding-inline:var(--pep-spacing-sm, .5rem);background:get-pep-color(get-pepperi-theme(),color-regular,color-flat-r-40);box-shadow:get-pep-shadow(get-pepperi-theme(),shadow-xs,soft);border:1px solid get-pep-color(get-pepperi-theme(),color-regular,color-flat-r-20)}.draggable-item-container .title-container{overflow-x:hidden;margin-inline:var(--pep-spacing-sm, .5rem)}.draggable-item-container .title-container .title{display:block}.draggable-item-container .actions{display:inline-flex;grid-gap:var(--pep-spacing-xs, .25rem);gap:var(--pep-spacing-xs, .25rem)}\n"], components: [{ type: i1.PepButtonComponent, selector: "pep-button", inputs: ["styleType", "styleStateType", "sizeType", "classNames", "disabled", "iconPosition", "visible", "key", "value", "iconName"], outputs: ["buttonClick"] }], directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
30
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: DraggableItemComponent, decorators: [{
|
|
31
|
+
type: Component,
|
|
32
|
+
args: [{
|
|
33
|
+
selector: 'pep-draggable-item',
|
|
34
|
+
templateUrl: './draggable-item.component.html',
|
|
35
|
+
styleUrls: ['./draggable-item.component.scss']
|
|
36
|
+
}]
|
|
37
|
+
}], ctorParameters: function () { return []; }, propDecorators: { _cursor: [{
|
|
38
|
+
type: HostBinding,
|
|
39
|
+
args: ['style.cursor']
|
|
40
|
+
}], title: [{
|
|
41
|
+
type: Input
|
|
42
|
+
}], disabled: [{
|
|
43
|
+
type: Input
|
|
44
44
|
}] } });
|
|
45
45
|
|
|
46
|
-
class
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
PepNgxLibModule,
|
|
51
|
-
PepButtonModule,
|
|
52
|
-
DragDropModule], exports: [DraggableItemComponent] });
|
|
53
|
-
|
|
54
|
-
CommonModule,
|
|
55
|
-
PepNgxLibModule,
|
|
56
|
-
PepButtonModule,
|
|
57
|
-
DragDropModule
|
|
58
|
-
]] });
|
|
59
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type:
|
|
60
|
-
type: NgModule,
|
|
61
|
-
args: [{
|
|
62
|
-
declarations: [
|
|
63
|
-
DraggableItemComponent
|
|
64
|
-
],
|
|
65
|
-
imports: [
|
|
66
|
-
CommonModule,
|
|
67
|
-
PepNgxLibModule,
|
|
68
|
-
PepButtonModule,
|
|
69
|
-
DragDropModule
|
|
70
|
-
],
|
|
71
|
-
exports: [DraggableItemComponent],
|
|
72
|
-
}]
|
|
46
|
+
class PepDraggableItemModule {
|
|
47
|
+
}
|
|
48
|
+
PepDraggableItemModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepDraggableItemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
49
|
+
PepDraggableItemModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepDraggableItemModule, declarations: [DraggableItemComponent], imports: [CommonModule,
|
|
50
|
+
PepNgxLibModule,
|
|
51
|
+
PepButtonModule,
|
|
52
|
+
DragDropModule], exports: [DraggableItemComponent] });
|
|
53
|
+
PepDraggableItemModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepDraggableItemModule, imports: [[
|
|
54
|
+
CommonModule,
|
|
55
|
+
PepNgxLibModule,
|
|
56
|
+
PepButtonModule,
|
|
57
|
+
DragDropModule
|
|
58
|
+
]] });
|
|
59
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepDraggableItemModule, decorators: [{
|
|
60
|
+
type: NgModule,
|
|
61
|
+
args: [{
|
|
62
|
+
declarations: [
|
|
63
|
+
DraggableItemComponent
|
|
64
|
+
],
|
|
65
|
+
imports: [
|
|
66
|
+
CommonModule,
|
|
67
|
+
PepNgxLibModule,
|
|
68
|
+
PepButtonModule,
|
|
69
|
+
DragDropModule
|
|
70
|
+
],
|
|
71
|
+
exports: [DraggableItemComponent],
|
|
72
|
+
}]
|
|
73
73
|
}] });
|
|
74
74
|
|
|
75
|
-
/*
|
|
76
|
-
* Public API Surface of ngx-composite-lib/draggable-item
|
|
75
|
+
/*
|
|
76
|
+
* Public API Surface of ngx-composite-lib/draggable-item
|
|
77
77
|
*/
|
|
78
78
|
|
|
79
|
-
/**
|
|
80
|
-
* Generated bundle index. Do not edit.
|
|
79
|
+
/**
|
|
80
|
+
* Generated bundle index. Do not edit.
|
|
81
81
|
*/
|
|
82
82
|
|
|
83
|
-
export { DraggableItemComponent,
|
|
83
|
+
export { DraggableItemComponent, PepDraggableItemModule };
|
|
84
84
|
//# sourceMappingURL=pepperi-addons-ngx-composite-lib-draggable-item.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pepperi-addons-ngx-composite-lib-draggable-item.js","sources":["../../../projects/ngx-composite-lib/draggable-item/draggable-item.component.ts","../../../projects/ngx-composite-lib/draggable-item/draggable-item.component.html","../../../projects/ngx-composite-lib/draggable-item/draggable-item.module.ts","../../../projects/ngx-composite-lib/draggable-item/public-api.ts","../../../projects/ngx-composite-lib/draggable-item/pepperi-addons-ngx-composite-lib-draggable-item.ts"],"sourcesContent":["import { Component, EventEmitter, HostBinding, Input, OnInit, Output } from '@angular/core';\n\n@Component({\n selector: 'pep-draggable-item',\n templateUrl: './draggable-item.component.html',\n styleUrls: ['./draggable-item.component.scss']\n})\nexport class DraggableItemComponent implements OnInit {\n\n @HostBinding('style.cursor') _cursor = 'move';\n\n @Input() title = '';\n \n @Input() disabled = false;\n\n // private _isDraggable = false;\n // @Input()\n // set isDraggable(value: boolean) {\n // this._isDraggable = value;\n\n // this._cursor = value ? 'move' : 'inherit'\n // }\n // get isDraggable(): boolean {\n // return this._isDraggable;\n // }\n\n constructor() { }\n\n ngOnInit(): void {\n }\n}\n","<div class=\"draggable-item-container\" [ngClass]=\"{ 'disabled': disabled }\">\n <div class=\"\">\n <pep-button classNames=\"lock-events\" sizeType=\"xs\" iconName=\"system_move\"></pep-button>\n </div>\n <div *ngIf=\"title !== ''\" class=\"title-container\">\n <span class=\"body-sm bold ellipsis title\" title=\"{{title}}\">{{title}}</span>\n </div>\n <div class=\"actions\">\n <ng-content select=\"[pep-actions]\"></ng-content>\n </div>\n</div>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { PepNgxLibModule } from '@pepperi-addons/ngx-lib';\nimport { PepButtonModule } from '@pepperi-addons/ngx-lib/button';\n\nimport { DragDropModule } from '@angular/cdk/drag-drop';\n\nimport { DraggableItemComponent } from './draggable-item.component';\n\n@NgModule({\n declarations: [\n DraggableItemComponent\n ],\n imports: [\n CommonModule,\n PepNgxLibModule,\n PepButtonModule,\n DragDropModule\n ],\n exports: [DraggableItemComponent],\n})\nexport class
|
|
1
|
+
{"version":3,"file":"pepperi-addons-ngx-composite-lib-draggable-item.js","sources":["../../../projects/ngx-composite-lib/draggable-item/draggable-item.component.ts","../../../projects/ngx-composite-lib/draggable-item/draggable-item.component.html","../../../projects/ngx-composite-lib/draggable-item/draggable-item.module.ts","../../../projects/ngx-composite-lib/draggable-item/public-api.ts","../../../projects/ngx-composite-lib/draggable-item/pepperi-addons-ngx-composite-lib-draggable-item.ts"],"sourcesContent":["import { Component, EventEmitter, HostBinding, Input, OnInit, Output } from '@angular/core';\n\n@Component({\n selector: 'pep-draggable-item',\n templateUrl: './draggable-item.component.html',\n styleUrls: ['./draggable-item.component.scss']\n})\nexport class DraggableItemComponent implements OnInit {\n\n @HostBinding('style.cursor') _cursor = 'move';\n\n @Input() title = '';\n \n @Input() disabled = false;\n\n // private _isDraggable = false;\n // @Input()\n // set isDraggable(value: boolean) {\n // this._isDraggable = value;\n\n // this._cursor = value ? 'move' : 'inherit'\n // }\n // get isDraggable(): boolean {\n // return this._isDraggable;\n // }\n\n constructor() { }\n\n ngOnInit(): void {\n }\n}\n","<div class=\"draggable-item-container\" [ngClass]=\"{ 'disabled': disabled }\">\n <div class=\"\">\n <pep-button classNames=\"lock-events\" sizeType=\"xs\" iconName=\"system_move\"></pep-button>\n </div>\n <div *ngIf=\"title !== ''\" class=\"title-container\">\n <span class=\"body-sm bold ellipsis title\" title=\"{{title}}\">{{title}}</span>\n </div>\n <div class=\"actions\">\n <ng-content select=\"[pep-actions]\"></ng-content>\n </div>\n</div>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { PepNgxLibModule } from '@pepperi-addons/ngx-lib';\nimport { PepButtonModule } from '@pepperi-addons/ngx-lib/button';\n\nimport { DragDropModule } from '@angular/cdk/drag-drop';\n\nimport { DraggableItemComponent } from './draggable-item.component';\n\n@NgModule({\n declarations: [\n DraggableItemComponent\n ],\n imports: [\n CommonModule,\n PepNgxLibModule,\n PepButtonModule,\n DragDropModule\n ],\n exports: [DraggableItemComponent],\n})\nexport class PepDraggableItemModule { }\n","/*\n * Public API Surface of ngx-composite-lib/draggable-item\n */\nexport * from './draggable-item.module';\nexport * from './draggable-item.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;MAOa,sBAAsB;;;;;;;;;;IAmB/B;QAjB6B,YAAO,GAAG,MAAM,CAAC;QAErC,UAAK,GAAG,EAAE,CAAC;QAEX,aAAQ,GAAG,KAAK,CAAC;KAaT;IAEjB,QAAQ;KACP;;mHAtBQ,sBAAsB;uGAAtB,sBAAsB,sKCPnC,yeAUM;2FDHO,sBAAsB;kBALlC,SAAS;mBAAC;oBACP,QAAQ,EAAE,oBAAoB;oBAC9B,WAAW,EAAE,iCAAiC;oBAC9C,SAAS,EAAE,CAAC,iCAAiC,CAAC;iBACjD;0EAGgC,OAAO;sBAAnC,WAAW;uBAAC,cAAc;gBAElB,KAAK;sBAAb,KAAK;gBAEG,QAAQ;sBAAhB,KAAK;;;MEQG,sBAAsB;;mHAAtB,sBAAsB;oHAAtB,sBAAsB,iBAV3B,sBAAsB,aAGtB,YAAY;QACZ,eAAe;QACf,eAAe;QACf,cAAc,aAER,sBAAsB;oHAEvB,sBAAsB,YARtB;YACL,YAAY;YACZ,eAAe;YACf,eAAe;YACf,cAAc;SACjB;2FAGQ,sBAAsB;kBAZlC,QAAQ;mBAAC;oBACN,YAAY,EAAE;wBACV,sBAAsB;qBACzB;oBACD,OAAO,EAAE;wBACL,YAAY;wBACZ,eAAe;wBACf,eAAe;wBACf,cAAc;qBACjB;oBACD,OAAO,EAAE,CAAC,sBAAsB,CAAC;iBACpC;;;ACpBD;;;;ACAA;;;;;;"}
|
|
@@ -18,204 +18,204 @@ import { PepSearchModule } from '@pepperi-addons/ngx-lib/search';
|
|
|
18
18
|
import { PepFormModule } from '@pepperi-addons/ngx-lib/form';
|
|
19
19
|
import { PepMenuModule } from '@pepperi-addons/ngx-lib/menu';
|
|
20
20
|
|
|
21
|
-
class GenericListComponent {
|
|
22
|
-
// PepScreenSizeType = PepScreenSizeType;
|
|
23
|
-
// screenSize: PepScreenSizeType;
|
|
24
|
-
constructor(dataConvertorService, layoutService, translate) {
|
|
25
|
-
this.dataConvertorService = dataConvertorService;
|
|
26
|
-
this.layoutService = layoutService;
|
|
27
|
-
this.translate = translate;
|
|
28
|
-
this.dataObjects = [];
|
|
29
|
-
this.searchString = '';
|
|
30
|
-
this.addPadding = false;
|
|
31
|
-
this.title = '';
|
|
32
|
-
this.inline = false;
|
|
33
|
-
this.showSearch = false;
|
|
34
|
-
this.allowSelection = true;
|
|
35
|
-
this.noDataMessage = "No data";
|
|
36
|
-
this.allowMultipleSelection = false;
|
|
37
|
-
this.fieldClick = new EventEmitter();
|
|
38
|
-
// @Output()
|
|
39
|
-
// onAddClicked = new EventEmitter<void>();
|
|
40
|
-
this.menuHandlers = {};
|
|
41
|
-
this.menuActions = [];
|
|
42
|
-
this.layoutService.onResize$.pipe().subscribe((size) => {
|
|
43
|
-
// this.screenSize = size;
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
loadMenuItems() {
|
|
47
|
-
if (this.allowSelection) {
|
|
48
|
-
this.getMenuActions().then(x => this.menuActions = x);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
convertToPepRowData(object, dataView) {
|
|
52
|
-
const row = new PepRowData();
|
|
53
|
-
row.Fields = [];
|
|
54
|
-
if ((dataView === null || dataView === void 0 ? void 0 : dataView.Fields) && dataView.Columns) {
|
|
55
|
-
for (let index = 0; index < dataView.Fields.length; index++) {
|
|
56
|
-
let field = dataView.Fields[index];
|
|
57
|
-
row.Fields.push({
|
|
58
|
-
ApiName: field.FieldID,
|
|
59
|
-
Title: this.translate.instant(field.Title),
|
|
60
|
-
XAlignment: 1,
|
|
61
|
-
FormattedValue: (object[field.FieldID] || '').toString(),
|
|
62
|
-
Value: (object[field.FieldID] || '').toString(),
|
|
63
|
-
ColumnWidth: dataView.Columns[index].Width,
|
|
64
|
-
AdditionalValue: '',
|
|
65
|
-
OptionalValues: [],
|
|
66
|
-
FieldType: DataViewFieldTypes[field.Type],
|
|
67
|
-
ReadOnly: field.ReadOnly,
|
|
68
|
-
Enabled: !field.ReadOnly
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
return row;
|
|
73
|
-
}
|
|
74
|
-
getMenuActions() {
|
|
75
|
-
var _a;
|
|
76
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
77
|
-
const actions = yield ((_a = this.dataSource) === null || _a === void 0 ? void 0 : _a.getActions(this.getMenuObjects()));
|
|
78
|
-
const res = [];
|
|
79
|
-
this.menuHandlers = {};
|
|
80
|
-
actions === null || actions === void 0 ? void 0 : actions.forEach(item => {
|
|
81
|
-
const uuid = PepGuid.newGuid();
|
|
82
|
-
this.menuHandlers[uuid] = item.handler;
|
|
83
|
-
res.push({
|
|
84
|
-
key: uuid,
|
|
85
|
-
text: item.title
|
|
86
|
-
});
|
|
87
|
-
});
|
|
88
|
-
return res;
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
getMenuObjects() {
|
|
92
|
-
var _a, _b, _c;
|
|
93
|
-
let uuids = (_b = (_a = this.customList) === null || _a === void 0 ? void 0 : _a.getSelectedItemsData().rows) !== null && _b !== void 0 ? _b : [];
|
|
94
|
-
if ((_c = this.customList) === null || _c === void 0 ? void 0 : _c.getIsAllSelectedForActions()) {
|
|
95
|
-
uuids = this.dataObjects.map(obj => obj.UID).filter(x => uuids.indexOf(x) != -1);
|
|
96
|
-
}
|
|
97
|
-
const objects = uuids.map(uuid => this.getObject(uuid));
|
|
98
|
-
return objects;
|
|
99
|
-
}
|
|
100
|
-
getObject(uuid) {
|
|
101
|
-
return this.dataObjects.find(obj => obj.UID === uuid);
|
|
102
|
-
}
|
|
103
|
-
ngOnInit() {
|
|
104
|
-
}
|
|
105
|
-
ngAfterViewInit() {
|
|
106
|
-
this.reload();
|
|
107
|
-
}
|
|
108
|
-
onMenuItemClicked(action) {
|
|
109
|
-
this.menuHandlers[action.source.key](this.getMenuObjects());
|
|
110
|
-
}
|
|
111
|
-
onSearchChanged(event) {
|
|
112
|
-
this.searchString = event.value;
|
|
113
|
-
this.reload();
|
|
114
|
-
}
|
|
115
|
-
reload() {
|
|
116
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
117
|
-
if (this.customList && this.dataSource) {
|
|
118
|
-
this.dataObjects = yield this.dataSource.getList({
|
|
119
|
-
searchString: this.searchString
|
|
120
|
-
});
|
|
121
|
-
const dataView = yield this.dataSource.getDataView();
|
|
122
|
-
const tableData = this.dataObjects.map(x => this.convertToPepRowData(x, dataView));
|
|
123
|
-
const data = this.dataConvertorService.convertListData(tableData);
|
|
124
|
-
data.forEach((obj, i) => {
|
|
125
|
-
this.dataObjects[i].UID = obj.UID;
|
|
126
|
-
});
|
|
127
|
-
const uiControl = this.dataConvertorService.getUiControl(tableData[0]);
|
|
128
|
-
this.customList.initListData(uiControl, data.length, data);
|
|
129
|
-
this.loadMenuItems();
|
|
130
|
-
}
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
selectedRowsChanged(selectedRowsCount) {
|
|
134
|
-
this.loadMenuItems();
|
|
135
|
-
}
|
|
136
|
-
onCustomizeFieldClick(fieldClickEvent) {
|
|
137
|
-
this.fieldClick.emit(fieldClickEvent);
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
GenericListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: GenericListComponent, deps: [{ token: i1.PepDataConvertorService }, { token: i1.PepLayoutService }, { token: i2.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
141
|
-
GenericListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: GenericListComponent, selector: "pep-generic-list", inputs: { dataSource: "dataSource", addPadding: "addPadding", title: "title", inline: "inline", showSearch: "showSearch", allowSelection: "allowSelection", noDataMessage: "noDataMessage", allowMultipleSelection: "allowMultipleSelection" }, outputs: { fieldClick: "fieldClick" }, viewQueries: [{ propertyName: "customList", first: true, predicate: PepListComponent, descendants: true }], ngImport: i0, template: "<div *ngIf=\"inline\" class=\"inline-container\" [ngClass]=\"{ 'add-padding': addPadding }\">\n <div class=\"inline-top-bar-container\">\n <ng-container *ngTemplateOutlet=\"topBarTemplate\"></ng-container>\n </div>\n <ng-container *ngTemplateOutlet=\"listTemplate\"></ng-container>\n</div>\n\n<pep-page-layout *ngIf=\"!inline\" [addPadding]=\"addPadding\">\n <ng-container pep-top-area>\n <ng-container *ngTemplateOutlet=\"topBarTemplate\"></ng-container>\n </ng-container>\n\n <div pep-main-area class=\"main-area-container\">\n <ng-container *ngTemplateOutlet=\"listTemplate\"></ng-container>\n </div>\n</pep-page-layout>\n \n<ng-template #topBarTemplate>\n <pep-top-bar [title]=\"title\" [inline]=\"inline\">\n <div header-start-content>\n <ng-content select=\"[left-buttons]\"></ng-content>\n </div>\n <div header-end-content>\n <ng-content select=\"[right-buttons]\"></ng-content>\n </div>\n <pep-list-actions [sizeType]=\"inline ? 'sm' : 'md'\" [actions]=\"menuActions\" (actionClick)=\"onMenuItemClicked($event)\"></pep-list-actions>\n <pep-list-total [sizeType]=\"inline ? 'sm' : 'md'\" [totalRows]=\"customList ? customList.totalRows : -1\"></pep-list-total>\n\n <pep-search *ngIf=\"showSearch\" [sizeType]=\"inline ? 'sm' : 'md'\" (search)=\"onSearchChanged($event)\">\n </pep-search>\n </pep-top-bar>\n</ng-template>\n\n<ng-template #listTemplate>\n <div #listContainer class=\"list-container\">\n <pep-list viewType=\"table\" [supportSorting]=\"false\"\n [selectionTypeForActions]=\"allowMultipleSelection ? 'multi' : (allowSelection ? 'single' : 'none')\" [noDataFoundMsg]=\"noDataMessage\"\n (fieldClick)=\"onCustomizeFieldClick($event)\"\n (selectedItemsChange)=\"selectedRowsChanged($event)\">\n </pep-list>\n </div>\n</ng-template>", styles: [":host{height:inherit;display:block}.main-area-container{display:grid;height:inherit}.list-container{height:100%}.inline-container{height:inherit;display:grid;grid-template-rows:auto 1fr}.inline-container.add-padding{padding-inline:var(--pep-spacing-lg, 1rem)}.inline-container ::ng-deep .pep-top-bar-container.inline{height:auto;overflow:hidden}\n"], components: [{ type: i3.PepPageLayoutComponent, selector: "pep-page-layout", inputs: ["addPadding", "showShadow"] }, { type: i4.PepTopBarComponent, selector: "pep-top-bar", inputs: ["inline", "title"], outputs: ["footerStateChange"] }, { type: i5.PepListActionsComponent, selector: "pep-list-actions", inputs: ["actions", "sizeType", "xPosition", "hidden"], outputs: ["actionClick", "stateChange", "menuClick"] }, { type: i5.PepListTotalComponent, selector: "pep-list-total", inputs: ["totalRows", "totalAmount", "isMapView", "sizeType"] }, { type: i6.PepSearchComponent, selector: "pep-search", inputs: ["triggerOn", "autoCompleteTop", "shrinkInSmallScreen", "sizeType", "autoCompleteValues", "value", "searchControl", "useAsWebComponent"], outputs: ["search", "autocompleteChange", "stateChange"] }, { type: i5.PepListComponent, selector: "pep-list", inputs: ["noDataFoundMsg", "selectionTypeForActions", "showCardSelection", "hideAllSelectionInMulti", "cardSize", "firstFieldAsLink", "supportSorting", "supportResizing", "disabled", "lockItemInnerEvents", "printMode", "isReport", "totalsRow", "pagerType", "pageSize", "pageIndex", "scrollAnimationTime", "scrollDebounceTime", "scrollThrottlingTime", "viewType", "parentScroll", "lockEvents", "useAsWebComponent"], outputs: ["itemClick", "fieldClick", "valueChange", "sortingChange", "selectedItemsChange", "selectedItemChange", "selectAllClick", "listLoad", "loadItems", "loadPage", "startIndexChange"] }], directives: [{ type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i7.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
142
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: GenericListComponent, decorators: [{
|
|
143
|
-
type: Component,
|
|
144
|
-
args: [{
|
|
145
|
-
selector: 'pep-generic-list',
|
|
146
|
-
templateUrl: './generic-list.component.html',
|
|
147
|
-
styleUrls: ['./generic-list.component.scss'],
|
|
148
|
-
}]
|
|
149
|
-
}], ctorParameters: function () { return [{ type: i1.PepDataConvertorService }, { type: i1.PepLayoutService }, { type: i2.TranslateService }]; }, propDecorators: { customList: [{
|
|
150
|
-
type: ViewChild,
|
|
151
|
-
args: [PepListComponent]
|
|
152
|
-
}], dataSource: [{
|
|
153
|
-
type: Input
|
|
154
|
-
}], addPadding: [{
|
|
155
|
-
type: Input
|
|
156
|
-
}], title: [{
|
|
157
|
-
type: Input
|
|
158
|
-
}], inline: [{
|
|
159
|
-
type: Input
|
|
160
|
-
}], showSearch: [{
|
|
161
|
-
type: Input
|
|
162
|
-
}], allowSelection: [{
|
|
163
|
-
type: Input
|
|
164
|
-
}], noDataMessage: [{
|
|
165
|
-
type: Input
|
|
166
|
-
}], allowMultipleSelection: [{
|
|
167
|
-
type: Input
|
|
168
|
-
}], fieldClick: [{
|
|
169
|
-
type: Output
|
|
21
|
+
class GenericListComponent {
|
|
22
|
+
// PepScreenSizeType = PepScreenSizeType;
|
|
23
|
+
// screenSize: PepScreenSizeType;
|
|
24
|
+
constructor(dataConvertorService, layoutService, translate) {
|
|
25
|
+
this.dataConvertorService = dataConvertorService;
|
|
26
|
+
this.layoutService = layoutService;
|
|
27
|
+
this.translate = translate;
|
|
28
|
+
this.dataObjects = [];
|
|
29
|
+
this.searchString = '';
|
|
30
|
+
this.addPadding = false;
|
|
31
|
+
this.title = '';
|
|
32
|
+
this.inline = false;
|
|
33
|
+
this.showSearch = false;
|
|
34
|
+
this.allowSelection = true;
|
|
35
|
+
this.noDataMessage = "No data";
|
|
36
|
+
this.allowMultipleSelection = false;
|
|
37
|
+
this.fieldClick = new EventEmitter();
|
|
38
|
+
// @Output()
|
|
39
|
+
// onAddClicked = new EventEmitter<void>();
|
|
40
|
+
this.menuHandlers = {};
|
|
41
|
+
this.menuActions = [];
|
|
42
|
+
this.layoutService.onResize$.pipe().subscribe((size) => {
|
|
43
|
+
// this.screenSize = size;
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
loadMenuItems() {
|
|
47
|
+
if (this.allowSelection) {
|
|
48
|
+
this.getMenuActions().then(x => this.menuActions = x);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
convertToPepRowData(object, dataView) {
|
|
52
|
+
const row = new PepRowData();
|
|
53
|
+
row.Fields = [];
|
|
54
|
+
if ((dataView === null || dataView === void 0 ? void 0 : dataView.Fields) && dataView.Columns) {
|
|
55
|
+
for (let index = 0; index < dataView.Fields.length; index++) {
|
|
56
|
+
let field = dataView.Fields[index];
|
|
57
|
+
row.Fields.push({
|
|
58
|
+
ApiName: field.FieldID,
|
|
59
|
+
Title: this.translate.instant(field.Title),
|
|
60
|
+
XAlignment: 1,
|
|
61
|
+
FormattedValue: (object[field.FieldID] || '').toString(),
|
|
62
|
+
Value: (object[field.FieldID] || '').toString(),
|
|
63
|
+
ColumnWidth: dataView.Columns[index].Width,
|
|
64
|
+
AdditionalValue: '',
|
|
65
|
+
OptionalValues: [],
|
|
66
|
+
FieldType: DataViewFieldTypes[field.Type],
|
|
67
|
+
ReadOnly: field.ReadOnly,
|
|
68
|
+
Enabled: !field.ReadOnly
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return row;
|
|
73
|
+
}
|
|
74
|
+
getMenuActions() {
|
|
75
|
+
var _a;
|
|
76
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
77
|
+
const actions = yield ((_a = this.dataSource) === null || _a === void 0 ? void 0 : _a.getActions(this.getMenuObjects()));
|
|
78
|
+
const res = [];
|
|
79
|
+
this.menuHandlers = {};
|
|
80
|
+
actions === null || actions === void 0 ? void 0 : actions.forEach(item => {
|
|
81
|
+
const uuid = PepGuid.newGuid();
|
|
82
|
+
this.menuHandlers[uuid] = item.handler;
|
|
83
|
+
res.push({
|
|
84
|
+
key: uuid,
|
|
85
|
+
text: item.title
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
return res;
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
getMenuObjects() {
|
|
92
|
+
var _a, _b, _c;
|
|
93
|
+
let uuids = (_b = (_a = this.customList) === null || _a === void 0 ? void 0 : _a.getSelectedItemsData().rows) !== null && _b !== void 0 ? _b : [];
|
|
94
|
+
if ((_c = this.customList) === null || _c === void 0 ? void 0 : _c.getIsAllSelectedForActions()) {
|
|
95
|
+
uuids = this.dataObjects.map(obj => obj.UID).filter(x => uuids.indexOf(x) != -1);
|
|
96
|
+
}
|
|
97
|
+
const objects = uuids.map(uuid => this.getObject(uuid));
|
|
98
|
+
return objects;
|
|
99
|
+
}
|
|
100
|
+
getObject(uuid) {
|
|
101
|
+
return this.dataObjects.find(obj => obj.UID === uuid);
|
|
102
|
+
}
|
|
103
|
+
ngOnInit() {
|
|
104
|
+
}
|
|
105
|
+
ngAfterViewInit() {
|
|
106
|
+
this.reload();
|
|
107
|
+
}
|
|
108
|
+
onMenuItemClicked(action) {
|
|
109
|
+
this.menuHandlers[action.source.key](this.getMenuObjects());
|
|
110
|
+
}
|
|
111
|
+
onSearchChanged(event) {
|
|
112
|
+
this.searchString = event.value;
|
|
113
|
+
this.reload();
|
|
114
|
+
}
|
|
115
|
+
reload() {
|
|
116
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
117
|
+
if (this.customList && this.dataSource) {
|
|
118
|
+
this.dataObjects = yield this.dataSource.getList({
|
|
119
|
+
searchString: this.searchString
|
|
120
|
+
});
|
|
121
|
+
const dataView = yield this.dataSource.getDataView();
|
|
122
|
+
const tableData = this.dataObjects.map(x => this.convertToPepRowData(x, dataView));
|
|
123
|
+
const data = this.dataConvertorService.convertListData(tableData);
|
|
124
|
+
data.forEach((obj, i) => {
|
|
125
|
+
this.dataObjects[i].UID = obj.UID;
|
|
126
|
+
});
|
|
127
|
+
const uiControl = this.dataConvertorService.getUiControl(tableData[0]);
|
|
128
|
+
this.customList.initListData(uiControl, data.length, data);
|
|
129
|
+
this.loadMenuItems();
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
selectedRowsChanged(selectedRowsCount) {
|
|
134
|
+
this.loadMenuItems();
|
|
135
|
+
}
|
|
136
|
+
onCustomizeFieldClick(fieldClickEvent) {
|
|
137
|
+
this.fieldClick.emit(fieldClickEvent);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
GenericListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: GenericListComponent, deps: [{ token: i1.PepDataConvertorService }, { token: i1.PepLayoutService }, { token: i2.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
141
|
+
GenericListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: GenericListComponent, selector: "pep-generic-list", inputs: { dataSource: "dataSource", addPadding: "addPadding", title: "title", inline: "inline", showSearch: "showSearch", allowSelection: "allowSelection", noDataMessage: "noDataMessage", allowMultipleSelection: "allowMultipleSelection" }, outputs: { fieldClick: "fieldClick" }, viewQueries: [{ propertyName: "customList", first: true, predicate: PepListComponent, descendants: true }], ngImport: i0, template: "<div *ngIf=\"inline\" class=\"inline-container\" [ngClass]=\"{ 'add-padding': addPadding }\">\n <div class=\"inline-top-bar-container\">\n <ng-container *ngTemplateOutlet=\"topBarTemplate\"></ng-container>\n </div>\n <ng-container *ngTemplateOutlet=\"listTemplate\"></ng-container>\n</div>\n\n<pep-page-layout *ngIf=\"!inline\" [addPadding]=\"addPadding\">\n <ng-container pep-top-area>\n <ng-container *ngTemplateOutlet=\"topBarTemplate\"></ng-container>\n </ng-container>\n\n <div pep-main-area class=\"main-area-container\">\n <ng-container *ngTemplateOutlet=\"listTemplate\"></ng-container>\n </div>\n</pep-page-layout>\n \n<ng-template #topBarTemplate>\n <pep-top-bar [title]=\"title\" [inline]=\"inline\">\n <div header-start-content>\n <ng-content select=\"[left-buttons]\"></ng-content>\n </div>\n <div header-end-content>\n <ng-content select=\"[right-buttons]\"></ng-content>\n </div>\n <pep-list-actions [sizeType]=\"inline ? 'sm' : 'md'\" [actions]=\"menuActions\" (actionClick)=\"onMenuItemClicked($event)\"></pep-list-actions>\n <pep-list-total [sizeType]=\"inline ? 'sm' : 'md'\" [totalRows]=\"customList ? customList.totalRows : -1\"></pep-list-total>\n\n <pep-search *ngIf=\"showSearch\" [sizeType]=\"inline ? 'sm' : 'md'\" (search)=\"onSearchChanged($event)\">\n </pep-search>\n </pep-top-bar>\n</ng-template>\n\n<ng-template #listTemplate>\n <div #listContainer class=\"list-container\">\n <pep-list viewType=\"table\" [supportSorting]=\"false\"\n [selectionTypeForActions]=\"allowMultipleSelection ? 'multi' : (allowSelection ? 'single' : 'none')\" [noDataFoundMsg]=\"noDataMessage\"\n (fieldClick)=\"onCustomizeFieldClick($event)\"\n (selectedItemsChange)=\"selectedRowsChanged($event)\">\n </pep-list>\n </div>\n</ng-template>", styles: [":host{height:inherit;display:block}.main-area-container{display:grid;height:inherit}.list-container{height:100%}.inline-container{height:inherit;display:grid;grid-template-rows:auto 1fr}.inline-container.add-padding{padding-inline:var(--pep-spacing-lg, 1rem)}.inline-container ::ng-deep .pep-top-bar-container.inline{height:auto;overflow:hidden}\n"], components: [{ type: i3.PepPageLayoutComponent, selector: "pep-page-layout", inputs: ["addPadding", "showShadow"] }, { type: i4.PepTopBarComponent, selector: "pep-top-bar", inputs: ["inline", "title"], outputs: ["footerStateChange"] }, { type: i5.PepListActionsComponent, selector: "pep-list-actions", inputs: ["actions", "sizeType", "xPosition", "hidden"], outputs: ["actionClick", "stateChange", "menuClick"] }, { type: i5.PepListTotalComponent, selector: "pep-list-total", inputs: ["totalRows", "totalAmount", "isMapView", "sizeType"] }, { type: i6.PepSearchComponent, selector: "pep-search", inputs: ["triggerOn", "autoCompleteTop", "shrinkInSmallScreen", "sizeType", "autoCompleteValues", "value", "searchControl", "useAsWebComponent"], outputs: ["search", "autocompleteChange", "stateChange"] }, { type: i5.PepListComponent, selector: "pep-list", inputs: ["noDataFoundMsg", "selectionTypeForActions", "showCardSelection", "hideAllSelectionInMulti", "cardSize", "firstFieldAsLink", "supportSorting", "supportResizing", "disabled", "lockItemInnerEvents", "printMode", "isReport", "totalsRow", "pagerType", "pageSize", "pageIndex", "scrollAnimationTime", "scrollDebounceTime", "scrollThrottlingTime", "viewType", "parentScroll", "lockEvents", "useAsWebComponent"], outputs: ["itemClick", "fieldClick", "valueChange", "sortingChange", "selectedItemsChange", "selectedItemChange", "selectAllClick", "listLoad", "loadItems", "loadPage", "startIndexChange"] }], directives: [{ type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i7.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
142
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: GenericListComponent, decorators: [{
|
|
143
|
+
type: Component,
|
|
144
|
+
args: [{
|
|
145
|
+
selector: 'pep-generic-list',
|
|
146
|
+
templateUrl: './generic-list.component.html',
|
|
147
|
+
styleUrls: ['./generic-list.component.scss'],
|
|
148
|
+
}]
|
|
149
|
+
}], ctorParameters: function () { return [{ type: i1.PepDataConvertorService }, { type: i1.PepLayoutService }, { type: i2.TranslateService }]; }, propDecorators: { customList: [{
|
|
150
|
+
type: ViewChild,
|
|
151
|
+
args: [PepListComponent]
|
|
152
|
+
}], dataSource: [{
|
|
153
|
+
type: Input
|
|
154
|
+
}], addPadding: [{
|
|
155
|
+
type: Input
|
|
156
|
+
}], title: [{
|
|
157
|
+
type: Input
|
|
158
|
+
}], inline: [{
|
|
159
|
+
type: Input
|
|
160
|
+
}], showSearch: [{
|
|
161
|
+
type: Input
|
|
162
|
+
}], allowSelection: [{
|
|
163
|
+
type: Input
|
|
164
|
+
}], noDataMessage: [{
|
|
165
|
+
type: Input
|
|
166
|
+
}], allowMultipleSelection: [{
|
|
167
|
+
type: Input
|
|
168
|
+
}], fieldClick: [{
|
|
169
|
+
type: Output
|
|
170
170
|
}] } });
|
|
171
171
|
|
|
172
|
-
class PepGenericListModule {
|
|
173
|
-
}
|
|
174
|
-
PepGenericListModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepGenericListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
175
|
-
PepGenericListModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepGenericListModule, declarations: [GenericListComponent], imports: [CommonModule,
|
|
176
|
-
PepNgxLibModule,
|
|
177
|
-
PepListModule,
|
|
178
|
-
PepFormModule,
|
|
179
|
-
PepMenuModule,
|
|
180
|
-
PepPageLayoutModule,
|
|
181
|
-
PepTopBarModule,
|
|
182
|
-
PepSearchModule], exports: [GenericListComponent] });
|
|
183
|
-
PepGenericListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepGenericListModule, imports: [[
|
|
184
|
-
CommonModule,
|
|
185
|
-
PepNgxLibModule,
|
|
186
|
-
PepListModule,
|
|
187
|
-
PepFormModule,
|
|
188
|
-
PepMenuModule,
|
|
189
|
-
PepPageLayoutModule,
|
|
190
|
-
PepTopBarModule,
|
|
191
|
-
PepSearchModule
|
|
192
|
-
]] });
|
|
193
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepGenericListModule, decorators: [{
|
|
194
|
-
type: NgModule,
|
|
195
|
-
args: [{
|
|
196
|
-
declarations: [
|
|
197
|
-
GenericListComponent
|
|
198
|
-
],
|
|
199
|
-
imports: [
|
|
200
|
-
CommonModule,
|
|
201
|
-
PepNgxLibModule,
|
|
202
|
-
PepListModule,
|
|
203
|
-
PepFormModule,
|
|
204
|
-
PepMenuModule,
|
|
205
|
-
PepPageLayoutModule,
|
|
206
|
-
PepTopBarModule,
|
|
207
|
-
PepSearchModule
|
|
208
|
-
],
|
|
209
|
-
exports: [GenericListComponent],
|
|
210
|
-
}]
|
|
172
|
+
class PepGenericListModule {
|
|
173
|
+
}
|
|
174
|
+
PepGenericListModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepGenericListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
175
|
+
PepGenericListModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepGenericListModule, declarations: [GenericListComponent], imports: [CommonModule,
|
|
176
|
+
PepNgxLibModule,
|
|
177
|
+
PepListModule,
|
|
178
|
+
PepFormModule,
|
|
179
|
+
PepMenuModule,
|
|
180
|
+
PepPageLayoutModule,
|
|
181
|
+
PepTopBarModule,
|
|
182
|
+
PepSearchModule], exports: [GenericListComponent] });
|
|
183
|
+
PepGenericListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepGenericListModule, imports: [[
|
|
184
|
+
CommonModule,
|
|
185
|
+
PepNgxLibModule,
|
|
186
|
+
PepListModule,
|
|
187
|
+
PepFormModule,
|
|
188
|
+
PepMenuModule,
|
|
189
|
+
PepPageLayoutModule,
|
|
190
|
+
PepTopBarModule,
|
|
191
|
+
PepSearchModule
|
|
192
|
+
]] });
|
|
193
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: PepGenericListModule, decorators: [{
|
|
194
|
+
type: NgModule,
|
|
195
|
+
args: [{
|
|
196
|
+
declarations: [
|
|
197
|
+
GenericListComponent
|
|
198
|
+
],
|
|
199
|
+
imports: [
|
|
200
|
+
CommonModule,
|
|
201
|
+
PepNgxLibModule,
|
|
202
|
+
PepListModule,
|
|
203
|
+
PepFormModule,
|
|
204
|
+
PepMenuModule,
|
|
205
|
+
PepPageLayoutModule,
|
|
206
|
+
PepTopBarModule,
|
|
207
|
+
PepSearchModule
|
|
208
|
+
],
|
|
209
|
+
exports: [GenericListComponent],
|
|
210
|
+
}]
|
|
211
211
|
}] });
|
|
212
212
|
|
|
213
|
-
/*
|
|
214
|
-
* Public API Surface of ngx-composite-lib/generic-list
|
|
213
|
+
/*
|
|
214
|
+
* Public API Surface of ngx-composite-lib/generic-list
|
|
215
215
|
*/
|
|
216
216
|
|
|
217
|
-
/**
|
|
218
|
-
* Generated bundle index. Do not edit.
|
|
217
|
+
/**
|
|
218
|
+
* Generated bundle index. Do not edit.
|
|
219
219
|
*/
|
|
220
220
|
|
|
221
221
|
export { GenericListComponent, PepGenericListModule };
|