@eqproject/eqp-dynamic-module 2.6.44 → 2.6.46
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/esm2020/lib/components/private/form-records/add-form-record/add-form-record.component.mjs +2 -1
- package/esm2020/lib/components/private/form-records/list-view-form-record/list-view-form-record.component.mjs +2 -2
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +179 -3
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +179 -3
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/lib/components/private/form-records/list-view-form-record/list-view-form-record.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -18,7 +18,6 @@ import { MatIconModule } from '@angular/material/icon';
|
|
|
18
18
|
import * as i1$3 from '@angular/material/dialog';
|
|
19
19
|
import { MatDialogModule, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
|
20
20
|
import * as i3$3 from '@angular/router';
|
|
21
|
-
import * as i4$5 from 'projects/eqp-dynamic-module/src/lib/services/db-date.service';
|
|
22
21
|
import * as i7$1 from '@angular/material/expansion';
|
|
23
22
|
import { MatExpansionModule } from '@angular/material/expansion';
|
|
24
23
|
import * as i2$3 from '@angular/material/tooltip';
|
|
@@ -1706,6 +1705,182 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1706
1705
|
type: Output
|
|
1707
1706
|
}] } });
|
|
1708
1707
|
|
|
1708
|
+
class dbDateService {
|
|
1709
|
+
//#region datetime
|
|
1710
|
+
/**
|
|
1711
|
+
* Parse date to visualize as a string
|
|
1712
|
+
*/
|
|
1713
|
+
parseDate(date) {
|
|
1714
|
+
let newYear = date.getFullYear();
|
|
1715
|
+
let newMonth = date.getMonth() + 1;
|
|
1716
|
+
let newMonthString;
|
|
1717
|
+
if (newMonth < 10) {
|
|
1718
|
+
newMonthString = "0" + newMonth.toString();
|
|
1719
|
+
}
|
|
1720
|
+
else {
|
|
1721
|
+
newMonthString = newMonth.toString();
|
|
1722
|
+
}
|
|
1723
|
+
let newDay = date.getDate();
|
|
1724
|
+
let newDayString;
|
|
1725
|
+
if (newDay < 10) {
|
|
1726
|
+
newDayString = "0" + newDay.toString();
|
|
1727
|
+
}
|
|
1728
|
+
else {
|
|
1729
|
+
newDayString = newDay.toString();
|
|
1730
|
+
}
|
|
1731
|
+
let newHour = date.getHours();
|
|
1732
|
+
let newHourString;
|
|
1733
|
+
if (newHour < 10) {
|
|
1734
|
+
newHourString = "0" + newHour.toString();
|
|
1735
|
+
}
|
|
1736
|
+
else {
|
|
1737
|
+
newHourString = newHour.toString();
|
|
1738
|
+
}
|
|
1739
|
+
let newMinute = date.getMinutes();
|
|
1740
|
+
let newMinuteString;
|
|
1741
|
+
if (newMinute < 10) {
|
|
1742
|
+
newMinuteString = "0" + newMinute.toString();
|
|
1743
|
+
}
|
|
1744
|
+
else {
|
|
1745
|
+
newMinuteString = newMinute.toString();
|
|
1746
|
+
}
|
|
1747
|
+
let dateString = newDayString + "/" + newMonthString + "/" + newYear.toString() + " " + newHourString + ":" + newMinuteString;
|
|
1748
|
+
return dateString;
|
|
1749
|
+
}
|
|
1750
|
+
parseTime(date) {
|
|
1751
|
+
let newHour = date.getHours();
|
|
1752
|
+
let newHourString;
|
|
1753
|
+
if (newHour < 10) {
|
|
1754
|
+
newHourString = "0" + newHour.toString();
|
|
1755
|
+
}
|
|
1756
|
+
else {
|
|
1757
|
+
newHourString = newHour.toString();
|
|
1758
|
+
}
|
|
1759
|
+
let newMinute = date.getMinutes();
|
|
1760
|
+
let newMinuteString;
|
|
1761
|
+
if (newMinute < 10) {
|
|
1762
|
+
newMinuteString = "0" + newMinute.toString();
|
|
1763
|
+
}
|
|
1764
|
+
else {
|
|
1765
|
+
newMinuteString = newMinute.toString();
|
|
1766
|
+
}
|
|
1767
|
+
let timeString = newHourString + ":" + newMinuteString;
|
|
1768
|
+
return timeString;
|
|
1769
|
+
}
|
|
1770
|
+
addZeroesOnData(numero) {
|
|
1771
|
+
let numerostring = "";
|
|
1772
|
+
if (numero < 10) {
|
|
1773
|
+
numerostring = "0" + numero.toString();
|
|
1774
|
+
}
|
|
1775
|
+
else {
|
|
1776
|
+
numerostring = numero.toString();
|
|
1777
|
+
}
|
|
1778
|
+
return numerostring;
|
|
1779
|
+
}
|
|
1780
|
+
parseDatefromDB(dirtyDateMeasurement) {
|
|
1781
|
+
if (this.isDateFromServer(dirtyDateMeasurement)) {
|
|
1782
|
+
let dirtyDate = dirtyDateMeasurement.toString().split("T");
|
|
1783
|
+
let dirtyHour = dirtyDate[1].split(".");
|
|
1784
|
+
let yearMonthDay = dirtyDate[0].split("-");
|
|
1785
|
+
let hourMinuteSecond = dirtyHour[0].split(":");
|
|
1786
|
+
let date = new Date(parseInt(yearMonthDay[0]), parseInt(yearMonthDay[1]) - 1, parseInt(yearMonthDay[2]), parseInt(hourMinuteSecond[0]), parseInt(hourMinuteSecond[1]));
|
|
1787
|
+
let gmtString = date.toString().split(" ")[5].split("T")[1];
|
|
1788
|
+
let hour = "";
|
|
1789
|
+
let minute = "";
|
|
1790
|
+
for (let j = 0; j < gmtString.length; j++) {
|
|
1791
|
+
if (j == 0) {
|
|
1792
|
+
hour += gmtString[j];
|
|
1793
|
+
minute += gmtString[j];
|
|
1794
|
+
}
|
|
1795
|
+
if (j > 0 && j < 3) {
|
|
1796
|
+
hour += gmtString[j];
|
|
1797
|
+
}
|
|
1798
|
+
if (j > 2) {
|
|
1799
|
+
minute += gmtString[j];
|
|
1800
|
+
}
|
|
1801
|
+
}
|
|
1802
|
+
let hourInt = parseInt(hour);
|
|
1803
|
+
let minuteInt = parseInt(minute);
|
|
1804
|
+
let newDate = new Date(parseInt(yearMonthDay[0]), parseInt(yearMonthDay[1]) - 1, parseInt(yearMonthDay[2]), parseInt(hourMinuteSecond[0]) + hourInt, parseInt(hourMinuteSecond[1]) + minuteInt);
|
|
1805
|
+
return newDate;
|
|
1806
|
+
}
|
|
1807
|
+
else if (this.isDateInstance(dirtyDateMeasurement)) {
|
|
1808
|
+
return dirtyDateMeasurement;
|
|
1809
|
+
}
|
|
1810
|
+
else {
|
|
1811
|
+
throw new Error("Not Conversion Date in parseDatefromDB");
|
|
1812
|
+
}
|
|
1813
|
+
}
|
|
1814
|
+
isDateFromServer(date) {
|
|
1815
|
+
const isoDateFormat = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,7})?(Z)?$/;
|
|
1816
|
+
return typeof date === 'string' && isoDateFormat.test(date);
|
|
1817
|
+
}
|
|
1818
|
+
isDateInstance(date) {
|
|
1819
|
+
return date instanceof Date;
|
|
1820
|
+
}
|
|
1821
|
+
parseDatefromDBMilliseconds(dirtyDateMeasurement) {
|
|
1822
|
+
let dirtyDate = dirtyDateMeasurement.toString().split("T");
|
|
1823
|
+
let dirtyHour = dirtyDate[1].split(".");
|
|
1824
|
+
let yearMonthDay = dirtyDate[0].split("-");
|
|
1825
|
+
let hourMinuteSecond = dirtyHour[0].split(":");
|
|
1826
|
+
let date = new Date(parseInt(yearMonthDay[0]), parseInt(yearMonthDay[1]) - 1, parseInt(yearMonthDay[2]), parseInt(hourMinuteSecond[0]), parseInt(hourMinuteSecond[1]));
|
|
1827
|
+
let gmtString = date.toString().split(" ")[5].split("T")[1];
|
|
1828
|
+
let hour = "";
|
|
1829
|
+
let minute = "";
|
|
1830
|
+
for (let j = 0; j < gmtString.length; j++) {
|
|
1831
|
+
if (j == 0) {
|
|
1832
|
+
hour += gmtString[j];
|
|
1833
|
+
minute += gmtString[j];
|
|
1834
|
+
}
|
|
1835
|
+
if (j > 0 && j < 3) {
|
|
1836
|
+
hour += gmtString[j];
|
|
1837
|
+
}
|
|
1838
|
+
if (j > 2) {
|
|
1839
|
+
minute += gmtString[j];
|
|
1840
|
+
}
|
|
1841
|
+
}
|
|
1842
|
+
let hourInt = parseInt(hour);
|
|
1843
|
+
let minuteInt = parseInt(minute);
|
|
1844
|
+
let newDate = new Date(parseInt(yearMonthDay[0]), parseInt(yearMonthDay[1]) - 1, parseInt(yearMonthDay[2]), parseInt(hourMinuteSecond[0]) + hourInt, parseInt(hourMinuteSecond[1]) + minuteInt, parseInt(hourMinuteSecond[2]), parseInt(dirtyHour[1]));
|
|
1845
|
+
return newDate;
|
|
1846
|
+
}
|
|
1847
|
+
prepareHourforDB(dirtyHour) {
|
|
1848
|
+
let hourMinutes = dirtyHour.toString().split(":");
|
|
1849
|
+
let date = new Date();
|
|
1850
|
+
date.setHours(parseInt(hourMinutes[0]));
|
|
1851
|
+
date.setMinutes(parseInt(hourMinutes[1]));
|
|
1852
|
+
date.setSeconds(0);
|
|
1853
|
+
date.setMilliseconds(0);
|
|
1854
|
+
return date;
|
|
1855
|
+
}
|
|
1856
|
+
parseForHour(allMinutes) {
|
|
1857
|
+
let dirtyHours = allMinutes / 60;
|
|
1858
|
+
let hours = Math.floor(dirtyHours);
|
|
1859
|
+
let dirtyMinutes = dirtyHours - hours;
|
|
1860
|
+
let minutes = this.roundDecimals(dirtyMinutes * 0.6, 2);
|
|
1861
|
+
let finalHours = hours + minutes;
|
|
1862
|
+
return finalHours;
|
|
1863
|
+
}
|
|
1864
|
+
//#endregion datetime
|
|
1865
|
+
/**
|
|
1866
|
+
* Rounds a number to the our preferred number of decimal places.
|
|
1867
|
+
* @param number the number we want to round
|
|
1868
|
+
* @param decimals how many decimal places we want the rounded number to have
|
|
1869
|
+
* @returns the rounded number
|
|
1870
|
+
*/
|
|
1871
|
+
roundDecimals(number, decimals) {
|
|
1872
|
+
return Number(number.toFixed(decimals));
|
|
1873
|
+
}
|
|
1874
|
+
}
|
|
1875
|
+
dbDateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: dbDateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1876
|
+
dbDateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: dbDateService, providedIn: "root" });
|
|
1877
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: dbDateService, decorators: [{
|
|
1878
|
+
type: Injectable,
|
|
1879
|
+
args: [{
|
|
1880
|
+
providedIn: "root",
|
|
1881
|
+
}]
|
|
1882
|
+
}] });
|
|
1883
|
+
|
|
1709
1884
|
var LogicOperatorNumeric;
|
|
1710
1885
|
(function (LogicOperatorNumeric) {
|
|
1711
1886
|
LogicOperatorNumeric[LogicOperatorNumeric["="] = 1] = "=";
|
|
@@ -4719,6 +4894,7 @@ class AddFormRecordComponent {
|
|
|
4719
4894
|
];
|
|
4720
4895
|
GlobalService.debugLog('onSaveRecord - dynamicModuleParams', dynamicModuleParams);
|
|
4721
4896
|
this.utilityService.RunEndPointCall(this.endPointConfiguration.Records.SaveEndPoint, dynamicModuleParams, (res) => {
|
|
4897
|
+
event.ID = res.toString();
|
|
4722
4898
|
this.checkTriggers(event);
|
|
4723
4899
|
this.afterSaveRecordEvent.emit(event);
|
|
4724
4900
|
this.isSaving = false;
|
|
@@ -6347,12 +6523,12 @@ class ListViewFormRecordComponent {
|
|
|
6347
6523
|
this.fireTrigger.emit(ev);
|
|
6348
6524
|
}
|
|
6349
6525
|
}
|
|
6350
|
-
ListViewFormRecordComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ListViewFormRecordComponent, deps: [{ token: UtilityHelperService }, { token: i0.ChangeDetectorRef }, { token: i1$3.MatDialog }, { token: i3$3.Router }, { token:
|
|
6526
|
+
ListViewFormRecordComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ListViewFormRecordComponent, deps: [{ token: UtilityHelperService }, { token: i0.ChangeDetectorRef }, { token: i1$3.MatDialog }, { token: i3$3.Router }, { token: dbDateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
6351
6527
|
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", orgaID: "orgaID", form: "form", defaultListViewFunction: "defaultListViewFunction", externalButtons: "externalButtons", onlyView: "onlyView", records: "records", highlightFilter: "highlightFilter", QueryEditorComponent: "QueryEditorComponent" }, outputs: { onAddViewEditRecord: "onAddViewEditRecord", onDeleteRecord: "onDeleteRecord", saveRecordEvent: "saveRecordEvent", afterSaveRecordEvent: "afterSaveRecordEvent", dragStarted: "dragStarted", dragReleased: "dragReleased", out: "out", fireTrigger: "fireTrigger" }, 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 && loadedform\">Modulo {{ 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 #doneList=\"cdkDropList\" cdkDropList [cdkDropListConnectedTo]=\"[todoList]\" [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 cdkDrag (cdkDragStarted)=\"onDragStarted([panel.record,form])\" (cdkDragReleased)=\"onDragReleased()\">\r\n <mat-icon class=\"drag-icon\">drag_indicator</mat-icon> {{ !showTitle ? form.Name : \"\" }} v.{{ panel.record.Version }} - {{ panel.record.AnswerDate | date : \"EEEE, d MMMM y, H:mm:ss\" }} {{ printAdditionalInfo(panel.record) }}\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\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 [QueryEditorComponent]=\"QueryEditorComponent\"\r\n [outCompileConfigurations]=\"outCompileConfigurations\"\r\n [pageState]=\"panel.pageState\"\r\n (out)=\"onExternalComponentOut($event)\"\r\n (saveRecordEvent)=\"saveOrExitForm($event)\"\r\n (afterSaveRecordEvent)=\"onAfterSaveRecord($event)\"\r\n (fireTrigger)=\"onFireTrigger($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<!--#region DIALOG AGGIUNTA RISPOSTA -->\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 [orgaID]=\"orgaID\"\r\n [onlyView]=\"false\"\r\n [record]=\"selectedRecord\"\r\n\r\n [QueryEditorComponent]=\"QueryEditorComponent\"\r\n [endPointConfiguration]=\"endPointConfiguration\"\r\n [userID]=\"userID\"\r\n\r\n [configurations]=\"compileConfigurations\"\r\n\r\n (out)=\"onExternalComponentOut($event)\"\r\n (saveRecordEvent)=\"onAddSaveRecord($event)\"\r\n (afterSaveRecordEvent)=\"onAddAfterSaveRecord($event)\"\r\n (fireTrigger)=\"onFireTrigger($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<!--#endregion DIALOG AGGIUNTA RISPOSTA -->\r\n\r\n<!--#region DIALOG VISUALIZZAZIONE GRAFICI -->\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>\r\n<!--#endregion DIALOG VISUALIZZAZIONE GRAFICI -->\r\n", styles: ["::ng-deep .error-color{color:var(--danger)}::ng-deep .success-color{color:var(--success)}::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}.drag-icon{cursor:move;margin-right:10px}\n"], dependencies: [{ kind: "component", type: i2.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.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i6.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i6.MatCardActions, selector: "mat-card-actions", inputs: ["align"], exportAs: ["matCardActions"] }, { kind: "directive", type: i6.MatCardContent, selector: "mat-card-content" }, { kind: "directive", type: i6.MatCardFooter, selector: "mat-card-footer" }, { kind: "component", type: i6.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i6.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "directive", type: i7$1.MatAccordion, selector: "mat-accordion", inputs: ["multi", "hideToggle", "displayMode", "togglePosition"], exportAs: ["matAccordion"] }, { kind: "component", type: i7$1.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i7$1.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["tabIndex", "expandedHeight", "collapsedHeight"] }, { kind: "directive", type: i7$1.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "directive", type: i7$1.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: i2$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4$3.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i4$3.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "component", type: AddFormRecordComponent, selector: "add-form-record", inputs: ["configurations", "endPointConfiguration", "userID", "orgaID", "formID", "form", "record", "onlyView", "isDuplicate", "inConfig", "showAllFields", "QueryEditorComponent"], outputs: ["saveRecordEvent", "afterSaveRecordEvent", "out", "fireTrigger"] }, { kind: "component", type: SingleRecordComponent, selector: "lib-single-record", inputs: ["endPointConfiguration", "record", "pageState", "userID", "form", "showBackButton", "outCompileConfigurations", "onlyView", "QueryEditorComponent"], outputs: ["saveRecordEvent", "afterSaveRecordEvent", "out", "fireTrigger"] }, { kind: "component", type: GraphsComponent, selector: "graphs", inputs: ["configurations", "endPointConfiguration", "userID", "formID", "form"] }, { kind: "pipe", type: i2$1.DatePipe, name: "date" }] });
|
|
6352
6528
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ListViewFormRecordComponent, decorators: [{
|
|
6353
6529
|
type: Component,
|
|
6354
6530
|
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 && loadedform\">Modulo {{ 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 #doneList=\"cdkDropList\" cdkDropList [cdkDropListConnectedTo]=\"[todoList]\" [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 cdkDrag (cdkDragStarted)=\"onDragStarted([panel.record,form])\" (cdkDragReleased)=\"onDragReleased()\">\r\n <mat-icon class=\"drag-icon\">drag_indicator</mat-icon> {{ !showTitle ? form.Name : \"\" }} v.{{ panel.record.Version }} - {{ panel.record.AnswerDate | date : \"EEEE, d MMMM y, H:mm:ss\" }} {{ printAdditionalInfo(panel.record) }}\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\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 [QueryEditorComponent]=\"QueryEditorComponent\"\r\n [outCompileConfigurations]=\"outCompileConfigurations\"\r\n [pageState]=\"panel.pageState\"\r\n (out)=\"onExternalComponentOut($event)\"\r\n (saveRecordEvent)=\"saveOrExitForm($event)\"\r\n (afterSaveRecordEvent)=\"onAfterSaveRecord($event)\"\r\n (fireTrigger)=\"onFireTrigger($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<!--#region DIALOG AGGIUNTA RISPOSTA -->\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 [orgaID]=\"orgaID\"\r\n [onlyView]=\"false\"\r\n [record]=\"selectedRecord\"\r\n\r\n [QueryEditorComponent]=\"QueryEditorComponent\"\r\n [endPointConfiguration]=\"endPointConfiguration\"\r\n [userID]=\"userID\"\r\n\r\n [configurations]=\"compileConfigurations\"\r\n\r\n (out)=\"onExternalComponentOut($event)\"\r\n (saveRecordEvent)=\"onAddSaveRecord($event)\"\r\n (afterSaveRecordEvent)=\"onAddAfterSaveRecord($event)\"\r\n (fireTrigger)=\"onFireTrigger($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<!--#endregion DIALOG AGGIUNTA RISPOSTA -->\r\n\r\n<!--#region DIALOG VISUALIZZAZIONE GRAFICI -->\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>\r\n<!--#endregion DIALOG VISUALIZZAZIONE GRAFICI -->\r\n", styles: ["::ng-deep .error-color{color:var(--danger)}::ng-deep .success-color{color:var(--success)}::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}.drag-icon{cursor:move;margin-right:10px}\n"] }]
|
|
6355
|
-
}], ctorParameters: function () { return [{ type: UtilityHelperService }, { type: i0.ChangeDetectorRef }, { type: i1$3.MatDialog }, { type: i3$3.Router }, { type:
|
|
6531
|
+
}], ctorParameters: function () { return [{ type: UtilityHelperService }, { type: i0.ChangeDetectorRef }, { type: i1$3.MatDialog }, { type: i3$3.Router }, { type: dbDateService }]; }, propDecorators: { configurations: [{
|
|
6356
6532
|
type: Input
|
|
6357
6533
|
}], compileConfigurations: [{
|
|
6358
6534
|
type: Input
|