@exhaustive-ui/core 22.0.0-rc.2 → 22.0.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 +1 -1
- package/fesm2022/exhaustive-ui-core-accordion.mjs +5 -0
- package/fesm2022/exhaustive-ui-core-accordion.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs +12 -14
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-avatargroup.mjs +3 -9
- package/fesm2022/exhaustive-ui-core-avatargroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-badge.mjs +3 -34
- package/fesm2022/exhaustive-ui-core-badge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-basecomponent.mjs +3 -0
- package/fesm2022/exhaustive-ui-core-basecomponent.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-baseinput.mjs +27 -7
- package/fesm2022/exhaustive-ui-core-baseinput.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-blockui.mjs +13 -1
- package/fesm2022/exhaustive-ui-core-blockui.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-breadcrumb.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-breadcrumb.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-button.mjs +10 -34
- package/fesm2022/exhaustive-ui-core-button.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-carousel.mjs +5 -0
- package/fesm2022/exhaustive-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-cascadeselect.mjs +25 -11
- package/fesm2022/exhaustive-ui-core-cascadeselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-checkbox.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-checkbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-config.mjs +1 -8
- package/fesm2022/exhaustive-ui-core-config.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +3 -8
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs +16 -3
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dataview.mjs +2 -14
- package/fesm2022/exhaustive-ui-core-dataview.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-datepicker.mjs +38 -4
- package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dialog.mjs +12 -7
- package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dock.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-dock.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dom.mjs +9 -2
- package/fesm2022/exhaustive-ui-core-dom.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-drawer.mjs +6 -6
- package/fesm2022/exhaustive-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs +19 -19
- package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-editor.mjs +11 -0
- package/fesm2022/exhaustive-ui-core-editor.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fileupload.mjs +4 -1
- package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-galleria.mjs +12 -0
- package/fesm2022/exhaustive-ui-core-galleria.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-image.mjs +7 -0
- package/fesm2022/exhaustive-ui-core-image.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-imagecompare.mjs +5 -5
- package/fesm2022/exhaustive-ui-core-imagecompare.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inplace.mjs +6 -32
- package/fesm2022/exhaustive-ui-core-inplace.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs +3 -9
- package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputmask.mjs +54 -27
- package/fesm2022/exhaustive-ui-core-inputmask.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputnumber.mjs +9 -11
- package/fesm2022/exhaustive-ui-core-inputnumber.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputotp.mjs +8 -3
- package/fesm2022/exhaustive-ui-core-inputotp.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputtext.mjs +6 -14
- package/fesm2022/exhaustive-ui-core-inputtext.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-listbox.mjs +53 -20
- package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-megamenu.mjs +4 -1
- package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menu.mjs +11 -5
- package/fesm2022/exhaustive-ui-core-menu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menubar.mjs +8 -2
- package/fesm2022/exhaustive-ui-core-menubar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-message.mjs +5 -10
- package/fesm2022/exhaustive-ui-core-message.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-metergroup.mjs +3 -0
- package/fesm2022/exhaustive-ui-core-metergroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-motion.mjs +10 -1
- package/fesm2022/exhaustive-ui-core-motion.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-multiselect.mjs +77 -38
- package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-orderlist.mjs +14 -19
- package/fesm2022/exhaustive-ui-core-orderlist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-organizationchart.mjs +3 -1
- package/fesm2022/exhaustive-ui-core-organizationchart.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-overlay.mjs +28 -0
- package/fesm2022/exhaustive-ui-core-overlay.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panel.mjs +12 -2
- package/fesm2022/exhaustive-ui-core-panel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs +61 -13
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-password.mjs +37 -26
- package/fesm2022/exhaustive-ui-core-password.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-picklist.mjs +11 -25
- package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-popover.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-popover.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-radiobutton.mjs +8 -4
- package/fesm2022/exhaustive-ui-core-radiobutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scroller.mjs +91 -10
- package/fesm2022/exhaustive-ui-core-scroller.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-select.mjs +36 -4
- package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-selectbutton.mjs +3 -8
- package/fesm2022/exhaustive-ui-core-selectbutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-slider.mjs +6 -0
- package/fesm2022/exhaustive-ui-core-slider.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-speeddial.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-speeddial.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-splitbutton.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-splitbutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-stepper.mjs +7 -11
- package/fesm2022/exhaustive-ui-core-stepper.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-steps.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-steps.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-table.mjs +227 -32
- package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tabs.mjs +16 -1
- package/fesm2022/exhaustive-ui-core-tabs.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-textarea.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-textarea.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +60 -16
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toast.mjs +6 -2
- package/fesm2022/exhaustive-ui-core-toast.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toggleswitch.mjs +2 -9
- package/fesm2022/exhaustive-ui-core-toggleswitch.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tooltip.mjs +9 -17
- package/fesm2022/exhaustive-ui-core-tooltip.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tree.mjs +99 -28
- package/fesm2022/exhaustive-ui-core-tree.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treeselect.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treetable.mjs +75 -19
- package/fesm2022/exhaustive-ui-core-treetable.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-utils.mjs +15 -0
- package/fesm2022/exhaustive-ui-core-utils.mjs.map +1 -1
- package/package.json +5 -5
- package/schematics/collection.json +1 -1
- package/schematics/migrate-from-primeng/index.js +2 -16
- package/schematics/migrate-from-primeng/schema.json +1 -2
- package/schematics/migrations/config-input-style-to-variant/migration.js +70 -0
- package/schematics/migrations/remove-dead-inputs/migration.js +46 -7
- package/schematics/migrations/removed-exports/migration.js +73 -0
- package/schematics/migrations/renamed-inputs/migration.js +54 -3
- package/schematics/migrations/renamed-outputs/migration.js +89 -0
- package/schematics/migrations/renamed-templates/migration.js +59 -0
- package/schematics/migrations/styleclass-to-class/migration.js +5 -0
- package/schematics/migrations.json +23 -3
- package/schematics/utils/config-signal.js +115 -0
- package/schematics/utils/removed-exports.js +172 -0
- package/schematics/utils/removed-inputs.js +0 -0
- package/schematics/utils/renamed-inputs.js +20 -9
- package/schematics/utils/renamed-outputs.js +154 -0
- package/schematics/utils/renamed-templates.js +142 -0
- package/schematics/utils/versions.json +8 -8
- package/types/exhaustive-ui-core-api.d.ts +0 -10
- package/types/exhaustive-ui-core-autocomplete.d.ts +4 -9
- package/types/exhaustive-ui-core-avatargroup.d.ts +1 -6
- package/types/exhaustive-ui-core-badge.d.ts +1 -14
- package/types/exhaustive-ui-core-basecomponent.d.ts +3 -0
- package/types/exhaustive-ui-core-baseinput.d.ts +3 -3
- package/types/exhaustive-ui-core-button.d.ts +4 -25
- package/types/exhaustive-ui-core-cascadeselect.d.ts +5 -2
- package/types/exhaustive-ui-core-config.d.ts +0 -8
- package/types/exhaustive-ui-core-confirmpopup.d.ts +1 -6
- package/types/exhaustive-ui-core-contextmenu.d.ts +3 -0
- package/types/exhaustive-ui-core-dataview.d.ts +1 -11
- package/types/exhaustive-ui-core-datepicker.d.ts +1 -0
- package/types/exhaustive-ui-core-dialog.d.ts +1 -1
- package/types/exhaustive-ui-core-drawer.d.ts +2 -2
- package/types/exhaustive-ui-core-dynamicdialog.d.ts +3 -12
- package/types/exhaustive-ui-core-editor.d.ts +5 -0
- package/types/exhaustive-ui-core-fileupload.d.ts +3 -0
- package/types/exhaustive-ui-core-galleria.d.ts +12 -0
- package/types/exhaustive-ui-core-image.d.ts +1 -0
- package/types/exhaustive-ui-core-imagecompare.d.ts +2 -2
- package/types/exhaustive-ui-core-inplace.d.ts +3 -11
- package/types/exhaustive-ui-core-inputgroupaddon.d.ts +1 -6
- package/types/exhaustive-ui-core-inputmask.d.ts +2 -2
- package/types/exhaustive-ui-core-inputtext.d.ts +3 -10
- package/types/exhaustive-ui-core-listbox.d.ts +12 -6
- package/types/exhaustive-ui-core-megamenu.d.ts +3 -0
- package/types/exhaustive-ui-core-menu.d.ts +6 -11
- package/types/exhaustive-ui-core-menubar.d.ts +5 -11
- package/types/exhaustive-ui-core-message.d.ts +1 -8
- package/types/exhaustive-ui-core-metergroup.d.ts +3 -0
- package/types/exhaustive-ui-core-multiselect.d.ts +13 -10
- package/types/exhaustive-ui-core-orderlist.d.ts +2 -12
- package/types/exhaustive-ui-core-organizationchart.d.ts +3 -1
- package/types/exhaustive-ui-core-overlay.d.ts +8 -0
- package/types/exhaustive-ui-core-panel.d.ts +2 -0
- package/types/exhaustive-ui-core-panelmenu.d.ts +9 -0
- package/types/exhaustive-ui-core-password.d.ts +19 -14
- package/types/exhaustive-ui-core-picklist.d.ts +1 -16
- package/types/exhaustive-ui-core-radiobutton.d.ts +4 -1
- package/types/exhaustive-ui-core-scroller.d.ts +10 -0
- package/types/exhaustive-ui-core-select.d.ts +11 -27
- package/types/exhaustive-ui-core-selectbutton.d.ts +1 -6
- package/types/exhaustive-ui-core-stepper.d.ts +3 -11
- package/types/exhaustive-ui-core-table.d.ts +32 -4
- package/types/exhaustive-ui-core-tieredmenu.d.ts +8 -0
- package/types/exhaustive-ui-core-toast.d.ts +3 -0
- package/types/exhaustive-ui-core-toggleswitch.d.ts +1 -7
- package/types/exhaustive-ui-core-tooltip.d.ts +3 -10
- package/types/exhaustive-ui-core-tree.d.ts +17 -1
- package/types/exhaustive-ui-core-treetable.d.ts +24 -5
- package/types/exhaustive-ui-core-types-multiselect.d.ts +0 -6
- package/types/exhaustive-ui-core-types-table.d.ts +1 -1
- package/types/exhaustive-ui-core-types-tree.d.ts +5 -0
- package/types/exhaustive-ui-core-utils.d.ts +15 -0
|
@@ -7,7 +7,7 @@ import * as i2 from '@angular/common';
|
|
|
7
7
|
import { isPlatformBrowser, CommonModule } from '@angular/common';
|
|
8
8
|
import * as i7 from '@angular/forms';
|
|
9
9
|
import { FormsModule } from '@angular/forms';
|
|
10
|
-
import { isClickable, setAttribute, getAttribute, find, findSingle, appendChild, addStyle
|
|
10
|
+
import { isClickable, setAttribute, getAttribute, find, findSingle, absolutePosition, appendChild, addStyle } from '@exhaustive-ui/utils';
|
|
11
11
|
import * as i4 from '@exhaustive-ui/core/api';
|
|
12
12
|
import { PrimeTemplate, OverlayService, FilterService, FilterOperator, FilterMatchMode, TranslationKeys, SharedModule } from '@exhaustive-ui/core/api';
|
|
13
13
|
import * as i6 from '@exhaustive-ui/core/badge';
|
|
@@ -69,6 +69,20 @@ ${style$1}
|
|
|
69
69
|
z-index: 1;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
+
/* positioned content of the scrolled cells (buttons, badges...) must pass under the frozen cells */
|
|
73
|
+
.p-datatable-scrollable td.p-datatable-frozen-column {
|
|
74
|
+
z-index: 1;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* the scroller host element sits between the table container and the scroller root */
|
|
78
|
+
.p-datatable-scrollable > .p-datatable-table-container > p-scroller > .p-virtualscroller > .p-datatable-table > .p-datatable-thead {
|
|
79
|
+
background: dt('datatable.header.cell.background');
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.p-datatable-scrollable > .p-datatable-table-container > p-scroller > .p-virtualscroller > .p-datatable-table > .p-datatable-tfoot {
|
|
83
|
+
background: dt('datatable.footer.cell.background');
|
|
84
|
+
}
|
|
85
|
+
|
|
72
86
|
.p-datatable-mask.p-overlay-mask {
|
|
73
87
|
position: absolute;
|
|
74
88
|
display: flex;
|
|
@@ -227,10 +241,11 @@ const classes = {
|
|
|
227
241
|
filterButtonbar: 'p-datatable-filter-buttonbar',
|
|
228
242
|
pcFilterClearButton: 'p-datatable-filter-clear-button',
|
|
229
243
|
pcFilterApplyButton: 'p-datatable-filter-apply-button',
|
|
230
|
-
tbody: ({ instance }) => ({
|
|
244
|
+
tbody: ({ instance, frozen }) => ({
|
|
231
245
|
'p-datatable-tbody': true,
|
|
232
246
|
'p-datatable-frozen-tbody': instance.frozenValue() || instance.frozenBodyTemplate(),
|
|
233
|
-
|
|
247
|
+
// the frozen rows stay out of the scrolled content: the scroller makes its content static and translates it
|
|
248
|
+
'p-virtualscroller-content': instance.virtualScroll() && !frozen
|
|
234
249
|
}),
|
|
235
250
|
rowGroupHeader: 'p-datatable-row-group-header',
|
|
236
251
|
rowToggleButton: 'p-datatable-row-toggle-button',
|
|
@@ -1042,7 +1057,7 @@ class Table extends BaseComponent {
|
|
|
1042
1057
|
* @param {TableSelectAllChangeEvent} event - custom all selection change event.
|
|
1043
1058
|
* @group Emits
|
|
1044
1059
|
*/
|
|
1045
|
-
|
|
1060
|
+
onSelectAllChange = output();
|
|
1046
1061
|
/**
|
|
1047
1062
|
* Callback to invoke when a row is selected.
|
|
1048
1063
|
* @param {TableRowSelectEvent} event - custom select event.
|
|
@@ -1374,6 +1389,8 @@ class Table extends BaseComponent {
|
|
|
1374
1389
|
...(ngDevMode ? [{ debugName: "_sortField" }] : /* istanbul ignore next */ []));
|
|
1375
1390
|
_sortOrder = linkedSignal(() => this.sortOrder(), /* @ts-ignore */
|
|
1376
1391
|
...(ngDevMode ? [{ debugName: "_sortOrder" }] : /* istanbul ignore next */ []));
|
|
1392
|
+
/** Field and order of the last single sort, to ignore a sortField/sortOrder binding that only mirrors it. */
|
|
1393
|
+
lastSingleSort = null;
|
|
1377
1394
|
preventSelectionSetterPropagation = signal(undefined, /* @ts-ignore */
|
|
1378
1395
|
...(ngDevMode ? [{ debugName: "preventSelectionSetterPropagation" }] : /* istanbul ignore next */ []));
|
|
1379
1396
|
anchorRowIndex = signal(undefined, /* @ts-ignore */
|
|
@@ -1405,6 +1422,12 @@ class Table extends BaseComponent {
|
|
|
1405
1422
|
columnResizing = signal(false, /* @ts-ignore */
|
|
1406
1423
|
...(ngDevMode ? [{ debugName: "columnResizing" }] : /* istanbul ignore next */ []));
|
|
1407
1424
|
rowGroupHeaderStyleObject = {};
|
|
1425
|
+
/**
|
|
1426
|
+
* Sticky top of the row group headers: the height of the header above the rows.
|
|
1427
|
+
* @group Interface
|
|
1428
|
+
*/
|
|
1429
|
+
rowGroupHeaderTop = signal('', /* @ts-ignore */
|
|
1430
|
+
...(ngDevMode ? [{ debugName: "rowGroupHeaderTop" }] : /* istanbul ignore next */ []));
|
|
1408
1431
|
id = UniqueComponentId();
|
|
1409
1432
|
styleElement = signal(undefined, /* @ts-ignore */
|
|
1410
1433
|
...(ngDevMode ? [{ debugName: "styleElement" }] : /* istanbul ignore next */ []));
|
|
@@ -1424,6 +1447,7 @@ class Table extends BaseComponent {
|
|
|
1424
1447
|
if (this.isStateful() && this.resizableColumns()) {
|
|
1425
1448
|
this.restoreColumnWidths();
|
|
1426
1449
|
}
|
|
1450
|
+
this.observeContainerSize();
|
|
1427
1451
|
}
|
|
1428
1452
|
this.initialized.set(true);
|
|
1429
1453
|
});
|
|
@@ -1469,13 +1493,17 @@ class Table extends BaseComponent {
|
|
|
1469
1493
|
});
|
|
1470
1494
|
});
|
|
1471
1495
|
effect(() => {
|
|
1472
|
-
this.sortField();
|
|
1496
|
+
const sortField = this.sortField();
|
|
1473
1497
|
this.groupRowsBy();
|
|
1474
|
-
this.sortOrder();
|
|
1498
|
+
const sortOrder = this.sortOrder();
|
|
1475
1499
|
this.groupRowsByOrder();
|
|
1476
1500
|
untracked(() => {
|
|
1501
|
+
// a consumer writing back the sort it received in onLazyLoad must not load the data again
|
|
1502
|
+
const mirrorsLastSort = this.lazy() && this.lastSingleSort?.field === sortField && this.lastSingleSort?.order === sortOrder;
|
|
1503
|
+
if (!mirrorsLastSort)
|
|
1504
|
+
this.lastSingleSort = null;
|
|
1477
1505
|
//avoid triggering lazy load prior to lazy initialization at onInit
|
|
1478
|
-
if (!this.lazy() || this.initialized()) {
|
|
1506
|
+
if ((!this.lazy() || this.initialized()) && !mirrorsLastSort) {
|
|
1479
1507
|
if (this.sortMode() === 'single') {
|
|
1480
1508
|
this.sortSingle();
|
|
1481
1509
|
}
|
|
@@ -1692,6 +1720,7 @@ class Table extends BaseComponent {
|
|
|
1692
1720
|
field: field,
|
|
1693
1721
|
order: order
|
|
1694
1722
|
};
|
|
1723
|
+
this.lastSingleSort = sortMeta;
|
|
1695
1724
|
this.onSort.emit(sortMeta);
|
|
1696
1725
|
this.tableService.onSort(sortMeta);
|
|
1697
1726
|
}
|
|
@@ -2147,7 +2176,7 @@ class Table extends BaseComponent {
|
|
|
2147
2176
|
}
|
|
2148
2177
|
toggleRowsWithCheckbox({ originalEvent }, check) {
|
|
2149
2178
|
if (this.selectAll() !== null) {
|
|
2150
|
-
this.
|
|
2179
|
+
this.onSelectAllChange.emit({ originalEvent: originalEvent, checked: check });
|
|
2151
2180
|
}
|
|
2152
2181
|
else {
|
|
2153
2182
|
const data = this.selectionPageOnly() ? this.dataToRender(this.processedData()) : this.processedData();
|
|
@@ -2599,7 +2628,8 @@ class Table extends BaseComponent {
|
|
|
2599
2628
|
onColumnResize(event) {
|
|
2600
2629
|
let containerLeft = DomHandler.getOffset(this.el?.nativeElement).left;
|
|
2601
2630
|
!this.$unstyled() && DomHandler.addClass(this.el?.nativeElement, 'p-unselectable-text');
|
|
2602
|
-
|
|
2631
|
+
// offsetHeight rounds a fractional height up, which made the indicator overflow the container of the table
|
|
2632
|
+
this.resizeHelperViewChild().nativeElement.style.height = this.el?.nativeElement.getBoundingClientRect().height + 'px';
|
|
2603
2633
|
this.resizeHelperViewChild().nativeElement.style.top = 0 + 'px';
|
|
2604
2634
|
if (event.type == 'touchmove') {
|
|
2605
2635
|
this.resizeHelperViewChild().nativeElement.style.left = event.changedTouches[0].clientX - containerLeft + this.el?.nativeElement.scrollLeft + 'px';
|
|
@@ -2657,6 +2687,30 @@ class Table extends BaseComponent {
|
|
|
2657
2687
|
this.reorderIconHeight.set(DomHandler.getHiddenElementOuterHeight(this.reorderIndicatorDownViewChild()?.nativeElement));
|
|
2658
2688
|
this.draggedColumn.set(columnElement);
|
|
2659
2689
|
event.dataTransfer.setData('text', 'b'); // For firefox
|
|
2690
|
+
this.bindColumnDragScrollLock();
|
|
2691
|
+
}
|
|
2692
|
+
columnDragScrollListener;
|
|
2693
|
+
// the browser scrolls a container when a dragged pointer comes near its edge, and the sticky header is at the top
|
|
2694
|
+
// edge of the rows: keep the rows still while a column is dragged, a column moves sideways only
|
|
2695
|
+
bindColumnDragScrollLock() {
|
|
2696
|
+
const container = this.virtualScroll() ? this.scroller()?.getElementRef()?.nativeElement : this.wrapperViewChild()?.nativeElement;
|
|
2697
|
+
if (container && !this.columnDragScrollListener) {
|
|
2698
|
+
const scrollTop = container.scrollTop;
|
|
2699
|
+
this.columnDragScrollListener = this.renderer.listen(container, 'scroll', () => {
|
|
2700
|
+
if (!this.draggedColumn()) {
|
|
2701
|
+
this.unbindColumnDragScrollLock();
|
|
2702
|
+
}
|
|
2703
|
+
else if (container.scrollTop !== scrollTop) {
|
|
2704
|
+
container.scrollTop = scrollTop;
|
|
2705
|
+
}
|
|
2706
|
+
});
|
|
2707
|
+
}
|
|
2708
|
+
}
|
|
2709
|
+
unbindColumnDragScrollLock() {
|
|
2710
|
+
if (this.columnDragScrollListener) {
|
|
2711
|
+
this.columnDragScrollListener();
|
|
2712
|
+
this.columnDragScrollListener = null;
|
|
2713
|
+
}
|
|
2660
2714
|
}
|
|
2661
2715
|
onColumnDragEnter(event, dropHeader) {
|
|
2662
2716
|
if (this.reorderableColumns() && this.draggedColumn() && dropHeader) {
|
|
@@ -2747,6 +2801,7 @@ class Table extends BaseComponent {
|
|
|
2747
2801
|
this.draggedColumn.set(null);
|
|
2748
2802
|
this.dropPosition.set(null);
|
|
2749
2803
|
}
|
|
2804
|
+
this.unbindColumnDragScrollLock();
|
|
2750
2805
|
}
|
|
2751
2806
|
// keyboard alternative to the drag and drop: move the column one place towards the given direction
|
|
2752
2807
|
onColumnKeyboardReorder(event, columnElement) {
|
|
@@ -2787,6 +2842,7 @@ class Table extends BaseComponent {
|
|
|
2787
2842
|
this.draggedColumn.set(null);
|
|
2788
2843
|
this.dropPosition.set(null);
|
|
2789
2844
|
}
|
|
2845
|
+
this.unbindColumnDragScrollLock();
|
|
2790
2846
|
}
|
|
2791
2847
|
resizeTableCells(newColumnWidth, nextColumnWidth) {
|
|
2792
2848
|
let colIndex = DomHandler.index(this.resizeColumnElement());
|
|
@@ -3098,6 +3154,10 @@ class Table extends BaseComponent {
|
|
|
3098
3154
|
DomHandler.setAttribute(this.responsiveStyleElement(), 'nonce', this.config?.csp()?.nonce);
|
|
3099
3155
|
this.renderer.appendChild(this.document.head, this.responsiveStyleElement());
|
|
3100
3156
|
let innerHTML = `
|
|
3157
|
+
#${this.id}-table > .p-datatable-tbody > tr > td > .p-datatable-column-title {
|
|
3158
|
+
display: none;
|
|
3159
|
+
}
|
|
3160
|
+
|
|
3101
3161
|
@media screen and (max-width: ${this.breakpoint()}) {
|
|
3102
3162
|
#${this.id}-table > .p-datatable-thead > tr > th,
|
|
3103
3163
|
#${this.id}-table > .p-datatable-tfoot > tr > td {
|
|
@@ -3115,7 +3175,7 @@ class Table extends BaseComponent {
|
|
|
3115
3175
|
border: 0 none;
|
|
3116
3176
|
}
|
|
3117
3177
|
|
|
3118
|
-
|
|
3178
|
+
.p-datatable-gridlines #${this.id}-table > .p-datatable-tbody > tr > td:last-child {
|
|
3119
3179
|
border-top: 0;
|
|
3120
3180
|
border-right: 0;
|
|
3121
3181
|
border-left: 0;
|
|
@@ -3143,10 +3203,27 @@ class Table extends BaseComponent {
|
|
|
3143
3203
|
this.styleElement.set(null);
|
|
3144
3204
|
}
|
|
3145
3205
|
}
|
|
3206
|
+
containerResizeObserver;
|
|
3207
|
+
// the virtual scroller measures its viewport on its first render and on window resizes only: a container sized
|
|
3208
|
+
// later (a dialog opening, a flex layout settling) left it with no rows, so tell it when the container size changes
|
|
3209
|
+
observeContainerSize() {
|
|
3210
|
+
const ResizeObserverType = this.document.defaultView?.ResizeObserver;
|
|
3211
|
+
const wrapper = this.wrapperViewChild()?.nativeElement;
|
|
3212
|
+
if (ResizeObserverType && wrapper && !this.containerResizeObserver) {
|
|
3213
|
+
this.containerResizeObserver = new ResizeObserverType(() => {
|
|
3214
|
+
if (this.virtualScroll()) {
|
|
3215
|
+
this.scroller()?.onWindowResize();
|
|
3216
|
+
}
|
|
3217
|
+
});
|
|
3218
|
+
this.containerResizeObserver.observe(wrapper);
|
|
3219
|
+
}
|
|
3220
|
+
}
|
|
3146
3221
|
onDestroy() {
|
|
3147
3222
|
this.unbindDocumentEditListener();
|
|
3148
3223
|
this.editingCell.set(null);
|
|
3149
3224
|
this.initialized.set(null);
|
|
3225
|
+
this.containerResizeObserver?.disconnect();
|
|
3226
|
+
this.unbindColumnDragScrollLock();
|
|
3150
3227
|
this.destroyStyleElement();
|
|
3151
3228
|
this.destroyResponsiveStyle();
|
|
3152
3229
|
}
|
|
@@ -3161,7 +3238,7 @@ class Table extends BaseComponent {
|
|
|
3161
3238
|
}, /* @ts-ignore */
|
|
3162
3239
|
...(ngDevMode ? [{ debugName: "dataP" }] : /* istanbul ignore next */ []));
|
|
3163
3240
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Table, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3164
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: Table, isStandalone: false, selector: "p-table", inputs: { frozenValue: { classPropertyName: "frozenValue", publicName: "frozenValue", isSignal: true, isRequired: false, transformFunction: null }, tableStyle: { classPropertyName: "tableStyle", publicName: "tableStyle", isSignal: true, isRequired: false, transformFunction: null }, tableStyleClass: { classPropertyName: "tableStyleClass", publicName: "tableStyleClass", isSignal: true, isRequired: false, transformFunction: null }, paginator: { classPropertyName: "paginator", publicName: "paginator", isSignal: true, isRequired: false, transformFunction: null }, pageLinks: { classPropertyName: "pageLinks", publicName: "pageLinks", isSignal: true, isRequired: false, transformFunction: null }, rowsPerPageOptions: { classPropertyName: "rowsPerPageOptions", publicName: "rowsPerPageOptions", isSignal: true, isRequired: false, transformFunction: null }, alwaysShowPaginator: { classPropertyName: "alwaysShowPaginator", publicName: "alwaysShowPaginator", isSignal: true, isRequired: false, transformFunction: null }, paginatorPosition: { classPropertyName: "paginatorPosition", publicName: "paginatorPosition", isSignal: true, isRequired: false, transformFunction: null }, paginatorStyleClass: { classPropertyName: "paginatorStyleClass", publicName: "paginatorStyleClass", isSignal: true, isRequired: false, transformFunction: null }, paginatorDropdownAppendTo: { classPropertyName: "paginatorDropdownAppendTo", publicName: "paginatorDropdownAppendTo", isSignal: true, isRequired: false, transformFunction: null }, paginatorDropdownScrollHeight: { classPropertyName: "paginatorDropdownScrollHeight", publicName: "paginatorDropdownScrollHeight", isSignal: true, isRequired: false, transformFunction: null }, currentPageReportTemplate: { classPropertyName: "currentPageReportTemplate", publicName: "currentPageReportTemplate", isSignal: true, isRequired: false, transformFunction: null }, showCurrentPageReport: { classPropertyName: "showCurrentPageReport", publicName: "showCurrentPageReport", isSignal: true, isRequired: false, transformFunction: null }, showJumpToPageDropdown: { classPropertyName: "showJumpToPageDropdown", publicName: "showJumpToPageDropdown", isSignal: true, isRequired: false, transformFunction: null }, showJumpToPageInput: { classPropertyName: "showJumpToPageInput", publicName: "showJumpToPageInput", isSignal: true, isRequired: false, transformFunction: null }, showFirstLastIcon: { classPropertyName: "showFirstLastIcon", publicName: "showFirstLastIcon", isSignal: true, isRequired: false, transformFunction: null }, showPageLinks: { classPropertyName: "showPageLinks", publicName: "showPageLinks", isSignal: true, isRequired: false, transformFunction: null }, defaultSortOrder: { classPropertyName: "defaultSortOrder", publicName: "defaultSortOrder", isSignal: true, isRequired: false, transformFunction: null }, sortMode: { classPropertyName: "sortMode", publicName: "sortMode", isSignal: true, isRequired: false, transformFunction: null }, resetPageOnSort: { classPropertyName: "resetPageOnSort", publicName: "resetPageOnSort", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, selectionPageOnly: { classPropertyName: "selectionPageOnly", publicName: "selectionPageOnly", isSignal: true, isRequired: false, transformFunction: null }, contextMenuSelection: { classPropertyName: "contextMenuSelection", publicName: "contextMenuSelection", isSignal: true, isRequired: false, transformFunction: null }, contextMenuSelectionMode: { classPropertyName: "contextMenuSelectionMode", publicName: "contextMenuSelectionMode", isSignal: true, isRequired: false, transformFunction: null }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null }, metaKeySelection: { classPropertyName: "metaKeySelection", publicName: "metaKeySelection", isSignal: true, isRequired: false, transformFunction: null }, rowSelectable: { classPropertyName: "rowSelectable", publicName: "rowSelectable", isSignal: true, isRequired: false, transformFunction: null }, rowTrackBy: { classPropertyName: "rowTrackBy", publicName: "rowTrackBy", isSignal: true, isRequired: false, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null }, lazyLoadOnInit: { classPropertyName: "lazyLoadOnInit", publicName: "lazyLoadOnInit", isSignal: true, isRequired: false, transformFunction: null }, compareSelectionBy: { classPropertyName: "compareSelectionBy", publicName: "compareSelectionBy", isSignal: true, isRequired: false, transformFunction: null }, csvSeparator: { classPropertyName: "csvSeparator", publicName: "csvSeparator", isSignal: true, isRequired: false, transformFunction: null }, exportFilename: { classPropertyName: "exportFilename", publicName: "exportFilename", isSignal: true, isRequired: false, transformFunction: null }, filters: { classPropertyName: "filters", publicName: "filters", isSignal: true, isRequired: false, transformFunction: null }, globalFilterFields: { classPropertyName: "globalFilterFields", publicName: "globalFilterFields", isSignal: true, isRequired: false, transformFunction: null }, filterDelay: { classPropertyName: "filterDelay", publicName: "filterDelay", isSignal: true, isRequired: false, transformFunction: null }, filterLocale: { classPropertyName: "filterLocale", publicName: "filterLocale", isSignal: true, isRequired: false, transformFunction: null }, expandedRowKeys: { classPropertyName: "expandedRowKeys", publicName: "expandedRowKeys", isSignal: true, isRequired: false, transformFunction: null }, editingRowKeys: { classPropertyName: "editingRowKeys", publicName: "editingRowKeys", isSignal: true, isRequired: false, transformFunction: null }, rowExpandMode: { classPropertyName: "rowExpandMode", publicName: "rowExpandMode", isSignal: true, isRequired: false, transformFunction: null }, scrollable: { classPropertyName: "scrollable", publicName: "scrollable", isSignal: true, isRequired: false, transformFunction: null }, rowGroupMode: { classPropertyName: "rowGroupMode", publicName: "rowGroupMode", isSignal: true, isRequired: false, transformFunction: null }, scrollHeight: { classPropertyName: "scrollHeight", publicName: "scrollHeight", isSignal: true, isRequired: false, transformFunction: null }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: true, isRequired: false, transformFunction: null }, virtualScrollItemSize: { classPropertyName: "virtualScrollItemSize", publicName: "virtualScrollItemSize", isSignal: true, isRequired: false, transformFunction: null }, virtualScrollOptions: { classPropertyName: "virtualScrollOptions", publicName: "virtualScrollOptions", isSignal: true, isRequired: false, transformFunction: null }, virtualScrollDelay: { classPropertyName: "virtualScrollDelay", publicName: "virtualScrollDelay", isSignal: true, isRequired: false, transformFunction: null }, contextMenu: { classPropertyName: "contextMenu", publicName: "contextMenu", isSignal: true, isRequired: false, transformFunction: null }, resizableColumns: { classPropertyName: "resizableColumns", publicName: "resizableColumns", isSignal: true, isRequired: false, transformFunction: null }, columnResizeMode: { classPropertyName: "columnResizeMode", publicName: "columnResizeMode", isSignal: true, isRequired: false, transformFunction: null }, reorderableColumns: { classPropertyName: "reorderableColumns", publicName: "reorderableColumns", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, loadingIcon: { classPropertyName: "loadingIcon", publicName: "loadingIcon", isSignal: true, isRequired: false, transformFunction: null }, showLoader: { classPropertyName: "showLoader", publicName: "showLoader", isSignal: true, isRequired: false, transformFunction: null }, rowHover: { classPropertyName: "rowHover", publicName: "rowHover", isSignal: true, isRequired: false, transformFunction: null }, customSort: { classPropertyName: "customSort", publicName: "customSort", isSignal: true, isRequired: false, transformFunction: null }, showInitialSortBadge: { classPropertyName: "showInitialSortBadge", publicName: "showInitialSortBadge", isSignal: true, isRequired: false, transformFunction: null }, exportFunction: { classPropertyName: "exportFunction", publicName: "exportFunction", isSignal: true, isRequired: false, transformFunction: null }, exportHeader: { classPropertyName: "exportHeader", publicName: "exportHeader", isSignal: true, isRequired: false, transformFunction: null }, stateKey: { classPropertyName: "stateKey", publicName: "stateKey", isSignal: true, isRequired: false, transformFunction: null }, stateStorage: { classPropertyName: "stateStorage", publicName: "stateStorage", isSignal: true, isRequired: false, transformFunction: null }, editMode: { classPropertyName: "editMode", publicName: "editMode", isSignal: true, isRequired: false, transformFunction: null }, groupRowsBy: { classPropertyName: "groupRowsBy", publicName: "groupRowsBy", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, showGridlines: { classPropertyName: "showGridlines", publicName: "showGridlines", isSignal: true, isRequired: false, transformFunction: null }, stripedRows: { classPropertyName: "stripedRows", publicName: "stripedRows", isSignal: true, isRequired: false, transformFunction: null }, groupRowsByOrder: { classPropertyName: "groupRowsByOrder", publicName: "groupRowsByOrder", isSignal: true, isRequired: false, transformFunction: null }, responsiveLayout: { classPropertyName: "responsiveLayout", publicName: "responsiveLayout", isSignal: true, isRequired: false, transformFunction: null }, breakpoint: { classPropertyName: "breakpoint", publicName: "breakpoint", isSignal: true, isRequired: false, transformFunction: null }, paginatorLocale: { classPropertyName: "paginatorLocale", publicName: "paginatorLocale", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, first: { classPropertyName: "first", publicName: "first", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, totalRecords: { classPropertyName: "totalRecords", publicName: "totalRecords", isSignal: true, isRequired: false, transformFunction: null }, sortField: { classPropertyName: "sortField", publicName: "sortField", isSignal: true, isRequired: false, transformFunction: null }, sortOrder: { classPropertyName: "sortOrder", publicName: "sortOrder", isSignal: true, isRequired: false, transformFunction: null }, multiSortMeta: { classPropertyName: "multiSortMeta", publicName: "multiSortMeta", isSignal: true, isRequired: false, transformFunction: null }, selection: { classPropertyName: "selection", publicName: "selection", isSignal: true, isRequired: false, transformFunction: null }, selectAll: { classPropertyName: "selectAll", publicName: "selectAll", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { contextMenuSelection: "contextMenuSelectionChange", first: "firstChange", rows: "rowsChange", selection: "selectionChange", selectAllChange: "selectAllChange", onRowSelect: "onRowSelect", onRowUnselect: "onRowUnselect", onPage: "onPage", onSort: "onSort", onFilter: "onFilter", onLazyLoad: "onLazyLoad", onRowExpand: "onRowExpand", onRowCollapse: "onRowCollapse", onContextMenuSelect: "onContextMenuSelect", onColResize: "onColResize", onColReorder: "onColReorder", onRowReorder: "onRowReorder", onEditInit: "onEditInit", onEditComplete: "onEditComplete", onEditCancel: "onEditCancel", onHeaderCheckboxToggle: "onHeaderCheckboxToggle", sortFunction: "sortFunction", onStateSave: "onStateSave", onStateRestore: "onStateRestore" }, host: { properties: { "class": "cx('root')", "style.height": "virtualScrollViewportHeight()", "attr.data-p": "dataP()" } }, providers: [TableService, TableStyle, { provide: TABLE_INSTANCE, useExisting: Table }, { provide: PARENT_INSTANCE, useExisting: Table }], queries: [{ propertyName: "_templates", predicate: PrimeTemplate, isSignal: true }, { propertyName: "_headerTemplate", first: true, predicate: ["header"], isSignal: true }, { propertyName: "_bodyTemplate", first: true, predicate: ["body"], isSignal: true }, { propertyName: "_loadingBodyTemplate", first: true, predicate: ["loadingbody"], isSignal: true }, { propertyName: "_captionTemplate", first: true, predicate: ["caption"], isSignal: true }, { propertyName: "_footerTemplate", first: true, predicate: ["footer"], isSignal: true }, { propertyName: "_footerGroupedTemplate", first: true, predicate: ["footergrouped"], isSignal: true }, { propertyName: "_summaryTemplate", first: true, predicate: ["summary"], isSignal: true }, { propertyName: "_colGroupTemplate", first: true, predicate: ["colgroup"], isSignal: true }, { propertyName: "_expandedRowTemplate", first: true, predicate: ["expandedrow"], isSignal: true }, { propertyName: "_groupHeaderTemplate", first: true, predicate: ["groupheader"], isSignal: true }, { propertyName: "_groupFooterTemplate", first: true, predicate: ["groupfooter"], isSignal: true }, { propertyName: "_frozenExpandedRowTemplate", first: true, predicate: ["frozenexpandedrow"], isSignal: true }, { propertyName: "_frozenBodyTemplate", first: true, predicate: ["frozenbody"], 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: "_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: "_paginatorDropdownIconTemplate", first: true, predicate: ["paginatordropdownicon"], 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 }], viewQueries: [{ propertyName: "resizeHelperViewChild", first: true, predicate: ["resizeHelper"], descendants: true, isSignal: true }, { propertyName: "reorderIndicatorUpViewChild", first: true, predicate: ["reorderIndicatorUp"], descendants: true, isSignal: true }, { propertyName: "reorderIndicatorDownViewChild", first: true, predicate: ["reorderIndicatorDown"], descendants: true, isSignal: true }, { propertyName: "wrapperViewChild", first: true, predicate: ["wrapper"], descendants: true, isSignal: true }, { propertyName: "tableViewChild", first: true, predicate: ["table"], descendants: true, isSignal: true }, { propertyName: "scroller", first: true, predicate: ["scroller"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
3241
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: Table, isStandalone: false, selector: "p-table", inputs: { frozenValue: { classPropertyName: "frozenValue", publicName: "frozenValue", isSignal: true, isRequired: false, transformFunction: null }, tableStyle: { classPropertyName: "tableStyle", publicName: "tableStyle", isSignal: true, isRequired: false, transformFunction: null }, tableStyleClass: { classPropertyName: "tableStyleClass", publicName: "tableStyleClass", isSignal: true, isRequired: false, transformFunction: null }, paginator: { classPropertyName: "paginator", publicName: "paginator", isSignal: true, isRequired: false, transformFunction: null }, pageLinks: { classPropertyName: "pageLinks", publicName: "pageLinks", isSignal: true, isRequired: false, transformFunction: null }, rowsPerPageOptions: { classPropertyName: "rowsPerPageOptions", publicName: "rowsPerPageOptions", isSignal: true, isRequired: false, transformFunction: null }, alwaysShowPaginator: { classPropertyName: "alwaysShowPaginator", publicName: "alwaysShowPaginator", isSignal: true, isRequired: false, transformFunction: null }, paginatorPosition: { classPropertyName: "paginatorPosition", publicName: "paginatorPosition", isSignal: true, isRequired: false, transformFunction: null }, paginatorStyleClass: { classPropertyName: "paginatorStyleClass", publicName: "paginatorStyleClass", isSignal: true, isRequired: false, transformFunction: null }, paginatorDropdownAppendTo: { classPropertyName: "paginatorDropdownAppendTo", publicName: "paginatorDropdownAppendTo", isSignal: true, isRequired: false, transformFunction: null }, paginatorDropdownScrollHeight: { classPropertyName: "paginatorDropdownScrollHeight", publicName: "paginatorDropdownScrollHeight", isSignal: true, isRequired: false, transformFunction: null }, currentPageReportTemplate: { classPropertyName: "currentPageReportTemplate", publicName: "currentPageReportTemplate", isSignal: true, isRequired: false, transformFunction: null }, showCurrentPageReport: { classPropertyName: "showCurrentPageReport", publicName: "showCurrentPageReport", isSignal: true, isRequired: false, transformFunction: null }, showJumpToPageDropdown: { classPropertyName: "showJumpToPageDropdown", publicName: "showJumpToPageDropdown", isSignal: true, isRequired: false, transformFunction: null }, showJumpToPageInput: { classPropertyName: "showJumpToPageInput", publicName: "showJumpToPageInput", isSignal: true, isRequired: false, transformFunction: null }, showFirstLastIcon: { classPropertyName: "showFirstLastIcon", publicName: "showFirstLastIcon", isSignal: true, isRequired: false, transformFunction: null }, showPageLinks: { classPropertyName: "showPageLinks", publicName: "showPageLinks", isSignal: true, isRequired: false, transformFunction: null }, defaultSortOrder: { classPropertyName: "defaultSortOrder", publicName: "defaultSortOrder", isSignal: true, isRequired: false, transformFunction: null }, sortMode: { classPropertyName: "sortMode", publicName: "sortMode", isSignal: true, isRequired: false, transformFunction: null }, resetPageOnSort: { classPropertyName: "resetPageOnSort", publicName: "resetPageOnSort", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, selectionPageOnly: { classPropertyName: "selectionPageOnly", publicName: "selectionPageOnly", isSignal: true, isRequired: false, transformFunction: null }, contextMenuSelection: { classPropertyName: "contextMenuSelection", publicName: "contextMenuSelection", isSignal: true, isRequired: false, transformFunction: null }, contextMenuSelectionMode: { classPropertyName: "contextMenuSelectionMode", publicName: "contextMenuSelectionMode", isSignal: true, isRequired: false, transformFunction: null }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null }, metaKeySelection: { classPropertyName: "metaKeySelection", publicName: "metaKeySelection", isSignal: true, isRequired: false, transformFunction: null }, rowSelectable: { classPropertyName: "rowSelectable", publicName: "rowSelectable", isSignal: true, isRequired: false, transformFunction: null }, rowTrackBy: { classPropertyName: "rowTrackBy", publicName: "rowTrackBy", isSignal: true, isRequired: false, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null }, lazyLoadOnInit: { classPropertyName: "lazyLoadOnInit", publicName: "lazyLoadOnInit", isSignal: true, isRequired: false, transformFunction: null }, compareSelectionBy: { classPropertyName: "compareSelectionBy", publicName: "compareSelectionBy", isSignal: true, isRequired: false, transformFunction: null }, csvSeparator: { classPropertyName: "csvSeparator", publicName: "csvSeparator", isSignal: true, isRequired: false, transformFunction: null }, exportFilename: { classPropertyName: "exportFilename", publicName: "exportFilename", isSignal: true, isRequired: false, transformFunction: null }, filters: { classPropertyName: "filters", publicName: "filters", isSignal: true, isRequired: false, transformFunction: null }, globalFilterFields: { classPropertyName: "globalFilterFields", publicName: "globalFilterFields", isSignal: true, isRequired: false, transformFunction: null }, filterDelay: { classPropertyName: "filterDelay", publicName: "filterDelay", isSignal: true, isRequired: false, transformFunction: null }, filterLocale: { classPropertyName: "filterLocale", publicName: "filterLocale", isSignal: true, isRequired: false, transformFunction: null }, expandedRowKeys: { classPropertyName: "expandedRowKeys", publicName: "expandedRowKeys", isSignal: true, isRequired: false, transformFunction: null }, editingRowKeys: { classPropertyName: "editingRowKeys", publicName: "editingRowKeys", isSignal: true, isRequired: false, transformFunction: null }, rowExpandMode: { classPropertyName: "rowExpandMode", publicName: "rowExpandMode", isSignal: true, isRequired: false, transformFunction: null }, scrollable: { classPropertyName: "scrollable", publicName: "scrollable", isSignal: true, isRequired: false, transformFunction: null }, rowGroupMode: { classPropertyName: "rowGroupMode", publicName: "rowGroupMode", isSignal: true, isRequired: false, transformFunction: null }, scrollHeight: { classPropertyName: "scrollHeight", publicName: "scrollHeight", isSignal: true, isRequired: false, transformFunction: null }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: true, isRequired: false, transformFunction: null }, virtualScrollItemSize: { classPropertyName: "virtualScrollItemSize", publicName: "virtualScrollItemSize", isSignal: true, isRequired: false, transformFunction: null }, virtualScrollOptions: { classPropertyName: "virtualScrollOptions", publicName: "virtualScrollOptions", isSignal: true, isRequired: false, transformFunction: null }, virtualScrollDelay: { classPropertyName: "virtualScrollDelay", publicName: "virtualScrollDelay", isSignal: true, isRequired: false, transformFunction: null }, contextMenu: { classPropertyName: "contextMenu", publicName: "contextMenu", isSignal: true, isRequired: false, transformFunction: null }, resizableColumns: { classPropertyName: "resizableColumns", publicName: "resizableColumns", isSignal: true, isRequired: false, transformFunction: null }, columnResizeMode: { classPropertyName: "columnResizeMode", publicName: "columnResizeMode", isSignal: true, isRequired: false, transformFunction: null }, reorderableColumns: { classPropertyName: "reorderableColumns", publicName: "reorderableColumns", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, loadingIcon: { classPropertyName: "loadingIcon", publicName: "loadingIcon", isSignal: true, isRequired: false, transformFunction: null }, showLoader: { classPropertyName: "showLoader", publicName: "showLoader", isSignal: true, isRequired: false, transformFunction: null }, rowHover: { classPropertyName: "rowHover", publicName: "rowHover", isSignal: true, isRequired: false, transformFunction: null }, customSort: { classPropertyName: "customSort", publicName: "customSort", isSignal: true, isRequired: false, transformFunction: null }, showInitialSortBadge: { classPropertyName: "showInitialSortBadge", publicName: "showInitialSortBadge", isSignal: true, isRequired: false, transformFunction: null }, exportFunction: { classPropertyName: "exportFunction", publicName: "exportFunction", isSignal: true, isRequired: false, transformFunction: null }, exportHeader: { classPropertyName: "exportHeader", publicName: "exportHeader", isSignal: true, isRequired: false, transformFunction: null }, stateKey: { classPropertyName: "stateKey", publicName: "stateKey", isSignal: true, isRequired: false, transformFunction: null }, stateStorage: { classPropertyName: "stateStorage", publicName: "stateStorage", isSignal: true, isRequired: false, transformFunction: null }, editMode: { classPropertyName: "editMode", publicName: "editMode", isSignal: true, isRequired: false, transformFunction: null }, groupRowsBy: { classPropertyName: "groupRowsBy", publicName: "groupRowsBy", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, showGridlines: { classPropertyName: "showGridlines", publicName: "showGridlines", isSignal: true, isRequired: false, transformFunction: null }, stripedRows: { classPropertyName: "stripedRows", publicName: "stripedRows", isSignal: true, isRequired: false, transformFunction: null }, groupRowsByOrder: { classPropertyName: "groupRowsByOrder", publicName: "groupRowsByOrder", isSignal: true, isRequired: false, transformFunction: null }, responsiveLayout: { classPropertyName: "responsiveLayout", publicName: "responsiveLayout", isSignal: true, isRequired: false, transformFunction: null }, breakpoint: { classPropertyName: "breakpoint", publicName: "breakpoint", isSignal: true, isRequired: false, transformFunction: null }, paginatorLocale: { classPropertyName: "paginatorLocale", publicName: "paginatorLocale", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, first: { classPropertyName: "first", publicName: "first", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, totalRecords: { classPropertyName: "totalRecords", publicName: "totalRecords", isSignal: true, isRequired: false, transformFunction: null }, sortField: { classPropertyName: "sortField", publicName: "sortField", isSignal: true, isRequired: false, transformFunction: null }, sortOrder: { classPropertyName: "sortOrder", publicName: "sortOrder", isSignal: true, isRequired: false, transformFunction: null }, multiSortMeta: { classPropertyName: "multiSortMeta", publicName: "multiSortMeta", isSignal: true, isRequired: false, transformFunction: null }, selection: { classPropertyName: "selection", publicName: "selection", isSignal: true, isRequired: false, transformFunction: null }, selectAll: { classPropertyName: "selectAll", publicName: "selectAll", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { contextMenuSelection: "contextMenuSelectionChange", first: "firstChange", rows: "rowsChange", selection: "selectionChange", onSelectAllChange: "onSelectAllChange", onRowSelect: "onRowSelect", onRowUnselect: "onRowUnselect", onPage: "onPage", onSort: "onSort", onFilter: "onFilter", onLazyLoad: "onLazyLoad", onRowExpand: "onRowExpand", onRowCollapse: "onRowCollapse", onContextMenuSelect: "onContextMenuSelect", onColResize: "onColResize", onColReorder: "onColReorder", onRowReorder: "onRowReorder", onEditInit: "onEditInit", onEditComplete: "onEditComplete", onEditCancel: "onEditCancel", onHeaderCheckboxToggle: "onHeaderCheckboxToggle", sortFunction: "sortFunction", onStateSave: "onStateSave", onStateRestore: "onStateRestore" }, host: { properties: { "class": "cx('root')", "style.height": "virtualScrollViewportHeight()", "attr.data-p": "dataP()" } }, providers: [TableService, TableStyle, { provide: TABLE_INSTANCE, useExisting: Table }, { provide: PARENT_INSTANCE, useExisting: Table }], queries: [{ propertyName: "_templates", predicate: PrimeTemplate, isSignal: true }, { propertyName: "_headerTemplate", first: true, predicate: ["header"], isSignal: true }, { propertyName: "_bodyTemplate", first: true, predicate: ["body"], isSignal: true }, { propertyName: "_loadingBodyTemplate", first: true, predicate: ["loadingbody"], isSignal: true }, { propertyName: "_captionTemplate", first: true, predicate: ["caption"], isSignal: true }, { propertyName: "_footerTemplate", first: true, predicate: ["footer"], isSignal: true }, { propertyName: "_footerGroupedTemplate", first: true, predicate: ["footergrouped"], isSignal: true }, { propertyName: "_summaryTemplate", first: true, predicate: ["summary"], isSignal: true }, { propertyName: "_colGroupTemplate", first: true, predicate: ["colgroup"], isSignal: true }, { propertyName: "_expandedRowTemplate", first: true, predicate: ["expandedrow"], isSignal: true }, { propertyName: "_groupHeaderTemplate", first: true, predicate: ["groupheader"], isSignal: true }, { propertyName: "_groupFooterTemplate", first: true, predicate: ["groupfooter"], isSignal: true }, { propertyName: "_frozenExpandedRowTemplate", first: true, predicate: ["frozenexpandedrow"], isSignal: true }, { propertyName: "_frozenBodyTemplate", first: true, predicate: ["frozenbody"], 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: "_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: "_paginatorDropdownIconTemplate", first: true, predicate: ["paginatordropdownicon"], 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 }], viewQueries: [{ propertyName: "resizeHelperViewChild", first: true, predicate: ["resizeHelper"], descendants: true, isSignal: true }, { propertyName: "reorderIndicatorUpViewChild", first: true, predicate: ["reorderIndicatorUp"], descendants: true, isSignal: true }, { propertyName: "reorderIndicatorDownViewChild", first: true, predicate: ["reorderIndicatorDown"], descendants: true, isSignal: true }, { propertyName: "wrapperViewChild", first: true, predicate: ["wrapper"], descendants: true, isSignal: true }, { propertyName: "tableViewChild", first: true, predicate: ["table"], descendants: true, isSignal: true }, { propertyName: "scroller", first: true, predicate: ["scroller"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
3165
3242
|
@if (loading() && showLoader()) {
|
|
3166
3243
|
<div [class]="cx('mask')" [pBind]="ptm('mask')" animate.enter="p-overlay-mask-enter-active" animate.leave="p-overlay-mask-leave-active">
|
|
3167
3244
|
@if (loadingIcon()) {
|
|
@@ -3246,7 +3323,7 @@ class Table extends BaseComponent {
|
|
|
3246
3323
|
[style]="{
|
|
3247
3324
|
height: scrollHeight() !== 'flex' ? scrollHeight() : undefined
|
|
3248
3325
|
}"
|
|
3249
|
-
[scrollHeight]="scrollHeight() !== 'flex' ?
|
|
3326
|
+
[scrollHeight]="scrollHeight() !== 'flex' ? scrollHeight() : '100%'"
|
|
3250
3327
|
[itemSize]="virtualScrollItemSize()"
|
|
3251
3328
|
[step]="rows()"
|
|
3252
3329
|
[delay]="lazy() ? virtualScrollDelay() : 0"
|
|
@@ -3301,7 +3378,7 @@ class Table extends BaseComponent {
|
|
|
3301
3378
|
@if (frozenValue() || frozenBodyTemplate() || _frozenBodyTemplate()) {
|
|
3302
3379
|
<tbody
|
|
3303
3380
|
role="rowgroup"
|
|
3304
|
-
[class]="cx('tbody')"
|
|
3381
|
+
[class]="cx('tbody', { frozen: true })"
|
|
3305
3382
|
[pBind]="ptm('tbody')"
|
|
3306
3383
|
[value]="frozenValue()"
|
|
3307
3384
|
[frozenRows]="true"
|
|
@@ -3519,7 +3596,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
3519
3596
|
[style]="{
|
|
3520
3597
|
height: scrollHeight() !== 'flex' ? scrollHeight() : undefined
|
|
3521
3598
|
}"
|
|
3522
|
-
[scrollHeight]="scrollHeight() !== 'flex' ?
|
|
3599
|
+
[scrollHeight]="scrollHeight() !== 'flex' ? scrollHeight() : '100%'"
|
|
3523
3600
|
[itemSize]="virtualScrollItemSize()"
|
|
3524
3601
|
[step]="rows()"
|
|
3525
3602
|
[delay]="lazy() ? virtualScrollDelay() : 0"
|
|
@@ -3574,7 +3651,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
3574
3651
|
@if (frozenValue() || frozenBodyTemplate() || _frozenBodyTemplate()) {
|
|
3575
3652
|
<tbody
|
|
3576
3653
|
role="rowgroup"
|
|
3577
|
-
[class]="cx('tbody')"
|
|
3654
|
+
[class]="cx('tbody', { frozen: true })"
|
|
3578
3655
|
[pBind]="ptm('tbody')"
|
|
3579
3656
|
[value]="frozenValue()"
|
|
3580
3657
|
[frozenRows]="true"
|
|
@@ -3711,7 +3788,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
3711
3788
|
},
|
|
3712
3789
|
hostDirectives: [Bind]
|
|
3713
3790
|
}]
|
|
3714
|
-
}], ctorParameters: () => [], propDecorators: { frozenValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "frozenValue", required: false }] }], tableStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "tableStyle", required: false }] }], tableStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "tableStyleClass", required: false }] }], paginator: [{ type: i0.Input, args: [{ isSignal: true, alias: "paginator", required: false }] }], pageLinks: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageLinks", required: false }] }], rowsPerPageOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowsPerPageOptions", required: false }] }], alwaysShowPaginator: [{ type: i0.Input, args: [{ isSignal: true, alias: "alwaysShowPaginator", required: false }] }], paginatorPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "paginatorPosition", required: false }] }], paginatorStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "paginatorStyleClass", required: false }] }], paginatorDropdownAppendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "paginatorDropdownAppendTo", required: false }] }], paginatorDropdownScrollHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "paginatorDropdownScrollHeight", required: false }] }], currentPageReportTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "currentPageReportTemplate", required: false }] }], showCurrentPageReport: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCurrentPageReport", required: false }] }], showJumpToPageDropdown: [{ type: i0.Input, args: [{ isSignal: true, alias: "showJumpToPageDropdown", required: false }] }], showJumpToPageInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "showJumpToPageInput", required: false }] }], showFirstLastIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showFirstLastIcon", required: false }] }], showPageLinks: [{ type: i0.Input, args: [{ isSignal: true, alias: "showPageLinks", required: false }] }], defaultSortOrder: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultSortOrder", required: false }] }], sortMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortMode", required: false }] }], resetPageOnSort: [{ type: i0.Input, args: [{ isSignal: true, alias: "resetPageOnSort", required: false }] }], selectionMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionMode", required: false }] }], selectionPageOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionPageOnly", required: false }] }], contextMenuSelection: [{ type: i0.Input, args: [{ isSignal: true, alias: "contextMenuSelection", required: false }] }, { type: i0.Output, args: ["contextMenuSelectionChange"] }], contextMenuSelectionMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "contextMenuSelectionMode", required: false }] }], dataKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataKey", required: false }] }], metaKeySelection: [{ type: i0.Input, args: [{ isSignal: true, alias: "metaKeySelection", required: false }] }], rowSelectable: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowSelectable", required: false }] }], rowTrackBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowTrackBy", required: false }] }], lazy: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazy", required: false }] }], lazyLoadOnInit: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazyLoadOnInit", required: false }] }], compareSelectionBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "compareSelectionBy", required: false }] }], csvSeparator: [{ type: i0.Input, args: [{ isSignal: true, alias: "csvSeparator", required: false }] }], exportFilename: [{ type: i0.Input, args: [{ isSignal: true, alias: "exportFilename", required: false }] }], filters: [{ type: i0.Input, args: [{ isSignal: true, alias: "filters", required: false }] }], globalFilterFields: [{ type: i0.Input, args: [{ isSignal: true, alias: "globalFilterFields", required: false }] }], filterDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterDelay", required: false }] }], filterLocale: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterLocale", required: false }] }], expandedRowKeys: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandedRowKeys", required: false }] }], editingRowKeys: [{ type: i0.Input, args: [{ isSignal: true, alias: "editingRowKeys", required: false }] }], rowExpandMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowExpandMode", required: false }] }], scrollable: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollable", required: false }] }], rowGroupMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowGroupMode", required: false }] }], scrollHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollHeight", required: false }] }], virtualScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScroll", required: false }] }], virtualScrollItemSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScrollItemSize", required: false }] }], virtualScrollOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScrollOptions", required: false }] }], virtualScrollDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScrollDelay", required: false }] }], contextMenu: [{ type: i0.Input, args: [{ isSignal: true, alias: "contextMenu", required: false }] }], resizableColumns: [{ type: i0.Input, args: [{ isSignal: true, alias: "resizableColumns", required: false }] }], columnResizeMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "columnResizeMode", required: false }] }], reorderableColumns: [{ type: i0.Input, args: [{ isSignal: true, alias: "reorderableColumns", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], loadingIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingIcon", required: false }] }], showLoader: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLoader", required: false }] }], rowHover: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowHover", required: false }] }], customSort: [{ type: i0.Input, args: [{ isSignal: true, alias: "customSort", required: false }] }], showInitialSortBadge: [{ type: i0.Input, args: [{ isSignal: true, alias: "showInitialSortBadge", required: false }] }], exportFunction: [{ type: i0.Input, args: [{ isSignal: true, alias: "exportFunction", required: false }] }], exportHeader: [{ type: i0.Input, args: [{ isSignal: true, alias: "exportHeader", required: false }] }], stateKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "stateKey", required: false }] }], stateStorage: [{ type: i0.Input, args: [{ isSignal: true, alias: "stateStorage", required: false }] }], editMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "editMode", required: false }] }], groupRowsBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "groupRowsBy", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], showGridlines: [{ type: i0.Input, args: [{ isSignal: true, alias: "showGridlines", required: false }] }], stripedRows: [{ type: i0.Input, args: [{ isSignal: true, alias: "stripedRows", required: false }] }], groupRowsByOrder: [{ type: i0.Input, args: [{ isSignal: true, alias: "groupRowsByOrder", required: false }] }], responsiveLayout: [{ type: i0.Input, args: [{ isSignal: true, alias: "responsiveLayout", required: false }] }], breakpoint: [{ type: i0.Input, args: [{ isSignal: true, alias: "breakpoint", required: false }] }], paginatorLocale: [{ type: i0.Input, args: [{ isSignal: true, alias: "paginatorLocale", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: false }] }], first: [{ type: i0.Input, args: [{ isSignal: true, alias: "first", required: false }] }, { type: i0.Output, args: ["firstChange"] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }, { type: i0.Output, args: ["rowsChange"] }], totalRecords: [{ type: i0.Input, args: [{ isSignal: true, alias: "totalRecords", required: false }] }], sortField: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortField", required: false }] }], sortOrder: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortOrder", required: false }] }], multiSortMeta: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiSortMeta", required: false }] }], selection: [{ type: i0.Input, args: [{ isSignal: true, alias: "selection", required: false }] }, { type: i0.Output, args: ["selectionChange"] }], selectAll: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectAll", required: false }] }], selectAllChange: [{ type: i0.Output, args: ["selectAllChange"] }], onRowSelect: [{ type: i0.Output, args: ["onRowSelect"] }], onRowUnselect: [{ type: i0.Output, args: ["onRowUnselect"] }], onPage: [{ type: i0.Output, args: ["onPage"] }], onSort: [{ type: i0.Output, args: ["onSort"] }], onFilter: [{ type: i0.Output, args: ["onFilter"] }], onLazyLoad: [{ type: i0.Output, args: ["onLazyLoad"] }], onRowExpand: [{ type: i0.Output, args: ["onRowExpand"] }], onRowCollapse: [{ type: i0.Output, args: ["onRowCollapse"] }], onContextMenuSelect: [{ type: i0.Output, args: ["onContextMenuSelect"] }], onColResize: [{ type: i0.Output, args: ["onColResize"] }], onColReorder: [{ type: i0.Output, args: ["onColReorder"] }], onRowReorder: [{ type: i0.Output, args: ["onRowReorder"] }], onEditInit: [{ type: i0.Output, args: ["onEditInit"] }], onEditComplete: [{ type: i0.Output, args: ["onEditComplete"] }], onEditCancel: [{ type: i0.Output, args: ["onEditCancel"] }], onHeaderCheckboxToggle: [{ type: i0.Output, args: ["onHeaderCheckboxToggle"] }], sortFunction: [{ type: i0.Output, args: ["sortFunction"] }], onStateSave: [{ type: i0.Output, args: ["onStateSave"] }], onStateRestore: [{ type: i0.Output, args: ["onStateRestore"] }], resizeHelperViewChild: [{ type: i0.ViewChild, args: ['resizeHelper', { isSignal: true }] }], reorderIndicatorUpViewChild: [{ type: i0.ViewChild, args: ['reorderIndicatorUp', { isSignal: true }] }], reorderIndicatorDownViewChild: [{ type: i0.ViewChild, args: ['reorderIndicatorDown', { isSignal: true }] }], wrapperViewChild: [{ type: i0.ViewChild, args: ['wrapper', { isSignal: true }] }], tableViewChild: [{ type: i0.ViewChild, args: ['table', { isSignal: true }] }], scroller: [{ type: i0.ViewChild, args: ['scroller', { isSignal: true }] }], _templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }], _headerTemplate: [{ type: i0.ContentChild, args: ['header', { ...{ descendants: false }, isSignal: true }] }], _bodyTemplate: [{ type: i0.ContentChild, args: ['body', { ...{ descendants: false }, isSignal: true }] }], _loadingBodyTemplate: [{ type: i0.ContentChild, args: ['loadingbody', { ...{ descendants: false }, isSignal: true }] }], _captionTemplate: [{ type: i0.ContentChild, args: ['caption', { ...{ descendants: false }, isSignal: true }] }], _footerTemplate: [{ type: i0.ContentChild, args: ['footer', { ...{ descendants: false }, isSignal: true }] }], _footerGroupedTemplate: [{ type: i0.ContentChild, args: ['footergrouped', { ...{ descendants: false }, isSignal: true }] }], _summaryTemplate: [{ type: i0.ContentChild, args: ['summary', { ...{ descendants: false }, isSignal: true }] }], _colGroupTemplate: [{ type: i0.ContentChild, args: ['colgroup', { ...{ descendants: false }, isSignal: true }] }], _expandedRowTemplate: [{ type: i0.ContentChild, args: ['expandedrow', { ...{ descendants: false }, isSignal: true }] }], _groupHeaderTemplate: [{ type: i0.ContentChild, args: ['groupheader', { ...{ descendants: false }, isSignal: true }] }], _groupFooterTemplate: [{ type: i0.ContentChild, args: ['groupfooter', { ...{ descendants: false }, isSignal: true }] }], _frozenExpandedRowTemplate: [{ type: i0.ContentChild, args: ['frozenexpandedrow', { ...{ descendants: false }, isSignal: true }] }], _frozenBodyTemplate: [{ type: i0.ContentChild, args: ['frozenbody', { ...{ 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 }] }], _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 }] }], _paginatorDropdownIconTemplate: [{ type: i0.ContentChild, args: ['paginatordropdownicon', { ...{ 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 }] }] } });
|
|
3791
|
+
}], ctorParameters: () => [], propDecorators: { frozenValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "frozenValue", required: false }] }], tableStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "tableStyle", required: false }] }], tableStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "tableStyleClass", required: false }] }], paginator: [{ type: i0.Input, args: [{ isSignal: true, alias: "paginator", required: false }] }], pageLinks: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageLinks", required: false }] }], rowsPerPageOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowsPerPageOptions", required: false }] }], alwaysShowPaginator: [{ type: i0.Input, args: [{ isSignal: true, alias: "alwaysShowPaginator", required: false }] }], paginatorPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "paginatorPosition", required: false }] }], paginatorStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "paginatorStyleClass", required: false }] }], paginatorDropdownAppendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "paginatorDropdownAppendTo", required: false }] }], paginatorDropdownScrollHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "paginatorDropdownScrollHeight", required: false }] }], currentPageReportTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "currentPageReportTemplate", required: false }] }], showCurrentPageReport: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCurrentPageReport", required: false }] }], showJumpToPageDropdown: [{ type: i0.Input, args: [{ isSignal: true, alias: "showJumpToPageDropdown", required: false }] }], showJumpToPageInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "showJumpToPageInput", required: false }] }], showFirstLastIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showFirstLastIcon", required: false }] }], showPageLinks: [{ type: i0.Input, args: [{ isSignal: true, alias: "showPageLinks", required: false }] }], defaultSortOrder: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultSortOrder", required: false }] }], sortMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortMode", required: false }] }], resetPageOnSort: [{ type: i0.Input, args: [{ isSignal: true, alias: "resetPageOnSort", required: false }] }], selectionMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionMode", required: false }] }], selectionPageOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionPageOnly", required: false }] }], contextMenuSelection: [{ type: i0.Input, args: [{ isSignal: true, alias: "contextMenuSelection", required: false }] }, { type: i0.Output, args: ["contextMenuSelectionChange"] }], contextMenuSelectionMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "contextMenuSelectionMode", required: false }] }], dataKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataKey", required: false }] }], metaKeySelection: [{ type: i0.Input, args: [{ isSignal: true, alias: "metaKeySelection", required: false }] }], rowSelectable: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowSelectable", required: false }] }], rowTrackBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowTrackBy", required: false }] }], lazy: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazy", required: false }] }], lazyLoadOnInit: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazyLoadOnInit", required: false }] }], compareSelectionBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "compareSelectionBy", required: false }] }], csvSeparator: [{ type: i0.Input, args: [{ isSignal: true, alias: "csvSeparator", required: false }] }], exportFilename: [{ type: i0.Input, args: [{ isSignal: true, alias: "exportFilename", required: false }] }], filters: [{ type: i0.Input, args: [{ isSignal: true, alias: "filters", required: false }] }], globalFilterFields: [{ type: i0.Input, args: [{ isSignal: true, alias: "globalFilterFields", required: false }] }], filterDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterDelay", required: false }] }], filterLocale: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterLocale", required: false }] }], expandedRowKeys: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandedRowKeys", required: false }] }], editingRowKeys: [{ type: i0.Input, args: [{ isSignal: true, alias: "editingRowKeys", required: false }] }], rowExpandMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowExpandMode", required: false }] }], scrollable: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollable", required: false }] }], rowGroupMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowGroupMode", required: false }] }], scrollHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollHeight", required: false }] }], virtualScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScroll", required: false }] }], virtualScrollItemSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScrollItemSize", required: false }] }], virtualScrollOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScrollOptions", required: false }] }], virtualScrollDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScrollDelay", required: false }] }], contextMenu: [{ type: i0.Input, args: [{ isSignal: true, alias: "contextMenu", required: false }] }], resizableColumns: [{ type: i0.Input, args: [{ isSignal: true, alias: "resizableColumns", required: false }] }], columnResizeMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "columnResizeMode", required: false }] }], reorderableColumns: [{ type: i0.Input, args: [{ isSignal: true, alias: "reorderableColumns", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], loadingIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingIcon", required: false }] }], showLoader: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLoader", required: false }] }], rowHover: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowHover", required: false }] }], customSort: [{ type: i0.Input, args: [{ isSignal: true, alias: "customSort", required: false }] }], showInitialSortBadge: [{ type: i0.Input, args: [{ isSignal: true, alias: "showInitialSortBadge", required: false }] }], exportFunction: [{ type: i0.Input, args: [{ isSignal: true, alias: "exportFunction", required: false }] }], exportHeader: [{ type: i0.Input, args: [{ isSignal: true, alias: "exportHeader", required: false }] }], stateKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "stateKey", required: false }] }], stateStorage: [{ type: i0.Input, args: [{ isSignal: true, alias: "stateStorage", required: false }] }], editMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "editMode", required: false }] }], groupRowsBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "groupRowsBy", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], showGridlines: [{ type: i0.Input, args: [{ isSignal: true, alias: "showGridlines", required: false }] }], stripedRows: [{ type: i0.Input, args: [{ isSignal: true, alias: "stripedRows", required: false }] }], groupRowsByOrder: [{ type: i0.Input, args: [{ isSignal: true, alias: "groupRowsByOrder", required: false }] }], responsiveLayout: [{ type: i0.Input, args: [{ isSignal: true, alias: "responsiveLayout", required: false }] }], breakpoint: [{ type: i0.Input, args: [{ isSignal: true, alias: "breakpoint", required: false }] }], paginatorLocale: [{ type: i0.Input, args: [{ isSignal: true, alias: "paginatorLocale", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: false }] }], first: [{ type: i0.Input, args: [{ isSignal: true, alias: "first", required: false }] }, { type: i0.Output, args: ["firstChange"] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }, { type: i0.Output, args: ["rowsChange"] }], totalRecords: [{ type: i0.Input, args: [{ isSignal: true, alias: "totalRecords", required: false }] }], sortField: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortField", required: false }] }], sortOrder: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortOrder", required: false }] }], multiSortMeta: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiSortMeta", required: false }] }], selection: [{ type: i0.Input, args: [{ isSignal: true, alias: "selection", required: false }] }, { type: i0.Output, args: ["selectionChange"] }], selectAll: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectAll", required: false }] }], onSelectAllChange: [{ type: i0.Output, args: ["onSelectAllChange"] }], onRowSelect: [{ type: i0.Output, args: ["onRowSelect"] }], onRowUnselect: [{ type: i0.Output, args: ["onRowUnselect"] }], onPage: [{ type: i0.Output, args: ["onPage"] }], onSort: [{ type: i0.Output, args: ["onSort"] }], onFilter: [{ type: i0.Output, args: ["onFilter"] }], onLazyLoad: [{ type: i0.Output, args: ["onLazyLoad"] }], onRowExpand: [{ type: i0.Output, args: ["onRowExpand"] }], onRowCollapse: [{ type: i0.Output, args: ["onRowCollapse"] }], onContextMenuSelect: [{ type: i0.Output, args: ["onContextMenuSelect"] }], onColResize: [{ type: i0.Output, args: ["onColResize"] }], onColReorder: [{ type: i0.Output, args: ["onColReorder"] }], onRowReorder: [{ type: i0.Output, args: ["onRowReorder"] }], onEditInit: [{ type: i0.Output, args: ["onEditInit"] }], onEditComplete: [{ type: i0.Output, args: ["onEditComplete"] }], onEditCancel: [{ type: i0.Output, args: ["onEditCancel"] }], onHeaderCheckboxToggle: [{ type: i0.Output, args: ["onHeaderCheckboxToggle"] }], sortFunction: [{ type: i0.Output, args: ["sortFunction"] }], onStateSave: [{ type: i0.Output, args: ["onStateSave"] }], onStateRestore: [{ type: i0.Output, args: ["onStateRestore"] }], resizeHelperViewChild: [{ type: i0.ViewChild, args: ['resizeHelper', { isSignal: true }] }], reorderIndicatorUpViewChild: [{ type: i0.ViewChild, args: ['reorderIndicatorUp', { isSignal: true }] }], reorderIndicatorDownViewChild: [{ type: i0.ViewChild, args: ['reorderIndicatorDown', { isSignal: true }] }], wrapperViewChild: [{ type: i0.ViewChild, args: ['wrapper', { isSignal: true }] }], tableViewChild: [{ type: i0.ViewChild, args: ['table', { isSignal: true }] }], scroller: [{ type: i0.ViewChild, args: ['scroller', { isSignal: true }] }], _templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }], _headerTemplate: [{ type: i0.ContentChild, args: ['header', { ...{ descendants: false }, isSignal: true }] }], _bodyTemplate: [{ type: i0.ContentChild, args: ['body', { ...{ descendants: false }, isSignal: true }] }], _loadingBodyTemplate: [{ type: i0.ContentChild, args: ['loadingbody', { ...{ descendants: false }, isSignal: true }] }], _captionTemplate: [{ type: i0.ContentChild, args: ['caption', { ...{ descendants: false }, isSignal: true }] }], _footerTemplate: [{ type: i0.ContentChild, args: ['footer', { ...{ descendants: false }, isSignal: true }] }], _footerGroupedTemplate: [{ type: i0.ContentChild, args: ['footergrouped', { ...{ descendants: false }, isSignal: true }] }], _summaryTemplate: [{ type: i0.ContentChild, args: ['summary', { ...{ descendants: false }, isSignal: true }] }], _colGroupTemplate: [{ type: i0.ContentChild, args: ['colgroup', { ...{ descendants: false }, isSignal: true }] }], _expandedRowTemplate: [{ type: i0.ContentChild, args: ['expandedrow', { ...{ descendants: false }, isSignal: true }] }], _groupHeaderTemplate: [{ type: i0.ContentChild, args: ['groupheader', { ...{ descendants: false }, isSignal: true }] }], _groupFooterTemplate: [{ type: i0.ContentChild, args: ['groupfooter', { ...{ descendants: false }, isSignal: true }] }], _frozenExpandedRowTemplate: [{ type: i0.ContentChild, args: ['frozenexpandedrow', { ...{ descendants: false }, isSignal: true }] }], _frozenBodyTemplate: [{ type: i0.ContentChild, args: ['frozenbody', { ...{ 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 }] }], _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 }] }], _paginatorDropdownIconTemplate: [{ type: i0.ContentChild, args: ['paginatordropdownicon', { ...{ 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 }] }] } });
|
|
3792
|
+
/**
|
|
3793
|
+
* @internal Rendering detail of Table, not part of the public API: it may change or stop being exported in a minor version.
|
|
3794
|
+
*/
|
|
3715
3795
|
class TableBody extends BaseComponent {
|
|
3716
3796
|
dataTable = inject(Table);
|
|
3717
3797
|
tableService = inject(TableService);
|
|
@@ -3729,6 +3809,7 @@ class TableBody extends BaseComponent {
|
|
|
3729
3809
|
this.cd.detectChanges();
|
|
3730
3810
|
}
|
|
3731
3811
|
});
|
|
3812
|
+
headerResizeObserver;
|
|
3732
3813
|
constructor() {
|
|
3733
3814
|
super();
|
|
3734
3815
|
afterNextRender(() => {
|
|
@@ -3738,6 +3819,7 @@ class TableBody extends BaseComponent {
|
|
|
3738
3819
|
if (this.dataTable.scrollable() && this.dataTable.rowGroupMode() === 'subheader') {
|
|
3739
3820
|
this.updateFrozenRowGroupHeaderStickyPosition();
|
|
3740
3821
|
}
|
|
3822
|
+
this.observeHeaderSize();
|
|
3741
3823
|
});
|
|
3742
3824
|
effect(() => {
|
|
3743
3825
|
this.value();
|
|
@@ -3804,6 +3886,25 @@ class TableBody extends BaseComponent {
|
|
|
3804
3886
|
if (this.subscription) {
|
|
3805
3887
|
this.subscription.unsubscribe();
|
|
3806
3888
|
}
|
|
3889
|
+
this.headerResizeObserver?.disconnect();
|
|
3890
|
+
}
|
|
3891
|
+
// the sticky rows are placed under the header, whose height can change after the first render (a component
|
|
3892
|
+
// or an image in it, a wrapped title): follow its size instead of measuring it once
|
|
3893
|
+
observeHeaderSize() {
|
|
3894
|
+
const header = this.el.nativeElement.previousElementSibling;
|
|
3895
|
+
const ResizeObserverType = this.document.defaultView?.ResizeObserver;
|
|
3896
|
+
const isSticky = this.frozenRows() || (this.dataTable.scrollable() && this.dataTable.rowGroupMode() === 'subheader');
|
|
3897
|
+
if (isPlatformBrowser(this.platformId) && header && ResizeObserverType && isSticky && !this.headerResizeObserver) {
|
|
3898
|
+
this.headerResizeObserver = new ResizeObserverType(() => {
|
|
3899
|
+
if (this.frozenRows()) {
|
|
3900
|
+
this.updateFrozenRowStickyPosition();
|
|
3901
|
+
}
|
|
3902
|
+
if (this.dataTable.scrollable() && this.dataTable.rowGroupMode() === 'subheader') {
|
|
3903
|
+
this.updateFrozenRowGroupHeaderStickyPosition();
|
|
3904
|
+
}
|
|
3905
|
+
});
|
|
3906
|
+
this.headerResizeObserver.observe(header);
|
|
3907
|
+
}
|
|
3807
3908
|
}
|
|
3808
3909
|
updateFrozenRowStickyPosition() {
|
|
3809
3910
|
this.el.nativeElement.style.top = DomHandler.getOuterHeight(this.el.nativeElement.previousElementSibling) + 'px';
|
|
@@ -3812,6 +3913,8 @@ class TableBody extends BaseComponent {
|
|
|
3812
3913
|
if (this.el.nativeElement.previousElementSibling) {
|
|
3813
3914
|
let tableHeaderHeight = DomHandler.getOuterHeight(this.el.nativeElement.previousElementSibling);
|
|
3814
3915
|
this.dataTable.rowGroupHeaderStyleObject.top = tableHeaderHeight + 'px';
|
|
3916
|
+
// a signal: the row group headers bind it, and a plain object changed after their check threw NG0100
|
|
3917
|
+
this.dataTable.rowGroupHeaderTop.set(tableHeaderHeight + 'px');
|
|
3815
3918
|
}
|
|
3816
3919
|
}
|
|
3817
3920
|
getScrollerOption(option, options) {
|
|
@@ -3908,7 +4011,7 @@ class TableBody extends BaseComponent {
|
|
|
3908
4011
|
}
|
|
3909
4012
|
@if ((dataTable.expandedRowTemplate() || dataTable._expandedRowTemplate()) && !(frozen() && (dataTable.frozenExpandedRowTemplate() || dataTable._frozenExpandedRowTemplate()))) {
|
|
3910
4013
|
@for (rowData of value(); track dataTable.rowTrackBy()(rowIndex, rowData); let rowIndex = $index) {
|
|
3911
|
-
@if ((dataTable.groupHeaderTemplate() || dataTable._groupHeaderTemplate()) && dataTable.rowGroupMode() === 'subheader' && shouldRenderRowGroupHeader(value(), rowData,
|
|
4014
|
+
@if ((dataTable.groupHeaderTemplate() || dataTable._groupHeaderTemplate()) && dataTable.rowGroupMode() === 'subheader' && shouldRenderRowGroupHeader(value(), rowData, getGroupRowIndex(rowIndex))) {
|
|
3912
4015
|
<ng-container role="row">
|
|
3913
4016
|
<ng-container
|
|
3914
4017
|
*ngTemplateOutlet="
|
|
@@ -3952,7 +4055,7 @@ class TableBody extends BaseComponent {
|
|
|
3952
4055
|
}
|
|
3953
4056
|
"
|
|
3954
4057
|
></ng-container>
|
|
3955
|
-
@if ((dataTable.groupFooterTemplate() || dataTable._groupFooterTemplate()) && dataTable.rowGroupMode() === 'subheader' && shouldRenderRowGroupFooter(value(), rowData,
|
|
4058
|
+
@if ((dataTable.groupFooterTemplate() || dataTable._groupFooterTemplate()) && dataTable.rowGroupMode() === 'subheader' && shouldRenderRowGroupFooter(value(), rowData, getGroupRowIndex(rowIndex))) {
|
|
3956
4059
|
<ng-container role="row">
|
|
3957
4060
|
<ng-container
|
|
3958
4061
|
*ngTemplateOutlet="
|
|
@@ -4084,7 +4187,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
4084
4187
|
}
|
|
4085
4188
|
@if ((dataTable.expandedRowTemplate() || dataTable._expandedRowTemplate()) && !(frozen() && (dataTable.frozenExpandedRowTemplate() || dataTable._frozenExpandedRowTemplate()))) {
|
|
4086
4189
|
@for (rowData of value(); track dataTable.rowTrackBy()(rowIndex, rowData); let rowIndex = $index) {
|
|
4087
|
-
@if ((dataTable.groupHeaderTemplate() || dataTable._groupHeaderTemplate()) && dataTable.rowGroupMode() === 'subheader' && shouldRenderRowGroupHeader(value(), rowData,
|
|
4190
|
+
@if ((dataTable.groupHeaderTemplate() || dataTable._groupHeaderTemplate()) && dataTable.rowGroupMode() === 'subheader' && shouldRenderRowGroupHeader(value(), rowData, getGroupRowIndex(rowIndex))) {
|
|
4088
4191
|
<ng-container role="row">
|
|
4089
4192
|
<ng-container
|
|
4090
4193
|
*ngTemplateOutlet="
|
|
@@ -4128,7 +4231,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
4128
4231
|
}
|
|
4129
4232
|
"
|
|
4130
4233
|
></ng-container>
|
|
4131
|
-
@if ((dataTable.groupFooterTemplate() || dataTable._groupFooterTemplate()) && dataTable.rowGroupMode() === 'subheader' && shouldRenderRowGroupFooter(value(), rowData,
|
|
4234
|
+
@if ((dataTable.groupFooterTemplate() || dataTable._groupFooterTemplate()) && dataTable.rowGroupMode() === 'subheader' && shouldRenderRowGroupFooter(value(), rowData, getGroupRowIndex(rowIndex))) {
|
|
4132
4235
|
<ng-container role="row">
|
|
4133
4236
|
<ng-container
|
|
4134
4237
|
*ngTemplateOutlet="
|
|
@@ -4196,7 +4299,7 @@ class RowGroupHeader extends BaseComponent {
|
|
|
4196
4299
|
dataTable = inject(Table);
|
|
4197
4300
|
_componentStyle = inject(TableStyle);
|
|
4198
4301
|
get getFrozenRowGroupHeaderStickyPosition() {
|
|
4199
|
-
return this.dataTable.
|
|
4302
|
+
return this.dataTable.rowGroupHeaderTop();
|
|
4200
4303
|
}
|
|
4201
4304
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: RowGroupHeader, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
4202
4305
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.2.1", type: RowGroupHeader, isStandalone: false, selector: "[pRowGroupHeader]", host: { properties: { "class": "cx(\"rowGroupHeader\")", "style": "sx(\"rowGroupHeader\")" } }, providers: [TableStyle], usesInheritance: true, ngImport: i0 });
|
|
@@ -4265,22 +4368,33 @@ class FrozenColumn extends BaseComponent {
|
|
|
4265
4368
|
const isRTL = this.document.defaultView?.getComputedStyle(this.el.nativeElement).direction === 'rtl';
|
|
4266
4369
|
const startSide = isRTL ? 'right' : 'left';
|
|
4267
4370
|
const endSide = isRTL ? 'left' : 'right';
|
|
4371
|
+
const spannedOffset = this.getSpannedRowsOffset();
|
|
4268
4372
|
if (this.alignFrozen() === 'right') {
|
|
4269
4373
|
let end = 0;
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4374
|
+
if (spannedOffset) {
|
|
4375
|
+
end = spannedOffset.end;
|
|
4376
|
+
}
|
|
4377
|
+
else {
|
|
4378
|
+
let sibling = this.el.nativeElement.nextElementSibling;
|
|
4379
|
+
while (sibling) {
|
|
4380
|
+
end += this.getFrozenWidth(sibling);
|
|
4381
|
+
sibling = sibling.nextElementSibling;
|
|
4382
|
+
}
|
|
4274
4383
|
}
|
|
4275
4384
|
this.el.nativeElement.style[endSide] = end + 'px';
|
|
4276
4385
|
this.el.nativeElement.style[startSide] = '';
|
|
4277
4386
|
}
|
|
4278
4387
|
else {
|
|
4279
4388
|
let start = 0;
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4389
|
+
if (spannedOffset) {
|
|
4390
|
+
start = spannedOffset.start;
|
|
4391
|
+
}
|
|
4392
|
+
else {
|
|
4393
|
+
let sibling = this.el.nativeElement.previousElementSibling;
|
|
4394
|
+
while (sibling) {
|
|
4395
|
+
start += this.getFrozenWidth(sibling);
|
|
4396
|
+
sibling = sibling.previousElementSibling;
|
|
4397
|
+
}
|
|
4284
4398
|
}
|
|
4285
4399
|
this.el.nativeElement.style[startSide] = start + 'px';
|
|
4286
4400
|
this.el.nativeElement.style[endSide] = '';
|
|
@@ -4295,6 +4409,52 @@ class FrozenColumn extends BaseComponent {
|
|
|
4295
4409
|
}
|
|
4296
4410
|
}
|
|
4297
4411
|
}
|
|
4412
|
+
/**
|
|
4413
|
+
* In a header or footer of several rows, the frozen cells before or after this one can be in a previous row and span down
|
|
4414
|
+
* to this one (rowspan): place the cells on the column grid of the section to find them. Null when no cell spans rows.
|
|
4415
|
+
*/
|
|
4416
|
+
getSpannedRowsOffset() {
|
|
4417
|
+
const cell = this.el.nativeElement;
|
|
4418
|
+
const section = cell.parentElement?.parentElement;
|
|
4419
|
+
if (!section || (section.tagName !== 'THEAD' && section.tagName !== 'TFOOT')) {
|
|
4420
|
+
return null;
|
|
4421
|
+
}
|
|
4422
|
+
const rows = Array.from(section.rows);
|
|
4423
|
+
if (!rows.some((row) => Array.from(row.cells).some((c) => c.rowSpan !== 1))) {
|
|
4424
|
+
return null;
|
|
4425
|
+
}
|
|
4426
|
+
const placed = [];
|
|
4427
|
+
const taken = [];
|
|
4428
|
+
rows.forEach((row, rowIndex) => {
|
|
4429
|
+
let col = 0;
|
|
4430
|
+
for (const c of Array.from(row.cells)) {
|
|
4431
|
+
while (taken[rowIndex]?.[col])
|
|
4432
|
+
col++;
|
|
4433
|
+
const rowSpan = c.rowSpan === 0 ? rows.length - rowIndex : c.rowSpan;
|
|
4434
|
+
const colSpan = c.colSpan || 1;
|
|
4435
|
+
placed.push({ cell: c, row: rowIndex, col, rowSpan, colSpan });
|
|
4436
|
+
for (let i = 0; i < rowSpan; i++)
|
|
4437
|
+
for (let j = 0; j < colSpan; j++)
|
|
4438
|
+
(taken[rowIndex + i] ??= [])[col + j] = true;
|
|
4439
|
+
col += colSpan;
|
|
4440
|
+
}
|
|
4441
|
+
});
|
|
4442
|
+
const self = placed.find((p) => p.cell === cell);
|
|
4443
|
+
if (!self) {
|
|
4444
|
+
return null;
|
|
4445
|
+
}
|
|
4446
|
+
let start = 0;
|
|
4447
|
+
let end = 0;
|
|
4448
|
+
for (const p of placed) {
|
|
4449
|
+
if (p.cell !== cell && p.row <= self.row && self.row < p.row + p.rowSpan) {
|
|
4450
|
+
if (p.col + p.colSpan <= self.col)
|
|
4451
|
+
start += this.getFrozenWidth(p.cell);
|
|
4452
|
+
else if (p.col >= self.col + self.colSpan)
|
|
4453
|
+
end += this.getFrozenWidth(p.cell);
|
|
4454
|
+
}
|
|
4455
|
+
}
|
|
4456
|
+
return { start, end };
|
|
4457
|
+
}
|
|
4298
4458
|
// only the frozen (sticky) cells stay between a frozen cell and the edge: the others scroll away
|
|
4299
4459
|
getFrozenWidth(cell) {
|
|
4300
4460
|
return cell.getAttribute('data-p-frozen-column') === 'true' ? DomHandler.getOuterWidth(cell) : 0;
|
|
@@ -5199,7 +5359,8 @@ class EditableColumn extends BaseComponent {
|
|
|
5199
5359
|
initialized = true;
|
|
5200
5360
|
return;
|
|
5201
5361
|
}
|
|
5202
|
-
|
|
5362
|
+
// only the cell being edited follows its new data: a row reused for other data (e.g. after filtering) is not edited
|
|
5363
|
+
if (this.el.nativeElement && this.dataTable.editingCell() === this.el.nativeElement) {
|
|
5203
5364
|
this.dataTable.updateEditingCell(this.el.nativeElement, data, field, rowIndex);
|
|
5204
5365
|
}
|
|
5205
5366
|
});
|
|
@@ -6646,6 +6807,7 @@ class ColumnFilter extends BaseComponent {
|
|
|
6646
6807
|
operator: this.getDefaultOperator()
|
|
6647
6808
|
});
|
|
6648
6809
|
DomHandler.focus(this.clearButtonViewChild()?.nativeElement);
|
|
6810
|
+
this.realignOverlayAfterRender();
|
|
6649
6811
|
}
|
|
6650
6812
|
removeConstraint(filterMeta) {
|
|
6651
6813
|
this.dataTable._filters()[this.field()] = this.dataTable._filters()[this.field()].filter((meta) => meta !== filterMeta);
|
|
@@ -6653,6 +6815,18 @@ class ColumnFilter extends BaseComponent {
|
|
|
6653
6815
|
this.dataTable._filter();
|
|
6654
6816
|
}
|
|
6655
6817
|
DomHandler.focus(this.clearButtonViewChild()?.nativeElement);
|
|
6818
|
+
this.realignOverlayAfterRender();
|
|
6819
|
+
}
|
|
6820
|
+
// the overlay is positioned when it opens: a rule added or removed changes its height, so place it again for the
|
|
6821
|
+
// new height, above the button when it no longer fits below
|
|
6822
|
+
realignOverlayAfterRender() {
|
|
6823
|
+
afterNextRender(() => {
|
|
6824
|
+
const overlay = this.overlay();
|
|
6825
|
+
const buttonEl = findSingle(this.el.nativeElement, '[data-pc-name="pccolumnfilterbutton"]');
|
|
6826
|
+
if (overlay?.isConnected && buttonEl && overlay.parentElement === this.document.body) {
|
|
6827
|
+
absolutePosition(overlay, buttonEl);
|
|
6828
|
+
}
|
|
6829
|
+
}, { injector: this.injector });
|
|
6656
6830
|
}
|
|
6657
6831
|
onOperatorChange(value) {
|
|
6658
6832
|
this.dataTable._filters()[this.field()].forEach((filterMeta) => {
|
|
@@ -7424,24 +7598,41 @@ class ColumnFilterFormElement extends BaseComponent {
|
|
|
7424
7598
|
this.filterConstraint().value = value;
|
|
7425
7599
|
this.dataTable._filter();
|
|
7426
7600
|
};
|
|
7601
|
+
/** A value typed in the input and not applied yet: leaving the input applies it, like Enter. */
|
|
7602
|
+
pendingValue = false;
|
|
7427
7603
|
onModelChange(value) {
|
|
7428
7604
|
this.filterConstraint().value = value;
|
|
7429
7605
|
// a menu with an Apply button only filters on Apply (or Enter)
|
|
7430
|
-
const applyOnButton = this.
|
|
7606
|
+
const applyOnButton = this.isAppliedOnButton();
|
|
7431
7607
|
if (((this.type() === 'date' || this.type() === 'boolean' || !value) && !applyOnButton) || ((this.type() === 'text' || this.type() === 'numeric') && this.filterOn() === 'input')) {
|
|
7608
|
+
this.pendingValue = false;
|
|
7432
7609
|
this.dataTable._filter();
|
|
7433
7610
|
}
|
|
7611
|
+
else {
|
|
7612
|
+
this.pendingValue = true;
|
|
7613
|
+
}
|
|
7434
7614
|
}
|
|
7435
7615
|
onTextInputEnterKeyDown(event) {
|
|
7616
|
+
this.pendingValue = false;
|
|
7436
7617
|
this.dataTable._filter();
|
|
7437
7618
|
event.preventDefault();
|
|
7438
7619
|
}
|
|
7439
7620
|
onNumericInputKeyDown(event) {
|
|
7440
7621
|
if (event.key === 'Enter') {
|
|
7622
|
+
this.pendingValue = false;
|
|
7441
7623
|
this.dataTable._filter();
|
|
7442
7624
|
event.preventDefault();
|
|
7443
7625
|
}
|
|
7444
7626
|
}
|
|
7627
|
+
onInputBlur() {
|
|
7628
|
+
if (this.pendingValue && !this.isAppliedOnButton()) {
|
|
7629
|
+
this.pendingValue = false;
|
|
7630
|
+
this.dataTable._filter();
|
|
7631
|
+
}
|
|
7632
|
+
}
|
|
7633
|
+
isAppliedOnButton() {
|
|
7634
|
+
return this.colFilter.display() === 'menu' && this.colFilter.showApplyButton();
|
|
7635
|
+
}
|
|
7445
7636
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: ColumnFilterFormElement, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7446
7637
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: ColumnFilterFormElement, isStandalone: false, selector: "p-columnFilterFormElement", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, filterConstraint: { classPropertyName: "filterConstraint", publicName: "filterConstraint", isSignal: true, isRequired: false, transformFunction: null }, filterTemplate: { classPropertyName: "filterTemplate", publicName: "filterTemplate", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, minFractionDigits: { classPropertyName: "minFractionDigits", publicName: "minFractionDigits", isSignal: true, isRequired: false, transformFunction: null }, maxFractionDigits: { classPropertyName: "maxFractionDigits", publicName: "maxFractionDigits", isSignal: true, isRequired: false, transformFunction: null }, prefix: { classPropertyName: "prefix", publicName: "prefix", isSignal: true, isRequired: false, transformFunction: null }, suffix: { classPropertyName: "suffix", publicName: "suffix", isSignal: true, isRequired: false, transformFunction: null }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, localeMatcher: { classPropertyName: "localeMatcher", publicName: "localeMatcher", isSignal: true, isRequired: false, transformFunction: null }, currency: { classPropertyName: "currency", publicName: "currency", isSignal: true, isRequired: false, transformFunction: null }, currencyDisplay: { classPropertyName: "currencyDisplay", publicName: "currencyDisplay", isSignal: true, isRequired: false, transformFunction: null }, useGrouping: { classPropertyName: "useGrouping", publicName: "useGrouping", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, filterOn: { classPropertyName: "filterOn", publicName: "filterOn", isSignal: true, isRequired: false, transformFunction: null } }, providers: [TableStyle], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
7447
7638
|
@if (filterTemplate()) {
|
|
@@ -7479,6 +7670,7 @@ class ColumnFilterFormElement extends BaseComponent {
|
|
|
7479
7670
|
[value]="filterConstraint()?.value"
|
|
7480
7671
|
(input)="onModelChange($event.target.value)"
|
|
7481
7672
|
(keydown.enter)="onTextInputEnterKeyDown($event)"
|
|
7673
|
+
(blur)="onInputBlur()"
|
|
7482
7674
|
[attr.placeholder]="placeholder()"
|
|
7483
7675
|
[unstyled]="unstyled()"
|
|
7484
7676
|
/>
|
|
@@ -7489,6 +7681,7 @@ class ColumnFilterFormElement extends BaseComponent {
|
|
|
7489
7681
|
[ngModelOptions]="{ standalone: true }"
|
|
7490
7682
|
(ngModelChange)="onModelChange($event)"
|
|
7491
7683
|
(onKeyDown)="onNumericInputKeyDown($event)"
|
|
7684
|
+
(onBlur)="onInputBlur()"
|
|
7492
7685
|
[showButtons]="showButtons()"
|
|
7493
7686
|
[minFractionDigits]="minFractionDigits()"
|
|
7494
7687
|
[maxFractionDigits]="maxFractionDigits()"
|
|
@@ -7532,7 +7725,7 @@ class ColumnFilterFormElement extends BaseComponent {
|
|
|
7532
7725
|
}
|
|
7533
7726
|
}
|
|
7534
7727
|
}
|
|
7535
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i13.InputText, selector: "[pInputText]", inputs: ["hostName", "
|
|
7728
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i13.InputText, selector: "[pInputText]", inputs: ["hostName", "pInputTextPT", "pInputTextUnstyled", "pSize", "variant", "fluid", "invalid"] }, { kind: "directive", type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i7.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i14.DatePicker, selector: "p-datePicker, p-datepicker, p-date-picker", inputs: ["iconDisplay", "inputStyle", "inputId", "inputStyleClass", "placeholder", "ariaLabelledBy", "ariaLabel", "ariaDescribedBy", "iconAriaLabel", "dateFormat", "multipleSeparator", "rangeSeparator", "inline", "showOtherMonths", "selectOtherMonths", "showIcon", "icon", "readonlyInput", "shortYearCutoff", "hourFormat", "timeOnly", "stepHour", "stepMinute", "stepSecond", "showSeconds", "showOnFocus", "showWeek", "startWeekFromFirstDayOfYear", "showClear", "dataType", "selectionMode", "maxDateCount", "showButtonBar", "todayButtonStyleClass", "clearButtonStyleClass", "autofocus", "autoZIndex", "baseZIndex", "panelStyleClass", "panelStyle", "keepInvalid", "hideOnDateTimeSelect", "touchUI", "timeSeparator", "focusTrap", "tabindex", "minDate", "maxDate", "disabledDates", "disabledDays", "showTime", "responsiveOptions", "numberOfMonths", "firstDayOfWeek", "view", "defaultDate", "appendTo", "motionOptions"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onClear", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }, { kind: "component", type: i15.InputNumber, selector: "p-inputNumber, p-inputnumber, p-input-number", inputs: ["showButtons", "format", "buttonLayout", "inputId", "placeholder", "tabindex", "title", "ariaLabelledBy", "ariaDescribedBy", "ariaLabel", "ariaRequired", "autocomplete", "incrementButtonClass", "decrementButtonClass", "incrementButtonIcon", "decrementButtonIcon", "readonly", "allowEmpty", "locale", "localeMatcher", "mode", "currency", "currencyDisplay", "useGrouping", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "inputStyle", "inputStyleClass", "showClear", "autofocus"], outputs: ["onInput", "onFocus", "onBlur", "onKeyDown", "onClear"] }, { kind: "component", type: i9.Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["hostName", "value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], outputs: ["onChange", "onFocus", "onBlur"] }], changeDetection: i0.ChangeDetectionStrategy.Eager, encapsulation: i0.ViewEncapsulation.None });
|
|
7536
7729
|
}
|
|
7537
7730
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: ColumnFilterFormElement, decorators: [{
|
|
7538
7731
|
type: Component,
|
|
@@ -7576,6 +7769,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
7576
7769
|
[value]="filterConstraint()?.value"
|
|
7577
7770
|
(input)="onModelChange($event.target.value)"
|
|
7578
7771
|
(keydown.enter)="onTextInputEnterKeyDown($event)"
|
|
7772
|
+
(blur)="onInputBlur()"
|
|
7579
7773
|
[attr.placeholder]="placeholder()"
|
|
7580
7774
|
[unstyled]="unstyled()"
|
|
7581
7775
|
/>
|
|
@@ -7586,6 +7780,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
7586
7780
|
[ngModelOptions]="{ standalone: true }"
|
|
7587
7781
|
(ngModelChange)="onModelChange($event)"
|
|
7588
7782
|
(onKeyDown)="onNumericInputKeyDown($event)"
|
|
7783
|
+
(onBlur)="onInputBlur()"
|
|
7589
7784
|
[showButtons]="showButtons()"
|
|
7590
7785
|
[minFractionDigits]="minFractionDigits()"
|
|
7591
7786
|
[maxFractionDigits]="maxFractionDigits()"
|