cilog-lib 1.13.9 → 1.13.11
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 +173 -29
- package/fesm2022/cilog-lib.mjs.map +1 -1
- package/package.json +1 -1
- package/types/cilog-lib.d.ts +9 -4
package/fesm2022/cilog-lib.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, signal, Injectable, inject, Pipe, EventEmitter, HostListener, ViewChild, Output, Input, input, model, computed, output } from '@angular/core';
|
|
2
|
+
import { Component, signal, Injectable, inject, Pipe, EventEmitter, HostListener, ViewChild, Output, Input, input, model, computed, viewChild, output } from '@angular/core';
|
|
3
3
|
import * as i1 from 'primeng/dialog';
|
|
4
4
|
import { DialogModule } from 'primeng/dialog';
|
|
5
5
|
import * as i1$2 from 'primeng/button';
|
|
@@ -173,6 +173,7 @@ var ColType;
|
|
|
173
173
|
ColType["Image"] = "Image";
|
|
174
174
|
ColType["Date"] = "Date";
|
|
175
175
|
ColType["State"] = "State";
|
|
176
|
+
ColType["Horaire"] = "Horaire";
|
|
176
177
|
})(ColType || (ColType = {}));
|
|
177
178
|
var Severity;
|
|
178
179
|
(function (Severity) {
|
|
@@ -1380,6 +1381,51 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
1380
1381
|
], template: "<p-button [icon]=\"icon\"\r\n [severity]=\"severity\"\r\n [rounded]=\"true\"\r\n [text]=\"true\"\r\n size=\"small\"\r\n (click)=\"$event.stopPropagation()\"\r\n (onClick)=\"onClick()\">\r\n</p-button>\r\n" }]
|
|
1381
1382
|
}] });
|
|
1382
1383
|
|
|
1384
|
+
class TimeMaskEditorComponent {
|
|
1385
|
+
params;
|
|
1386
|
+
value = signal('', ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
1387
|
+
inputElement = viewChild('inputElement', ...(ngDevMode ? [{ debugName: "inputElement" }] : /* istanbul ignore next */ []));
|
|
1388
|
+
agInit(params) {
|
|
1389
|
+
this.params = params;
|
|
1390
|
+
this.value.set(params.value || '');
|
|
1391
|
+
}
|
|
1392
|
+
ngAfterViewInit() {
|
|
1393
|
+
setTimeout(() => {
|
|
1394
|
+
this.inputElement().nativeElement.focus();
|
|
1395
|
+
this.inputElement().nativeElement.select();
|
|
1396
|
+
});
|
|
1397
|
+
}
|
|
1398
|
+
onInput(event) {
|
|
1399
|
+
const inputHtml = event.target;
|
|
1400
|
+
let rawValue = inputHtml.value.replace(/\D/g, '');
|
|
1401
|
+
if (rawValue.length > 4) {
|
|
1402
|
+
rawValue = rawValue.slice(0, 4);
|
|
1403
|
+
}
|
|
1404
|
+
let formattedValue = rawValue;
|
|
1405
|
+
if (rawValue.length > 2) {
|
|
1406
|
+
formattedValue = rawValue.slice(0, 2) + ':' + rawValue.slice(2);
|
|
1407
|
+
}
|
|
1408
|
+
this.value.set(formattedValue);
|
|
1409
|
+
inputHtml.value = formattedValue;
|
|
1410
|
+
}
|
|
1411
|
+
onBlur() {
|
|
1412
|
+
const regex = /^(([01]\d|2[0-3]):([0-5]\d)|24:00)$/;
|
|
1413
|
+
if (this.value() && !regex.test(this.value())) {
|
|
1414
|
+
alert("Format invalide (Attendu : HH:MM)");
|
|
1415
|
+
this.value.set('');
|
|
1416
|
+
}
|
|
1417
|
+
}
|
|
1418
|
+
getValue() {
|
|
1419
|
+
return this.value();
|
|
1420
|
+
}
|
|
1421
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: TimeMaskEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1422
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.17", type: TimeMaskEditorComponent, isStandalone: true, selector: "cilog-grid-time-mask-editor", viewQueries: [{ propertyName: "inputElement", first: true, predicate: ["inputElement"], descendants: true, isSignal: true }], ngImport: i0, 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", styles: [""] });
|
|
1423
|
+
}
|
|
1424
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: TimeMaskEditorComponent, decorators: [{
|
|
1425
|
+
type: Component,
|
|
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
|
+
}], propDecorators: { inputElement: [{ type: i0.ViewChild, args: ['inputElement', { isSignal: true }] }] } });
|
|
1428
|
+
|
|
1383
1429
|
const myTheme = themeQuartz
|
|
1384
1430
|
.withParams({
|
|
1385
1431
|
backgroundColor: '#ffffff',
|
|
@@ -1400,6 +1446,7 @@ class CilogGridComponent {
|
|
|
1400
1446
|
// Outputs
|
|
1401
1447
|
onRowClick = output();
|
|
1402
1448
|
onDelete = output();
|
|
1449
|
+
onEdit = output();
|
|
1403
1450
|
// Services
|
|
1404
1451
|
exportService = inject(ExportService);
|
|
1405
1452
|
localeText = AG_GRID_LOCALE_FR;
|
|
@@ -1421,6 +1468,25 @@ class CilogGridComponent {
|
|
|
1421
1468
|
headerName: col.libelle,
|
|
1422
1469
|
pinned: col.frozen ? true : false,
|
|
1423
1470
|
hide: col.invisible ? true : false,
|
|
1471
|
+
editable: (params) => {
|
|
1472
|
+
if (!params.data)
|
|
1473
|
+
return false;
|
|
1474
|
+
if (!this.options().editable) {
|
|
1475
|
+
return false;
|
|
1476
|
+
}
|
|
1477
|
+
if (params.data.readonly || params.data[params.colDef.field].readonly) {
|
|
1478
|
+
return false;
|
|
1479
|
+
}
|
|
1480
|
+
let typeSaisie = params.data.typeSaisie != null ? params.data.typeSaisie : col.type;
|
|
1481
|
+
switch (typeSaisie) {
|
|
1482
|
+
case ColType.Button:
|
|
1483
|
+
case ColType.File:
|
|
1484
|
+
case ColType.Image:
|
|
1485
|
+
return false;
|
|
1486
|
+
default:
|
|
1487
|
+
return true;
|
|
1488
|
+
}
|
|
1489
|
+
},
|
|
1424
1490
|
initialWidth: col.width,
|
|
1425
1491
|
wrapHeaderText: this.options().headersAffichageEntier ? true : false,
|
|
1426
1492
|
autoHeaderHeight: this.options().headersAffichageEntier ? true : false,
|
|
@@ -1429,6 +1495,60 @@ class CilogGridComponent {
|
|
|
1429
1495
|
suppressSizeToFit: col.width != null ? true : false,
|
|
1430
1496
|
headerTooltip: col.tooltipHeader ? col.libelle : null,
|
|
1431
1497
|
type: col.type == ColType.Number || col.type == ColType.Date ? 'rightAligned' : null,
|
|
1498
|
+
cellEditorSelector: (params) => {
|
|
1499
|
+
if (!params.data)
|
|
1500
|
+
return undefined;
|
|
1501
|
+
let typeSaisie = params.data.typeSaisie != null ? params.data.typeSaisie : col.type;
|
|
1502
|
+
switch (typeSaisie) {
|
|
1503
|
+
case ColType.Horaire:
|
|
1504
|
+
return { component: TimeMaskEditorComponent };
|
|
1505
|
+
case ColType.Date:
|
|
1506
|
+
return { component: 'agDateCellEditor' };
|
|
1507
|
+
case ColType.Number:
|
|
1508
|
+
return {
|
|
1509
|
+
component: 'agNumberCellEditor',
|
|
1510
|
+
params: {
|
|
1511
|
+
min: col.options?.min ? col.options?.min : 0,
|
|
1512
|
+
precision: col.options?.modeInteger ? 0 : col.options?.minDecimales != null ? col.options?.minDecimales : 2,
|
|
1513
|
+
}
|
|
1514
|
+
};
|
|
1515
|
+
default:
|
|
1516
|
+
return { component: 'agTextCellEditor' };
|
|
1517
|
+
}
|
|
1518
|
+
},
|
|
1519
|
+
valueSetter: (params) => {
|
|
1520
|
+
if (params.data[params.colDef.field].value != params.newValue) {
|
|
1521
|
+
let typeSaisie = params.data.typeSaisie != null ? params.data.typeSaisie : col.type;
|
|
1522
|
+
switch (typeSaisie) {
|
|
1523
|
+
case ColType.Horaire:
|
|
1524
|
+
const regexHeure = /^(([01]\d|2[0-3]):([0-5]\d)|24:00)$/;
|
|
1525
|
+
if (!params.newValue || !regexHeure.test(params.newValue)) {
|
|
1526
|
+
params.data[params.colDef.field].value = params.oldValue;
|
|
1527
|
+
return false;
|
|
1528
|
+
}
|
|
1529
|
+
params.data[params.colDef.field].value = params.newValue;
|
|
1530
|
+
return true;
|
|
1531
|
+
case ColType.Date:
|
|
1532
|
+
params.data[params.colDef.field].value = params.newValue;
|
|
1533
|
+
return true;
|
|
1534
|
+
case ColType.Number:
|
|
1535
|
+
const parsedValue = parseFloat(params.newValue);
|
|
1536
|
+
if (isNaN(parsedValue) || parsedValue < 0) {
|
|
1537
|
+
params.data[params.colDef.field].value = params.oldValue;
|
|
1538
|
+
return false;
|
|
1539
|
+
}
|
|
1540
|
+
params.data[params.colDef.field].value = params.newValue;
|
|
1541
|
+
return true;
|
|
1542
|
+
case ColType.Text:
|
|
1543
|
+
params.data[params.colDef.field].value = params.newValue;
|
|
1544
|
+
return true;
|
|
1545
|
+
default:
|
|
1546
|
+
params.data[params.colDef.field].value = params.oldValue;
|
|
1547
|
+
return false;
|
|
1548
|
+
}
|
|
1549
|
+
}
|
|
1550
|
+
return false;
|
|
1551
|
+
},
|
|
1432
1552
|
valueGetter: (params) => {
|
|
1433
1553
|
return params.data[params.colDef.field].value;
|
|
1434
1554
|
},
|
|
@@ -1440,12 +1560,18 @@ class CilogGridComponent {
|
|
|
1440
1560
|
if (rawValue == null) {
|
|
1441
1561
|
return '';
|
|
1442
1562
|
}
|
|
1443
|
-
let formatFr = new Intl.NumberFormat('fr-FR', {
|
|
1444
|
-
minimumFractionDigits: col.options['minDecimales'] != null ? col.options['minDecimales'] : 2,
|
|
1445
|
-
maximumFractionDigits: col.options['maxDecimales'] != null ? col.options['maxDecimales'] : 2
|
|
1446
|
-
});
|
|
1447
|
-
const formattedValue = formatFr.format(rawValue);
|
|
1448
1563
|
const suffix = col.options?.['suffix'];
|
|
1564
|
+
let formattedValue = '';
|
|
1565
|
+
if (col.options?.modeInteger) {
|
|
1566
|
+
formattedValue = rawValue;
|
|
1567
|
+
}
|
|
1568
|
+
else {
|
|
1569
|
+
let formatFr = new Intl.NumberFormat('fr-FR', {
|
|
1570
|
+
minimumFractionDigits: col.options?.minDecimales != null ? col.options?.minDecimales : 2,
|
|
1571
|
+
maximumFractionDigits: col.options?.minDecimales != null ? col.options?.minDecimales : 2
|
|
1572
|
+
});
|
|
1573
|
+
formattedValue = formatFr.format(rawValue);
|
|
1574
|
+
}
|
|
1449
1575
|
return suffix ? `${formattedValue} ${suffix}` : formattedValue;
|
|
1450
1576
|
case ColType.Date:
|
|
1451
1577
|
let val = params.data[params.colDef.field].value;
|
|
@@ -1501,29 +1627,37 @@ class CilogGridComponent {
|
|
|
1501
1627
|
};
|
|
1502
1628
|
cols.push(colDef);
|
|
1503
1629
|
});
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
return {
|
|
1515
|
-
component: GridBoutonComponent,
|
|
1516
|
-
params: {
|
|
1517
|
-
icon: 'pi pi-times',
|
|
1518
|
-
severity: 'danger',
|
|
1519
|
-
onClick: this.onDeleteEvent.bind(this)
|
|
1630
|
+
if (this.options().rowsDeletable) {
|
|
1631
|
+
let colDelete = {
|
|
1632
|
+
headerName: '',
|
|
1633
|
+
width: 50,
|
|
1634
|
+
resizable: false,
|
|
1635
|
+
cellClass: 'no-padding-cell',
|
|
1636
|
+
suppressSizeToFit: true,
|
|
1637
|
+
cellRendererSelector: (params) => {
|
|
1638
|
+
if (params.node.isRowPinned()) {
|
|
1639
|
+
return undefined;
|
|
1520
1640
|
}
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1641
|
+
return {
|
|
1642
|
+
component: GridBoutonComponent,
|
|
1643
|
+
params: {
|
|
1644
|
+
icon: 'pi pi-times',
|
|
1645
|
+
severity: 'danger',
|
|
1646
|
+
onClick: this.onDeleteEvent.bind(this)
|
|
1647
|
+
}
|
|
1648
|
+
};
|
|
1649
|
+
}
|
|
1650
|
+
};
|
|
1651
|
+
cols.push(colDelete);
|
|
1652
|
+
}
|
|
1525
1653
|
return cols;
|
|
1526
1654
|
}, ...(ngDevMode ? [{ debugName: "colDefs" }] : /* istanbul ignore next */ []));
|
|
1655
|
+
getRowId = (params) => {
|
|
1656
|
+
if (params.data && params.data.id != null) {
|
|
1657
|
+
return params.data.id.toString();
|
|
1658
|
+
}
|
|
1659
|
+
return Math.random().toString();
|
|
1660
|
+
};
|
|
1527
1661
|
getTypeFiltre(col) {
|
|
1528
1662
|
switch (col.type) {
|
|
1529
1663
|
case ColType.Date:
|
|
@@ -1593,8 +1727,18 @@ class CilogGridComponent {
|
|
|
1593
1727
|
onDeleteEvent(row) {
|
|
1594
1728
|
this.onDelete.emit({ row: row });
|
|
1595
1729
|
}
|
|
1730
|
+
onCellValueChanged(event) {
|
|
1731
|
+
if (event.oldValue === event.newValue)
|
|
1732
|
+
return;
|
|
1733
|
+
const editionPayload = {
|
|
1734
|
+
row: event.data,
|
|
1735
|
+
column: this.columns().find(col => col.id == event.colDef.field),
|
|
1736
|
+
value: event.newValue
|
|
1737
|
+
};
|
|
1738
|
+
this.onEdit.emit(editionPayload);
|
|
1739
|
+
}
|
|
1596
1740
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: CilogGridComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1597
|
-
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", columns: "columnsChange", values: "valuesChange" }, ngImport: i0, template: "<div class=\"!relative\">\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 <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 </ag-grid-angular>\r\n</div>\r\n", styles: [":host ::ng-deep .ag-grid-scrolling-rows{padding-bottom:15px!important}:host ::ng-deep .no-padding-cell{padding:0!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { 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: i1$2.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: i9.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"] }] });
|
|
1741
|
+
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 @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 <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 </ag-grid-angular>\r\n</div>\r\n", styles: [":host ::ng-deep .ag-grid-scrolling-rows{padding-bottom:15px!important}:host ::ng-deep .no-padding-cell{padding:0!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { 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: i1$2.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: i9.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"] }] });
|
|
1598
1742
|
}
|
|
1599
1743
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: CilogGridComponent, decorators: [{
|
|
1600
1744
|
type: Component,
|
|
@@ -1604,8 +1748,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
1604
1748
|
AgGridAngular,
|
|
1605
1749
|
ButtonModule,
|
|
1606
1750
|
TooltipModule
|
|
1607
|
-
], template: "<div class=\"!relative\">\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 <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 </ag-grid-angular>\r\n</div>\r\n", styles: [":host ::ng-deep .ag-grid-scrolling-rows{padding-bottom:15px!important}:host ::ng-deep .no-padding-cell{padding:0!important}\n"] }]
|
|
1608
|
-
}], ctorParameters: () => [], propDecorators: { onRowClick: [{ type: i0.Output, args: ["onRowClick"] }], onDelete: [{ type: i0.Output, args: ["onDelete"] }], 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"] }] } });
|
|
1751
|
+
], template: "<div class=\"!relative\">\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 <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 </ag-grid-angular>\r\n</div>\r\n", styles: [":host ::ng-deep .ag-grid-scrolling-rows{padding-bottom:15px!important}:host ::ng-deep .no-padding-cell{padding:0!important}\n"] }]
|
|
1752
|
+
}], 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"] }] } });
|
|
1609
1753
|
|
|
1610
1754
|
class CilogTreetableComponent {
|
|
1611
1755
|
options = input.required(...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
|