cilog-lib 1.13.5 → 1.13.6
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 +37 -31
- package/fesm2022/cilog-lib.mjs.map +1 -1
- package/package.json +1 -1
package/fesm2022/cilog-lib.mjs
CHANGED
|
@@ -1371,13 +1371,13 @@ class GridBoutonComponent {
|
|
|
1371
1371
|
}
|
|
1372
1372
|
}
|
|
1373
1373
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: GridBoutonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1374
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: GridBoutonComponent, isStandalone: true, selector: "cilog-grid-bouton", ngImport: i0, template: "<p-button [icon]=\"icon\"\r\n [severity]=\"severity\"\r\n [rounded]=\"true\"\r\n [text]=\"true\"\r\n size=\"small\"\r\n (onClick)=\"onClick()\">\r\n</p-button>\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1$2.Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }] });
|
|
1374
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: GridBoutonComponent, isStandalone: true, selector: "cilog-grid-bouton", ngImport: i0, 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", styles: [""], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1$2.Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }] });
|
|
1375
1375
|
}
|
|
1376
1376
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: GridBoutonComponent, decorators: [{
|
|
1377
1377
|
type: Component,
|
|
1378
1378
|
args: [{ selector: 'cilog-grid-bouton', imports: [
|
|
1379
1379
|
ButtonModule
|
|
1380
|
-
], template: "<p-button [icon]=\"icon\"\r\n [severity]=\"severity\"\r\n [rounded]=\"true\"\r\n [text]=\"true\"\r\n size=\"small\"\r\n (onClick)=\"onClick()\">\r\n</p-button>\r\n" }]
|
|
1380
|
+
], 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
1381
|
}] });
|
|
1382
1382
|
|
|
1383
1383
|
const myTheme = themeQuartz
|
|
@@ -1449,35 +1449,40 @@ class CilogGridComponent {
|
|
|
1449
1449
|
return suffix ? `${formattedValue} ${suffix}` : formattedValue;
|
|
1450
1450
|
case ColType.Date:
|
|
1451
1451
|
let val = params.data[params.colDef.field].value;
|
|
1452
|
-
if (val != null
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1452
|
+
if (val != null) {
|
|
1453
|
+
if (col.options != null) {
|
|
1454
|
+
switch (col.options['mode']) {
|
|
1455
|
+
case 'year':
|
|
1456
|
+
return val.getFullYear().toString();
|
|
1457
|
+
case 'month':
|
|
1458
|
+
const optionMoisAnnee = {
|
|
1459
|
+
month: '2-digit',
|
|
1460
|
+
year: 'numeric'
|
|
1461
|
+
};
|
|
1462
|
+
return new Intl.DateTimeFormat('fr-FR', optionMoisAnnee).format(val);
|
|
1463
|
+
case 'hour':
|
|
1464
|
+
const optionHeureMinute = {
|
|
1465
|
+
hour: '2-digit',
|
|
1466
|
+
minute: '2-digit',
|
|
1467
|
+
hour12: false
|
|
1468
|
+
};
|
|
1469
|
+
return new Intl.DateTimeFormat('fr-FR', optionHeureMinute).format(val);
|
|
1470
|
+
case 'datehour':
|
|
1471
|
+
const optionDateHour = {
|
|
1472
|
+
year: 'numeric',
|
|
1473
|
+
month: '2-digit',
|
|
1474
|
+
day: '2-digit',
|
|
1475
|
+
hour: '2-digit',
|
|
1476
|
+
minute: '2-digit',
|
|
1477
|
+
hour12: false
|
|
1478
|
+
};
|
|
1479
|
+
return new Intl.DateTimeFormat('fr-FR', optionDateHour).format(val);
|
|
1480
|
+
default:
|
|
1481
|
+
return new Intl.DateTimeFormat('fr-FR').format(val);
|
|
1482
|
+
}
|
|
1483
|
+
}
|
|
1484
|
+
else {
|
|
1485
|
+
return new Intl.DateTimeFormat('fr-FR').format(val);
|
|
1481
1486
|
}
|
|
1482
1487
|
}
|
|
1483
1488
|
return '';
|
|
@@ -1501,6 +1506,7 @@ class CilogGridComponent {
|
|
|
1501
1506
|
width: 100,
|
|
1502
1507
|
resizable: false,
|
|
1503
1508
|
cellClass: 'no-padding-cell',
|
|
1509
|
+
suppressSizeToFit: true,
|
|
1504
1510
|
cellRendererSelector: (params) => {
|
|
1505
1511
|
if (params.node.isRowPinned()) {
|
|
1506
1512
|
return undefined;
|