@anguless/angulux 22.0.0-rc.0 → 22.1.0
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/README.md +284 -0
- package/fesm2022/anguless-angulux-api.mjs +20 -62
- package/fesm2022/anguless-angulux-api.mjs.map +1 -1
- package/fesm2022/anguless-angulux-button.mjs +25 -56
- package/fesm2022/anguless-angulux-button.mjs.map +1 -1
- package/fesm2022/anguless-angulux-card.mjs +33 -93
- package/fesm2022/anguless-angulux-card.mjs.map +1 -1
- package/fesm2022/anguless-angulux-checkbox.mjs +9 -29
- package/fesm2022/anguless-angulux-checkbox.mjs.map +1 -1
- package/fesm2022/anguless-angulux-chip.mjs +11 -31
- package/fesm2022/anguless-angulux-chip.mjs.map +1 -1
- package/fesm2022/anguless-angulux-confirmdialog.mjs +43 -108
- package/fesm2022/anguless-angulux-confirmdialog.mjs.map +1 -1
- package/fesm2022/anguless-angulux-datepicker.mjs +95 -203
- package/fesm2022/anguless-angulux-datepicker.mjs.map +1 -1
- package/fesm2022/anguless-angulux-dialog.mjs +41 -105
- package/fesm2022/anguless-angulux-dialog.mjs.map +1 -1
- package/fesm2022/anguless-angulux-drawer.mjs +25 -73
- package/fesm2022/anguless-angulux-drawer.mjs.map +1 -1
- package/fesm2022/anguless-angulux-fileupload.mjs +71 -147
- package/fesm2022/anguless-angulux-fileupload.mjs.map +1 -1
- package/fesm2022/anguless-angulux-inputnumber.mjs +29 -60
- package/fesm2022/anguless-angulux-inputnumber.mjs.map +1 -1
- package/fesm2022/anguless-angulux-menu.mjs +24 -74
- package/fesm2022/anguless-angulux-menu.mjs.map +1 -1
- package/fesm2022/anguless-angulux-message.mjs +21 -52
- package/fesm2022/anguless-angulux-message.mjs.map +1 -1
- package/fesm2022/anguless-angulux-multiselect.mjs +91 -236
- package/fesm2022/anguless-angulux-multiselect.mjs.map +1 -1
- package/fesm2022/anguless-angulux-overlay.mjs +9 -30
- package/fesm2022/anguless-angulux-overlay.mjs.map +1 -1
- package/fesm2022/anguless-angulux-paginator.mjs +48 -94
- package/fesm2022/anguless-angulux-paginator.mjs.map +1 -1
- package/fesm2022/anguless-angulux-password.mjs +34 -89
- package/fesm2022/anguless-angulux-password.mjs.map +1 -1
- package/fesm2022/anguless-angulux-popover.mjs +7 -24
- package/fesm2022/anguless-angulux-popover.mjs.map +1 -1
- package/fesm2022/anguless-angulux-progressbar.mjs +9 -28
- package/fesm2022/anguless-angulux-progressbar.mjs.map +1 -1
- package/fesm2022/anguless-angulux-scroller.mjs +27 -68
- package/fesm2022/anguless-angulux-scroller.mjs.map +1 -1
- package/fesm2022/anguless-angulux-select.mjs +73 -213
- package/fesm2022/anguless-angulux-select.mjs.map +1 -1
- package/fesm2022/anguless-angulux-selectbutton.mjs +9 -26
- package/fesm2022/anguless-angulux-selectbutton.mjs.map +1 -1
- package/fesm2022/anguless-angulux-splitbutton.mjs +14 -41
- package/fesm2022/anguless-angulux-splitbutton.mjs.map +1 -1
- package/fesm2022/anguless-angulux-table.mjs +251 -557
- package/fesm2022/anguless-angulux-table.mjs.map +1 -1
- package/fesm2022/anguless-angulux-tabs.mjs +14 -38
- package/fesm2022/anguless-angulux-tabs.mjs.map +1 -1
- package/fesm2022/anguless-angulux-tag.mjs +11 -28
- package/fesm2022/anguless-angulux-tag.mjs.map +1 -1
- package/fesm2022/anguless-angulux-tieredmenu.mjs +16 -43
- package/fesm2022/anguless-angulux-tieredmenu.mjs.map +1 -1
- package/fesm2022/anguless-angulux-timeline.mjs +15 -46
- package/fesm2022/anguless-angulux-timeline.mjs.map +1 -1
- package/fesm2022/anguless-angulux-toast.mjs +12 -37
- package/fesm2022/anguless-angulux-toast.mjs.map +1 -1
- package/fesm2022/anguless-angulux-togglebutton.mjs +14 -41
- package/fesm2022/anguless-angulux-togglebutton.mjs.map +1 -1
- package/fesm2022/anguless-angulux-toggleswitch.mjs +9 -29
- package/fesm2022/anguless-angulux-toggleswitch.mjs.map +1 -1
- package/fesm2022/anguless-angulux-treetable.mjs +173 -372
- package/fesm2022/anguless-angulux-treetable.mjs.map +1 -1
- package/package.json +5 -5
- package/types/anguless-angulux-api.d.ts +17 -21
- package/types/anguless-angulux-button.d.ts +6 -12
- package/types/anguless-angulux-card.d.ts +8 -17
- package/types/anguless-angulux-checkbox.d.ts +4 -8
- package/types/anguless-angulux-chip.d.ts +4 -8
- package/types/anguless-angulux-confirmdialog.d.ts +19 -29
- package/types/anguless-angulux-datepicker.d.ts +27 -42
- package/types/anguless-angulux-dialog.d.ts +10 -20
- package/types/anguless-angulux-drawer.d.ts +8 -16
- package/types/anguless-angulux-fileupload.d.ts +27 -38
- package/types/anguless-angulux-inputnumber.d.ts +6 -12
- package/types/anguless-angulux-menu.d.ts +27 -39
- package/types/anguless-angulux-message.d.ts +6 -12
- package/types/anguless-angulux-multiselect.d.ts +20 -41
- package/types/anguless-angulux-overlay.d.ts +4 -7
- package/types/anguless-angulux-paginator.d.ts +17 -25
- package/types/anguless-angulux-password.d.ts +30 -38
- package/types/anguless-angulux-popover.d.ts +4 -7
- package/types/anguless-angulux-progressbar.d.ts +4 -8
- package/types/anguless-angulux-scroller.d.ts +7 -13
- package/types/anguless-angulux-select.d.ts +16 -49
- package/types/anguless-angulux-selectbutton.d.ts +4 -8
- package/types/anguless-angulux-splitbutton.d.ts +17 -21
- package/types/anguless-angulux-table.d.ts +42 -93
- package/types/anguless-angulux-tabs.d.ts +4 -9
- package/types/anguless-angulux-tag.d.ts +4 -8
- package/types/anguless-angulux-tieredmenu.d.ts +5 -9
- package/types/anguless-angulux-timeline.d.ts +5 -11
- package/types/anguless-angulux-toast.d.ts +22 -26
- package/types/anguless-angulux-togglebutton.d.ts +5 -11
- package/types/anguless-angulux-toggleswitch.d.ts +4 -8
- package/types/anguless-angulux-treetable.d.ts +40 -62
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
export * from '@anguless/angulux/types/treetable';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { Injectable, InjectionToken, inject, EventEmitter, NgZone, booleanAttribute, numberAttribute,
|
|
3
|
+
import { Injectable, InjectionToken, inject, EventEmitter, contentChild, NgZone, booleanAttribute, numberAttribute, ViewChild, Output, Input, ViewEncapsulation, ChangeDetectionStrategy, Component, HostListener, Directive, NgModule } from '@angular/core';
|
|
4
4
|
import { BaseStyle } from '@anguless/angulux/base';
|
|
5
5
|
import * as i2 from '@angular/common';
|
|
6
6
|
import { isPlatformBrowser, CommonModule } from '@angular/common';
|
|
7
|
-
import * as
|
|
7
|
+
import * as i5 from '@angular/forms';
|
|
8
8
|
import { FormsModule } from '@angular/forms';
|
|
9
9
|
import { resolveFieldData, isEmpty, getOffset, addStyle, findSingle, getIndex, calculateScrollbarWidth, getHiddenElementOuterWidth, getHiddenElementOuterHeight, reorderArray, isClickable, equals, find, removeClass, addClass, calculateScrollbarHeight, clearSelection, invokeElementMethod, focus, isNotEmpty, getAttribute } from '@anguless/angulux-utils';
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import * as i5 from '@anguless/angulux/badge';
|
|
10
|
+
import { FilterService, SharedModule } from '@anguless/angulux/api';
|
|
11
|
+
import * as i4 from '@anguless/angulux/badge';
|
|
13
12
|
import { BadgeModule } from '@anguless/angulux/badge';
|
|
14
13
|
import { BaseComponent, PARENT_INSTANCE } from '@anguless/angulux/basecomponent';
|
|
15
14
|
import * as i1 from '@anguless/angulux/bind';
|
|
@@ -1301,58 +1300,32 @@ class TreeTable extends BaseComponent {
|
|
|
1301
1300
|
_sortOrder = 1;
|
|
1302
1301
|
filteredNodes;
|
|
1303
1302
|
filterTimeout;
|
|
1304
|
-
_colGroupTemplate;
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
_frozenColGroupTemplate;
|
|
1331
|
-
frozenColGroupTemplate;
|
|
1332
|
-
_loadingIconTemplate;
|
|
1333
|
-
loadingIconTemplate;
|
|
1334
|
-
_reorderIndicatorUpIconTemplate;
|
|
1335
|
-
reorderIndicatorUpIconTemplate;
|
|
1336
|
-
_reorderIndicatorDownIconTemplate;
|
|
1337
|
-
reorderIndicatorDownIconTemplate;
|
|
1338
|
-
_sortIconTemplate;
|
|
1339
|
-
sortIconTemplate;
|
|
1340
|
-
_checkboxIconTemplate;
|
|
1341
|
-
checkboxIconTemplate;
|
|
1342
|
-
_headerCheckboxIconTemplate;
|
|
1343
|
-
headerCheckboxIconTemplate;
|
|
1344
|
-
_togglerIconTemplate;
|
|
1345
|
-
togglerIconTemplate;
|
|
1346
|
-
_paginatorFirstPageLinkIconTemplate;
|
|
1347
|
-
paginatorFirstPageLinkIconTemplate;
|
|
1348
|
-
_paginatorLastPageLinkIconTemplate;
|
|
1349
|
-
paginatorLastPageLinkIconTemplate;
|
|
1350
|
-
_paginatorPreviousPageLinkIconTemplate;
|
|
1351
|
-
paginatorPreviousPageLinkIconTemplate;
|
|
1352
|
-
_paginatorNextPageLinkIconTemplate;
|
|
1353
|
-
paginatorNextPageLinkIconTemplate;
|
|
1354
|
-
_loaderTemplate;
|
|
1355
|
-
loaderTemplate;
|
|
1303
|
+
_colGroupTemplate = contentChild('colgroup', { ...(ngDevMode ? { debugName: "_colGroupTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1304
|
+
_captionTemplate = contentChild('caption', { ...(ngDevMode ? { debugName: "_captionTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1305
|
+
_headerTemplate = contentChild('header', { ...(ngDevMode ? { debugName: "_headerTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1306
|
+
_bodyTemplate = contentChild('body', { ...(ngDevMode ? { debugName: "_bodyTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1307
|
+
_footerTemplate = contentChild('footer', { ...(ngDevMode ? { debugName: "_footerTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1308
|
+
_summaryTemplate = contentChild('summary', { ...(ngDevMode ? { debugName: "_summaryTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1309
|
+
_emptyMessageTemplate = contentChild('emptymessage', { ...(ngDevMode ? { debugName: "_emptyMessageTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1310
|
+
_paginatorLeftTemplate = contentChild('paginatorleft', { ...(ngDevMode ? { debugName: "_paginatorLeftTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1311
|
+
_paginatorRightTemplate = contentChild('paginatorright', { ...(ngDevMode ? { debugName: "_paginatorRightTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1312
|
+
_paginatorDropdownItemTemplate = contentChild('paginatordropdownitem', { ...(ngDevMode ? { debugName: "_paginatorDropdownItemTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1313
|
+
_frozenHeaderTemplate = contentChild('frozenheader', { ...(ngDevMode ? { debugName: "_frozenHeaderTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1314
|
+
_frozenBodyTemplate = contentChild('frozenbody', { ...(ngDevMode ? { debugName: "_frozenBodyTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1315
|
+
_frozenFooterTemplate = contentChild('frozenfooter', { ...(ngDevMode ? { debugName: "_frozenFooterTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1316
|
+
_frozenColGroupTemplate = contentChild('frozencolgroup', { ...(ngDevMode ? { debugName: "_frozenColGroupTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1317
|
+
_loadingIconTemplate = contentChild('loadingicon', { ...(ngDevMode ? { debugName: "_loadingIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1318
|
+
_reorderIndicatorUpIconTemplate = contentChild('reorderindicatorupicon', { ...(ngDevMode ? { debugName: "_reorderIndicatorUpIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1319
|
+
_reorderIndicatorDownIconTemplate = contentChild('reorderindicatordownicon', { ...(ngDevMode ? { debugName: "_reorderIndicatorDownIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1320
|
+
_sortIconTemplate = contentChild('sorticon', { ...(ngDevMode ? { debugName: "_sortIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1321
|
+
_checkboxIconTemplate = contentChild('checkboxicon', { ...(ngDevMode ? { debugName: "_checkboxIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1322
|
+
_headerCheckboxIconTemplate = contentChild('headercheckboxicon', { ...(ngDevMode ? { debugName: "_headerCheckboxIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1323
|
+
_togglerIconTemplate = contentChild('togglericon', { ...(ngDevMode ? { debugName: "_togglerIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1324
|
+
_paginatorFirstPageLinkIconTemplate = contentChild('paginatorfirstpagelinkicon', { ...(ngDevMode ? { debugName: "_paginatorFirstPageLinkIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1325
|
+
_paginatorLastPageLinkIconTemplate = contentChild('paginatorlastpagelinkicon', { ...(ngDevMode ? { debugName: "_paginatorLastPageLinkIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1326
|
+
_paginatorPreviousPageLinkIconTemplate = contentChild('paginatorpreviouspagelinkicon', { ...(ngDevMode ? { debugName: "_paginatorPreviousPageLinkIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1327
|
+
_paginatorNextPageLinkIconTemplate = contentChild('paginatornextpagelinkicon', { ...(ngDevMode ? { debugName: "_paginatorNextPageLinkIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1328
|
+
_loaderTemplate = contentChild('loader', { ...(ngDevMode ? { debugName: "_loaderTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
1356
1329
|
lastResizerHelperX;
|
|
1357
1330
|
reorderIconWidth;
|
|
1358
1331
|
reorderIconHeight;
|
|
@@ -1375,91 +1348,6 @@ class TreeTable extends BaseComponent {
|
|
|
1375
1348
|
}
|
|
1376
1349
|
this.initialized = true;
|
|
1377
1350
|
}
|
|
1378
|
-
templates;
|
|
1379
|
-
onAfterContentInit() {
|
|
1380
|
-
this.templates.forEach((item) => {
|
|
1381
|
-
switch (item.getType()) {
|
|
1382
|
-
case 'caption':
|
|
1383
|
-
this.captionTemplate = item.template;
|
|
1384
|
-
break;
|
|
1385
|
-
case 'header':
|
|
1386
|
-
this.headerTemplate = item.template;
|
|
1387
|
-
break;
|
|
1388
|
-
case 'body':
|
|
1389
|
-
this.bodyTemplate = item.template;
|
|
1390
|
-
break;
|
|
1391
|
-
case 'footer':
|
|
1392
|
-
this.footerTemplate = item.template;
|
|
1393
|
-
break;
|
|
1394
|
-
case 'summary':
|
|
1395
|
-
this.summaryTemplate = item.template;
|
|
1396
|
-
break;
|
|
1397
|
-
case 'colgroup':
|
|
1398
|
-
this.colGroupTemplate = item.template;
|
|
1399
|
-
break;
|
|
1400
|
-
case 'emptymessage':
|
|
1401
|
-
this.emptyMessageTemplate = item.template;
|
|
1402
|
-
break;
|
|
1403
|
-
case 'paginatorleft':
|
|
1404
|
-
this.paginatorLeftTemplate = item.template;
|
|
1405
|
-
break;
|
|
1406
|
-
case 'paginatorright':
|
|
1407
|
-
this.paginatorRightTemplate = item.template;
|
|
1408
|
-
break;
|
|
1409
|
-
case 'paginatordropdownitem':
|
|
1410
|
-
this.paginatorDropdownItemTemplate = item.template;
|
|
1411
|
-
break;
|
|
1412
|
-
case 'frozenheader':
|
|
1413
|
-
this.frozenHeaderTemplate = item.template;
|
|
1414
|
-
break;
|
|
1415
|
-
case 'frozenbody':
|
|
1416
|
-
this.frozenBodyTemplate = item.template;
|
|
1417
|
-
break;
|
|
1418
|
-
case 'frozenfooter':
|
|
1419
|
-
this.frozenFooterTemplate = item.template;
|
|
1420
|
-
break;
|
|
1421
|
-
case 'frozencolgroup':
|
|
1422
|
-
this.frozenColGroupTemplate = item.template;
|
|
1423
|
-
break;
|
|
1424
|
-
case 'loadingicon':
|
|
1425
|
-
this.loadingIconTemplate = item.template;
|
|
1426
|
-
break;
|
|
1427
|
-
case 'reorderindicatorupicon':
|
|
1428
|
-
this.reorderIndicatorUpIconTemplate = item.template;
|
|
1429
|
-
break;
|
|
1430
|
-
case 'reorderindicatordownicon':
|
|
1431
|
-
this.reorderIndicatorDownIconTemplate = item.template;
|
|
1432
|
-
break;
|
|
1433
|
-
case 'sorticon':
|
|
1434
|
-
this.sortIconTemplate = item.template;
|
|
1435
|
-
break;
|
|
1436
|
-
case 'checkboxicon':
|
|
1437
|
-
this.checkboxIconTemplate = item.template;
|
|
1438
|
-
break;
|
|
1439
|
-
case 'headercheckboxicon':
|
|
1440
|
-
this.headerCheckboxIconTemplate = item.template;
|
|
1441
|
-
break;
|
|
1442
|
-
case 'togglericon':
|
|
1443
|
-
this.togglerIconTemplate = item.template;
|
|
1444
|
-
break;
|
|
1445
|
-
case 'paginatorfirstpagelinkicon':
|
|
1446
|
-
this.paginatorFirstPageLinkIconTemplate = item.template;
|
|
1447
|
-
break;
|
|
1448
|
-
case 'paginatorlastpagelinkicon':
|
|
1449
|
-
this.paginatorLastPageLinkIconTemplate = item.template;
|
|
1450
|
-
break;
|
|
1451
|
-
case 'paginatorpreviouspagelinkicon':
|
|
1452
|
-
this.paginatorPreviousPageLinkIconTemplate = item.template;
|
|
1453
|
-
break;
|
|
1454
|
-
case 'paginatornextpagelinkicon':
|
|
1455
|
-
this.paginatorNextPageLinkIconTemplate = item.template;
|
|
1456
|
-
break;
|
|
1457
|
-
case 'loader':
|
|
1458
|
-
this.loaderTemplate = item.template;
|
|
1459
|
-
break;
|
|
1460
|
-
}
|
|
1461
|
-
});
|
|
1462
|
-
}
|
|
1463
1351
|
filterService = inject(FilterService);
|
|
1464
1352
|
tableService = inject(TreeTableService);
|
|
1465
1353
|
zone = inject(NgZone);
|
|
@@ -2655,18 +2543,18 @@ class TreeTable extends BaseComponent {
|
|
|
2655
2543
|
});
|
|
2656
2544
|
}
|
|
2657
2545
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: TreeTable, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2658
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
2546
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: TreeTable, isStandalone: false, selector: "agl-treeTable, agl-treetable, agl-tree-table", inputs: { columns: "columns", styleClass: "styleClass", tableStyle: "tableStyle", tableStyleClass: "tableStyleClass", autoLayout: ["autoLayout", "autoLayout", booleanAttribute], lazy: ["lazy", "lazy", booleanAttribute], lazyLoadOnInit: ["lazyLoadOnInit", "lazyLoadOnInit", booleanAttribute], paginator: ["paginator", "paginator", booleanAttribute], rows: ["rows", "rows", numberAttribute], first: ["first", "first", numberAttribute], pageLinks: ["pageLinks", "pageLinks", numberAttribute], rowsPerPageOptions: "rowsPerPageOptions", alwaysShowPaginator: ["alwaysShowPaginator", "alwaysShowPaginator", booleanAttribute], paginatorPosition: "paginatorPosition", paginatorStyleClass: "paginatorStyleClass", paginatorDropdownAppendTo: "paginatorDropdownAppendTo", currentPageReportTemplate: "currentPageReportTemplate", showCurrentPageReport: ["showCurrentPageReport", "showCurrentPageReport", booleanAttribute], showJumpToPageDropdown: ["showJumpToPageDropdown", "showJumpToPageDropdown", booleanAttribute], showFirstLastIcon: ["showFirstLastIcon", "showFirstLastIcon", booleanAttribute], showPageLinks: ["showPageLinks", "showPageLinks", booleanAttribute], defaultSortOrder: ["defaultSortOrder", "defaultSortOrder", numberAttribute], sortMode: "sortMode", resetPageOnSort: ["resetPageOnSort", "resetPageOnSort", booleanAttribute], customSort: ["customSort", "customSort", booleanAttribute], selectionMode: "selectionMode", contextMenuSelection: "contextMenuSelection", contextMenuSelectionMode: "contextMenuSelectionMode", dataKey: "dataKey", metaKeySelection: ["metaKeySelection", "metaKeySelection", booleanAttribute], compareSelectionBy: "compareSelectionBy", rowHover: ["rowHover", "rowHover", booleanAttribute], loading: ["loading", "loading", booleanAttribute], loadingIcon: "loadingIcon", showLoader: ["showLoader", "showLoader", booleanAttribute], scrollable: ["scrollable", "scrollable", booleanAttribute], scrollHeight: "scrollHeight", virtualScroll: ["virtualScroll", "virtualScroll", booleanAttribute], virtualScrollItemSize: ["virtualScrollItemSize", "virtualScrollItemSize", numberAttribute], virtualScrollOptions: "virtualScrollOptions", virtualScrollDelay: ["virtualScrollDelay", "virtualScrollDelay", numberAttribute], frozenWidth: "frozenWidth", frozenColumns: "frozenColumns", resizableColumns: ["resizableColumns", "resizableColumns", booleanAttribute], columnResizeMode: "columnResizeMode", reorderableColumns: ["reorderableColumns", "reorderableColumns", booleanAttribute], contextMenu: "contextMenu", rowTrackBy: "rowTrackBy", filters: "filters", globalFilterFields: "globalFilterFields", filterDelay: ["filterDelay", "filterDelay", numberAttribute], filterMode: "filterMode", filterLocale: "filterLocale", paginatorLocale: "paginatorLocale", totalRecords: "totalRecords", sortField: "sortField", sortOrder: "sortOrder", multiSortMeta: "multiSortMeta", selection: "selection", value: "value", virtualRowHeight: "virtualRowHeight", selectionKeys: "selectionKeys", showGridlines: ["showGridlines", "showGridlines", booleanAttribute] }, outputs: { selectionChange: "selectionChange", contextMenuSelectionChange: "contextMenuSelectionChange", onFilter: "onFilter", onNodeExpand: "onNodeExpand", onNodeCollapse: "onNodeCollapse", onPage: "onPage", onSort: "onSort", onLazyLoad: "onLazyLoad", sortFunction: "sortFunction", onColResize: "onColResize", onColReorder: "onColReorder", onNodeSelect: "onNodeSelect", onNodeUnselect: "onNodeUnselect", onContextMenuSelect: "onContextMenuSelect", onHeaderCheckboxToggle: "onHeaderCheckboxToggle", onEditInit: "onEditInit", onEditComplete: "onEditComplete", onEditCancel: "onEditCancel", selectionKeysChange: "selectionKeysChange" }, host: { properties: { "class": "cn(cx('root'), styleClass)", "attr.data-p": "dataP", "attr.data-scrollselectors": "'.p-treetable-scrollable-body'" } }, providers: [TreeTableService, TreeTableStyle, { provide: TREETABLE_INSTANCE, useExisting: TreeTable }, { provide: PARENT_INSTANCE, useExisting: TreeTable }], queries: [{ propertyName: "_colGroupTemplate", first: true, predicate: ["colgroup"], isSignal: true }, { propertyName: "_captionTemplate", first: true, predicate: ["caption"], isSignal: true }, { propertyName: "_headerTemplate", first: true, predicate: ["header"], isSignal: true }, { propertyName: "_bodyTemplate", first: true, predicate: ["body"], isSignal: true }, { propertyName: "_footerTemplate", first: true, predicate: ["footer"], isSignal: true }, { propertyName: "_summaryTemplate", first: true, predicate: ["summary"], isSignal: true }, { propertyName: "_emptyMessageTemplate", first: true, predicate: ["emptymessage"], isSignal: true }, { propertyName: "_paginatorLeftTemplate", first: true, predicate: ["paginatorleft"], isSignal: true }, { propertyName: "_paginatorRightTemplate", first: true, predicate: ["paginatorright"], isSignal: true }, { propertyName: "_paginatorDropdownItemTemplate", first: true, predicate: ["paginatordropdownitem"], isSignal: true }, { propertyName: "_frozenHeaderTemplate", first: true, predicate: ["frozenheader"], isSignal: true }, { propertyName: "_frozenBodyTemplate", first: true, predicate: ["frozenbody"], isSignal: true }, { propertyName: "_frozenFooterTemplate", first: true, predicate: ["frozenfooter"], isSignal: true }, { propertyName: "_frozenColGroupTemplate", first: true, predicate: ["frozencolgroup"], isSignal: true }, { propertyName: "_loadingIconTemplate", first: true, predicate: ["loadingicon"], isSignal: true }, { propertyName: "_reorderIndicatorUpIconTemplate", first: true, predicate: ["reorderindicatorupicon"], isSignal: true }, { propertyName: "_reorderIndicatorDownIconTemplate", first: true, predicate: ["reorderindicatordownicon"], isSignal: true }, { propertyName: "_sortIconTemplate", first: true, predicate: ["sorticon"], isSignal: true }, { propertyName: "_checkboxIconTemplate", first: true, predicate: ["checkboxicon"], isSignal: true }, { propertyName: "_headerCheckboxIconTemplate", first: true, predicate: ["headercheckboxicon"], isSignal: true }, { propertyName: "_togglerIconTemplate", first: true, predicate: ["togglericon"], isSignal: true }, { propertyName: "_paginatorFirstPageLinkIconTemplate", first: true, predicate: ["paginatorfirstpagelinkicon"], isSignal: true }, { propertyName: "_paginatorLastPageLinkIconTemplate", first: true, predicate: ["paginatorlastpagelinkicon"], isSignal: true }, { propertyName: "_paginatorPreviousPageLinkIconTemplate", first: true, predicate: ["paginatorpreviouspagelinkicon"], isSignal: true }, { propertyName: "_paginatorNextPageLinkIconTemplate", first: true, predicate: ["paginatornextpagelinkicon"], isSignal: true }, { propertyName: "_loaderTemplate", first: true, predicate: ["loader"], isSignal: true }], viewQueries: [{ propertyName: "resizeHelperViewChild", first: true, predicate: ["resizeHelper"], descendants: true }, { propertyName: "reorderIndicatorUpViewChild", first: true, predicate: ["reorderIndicatorUp"], descendants: true }, { propertyName: "reorderIndicatorDownViewChild", first: true, predicate: ["reorderIndicatorDown"], descendants: true }, { propertyName: "tableViewChild", first: true, predicate: ["table"], descendants: true }, { propertyName: "scrollableViewChild", first: true, predicate: ["scrollableView"], descendants: true }, { propertyName: "scrollableFrozenViewChild", first: true, predicate: ["scrollableFrozenView"], descendants: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
2659
2547
|
<div [aglBind]="ptm('mask')" [class]="cx('mask')" *ngIf="loading && showLoader" animate.enter="p-overlay-mask-enter-active" animate.leave="p-overlay-mask-leave-active">
|
|
2660
2548
|
<i *ngIf="loadingIcon" [class]="cn(cx('loadingIcon'), 'pi-spin' + loadingIcon)"></i>
|
|
2661
2549
|
<ng-container *ngIf="!loadingIcon">
|
|
2662
|
-
<svg data-p-icon="spinner" *ngIf="!
|
|
2663
|
-
<span *ngIf="
|
|
2664
|
-
<ng-template *ngTemplateOutlet="
|
|
2550
|
+
<svg data-p-icon="spinner" *ngIf="!_loadingIconTemplate()" [spin]="true" [class]="cx('loadingIcon')" />
|
|
2551
|
+
<span *ngIf="_loadingIconTemplate()" [class]="cx('loadingIcon')">
|
|
2552
|
+
<ng-template *ngTemplateOutlet="_loadingIconTemplate()"></ng-template>
|
|
2665
2553
|
</span>
|
|
2666
2554
|
</ng-container>
|
|
2667
2555
|
</div>
|
|
2668
|
-
<div [aglBind]="ptm('header')" *ngIf="
|
|
2669
|
-
<ng-container *ngTemplateOutlet="
|
|
2556
|
+
<div [aglBind]="ptm('header')" *ngIf="_captionTemplate()" [class]="cx('header')">
|
|
2557
|
+
<ng-container *ngTemplateOutlet="_captionTemplate()"></ng-container>
|
|
2670
2558
|
</div>
|
|
2671
2559
|
<agl-paginator
|
|
2672
2560
|
[pt]="ptm('pcPaginator')"
|
|
@@ -2679,44 +2567,44 @@ class TreeTable extends BaseComponent {
|
|
|
2679
2567
|
(onPageChange)="onPageChange($event)"
|
|
2680
2568
|
[rowsPerPageOptions]="rowsPerPageOptions"
|
|
2681
2569
|
*ngIf="paginator && (paginatorPosition === 'top' || paginatorPosition == 'both')"
|
|
2682
|
-
[templateLeft]="
|
|
2683
|
-
[templateRight]="
|
|
2570
|
+
[templateLeft]="_paginatorLeftTemplate()"
|
|
2571
|
+
[templateRight]="_paginatorRightTemplate()"
|
|
2684
2572
|
[appendTo]="paginatorDropdownAppendTo"
|
|
2685
2573
|
[currentPageReportTemplate]="currentPageReportTemplate"
|
|
2686
2574
|
[showFirstLastIcon]="showFirstLastIcon"
|
|
2687
|
-
[dropdownItemTemplate]="
|
|
2575
|
+
[dropdownItemTemplate]="_paginatorDropdownItemTemplate()"
|
|
2688
2576
|
[showCurrentPageReport]="showCurrentPageReport"
|
|
2689
2577
|
[showJumpToPageDropdown]="showJumpToPageDropdown"
|
|
2690
2578
|
[showPageLinks]="showPageLinks"
|
|
2691
2579
|
[locale]="paginatorLocale"
|
|
2692
2580
|
[unstyled]="unstyled()"
|
|
2693
2581
|
>
|
|
2694
|
-
<ng-template
|
|
2695
|
-
<ng-container *ngTemplateOutlet="
|
|
2582
|
+
<ng-template #firstpagelinkicon *ngIf="_paginatorFirstPageLinkIconTemplate()">
|
|
2583
|
+
<ng-container *ngTemplateOutlet="_paginatorFirstPageLinkIconTemplate()"></ng-container>
|
|
2696
2584
|
</ng-template>
|
|
2697
2585
|
|
|
2698
|
-
<ng-template
|
|
2699
|
-
<ng-container *ngTemplateOutlet="
|
|
2586
|
+
<ng-template #previouspagelinkicon *ngIf="_paginatorPreviousPageLinkIconTemplate()">
|
|
2587
|
+
<ng-container *ngTemplateOutlet="_paginatorPreviousPageLinkIconTemplate()"></ng-container>
|
|
2700
2588
|
</ng-template>
|
|
2701
2589
|
|
|
2702
|
-
<ng-template
|
|
2703
|
-
<ng-container *ngTemplateOutlet="
|
|
2590
|
+
<ng-template #lastpagelinkicon *ngIf="_paginatorLastPageLinkIconTemplate()">
|
|
2591
|
+
<ng-container *ngTemplateOutlet="_paginatorLastPageLinkIconTemplate()"></ng-container>
|
|
2704
2592
|
</ng-template>
|
|
2705
2593
|
|
|
2706
|
-
<ng-template
|
|
2707
|
-
<ng-container *ngTemplateOutlet="
|
|
2594
|
+
<ng-template #nextpagelinkicon *ngIf="_paginatorNextPageLinkIconTemplate()">
|
|
2595
|
+
<ng-container *ngTemplateOutlet="_paginatorNextPageLinkIconTemplate()"></ng-container>
|
|
2708
2596
|
</ng-template>
|
|
2709
2597
|
</agl-paginator>
|
|
2710
2598
|
|
|
2711
2599
|
<div [aglBind]="ptm('wrapper')" [class]="cx('wrapper')" *ngIf="!scrollable">
|
|
2712
2600
|
<table role="treegrid" [aglBind]="ptm('table')" #table [ngClass]="tableStyleClass" [ngStyle]="tableStyle">
|
|
2713
|
-
<ng-container *ngTemplateOutlet="
|
|
2601
|
+
<ng-container *ngTemplateOutlet="_colGroupTemplate(); context: { $implicit: columns }"></ng-container>
|
|
2714
2602
|
<thead role="rowgroup" [class]="cx('thead')" [aglBind]="ptm('thead')">
|
|
2715
|
-
<ng-container *ngTemplateOutlet="
|
|
2603
|
+
<ng-container *ngTemplateOutlet="_headerTemplate(); context: { $implicit: columns }"></ng-container>
|
|
2716
2604
|
</thead>
|
|
2717
|
-
<tbody [class]="cx('tbody')" [aglBind]="ptm('tbody')" role="rowgroup" [unstyled]="unstyled()" [aglTreeTableBody]="columns" [aglTreeTableBodyTemplate]="
|
|
2605
|
+
<tbody [class]="cx('tbody')" [aglBind]="ptm('tbody')" role="rowgroup" [unstyled]="unstyled()" [aglTreeTableBody]="columns" [aglTreeTableBodyTemplate]="_bodyTemplate()"></tbody>
|
|
2718
2606
|
<tfoot [class]="cx('tfoot')" [aglBind]="ptm('tfoot')" role="rowgroup">
|
|
2719
|
-
<ng-container *ngTemplateOutlet="
|
|
2607
|
+
<ng-container *ngTemplateOutlet="_footerTemplate(); context: { $implicit: columns }"></ng-container>
|
|
2720
2608
|
</tfoot>
|
|
2721
2609
|
</table>
|
|
2722
2610
|
</div>
|
|
@@ -2724,7 +2612,7 @@ class TreeTable extends BaseComponent {
|
|
|
2724
2612
|
<div [aglBind]="ptm('scrollableWrapper')" [class]="cx('scrollableWrapper')" *ngIf="scrollable">
|
|
2725
2613
|
<div
|
|
2726
2614
|
[ngClass]="[cx('scrollableView'), cx('frozenView')]"
|
|
2727
|
-
*ngIf="frozenColumns ||
|
|
2615
|
+
*ngIf="frozenColumns || _frozenBodyTemplate()"
|
|
2728
2616
|
#scrollableFrozenView
|
|
2729
2617
|
[ttScrollableView]="frozenColumns"
|
|
2730
2618
|
[unstyled]="unstyled()"
|
|
@@ -2756,48 +2644,48 @@ class TreeTable extends BaseComponent {
|
|
|
2756
2644
|
(onPageChange)="onPageChange($event)"
|
|
2757
2645
|
[rowsPerPageOptions]="rowsPerPageOptions"
|
|
2758
2646
|
*ngIf="paginator && (paginatorPosition === 'bottom' || paginatorPosition == 'both')"
|
|
2759
|
-
[templateLeft]="
|
|
2760
|
-
[templateRight]="
|
|
2647
|
+
[templateLeft]="_paginatorLeftTemplate()"
|
|
2648
|
+
[templateRight]="_paginatorRightTemplate()"
|
|
2761
2649
|
[appendTo]="paginatorDropdownAppendTo"
|
|
2762
2650
|
[currentPageReportTemplate]="currentPageReportTemplate"
|
|
2763
2651
|
[showFirstLastIcon]="showFirstLastIcon"
|
|
2764
|
-
[dropdownItemTemplate]="
|
|
2652
|
+
[dropdownItemTemplate]="_paginatorDropdownItemTemplate()"
|
|
2765
2653
|
[showCurrentPageReport]="showCurrentPageReport"
|
|
2766
2654
|
[showJumpToPageDropdown]="showJumpToPageDropdown"
|
|
2767
2655
|
[showPageLinks]="showPageLinks"
|
|
2768
2656
|
[locale]="paginatorLocale"
|
|
2769
2657
|
[unstyled]="unstyled()"
|
|
2770
2658
|
>
|
|
2771
|
-
<ng-template
|
|
2772
|
-
<ng-container *ngTemplateOutlet="
|
|
2659
|
+
<ng-template #firstpagelinkicon *ngIf="_paginatorFirstPageLinkIconTemplate()">
|
|
2660
|
+
<ng-container *ngTemplateOutlet="_paginatorFirstPageLinkIconTemplate()"></ng-container>
|
|
2773
2661
|
</ng-template>
|
|
2774
2662
|
|
|
2775
|
-
<ng-template
|
|
2776
|
-
<ng-container *ngTemplateOutlet="
|
|
2663
|
+
<ng-template #previouspagelinkicon *ngIf="_paginatorPreviousPageLinkIconTemplate()">
|
|
2664
|
+
<ng-container *ngTemplateOutlet="_paginatorPreviousPageLinkIconTemplate()"></ng-container>
|
|
2777
2665
|
</ng-template>
|
|
2778
2666
|
|
|
2779
|
-
<ng-template
|
|
2780
|
-
<ng-container *ngTemplateOutlet="
|
|
2667
|
+
<ng-template #lastpagelinkicon *ngIf="_paginatorLastPageLinkIconTemplate()">
|
|
2668
|
+
<ng-container *ngTemplateOutlet="_paginatorLastPageLinkIconTemplate()"></ng-container>
|
|
2781
2669
|
</ng-template>
|
|
2782
2670
|
|
|
2783
|
-
<ng-template
|
|
2784
|
-
<ng-container *ngTemplateOutlet="
|
|
2671
|
+
<ng-template #nextpagelinkicon *ngIf="_paginatorNextPageLinkIconTemplate()">
|
|
2672
|
+
<ng-container *ngTemplateOutlet="_paginatorNextPageLinkIconTemplate()"></ng-container>
|
|
2785
2673
|
</ng-template>
|
|
2786
2674
|
</agl-paginator>
|
|
2787
|
-
<div [aglBind]="ptm('footer')" *ngIf="
|
|
2788
|
-
<ng-container *ngTemplateOutlet="
|
|
2675
|
+
<div [aglBind]="ptm('footer')" *ngIf="_summaryTemplate()" [class]="cx('footer')">
|
|
2676
|
+
<ng-container *ngTemplateOutlet="_summaryTemplate()"></ng-container>
|
|
2789
2677
|
</div>
|
|
2790
2678
|
|
|
2791
2679
|
<div [aglBind]="ptm('columnResizerHelper')" #resizeHelper [class]="cx('columnResizerHelper')" [style.display]="'none'" *ngIf="resizableColumns"></div>
|
|
2792
2680
|
<span [aglBind]="ptm('reorderIndicatorUp')" #reorderIndicatorUp [class]="cx('reorderIndicatorUp')" [style.display]="'none'" *ngIf="reorderableColumns">
|
|
2793
|
-
<svg data-p-icon="arrow-down" *ngIf="!
|
|
2794
|
-
<ng-template *ngTemplateOutlet="
|
|
2681
|
+
<svg data-p-icon="arrow-down" *ngIf="!_reorderIndicatorUpIconTemplate()" />
|
|
2682
|
+
<ng-template *ngTemplateOutlet="_reorderIndicatorUpIconTemplate()"></ng-template>
|
|
2795
2683
|
</span>
|
|
2796
2684
|
<span [aglBind]="ptm('reorderIndicatorDown')" #reorderIndicatorDown [class]="cx('reorderIndicatorDown')" [style.display]="'none'" *ngIf="reorderableColumns">
|
|
2797
|
-
<svg data-p-icon="arrow-up" *ngIf="!
|
|
2798
|
-
<ng-template *ngTemplateOutlet="
|
|
2685
|
+
<svg data-p-icon="arrow-up" *ngIf="!_reorderIndicatorDownIconTemplate()" />
|
|
2686
|
+
<ng-template *ngTemplateOutlet="_reorderIndicatorDownIconTemplate()"></ng-template>
|
|
2799
2687
|
</span>
|
|
2800
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(() => i2.NgClass), selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgIf), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgStyle), selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i0.forwardRef(() => i3.Paginator), selector: "agl-paginator", inputs: ["pageLinkSize", "styleClass", "alwaysShow", "dropdownAppendTo", "templateLeft", "templateRight", "dropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showFirstLastIcon", "totalRecords", "rows", "rowsPerPageOptions", "showJumpToPageDropdown", "showJumpToPageInput", "jumpToPageItemTemplate", "showPageLinks", "locale", "dropdownItemTemplate", "first", "appendTo"], outputs: ["onPageChange"] }, { kind: "
|
|
2688
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(() => i2.NgClass), selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgIf), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgStyle), selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i0.forwardRef(() => i3.Paginator), selector: "agl-paginator", inputs: ["pageLinkSize", "styleClass", "alwaysShow", "dropdownAppendTo", "templateLeft", "templateRight", "dropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showFirstLastIcon", "totalRecords", "rows", "rowsPerPageOptions", "showJumpToPageDropdown", "showJumpToPageInput", "jumpToPageItemTemplate", "showPageLinks", "locale", "dropdownItemTemplate", "first", "appendTo"], outputs: ["onPageChange"] }, { kind: "component", type: i0.forwardRef(() => SpinnerIcon), selector: "[data-p-icon=\"spinner\"]" }, { kind: "component", type: i0.forwardRef(() => ArrowDownIcon), selector: "[data-p-icon=\"arrow-down\"]" }, { kind: "component", type: i0.forwardRef(() => ArrowUpIcon), selector: "[data-p-icon=\"arrow-up\"]" }, { kind: "directive", type: i0.forwardRef(() => i1.Bind), selector: "[aglBind]", inputs: ["aglBind"] }, { kind: "component", type: i0.forwardRef(() => TTScrollableView), selector: "[ttScrollableView]", inputs: ["ttScrollableView", "frozen", "scrollHeight"] }, { kind: "component", type: i0.forwardRef(() => TTBody), selector: "[aglTreeTableBody]", inputs: ["aglTreeTableBody", "aglTreeTableBodyTemplate", "frozen", "serializedNodes", "scrollerOptions"] }], changeDetection: i0.ChangeDetectionStrategy.Eager, encapsulation: i0.ViewEncapsulation.None });
|
|
2801
2689
|
}
|
|
2802
2690
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: TreeTable, decorators: [{
|
|
2803
2691
|
type: Component,
|
|
@@ -2809,14 +2697,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
2809
2697
|
<div [aglBind]="ptm('mask')" [class]="cx('mask')" *ngIf="loading && showLoader" animate.enter="p-overlay-mask-enter-active" animate.leave="p-overlay-mask-leave-active">
|
|
2810
2698
|
<i *ngIf="loadingIcon" [class]="cn(cx('loadingIcon'), 'pi-spin' + loadingIcon)"></i>
|
|
2811
2699
|
<ng-container *ngIf="!loadingIcon">
|
|
2812
|
-
<svg data-p-icon="spinner" *ngIf="!
|
|
2813
|
-
<span *ngIf="
|
|
2814
|
-
<ng-template *ngTemplateOutlet="
|
|
2700
|
+
<svg data-p-icon="spinner" *ngIf="!_loadingIconTemplate()" [spin]="true" [class]="cx('loadingIcon')" />
|
|
2701
|
+
<span *ngIf="_loadingIconTemplate()" [class]="cx('loadingIcon')">
|
|
2702
|
+
<ng-template *ngTemplateOutlet="_loadingIconTemplate()"></ng-template>
|
|
2815
2703
|
</span>
|
|
2816
2704
|
</ng-container>
|
|
2817
2705
|
</div>
|
|
2818
|
-
<div [aglBind]="ptm('header')" *ngIf="
|
|
2819
|
-
<ng-container *ngTemplateOutlet="
|
|
2706
|
+
<div [aglBind]="ptm('header')" *ngIf="_captionTemplate()" [class]="cx('header')">
|
|
2707
|
+
<ng-container *ngTemplateOutlet="_captionTemplate()"></ng-container>
|
|
2820
2708
|
</div>
|
|
2821
2709
|
<agl-paginator
|
|
2822
2710
|
[pt]="ptm('pcPaginator')"
|
|
@@ -2829,44 +2717,44 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
2829
2717
|
(onPageChange)="onPageChange($event)"
|
|
2830
2718
|
[rowsPerPageOptions]="rowsPerPageOptions"
|
|
2831
2719
|
*ngIf="paginator && (paginatorPosition === 'top' || paginatorPosition == 'both')"
|
|
2832
|
-
[templateLeft]="
|
|
2833
|
-
[templateRight]="
|
|
2720
|
+
[templateLeft]="_paginatorLeftTemplate()"
|
|
2721
|
+
[templateRight]="_paginatorRightTemplate()"
|
|
2834
2722
|
[appendTo]="paginatorDropdownAppendTo"
|
|
2835
2723
|
[currentPageReportTemplate]="currentPageReportTemplate"
|
|
2836
2724
|
[showFirstLastIcon]="showFirstLastIcon"
|
|
2837
|
-
[dropdownItemTemplate]="
|
|
2725
|
+
[dropdownItemTemplate]="_paginatorDropdownItemTemplate()"
|
|
2838
2726
|
[showCurrentPageReport]="showCurrentPageReport"
|
|
2839
2727
|
[showJumpToPageDropdown]="showJumpToPageDropdown"
|
|
2840
2728
|
[showPageLinks]="showPageLinks"
|
|
2841
2729
|
[locale]="paginatorLocale"
|
|
2842
2730
|
[unstyled]="unstyled()"
|
|
2843
2731
|
>
|
|
2844
|
-
<ng-template
|
|
2845
|
-
<ng-container *ngTemplateOutlet="
|
|
2732
|
+
<ng-template #firstpagelinkicon *ngIf="_paginatorFirstPageLinkIconTemplate()">
|
|
2733
|
+
<ng-container *ngTemplateOutlet="_paginatorFirstPageLinkIconTemplate()"></ng-container>
|
|
2846
2734
|
</ng-template>
|
|
2847
2735
|
|
|
2848
|
-
<ng-template
|
|
2849
|
-
<ng-container *ngTemplateOutlet="
|
|
2736
|
+
<ng-template #previouspagelinkicon *ngIf="_paginatorPreviousPageLinkIconTemplate()">
|
|
2737
|
+
<ng-container *ngTemplateOutlet="_paginatorPreviousPageLinkIconTemplate()"></ng-container>
|
|
2850
2738
|
</ng-template>
|
|
2851
2739
|
|
|
2852
|
-
<ng-template
|
|
2853
|
-
<ng-container *ngTemplateOutlet="
|
|
2740
|
+
<ng-template #lastpagelinkicon *ngIf="_paginatorLastPageLinkIconTemplate()">
|
|
2741
|
+
<ng-container *ngTemplateOutlet="_paginatorLastPageLinkIconTemplate()"></ng-container>
|
|
2854
2742
|
</ng-template>
|
|
2855
2743
|
|
|
2856
|
-
<ng-template
|
|
2857
|
-
<ng-container *ngTemplateOutlet="
|
|
2744
|
+
<ng-template #nextpagelinkicon *ngIf="_paginatorNextPageLinkIconTemplate()">
|
|
2745
|
+
<ng-container *ngTemplateOutlet="_paginatorNextPageLinkIconTemplate()"></ng-container>
|
|
2858
2746
|
</ng-template>
|
|
2859
2747
|
</agl-paginator>
|
|
2860
2748
|
|
|
2861
2749
|
<div [aglBind]="ptm('wrapper')" [class]="cx('wrapper')" *ngIf="!scrollable">
|
|
2862
2750
|
<table role="treegrid" [aglBind]="ptm('table')" #table [ngClass]="tableStyleClass" [ngStyle]="tableStyle">
|
|
2863
|
-
<ng-container *ngTemplateOutlet="
|
|
2751
|
+
<ng-container *ngTemplateOutlet="_colGroupTemplate(); context: { $implicit: columns }"></ng-container>
|
|
2864
2752
|
<thead role="rowgroup" [class]="cx('thead')" [aglBind]="ptm('thead')">
|
|
2865
|
-
<ng-container *ngTemplateOutlet="
|
|
2753
|
+
<ng-container *ngTemplateOutlet="_headerTemplate(); context: { $implicit: columns }"></ng-container>
|
|
2866
2754
|
</thead>
|
|
2867
|
-
<tbody [class]="cx('tbody')" [aglBind]="ptm('tbody')" role="rowgroup" [unstyled]="unstyled()" [aglTreeTableBody]="columns" [aglTreeTableBodyTemplate]="
|
|
2755
|
+
<tbody [class]="cx('tbody')" [aglBind]="ptm('tbody')" role="rowgroup" [unstyled]="unstyled()" [aglTreeTableBody]="columns" [aglTreeTableBodyTemplate]="_bodyTemplate()"></tbody>
|
|
2868
2756
|
<tfoot [class]="cx('tfoot')" [aglBind]="ptm('tfoot')" role="rowgroup">
|
|
2869
|
-
<ng-container *ngTemplateOutlet="
|
|
2757
|
+
<ng-container *ngTemplateOutlet="_footerTemplate(); context: { $implicit: columns }"></ng-container>
|
|
2870
2758
|
</tfoot>
|
|
2871
2759
|
</table>
|
|
2872
2760
|
</div>
|
|
@@ -2874,7 +2762,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
2874
2762
|
<div [aglBind]="ptm('scrollableWrapper')" [class]="cx('scrollableWrapper')" *ngIf="scrollable">
|
|
2875
2763
|
<div
|
|
2876
2764
|
[ngClass]="[cx('scrollableView'), cx('frozenView')]"
|
|
2877
|
-
*ngIf="frozenColumns ||
|
|
2765
|
+
*ngIf="frozenColumns || _frozenBodyTemplate()"
|
|
2878
2766
|
#scrollableFrozenView
|
|
2879
2767
|
[ttScrollableView]="frozenColumns"
|
|
2880
2768
|
[unstyled]="unstyled()"
|
|
@@ -2906,46 +2794,46 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
2906
2794
|
(onPageChange)="onPageChange($event)"
|
|
2907
2795
|
[rowsPerPageOptions]="rowsPerPageOptions"
|
|
2908
2796
|
*ngIf="paginator && (paginatorPosition === 'bottom' || paginatorPosition == 'both')"
|
|
2909
|
-
[templateLeft]="
|
|
2910
|
-
[templateRight]="
|
|
2797
|
+
[templateLeft]="_paginatorLeftTemplate()"
|
|
2798
|
+
[templateRight]="_paginatorRightTemplate()"
|
|
2911
2799
|
[appendTo]="paginatorDropdownAppendTo"
|
|
2912
2800
|
[currentPageReportTemplate]="currentPageReportTemplate"
|
|
2913
2801
|
[showFirstLastIcon]="showFirstLastIcon"
|
|
2914
|
-
[dropdownItemTemplate]="
|
|
2802
|
+
[dropdownItemTemplate]="_paginatorDropdownItemTemplate()"
|
|
2915
2803
|
[showCurrentPageReport]="showCurrentPageReport"
|
|
2916
2804
|
[showJumpToPageDropdown]="showJumpToPageDropdown"
|
|
2917
2805
|
[showPageLinks]="showPageLinks"
|
|
2918
2806
|
[locale]="paginatorLocale"
|
|
2919
2807
|
[unstyled]="unstyled()"
|
|
2920
2808
|
>
|
|
2921
|
-
<ng-template
|
|
2922
|
-
<ng-container *ngTemplateOutlet="
|
|
2809
|
+
<ng-template #firstpagelinkicon *ngIf="_paginatorFirstPageLinkIconTemplate()">
|
|
2810
|
+
<ng-container *ngTemplateOutlet="_paginatorFirstPageLinkIconTemplate()"></ng-container>
|
|
2923
2811
|
</ng-template>
|
|
2924
2812
|
|
|
2925
|
-
<ng-template
|
|
2926
|
-
<ng-container *ngTemplateOutlet="
|
|
2813
|
+
<ng-template #previouspagelinkicon *ngIf="_paginatorPreviousPageLinkIconTemplate()">
|
|
2814
|
+
<ng-container *ngTemplateOutlet="_paginatorPreviousPageLinkIconTemplate()"></ng-container>
|
|
2927
2815
|
</ng-template>
|
|
2928
2816
|
|
|
2929
|
-
<ng-template
|
|
2930
|
-
<ng-container *ngTemplateOutlet="
|
|
2817
|
+
<ng-template #lastpagelinkicon *ngIf="_paginatorLastPageLinkIconTemplate()">
|
|
2818
|
+
<ng-container *ngTemplateOutlet="_paginatorLastPageLinkIconTemplate()"></ng-container>
|
|
2931
2819
|
</ng-template>
|
|
2932
2820
|
|
|
2933
|
-
<ng-template
|
|
2934
|
-
<ng-container *ngTemplateOutlet="
|
|
2821
|
+
<ng-template #nextpagelinkicon *ngIf="_paginatorNextPageLinkIconTemplate()">
|
|
2822
|
+
<ng-container *ngTemplateOutlet="_paginatorNextPageLinkIconTemplate()"></ng-container>
|
|
2935
2823
|
</ng-template>
|
|
2936
2824
|
</agl-paginator>
|
|
2937
|
-
<div [aglBind]="ptm('footer')" *ngIf="
|
|
2938
|
-
<ng-container *ngTemplateOutlet="
|
|
2825
|
+
<div [aglBind]="ptm('footer')" *ngIf="_summaryTemplate()" [class]="cx('footer')">
|
|
2826
|
+
<ng-container *ngTemplateOutlet="_summaryTemplate()"></ng-container>
|
|
2939
2827
|
</div>
|
|
2940
2828
|
|
|
2941
2829
|
<div [aglBind]="ptm('columnResizerHelper')" #resizeHelper [class]="cx('columnResizerHelper')" [style.display]="'none'" *ngIf="resizableColumns"></div>
|
|
2942
2830
|
<span [aglBind]="ptm('reorderIndicatorUp')" #reorderIndicatorUp [class]="cx('reorderIndicatorUp')" [style.display]="'none'" *ngIf="reorderableColumns">
|
|
2943
|
-
<svg data-p-icon="arrow-down" *ngIf="!
|
|
2944
|
-
<ng-template *ngTemplateOutlet="
|
|
2831
|
+
<svg data-p-icon="arrow-down" *ngIf="!_reorderIndicatorUpIconTemplate()" />
|
|
2832
|
+
<ng-template *ngTemplateOutlet="_reorderIndicatorUpIconTemplate()"></ng-template>
|
|
2945
2833
|
</span>
|
|
2946
2834
|
<span [aglBind]="ptm('reorderIndicatorDown')" #reorderIndicatorDown [class]="cx('reorderIndicatorDown')" [style.display]="'none'" *ngIf="reorderableColumns">
|
|
2947
|
-
<svg data-p-icon="arrow-up" *ngIf="!
|
|
2948
|
-
<ng-template *ngTemplateOutlet="
|
|
2835
|
+
<svg data-p-icon="arrow-up" *ngIf="!_reorderIndicatorDownIconTemplate()" />
|
|
2836
|
+
<ng-template *ngTemplateOutlet="_reorderIndicatorDownIconTemplate()"></ng-template>
|
|
2949
2837
|
</span>
|
|
2950
2838
|
`,
|
|
2951
2839
|
providers: [TreeTableService, TreeTableStyle, { provide: TREETABLE_INSTANCE, useExisting: TreeTable }, { provide: PARENT_INSTANCE, useExisting: TreeTable }],
|
|
@@ -3166,88 +3054,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
3166
3054
|
}], scrollableFrozenViewChild: [{
|
|
3167
3055
|
type: ViewChild,
|
|
3168
3056
|
args: ['scrollableFrozenView']
|
|
3169
|
-
}], _colGroupTemplate: [{
|
|
3170
|
-
type: ContentChild,
|
|
3171
|
-
args: ['colgroup', { descendants: false }]
|
|
3172
|
-
}], _captionTemplate: [{
|
|
3173
|
-
type: ContentChild,
|
|
3174
|
-
args: ['caption', { descendants: false }]
|
|
3175
|
-
}], _headerTemplate: [{
|
|
3176
|
-
type: ContentChild,
|
|
3177
|
-
args: ['header', { descendants: false }]
|
|
3178
|
-
}], _bodyTemplate: [{
|
|
3179
|
-
type: ContentChild,
|
|
3180
|
-
args: ['body', { descendants: false }]
|
|
3181
|
-
}], _footerTemplate: [{
|
|
3182
|
-
type: ContentChild,
|
|
3183
|
-
args: ['footer', { descendants: false }]
|
|
3184
|
-
}], _summaryTemplate: [{
|
|
3185
|
-
type: ContentChild,
|
|
3186
|
-
args: ['summary', { descendants: false }]
|
|
3187
|
-
}], _emptyMessageTemplate: [{
|
|
3188
|
-
type: ContentChild,
|
|
3189
|
-
args: ['emptymessage', { descendants: false }]
|
|
3190
|
-
}], _paginatorLeftTemplate: [{
|
|
3191
|
-
type: ContentChild,
|
|
3192
|
-
args: ['paginatorleft', { descendants: false }]
|
|
3193
|
-
}], _paginatorRightTemplate: [{
|
|
3194
|
-
type: ContentChild,
|
|
3195
|
-
args: ['paginatorright', { descendants: false }]
|
|
3196
|
-
}], _paginatorDropdownItemTemplate: [{
|
|
3197
|
-
type: ContentChild,
|
|
3198
|
-
args: ['paginatordropdownitem', { descendants: false }]
|
|
3199
|
-
}], _frozenHeaderTemplate: [{
|
|
3200
|
-
type: ContentChild,
|
|
3201
|
-
args: ['frozenheader', { descendants: false }]
|
|
3202
|
-
}], _frozenBodyTemplate: [{
|
|
3203
|
-
type: ContentChild,
|
|
3204
|
-
args: ['frozenbody', { descendants: false }]
|
|
3205
|
-
}], _frozenFooterTemplate: [{
|
|
3206
|
-
type: ContentChild,
|
|
3207
|
-
args: ['frozenfooter', { descendants: false }]
|
|
3208
|
-
}], _frozenColGroupTemplate: [{
|
|
3209
|
-
type: ContentChild,
|
|
3210
|
-
args: ['frozencolgroup', { descendants: false }]
|
|
3211
|
-
}], _loadingIconTemplate: [{
|
|
3212
|
-
type: ContentChild,
|
|
3213
|
-
args: ['loadingicon', { descendants: false }]
|
|
3214
|
-
}], _reorderIndicatorUpIconTemplate: [{
|
|
3215
|
-
type: ContentChild,
|
|
3216
|
-
args: ['reorderindicatorupicon', { descendants: false }]
|
|
3217
|
-
}], _reorderIndicatorDownIconTemplate: [{
|
|
3218
|
-
type: ContentChild,
|
|
3219
|
-
args: ['reorderindicatordownicon', { descendants: false }]
|
|
3220
|
-
}], _sortIconTemplate: [{
|
|
3221
|
-
type: ContentChild,
|
|
3222
|
-
args: ['sorticon', { descendants: false }]
|
|
3223
|
-
}], _checkboxIconTemplate: [{
|
|
3224
|
-
type: ContentChild,
|
|
3225
|
-
args: ['checkboxicon', { descendants: false }]
|
|
3226
|
-
}], _headerCheckboxIconTemplate: [{
|
|
3227
|
-
type: ContentChild,
|
|
3228
|
-
args: ['headercheckboxicon', { descendants: false }]
|
|
3229
|
-
}], _togglerIconTemplate: [{
|
|
3230
|
-
type: ContentChild,
|
|
3231
|
-
args: ['togglericon', { descendants: false }]
|
|
3232
|
-
}], _paginatorFirstPageLinkIconTemplate: [{
|
|
3233
|
-
type: ContentChild,
|
|
3234
|
-
args: ['paginatorfirstpagelinkicon', { descendants: false }]
|
|
3235
|
-
}], _paginatorLastPageLinkIconTemplate: [{
|
|
3236
|
-
type: ContentChild,
|
|
3237
|
-
args: ['paginatorlastpagelinkicon', { descendants: false }]
|
|
3238
|
-
}], _paginatorPreviousPageLinkIconTemplate: [{
|
|
3239
|
-
type: ContentChild,
|
|
3240
|
-
args: ['paginatorpreviouspagelinkicon', { descendants: false }]
|
|
3241
|
-
}], _paginatorNextPageLinkIconTemplate: [{
|
|
3242
|
-
type: ContentChild,
|
|
3243
|
-
args: ['paginatornextpagelinkicon', { descendants: false }]
|
|
3244
|
-
}], _loaderTemplate: [{
|
|
3245
|
-
type: ContentChild,
|
|
3246
|
-
args: ['loader', { descendants: false }]
|
|
3247
|
-
}], templates: [{
|
|
3248
|
-
type: ContentChildren,
|
|
3249
|
-
args: [AglTemplate]
|
|
3250
|
-
}] } });
|
|
3057
|
+
}], _colGroupTemplate: [{ type: i0.ContentChild, args: ['colgroup', { ...{ descendants: false }, isSignal: true }] }], _captionTemplate: [{ type: i0.ContentChild, args: ['caption', { ...{ descendants: false }, isSignal: true }] }], _headerTemplate: [{ type: i0.ContentChild, args: ['header', { ...{ descendants: false }, isSignal: true }] }], _bodyTemplate: [{ type: i0.ContentChild, args: ['body', { ...{ descendants: false }, isSignal: true }] }], _footerTemplate: [{ type: i0.ContentChild, args: ['footer', { ...{ descendants: false }, isSignal: true }] }], _summaryTemplate: [{ type: i0.ContentChild, args: ['summary', { ...{ descendants: false }, isSignal: true }] }], _emptyMessageTemplate: [{ type: i0.ContentChild, args: ['emptymessage', { ...{ descendants: false }, isSignal: true }] }], _paginatorLeftTemplate: [{ type: i0.ContentChild, args: ['paginatorleft', { ...{ descendants: false }, isSignal: true }] }], _paginatorRightTemplate: [{ type: i0.ContentChild, args: ['paginatorright', { ...{ descendants: false }, isSignal: true }] }], _paginatorDropdownItemTemplate: [{ type: i0.ContentChild, args: ['paginatordropdownitem', { ...{ descendants: false }, isSignal: true }] }], _frozenHeaderTemplate: [{ type: i0.ContentChild, args: ['frozenheader', { ...{ descendants: false }, isSignal: true }] }], _frozenBodyTemplate: [{ type: i0.ContentChild, args: ['frozenbody', { ...{ descendants: false }, isSignal: true }] }], _frozenFooterTemplate: [{ type: i0.ContentChild, args: ['frozenfooter', { ...{ descendants: false }, isSignal: true }] }], _frozenColGroupTemplate: [{ type: i0.ContentChild, args: ['frozencolgroup', { ...{ descendants: false }, isSignal: true }] }], _loadingIconTemplate: [{ type: i0.ContentChild, args: ['loadingicon', { ...{ descendants: false }, isSignal: true }] }], _reorderIndicatorUpIconTemplate: [{ type: i0.ContentChild, args: ['reorderindicatorupicon', { ...{ descendants: false }, isSignal: true }] }], _reorderIndicatorDownIconTemplate: [{ type: i0.ContentChild, args: ['reorderindicatordownicon', { ...{ descendants: false }, isSignal: true }] }], _sortIconTemplate: [{ type: i0.ContentChild, args: ['sorticon', { ...{ descendants: false }, isSignal: true }] }], _checkboxIconTemplate: [{ type: i0.ContentChild, args: ['checkboxicon', { ...{ descendants: false }, isSignal: true }] }], _headerCheckboxIconTemplate: [{ type: i0.ContentChild, args: ['headercheckboxicon', { ...{ descendants: false }, isSignal: true }] }], _togglerIconTemplate: [{ type: i0.ContentChild, args: ['togglericon', { ...{ descendants: false }, isSignal: true }] }], _paginatorFirstPageLinkIconTemplate: [{ type: i0.ContentChild, args: ['paginatorfirstpagelinkicon', { ...{ descendants: false }, isSignal: true }] }], _paginatorLastPageLinkIconTemplate: [{ type: i0.ContentChild, args: ['paginatorlastpagelinkicon', { ...{ descendants: false }, isSignal: true }] }], _paginatorPreviousPageLinkIconTemplate: [{ type: i0.ContentChild, args: ['paginatorpreviouspagelinkicon', { ...{ descendants: false }, isSignal: true }] }], _paginatorNextPageLinkIconTemplate: [{ type: i0.ContentChild, args: ['paginatornextpagelinkicon', { ...{ descendants: false }, isSignal: true }] }], _loaderTemplate: [{ type: i0.ContentChild, args: ['loader', { ...{ descendants: false }, isSignal: true }] }] } });
|
|
3251
3058
|
class TTBody extends BaseComponent {
|
|
3252
3059
|
tt;
|
|
3253
3060
|
treeTableService;
|
|
@@ -3307,7 +3114,7 @@ class TTBody extends BaseComponent {
|
|
|
3307
3114
|
</ng-container>
|
|
3308
3115
|
</ng-template>
|
|
3309
3116
|
<ng-container *ngIf="tt.isEmpty()">
|
|
3310
|
-
<ng-container *ngTemplateOutlet="tt.
|
|
3117
|
+
<ng-container *ngTemplateOutlet="tt._emptyMessageTemplate(); context: { $implicit: columns, frozen: frozen }"></ng-container>
|
|
3311
3118
|
</ng-container>
|
|
3312
3119
|
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.Eager, encapsulation: i0.ViewEncapsulation.None });
|
|
3313
3120
|
}
|
|
@@ -3334,7 +3141,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
3334
3141
|
</ng-container>
|
|
3335
3142
|
</ng-template>
|
|
3336
3143
|
<ng-container *ngIf="tt.isEmpty()">
|
|
3337
|
-
<ng-container *ngTemplateOutlet="tt.
|
|
3144
|
+
<ng-container *ngTemplateOutlet="tt._emptyMessageTemplate(); context: { $implicit: columns, frozen: frozen }"></ng-container>
|
|
3338
3145
|
</ng-container>
|
|
3339
3146
|
`,
|
|
3340
3147
|
encapsulation: ViewEncapsulation.None,
|
|
@@ -3396,7 +3203,7 @@ class TTScrollableView extends BaseComponent {
|
|
|
3396
3203
|
onAfterViewInit() {
|
|
3397
3204
|
if (isPlatformBrowser(this.platformId)) {
|
|
3398
3205
|
if (!this.frozen) {
|
|
3399
|
-
if (this.tt.frozenColumns || this.tt.
|
|
3206
|
+
if (this.tt.frozenColumns || this.tt._frozenBodyTemplate()) {
|
|
3400
3207
|
addClass(this.el.nativeElement, 'p-treetable-unfrozen-view');
|
|
3401
3208
|
}
|
|
3402
3209
|
let frozenView = this.el.nativeElement.previousElementSibling;
|
|
@@ -3532,11 +3339,11 @@ class TTScrollableView extends BaseComponent {
|
|
|
3532
3339
|
<div #scrollHeaderBox [class]="cx('scrollableHeaderBox')" [aglBind]="ptm('scrollableHeaderBox')">
|
|
3533
3340
|
<table [class]="cn(cx('scrollableHeaderTable'), tt.tableStyleClass)" [aglBind]="ptm('scrollableHeaderTable')" [ngStyle]="tt.tableStyle">
|
|
3534
3341
|
<ng-container
|
|
3535
|
-
*ngTemplateOutlet="frozen ? tt.
|
|
3342
|
+
*ngTemplateOutlet="frozen ? tt._frozenColGroupTemplate() || tt._colGroupTemplate() : tt._colGroupTemplate(); context: { $implicit: columns }"
|
|
3536
3343
|
></ng-container>
|
|
3537
3344
|
<thead role="rowgroup" [class]="cx('thead')" [aglBind]="ptm('thead')">
|
|
3538
3345
|
<ng-container
|
|
3539
|
-
*ngTemplateOutlet="frozen ? tt.
|
|
3346
|
+
*ngTemplateOutlet="frozen ? tt._frozenHeaderTemplate() || tt._headerTemplate() : tt._headerTemplate(); context: { $implicit: columns }"
|
|
3540
3347
|
></ng-container>
|
|
3541
3348
|
</thead>
|
|
3542
3349
|
</table>
|
|
@@ -3559,9 +3366,9 @@ class TTScrollableView extends BaseComponent {
|
|
|
3559
3366
|
<ng-template #content let-items let-scrollerOptions="options">
|
|
3560
3367
|
<ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: items, options: scrollerOptions }"></ng-container>
|
|
3561
3368
|
</ng-template>
|
|
3562
|
-
<ng-container *ngIf="tt.
|
|
3369
|
+
<ng-container *ngIf="tt._loaderTemplate()">
|
|
3563
3370
|
<ng-template #loader let-scrollerOptions="options">
|
|
3564
|
-
<ng-container *ngTemplateOutlet="tt.
|
|
3371
|
+
<ng-container *ngTemplateOutlet="tt._loaderTemplate(); context: { options: scrollerOptions }"></ng-container>
|
|
3565
3372
|
</ng-template>
|
|
3566
3373
|
</ng-container>
|
|
3567
3374
|
</agl-scroller>
|
|
@@ -3582,7 +3389,7 @@ class TTScrollableView extends BaseComponent {
|
|
|
3582
3389
|
<ng-template #buildInItems let-items let-scrollerOptions="options">
|
|
3583
3390
|
<table role="treegrid" #scrollTable [aglBind]="ptm('table')" [class]="tt.tableStyleClass" [ngClass]="scrollerOptions.contentStyleClass" [ngStyle]="tt.tableStyle" [style]="scrollerOptions.contentStyle">
|
|
3584
3391
|
<ng-container
|
|
3585
|
-
*ngTemplateOutlet="frozen ? tt.
|
|
3392
|
+
*ngTemplateOutlet="frozen ? tt._frozenColGroupTemplate() || tt._colGroupTemplate() : tt._colGroupTemplate(); context: { $implicit: columns }"
|
|
3586
3393
|
></ng-container>
|
|
3587
3394
|
<tbody
|
|
3588
3395
|
[aglBind]="ptm('tbody')"
|
|
@@ -3591,7 +3398,7 @@ class TTScrollableView extends BaseComponent {
|
|
|
3591
3398
|
[aglBind]="ptm('tbody')"
|
|
3592
3399
|
[aglTreeTableBody]="columns"
|
|
3593
3400
|
[unstyled]="unstyled()"
|
|
3594
|
-
[aglTreeTableBodyTemplate]="frozen ? tt.
|
|
3401
|
+
[aglTreeTableBodyTemplate]="frozen ? tt._frozenBodyTemplate() || tt._bodyTemplate() : tt._bodyTemplate()"
|
|
3595
3402
|
[serializedNodes]="items"
|
|
3596
3403
|
[frozen]="frozen"
|
|
3597
3404
|
></tbody>
|
|
@@ -3599,15 +3406,15 @@ class TTScrollableView extends BaseComponent {
|
|
|
3599
3406
|
<div #scrollableAligner [style.background-color]="'transparent'" *ngIf="frozen"></div>
|
|
3600
3407
|
</ng-template>
|
|
3601
3408
|
|
|
3602
|
-
<div #scrollFooter *ngIf="tt.
|
|
3409
|
+
<div #scrollFooter *ngIf="tt._footerTemplate()" [class]="cx('scrollableFooter')" [aglBind]="ptm('scrollableFooter')">
|
|
3603
3410
|
<div #scrollFooterBox [class]="cx('scrollableFooterBox')" [aglBind]="ptm('scrollableFooterBox')">
|
|
3604
3411
|
<table [class]="cx('scrollableFooterTable')" [ngClass]="tt.tableStyleClass" [ngStyle]="tt.tableStyle" [aglBind]="ptm('scrollableFooterTable')">
|
|
3605
3412
|
<ng-container
|
|
3606
|
-
*ngTemplateOutlet="frozen ? tt.
|
|
3413
|
+
*ngTemplateOutlet="frozen ? tt._frozenColGroupTemplate() || tt._colGroupTemplate() : tt._colGroupTemplate(); context: { $implicit: columns }"
|
|
3607
3414
|
></ng-container>
|
|
3608
3415
|
<tfoot role="rowgroup" [class]="cx('tfoot')" [aglBind]="ptm('tfoot')">
|
|
3609
3416
|
<ng-container
|
|
3610
|
-
*ngTemplateOutlet="frozen ? tt.
|
|
3417
|
+
*ngTemplateOutlet="frozen ? tt._frozenFooterTemplate() || tt._footerTemplate() : tt._footerTemplate(); context: { $implicit: columns }"
|
|
3611
3418
|
></ng-container>
|
|
3612
3419
|
</tfoot>
|
|
3613
3420
|
</table>
|
|
@@ -3626,11 +3433,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
3626
3433
|
<div #scrollHeaderBox [class]="cx('scrollableHeaderBox')" [aglBind]="ptm('scrollableHeaderBox')">
|
|
3627
3434
|
<table [class]="cn(cx('scrollableHeaderTable'), tt.tableStyleClass)" [aglBind]="ptm('scrollableHeaderTable')" [ngStyle]="tt.tableStyle">
|
|
3628
3435
|
<ng-container
|
|
3629
|
-
*ngTemplateOutlet="frozen ? tt.
|
|
3436
|
+
*ngTemplateOutlet="frozen ? tt._frozenColGroupTemplate() || tt._colGroupTemplate() : tt._colGroupTemplate(); context: { $implicit: columns }"
|
|
3630
3437
|
></ng-container>
|
|
3631
3438
|
<thead role="rowgroup" [class]="cx('thead')" [aglBind]="ptm('thead')">
|
|
3632
3439
|
<ng-container
|
|
3633
|
-
*ngTemplateOutlet="frozen ? tt.
|
|
3440
|
+
*ngTemplateOutlet="frozen ? tt._frozenHeaderTemplate() || tt._headerTemplate() : tt._headerTemplate(); context: { $implicit: columns }"
|
|
3634
3441
|
></ng-container>
|
|
3635
3442
|
</thead>
|
|
3636
3443
|
</table>
|
|
@@ -3653,9 +3460,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
3653
3460
|
<ng-template #content let-items let-scrollerOptions="options">
|
|
3654
3461
|
<ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: items, options: scrollerOptions }"></ng-container>
|
|
3655
3462
|
</ng-template>
|
|
3656
|
-
<ng-container *ngIf="tt.
|
|
3463
|
+
<ng-container *ngIf="tt._loaderTemplate()">
|
|
3657
3464
|
<ng-template #loader let-scrollerOptions="options">
|
|
3658
|
-
<ng-container *ngTemplateOutlet="tt.
|
|
3465
|
+
<ng-container *ngTemplateOutlet="tt._loaderTemplate(); context: { options: scrollerOptions }"></ng-container>
|
|
3659
3466
|
</ng-template>
|
|
3660
3467
|
</ng-container>
|
|
3661
3468
|
</agl-scroller>
|
|
@@ -3676,7 +3483,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
3676
3483
|
<ng-template #buildInItems let-items let-scrollerOptions="options">
|
|
3677
3484
|
<table role="treegrid" #scrollTable [aglBind]="ptm('table')" [class]="tt.tableStyleClass" [ngClass]="scrollerOptions.contentStyleClass" [ngStyle]="tt.tableStyle" [style]="scrollerOptions.contentStyle">
|
|
3678
3485
|
<ng-container
|
|
3679
|
-
*ngTemplateOutlet="frozen ? tt.
|
|
3486
|
+
*ngTemplateOutlet="frozen ? tt._frozenColGroupTemplate() || tt._colGroupTemplate() : tt._colGroupTemplate(); context: { $implicit: columns }"
|
|
3680
3487
|
></ng-container>
|
|
3681
3488
|
<tbody
|
|
3682
3489
|
[aglBind]="ptm('tbody')"
|
|
@@ -3685,7 +3492,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
3685
3492
|
[aglBind]="ptm('tbody')"
|
|
3686
3493
|
[aglTreeTableBody]="columns"
|
|
3687
3494
|
[unstyled]="unstyled()"
|
|
3688
|
-
[aglTreeTableBodyTemplate]="frozen ? tt.
|
|
3495
|
+
[aglTreeTableBodyTemplate]="frozen ? tt._frozenBodyTemplate() || tt._bodyTemplate() : tt._bodyTemplate()"
|
|
3689
3496
|
[serializedNodes]="items"
|
|
3690
3497
|
[frozen]="frozen"
|
|
3691
3498
|
></tbody>
|
|
@@ -3693,15 +3500,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
3693
3500
|
<div #scrollableAligner [style.background-color]="'transparent'" *ngIf="frozen"></div>
|
|
3694
3501
|
</ng-template>
|
|
3695
3502
|
|
|
3696
|
-
<div #scrollFooter *ngIf="tt.
|
|
3503
|
+
<div #scrollFooter *ngIf="tt._footerTemplate()" [class]="cx('scrollableFooter')" [aglBind]="ptm('scrollableFooter')">
|
|
3697
3504
|
<div #scrollFooterBox [class]="cx('scrollableFooterBox')" [aglBind]="ptm('scrollableFooterBox')">
|
|
3698
3505
|
<table [class]="cx('scrollableFooterTable')" [ngClass]="tt.tableStyleClass" [ngStyle]="tt.tableStyle" [aglBind]="ptm('scrollableFooterTable')">
|
|
3699
3506
|
<ng-container
|
|
3700
|
-
*ngTemplateOutlet="frozen ? tt.
|
|
3507
|
+
*ngTemplateOutlet="frozen ? tt._frozenColGroupTemplate() || tt._colGroupTemplate() : tt._colGroupTemplate(); context: { $implicit: columns }"
|
|
3701
3508
|
></ng-container>
|
|
3702
3509
|
<tfoot role="rowgroup" [class]="cx('tfoot')" [aglBind]="ptm('tfoot')">
|
|
3703
3510
|
<ng-container
|
|
3704
|
-
*ngTemplateOutlet="frozen ? tt.
|
|
3511
|
+
*ngTemplateOutlet="frozen ? tt._frozenFooterTemplate() || tt._footerTemplate() : tt._footerTemplate(); context: { $implicit: columns }"
|
|
3705
3512
|
></ng-container>
|
|
3706
3513
|
</tfoot>
|
|
3707
3514
|
</table>
|
|
@@ -3896,16 +3703,16 @@ class TTSortIcon extends BaseComponent {
|
|
|
3896
3703
|
}
|
|
3897
3704
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: TTSortIcon, deps: [{ token: TreeTable }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
3898
3705
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: TTSortIcon, isStandalone: false, selector: "agl-treeTableSortIcon, agl-treetable-sort-icon, agl-tree-table-sort-icon", inputs: { field: "field", ariaLabelDesc: "ariaLabelDesc", ariaLabelAsc: "ariaLabelAsc" }, providers: [TreeTableStyle], usesInheritance: true, ngImport: i0, template: `
|
|
3899
|
-
<ng-container *ngIf="!tt.
|
|
3706
|
+
<ng-container *ngIf="!tt._sortIconTemplate()">
|
|
3900
3707
|
<svg data-p-icon="sort-alt" [class]="cx('sortableColumnIcon')" [aglBind]="ptm('sortableColumnIcon')" *ngIf="sortOrder === 0" />
|
|
3901
3708
|
<svg data-p-icon="sort-amount-up-alt" [class]="cx('sortableColumnIcon')" *ngIf="sortOrder === 1" [aglBind]="ptm('sortableColumnIcon')" />
|
|
3902
3709
|
<svg data-p-icon="sort-amount-down" [class]="cx('sortableColumnIcon')" *ngIf="sortOrder === -1" [aglBind]="ptm('sortableColumnIcon')" />
|
|
3903
3710
|
</ng-container>
|
|
3904
|
-
<span *ngIf="tt.
|
|
3905
|
-
<ng-template *ngTemplateOutlet="tt.
|
|
3711
|
+
<span *ngIf="tt._sortIconTemplate()" [class]="cx('sortableColumnIcon')" [aglBind]="ptm('sortableColumnIcon')">
|
|
3712
|
+
<ng-template *ngTemplateOutlet="tt._sortIconTemplate(); context: { $implicit: sortOrder }"></ng-template>
|
|
3906
3713
|
</span>
|
|
3907
3714
|
<agl-badge *ngIf="isMultiSorted()" [class]="cx('sortableColumnBadge')" [value]="getBadgeValue()" size="small" [pt]="ptm('pcSortableColumnBadge')" [unstyled]="unstyled()"></agl-badge>
|
|
3908
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(() => i2.NgIf), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i0.forwardRef(() => SortAltIcon), selector: "[data-p-icon=\"sort-alt\"]" }, { kind: "component", type: i0.forwardRef(() => SortAmountUpAltIcon), selector: "[data-p-icon=\"sort-amount-up-alt\"]" }, { kind: "component", type: i0.forwardRef(() => SortAmountDownIcon), selector: "[data-p-icon=\"sort-amount-down\"]" }, { kind: "component", type: i0.forwardRef(() =>
|
|
3715
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(() => i2.NgIf), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i0.forwardRef(() => SortAltIcon), selector: "[data-p-icon=\"sort-alt\"]" }, { kind: "component", type: i0.forwardRef(() => SortAmountUpAltIcon), selector: "[data-p-icon=\"sort-amount-up-alt\"]" }, { kind: "component", type: i0.forwardRef(() => SortAmountDownIcon), selector: "[data-p-icon=\"sort-amount-down\"]" }, { kind: "component", type: i0.forwardRef(() => i4.Badge), selector: "agl-badge", inputs: ["styleClass", "badgeSize", "size", "severity", "value", "badgeDisabled"] }, { kind: "directive", type: i0.forwardRef(() => i1.Bind), selector: "[aglBind]", inputs: ["aglBind"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
3909
3716
|
}
|
|
3910
3717
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: TTSortIcon, decorators: [{
|
|
3911
3718
|
type: Component,
|
|
@@ -3913,13 +3720,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
3913
3720
|
selector: 'agl-treeTableSortIcon, agl-treetable-sort-icon, agl-tree-table-sort-icon',
|
|
3914
3721
|
standalone: false,
|
|
3915
3722
|
template: `
|
|
3916
|
-
<ng-container *ngIf="!tt.
|
|
3723
|
+
<ng-container *ngIf="!tt._sortIconTemplate()">
|
|
3917
3724
|
<svg data-p-icon="sort-alt" [class]="cx('sortableColumnIcon')" [aglBind]="ptm('sortableColumnIcon')" *ngIf="sortOrder === 0" />
|
|
3918
3725
|
<svg data-p-icon="sort-amount-up-alt" [class]="cx('sortableColumnIcon')" *ngIf="sortOrder === 1" [aglBind]="ptm('sortableColumnIcon')" />
|
|
3919
3726
|
<svg data-p-icon="sort-amount-down" [class]="cx('sortableColumnIcon')" *ngIf="sortOrder === -1" [aglBind]="ptm('sortableColumnIcon')" />
|
|
3920
3727
|
</ng-container>
|
|
3921
|
-
<span *ngIf="tt.
|
|
3922
|
-
<ng-template *ngTemplateOutlet="tt.
|
|
3728
|
+
<span *ngIf="tt._sortIconTemplate()" [class]="cx('sortableColumnIcon')" [aglBind]="ptm('sortableColumnIcon')">
|
|
3729
|
+
<ng-template *ngTemplateOutlet="tt._sortIconTemplate(); context: { $implicit: sortOrder }"></ng-template>
|
|
3923
3730
|
</span>
|
|
3924
3731
|
<agl-badge *ngIf="isMultiSorted()" [class]="cx('sortableColumnBadge')" [value]="getBadgeValue()" size="small" [pt]="ptm('pcSortableColumnBadge')" [unstyled]="unstyled()"></agl-badge>
|
|
3925
3732
|
`,
|
|
@@ -4399,13 +4206,13 @@ class TTCheckbox extends BaseComponent {
|
|
|
4399
4206
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: TTCheckbox, deps: [{ token: TreeTable }, { token: TreeTableService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
4400
4207
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "22.0.8", type: TTCheckbox, isStandalone: false, selector: "agl-treeTableCheckbox, agl-treetable-checkbox, agl-tree-table-checkbox", inputs: { disabled: ["disabled", "disabled", booleanAttribute], rowNode: ["value", "rowNode"] }, providers: [TreeTableStyle], usesInheritance: true, ngImport: i0, template: `
|
|
4401
4208
|
<agl-checkbox [ngModel]="checked" [pt]="ptm('pcRowCheckbox')" (onChange)="onClick($event)" [binary]="true" [disabled]="disabled" [indeterminate]="partialChecked" [styleClass]="cx('pcNodeCheckbox')" [tabIndex]="-1" [unstyled]="unstyled()">
|
|
4402
|
-
<ng-container *ngIf="tt.
|
|
4403
|
-
<ng-template
|
|
4404
|
-
<ng-template *ngTemplateOutlet="tt.
|
|
4209
|
+
<ng-container *ngIf="tt._checkboxIconTemplate()">
|
|
4210
|
+
<ng-template #icon >
|
|
4211
|
+
<ng-template *ngTemplateOutlet="tt._checkboxIconTemplate(); context: { $implicit: checked, partialSelected: partialChecked }"></ng-template>
|
|
4405
4212
|
</ng-template>
|
|
4406
4213
|
</ng-container>
|
|
4407
4214
|
</agl-checkbox>
|
|
4408
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(() => i2.NgIf), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "
|
|
4215
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(() => i2.NgIf), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i0.forwardRef(() => Checkbox), selector: "agl-checkbox, agl-checkBox, agl-check-box", inputs: ["hostName", "value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "styleClass", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], outputs: ["onChange", "onFocus", "onBlur"] }, { kind: "directive", type: i0.forwardRef(() => i5.NgControlStatus), selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i0.forwardRef(() => i5.NgModel), selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
4409
4216
|
}
|
|
4410
4217
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: TTCheckbox, decorators: [{
|
|
4411
4218
|
type: Component,
|
|
@@ -4414,9 +4221,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
4414
4221
|
standalone: false,
|
|
4415
4222
|
template: `
|
|
4416
4223
|
<agl-checkbox [ngModel]="checked" [pt]="ptm('pcRowCheckbox')" (onChange)="onClick($event)" [binary]="true" [disabled]="disabled" [indeterminate]="partialChecked" [styleClass]="cx('pcNodeCheckbox')" [tabIndex]="-1" [unstyled]="unstyled()">
|
|
4417
|
-
<ng-container *ngIf="tt.
|
|
4418
|
-
<ng-template
|
|
4419
|
-
<ng-template *ngTemplateOutlet="tt.
|
|
4224
|
+
<ng-container *ngIf="tt._checkboxIconTemplate()">
|
|
4225
|
+
<ng-template #icon >
|
|
4226
|
+
<ng-template *ngTemplateOutlet="tt._checkboxIconTemplate(); context: { $implicit: checked, partialSelected: partialChecked }"></ng-template>
|
|
4420
4227
|
</ng-template>
|
|
4421
4228
|
</ng-container>
|
|
4422
4229
|
</agl-checkbox>
|
|
@@ -4504,13 +4311,13 @@ class TTHeaderCheckbox extends BaseComponent {
|
|
|
4504
4311
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: TTHeaderCheckbox, deps: [{ token: TreeTable }, { token: TreeTableService }], target: i0.ɵɵFactoryTarget.Component });
|
|
4505
4312
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: TTHeaderCheckbox, isStandalone: false, selector: "agl-treeTableHeaderCheckbox", usesInheritance: true, ngImport: i0, template: `
|
|
4506
4313
|
<agl-checkbox [ngModel]="checked" [pt]="ptm('pcHeaderCheckbox')" (onChange)="onClick($event)" [binary]="true" [disabled]="!tt.value || tt.value.length === 0" [unstyled]="unstyled()">
|
|
4507
|
-
<ng-container *ngIf="tt.
|
|
4508
|
-
<ng-template
|
|
4509
|
-
<ng-template *ngTemplateOutlet="tt.
|
|
4314
|
+
<ng-container *ngIf="tt._headerCheckboxIconTemplate()">
|
|
4315
|
+
<ng-template #icon >
|
|
4316
|
+
<ng-template *ngTemplateOutlet="tt._headerCheckboxIconTemplate(); context: { $implicit: checked }"></ng-template>
|
|
4510
4317
|
</ng-template>
|
|
4511
4318
|
</ng-container>
|
|
4512
4319
|
</agl-checkbox>
|
|
4513
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(() => i2.NgIf), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "
|
|
4320
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(() => i2.NgIf), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i0.forwardRef(() => Checkbox), selector: "agl-checkbox, agl-checkBox, agl-check-box", inputs: ["hostName", "value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "styleClass", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], outputs: ["onChange", "onFocus", "onBlur"] }, { kind: "directive", type: i0.forwardRef(() => i5.NgControlStatus), selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i0.forwardRef(() => i5.NgModel), selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
4514
4321
|
}
|
|
4515
4322
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: TTHeaderCheckbox, decorators: [{
|
|
4516
4323
|
type: Component,
|
|
@@ -4519,9 +4326,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
4519
4326
|
standalone: false,
|
|
4520
4327
|
template: `
|
|
4521
4328
|
<agl-checkbox [ngModel]="checked" [pt]="ptm('pcHeaderCheckbox')" (onChange)="onClick($event)" [binary]="true" [disabled]="!tt.value || tt.value.length === 0" [unstyled]="unstyled()">
|
|
4522
|
-
<ng-container *ngIf="tt.
|
|
4523
|
-
<ng-template
|
|
4524
|
-
<ng-template *ngTemplateOutlet="tt.
|
|
4329
|
+
<ng-container *ngIf="tt._headerCheckboxIconTemplate()">
|
|
4330
|
+
<ng-template #icon >
|
|
4331
|
+
<ng-template *ngTemplateOutlet="tt._headerCheckboxIconTemplate(); context: { $implicit: checked }"></ng-template>
|
|
4525
4332
|
</ng-template>
|
|
4526
4333
|
</ng-container>
|
|
4527
4334
|
</agl-checkbox>
|
|
@@ -4726,33 +4533,30 @@ class TreeTableCellEditor extends BaseComponent {
|
|
|
4726
4533
|
onAfterViewChecked() {
|
|
4727
4534
|
this.bindDirectiveInstance.setAttrs(this.ptm('cellEditor'));
|
|
4728
4535
|
}
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4536
|
+
/**
|
|
4537
|
+
* Editing state of the cell.
|
|
4538
|
+
* @group Templates
|
|
4539
|
+
*/
|
|
4540
|
+
inputTemplate = contentChild('input', /* @ts-ignore */
|
|
4541
|
+
...(ngDevMode ? [{ debugName: "inputTemplate" }] : /* istanbul ignore next */ []));
|
|
4542
|
+
/**
|
|
4543
|
+
* Display state of the cell.
|
|
4544
|
+
* @group Templates
|
|
4545
|
+
*/
|
|
4546
|
+
outputTemplate = contentChild('output', /* @ts-ignore */
|
|
4547
|
+
...(ngDevMode ? [{ debugName: "outputTemplate" }] : /* istanbul ignore next */ []));
|
|
4732
4548
|
constructor(tt, editableColumn) {
|
|
4733
4549
|
super();
|
|
4734
4550
|
this.tt = tt;
|
|
4735
4551
|
this.editableColumn = editableColumn;
|
|
4736
4552
|
}
|
|
4737
|
-
onAfterContentInit() {
|
|
4738
|
-
this.templates.forEach((item) => {
|
|
4739
|
-
switch (item.getType()) {
|
|
4740
|
-
case 'input':
|
|
4741
|
-
this.inputTemplate = item.template;
|
|
4742
|
-
break;
|
|
4743
|
-
case 'output':
|
|
4744
|
-
this.outputTemplate = item.template;
|
|
4745
|
-
break;
|
|
4746
|
-
}
|
|
4747
|
-
});
|
|
4748
|
-
}
|
|
4749
4553
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: TreeTableCellEditor, deps: [{ token: TreeTable }, { token: TTEditableColumn }], target: i0.ɵɵFactoryTarget.Component });
|
|
4750
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
4554
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: TreeTableCellEditor, isStandalone: false, selector: "agl-treeTableCellEditor, agl-treetablecelleditor, agl-treetable-cell-editor", queries: [{ propertyName: "inputTemplate", first: true, predicate: ["input"], descendants: true, isSignal: true }, { propertyName: "outputTemplate", first: true, predicate: ["output"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
4751
4555
|
<ng-container *ngIf="tt.editingCell === editableColumn.el.nativeElement">
|
|
4752
|
-
<ng-container *ngTemplateOutlet="inputTemplate"></ng-container>
|
|
4556
|
+
<ng-container *ngTemplateOutlet="inputTemplate()"></ng-container>
|
|
4753
4557
|
</ng-container>
|
|
4754
4558
|
<ng-container *ngIf="!tt.editingCell || tt.editingCell !== editableColumn.el.nativeElement">
|
|
4755
|
-
<ng-container *ngTemplateOutlet="outputTemplate"></ng-container>
|
|
4559
|
+
<ng-container *ngTemplateOutlet="outputTemplate()"></ng-container>
|
|
4756
4560
|
</ng-container>
|
|
4757
4561
|
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.Eager, encapsulation: i0.ViewEncapsulation.None });
|
|
4758
4562
|
}
|
|
@@ -4764,19 +4568,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
4764
4568
|
standalone: false,
|
|
4765
4569
|
template: `
|
|
4766
4570
|
<ng-container *ngIf="tt.editingCell === editableColumn.el.nativeElement">
|
|
4767
|
-
<ng-container *ngTemplateOutlet="inputTemplate"></ng-container>
|
|
4571
|
+
<ng-container *ngTemplateOutlet="inputTemplate()"></ng-container>
|
|
4768
4572
|
</ng-container>
|
|
4769
4573
|
<ng-container *ngIf="!tt.editingCell || tt.editingCell !== editableColumn.el.nativeElement">
|
|
4770
|
-
<ng-container *ngTemplateOutlet="outputTemplate"></ng-container>
|
|
4574
|
+
<ng-container *ngTemplateOutlet="outputTemplate()"></ng-container>
|
|
4771
4575
|
</ng-container>
|
|
4772
4576
|
`,
|
|
4773
4577
|
encapsulation: ViewEncapsulation.None,
|
|
4774
4578
|
hostDirectives: [Bind]
|
|
4775
4579
|
}]
|
|
4776
|
-
}], ctorParameters: () => [{ type: TreeTable }, { type: TTEditableColumn }], propDecorators: {
|
|
4777
|
-
type: ContentChildren,
|
|
4778
|
-
args: [AglTemplate]
|
|
4779
|
-
}] } });
|
|
4580
|
+
}], ctorParameters: () => [{ type: TreeTable }, { type: TTEditableColumn }], propDecorators: { inputTemplate: [{ type: i0.ContentChild, args: ['input', { isSignal: true }] }], outputTemplate: [{ type: i0.ContentChild, args: ['output', { isSignal: true }] }] } });
|
|
4780
4581
|
class TTRow extends BaseComponent {
|
|
4781
4582
|
tt;
|
|
4782
4583
|
el;
|
|
@@ -5018,11 +4819,11 @@ class TreeTableToggler extends BaseComponent {
|
|
|
5018
4819
|
[attr.data-pc-group-section]="'rowactionbutton'"
|
|
5019
4820
|
[attr.aria-label]="toggleButtonAriaLabel"
|
|
5020
4821
|
>
|
|
5021
|
-
<ng-container *ngIf="!tt.
|
|
4822
|
+
<ng-container *ngIf="!tt._togglerIconTemplate()">
|
|
5022
4823
|
<svg data-p-icon="chevron-down" *ngIf="rowNode.node.expanded" [aglBind]="ptm('nodetoggleicon')" [attr.aria-hidden]="true" />
|
|
5023
4824
|
<svg data-p-icon="chevron-right" *ngIf="!rowNode.node.expanded" [aglBind]="ptm('nodetoggleicon')" [attr.aria-hidden]="true" />
|
|
5024
4825
|
</ng-container>
|
|
5025
|
-
<ng-template *ngTemplateOutlet="tt.
|
|
4826
|
+
<ng-template *ngTemplateOutlet="tt._togglerIconTemplate(); context: { $implicit: rowNode.node.expanded }"></ng-template>
|
|
5026
4827
|
</button>
|
|
5027
4828
|
`, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(() => i2.NgIf), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i0.forwardRef(() => Ripple), selector: "[aglRipple]" }, { kind: "component", type: i0.forwardRef(() => ChevronDownIcon), selector: "[data-p-icon=\"chevron-down\"]" }, { kind: "component", type: i0.forwardRef(() => ChevronRightIcon), selector: "[data-p-icon=\"chevron-right\"]" }, { kind: "directive", type: i0.forwardRef(() => i1.Bind), selector: "[aglBind]", inputs: ["aglBind"] }], changeDetection: i0.ChangeDetectionStrategy.Eager, encapsulation: i0.ViewEncapsulation.None });
|
|
5028
4829
|
}
|
|
@@ -5045,11 +4846,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
5045
4846
|
[attr.data-pc-group-section]="'rowactionbutton'"
|
|
5046
4847
|
[attr.aria-label]="toggleButtonAriaLabel"
|
|
5047
4848
|
>
|
|
5048
|
-
<ng-container *ngIf="!tt.
|
|
4849
|
+
<ng-container *ngIf="!tt._togglerIconTemplate()">
|
|
5049
4850
|
<svg data-p-icon="chevron-down" *ngIf="rowNode.node.expanded" [aglBind]="ptm('nodetoggleicon')" [attr.aria-hidden]="true" />
|
|
5050
4851
|
<svg data-p-icon="chevron-right" *ngIf="!rowNode.node.expanded" [aglBind]="ptm('nodetoggleicon')" [attr.aria-hidden]="true" />
|
|
5051
4852
|
</ng-container>
|
|
5052
|
-
<ng-template *ngTemplateOutlet="tt.
|
|
4853
|
+
<ng-template *ngTemplateOutlet="tt._togglerIconTemplate(); context: { $implicit: rowNode.node.expanded }"></ng-template>
|
|
5053
4854
|
</button>
|
|
5054
4855
|
`,
|
|
5055
4856
|
encapsulation: ViewEncapsulation.None,
|