@pepperi-addons/ngx-composite-lib 0.0.16-beta.4 → 0.0.16-beta.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/bundles/pepperi-addons-ngx-composite-lib-color-settings.umd.js +10 -1
  2. package/bundles/pepperi-addons-ngx-composite-lib-color-settings.umd.js.map +1 -1
  3. package/bundles/pepperi-addons-ngx-composite-lib-data-view-builder.umd.js +393 -0
  4. package/bundles/pepperi-addons-ngx-composite-lib-data-view-builder.umd.js.map +1 -0
  5. package/bundles/pepperi-addons-ngx-composite-lib-file-status-panel.umd.js +15 -10
  6. package/bundles/pepperi-addons-ngx-composite-lib-file-status-panel.umd.js.map +1 -1
  7. package/bundles/pepperi-addons-ngx-composite-lib-generic-form.umd.js +91 -58
  8. package/bundles/pepperi-addons-ngx-composite-lib-generic-form.umd.js.map +1 -1
  9. package/bundles/pepperi-addons-ngx-composite-lib-generic-list.umd.js +118 -73
  10. package/bundles/pepperi-addons-ngx-composite-lib-generic-list.umd.js.map +1 -1
  11. package/bundles/pepperi-addons-ngx-composite-lib-group-buttons-settings.umd.js +5 -2
  12. package/bundles/pepperi-addons-ngx-composite-lib-group-buttons-settings.umd.js.map +1 -1
  13. package/bundles/pepperi-addons-ngx-composite-lib.umd.js +114 -50
  14. package/bundles/pepperi-addons-ngx-composite-lib.umd.js.map +1 -1
  15. package/color-settings/color-settings.component.d.ts +4 -1
  16. package/core/common/directives/reset-configuration-field.directive.d.ts +1 -0
  17. package/core/common/services/dimx.service.d.ts +32 -0
  18. package/core/common/services/public-api.d.ts +1 -0
  19. package/data-view-builder/data-view-builder.component.d.ts +35 -0
  20. package/data-view-builder/data-view-builder.model.d.ts +1 -0
  21. package/data-view-builder/data-view-builder.module.d.ts +23 -0
  22. package/data-view-builder/data-view-builder.service.d.ts +14 -0
  23. package/data-view-builder/menu-data-view/menu-data-view.component.d.ts +36 -0
  24. package/data-view-builder/package.json +10 -0
  25. package/{dimx-export/pepperi-addons-ngx-composite-lib-dimx-export.d.ts → data-view-builder/pepperi-addons-ngx-composite-lib-data-view-builder.d.ts} +1 -1
  26. package/data-view-builder/public-api.d.ts +3 -0
  27. package/esm2015/color-settings/color-settings.component.js +11 -2
  28. package/esm2015/core/common/directives/reset-configuration-field.directive.js +26 -22
  29. package/esm2015/core/common/services/dimx.service.js +50 -0
  30. package/esm2015/core/common/services/public-api.js +2 -1
  31. package/esm2015/data-view-builder/data-view-builder.component.js +122 -0
  32. package/esm2015/data-view-builder/data-view-builder.model.js +2 -0
  33. package/esm2015/data-view-builder/data-view-builder.module.js +82 -0
  34. package/esm2015/data-view-builder/data-view-builder.service.js +39 -0
  35. package/esm2015/data-view-builder/menu-data-view/menu-data-view.component.js +122 -0
  36. package/esm2015/data-view-builder/pepperi-addons-ngx-composite-lib-data-view-builder.js +5 -0
  37. package/esm2015/data-view-builder/public-api.js +7 -0
  38. package/esm2015/file-status-panel/file-status-panel.module.js +12 -4
  39. package/esm2015/generic-form/generic-form.component.js +86 -55
  40. package/esm2015/generic-form/generic-form.model.js +1 -1
  41. package/esm2015/generic-form/index.js +5 -0
  42. package/esm2015/generic-list/generic-list.component.js +65 -36
  43. package/esm2015/generic-list/generic-list.model.js +1 -1
  44. package/esm2015/generic-list/generic-list.module.js +7 -4
  45. package/esm2015/generic-list/generic-list.service.js +22 -9
  46. package/esm2015/group-buttons-settings/group-buttons-settings.component.js +2 -2
  47. package/esm2015/group-buttons-settings/group-buttons-settings.module.js +6 -3
  48. package/esm2015/ngx-composite-lib.module.js +19 -8
  49. package/fesm2015/pepperi-addons-ngx-composite-lib-color-settings.js +10 -1
  50. package/fesm2015/pepperi-addons-ngx-composite-lib-color-settings.js.map +1 -1
  51. package/fesm2015/pepperi-addons-ngx-composite-lib-data-view-builder.js +360 -0
  52. package/fesm2015/pepperi-addons-ngx-composite-lib-data-view-builder.js.map +1 -0
  53. package/fesm2015/pepperi-addons-ngx-composite-lib-file-status-panel.js +12 -5
  54. package/fesm2015/pepperi-addons-ngx-composite-lib-file-status-panel.js.map +1 -1
  55. package/fesm2015/pepperi-addons-ngx-composite-lib-generic-form.js +85 -55
  56. package/fesm2015/pepperi-addons-ngx-composite-lib-generic-form.js.map +1 -1
  57. package/fesm2015/pepperi-addons-ngx-composite-lib-generic-list.js +87 -43
  58. package/fesm2015/pepperi-addons-ngx-composite-lib-generic-list.js.map +1 -1
  59. package/fesm2015/pepperi-addons-ngx-composite-lib-group-buttons-settings.js +6 -3
  60. package/fesm2015/pepperi-addons-ngx-composite-lib-group-buttons-settings.js.map +1 -1
  61. package/fesm2015/pepperi-addons-ngx-composite-lib.js +117 -54
  62. package/fesm2015/pepperi-addons-ngx-composite-lib.js.map +1 -1
  63. package/file-status-panel/file-status-panel.module.d.ts +3 -0
  64. package/generic-form/generic-form.component.d.ts +12 -12
  65. package/generic-form/generic-form.model.d.ts +12 -13
  66. package/{dimx-export → generic-form}/index.d.ts +0 -0
  67. package/generic-list/generic-list.component.d.ts +11 -9
  68. package/generic-list/generic-list.model.d.ts +7 -6
  69. package/generic-list/generic-list.service.d.ts +2 -1
  70. package/group-buttons-settings/group-buttons-settings.module.d.ts +2 -1
  71. package/ngx-composite-lib.module.d.ts +4 -2
  72. package/package.json +2 -2
  73. package/src/assets/i18n/en.ngx-composite-lib.json +24 -1
  74. package/src/core/style/components/data-view-builder.scss +65 -0
  75. package/styling.scss +5 -1
  76. package/bundles/pepperi-addons-ngx-composite-lib-dimx-export.umd.js +0 -890
  77. package/bundles/pepperi-addons-ngx-composite-lib-dimx-export.umd.js.map +0 -1
  78. package/dimx-export/dimx.component.d.ts +0 -86
  79. package/dimx-export/dimx.model.d.ts +0 -5
  80. package/dimx-export/dimx.module.d.ts +0 -16
  81. package/dimx-export/dimx.service.d.ts +0 -21
  82. package/dimx-export/package.json +0 -16
  83. package/dimx-export/public-api.d.ts +0 -3
  84. package/esm2015/dimx-export/dimx.component.js +0 -335
  85. package/esm2015/dimx-export/dimx.model.js +0 -8
  86. package/esm2015/dimx-export/dimx.module.js +0 -53
  87. package/esm2015/dimx-export/dimx.service.js +0 -50
  88. package/esm2015/dimx-export/index.js +0 -5
  89. package/esm2015/dimx-export/pepperi-addons-ngx-composite-lib-dimx-export.js +0 -5
  90. package/esm2015/dimx-export/public-api.js +0 -7
  91. package/fesm2015/pepperi-addons-ngx-composite-lib-dimx-export.js +0 -446
  92. package/fesm2015/pepperi-addons-ngx-composite-lib-dimx-export.js.map +0 -1
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/material/snack-bar'), require('@pepperi-addons/ngx-lib/snack-bar'), require('@pepperi-addons/ngx-lib/icon'), require('@pepperi-addons/ngx-lib/textbox'), require('@pepperi-addons/ngx-lib/top-bar'), require('@pepperi-addons/ngx-lib/dialog'), require('@pepperi-addons/ngx-lib/button')) :
3
3
  typeof define === 'function' && define.amd ? define('@pepperi-addons/ngx-composite-lib/file-status-panel', ['exports', '@angular/core', '@angular/common', '@angular/material/snack-bar', '@pepperi-addons/ngx-lib/snack-bar', '@pepperi-addons/ngx-lib/icon', '@pepperi-addons/ngx-lib/textbox', '@pepperi-addons/ngx-lib/top-bar', '@pepperi-addons/ngx-lib/dialog', '@pepperi-addons/ngx-lib/button'], 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"]["file-status-panel"] = {}), global.ng.core, global.ng.common, global.ng.material.snackBar, global.i2, global.i3, global["ngx-lib/textbox"], global["ngx-lib/top-bar"], global["ngx-lib/dialog"], global["ngx-lib/button"]));
5
- })(this, (function (exports, i0, i4, i1, i2, i3, textbox, topBar, dialog, button) { 'use strict';
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"]["file-status-panel"] = {}), global.ng.core, global.ng.common, global.ng.material.snackBar, global["ngx-lib/snack-bar"], global["ngx-lib/icon"], global["ngx-lib/textbox"], global["ngx-lib/top-bar"], global["ngx-lib/dialog"], global["ngx-lib/button"]));
5
+ })(this, (function (exports, i0, i4, i1, i2, i1$1, textbox, topBar, dialog, button) { 'use strict';
6
6
 
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) return e;
@@ -26,7 +26,7 @@
26
26
  var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
27
27
  var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
28
28
  var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
29
- var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
29
+ var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
30
30
 
31
31
  var FileStatusPanelComponent = /** @class */ (function () {
32
32
  function FileStatusPanelComponent(data, snackBarRef) {
@@ -46,7 +46,7 @@
46
46
  return FileStatusPanelComponent;
47
47
  }());
48
48
  FileStatusPanelComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: FileStatusPanelComponent, deps: [{ token: i1.MAT_SNACK_BAR_DATA }, { token: i1__namespace.MatSnackBarRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
49
- FileStatusPanelComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: FileStatusPanelComponent, selector: "pep-file-status-panel", outputs: { closeClick: "closeClick" }, ngImport: i0__namespace, template: "<pep-snack-bar class=\"upload-panel-contnainer\" [snackBarRef]=\"snackBarRef\" [title]=\"data.title\" (closeClick)=\"onCloseClicked($event)\" >\n <div pep-snack-bar-content class=\"panel-content\">\n <ul *ngIf=\"data.content.length\">\n <li *ngFor=\"let file of data.content\">\n <ng-container *ngIf=\"file?.status !== 'hidden'\">\n <span class=\"color-dimmed body-sm ellipsis\">{{file.name}}</span>\n <pep-icon class=\"pep-spacing-element\" name=\"arrow_right_alt\"></pep-icon>\n <span class=\"body-sm\" title=\"{{file.statusMessage}}\">{{file.status}}</span>\n </ng-container>\n </li>\n </ul>\n </div>\n</pep-snack-bar>", styles: [".upload-panel-contnainer .panel-content{max-height:50vh;overflow:auto}.upload-panel-contnainer .panel-content ul{list-style-type:none;padding:0}.upload-panel-contnainer .panel-content ul li{height:1.25rem;margin-top:.5rem;display:flex;flex-direction:row;align-items:center}.upload-panel-contnainer .panel-content ul li pep-icon{height:1rem}\n"], components: [{ type: i2__namespace.PepSnackBarComponent, selector: "pep-snack-bar", inputs: ["snackBarRef", "title"], outputs: ["closeClick"] }, { type: i3__namespace.PepIconComponent, selector: "pep-icon", inputs: ["spin", "name", "fill"] }], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
49
+ FileStatusPanelComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: FileStatusPanelComponent, selector: "pep-file-status-panel", outputs: { closeClick: "closeClick" }, ngImport: i0__namespace, template: "<pep-snack-bar class=\"upload-panel-contnainer\" [snackBarRef]=\"snackBarRef\" [title]=\"data.title\" (closeClick)=\"onCloseClicked($event)\" >\n <div pep-snack-bar-content class=\"panel-content\">\n <ul *ngIf=\"data.content.length\">\n <li *ngFor=\"let file of data.content\">\n <ng-container *ngIf=\"file?.status !== 'hidden'\">\n <span class=\"color-dimmed body-sm ellipsis\">{{file.name}}</span>\n <pep-icon class=\"pep-spacing-element\" name=\"arrow_right_alt\"></pep-icon>\n <span class=\"body-sm\" title=\"{{file.statusMessage}}\">{{file.status}}</span>\n </ng-container>\n </li>\n </ul>\n </div>\n</pep-snack-bar>", styles: [".upload-panel-contnainer .panel-content{max-height:50vh;overflow:auto}.upload-panel-contnainer .panel-content ul{list-style-type:none;padding:0}.upload-panel-contnainer .panel-content ul li{height:1.25rem;margin-top:.5rem;display:flex;flex-direction:row;align-items:center}.upload-panel-contnainer .panel-content ul li pep-icon{height:1rem}\n"], components: [{ type: i2__namespace.PepSnackBarComponent, selector: "pep-snack-bar", inputs: ["snackBarRef", "title"], outputs: ["closeClick"] }, { type: i1__namespace$1.PepIconComponent, selector: "pep-icon", inputs: ["spin", "name", "fill"] }], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
50
50
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: FileStatusPanelComponent, decorators: [{
51
51
  type: i0.Component,
52
52
  args: [{
@@ -63,17 +63,22 @@
63
63
  type: i0.Output
64
64
  }] } });
65
65
 
66
+ var pepIcons = [
67
+ i1$1.pepIconArrowRightAlt,
68
+ ];
66
69
  var PepFileStatusPanelModule = /** @class */ (function () {
67
- function PepFileStatusPanelModule() {
70
+ function PepFileStatusPanelModule(pepIconRegistry) {
71
+ this.pepIconRegistry = pepIconRegistry;
72
+ this.pepIconRegistry.registerIcons(pepIcons);
68
73
  }
69
74
  return PepFileStatusPanelModule;
70
75
  }());
71
- PepFileStatusPanelModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepFileStatusPanelModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
76
+ PepFileStatusPanelModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepFileStatusPanelModule, deps: [{ token: i1__namespace$1.PepIconRegistry }], target: i0__namespace.ɵɵFactoryTarget.NgModule });
72
77
  PepFileStatusPanelModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepFileStatusPanelModule, declarations: [FileStatusPanelComponent], imports: [i4.CommonModule,
73
78
  topBar.PepTopBarModule,
74
79
  textbox.PepTextboxModule,
75
80
  button.PepButtonModule,
76
- i3.PepIconModule,
81
+ i1$1.PepIconModule,
77
82
  dialog.PepDialogModule,
78
83
  i2.PepSnackBarModule], exports: [FileStatusPanelComponent] });
79
84
  PepFileStatusPanelModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepFileStatusPanelModule, imports: [[
@@ -81,7 +86,7 @@
81
86
  topBar.PepTopBarModule,
82
87
  textbox.PepTextboxModule,
83
88
  button.PepButtonModule,
84
- i3.PepIconModule,
89
+ i1$1.PepIconModule,
85
90
  dialog.PepDialogModule,
86
91
  i2.PepSnackBarModule
87
92
  ]] });
