cilog-lib 1.13.15 → 1.13.17
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/fesm2022/cilog-lib.mjs +153 -49
- package/fesm2022/cilog-lib.mjs.map +1 -1
- package/package.json +1 -1
- package/types/cilog-lib.d.ts +39 -4
package/fesm2022/cilog-lib.mjs
CHANGED
|
@@ -1426,6 +1426,86 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
1426
1426
|
args: [{ selector: 'cilog-grid-time-mask-editor', imports: [], template: "<input #inputElement\r\n type=\"text\"\r\n placeholder=\"HH:MM\"\r\n [value]=\"value()\"\r\n (input)=\"onInput($event)\"\r\n (blur)=\"onBlur()\"\r\n style=\"width: 100%; height: 100%; border: none; padding: 0 8px; box-sizing: border-box;\" />\r\n" }]
|
|
1427
1427
|
}], propDecorators: { inputElement: [{ type: i0.ViewChild, args: ['inputElement', { isSignal: true }] }] } });
|
|
1428
1428
|
|
|
1429
|
+
class GridSetFilterComponent {
|
|
1430
|
+
params;
|
|
1431
|
+
options = [];
|
|
1432
|
+
selectedValues = [];
|
|
1433
|
+
optionLabel = 'label';
|
|
1434
|
+
agInit(params) {
|
|
1435
|
+
this.params = params;
|
|
1436
|
+
// Récupération de la clé passée dans filterParams (ex: 'name', 'label', etc.)
|
|
1437
|
+
if (params.optionLabel) {
|
|
1438
|
+
this.optionLabel = params.optionLabel;
|
|
1439
|
+
}
|
|
1440
|
+
this.extractUniqueObjects();
|
|
1441
|
+
}
|
|
1442
|
+
refresh(params) {
|
|
1443
|
+
this.params = params;
|
|
1444
|
+
if (params.optionLabel) {
|
|
1445
|
+
this.optionLabel = params.optionLabel;
|
|
1446
|
+
}
|
|
1447
|
+
this.extractUniqueObjects();
|
|
1448
|
+
return true;
|
|
1449
|
+
}
|
|
1450
|
+
// Extrait les objets uniques présentés dans la cellule
|
|
1451
|
+
extractUniqueObjects() {
|
|
1452
|
+
const field = this.params.colDef.field;
|
|
1453
|
+
if (!field)
|
|
1454
|
+
return;
|
|
1455
|
+
const mapUniqueObjects = new Map();
|
|
1456
|
+
this.params.api.forEachNode((node) => {
|
|
1457
|
+
const objValue = this.params.getValue(node);
|
|
1458
|
+
if (objValue && typeof objValue === 'object') {
|
|
1459
|
+
const key = objValue[this.optionLabel];
|
|
1460
|
+
if (key != null && !mapUniqueObjects.has(String(key))) {
|
|
1461
|
+
mapUniqueObjects.set(String(key), objValue);
|
|
1462
|
+
}
|
|
1463
|
+
}
|
|
1464
|
+
});
|
|
1465
|
+
// Tri des objets selon la clé d'affichage
|
|
1466
|
+
this.options = Array.from(mapUniqueObjects.values()).sort((a, b) => {
|
|
1467
|
+
const labelA = String(a[this.optionLabel] || '');
|
|
1468
|
+
const labelB = String(b[this.optionLabel] || '');
|
|
1469
|
+
return labelA.localeCompare(labelB);
|
|
1470
|
+
});
|
|
1471
|
+
}
|
|
1472
|
+
isFilterActive() {
|
|
1473
|
+
return this.selectedValues && this.selectedValues.length > 0;
|
|
1474
|
+
}
|
|
1475
|
+
// Comparaison basée sur la propriété optionLabel des objets
|
|
1476
|
+
doesFilterPass(params) {
|
|
1477
|
+
if (!this.isFilterActive()) {
|
|
1478
|
+
return true;
|
|
1479
|
+
}
|
|
1480
|
+
const cellObject = this.params.getValue(params.node);
|
|
1481
|
+
if (!cellObject)
|
|
1482
|
+
return false;
|
|
1483
|
+
const cellLabel = cellObject[this.optionLabel];
|
|
1484
|
+
return this.selectedValues.some((selectedObj) => selectedObj[this.optionLabel] === cellLabel);
|
|
1485
|
+
}
|
|
1486
|
+
getModel() {
|
|
1487
|
+
if (!this.isFilterActive()) {
|
|
1488
|
+
return null;
|
|
1489
|
+
}
|
|
1490
|
+
return { value: this.selectedValues };
|
|
1491
|
+
}
|
|
1492
|
+
setModel(model) {
|
|
1493
|
+
this.selectedValues = model ? model.value : [];
|
|
1494
|
+
}
|
|
1495
|
+
onSelectionChange() {
|
|
1496
|
+
this.params.filterChangedCallback();
|
|
1497
|
+
}
|
|
1498
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: GridSetFilterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1499
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: GridSetFilterComponent, isStandalone: true, selector: "cilog-grid-set-filter", ngImport: i0, template: "<div style=\"padding: 10px; min-width: 220px;\">\r\n <p-multiselect [options]=\"options\"\r\n [(ngModel)]=\"selectedValues\"\r\n [optionLabel]=\"optionLabel\"\r\n (onChange)=\"onSelectionChange()\"\r\n placeholder=\"S\u00E9lectionner...\"\r\n selectedItemsLabel=\"{0} \u00E9l\u00E9ments s\u00E9lectionn\u00E9s\"\r\n [maxSelectedLabels]=\"1\"\r\n [virtualScroll]=\"true\"\r\n [virtualScrollItemSize]=\"30\"\r\n [style]=\"{ width: '100%' }\"\r\n [panelStyle]=\"{ minWidth: '220px' }\"\r\n [appendTo]=\"'body'\">\r\n </p-multiselect>\r\n</div>\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: MultiSelectModule }, { kind: "component", type: i10.MultiSelect, selector: "p-multiSelect, p-multiselect, p-multi-select", inputs: ["id", "ariaLabel", "styleClass", "panelStyle", "panelStyleClass", "inputId", "readonly", "group", "filter", "filterPlaceHolder", "filterLocale", "overlayVisible", "tabindex", "dataKey", "ariaLabelledBy", "displaySelectedLabel", "maxSelectedLabels", "selectionLimit", "selectedItemsLabel", "showToggleAll", "emptyFilterMessage", "emptyMessage", "resetFilterOnHide", "dropdownIcon", "chipIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "showHeader", "filterBy", "scrollHeight", "lazy", "virtualScroll", "loading", "virtualScrollItemSize", "loadingIcon", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "display", "autocomplete", "showClear", "autofocus", "placeholder", "options", "filterValue", "selectAll", "focusOnHover", "filterFields", "selectOnFocus", "autoOptionFocus", "highlightOnSelect", "size", "variant", "fluid", "appendTo", "motionOptions"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onClear", "onPanelShow", "onPanelHide", "onLazyLoad", "onRemove", "onSelectAllChange"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
|
|
1500
|
+
}
|
|
1501
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: GridSetFilterComponent, decorators: [{
|
|
1502
|
+
type: Component,
|
|
1503
|
+
args: [{ selector: 'cilog-grid-set-filter', imports: [
|
|
1504
|
+
MultiSelectModule,
|
|
1505
|
+
FormsModule
|
|
1506
|
+
], template: "<div style=\"padding: 10px; min-width: 220px;\">\r\n <p-multiselect [options]=\"options\"\r\n [(ngModel)]=\"selectedValues\"\r\n [optionLabel]=\"optionLabel\"\r\n (onChange)=\"onSelectionChange()\"\r\n placeholder=\"S\u00E9lectionner...\"\r\n selectedItemsLabel=\"{0} \u00E9l\u00E9ments s\u00E9lectionn\u00E9s\"\r\n [maxSelectedLabels]=\"1\"\r\n [virtualScroll]=\"true\"\r\n [virtualScrollItemSize]=\"30\"\r\n [style]=\"{ width: '100%' }\"\r\n [panelStyle]=\"{ minWidth: '220px' }\"\r\n [appendTo]=\"'body'\">\r\n </p-multiselect>\r\n</div>\r\n" }]
|
|
1507
|
+
}] });
|
|
1508
|
+
|
|
1429
1509
|
const myTheme = themeQuartz
|
|
1430
1510
|
.withParams({
|
|
1431
1511
|
backgroundColor: '#ffffff',
|
|
@@ -1445,6 +1525,7 @@ class CilogGridComponent {
|
|
|
1445
1525
|
gridApi;
|
|
1446
1526
|
// Outputs
|
|
1447
1527
|
onRowClick = output();
|
|
1528
|
+
onCellClick = output();
|
|
1448
1529
|
onDelete = output();
|
|
1449
1530
|
onEdit = output();
|
|
1450
1531
|
// Services
|
|
@@ -1487,6 +1568,7 @@ class CilogGridComponent {
|
|
|
1487
1568
|
case ColType.Button:
|
|
1488
1569
|
case ColType.File:
|
|
1489
1570
|
case ColType.Image:
|
|
1571
|
+
case ColType.Dropdown:
|
|
1490
1572
|
return false;
|
|
1491
1573
|
default:
|
|
1492
1574
|
return true;
|
|
@@ -1495,10 +1577,12 @@ class CilogGridComponent {
|
|
|
1495
1577
|
initialWidth: col.width,
|
|
1496
1578
|
wrapHeaderText: this.options().headersAffichageEntier ? true : false,
|
|
1497
1579
|
autoHeaderHeight: this.options().headersAffichageEntier ? true : false,
|
|
1498
|
-
sortable: this.options().sortable ? true : false,
|
|
1580
|
+
sortable: this.options().sortable && !col.disableSort ? true : false,
|
|
1499
1581
|
filter: !col.disableFilter ? this.getTypeFiltre(col) : null,
|
|
1582
|
+
filterParams: this.getFilterParams(col),
|
|
1500
1583
|
suppressSizeToFit: col.width != null ? true : false,
|
|
1501
1584
|
headerTooltip: col.tooltipHeader ? col.libelle : null,
|
|
1585
|
+
type: col.type == ColType.Number || col.type == ColType.Date ? 'rightAligned' : null,
|
|
1502
1586
|
headerClass: (params) => {
|
|
1503
1587
|
if (col.backgroundColor != null) {
|
|
1504
1588
|
setTimeout(() => {
|
|
@@ -1511,7 +1595,6 @@ class CilogGridComponent {
|
|
|
1511
1595
|
}
|
|
1512
1596
|
return '';
|
|
1513
1597
|
},
|
|
1514
|
-
type: col.type == ColType.Number || col.type == ColType.Date ? 'rightAligned' : null,
|
|
1515
1598
|
cellEditorSelector: (params) => {
|
|
1516
1599
|
if (!params.data)
|
|
1517
1600
|
return undefined;
|
|
@@ -1575,67 +1658,66 @@ class CilogGridComponent {
|
|
|
1575
1658
|
return params.data[params.colDef.field].value;
|
|
1576
1659
|
},
|
|
1577
1660
|
valueFormatter: (params) => {
|
|
1661
|
+
let value = params.data[params.colDef.field].value;
|
|
1662
|
+
if (value == null) {
|
|
1663
|
+
return '';
|
|
1664
|
+
}
|
|
1578
1665
|
let typeSaisie = this.getTypeCellule(params.data, col);
|
|
1579
1666
|
switch (typeSaisie) {
|
|
1667
|
+
case ColType.Dropdown:
|
|
1668
|
+
let optionLabel = col.options['optionLabel'];
|
|
1669
|
+
return value[optionLabel];
|
|
1580
1670
|
case ColType.Number:
|
|
1581
|
-
const rawValue = params.data[params.colDef.field]?.value;
|
|
1582
|
-
if (rawValue == null) {
|
|
1583
|
-
return '';
|
|
1584
|
-
}
|
|
1585
1671
|
const suffix = col.options?.['suffix'];
|
|
1586
1672
|
let formattedValue = '';
|
|
1587
1673
|
if (col.options?.modeInteger) {
|
|
1588
|
-
formattedValue =
|
|
1674
|
+
formattedValue = value;
|
|
1589
1675
|
}
|
|
1590
1676
|
else {
|
|
1591
1677
|
let formatFr = new Intl.NumberFormat('fr-FR', {
|
|
1592
1678
|
minimumFractionDigits: col.options?.minDecimales != null ? col.options?.minDecimales : 2,
|
|
1593
1679
|
maximumFractionDigits: col.options?.minDecimales != null ? col.options?.minDecimales : 2
|
|
1594
1680
|
});
|
|
1595
|
-
formattedValue = formatFr.format(
|
|
1681
|
+
formattedValue = formatFr.format(value);
|
|
1596
1682
|
}
|
|
1597
1683
|
return suffix ? `${formattedValue} ${suffix}` : formattedValue;
|
|
1598
1684
|
case ColType.Date:
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
default:
|
|
1629
|
-
return new Intl.DateTimeFormat('fr-FR').format(val);
|
|
1630
|
-
}
|
|
1631
|
-
}
|
|
1632
|
-
else {
|
|
1633
|
-
return new Intl.DateTimeFormat('fr-FR').format(val);
|
|
1685
|
+
if (col.options != null) {
|
|
1686
|
+
switch (col.options['mode']) {
|
|
1687
|
+
case 'year':
|
|
1688
|
+
return value.getFullYear().toString();
|
|
1689
|
+
case 'month':
|
|
1690
|
+
const optionMoisAnnee = {
|
|
1691
|
+
month: '2-digit',
|
|
1692
|
+
year: 'numeric'
|
|
1693
|
+
};
|
|
1694
|
+
return new Intl.DateTimeFormat('fr-FR', optionMoisAnnee).format(value);
|
|
1695
|
+
case 'hour':
|
|
1696
|
+
const optionHeureMinute = {
|
|
1697
|
+
hour: '2-digit',
|
|
1698
|
+
minute: '2-digit',
|
|
1699
|
+
hour12: false
|
|
1700
|
+
};
|
|
1701
|
+
return new Intl.DateTimeFormat('fr-FR', optionHeureMinute).format(value);
|
|
1702
|
+
case 'datehour':
|
|
1703
|
+
const optionDateHour = {
|
|
1704
|
+
year: 'numeric',
|
|
1705
|
+
month: '2-digit',
|
|
1706
|
+
day: '2-digit',
|
|
1707
|
+
hour: '2-digit',
|
|
1708
|
+
minute: '2-digit',
|
|
1709
|
+
hour12: false
|
|
1710
|
+
};
|
|
1711
|
+
return new Intl.DateTimeFormat('fr-FR', optionDateHour).format(value);
|
|
1712
|
+
default:
|
|
1713
|
+
return new Intl.DateTimeFormat('fr-FR').format(value);
|
|
1634
1714
|
}
|
|
1635
1715
|
}
|
|
1636
|
-
|
|
1716
|
+
else {
|
|
1717
|
+
return new Intl.DateTimeFormat('fr-FR').format(value);
|
|
1718
|
+
}
|
|
1637
1719
|
default:
|
|
1638
|
-
return
|
|
1720
|
+
return value;
|
|
1639
1721
|
}
|
|
1640
1722
|
},
|
|
1641
1723
|
cellStyle: (params) => {
|
|
@@ -1691,6 +1773,8 @@ class CilogGridComponent {
|
|
|
1691
1773
|
};
|
|
1692
1774
|
getTypeFiltre(col) {
|
|
1693
1775
|
switch (col.type) {
|
|
1776
|
+
case ColType.Dropdown:
|
|
1777
|
+
return GridSetFilterComponent;
|
|
1694
1778
|
case ColType.Date:
|
|
1695
1779
|
return 'agDateColumnFilter';
|
|
1696
1780
|
case ColType.Number:
|
|
@@ -1699,6 +1783,16 @@ class CilogGridComponent {
|
|
|
1699
1783
|
return 'agTextColumnFilter';
|
|
1700
1784
|
}
|
|
1701
1785
|
}
|
|
1786
|
+
getFilterParams(col) {
|
|
1787
|
+
switch (col.type) {
|
|
1788
|
+
case ColType.Dropdown:
|
|
1789
|
+
return {
|
|
1790
|
+
optionLabel: col.options['optionLabel']
|
|
1791
|
+
};
|
|
1792
|
+
default:
|
|
1793
|
+
return null;
|
|
1794
|
+
}
|
|
1795
|
+
}
|
|
1702
1796
|
totalRowData = computed(() => {
|
|
1703
1797
|
let rowsTotal = [{}];
|
|
1704
1798
|
this.columns().forEach(col => {
|
|
@@ -1752,7 +1846,17 @@ class CilogGridComponent {
|
|
|
1752
1846
|
}
|
|
1753
1847
|
onRowClickEvent(event) {
|
|
1754
1848
|
if (this.options().rowClick) {
|
|
1755
|
-
|
|
1849
|
+
if (!event.data.disableClick) {
|
|
1850
|
+
this.onRowClick.emit({ row: event.data });
|
|
1851
|
+
}
|
|
1852
|
+
}
|
|
1853
|
+
}
|
|
1854
|
+
onCellClickEvent(event) {
|
|
1855
|
+
if (this.options().cellClick) {
|
|
1856
|
+
let cell = event.data[event.colDef.field];
|
|
1857
|
+
if (!cell.disableClick) {
|
|
1858
|
+
this.onCellClick.emit({ cell: cell });
|
|
1859
|
+
}
|
|
1756
1860
|
}
|
|
1757
1861
|
}
|
|
1758
1862
|
onDeleteEvent(row) {
|
|
@@ -1796,7 +1900,7 @@ class CilogGridComponent {
|
|
|
1796
1900
|
this.closeMenu();
|
|
1797
1901
|
}
|
|
1798
1902
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: CilogGridComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1799
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: CilogGridComponent, isStandalone: true, selector: "cilog-grid", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: true, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: true, transformFunction: null }, values: { classPropertyName: "values", publicName: "values", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { onRowClick: "onRowClick", onDelete: "onDelete", onEdit: "onEdit", columns: "columnsChange", values: "valuesChange" }, ngImport: i0, template: "<div class=\"!relative\"\r\n (window:click)=\"closeMenu()\">\r\n\r\n <!-- EXPORT EXCEL -->\r\n @if (options().exportExcel) {\r\n <button pButton\r\n icon=\"pi pi-file-excel\"\r\n class=\"p-button-success !z-5 !absolute !top-0 !left-0 !w-5 !h-5 !rounded-tr-none !rounded-bl-none\"\r\n pTooltip=\"Exporter le contenu de la grille au format Excel\"\r\n tooltipPosition=\"right\"\r\n (click)=\"exportExcel(options().exportExcelByFiltre, !options().exportExcelNoColors)\">\r\n </button>\r\n }\r\n\r\n <!-- GRILLE -->\r\n <ag-grid-angular style=\"width: 100%;\"\r\n [style.height]=\"options().scrollHeight ? options().scrollHeight : 'auto'\"\r\n [domLayout]=\"options().scrollHeight != null ? 'normal' : 'autoHeight'\"\r\n [theme]=\"theme\"\r\n [rowData]=\"values()\"\r\n [columnDefs]=\"colDefs()\"\r\n (gridReady)=\"onGridReady($event)\"\r\n [defaultColDef]=\"defaultColDef\"\r\n [rowHeight]=\"32\"\r\n [headerHeight]=\"36\"\r\n [localeText]=\"localeText\"\r\n [alwaysShowHorizontalScroll]=\"true\"\r\n [pinnedBottomRowData]=\"options().rowTotal ? totalRowData() : null\"\r\n [getRowStyle]=\"getRowStyle\"\r\n (rowClicked)=\"onRowClickEvent($event)\"\r\n [getRowId]=\"getRowId\"\r\n (cellValueChanged)=\"onCellValueChanged($event)\"\r\n (contextmenu)=\"onGridContextMenu($event)\"\r\n (cellContextMenu)=\"onCellContextMenu($event)\">\r\n </ag-grid-angular>\r\n</div>\r\n\r\n<!-- MENU CONTEXTUEL -->\r\n@if (menuVisible && options().contextMenuItems != null) {\r\n<div class=\"custom-context-menu\"\r\n [ngStyle]=\"{'top.px': menuTop, 'left.px': menuLeft}\"\r\n (click)=\"$event.stopPropagation()\">\r\n <ul>\r\n @for (item of options().contextMenuItems; track item.code) {\r\n <li (click)=\"item.command({ item: item }); closeMenu()\">\r\n {{ item.label }}\r\n </li>\r\n }\r\n </ul>\r\n</div>\r\n}\r\n", styles: [":host ::ng-deep{--ag-cell-horizontal-padding: 5px !important}:host ::ng-deep .ag-grid-scrolling-rows{padding-bottom:15px!important}:host ::ng-deep .no-padding-cell{padding:0!important}:host ::ng-deep .custom-context-menu{position:fixed;background:#fff;border:1px solid #babec5;box-shadow:0 4px 6px #00000026;border-radius:4px;z-index:9999;min-width:150px}:host ::ng-deep .custom-context-menu ul{list-style:none;margin:0;padding:4px 0}:host ::ng-deep .custom-context-menu li{padding:8px 12px;cursor:pointer;font-family:sans-serif;font-size:14px;color:#333}:host ::ng-deep .custom-context-menu li:hover{background-color:#f0f2f5}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: FormsModule }, { kind: "component", type: AgGridAngular, selector: "ag-grid-angular", inputs: ["gridOptions", "modules", "toolbar", "statusBar", "sideBar", "suppressContextMenu", "preventDefaultOnContextMenu", "allowContextMenuWithControlKey", "columnMenu", "suppressMenuHide", "enableBrowserTooltips", "tooltipTrigger", "tooltipShowDelay", "tooltipSwitchShowDelay", "tooltipHideDelay", "tooltipMouseTrack", "tooltipShowMode", "tooltipInteraction", "popupParent", "copyHeadersToClipboard", "copyGroupHeadersToClipboard", "clipboardDelimiter", "suppressCopyRowsToClipboard", "suppressCopySingleCellRanges", "suppressLastEmptyLineOnPaste", "suppressClipboardPaste", "suppressClipboardApi", "suppressCutToClipboard", "columnDefs", "defaultColDef", "defaultColGroupDef", "columnTypes", "dataTypeDefinitions", "calculatedColumns", "maintainColumnOrder", "enableStrictPivotColumnOrder", "suppressFieldDotNotation", "headerHeight", "groupHeaderHeight", "floatingFiltersHeight", "pivotHeaderHeight", "pivotGroupHeaderHeight", "hidePaddedHeaderRows", "allowDragFromColumnsToolPanel", "suppressMovableColumns", "suppressColumnMoveAnimation", "suppressMoveWhenColumnDragging", "suppressDragLeaveHidesColumns", "suppressGroupChangesColumnVisibility", "suppressMakeColumnVisibleAfterUnGroup", "suppressRowGroupHidesColumns", "colResizeDefault", "suppressAutoSize", "autoSizePadding", "skipHeaderOnAutoSize", "autoSizeStrategy", "animateColumnResizing", "components", "editType", "suppressStartEditOnTab", "getFullRowEditValidationErrors", "invalidEditValueMode", "singleClickEdit", "suppressClickEdit", "readOnlyEdit", "stopEditingWhenCellsLoseFocus", "enterNavigatesVertically", "enterNavigatesVerticallyAfterEdit", "enableCellEditingOnBackspace", "undoRedoCellEditing", "undoRedoCellEditingLimit", "defaultCsvExportParams", "suppressCsvExport", "defaultExcelExportParams", "suppressExcelExport", "excelStyles", "findSearchValue", "findOptions", "quickFilterText", "cacheQuickFilter", "includeHiddenColumnsInQuickFilter", "quickFilterParser", "quickFilterMatcher", "applyQuickFilterBeforePivotOrAgg", "excludeChildrenWhenTreeDataFiltering", "enableAdvancedFilter", "alwaysPassFilter", "includeHiddenColumnsInAdvancedFilter", "advancedFilterParent", "advancedFilterBuilderParams", "advancedFilterParams", "suppressAdvancedFilterEval", "suppressSetFilterByDefault", "enableFilterHandlers", "filterHandlers", "enableCharts", "chartThemes", "customChartThemes", "chartThemeOverrides", "chartToolPanelsDef", "chartMenuItems", "loadingCellRenderer", "loadingCellRendererParams", "loadingCellRendererSelector", "localeText", "masterDetail", "keepDetailRows", "keepDetailRowsCount", "detailCellRenderer", "detailCellRendererParams", "detailRowHeight", "detailRowAutoHeight", "context", "alignedGrids", "tabIndex", "rowBuffer", "valueCache", "valueCacheNeverExpires", "enableCellExpressions", "suppressTouch", "suppressFocusAfterRefresh", "suppressBrowserResizeObserver", "suppressPropertyNamesCheck", "suppressChangeDetection", "debug", "loading", "overlayLoadingTemplate", "loadingOverlayComponent", "loadingOverlayComponentParams", "suppressLoadingOverlay", "overlayNoRowsTemplate", "noRowsOverlayComponent", "noRowsOverlayComponentParams", "suppressNoRowsOverlay", "suppressOverlays", "overlayComponent", "overlayComponentParams", "overlayComponentSelector", "activeOverlay", "activeOverlayParams", "processFileInput", "pagination", "paginationPageSize", "paginationPageSizeSelector", "paginationAutoPageSize", "paginateChildRows", "suppressPaginationPanel", "paginationPanels", "pivotMode", "pivotPanelShow", "pivotMaxGeneratedColumns", "pivotDefaultExpanded", "pivotColumnGroupTotals", "pivotRowTotals", "pivotSuppressAutoColumn", "suppressExpandablePivotGroups", "functionsReadOnly", "aggFuncs", "formulaDataSource", "notesDataSource", "noteTrigger", "noteShowDelay", "noteHideDelay", "formulaFuncs", "suppressAggFuncInHeader", "alwaysAggregateAtRootLevel", "aggregateOnlyChangedColumns", "suppressAggFilteredOnly", "removePivotHeaderRowWhenSingleValueColumn", "animateRows", "cellFlashDuration", "cellFadeDuration", "allowShowChangeAfterFilter", "domLayout", "ensureDomOrder", "enableCellSpan", "enableRtl", "suppressColumnVirtualisation", "suppressMaxRenderedRowRestriction", "suppressRowVirtualisation", "rowDragManaged", "refreshAfterGroupEdit", "rowDragInsertDelay", "suppressRowDrag", "suppressMoveWhenRowDragging", "rowDragEntireRow", "rowDragMultiRow", "rowDragText", "dragAndDropImageComponent", "dragAndDropImageComponentParams", "fullWidthCellRenderer", "fullWidthCellRendererParams", "embedFullWidthRows", "groupDisplayType", "groupDefaultExpanded", "autoGroupColumnDef", "groupMaintainOrder", "groupSelectsChildren", "groupLockGroupColumns", "groupAggFiltering", "groupTotalRow", "grandTotalRow", "suppressStickyTotalRow", "groupSuppressBlankHeader", "groupSelectsFiltered", "showOpenedGroup", "groupHideParentOfSingleChild", "groupRemoveSingleChildren", "groupRemoveLowestSingleChildren", "groupHideOpenParents", "groupHideColumnsUntilExpanded", "groupAllowUnbalanced", "rowGroupPanelShow", "groupRowRenderer", "groupRowRendererParams", "treeData", "treeDataChildrenField", "treeDataParentIdField", "rowGroupPanelSuppressSort", "suppressGroupRowsSticky", "groupHierarchyConfig", "pinnedTopRowData", "pinnedBottomRowData", "enableRowPinning", "isRowPinnable", "isRowPinned", "rowModelType", "rowData", "asyncTransactionWaitMillis", "suppressModelUpdateAfterUpdateTransaction", "datasource", "cacheOverflowSize", "infiniteInitialRowCount", "serverSideInitialRowCount", "suppressServerSideFullWidthLoadingRow", "cacheBlockSize", "maxBlocksInCache", "maxConcurrentDatasourceRequests", "blockLoadDebounceMillis", "purgeClosedRowNodes", "serverSideDatasource", "serverSideSortAllLevels", "serverSideEnableClientSideSort", "serverSideOnlyRefreshFilteredGroups", "serverSidePivotResultFieldSeparator", "viewportDatasource", "viewportRowModelPageSize", "viewportRowModelBufferSize", "alwaysShowHorizontalScroll", "alwaysShowVerticalScroll", "debounceVerticalScrollbar", "suppressHorizontalScroll", "suppressScrollOnNewData", "suppressScrollWhenPopupsAreOpen", "suppressAnimationFrame", "suppressMiddleClickScrolls", "suppressPreventDefaultOnMouseWheel", "scrollbarWidth", "rowSelection", "cellSelection", "rowMultiSelectWithClick", "suppressRowDeselection", "suppressRowClickSelection", "suppressCellFocus", "suppressHeaderFocus", "selectionColumnDef", "rowNumbers", "suppressMultiRangeSelection", "enableCellTextSelection", "enableRangeSelection", "enableRangeHandle", "enableFillHandle", "fillHandleDirection", "suppressClearOnFillReduction", "sortingOrder", "accentedSort", "unSortIcon", "suppressMultiSort", "alwaysMultiSort", "multiSortKey", "suppressMaintainUnsortedOrder", "icons", "rowHeight", "rowStyle", "rowClass", "rowClassRules", "suppressRowHoverHighlight", "suppressRowTransform", "suppressContentVisibilityAuto", "columnHoverHighlight", "gridId", "deltaSort", "treeDataDisplayType", "enableGroupEdit", "initialState", "theme", "loadThemeGoogleFonts", "themeCssLayer", "styleNonce", "themeStyleContainer", "getContextMenuItems", "getMainMenuItems", "postProcessPopup", "processUnpinnedColumns", "processCellForClipboard", "processHeaderForClipboard", "processGroupHeaderForClipboard", "processCellFromClipboard", "sendToClipboard", "processDataFromClipboard", "isExternalFilterPresent", "doesExternalFilterPass", "getChartToolbarItems", "createChartContainer", "focusGridInnerElement", "navigateToNextHeader", "tabToNextHeader", "navigateToNextCell", "tabToNextCell", "tabToNextGridContainer", "getLocaleText", "getDocument", "paginationNumberFormatter", "getGroupRowAgg", "isGroupOpenByDefault", "ssrmExpandAllAffectsAllRows", "initialGroupOrderComparator", "processPivotResultColDef", "processPivotResultColGroupDef", "getDataPath", "getChildCount", "getServerSideGroupLevelParams", "isServerSideGroupOpenByDefault", "isApplyServerSideTransaction", "isServerSideGroup", "getServerSideGroupKey", "getBusinessKeyForNode", "getRowId", "resetRowDataOnUpdate", "autoGenerateColumnDefs", "processAutoGeneratedColumnDefs", "processRowPostCreate", "isRowSelectable", "isRowMaster", "fillOperation", "postSortRows", "getRowStyle", "getRowClass", "getRowHeight", "isFullWidthRow", "isRowValidDropPosition"], outputs: ["toolPanelVisibleChanged", "toolPanelSizeChanged", "columnMenuVisibleChanged", "contextMenuVisibleChanged", "cutStart", "cutEnd", "pasteStart", "pasteEnd", "calculatedColumnCreated", "calculatedColumnExpressionChanged", "calculatedColumnRemoved", "calculatedColumnValidationStateChanged", "columnVisible", "columnPinned", "columnResized", "columnMoved", "columnValueChanged", "columnPivotModeChanged", "columnPivotChanged", "columnGroupOpened", "newColumnsLoaded", "gridColumnsChanged", "displayedColumnsChanged", "virtualColumnsChanged", "columnEverythingChanged", "columnsReset", "columnHeaderMouseOver", "columnHeaderMouseLeave", "columnHeaderClicked", "columnHeaderContextMenu", "componentStateChanged", "cellValueChanged", "cellEditRequest", "rowValueChanged", "cellEditingStarted", "cellEditingStopped", "rowEditingStarted", "rowEditingStopped", "bulkEditingStarted", "bulkEditingStopped", "batchEditingStarted", "batchEditingStopped", "undoStarted", "undoEnded", "redoStarted", "redoEnded", "cellSelectionDeleteStart", "cellSelectionDeleteEnd", "rangeDeleteStart", "rangeDeleteEnd", "fillStart", "fillEnd", "filterOpened", "filterChanged", "filterModified", "filterUiChanged", "floatingFilterUiChanged", "advancedFilterBuilderVisibleChanged", "findChanged", "chartCreated", "chartRangeSelectionChanged", "chartOptionsChanged", "chartDestroyed", "cellKeyDown", "gridReady", "firstDataRendered", "gridSizeChanged", "modelUpdated", "virtualRowRemoved", "viewportChanged", "bodyScroll", "bodyScrollEnd", "dragStarted", "dragStopped", "dragCancelled", "stateUpdated", "paginationChanged", "rowDragEnter", "rowDragMove", "rowDragLeave", "rowDragEnd", "rowDragCancel", "rowResizeStarted", "rowResizeEnded", "columnRowGroupChanged", "rowGroupOpened", "expandOrCollapseAll", "pivotMaxColumnsExceeded", "pinnedRowDataChanged", "pinnedRowsChanged", "rowDataUpdated", "asyncTransactionsFlushed", "storeRefreshed", "headerFocused", "cellClicked", "cellDoubleClicked", "cellFocused", "cellMouseOver", "cellMouseOut", "cellMouseDown", "rowClicked", "rowDoubleClicked", "rowSelected", "selectionChanged", "cellContextMenu", "rangeSelectionChanged", "cellSelectionChanged", "tooltipShow", "tooltipHide", "sortChanged"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "directive", type: i3.ButtonDirective, selector: "[pButton]", inputs: ["ptButtonDirective", "pButtonPT", "pButtonUnstyled", "hostName", "text", "plain", "raised", "size", "outlined", "rounded", "iconPos", "loadingIcon", "fluid", "label", "icon", "loading", "buttonProps", "severity"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i3$1.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }] });
|
|
1903
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: CilogGridComponent, isStandalone: true, selector: "cilog-grid", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: true, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: true, transformFunction: null }, values: { classPropertyName: "values", publicName: "values", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { onRowClick: "onRowClick", onCellClick: "onCellClick", onDelete: "onDelete", onEdit: "onEdit", columns: "columnsChange", values: "valuesChange" }, ngImport: i0, template: "<div class=\"!relative\"\r\n (window:click)=\"closeMenu()\">\r\n\r\n <!-- EXPORT EXCEL -->\r\n @if (options().exportExcel) {\r\n <button pButton\r\n icon=\"pi pi-file-excel\"\r\n class=\"p-button-success !z-5 !absolute !top-0 !left-0 !w-5 !h-5 !rounded-tr-none !rounded-bl-none\"\r\n pTooltip=\"Exporter le contenu de la grille au format Excel\"\r\n tooltipPosition=\"right\"\r\n (click)=\"exportExcel(options().exportExcelByFiltre, !options().exportExcelNoColors)\">\r\n </button>\r\n }\r\n\r\n <!-- GRILLE -->\r\n <ag-grid-angular style=\"width: 100%;\"\r\n [style.height]=\"options().scrollHeight ? options().scrollHeight : 'auto'\"\r\n [domLayout]=\"options().scrollHeight != null ? 'normal' : 'autoHeight'\"\r\n [theme]=\"theme\"\r\n [rowData]=\"values()\"\r\n [columnDefs]=\"colDefs()\"\r\n (gridReady)=\"onGridReady($event)\"\r\n [defaultColDef]=\"defaultColDef\"\r\n [rowHeight]=\"32\"\r\n [headerHeight]=\"36\"\r\n [localeText]=\"localeText\"\r\n [alwaysShowHorizontalScroll]=\"true\"\r\n [pinnedBottomRowData]=\"options().rowTotal ? totalRowData() : null\"\r\n [getRowStyle]=\"getRowStyle\"\r\n (rowClicked)=\"onRowClickEvent($event)\"\r\n (cellClicked)=\"onCellClickEvent($event)\"\r\n [getRowId]=\"getRowId\"\r\n (cellValueChanged)=\"onCellValueChanged($event)\"\r\n (contextmenu)=\"onGridContextMenu($event)\"\r\n (cellContextMenu)=\"onCellContextMenu($event)\">\r\n </ag-grid-angular>\r\n</div>\r\n\r\n<!-- MENU CONTEXTUEL -->\r\n@if (menuVisible && options().contextMenuItems != null) {\r\n<div class=\"custom-context-menu\"\r\n [ngStyle]=\"{'top.px': menuTop, 'left.px': menuLeft}\"\r\n (click)=\"$event.stopPropagation()\">\r\n <ul>\r\n @for (item of options().contextMenuItems; track item.code) {\r\n <li (click)=\"item.command({ item: item }); closeMenu()\">\r\n {{ item.label }}\r\n </li>\r\n }\r\n </ul>\r\n</div>\r\n}\r\n", styles: [":host ::ng-deep{--ag-cell-horizontal-padding: 5px !important}:host ::ng-deep .ag-grid-scrolling-rows{padding-bottom:15px!important}:host ::ng-deep .no-padding-cell{padding:0!important}:host ::ng-deep .custom-context-menu{position:fixed;background:#fff;border:1px solid #babec5;box-shadow:0 4px 6px #00000026;border-radius:4px;z-index:9999;min-width:150px}:host ::ng-deep .custom-context-menu ul{list-style:none;margin:0;padding:4px 0}:host ::ng-deep .custom-context-menu li{padding:8px 12px;cursor:pointer;font-family:sans-serif;font-size:14px;color:#333}:host ::ng-deep .custom-context-menu li:hover{background-color:#f0f2f5}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: FormsModule }, { kind: "component", type: AgGridAngular, selector: "ag-grid-angular", inputs: ["gridOptions", "modules", "toolbar", "statusBar", "sideBar", "suppressContextMenu", "preventDefaultOnContextMenu", "allowContextMenuWithControlKey", "columnMenu", "suppressMenuHide", "enableBrowserTooltips", "tooltipTrigger", "tooltipShowDelay", "tooltipSwitchShowDelay", "tooltipHideDelay", "tooltipMouseTrack", "tooltipShowMode", "tooltipInteraction", "popupParent", "copyHeadersToClipboard", "copyGroupHeadersToClipboard", "clipboardDelimiter", "suppressCopyRowsToClipboard", "suppressCopySingleCellRanges", "suppressLastEmptyLineOnPaste", "suppressClipboardPaste", "suppressClipboardApi", "suppressCutToClipboard", "columnDefs", "defaultColDef", "defaultColGroupDef", "columnTypes", "dataTypeDefinitions", "calculatedColumns", "maintainColumnOrder", "enableStrictPivotColumnOrder", "suppressFieldDotNotation", "headerHeight", "groupHeaderHeight", "floatingFiltersHeight", "pivotHeaderHeight", "pivotGroupHeaderHeight", "hidePaddedHeaderRows", "allowDragFromColumnsToolPanel", "suppressMovableColumns", "suppressColumnMoveAnimation", "suppressMoveWhenColumnDragging", "suppressDragLeaveHidesColumns", "suppressGroupChangesColumnVisibility", "suppressMakeColumnVisibleAfterUnGroup", "suppressRowGroupHidesColumns", "colResizeDefault", "suppressAutoSize", "autoSizePadding", "skipHeaderOnAutoSize", "autoSizeStrategy", "animateColumnResizing", "components", "editType", "suppressStartEditOnTab", "getFullRowEditValidationErrors", "invalidEditValueMode", "singleClickEdit", "suppressClickEdit", "readOnlyEdit", "stopEditingWhenCellsLoseFocus", "enterNavigatesVertically", "enterNavigatesVerticallyAfterEdit", "enableCellEditingOnBackspace", "undoRedoCellEditing", "undoRedoCellEditingLimit", "defaultCsvExportParams", "suppressCsvExport", "defaultExcelExportParams", "suppressExcelExport", "excelStyles", "findSearchValue", "findOptions", "quickFilterText", "cacheQuickFilter", "includeHiddenColumnsInQuickFilter", "quickFilterParser", "quickFilterMatcher", "applyQuickFilterBeforePivotOrAgg", "excludeChildrenWhenTreeDataFiltering", "enableAdvancedFilter", "alwaysPassFilter", "includeHiddenColumnsInAdvancedFilter", "advancedFilterParent", "advancedFilterBuilderParams", "advancedFilterParams", "suppressAdvancedFilterEval", "suppressSetFilterByDefault", "enableFilterHandlers", "filterHandlers", "enableCharts", "chartThemes", "customChartThemes", "chartThemeOverrides", "chartToolPanelsDef", "chartMenuItems", "loadingCellRenderer", "loadingCellRendererParams", "loadingCellRendererSelector", "localeText", "masterDetail", "keepDetailRows", "keepDetailRowsCount", "detailCellRenderer", "detailCellRendererParams", "detailRowHeight", "detailRowAutoHeight", "context", "alignedGrids", "tabIndex", "rowBuffer", "valueCache", "valueCacheNeverExpires", "enableCellExpressions", "suppressTouch", "suppressFocusAfterRefresh", "suppressBrowserResizeObserver", "suppressPropertyNamesCheck", "suppressChangeDetection", "debug", "loading", "overlayLoadingTemplate", "loadingOverlayComponent", "loadingOverlayComponentParams", "suppressLoadingOverlay", "overlayNoRowsTemplate", "noRowsOverlayComponent", "noRowsOverlayComponentParams", "suppressNoRowsOverlay", "suppressOverlays", "overlayComponent", "overlayComponentParams", "overlayComponentSelector", "activeOverlay", "activeOverlayParams", "processFileInput", "pagination", "paginationPageSize", "paginationPageSizeSelector", "paginationAutoPageSize", "paginateChildRows", "suppressPaginationPanel", "paginationPanels", "pivotMode", "pivotPanelShow", "pivotMaxGeneratedColumns", "pivotDefaultExpanded", "pivotColumnGroupTotals", "pivotRowTotals", "pivotSuppressAutoColumn", "suppressExpandablePivotGroups", "functionsReadOnly", "aggFuncs", "formulaDataSource", "notesDataSource", "noteTrigger", "noteShowDelay", "noteHideDelay", "formulaFuncs", "suppressAggFuncInHeader", "alwaysAggregateAtRootLevel", "aggregateOnlyChangedColumns", "suppressAggFilteredOnly", "removePivotHeaderRowWhenSingleValueColumn", "animateRows", "cellFlashDuration", "cellFadeDuration", "allowShowChangeAfterFilter", "domLayout", "ensureDomOrder", "enableCellSpan", "enableRtl", "suppressColumnVirtualisation", "suppressMaxRenderedRowRestriction", "suppressRowVirtualisation", "rowDragManaged", "refreshAfterGroupEdit", "rowDragInsertDelay", "suppressRowDrag", "suppressMoveWhenRowDragging", "rowDragEntireRow", "rowDragMultiRow", "rowDragText", "dragAndDropImageComponent", "dragAndDropImageComponentParams", "fullWidthCellRenderer", "fullWidthCellRendererParams", "embedFullWidthRows", "groupDisplayType", "groupDefaultExpanded", "autoGroupColumnDef", "groupMaintainOrder", "groupSelectsChildren", "groupLockGroupColumns", "groupAggFiltering", "groupTotalRow", "grandTotalRow", "suppressStickyTotalRow", "groupSuppressBlankHeader", "groupSelectsFiltered", "showOpenedGroup", "groupHideParentOfSingleChild", "groupRemoveSingleChildren", "groupRemoveLowestSingleChildren", "groupHideOpenParents", "groupHideColumnsUntilExpanded", "groupAllowUnbalanced", "rowGroupPanelShow", "groupRowRenderer", "groupRowRendererParams", "treeData", "treeDataChildrenField", "treeDataParentIdField", "rowGroupPanelSuppressSort", "suppressGroupRowsSticky", "groupHierarchyConfig", "pinnedTopRowData", "pinnedBottomRowData", "enableRowPinning", "isRowPinnable", "isRowPinned", "rowModelType", "rowData", "asyncTransactionWaitMillis", "suppressModelUpdateAfterUpdateTransaction", "datasource", "cacheOverflowSize", "infiniteInitialRowCount", "serverSideInitialRowCount", "suppressServerSideFullWidthLoadingRow", "cacheBlockSize", "maxBlocksInCache", "maxConcurrentDatasourceRequests", "blockLoadDebounceMillis", "purgeClosedRowNodes", "serverSideDatasource", "serverSideSortAllLevels", "serverSideEnableClientSideSort", "serverSideOnlyRefreshFilteredGroups", "serverSidePivotResultFieldSeparator", "viewportDatasource", "viewportRowModelPageSize", "viewportRowModelBufferSize", "alwaysShowHorizontalScroll", "alwaysShowVerticalScroll", "debounceVerticalScrollbar", "suppressHorizontalScroll", "suppressScrollOnNewData", "suppressScrollWhenPopupsAreOpen", "suppressAnimationFrame", "suppressMiddleClickScrolls", "suppressPreventDefaultOnMouseWheel", "scrollbarWidth", "rowSelection", "cellSelection", "rowMultiSelectWithClick", "suppressRowDeselection", "suppressRowClickSelection", "suppressCellFocus", "suppressHeaderFocus", "selectionColumnDef", "rowNumbers", "suppressMultiRangeSelection", "enableCellTextSelection", "enableRangeSelection", "enableRangeHandle", "enableFillHandle", "fillHandleDirection", "suppressClearOnFillReduction", "sortingOrder", "accentedSort", "unSortIcon", "suppressMultiSort", "alwaysMultiSort", "multiSortKey", "suppressMaintainUnsortedOrder", "icons", "rowHeight", "rowStyle", "rowClass", "rowClassRules", "suppressRowHoverHighlight", "suppressRowTransform", "suppressContentVisibilityAuto", "columnHoverHighlight", "gridId", "deltaSort", "treeDataDisplayType", "enableGroupEdit", "initialState", "theme", "loadThemeGoogleFonts", "themeCssLayer", "styleNonce", "themeStyleContainer", "getContextMenuItems", "getMainMenuItems", "postProcessPopup", "processUnpinnedColumns", "processCellForClipboard", "processHeaderForClipboard", "processGroupHeaderForClipboard", "processCellFromClipboard", "sendToClipboard", "processDataFromClipboard", "isExternalFilterPresent", "doesExternalFilterPass", "getChartToolbarItems", "createChartContainer", "focusGridInnerElement", "navigateToNextHeader", "tabToNextHeader", "navigateToNextCell", "tabToNextCell", "tabToNextGridContainer", "getLocaleText", "getDocument", "paginationNumberFormatter", "getGroupRowAgg", "isGroupOpenByDefault", "ssrmExpandAllAffectsAllRows", "initialGroupOrderComparator", "processPivotResultColDef", "processPivotResultColGroupDef", "getDataPath", "getChildCount", "getServerSideGroupLevelParams", "isServerSideGroupOpenByDefault", "isApplyServerSideTransaction", "isServerSideGroup", "getServerSideGroupKey", "getBusinessKeyForNode", "getRowId", "resetRowDataOnUpdate", "autoGenerateColumnDefs", "processAutoGeneratedColumnDefs", "processRowPostCreate", "isRowSelectable", "isRowMaster", "fillOperation", "postSortRows", "getRowStyle", "getRowClass", "getRowHeight", "isFullWidthRow", "isRowValidDropPosition"], outputs: ["toolPanelVisibleChanged", "toolPanelSizeChanged", "columnMenuVisibleChanged", "contextMenuVisibleChanged", "cutStart", "cutEnd", "pasteStart", "pasteEnd", "calculatedColumnCreated", "calculatedColumnExpressionChanged", "calculatedColumnRemoved", "calculatedColumnValidationStateChanged", "columnVisible", "columnPinned", "columnResized", "columnMoved", "columnValueChanged", "columnPivotModeChanged", "columnPivotChanged", "columnGroupOpened", "newColumnsLoaded", "gridColumnsChanged", "displayedColumnsChanged", "virtualColumnsChanged", "columnEverythingChanged", "columnsReset", "columnHeaderMouseOver", "columnHeaderMouseLeave", "columnHeaderClicked", "columnHeaderContextMenu", "componentStateChanged", "cellValueChanged", "cellEditRequest", "rowValueChanged", "cellEditingStarted", "cellEditingStopped", "rowEditingStarted", "rowEditingStopped", "bulkEditingStarted", "bulkEditingStopped", "batchEditingStarted", "batchEditingStopped", "undoStarted", "undoEnded", "redoStarted", "redoEnded", "cellSelectionDeleteStart", "cellSelectionDeleteEnd", "rangeDeleteStart", "rangeDeleteEnd", "fillStart", "fillEnd", "filterOpened", "filterChanged", "filterModified", "filterUiChanged", "floatingFilterUiChanged", "advancedFilterBuilderVisibleChanged", "findChanged", "chartCreated", "chartRangeSelectionChanged", "chartOptionsChanged", "chartDestroyed", "cellKeyDown", "gridReady", "firstDataRendered", "gridSizeChanged", "modelUpdated", "virtualRowRemoved", "viewportChanged", "bodyScroll", "bodyScrollEnd", "dragStarted", "dragStopped", "dragCancelled", "stateUpdated", "paginationChanged", "rowDragEnter", "rowDragMove", "rowDragLeave", "rowDragEnd", "rowDragCancel", "rowResizeStarted", "rowResizeEnded", "columnRowGroupChanged", "rowGroupOpened", "expandOrCollapseAll", "pivotMaxColumnsExceeded", "pinnedRowDataChanged", "pinnedRowsChanged", "rowDataUpdated", "asyncTransactionsFlushed", "storeRefreshed", "headerFocused", "cellClicked", "cellDoubleClicked", "cellFocused", "cellMouseOver", "cellMouseOut", "cellMouseDown", "rowClicked", "rowDoubleClicked", "rowSelected", "selectionChanged", "cellContextMenu", "rangeSelectionChanged", "cellSelectionChanged", "tooltipShow", "tooltipHide", "sortChanged"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "directive", type: i3.ButtonDirective, selector: "[pButton]", inputs: ["ptButtonDirective", "pButtonPT", "pButtonUnstyled", "hostName", "text", "plain", "raised", "size", "outlined", "rounded", "iconPos", "loadingIcon", "fluid", "label", "icon", "loading", "buttonProps", "severity"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i3$1.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }] });
|
|
1800
1904
|
}
|
|
1801
1905
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: CilogGridComponent, decorators: [{
|
|
1802
1906
|
type: Component,
|
|
@@ -1806,8 +1910,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
1806
1910
|
AgGridAngular,
|
|
1807
1911
|
ButtonModule,
|
|
1808
1912
|
TooltipModule
|
|
1809
|
-
], template: "<div class=\"!relative\"\r\n (window:click)=\"closeMenu()\">\r\n\r\n <!-- EXPORT EXCEL -->\r\n @if (options().exportExcel) {\r\n <button pButton\r\n icon=\"pi pi-file-excel\"\r\n class=\"p-button-success !z-5 !absolute !top-0 !left-0 !w-5 !h-5 !rounded-tr-none !rounded-bl-none\"\r\n pTooltip=\"Exporter le contenu de la grille au format Excel\"\r\n tooltipPosition=\"right\"\r\n (click)=\"exportExcel(options().exportExcelByFiltre, !options().exportExcelNoColors)\">\r\n </button>\r\n }\r\n\r\n <!-- GRILLE -->\r\n <ag-grid-angular style=\"width: 100%;\"\r\n [style.height]=\"options().scrollHeight ? options().scrollHeight : 'auto'\"\r\n [domLayout]=\"options().scrollHeight != null ? 'normal' : 'autoHeight'\"\r\n [theme]=\"theme\"\r\n [rowData]=\"values()\"\r\n [columnDefs]=\"colDefs()\"\r\n (gridReady)=\"onGridReady($event)\"\r\n [defaultColDef]=\"defaultColDef\"\r\n [rowHeight]=\"32\"\r\n [headerHeight]=\"36\"\r\n [localeText]=\"localeText\"\r\n [alwaysShowHorizontalScroll]=\"true\"\r\n [pinnedBottomRowData]=\"options().rowTotal ? totalRowData() : null\"\r\n [getRowStyle]=\"getRowStyle\"\r\n (rowClicked)=\"onRowClickEvent($event)\"\r\n [getRowId]=\"getRowId\"\r\n (cellValueChanged)=\"onCellValueChanged($event)\"\r\n (contextmenu)=\"onGridContextMenu($event)\"\r\n (cellContextMenu)=\"onCellContextMenu($event)\">\r\n </ag-grid-angular>\r\n</div>\r\n\r\n<!-- MENU CONTEXTUEL -->\r\n@if (menuVisible && options().contextMenuItems != null) {\r\n<div class=\"custom-context-menu\"\r\n [ngStyle]=\"{'top.px': menuTop, 'left.px': menuLeft}\"\r\n (click)=\"$event.stopPropagation()\">\r\n <ul>\r\n @for (item of options().contextMenuItems; track item.code) {\r\n <li (click)=\"item.command({ item: item }); closeMenu()\">\r\n {{ item.label }}\r\n </li>\r\n }\r\n </ul>\r\n</div>\r\n}\r\n", styles: [":host ::ng-deep{--ag-cell-horizontal-padding: 5px !important}:host ::ng-deep .ag-grid-scrolling-rows{padding-bottom:15px!important}:host ::ng-deep .no-padding-cell{padding:0!important}:host ::ng-deep .custom-context-menu{position:fixed;background:#fff;border:1px solid #babec5;box-shadow:0 4px 6px #00000026;border-radius:4px;z-index:9999;min-width:150px}:host ::ng-deep .custom-context-menu ul{list-style:none;margin:0;padding:4px 0}:host ::ng-deep .custom-context-menu li{padding:8px 12px;cursor:pointer;font-family:sans-serif;font-size:14px;color:#333}:host ::ng-deep .custom-context-menu li:hover{background-color:#f0f2f5}\n"] }]
|
|
1810
|
-
}], ctorParameters: () => [], propDecorators: { onRowClick: [{ type: i0.Output, args: ["onRowClick"] }], onDelete: [{ type: i0.Output, args: ["onDelete"] }], onEdit: [{ type: i0.Output, args: ["onEdit"] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: true }] }], columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: true }] }, { type: i0.Output, args: ["columnsChange"] }], values: [{ type: i0.Input, args: [{ isSignal: true, alias: "values", required: true }] }, { type: i0.Output, args: ["valuesChange"] }] } });
|
|
1913
|
+
], template: "<div class=\"!relative\"\r\n (window:click)=\"closeMenu()\">\r\n\r\n <!-- EXPORT EXCEL -->\r\n @if (options().exportExcel) {\r\n <button pButton\r\n icon=\"pi pi-file-excel\"\r\n class=\"p-button-success !z-5 !absolute !top-0 !left-0 !w-5 !h-5 !rounded-tr-none !rounded-bl-none\"\r\n pTooltip=\"Exporter le contenu de la grille au format Excel\"\r\n tooltipPosition=\"right\"\r\n (click)=\"exportExcel(options().exportExcelByFiltre, !options().exportExcelNoColors)\">\r\n </button>\r\n }\r\n\r\n <!-- GRILLE -->\r\n <ag-grid-angular style=\"width: 100%;\"\r\n [style.height]=\"options().scrollHeight ? options().scrollHeight : 'auto'\"\r\n [domLayout]=\"options().scrollHeight != null ? 'normal' : 'autoHeight'\"\r\n [theme]=\"theme\"\r\n [rowData]=\"values()\"\r\n [columnDefs]=\"colDefs()\"\r\n (gridReady)=\"onGridReady($event)\"\r\n [defaultColDef]=\"defaultColDef\"\r\n [rowHeight]=\"32\"\r\n [headerHeight]=\"36\"\r\n [localeText]=\"localeText\"\r\n [alwaysShowHorizontalScroll]=\"true\"\r\n [pinnedBottomRowData]=\"options().rowTotal ? totalRowData() : null\"\r\n [getRowStyle]=\"getRowStyle\"\r\n (rowClicked)=\"onRowClickEvent($event)\"\r\n (cellClicked)=\"onCellClickEvent($event)\"\r\n [getRowId]=\"getRowId\"\r\n (cellValueChanged)=\"onCellValueChanged($event)\"\r\n (contextmenu)=\"onGridContextMenu($event)\"\r\n (cellContextMenu)=\"onCellContextMenu($event)\">\r\n </ag-grid-angular>\r\n</div>\r\n\r\n<!-- MENU CONTEXTUEL -->\r\n@if (menuVisible && options().contextMenuItems != null) {\r\n<div class=\"custom-context-menu\"\r\n [ngStyle]=\"{'top.px': menuTop, 'left.px': menuLeft}\"\r\n (click)=\"$event.stopPropagation()\">\r\n <ul>\r\n @for (item of options().contextMenuItems; track item.code) {\r\n <li (click)=\"item.command({ item: item }); closeMenu()\">\r\n {{ item.label }}\r\n </li>\r\n }\r\n </ul>\r\n</div>\r\n}\r\n", styles: [":host ::ng-deep{--ag-cell-horizontal-padding: 5px !important}:host ::ng-deep .ag-grid-scrolling-rows{padding-bottom:15px!important}:host ::ng-deep .no-padding-cell{padding:0!important}:host ::ng-deep .custom-context-menu{position:fixed;background:#fff;border:1px solid #babec5;box-shadow:0 4px 6px #00000026;border-radius:4px;z-index:9999;min-width:150px}:host ::ng-deep .custom-context-menu ul{list-style:none;margin:0;padding:4px 0}:host ::ng-deep .custom-context-menu li{padding:8px 12px;cursor:pointer;font-family:sans-serif;font-size:14px;color:#333}:host ::ng-deep .custom-context-menu li:hover{background-color:#f0f2f5}\n"] }]
|
|
1914
|
+
}], ctorParameters: () => [], propDecorators: { onRowClick: [{ type: i0.Output, args: ["onRowClick"] }], onCellClick: [{ type: i0.Output, args: ["onCellClick"] }], onDelete: [{ type: i0.Output, args: ["onDelete"] }], onEdit: [{ type: i0.Output, args: ["onEdit"] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: true }] }], columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: true }] }, { type: i0.Output, args: ["columnsChange"] }], values: [{ type: i0.Input, args: [{ isSignal: true, alias: "values", required: true }] }, { type: i0.Output, args: ["valuesChange"] }] } });
|
|
1811
1915
|
|
|
1812
1916
|
class CilogTreetableComponent {
|
|
1813
1917
|
options = input.required(...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
|