@eqproject/eqp-dynamic-module 2.3.36 → 2.3.38

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.
@@ -2777,6 +2777,20 @@ class AddFormRecordComponent {
2777
2777
  dynRec.userID = this.userID;
2778
2778
  dynRec.Values = event ?? null;
2779
2779
  dynRec.HTMLreadableValues = this.createHTMLreadableValues(event);
2780
+ if (event.FK_InsertUser == null) {
2781
+ // Nuovo Record
2782
+ dynRec.FK_InsertUser = this.userID;
2783
+ dynRec.InsertDate = new Date();
2784
+ dynRec.FK_UpdateUser = this.userID;
2785
+ dynRec.UpdateDate = new Date();
2786
+ }
2787
+ else {
2788
+ // Modifica del Record
2789
+ dynRec.FK_InsertUser = event.FK_InsertUser;
2790
+ dynRec.InsertDate = event.InsertDate;
2791
+ dynRec.FK_UpdateUser = this.userID;
2792
+ dynRec.UpdateDate = new Date();
2793
+ }
2780
2794
  var additionalParams = this.additionalParams == null ? event.AdditionalParams : this.additionalParams;
2781
2795
  dynRec.AdditionalParams = JSON.stringify(additionalParams);
2782
2796
  var dynamicModuleParams = [
@@ -2826,6 +2840,10 @@ class AddFormRecordComponent {
2826
2840
  this.record.userID = res.userID;
2827
2841
  this.record.Version = res.Version;
2828
2842
  this.record.Values = JSON.parse(res.SerializedValues);
2843
+ this.record.FK_InsertUser = res.FK_InsertUser;
2844
+ this.record.FK_UpdateUser = res.FK_UpdateUser;
2845
+ this.record.InsertDate = res.InsertDate;
2846
+ this.record.UpdateDate = res.UpdateDate;
2829
2847
  // this.viewMode = DynamicModuleViewModeEnum.COMPILE;
2830
2848
  // this.loader = true;
2831
2849
  this.getFormByIDandVersion();
@@ -3105,7 +3123,7 @@ class AddFormRecordComponent {
3105
3123
  baseField.AnswerStyle.InListView = (visibility == true) ? true : false;
3106
3124
  }
3107
3125
  if (baseField.AnswerStyle.InListView) {
3108
- template += '<div class="' + this.utilityService.getFieldAnswerStyleClass(baseField) + '"> ' +
3126
+ template += '<div class="' + this.utilityService.getFieldAnswerStyleClass(baseField) + ' d-flex flex-column"> ' +
3109
3127
  ' <span class="dynaform-question" style="' + baseField.AnswerStyle.LabelstyleCSS + '">' + baseField.Description + ':</span>' +
3110
3128
  ' <span class="dynaform-response" style="' + baseField.AnswerStyle.FieldstyleCSS + '"> ##' + baseField.Name + '##</span>' +
3111
3129
  '</div> \n ';
@@ -3338,56 +3356,112 @@ class Coords {
3338
3356
  }
3339
3357
 
3340
3358
  class GraphComponent {
3341
- constructor() {
3359
+ constructor(datePipe) {
3360
+ this.datePipe = datePipe;
3342
3361
  this.data = new Array();
3343
3362
  this.title = "";
3344
- this.stockChartOptions = {
3345
- width: 1000,
3346
- height: 500,
3347
- title: {
3348
- text: ""
3349
- },
3350
- theme: "light2",
3351
- charts: [{
3352
- data: [{
3353
- xValueType: "dateTime",
3354
- type: "line",
3355
- dataPoints: []
3356
- }]
3357
- }],
3358
- navigator: {
3359
- slider: {
3360
- minimum: new Date("2018-07-01"),
3361
- maximum: new Date("2019-06-30")
3362
- }
3363
- },
3364
- options: {
3365
- responsive: true,
3366
- maintainAspectRatio: false
3367
- }
3368
- };
3369
3363
  this.loaded = false;
3364
+ this.counter = 0;
3370
3365
  }
3371
3366
  ngOnInit() {
3367
+ var self = this;
3372
3368
  // Aggiustamento e scrittura dati
3373
3369
  if (this.data.length > 0) {
3374
3370
  var lastvalue = this.data[0];
3375
3371
  var firstvalue = this.data[this.data.length - 1];
3376
- this.stockChartOptions.navigator.slider.minimum = new Date(firstvalue.x);
3377
- this.stockChartOptions.navigator.slider.maximum = new Date(lastvalue.x);
3378
- this.stockChartOptions.title.text = this.title;
3379
- this.stockChartOptions.charts[0].data[0].dataPoints = this.data;
3380
- console.log(this.title, this.stockChartOptions);
3372
+ var stockChartMinimum = new Date(firstvalue.x);
3373
+ var stockChartMaximum = new Date(lastvalue.x);
3374
+ var stockChartTitleText = this.title;
3375
+ var stockChartdataPoints = this.data;
3376
+ this.stockChartOptions = {
3377
+ width: 1000,
3378
+ height: 500,
3379
+ title: {
3380
+ text: stockChartTitleText
3381
+ },
3382
+ theme: "light2",
3383
+ charts: [{
3384
+ axisX: {
3385
+ labelFormatter: this.labelFormatterFunction,
3386
+ },
3387
+ data: [{
3388
+ type: "line",
3389
+ dataPoints: stockChartdataPoints
3390
+ }],
3391
+ culture: "it"
3392
+ }],
3393
+ rangeSelector: {
3394
+ enabled: false
3395
+ },
3396
+ navigator: {
3397
+ slider: {
3398
+ minimum: stockChartMinimum,
3399
+ maximum: stockChartMaximum
3400
+ }
3401
+ },
3402
+ options: {
3403
+ responsive: true,
3404
+ maintainAspectRatio: false
3405
+ }
3406
+ };
3381
3407
  this.loaded = true;
3382
3408
  }
3383
3409
  }
3410
+ labelFormatterFunction(e) {
3411
+ let label = "";
3412
+ let dirtyLabel;
3413
+ let date = e.value;
3414
+ let newYear = date.getFullYear();
3415
+ let newMonth = date.getMonth() + 1;
3416
+ let newMonthString;
3417
+ if (newMonth < 10) {
3418
+ newMonthString = "0" + newMonth.toString();
3419
+ }
3420
+ else {
3421
+ newMonthString = newMonth.toString();
3422
+ }
3423
+ let newDay = date.getDate();
3424
+ let newDayString;
3425
+ if (newDay < 10) {
3426
+ newDayString = "0" + newDay.toString();
3427
+ }
3428
+ else {
3429
+ newDayString = newDay.toString();
3430
+ }
3431
+ let newHour = date.getHours();
3432
+ let newHourString;
3433
+ if (newHour < 10) {
3434
+ newHourString = "0" + newHour.toString();
3435
+ }
3436
+ else {
3437
+ newHourString = newHour.toString();
3438
+ }
3439
+ let newMinute = date.getMinutes();
3440
+ let newMinuteString;
3441
+ if (newMinute < 10) {
3442
+ newMinuteString = "0" + newMinute.toString();
3443
+ }
3444
+ else {
3445
+ newMinuteString = newMinute.toString();
3446
+ }
3447
+ dirtyLabel = newDayString + "/" + newMonthString + "/" + newYear.toString() + " " + newHourString + ":" + newMinuteString;
3448
+ for (let i = 0; i < 5; i++) {
3449
+ label += dirtyLabel[i];
3450
+ }
3451
+ label += " ";
3452
+ for (let i = 11; i < 16; i++) {
3453
+ label += dirtyLabel[i];
3454
+ }
3455
+ //label = label.replace("00:00","");
3456
+ return label;
3457
+ }
3384
3458
  }
3385
- GraphComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GraphComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3459
+ GraphComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GraphComponent, deps: [{ token: i6.DatePipe }], target: i0.ɵɵFactoryTarget.Component });
3386
3460
  GraphComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: GraphComponent, selector: "graph", inputs: { data: "data", title: "title" }, ngImport: i0, template: "<canvasjs-stockchart *ngIf=\"loaded\" [options]=\"stockChartOptions\"></canvasjs-stockchart>\r\n<div class=\"error\" *ngIf=\"!loaded\"><b>{{title}}:</b> Nessun dato trovato nell'intervallo specificato!</div>", styles: [""], dependencies: [{ kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$5.CanvasJSStockChart, selector: "canvasjs-stockchart", inputs: ["options", "styles"], outputs: ["stockChartInstance"] }] });
3387
3461
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GraphComponent, decorators: [{
3388
3462
  type: Component,
3389
3463
  args: [{ selector: 'graph', template: "<canvasjs-stockchart *ngIf=\"loaded\" [options]=\"stockChartOptions\"></canvasjs-stockchart>\r\n<div class=\"error\" *ngIf=\"!loaded\"><b>{{title}}:</b> Nessun dato trovato nell'intervallo specificato!</div>" }]
3390
- }], ctorParameters: function () { return []; }, propDecorators: { data: [{
3464
+ }], ctorParameters: function () { return [{ type: i6.DatePipe }]; }, propDecorators: { data: [{
3391
3465
  type: Input,
3392
3466
  args: ["data"]
3393
3467
  }], title: [{
@@ -3497,8 +3571,8 @@ class GraphsComponent {
3497
3571
  // Azzero le coordinate
3498
3572
  this.selectedGeneratedFields.forEach((field) => { field.Coords = new Array(); });
3499
3573
  this.eligibleAnswers = JSON.parse(JSON.stringify(this.answers));
3500
- this.minperiodS = this.datePipe.transform(this.minperiod, "YYYY-MM-dd");
3501
- this.maxperiodS = this.datePipe.transform(this.maxperiod, "YYYY-MM-dd");
3574
+ this.minperiodS = this.datePipe.transform(this.minperiod, "yyyy-MM-dd");
3575
+ this.maxperiodS = this.datePipe.transform(this.maxperiod, "yyyy-MM-dd");
3502
3576
  // Filtro minimo periodo
3503
3577
  if (this.minperiod != null) {
3504
3578
  this.eligibleAnswers = this.eligibleAnswers.filter(x => x.AnswerDate.split("T")[0] >= this.minperiodS);
@@ -3513,8 +3587,10 @@ class GraphsComponent {
3513
3587
  this.selectedGeneratedFields.forEach((field) => {
3514
3588
  if (answervalues[field.Name] != null) {
3515
3589
  var coords = new Coords();
3516
- coords.x = new Date(answer.AnswerDate.split("T")[0]);
3590
+ coords.x = new Date(answer.AnswerDate);
3517
3591
  coords.y = parseFloat(answervalues[field.Name]);
3592
+ coords.label = this.datePipe.transform(coords.x, "dd/MM HH:mm");
3593
+ coords.name = coords.label;
3518
3594
  field.Coords.push(coords);
3519
3595
  }
3520
3596
  });
@@ -3555,6 +3631,7 @@ class ListViewFormRecordComponent {
3555
3631
  this.showTitle = true;
3556
3632
  // values: Array<Record>;
3557
3633
  this.test = false;
3634
+ this.loadedform = false;
3558
3635
  this.panelOpenState = new Array();
3559
3636
  this.selectedIndex = null;
3560
3637
  this.visualizzaContenuto = false;
@@ -3645,6 +3722,7 @@ class ListViewFormRecordComponent {
3645
3722
  });
3646
3723
  this.utilityHelperService.RunEndPointCall(this.endPointConfiguration.Forms.GetByIDEndPoint, dynamicModuleParams, (res) => {
3647
3724
  this.form = res;
3725
+ this.loadedform = true;
3648
3726
  this.configureColumns();
3649
3727
  }, (err) => { });
3650
3728
  }
@@ -4000,10 +4078,10 @@ class ListViewFormRecordComponent {
4000
4078
  }
4001
4079
  }
4002
4080
  ListViewFormRecordComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ListViewFormRecordComponent, deps: [{ token: UtilityHelperService }, { token: i0.ChangeDetectorRef }, { token: i1$2.MatDialog }, { token: i3$3.Router }], target: i0.ɵɵFactoryTarget.Component });
4003
- ListViewFormRecordComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ListViewFormRecordComponent, selector: "list-view-form-record", inputs: { configurations: "configurations", compileConfigurations: "compileConfigurations", endPointConfiguration: "endPointConfiguration", userID: "userID", formID: "formID", form: "form", defaultListViewFunction: "defaultListViewFunction", externalButtons: "externalButtons", onlyView: "onlyView", records: "records", highlightFilter: "highlightFilter" }, outputs: { onAddViewEditRecord: "onAddViewEditRecord", onDeleteRecord: "onDeleteRecord", saveRecordEvent: "saveRecordEvent", afterSaveRecordEvent: "afterSaveRecordEvent" }, viewQueries: [{ propertyName: "tableRecords", first: true, predicate: ["tableRecords"], descendants: true, static: true }, { propertyName: "openAddDialog", first: true, predicate: ["openAddDialog"], descendants: true }, { propertyName: "openGraphDialog", first: true, predicate: ["openGraphDialog"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<mat-card class=\"list-view-form-record\">\r\n <mat-card-header *ngIf=\"showTitle || defaultListActions.add\" class=\"align-items-center justify-content-between\">\r\n <mat-card-title *ngIf=\"showTitle\">Elenco {{ form.Name }} </mat-card-title>\r\n <mat-card-actions *ngIf=\"defaultListActions.add || defaultListActions.graphs\">\r\n <button \r\n *ngIf=\"defaultListActions.graphs\"\r\n class=\"btn btn-primary mr-2\" \r\n mat-raised-button \r\n color=\"primary\" \r\n type=\"button\"\r\n (click)=\"openGraphs()\">\r\n <mat-icon>pie_chart</mat-icon>\r\n <span style=\"margin-left: 10px\">Grafici</span>\r\n </button>\r\n <button \r\n *ngIf=\"defaultListActions.add\"\r\n class=\"btn btn-primary\" \r\n mat-raised-button \r\n color=\"primary\" \r\n type=\"button\"\r\n (click)=\"openAddPopup()\">\r\n <mat-icon>add</mat-icon>\r\n <span style=\"margin-left: 10px\">Aggiungi</span>\r\n </button> \r\n </mat-card-actions>\r\n </mat-card-header>\r\n\r\n \r\n <mat-card-content>\r\n <mat-accordion [hideToggle]=\"test\" [multi]=\"true\" class=\"df-list-view-accordion\">\r\n <mat-expansion-panel *ngFor=\"let panel of panels; index as i\" \r\n [expanded]=\"panel.isOpen\"\r\n [disabled]=\"1\" \r\n [class]=\"panel.highlighted ? 'dm_panel_highlighted' : '0'\"\r\n >\r\n <mat-expansion-panel-header\r\n (click)=\"togglePanel(panel, panel.record)\">\r\n <mat-panel-title>\r\n {{ form.Name }} v.{{ panel.record.Version }} - {{ panel.record.AnswerDate | date : \"EEEE, d MMMM y, H:mm:ss\" }}\r\n </mat-panel-title>\r\n <!--#region BOTTONI PER LE AZIONI -->\r\n <mat-panel-description>\r\n <button *ngFor=\"let button of buttons\" \r\n mat-icon-button \r\n class=\"record-icon {{button.extraClass}}\" \r\n [matTooltip]=\"button.text\"\r\n [hidden]=\"button.icon == 'file_copy' && (panels.length == 0 || panel.record.Version != panels[0].record.Version)\"\r\n (click)=\"button.fn(panel,i,$event)\">\r\n <mat-icon>{{button.icon}}</mat-icon>\r\n </button>\r\n <button *ngFor=\"let button of externalButtons\" \r\n mat-icon-button \r\n class=\"record-icon {{button.extraClass}}\"\r\n [matTooltip]=\"button.text\"\r\n (click)=\"externalCallback($event,button.fn,panel.record)\">\r\n <mat-icon>{{button.icon}}</mat-icon>\r\n </button> \r\n <span class=\"example-spacer\"></span>\r\n \r\n </mat-panel-description>\r\n <!--#endregion BOTTONI PER LE AZIONI -->\r\n </mat-expansion-panel-header>\r\n\r\n <!-- #region CONTENUTO -->\r\n <ng-container *ngIf=\"panel.pageState != null\">\r\n <lib-single-record\r\n [onlyView]=\"onlyView\"\r\n [record] = \"panel.record\" \r\n [endPointConfiguration] = \"endPointConfiguration\"\r\n [form]=\"form\"\r\n [userID]=\"userID\"\r\n [outCompileConfigurations]=\"outCompileConfigurations\"\r\n [pageState]=\"panel.pageState\"\r\n (saveRecordEvent)=\"saveOrExitForm($event)\"\r\n (afterSaveRecordEvent)=\"onAfterSaveRecord($event)\"\r\n >\r\n\r\n </lib-single-record>\r\n </ng-container>\r\n <!--#endregion CONTENUTO -->\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n\r\n\r\n </mat-card-content>\r\n <mat-card-footer>\r\n </mat-card-footer>\r\n</mat-card>\r\n\r\n<!-- DIALOG RECIPIENTS EMAIL PER FIRMA -->\r\n<ng-template #openAddDialog>\r\n <mat-card class=\"card-default overlay-card card-inmodal-true\">\r\n <mat-card-content>\r\n\r\n <add-form-record\r\n class=\"dynamic-module-compile\"\r\n [formID]=\"formID\"\r\n [onlyView]=\"false\"\r\n [record]=\"selectedRecord\"\r\n\r\n [endPointConfiguration]=\"endPointConfiguration\"\r\n [userID]=\"userID\"\r\n\r\n [configurations]=\"compileConfigurations\"\r\n [additionalParams]=\"compileConfigurations.additionalParams\"\r\n\r\n (saveRecordEvent)=\"onAddSaveRecord($event)\"\r\n (afterSaveRecordEvent)=\"onAddAfterSaveRecord($event)\"\r\n >\r\n </add-form-record>\r\n\r\n </mat-card-content>\r\n </mat-card>\r\n</ng-template>\r\n\r\n<!-- DIALOG RECIPIENTS EMAIL PER FIRMA -->\r\n<ng-template #openGraphDialog>\r\n <mat-card class=\"card-default overlay-card card-inmodal-true graphCard\">\r\n \r\n <mat-card-header class=\"align-items-center justify-content-between\">\r\n <mat-card-title>\r\n <div class=\"row eqp-dynamic-module-title graph-header\">\r\n <div class=\"col-md-12\">\r\n <span>Grafico {{ form.Name }} </span>\r\n </div>\r\n </div>\r\n </mat-card-title>\r\n <mat-card-actions>\r\n <button \r\n class=\"btn btn-primary mr-2\" \r\n mat-raised-button \r\n color=\"primary\" \r\n type=\"button\"\r\n (click)=\"closeGraphs()\">\r\n <span class=\"material-icons\">\r\n arrow_back\r\n </span>\r\n <span style=\"margin-left: 10px\">Indietro</span>\r\n </button>\r\n </mat-card-actions>\r\n </mat-card-header>\r\n <mat-card-content>\r\n\r\n <graphs\r\n [formID]=\"formID\"\r\n [userID]=\"userID\"\r\n [configurations] = \"outCompileConfigurations\"\r\n [endPointConfiguration] = \"endPointConfiguration\"\r\n >\r\n </graphs>\r\n\r\n </mat-card-content>\r\n </mat-card>\r\n</ng-template>", styles: ["::ng-deep .error-color{color:var(--danger)}::ng-deep .success-color{color:var(--success)}::ng-deep .dynaform-question{font-size:1em;font-weight:lighter}::ng-deep .dynaform-response{font-size:1.2em;font-weight:700}::ng-deep .df-list-view-accordion .mat-expansion-panel-header-description{flex-grow:0!important}::ng-deep .mat-expansion-panel-header[aria-disabled=true]{color:#0000008a}\n"], dependencies: [{ kind: "component", type: i2$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i2$1.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i5$1.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i5$1.MatCardActions, selector: "mat-card-actions", inputs: ["align"], exportAs: ["matCardActions"] }, { kind: "directive", type: i5$1.MatCardContent, selector: "mat-card-content" }, { kind: "directive", type: i5$1.MatCardFooter, selector: "mat-card-footer" }, { kind: "component", type: i5$1.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i5$1.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "directive", type: i6$2.MatAccordion, selector: "mat-accordion", inputs: ["multi", "hideToggle", "displayMode", "togglePosition"], exportAs: ["matAccordion"] }, { kind: "component", type: i6$2.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i6$2.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["tabIndex", "expandedHeight", "collapsedHeight"] }, { kind: "directive", type: i6$2.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "directive", type: i6$2.MatExpansionPanelDescription, selector: "mat-panel-description" }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i2$3.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "directive", type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: AddFormRecordComponent, selector: "add-form-record", inputs: ["configurations", "endPointConfiguration", "userID", "formID", "form", "record", "onlyView", "isDuplicate", "additionalParams"], outputs: ["saveRecordEvent", "afterSaveRecordEvent"] }, { kind: "component", type: SingleRecordComponent, selector: "lib-single-record", inputs: ["endPointConfiguration", "record", "pageState", "userID", "form", "showBackButton", "outCompileConfigurations", "onlyView"], outputs: ["saveRecordEvent", "afterSaveRecordEvent"] }, { kind: "component", type: GraphsComponent, selector: "graphs", inputs: ["configurations", "endPointConfiguration", "userID", "formID", "form"] }, { kind: "pipe", type: i6.DatePipe, name: "date" }] });
4081
+ ListViewFormRecordComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ListViewFormRecordComponent, selector: "list-view-form-record", inputs: { configurations: "configurations", compileConfigurations: "compileConfigurations", endPointConfiguration: "endPointConfiguration", userID: "userID", formID: "formID", form: "form", defaultListViewFunction: "defaultListViewFunction", externalButtons: "externalButtons", onlyView: "onlyView", records: "records", highlightFilter: "highlightFilter" }, outputs: { onAddViewEditRecord: "onAddViewEditRecord", onDeleteRecord: "onDeleteRecord", saveRecordEvent: "saveRecordEvent", afterSaveRecordEvent: "afterSaveRecordEvent" }, viewQueries: [{ propertyName: "tableRecords", first: true, predicate: ["tableRecords"], descendants: true, static: true }, { propertyName: "openAddDialog", first: true, predicate: ["openAddDialog"], descendants: true }, { propertyName: "openGraphDialog", first: true, predicate: ["openGraphDialog"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<mat-card class=\"list-view-form-record\">\n <mat-card-header *ngIf=\"showTitle || defaultListActions.add\" class=\"align-items-center justify-content-between\">\n <mat-card-title *ngIf=\"showTitle && loadedform\">Modulo {{ form.Name }} </mat-card-title>\n <mat-card-actions *ngIf=\"defaultListActions.add || defaultListActions.graphs\">\n <button \n *ngIf=\"defaultListActions.graphs\"\n class=\"btn btn-primary mr-2\" \n mat-raised-button \n color=\"primary\" \n type=\"button\"\n (click)=\"openGraphs()\">\n <mat-icon>pie_chart</mat-icon>\n <span style=\"margin-left: 10px\">Grafici</span>\n </button>\n <button \n *ngIf=\"defaultListActions.add\"\n class=\"btn btn-primary\" \n mat-raised-button \n color=\"primary\" \n type=\"button\"\n (click)=\"openAddPopup()\">\n <mat-icon>add</mat-icon>\n <span style=\"margin-left: 10px\">Aggiungi</span>\n </button> \n </mat-card-actions>\n </mat-card-header>\n\n \n <mat-card-content>\n <mat-accordion [hideToggle]=\"test\" [multi]=\"true\" class=\"df-list-view-accordion\">\n <mat-expansion-panel *ngFor=\"let panel of panels; index as i\" \n [expanded]=\"panel.isOpen\"\n [disabled]=\"1\" \n [class]=\"panel.highlighted ? 'dm_panel_highlighted' : '0'\"\n >\n <mat-expansion-panel-header\n (click)=\"togglePanel(panel, panel.record)\">\n <mat-panel-title>\n {{ !showTitle ? form.Name : \"\" }} v.{{ panel.record.Version }} - {{ panel.record.AnswerDate | date : \"EEEE, d MMMM y, H:mm:ss\" }}\n </mat-panel-title>\n <!--#region BOTTONI PER LE AZIONI -->\n <mat-panel-description>\n <button *ngFor=\"let button of buttons\" \n mat-icon-button \n class=\"record-icon {{button.extraClass}}\" \n [matTooltip]=\"button.text\"\n [hidden]=\"button.icon == 'file_copy' && (panels.length == 0 || panel.record.Version != panels[0].record.Version)\"\n (click)=\"button.fn(panel,i,$event)\">\n <mat-icon>{{button.icon}}</mat-icon>\n </button>\n <button *ngFor=\"let button of externalButtons\" \n mat-icon-button \n class=\"record-icon {{button.extraClass}}\"\n [matTooltip]=\"button.text\"\n (click)=\"externalCallback($event,button.fn,panel.record)\">\n <mat-icon>{{button.icon}}</mat-icon>\n </button> \n <span class=\"example-spacer\"></span>\n \n </mat-panel-description>\n <!--#endregion BOTTONI PER LE AZIONI -->\n </mat-expansion-panel-header>\n\n <!-- #region CONTENUTO -->\n <ng-container *ngIf=\"panel.pageState != null\">\n <lib-single-record\n [onlyView]=\"onlyView\"\n [record] = \"panel.record\" \n [endPointConfiguration] = \"endPointConfiguration\"\n [form]=\"form\"\n [userID]=\"userID\"\n [outCompileConfigurations]=\"outCompileConfigurations\"\n [pageState]=\"panel.pageState\"\n (saveRecordEvent)=\"saveOrExitForm($event)\"\n (afterSaveRecordEvent)=\"onAfterSaveRecord($event)\"\n >\n\n </lib-single-record>\n </ng-container>\n <!--#endregion CONTENUTO -->\n </mat-expansion-panel>\n </mat-accordion>\n\n\n </mat-card-content>\n <mat-card-footer>\n </mat-card-footer>\n</mat-card>\n\n<!-- DIALOG RECIPIENTS EMAIL PER FIRMA -->\n<ng-template #openAddDialog>\n <mat-card class=\"card-default overlay-card card-inmodal-true\">\n <mat-card-content>\n\n <add-form-record\n class=\"dynamic-module-compile\"\n [formID]=\"formID\"\n [onlyView]=\"false\"\n [record]=\"selectedRecord\"\n\n [endPointConfiguration]=\"endPointConfiguration\"\n [userID]=\"userID\"\n\n [configurations]=\"compileConfigurations\"\n [additionalParams]=\"compileConfigurations.additionalParams\"\n\n (saveRecordEvent)=\"onAddSaveRecord($event)\"\n (afterSaveRecordEvent)=\"onAddAfterSaveRecord($event)\"\n >\n </add-form-record>\n\n </mat-card-content>\n </mat-card>\n</ng-template>\n\n<!-- DIALOG RECIPIENTS EMAIL PER FIRMA -->\n<ng-template #openGraphDialog>\n <mat-card class=\"card-default overlay-card card-inmodal-true graphCard\">\n \n <mat-card-header class=\"align-items-center justify-content-between\">\n <mat-card-title>\n <div class=\"row eqp-dynamic-module-title graph-header\">\n <div class=\"col-md-12\">\n <span>Grafico {{ form.Name }} </span>\n </div>\n </div>\n </mat-card-title>\n <mat-card-actions>\n <button \n class=\"btn btn-primary mr-2\" \n mat-raised-button \n color=\"primary\" \n type=\"button\"\n (click)=\"closeGraphs()\">\n <span class=\"material-icons\">\n arrow_back\n </span>\n <span style=\"margin-left: 10px\">Indietro</span>\n </button>\n </mat-card-actions>\n </mat-card-header>\n <mat-card-content>\n\n <graphs\n [formID]=\"formID\"\n [userID]=\"userID\"\n [configurations] = \"outCompileConfigurations\"\n [endPointConfiguration] = \"endPointConfiguration\"\n >\n </graphs>\n\n </mat-card-content>\n </mat-card>\n</ng-template>", styles: ["::ng-deep .error-color{color:var(--danger)}::ng-deep .success-color{color:var(--success)}::ng-deep .dynaform-question{font-size:1em;font-weight:lighter}::ng-deep .dynaform-response{font-size:1.2em;font-weight:700}::ng-deep .df-list-view-accordion .mat-expansion-panel-header-description{flex-grow:0!important}::ng-deep .mat-expansion-panel-header[aria-disabled=true]{color:#0000008a}\n"], dependencies: [{ kind: "component", type: i2$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i2$1.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i5$1.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i5$1.MatCardActions, selector: "mat-card-actions", inputs: ["align"], exportAs: ["matCardActions"] }, { kind: "directive", type: i5$1.MatCardContent, selector: "mat-card-content" }, { kind: "directive", type: i5$1.MatCardFooter, selector: "mat-card-footer" }, { kind: "component", type: i5$1.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i5$1.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "directive", type: i6$2.MatAccordion, selector: "mat-accordion", inputs: ["multi", "hideToggle", "displayMode", "togglePosition"], exportAs: ["matAccordion"] }, { kind: "component", type: i6$2.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i6$2.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["tabIndex", "expandedHeight", "collapsedHeight"] }, { kind: "directive", type: i6$2.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "directive", type: i6$2.MatExpansionPanelDescription, selector: "mat-panel-description" }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i2$3.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "directive", type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: AddFormRecordComponent, selector: "add-form-record", inputs: ["configurations", "endPointConfiguration", "userID", "formID", "form", "record", "onlyView", "isDuplicate", "additionalParams"], outputs: ["saveRecordEvent", "afterSaveRecordEvent"] }, { kind: "component", type: SingleRecordComponent, selector: "lib-single-record", inputs: ["endPointConfiguration", "record", "pageState", "userID", "form", "showBackButton", "outCompileConfigurations", "onlyView"], outputs: ["saveRecordEvent", "afterSaveRecordEvent"] }, { kind: "component", type: GraphsComponent, selector: "graphs", inputs: ["configurations", "endPointConfiguration", "userID", "formID", "form"] }, { kind: "pipe", type: i6.DatePipe, name: "date" }] });
4004
4082
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ListViewFormRecordComponent, decorators: [{
4005
4083
  type: Component,
4006
- args: [{ selector: "list-view-form-record", template: "<mat-card class=\"list-view-form-record\">\r\n <mat-card-header *ngIf=\"showTitle || defaultListActions.add\" class=\"align-items-center justify-content-between\">\r\n <mat-card-title *ngIf=\"showTitle\">Elenco {{ form.Name }} </mat-card-title>\r\n <mat-card-actions *ngIf=\"defaultListActions.add || defaultListActions.graphs\">\r\n <button \r\n *ngIf=\"defaultListActions.graphs\"\r\n class=\"btn btn-primary mr-2\" \r\n mat-raised-button \r\n color=\"primary\" \r\n type=\"button\"\r\n (click)=\"openGraphs()\">\r\n <mat-icon>pie_chart</mat-icon>\r\n <span style=\"margin-left: 10px\">Grafici</span>\r\n </button>\r\n <button \r\n *ngIf=\"defaultListActions.add\"\r\n class=\"btn btn-primary\" \r\n mat-raised-button \r\n color=\"primary\" \r\n type=\"button\"\r\n (click)=\"openAddPopup()\">\r\n <mat-icon>add</mat-icon>\r\n <span style=\"margin-left: 10px\">Aggiungi</span>\r\n </button> \r\n </mat-card-actions>\r\n </mat-card-header>\r\n\r\n \r\n <mat-card-content>\r\n <mat-accordion [hideToggle]=\"test\" [multi]=\"true\" class=\"df-list-view-accordion\">\r\n <mat-expansion-panel *ngFor=\"let panel of panels; index as i\" \r\n [expanded]=\"panel.isOpen\"\r\n [disabled]=\"1\" \r\n [class]=\"panel.highlighted ? 'dm_panel_highlighted' : '0'\"\r\n >\r\n <mat-expansion-panel-header\r\n (click)=\"togglePanel(panel, panel.record)\">\r\n <mat-panel-title>\r\n {{ form.Name }} v.{{ panel.record.Version }} - {{ panel.record.AnswerDate | date : \"EEEE, d MMMM y, H:mm:ss\" }}\r\n </mat-panel-title>\r\n <!--#region BOTTONI PER LE AZIONI -->\r\n <mat-panel-description>\r\n <button *ngFor=\"let button of buttons\" \r\n mat-icon-button \r\n class=\"record-icon {{button.extraClass}}\" \r\n [matTooltip]=\"button.text\"\r\n [hidden]=\"button.icon == 'file_copy' && (panels.length == 0 || panel.record.Version != panels[0].record.Version)\"\r\n (click)=\"button.fn(panel,i,$event)\">\r\n <mat-icon>{{button.icon}}</mat-icon>\r\n </button>\r\n <button *ngFor=\"let button of externalButtons\" \r\n mat-icon-button \r\n class=\"record-icon {{button.extraClass}}\"\r\n [matTooltip]=\"button.text\"\r\n (click)=\"externalCallback($event,button.fn,panel.record)\">\r\n <mat-icon>{{button.icon}}</mat-icon>\r\n </button> \r\n <span class=\"example-spacer\"></span>\r\n \r\n </mat-panel-description>\r\n <!--#endregion BOTTONI PER LE AZIONI -->\r\n </mat-expansion-panel-header>\r\n\r\n <!-- #region CONTENUTO -->\r\n <ng-container *ngIf=\"panel.pageState != null\">\r\n <lib-single-record\r\n [onlyView]=\"onlyView\"\r\n [record] = \"panel.record\" \r\n [endPointConfiguration] = \"endPointConfiguration\"\r\n [form]=\"form\"\r\n [userID]=\"userID\"\r\n [outCompileConfigurations]=\"outCompileConfigurations\"\r\n [pageState]=\"panel.pageState\"\r\n (saveRecordEvent)=\"saveOrExitForm($event)\"\r\n (afterSaveRecordEvent)=\"onAfterSaveRecord($event)\"\r\n >\r\n\r\n </lib-single-record>\r\n </ng-container>\r\n <!--#endregion CONTENUTO -->\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n\r\n\r\n </mat-card-content>\r\n <mat-card-footer>\r\n </mat-card-footer>\r\n</mat-card>\r\n\r\n<!-- DIALOG RECIPIENTS EMAIL PER FIRMA -->\r\n<ng-template #openAddDialog>\r\n <mat-card class=\"card-default overlay-card card-inmodal-true\">\r\n <mat-card-content>\r\n\r\n <add-form-record\r\n class=\"dynamic-module-compile\"\r\n [formID]=\"formID\"\r\n [onlyView]=\"false\"\r\n [record]=\"selectedRecord\"\r\n\r\n [endPointConfiguration]=\"endPointConfiguration\"\r\n [userID]=\"userID\"\r\n\r\n [configurations]=\"compileConfigurations\"\r\n [additionalParams]=\"compileConfigurations.additionalParams\"\r\n\r\n (saveRecordEvent)=\"onAddSaveRecord($event)\"\r\n (afterSaveRecordEvent)=\"onAddAfterSaveRecord($event)\"\r\n >\r\n </add-form-record>\r\n\r\n </mat-card-content>\r\n </mat-card>\r\n</ng-template>\r\n\r\n<!-- DIALOG RECIPIENTS EMAIL PER FIRMA -->\r\n<ng-template #openGraphDialog>\r\n <mat-card class=\"card-default overlay-card card-inmodal-true graphCard\">\r\n \r\n <mat-card-header class=\"align-items-center justify-content-between\">\r\n <mat-card-title>\r\n <div class=\"row eqp-dynamic-module-title graph-header\">\r\n <div class=\"col-md-12\">\r\n <span>Grafico {{ form.Name }} </span>\r\n </div>\r\n </div>\r\n </mat-card-title>\r\n <mat-card-actions>\r\n <button \r\n class=\"btn btn-primary mr-2\" \r\n mat-raised-button \r\n color=\"primary\" \r\n type=\"button\"\r\n (click)=\"closeGraphs()\">\r\n <span class=\"material-icons\">\r\n arrow_back\r\n </span>\r\n <span style=\"margin-left: 10px\">Indietro</span>\r\n </button>\r\n </mat-card-actions>\r\n </mat-card-header>\r\n <mat-card-content>\r\n\r\n <graphs\r\n [formID]=\"formID\"\r\n [userID]=\"userID\"\r\n [configurations] = \"outCompileConfigurations\"\r\n [endPointConfiguration] = \"endPointConfiguration\"\r\n >\r\n </graphs>\r\n\r\n </mat-card-content>\r\n </mat-card>\r\n</ng-template>", styles: ["::ng-deep .error-color{color:var(--danger)}::ng-deep .success-color{color:var(--success)}::ng-deep .dynaform-question{font-size:1em;font-weight:lighter}::ng-deep .dynaform-response{font-size:1.2em;font-weight:700}::ng-deep .df-list-view-accordion .mat-expansion-panel-header-description{flex-grow:0!important}::ng-deep .mat-expansion-panel-header[aria-disabled=true]{color:#0000008a}\n"] }]
4084
+ args: [{ selector: "list-view-form-record", template: "<mat-card class=\"list-view-form-record\">\n <mat-card-header *ngIf=\"showTitle || defaultListActions.add\" class=\"align-items-center justify-content-between\">\n <mat-card-title *ngIf=\"showTitle && loadedform\">Modulo {{ form.Name }} </mat-card-title>\n <mat-card-actions *ngIf=\"defaultListActions.add || defaultListActions.graphs\">\n <button \n *ngIf=\"defaultListActions.graphs\"\n class=\"btn btn-primary mr-2\" \n mat-raised-button \n color=\"primary\" \n type=\"button\"\n (click)=\"openGraphs()\">\n <mat-icon>pie_chart</mat-icon>\n <span style=\"margin-left: 10px\">Grafici</span>\n </button>\n <button \n *ngIf=\"defaultListActions.add\"\n class=\"btn btn-primary\" \n mat-raised-button \n color=\"primary\" \n type=\"button\"\n (click)=\"openAddPopup()\">\n <mat-icon>add</mat-icon>\n <span style=\"margin-left: 10px\">Aggiungi</span>\n </button> \n </mat-card-actions>\n </mat-card-header>\n\n \n <mat-card-content>\n <mat-accordion [hideToggle]=\"test\" [multi]=\"true\" class=\"df-list-view-accordion\">\n <mat-expansion-panel *ngFor=\"let panel of panels; index as i\" \n [expanded]=\"panel.isOpen\"\n [disabled]=\"1\" \n [class]=\"panel.highlighted ? 'dm_panel_highlighted' : '0'\"\n >\n <mat-expansion-panel-header\n (click)=\"togglePanel(panel, panel.record)\">\n <mat-panel-title>\n {{ !showTitle ? form.Name : \"\" }} v.{{ panel.record.Version }} - {{ panel.record.AnswerDate | date : \"EEEE, d MMMM y, H:mm:ss\" }}\n </mat-panel-title>\n <!--#region BOTTONI PER LE AZIONI -->\n <mat-panel-description>\n <button *ngFor=\"let button of buttons\" \n mat-icon-button \n class=\"record-icon {{button.extraClass}}\" \n [matTooltip]=\"button.text\"\n [hidden]=\"button.icon == 'file_copy' && (panels.length == 0 || panel.record.Version != panels[0].record.Version)\"\n (click)=\"button.fn(panel,i,$event)\">\n <mat-icon>{{button.icon}}</mat-icon>\n </button>\n <button *ngFor=\"let button of externalButtons\" \n mat-icon-button \n class=\"record-icon {{button.extraClass}}\"\n [matTooltip]=\"button.text\"\n (click)=\"externalCallback($event,button.fn,panel.record)\">\n <mat-icon>{{button.icon}}</mat-icon>\n </button> \n <span class=\"example-spacer\"></span>\n \n </mat-panel-description>\n <!--#endregion BOTTONI PER LE AZIONI -->\n </mat-expansion-panel-header>\n\n <!-- #region CONTENUTO -->\n <ng-container *ngIf=\"panel.pageState != null\">\n <lib-single-record\n [onlyView]=\"onlyView\"\n [record] = \"panel.record\" \n [endPointConfiguration] = \"endPointConfiguration\"\n [form]=\"form\"\n [userID]=\"userID\"\n [outCompileConfigurations]=\"outCompileConfigurations\"\n [pageState]=\"panel.pageState\"\n (saveRecordEvent)=\"saveOrExitForm($event)\"\n (afterSaveRecordEvent)=\"onAfterSaveRecord($event)\"\n >\n\n </lib-single-record>\n </ng-container>\n <!--#endregion CONTENUTO -->\n </mat-expansion-panel>\n </mat-accordion>\n\n\n </mat-card-content>\n <mat-card-footer>\n </mat-card-footer>\n</mat-card>\n\n<!-- DIALOG RECIPIENTS EMAIL PER FIRMA -->\n<ng-template #openAddDialog>\n <mat-card class=\"card-default overlay-card card-inmodal-true\">\n <mat-card-content>\n\n <add-form-record\n class=\"dynamic-module-compile\"\n [formID]=\"formID\"\n [onlyView]=\"false\"\n [record]=\"selectedRecord\"\n\n [endPointConfiguration]=\"endPointConfiguration\"\n [userID]=\"userID\"\n\n [configurations]=\"compileConfigurations\"\n [additionalParams]=\"compileConfigurations.additionalParams\"\n\n (saveRecordEvent)=\"onAddSaveRecord($event)\"\n (afterSaveRecordEvent)=\"onAddAfterSaveRecord($event)\"\n >\n </add-form-record>\n\n </mat-card-content>\n </mat-card>\n</ng-template>\n\n<!-- DIALOG RECIPIENTS EMAIL PER FIRMA -->\n<ng-template #openGraphDialog>\n <mat-card class=\"card-default overlay-card card-inmodal-true graphCard\">\n \n <mat-card-header class=\"align-items-center justify-content-between\">\n <mat-card-title>\n <div class=\"row eqp-dynamic-module-title graph-header\">\n <div class=\"col-md-12\">\n <span>Grafico {{ form.Name }} </span>\n </div>\n </div>\n </mat-card-title>\n <mat-card-actions>\n <button \n class=\"btn btn-primary mr-2\" \n mat-raised-button \n color=\"primary\" \n type=\"button\"\n (click)=\"closeGraphs()\">\n <span class=\"material-icons\">\n arrow_back\n </span>\n <span style=\"margin-left: 10px\">Indietro</span>\n </button>\n </mat-card-actions>\n </mat-card-header>\n <mat-card-content>\n\n <graphs\n [formID]=\"formID\"\n [userID]=\"userID\"\n [configurations] = \"outCompileConfigurations\"\n [endPointConfiguration] = \"endPointConfiguration\"\n >\n </graphs>\n\n </mat-card-content>\n </mat-card>\n</ng-template>", styles: ["::ng-deep .error-color{color:var(--danger)}::ng-deep .success-color{color:var(--success)}::ng-deep .dynaform-question{font-size:1em;font-weight:lighter}::ng-deep .dynaform-response{font-size:1.2em;font-weight:700}::ng-deep .df-list-view-accordion .mat-expansion-panel-header-description{flex-grow:0!important}::ng-deep .mat-expansion-panel-header[aria-disabled=true]{color:#0000008a}\n"] }]
4007
4085
  }], ctorParameters: function () { return [{ type: UtilityHelperService }, { type: i0.ChangeDetectorRef }, { type: i1$2.MatDialog }, { type: i3$3.Router }]; }, propDecorators: { configurations: [{
4008
4086
  type: Input
4009
4087
  }], compileConfigurations: [{