@@ -96,13 +101,13 @@
96
101
  topBar.PepTopBarModule,
97
102
  textbox.PepTextboxModule,
98
103
  button.PepButtonModule,
99
- i3.PepIconModule,
104
+ i1$1.PepIconModule,
100
105
  dialog.PepDialogModule,
101
106
  i2.PepSnackBarModule
102
107
  ],
103
108
  exports: [FileStatusPanelComponent]
104
109
  }]
105
- }] });
110
+ }], ctorParameters: function () { return [{ type: i1__namespace$1.PepIconRegistry }]; } });
106
111
 
107
112
  var FileStatus = /** @class */ (function () {
108
113
  function FileStatus() {
@@ -1 +1 @@
1
- {"version":3,"file":"pepperi-addons-ngx-composite-lib-file-status-panel.umd.js","sources":["../../../projects/ngx-composite-lib/file-status-panel/file-status-panel.component.ts","../../../projects/ngx-composite-lib/file-status-panel/file-status-panel.component.html","../../../projects/ngx-composite-lib/file-status-panel/file-status-panel.module.ts","../../../projects/ngx-composite-lib/file-status-panel/file-status-panel.model.ts","../../../projects/ngx-composite-lib/file-status-panel/public-api.ts","../../../projects/ngx-composite-lib/file-status-panel/pepperi-addons-ngx-composite-lib-file-status-panel.ts"],"sourcesContent":["import { Component, OnInit, Injectable, Input, Output, EventEmitter, Optional, Inject } from '@angular/core';\nimport { MatSnackBarRef, MAT_SNACK_BAR_DATA } from '@angular/material/snack-bar';\nimport { TranslateService } from '@ngx-translate/core';\nimport { PepSnackBarData } from '@pepperi-addons/ngx-lib/snack-bar';\nimport { FileStatus } from './file-status-panel.model';\n\n@Component({\n selector: 'pep-file-status-panel',\n templateUrl: './file-status-panel.component.html',\n styleUrls: ['./file-status-panel.component.scss']\n})\nexport class FileStatusPanelComponent implements OnInit {\n // @Input() title = '';\n // @Input() filesList: Array<FileStatus> = [];\n \n @Output()\n closeClick: EventEmitter<void> = new EventEmitter<void>();\n \n constructor(\n @Inject(MAT_SNACK_BAR_DATA) public data: PepSnackBarData,\n public snackBarRef: MatSnackBarRef<FileStatusPanelComponent>\n ) {\n //\n }\n\n ngOnInit() {\n //\n }\n\n onCloseClicked(event: any): void {\n this.closeClick.emit();\n }\n\n\n}","<pep-snack-bar class=\"upload-panel-contnainer\" [snackBarRef]=\"snackBarRef\" [title]=\"data.title\" (closeClick)=\"onCloseClicked($event)\" >\n <div pep-snack-bar-content class=\"panel-content\">\n <ul *ngIf=\"data.content.length\">\n <li *ngFor=\"let file of data.content\">\n <ng-container *ngIf=\"file?.status !== 'hidden'\">\n <span class=\"color-dimmed body-sm ellipsis\">{{file.name}}</span>\n <pep-icon class=\"pep-spacing-element\" name=\"arrow_right_alt\"></pep-icon>\n <span class=\"body-sm\" title=\"{{file.statusMessage}}\">{{file.status}}</span>\n </ng-container>\n </li>\n </ul>\n </div>\n</pep-snack-bar>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FileStatusPanelComponent } from './file-status-panel.component';\nimport { PepTextboxModule } from '@pepperi-addons/ngx-lib/textbox';\nimport { PepTopBarModule } from '@pepperi-addons/ngx-lib/top-bar';\nimport { PepDialogModule } from '@pepperi-addons/ngx-lib/dialog';\nimport { PepButtonModule } from '@pepperi-addons/ngx-lib/button';\nimport { PepIconModule } from '@pepperi-addons/ngx-lib/icon';\nimport { PepSnackBarModule } from '@pepperi-addons/ngx-lib/snack-bar';\n\n\n@NgModule({\n declarations: [\n FileStatusPanelComponent\n ],\n imports: [\n CommonModule,\n PepTopBarModule,\n PepTextboxModule,\n PepButtonModule,\n PepIconModule,\n PepDialogModule,\n PepSnackBarModule\n ],\n exports: [FileStatusPanelComponent]\n})\n\nexport class PepFileStatusPanelModule { \n \n}","export type FileStatusType = 'uploading' | 'downloading' | 'done' | 'failed' | 'hidden' | 'deleting';\r\n\r\nexport class FileStatus {\r\n key = 0;\r\n name = '';\r\n status: FileStatusType = 'uploading';\r\n statusMessage? = '';\r\n}","/*\n * Public API Surface of ngx-composite-lib/file-status-panel\n */\nexport * from './file-status-panel.module';\nexport * from './file-status-panel.component';\nexport * from './file-status-panel.model';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["EventEmitter","MAT_SNACK_BAR_DATA","Component","Inject","Output","CommonModule","PepTopBarModule","PepTextboxModule","PepButtonModule","PepIconModule","PepDialogModule","PepSnackBarModule","NgModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAkBI,kCACuC,IAAqB,EACjD,WAAqD;YADzB,SAAI,GAAJ,IAAI,CAAiB;YACjD,gBAAW,GAAX,WAAW,CAA0C;;;YAJhE,eAAU,GAAuB,IAAIA,eAAY,EAAQ,CAAC;;SAOzD;QAED,2CAAQ,GAAR;;SAEC;QAED,iDAAc,GAAd,UAAe,KAAU;YACrB,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;SAC1B;;;+IApBQ,wBAAwB,kBAQrBC,qBAAkB;wHARrB,wBAAwB,+GCXrC,gvBAYgB;qHDDH,wBAAwB;sBALpCC,YAAS;uBAAC;wBACP,QAAQ,EAAE,uBAAuB;wBACjC,WAAW,EAAE,oCAAoC;wBACjD,SAAS,EAAE,CAAC,oCAAoC,CAAC;qBACpD;;;kCASQC,SAAM;mCAACF,qBAAkB;;6BAH9B,UAAU;0BADTG,SAAM;;;;QEYX;;;;+IAAa,wBAAwB;gJAAxB,wBAAwB,iBAd7B,wBAAwB,aAGxBC,eAAY;YACZC,sBAAe;YACfC,wBAAgB;YAChBC,sBAAe;YACfC,gBAAa;YACbC,sBAAe;YACfC,oBAAiB,aAEX,wBAAwB;gJAGzB,wBAAwB,YAZxB;gBACLN,eAAY;gBACZC,sBAAe;gBACfC,wBAAgB;gBAChBC,sBAAe;gBACfC,gBAAa;gBACbC,sBAAe;gBACfC,oBAAiB;aACpB;qHAIQ,wBAAwB;sBAhBpCC,WAAQ;uBAAC;wBACN,YAAY,EAAE;4BACV,wBAAwB;yBAC3B;wBACD,OAAO,EAAE;4BACLP,eAAY;4BACZC,sBAAe;4BACfC,wBAAgB;4BAChBC,sBAAe;4BACfC,gBAAa;4BACbC,sBAAe;4BACfC,oBAAiB;yBACpB;wBACD,OAAO,EAAE,CAAC,wBAAwB,CAAC;qBACtC;;;;QCvBD;YACI,QAAG,GAAG,CAAC,CAAC;YACR,SAAI,GAAG,EAAE,CAAC;YACV,WAAM,GAAmB,WAAW,CAAC;YACrC,kBAAa,GAAI,EAAE,CAAC;SACvB;yBAAA;KAAA;;ICPD;;;;ICAA;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"pepperi-addons-ngx-composite-lib-file-status-panel.umd.js","sources":["../../../projects/ngx-composite-lib/file-status-panel/file-status-panel.component.ts","../../../projects/ngx-composite-lib/file-status-panel/file-status-panel.component.html","../../../projects/ngx-composite-lib/file-status-panel/file-status-panel.module.ts","../../../projects/ngx-composite-lib/file-status-panel/file-status-panel.model.ts","../../../projects/ngx-composite-lib/file-status-panel/public-api.ts","../../../projects/ngx-composite-lib/file-status-panel/pepperi-addons-ngx-composite-lib-file-status-panel.ts"],"sourcesContent":["import { Component, OnInit, Injectable, Input, Output, EventEmitter, Optional, Inject } from '@angular/core';\nimport { MatSnackBarRef, MAT_SNACK_BAR_DATA } from '@angular/material/snack-bar';\nimport { TranslateService } from '@ngx-translate/core';\nimport { PepSnackBarData } from '@pepperi-addons/ngx-lib/snack-bar';\nimport { FileStatus } from './file-status-panel.model';\n\n@Component({\n selector: 'pep-file-status-panel',\n templateUrl: './file-status-panel.component.html',\n styleUrls: ['./file-status-panel.component.scss']\n})\nexport class FileStatusPanelComponent implements OnInit {\n // @Input() title = '';\n // @Input() filesList: Array<FileStatus> = [];\n \n @Output()\n closeClick: EventEmitter<void> = new EventEmitter<void>();\n \n constructor(\n @Inject(MAT_SNACK_BAR_DATA) public data: PepSnackBarData,\n public snackBarRef: MatSnackBarRef<FileStatusPanelComponent>\n ) {\n //\n }\n\n ngOnInit() {\n //\n }\n\n onCloseClicked(event: any): void {\n this.closeClick.emit();\n }\n\n\n}","<pep-snack-bar class=\"upload-panel-contnainer\" [snackBarRef]=\"snackBarRef\" [title]=\"data.title\" (closeClick)=\"onCloseClicked($event)\" >\n <div pep-snack-bar-content class=\"panel-content\">\n <ul *ngIf=\"data.content.length\">\n <li *ngFor=\"let file of data.content\">\n <ng-container *ngIf=\"file?.status !== 'hidden'\">\n <span class=\"color-dimmed body-sm ellipsis\">{{file.name}}</span>\n <pep-icon class=\"pep-spacing-element\" name=\"arrow_right_alt\"></pep-icon>\n <span class=\"body-sm\" title=\"{{file.statusMessage}}\">{{file.status}}</span>\n </ng-container>\n </li>\n </ul>\n </div>\n</pep-snack-bar>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FileStatusPanelComponent } from './file-status-panel.component';\nimport { PepTextboxModule } from '@pepperi-addons/ngx-lib/textbox';\nimport { PepTopBarModule } from '@pepperi-addons/ngx-lib/top-bar';\nimport { PepDialogModule } from '@pepperi-addons/ngx-lib/dialog';\nimport { PepButtonModule } from '@pepperi-addons/ngx-lib/button';\nimport { PepIconModule, PepIconRegistry, pepIconArrowRightAlt } from '@pepperi-addons/ngx-lib/icon';\nimport { PepSnackBarModule } from '@pepperi-addons/ngx-lib/snack-bar';\n\nconst pepIcons = [\n pepIconArrowRightAlt,\n]\n\n@NgModule({\n declarations: [\n FileStatusPanelComponent\n ],\n imports: [\n CommonModule,\n PepTopBarModule,\n PepTextboxModule,\n PepButtonModule,\n PepIconModule,\n PepDialogModule,\n PepSnackBarModule\n ],\n exports: [FileStatusPanelComponent]\n})\n\nexport class PepFileStatusPanelModule { \n constructor(\n private pepIconRegistry: PepIconRegistry,\n ) {\n this.pepIconRegistry.registerIcons(pepIcons);\n }\n}","export type FileStatusType = 'uploading' | 'downloading' | 'done' | 'failed' | 'hidden' | 'deleting';\r\n\r\nexport class FileStatus {\r\n key = 0;\r\n name = '';\r\n status: FileStatusType = 'uploading';\r\n statusMessage? = '';\r\n}","/*\n * Public API Surface of ngx-composite-lib/file-status-panel\n */\nexport * from './file-status-panel.module';\nexport * from './file-status-panel.component';\nexport * from './file-status-panel.model';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["EventEmitter","MAT_SNACK_BAR_DATA","Component","Inject","Output","pepIconArrowRightAlt","CommonModule","PepTopBarModule","PepTextboxModule","PepButtonModule","PepIconModule","PepDialogModule","PepSnackBarModule","NgModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAkBI,kCACuC,IAAqB,EACjD,WAAqD;YADzB,SAAI,GAAJ,IAAI,CAAiB;YACjD,gBAAW,GAAX,WAAW,CAA0C;;;YAJhE,eAAU,GAAuB,IAAIA,eAAY,EAAQ,CAAC;;SAOzD;QAED,2CAAQ,GAAR;;SAEC;QAED,iDAAc,GAAd,UAAe,KAAU;YACrB,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;SAC1B;;;+IApBQ,wBAAwB,kBAQrBC,qBAAkB;wHARrB,wBAAwB,+GCXrC,gvBAYgB;qHDDH,wBAAwB;sBALpCC,YAAS;uBAAC;wBACP,QAAQ,EAAE,uBAAuB;wBACjC,WAAW,EAAE,oCAAoC;wBACjD,SAAS,EAAE,CAAC,oCAAoC,CAAC;qBACpD;;;kCASQC,SAAM;mCAACF,qBAAkB;;6BAH9B,UAAU;0BADTG,SAAM;;;IELX,IAAM,QAAQ,GAAG;QACbC,yBAAoB;KACvB,CAAA;;QAmBG,kCACY,eAAgC;YAAhC,oBAAe,GAAf,eAAe,CAAiB;YAExC,IAAI,CAAC,eAAe,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;SAChD;;;+IALQ,wBAAwB;gJAAxB,wBAAwB,iBAd7B,wBAAwB,aAGxBC,eAAY;YACZC,sBAAe;YACfC,wBAAgB;YAChBC,sBAAe;YACfC,kBAAa;YACbC,sBAAe;YACfC,oBAAiB,aAEX,wBAAwB;gJAGzB,wBAAwB,YAZxB;gBACLN,eAAY;gBACZC,sBAAe;gBACfC,wBAAgB;gBAChBC,sBAAe;gBACfC,kBAAa;gBACbC,sBAAe;gBACfC,oBAAiB;aACpB;qHAIQ,wBAAwB;sBAhBpCC,WAAQ;uBAAC;wBACN,YAAY,EAAE;4BACV,wBAAwB;yBAC3B;wBACD,OAAO,EAAE;4BACLP,eAAY;4BACZC,sBAAe;4BACfC,wBAAgB;4BAChBC,sBAAe;4BACfC,kBAAa;4BACbC,sBAAe;4BACfC,oBAAiB;yBACpB;wBACD,OAAO,EAAE,CAAC,wBAAwB,CAAC;qBACtC;;;;QC1BD;YACI,QAAG,GAAG,CAAC,CAAC;YACR,SAAI,GAAG,EAAE,CAAC;YACV,WAAM,GAAmB,WAAW,CAAC;YACrC,kBAAa,GAAI,EAAE,CAAC;SACvB;yBAAA;KAAA;;ICPD;;;;ICAA;;;;;;;;;;;;;;"}
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
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/form'), require('@pepperi-addons/ngx-lib/menu'), require('@pepperi-addons/ngx-lib/page-layout'), require('@pepperi-addons/ngx-lib/top-bar'), require('@pepperi-addons/data-views')) :
3
3
  typeof define === 'function' && define.amd ? define('@pepperi-addons/ngx-composite-lib/generic-form', ['exports', '@angular/core', '@angular/common', '@pepperi-addons/ngx-lib', '@pepperi-addons/ngx-lib/form', '@pepperi-addons/ngx-lib/menu', '@pepperi-addons/ngx-lib/page-layout', '@pepperi-addons/ngx-lib/top-bar', '@pepperi-addons/data-views'], 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-form"] = {}), global.ng.core, global.ng.common, global["ngx-lib"], global["ngx-lib/form"], global["ngx-lib/menu"], global["ngx-lib/page-layout"], global["ngx-lib/top-bar"], global.dataViews));
5
- })(this, (function (exports, i0, i6, i1, i5, menu, i3, i4, dataViews) { 'use strict';
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-form"] = {}), global.ng.core, global.ng.common, global["ngx-lib"], global["ngx-lib/form"], global["ngx-lib/menu"], global["ngx-lib/page-layout"], global["ngx-lib/top-bar"], global["data-views"]));
5
+ })(this, (function (exports, i0, i5, i1, form, menu, i3, i4, dataViews) { 'use strict';
6
6
 
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) return e;
@@ -23,9 +23,8 @@
23
23
  }
24
24
 
25
25
  var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
- var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
27
- var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
28
26
  var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
27
+ var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
29
28
  var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
30
29
  var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
31
30
 
@@ -414,7 +413,8 @@
414
413
  }
415
414
 
416
415
  var GenericFormComponent = /** @class */ (function () {
417
- function GenericFormComponent(layoutService, _genericFormService) {
416
+ function GenericFormComponent(_resolver, layoutService, _genericFormService) {
417
+ this._resolver = _resolver;
418
418
  this.layoutService = layoutService;
419
419
  this._genericFormService = _genericFormService;
420
420
  this._optionalValues = [];
@@ -428,28 +428,52 @@
428
428
  this.layoutService.onResize$.pipe().subscribe(function (size) {
429
429
  //
430
430
  });
431
- this.formData = new i1.ObjectsDataRow();
432
- this.uiControl = new i1.UIControl();
431
+ this._formData = new i1.ObjectsDataRow();
432
+ this._uiControl = new i1.UIControl();
433
433
  }
434
+ Object.defineProperty(GenericFormComponent.prototype, "pepListContainer", {
435
+ set: function (val) {
436
+ this._pepFormContainer = val;
437
+ },
438
+ enumerable: false,
439
+ configurable: true
440
+ });
434
441
  Object.defineProperty(GenericFormComponent.prototype, "dataSource", {
435
442
  set: function (val) {
436
443
  this._data = val;
437
- this.createFormFields();
438
444
  },
439
445
  enumerable: false,
440
446
  configurable: true
441
447
  });
442
448
  Object.defineProperty(GenericFormComponent.prototype, "dataView", {
443
449
  set: function (val) {
444
- var _this = this;
445
- var _a;
446
- if (val) {
447
- this.formData.IsEditable = !this.isLocked;
448
- this.formData.UID = val.UID || i1.PepGuid.newGuid();
449
- var uiControlData = dataViews.DataViewConverter.toUIControlData(val);
450
+ this.initForm(val);
451
+ },
452
+ enumerable: false,
453
+ configurable: true
454
+ });
455
+ GenericFormComponent.prototype.ngOnInit = function () {
456
+ //
457
+ };
458
+ GenericFormComponent.prototype.initForm = function (dataView) {
459
+ var _this = this;
460
+ setTimeout(function () {
461
+ var _a, _b;
462
+ if (_this._pepFormContainer) {
463
+ if (_this._pepFormContainer.length) {
464
+ _this._pepFormContainer.remove();
465
+ _this._formData = new i1.ObjectsDataRow();
466
+ _this._uiControl = new i1.UIControl();
467
+ }
468
+ var factory = _this._resolver.resolveComponentFactory(form.PepFormComponent);
469
+ var componentRef = _this._pepFormContainer.createComponent(factory);
470
+ _this._pepForm = componentRef.instance;
471
+ _this._formData.IsEditable = !_this.isLocked;
472
+ _this._formData.UID = dataView.UID || i1.PepGuid.newGuid();
473
+ var uiControlData = dataViews.DataViewConverter.toUIControlData(dataView);
450
474
  if (uiControlData) {
451
475
  if (uiControlData === null || uiControlData === void 0 ? void 0 : uiControlData.ControlFields) {
452
- (_a = val.Fields) === null || _a === void 0 ? void 0 : _a.forEach(function (field) {
476
+ (_a = dataView.Fields) === null || _a === void 0 ? void 0 : _a.forEach(function (field) {
453
477
  var _a;
454
478
  if ((_a = field.OptionalValues) === null || _a === void 0 ? void 0 : _a.length) {
455
479
  _this._optionalValues.push({
@@ -458,39 +482,43 @@
458
482
  });
459
483
  }
460
484
  });
461
- this.uiControl.ControlFields = uiControlData.ControlFields.map(function (field) { return _this._genericFormService.convertToUiControlField(field); });
485
+ _this._uiControl.ControlFields = uiControlData.ControlFields.map(function (field) { return _this._genericFormService.convertToUiControlField(field); });
486
+ }
487
+ _this._uiControl.Columns = uiControlData.Columns;
488
+ if ((_b = _this._uiControl.ControlFields) === null || _b === void 0 ? void 0 : _b.length) {
489
+ _this._formData.Fields = [];
490
+ _this._uiControl.ControlFields.forEach(function (item) {
491
+ var value = '';
492
+ if (_this._genericFormService.hasProperty(_this._data, item.ApiName)) {
493
+ value = _this._data[item.ApiName];
494
+ }
495
+ _this._formData.Fields.push(_this._genericFormService.createFormField(item, value, _this.getOptionalValues(item.ApiName)));
496
+ });
497
+ componentRef.instance.layoutType = 'form';
498
+ componentRef.instance.layout = _this._uiControl;
499
+ componentRef.instance.data = _this._formData;
500
+ componentRef.instance.isInternal = false;
501
+ componentRef.instance.lockFields = _this.isLocked;
502
+ componentRef.instance.valueChange.subscribe(function ($event) {
503
+ _this.onValueChanged($event);
504
+ });
505
+ componentRef.instance.fieldClick.subscribe(function ($event) {
506
+ _this.onfieldClicked($event);
507
+ });
508
+ componentRef.instance.formValidationChange.subscribe(function ($event) {
509
+ _this.onFormValidationChanged($event);
510
+ });
462
511
  }
463
- this.uiControl.Columns = uiControlData.Columns;
464
- this.createFormFields();
465
512
  }
466
513
  }
467
- },
468
- enumerable: false,
469
- configurable: true
470
- });
471
- GenericFormComponent.prototype.ngOnInit = function () {
472
- //
473
- };
474
- GenericFormComponent.prototype.createFormFields = function () {
475
- var _this = this;
476
- var _a, _b;
477
- if (this._data && ((_b = (_a = this.uiControl) === null || _a === void 0 ? void 0 : _a.ControlFields) === null || _b === void 0 ? void 0 : _b.length)) {
478
- this.formData.Fields = [];
479
- this.uiControl.ControlFields.forEach(function (item) {
480
- var value = '';
481
- if (_this._genericFormService.hasProperty(_this._data, item.ApiName)) {
482
- value = _this._data[item.ApiName];
483
- }
484
- _this.formData.Fields.push(_this._genericFormService.createFormField(item, value, _this.getOptionalValues(item.ApiName)));
485
- });
486
- }
514
+ }, 0);
487
515
  };
488
516
  /**
489
517
  * updates form field's value
490
518
  * @param field object containing the data of the required update
491
519
  */
492
520
  GenericFormComponent.prototype.updateFieldValue = function (fieldChanged) {
493
- this._data[fieldChanged.apiName] = fieldChanged.value;
521
+ this._data[fieldChanged.ApiName] = fieldChanged.Value;
494
522
  };
495
523
  GenericFormComponent.prototype.getOptionalValues = function (fieldId) {
496
524
  var item = this._optionalValues.find(function (item) { return item.fieldId === fieldId; });
@@ -498,7 +526,7 @@
498
526
  };
499
527
  GenericFormComponent.prototype.getData = function () {
500
528
  return {
501
- UID: this.formData.UID,
529
+ UID: this._formData.UID,
502
530
  Values: this._data
503
531
  };
504
532
  };
@@ -510,13 +538,13 @@
510
538
  var _this = this;
511
539
  fields.forEach(function (field) {
512
540
  var e_1, _c;
513
- var index = _this.formData.Fields.findIndex(function (item) { return item.ApiName === field.FieldId; });
541
+ var index = _this._formData.Fields.findIndex(function (item) { return item.ApiName === field.FieldId; });
514
542
  if (index >= 0) {
515
543
  try {
516
544
  for (var _d = __values(Object.entries(field.Params)), _e = _d.next(); !_e.done; _e = _d.next()) {
517
545
  var _f = __read(_e.value, 2), key = _f[0], value = _f[1];
518
- if (_this._genericFormService.hasProperty(_this.formData.Fields[index], key)) {
519
- var item = _this.formData.Fields[index];
546
+ if (_this._genericFormService.hasProperty(_this._formData.Fields[index], key)) {
547
+ var item = _this._formData.Fields[index];
520
548
  item[key] = value;
521
549
  }
522
550
  }
@@ -530,21 +558,23 @@
530
558
  }
531
559
  }
532
560
  });
561
+ this._pepForm.ReloadForm();
562
+ this._pepForm.data = this._formData;
533
563
  };
534
564
  GenericFormComponent.prototype.onValueChanged = function (event) {
535
565
  var field = {
536
- uid: event.id,
537
- apiName: event.key,
538
- value: event.value
566
+ UID: event.id,
567
+ ApiName: event.key,
568
+ Value: event.value
539
569
  };
540
570
  this.updateFieldValue(field);
541
571
  this.valueChange.emit(field);
542
572
  };
543
573
  GenericFormComponent.prototype.onfieldClicked = function (event) {
544
574
  var field = {
545
- uid: event.id,
546
- apiName: event.key,
547
- value: event.value
575
+ UID: event.id,
576
+ ApiName: event.key,
577
+ Value: event.value
548
578
  };
549
579
  this.updateFieldValue(field);
550
580
  this.fieldClick.emit(field);
@@ -554,8 +584,8 @@
554
584
  };
555
585
  return GenericFormComponent;
556
586
  }());
557
- GenericFormComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: GenericFormComponent, deps: [{ token: i1__namespace.PepLayoutService }, { token: PepGenericFormService }], target: i0__namespace.ɵɵFactoryTarget.Component });
558
- GenericFormComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: GenericFormComponent, selector: "pep-generic-form", inputs: { dataSource: "dataSource", dataView: "dataView", isLocked: "isLocked", inline: "inline", showTopBar: "showTopBar", addPadding: "addPadding" }, outputs: { valueChange: "valueChange", fieldClick: "fieldClick", formValidationChange: "formValidationChange" }, providers: [PepGenericFormService], ngImport: i0__namespace, template: "<div *ngIf=\"inline\" class=\"inline-container form-view\" [ngClass]=\"{ 'add-padding': addPadding }\">\n <div *ngIf=\"showTopBar\" class=\"inline-top-bar-container\">\n <ng-container *ngTemplateOutlet=\"topBarTemplate\"></ng-container>\n </div>\n <ng-container *ngTemplateOutlet=\"formTemplate\"></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 <div pep-main-area class=\"main-area-container form-view\">\n <ng-container *ngTemplateOutlet=\"formTemplate\"></ng-container>\n </div>\n</pep-page-layout>\n\n<ng-template #topBarTemplate>\n <pep-top-bar [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 <!-- <div footer-start-content>\n <ng-content select=\"[bottom-left-buttons]\"></ng-content>\n </div>\n <div footer-end-content>\n <ng-content select=\"[bottom-right-buttons]\"></ng-content>\n </div> -->\n </pep-top-bar>\n</ng-template>\n\n<ng-template #formTemplate>\n <pep-form [layoutType]=\"'form'\" [layout]=\"uiControl\" [data]=\"formData\" [isInternal]=\"false\" [lockFields]=\"isLocked\"\n (valueChange)=\"onValueChanged($event)\" (fieldClick)=\"onfieldClicked($event)\"\n (formValidationChange)=\"onFormValidationChanged($event)\">\n </pep-form>\n</ng-template>\n", styles: [":host{height:inherit;display:block}.main-area-container{display:grid;height:inherit}.inline-container{height:inherit;display:grid;grid-template-rows:auto 1fr}.inline-container.add-padding{padding-inline:var(--pep-spacing-lg, 1rem)}\n"], components: [{ type: i3__namespace.PepPageLayoutComponent, selector: "pep-page-layout", inputs: ["addPadding", "showShadow"] }, { type: i4__namespace.PepTopBarComponent, selector: "pep-top-bar", inputs: ["inline", "title"], outputs: ["footerStateChange"] }, { type: i5__namespace.PepFormComponent, selector: "pep-form", inputs: ["isInternal", "isReport", "lockEvents", "canEditObject", "isActive", "layoutType", "objectId", "parentId", "searchCode", "showTitle", "firstFieldAsLink", "checkForChanges", "data", "lockFields", "layout"], outputs: ["valueChange", "formValidationChange", "fieldClick", "internalFormFieldClick", "internalFormFieldChange"] }], directives: [{ type: i6__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i6__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
587
+ GenericFormComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: GenericFormComponent, deps: [{ token: i0__namespace.ComponentFactoryResolver }, { token: i1__namespace.PepLayoutService }, { token: PepGenericFormService }], target: i0__namespace.ɵɵFactoryTarget.Component });
588
+ GenericFormComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: GenericFormComponent, selector: "pep-generic-form", inputs: { dataSource: "dataSource", dataView: "dataView", isLocked: "isLocked", inline: "inline", showTopBar: "showTopBar", addPadding: "addPadding" }, outputs: { valueChange: "valueChange", fieldClick: "fieldClick", formValidationChange: "formValidationChange" }, providers: [PepGenericFormService], viewQueries: [{ propertyName: "pepListContainer", first: true, predicate: ["pepFormContainer"], descendants: true, read: i0.ViewContainerRef }], ngImport: i0__namespace, template: "<div *ngIf=\"inline\" class=\"inline-container\" [ngClass]=\"{ 'add-padding': addPadding }\">\n <div *ngIf=\"showTopBar\" class=\"inline-top-bar-container\">\n <ng-container *ngTemplateOutlet=\"topBarTemplate\"></ng-container>\n </div>\n <ng-container *ngTemplateOutlet=\"formTemplate\"></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 <div pep-main-area class=\"main-area-container\">\n <ng-container *ngTemplateOutlet=\"formTemplate\"></ng-container>\n </div>\n</pep-page-layout>\n\n<ng-template #topBarTemplate>\n <pep-top-bar [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 <!-- <div footer-start-content>\n <ng-content select=\"[bottom-left-buttons]\"></ng-content>\n </div>\n <div footer-end-content>\n <ng-content select=\"[bottom-right-buttons]\"></ng-content>\n </div> -->\n </pep-top-bar>\n</ng-template>\n\n<ng-template #formTemplate>\n <div class=\"form-view\">\n <ng-container #pepFormContainer></ng-container>\n </div>\n</ng-template>\n", styles: [":host{height:inherit;display:block}.main-area-container{display:grid;height:inherit}.inline-container{height:inherit;display:grid;grid-template-rows:auto 1fr}.inline-container.add-padding{padding-inline:var(--pep-spacing-lg, 1rem)}\n"], components: [{ type: i3__namespace.PepPageLayoutComponent, selector: "pep-page-layout", inputs: ["addPadding", "showShadow"] }, { type: i4__namespace.PepTopBarComponent, selector: "pep-top-bar", inputs: ["inline", "title"], outputs: ["footerStateChange"] }], directives: [{ type: i5__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i5__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
559
589
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: GenericFormComponent, decorators: [{
560
590
  type: i0.Component,
561
591
  args: [{
@@ -564,7 +594,10 @@
564
594
  styleUrls: ['./generic-form.component.scss'],
565
595
  providers: [PepGenericFormService]
566
596
  }]
567
- }], ctorParameters: function () { return [{ type: i1__namespace.PepLayoutService }, { type: PepGenericFormService }]; }, propDecorators: { dataSource: [{
597
+ }], ctorParameters: function () { return [{ type: i0__namespace.ComponentFactoryResolver }, { type: i1__namespace.PepLayoutService }, { type: PepGenericFormService }]; }, propDecorators: { pepListContainer: [{
598
+ type: i0.ViewChild,
599
+ args: ['pepFormContainer', { read: i0.ViewContainerRef }]
600
+ }], dataSource: [{
568
601
  type: i0.Input
569
602
  }], dataView: [{
570
603
  type: i0.Input
@@ -590,24 +623,24 @@
590
623
  return PepGenericFormModule;
591
624
  }());
592
625
  PepGenericFormModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericFormModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
593
- PepGenericFormModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericFormModule, declarations: [GenericFormComponent], imports: [i6.CommonModule,
626
+ PepGenericFormModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericFormModule, declarations: [GenericFormComponent], imports: [i5.CommonModule,
594
627
  // MatFormFieldModule,
595
628
  // ReactiveFormsModule,
596
629
  i1.PepNgxLibModule,
597
630
  // PepListModule,
598
- i5.PepFormModule,
631
+ form.PepFormModule,
599
632
  menu.PepMenuModule,
600
633
  i3.PepPageLayoutModule,
601
634
  i4.PepTopBarModule], exports: [GenericFormComponent] });
602
635
  PepGenericFormModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PepGenericFormModule, providers: [
603
636
  PepGenericFormService
604
637
  ], imports: [[
605
- i6.CommonModule,
638
+ i5.CommonModule,
606
639
  // MatFormFieldModule,
607
640
  // ReactiveFormsModule,
608
641
  i1.PepNgxLibModule,
609
642
  // PepListModule,
610
- i5.PepFormModule,
643
+ form.PepFormModule,
611
644
  menu.PepMenuModule,
612
645
  i3.PepPageLayoutModule,
613
646
  i4.PepTopBarModule,
@@ -623,12 +656,12 @@
623
656
  GenericFormComponent
624
657
  ],
625
658
  imports: [
626
- i6.CommonModule,
659
+ i5.CommonModule,
627
660
  // MatFormFieldModule,
628
661
  // ReactiveFormsModule,
629
662
  i1.PepNgxLibModule,
630
663
  // PepListModule,
631
- i5.PepFormModule,
664
+ form.PepFormModule,
632
665
  menu.PepMenuModule,
633
666
  i3.PepPageLayoutModule,
634
667
  i4.PepTopBarModule,