@exhaustive-ui/core 3.0.0-alpha.0 → 3.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/exhaustive-ui-core-accordion.mjs +51 -78
- package/fesm2022/exhaustive-ui-core-accordion.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-animateonscroll.mjs +72 -73
- package/fesm2022/exhaustive-ui-core-animateonscroll.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-api.mjs +6 -13
- package/fesm2022/exhaustive-ui-core-api.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs +485 -683
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-autofocus.mjs +21 -31
- package/fesm2022/exhaustive-ui-core-autofocus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-avatar.mjs +47 -63
- package/fesm2022/exhaustive-ui-core-avatar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-badge.mjs +88 -115
- package/fesm2022/exhaustive-ui-core-badge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-blockui.mjs +58 -91
- package/fesm2022/exhaustive-ui-core-blockui.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-breadcrumb.mjs +155 -169
- package/fesm2022/exhaustive-ui-core-breadcrumb.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-button.mjs +280 -385
- package/fesm2022/exhaustive-ui-core-button.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-carousel.mjs +379 -451
- package/fesm2022/exhaustive-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-cascadeselect.mjs +388 -507
- package/fesm2022/exhaustive-ui-core-cascadeselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-chart.mjs +75 -91
- package/fesm2022/exhaustive-ui-core-chart.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-checkbox.mjs +109 -160
- package/fesm2022/exhaustive-ui-core-checkbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-chip.mjs +98 -137
- package/fesm2022/exhaustive-ui-core-chip.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-colorpicker.mjs +123 -190
- package/fesm2022/exhaustive-ui-core-colorpicker.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +157 -332
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +187 -210
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs +315 -361
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dataview.mjs +225 -272
- package/fesm2022/exhaustive-ui-core-dataview.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-datepicker.mjs +1012 -1157
- package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dialog.mjs +370 -507
- package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dock.mjs +87 -115
- package/fesm2022/exhaustive-ui-core-dock.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dragdrop.mjs +98 -105
- package/fesm2022/exhaustive-ui-core-dragdrop.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-drawer.mjs +174 -235
- package/fesm2022/exhaustive-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs +42 -280
- package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-editor.mjs +109 -121
- package/fesm2022/exhaustive-ui-core-editor.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fieldset.mjs +90 -132
- package/fesm2022/exhaustive-ui-core-fieldset.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fileupload.mjs +486 -541
- package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-floatlabel.mjs +13 -16
- package/fesm2022/exhaustive-ui-core-floatlabel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-focustrap.mjs +44 -40
- package/fesm2022/exhaustive-ui-core-focustrap.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-galleria.mjs +642 -853
- package/fesm2022/exhaustive-ui-core-galleria.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-iconfield.mjs +15 -27
- package/fesm2022/exhaustive-ui-core-iconfield.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs +8 -13
- package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-image.mjs +209 -251
- package/fesm2022/exhaustive-ui-core-image.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-imagecompare.mjs +39 -48
- package/fesm2022/exhaustive-ui-core-imagecompare.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inplace.mjs +64 -98
- package/fesm2022/exhaustive-ui-core-inplace.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputgroup.mjs +10 -20
- package/fesm2022/exhaustive-ui-core-inputgroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs +15 -24
- package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputicon.mjs +11 -22
- package/fesm2022/exhaustive-ui-core-inputicon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputmask.mjs +423 -392
- package/fesm2022/exhaustive-ui-core-inputmask.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputnumber.mjs +397 -469
- package/fesm2022/exhaustive-ui-core-inputnumber.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputotp.mjs +75 -95
- package/fesm2022/exhaustive-ui-core-inputotp.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputtext.mjs +27 -36
- package/fesm2022/exhaustive-ui-core-inputtext.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-keyfilter.mjs +29 -46
- package/fesm2022/exhaustive-ui-core-keyfilter.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-knob.mjs +140 -187
- package/fesm2022/exhaustive-ui-core-knob.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-listbox.mjs +365 -546
- package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-megamenu.mjs +320 -371
- package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menu.mjs +298 -348
- package/fesm2022/exhaustive-ui-core-menu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menubar.mjs +277 -372
- package/fesm2022/exhaustive-ui-core-menubar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-metergroup.mjs +138 -166
- package/fesm2022/exhaustive-ui-core-metergroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-multiselect.mjs +647 -835
- package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-orderlist.mjs +337 -409
- package/fesm2022/exhaustive-ui-core-orderlist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-organizationchart.mjs +114 -175
- package/fesm2022/exhaustive-ui-core-organizationchart.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-overlaybadge.mjs +22 -47
- package/fesm2022/exhaustive-ui-core-overlaybadge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-paginator.mjs +232 -320
- package/fesm2022/exhaustive-ui-core-paginator.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panel.mjs +114 -174
- package/fesm2022/exhaustive-ui-core-panel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs +171 -282
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-password.mjs +317 -377
- package/fesm2022/exhaustive-ui-core-password.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-picklist.mjs +557 -655
- package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-popover.mjs +154 -181
- package/fesm2022/exhaustive-ui-core-popover.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-rating.mjs +87 -119
- package/fesm2022/exhaustive-ui-core-rating.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scroller.mjs +465 -596
- package/fesm2022/exhaustive-ui-core-scroller.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scrollpanel.mjs +147 -155
- package/fesm2022/exhaustive-ui-core-scrollpanel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scrolltop.mjs +81 -115
- package/fesm2022/exhaustive-ui-core-scrolltop.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-select.mjs +581 -784
- package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-selectbutton.mjs +84 -120
- package/fesm2022/exhaustive-ui-core-selectbutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-slider.mjs +322 -352
- package/fesm2022/exhaustive-ui-core-slider.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-speeddial.mjs +209 -268
- package/fesm2022/exhaustive-ui-core-speeddial.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-splitbutton.mjs +153 -249
- package/fesm2022/exhaustive-ui-core-splitbutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-splitter.mjs +221 -237
- package/fesm2022/exhaustive-ui-core-splitter.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-steps.mjs +56 -72
- package/fesm2022/exhaustive-ui-core-steps.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-styleclass.mjs +145 -146
- package/fesm2022/exhaustive-ui-core-styleclass.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-table.mjs +2213 -2543
- package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-terminal.mjs +50 -67
- package/fesm2022/exhaustive-ui-core-terminal.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-textarea.mjs +23 -36
- package/fesm2022/exhaustive-ui-core-textarea.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +318 -394
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-timeline.mjs +56 -74
- package/fesm2022/exhaustive-ui-core-timeline.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-togglebutton.mjs +86 -129
- package/fesm2022/exhaustive-ui-core-togglebutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toggleswitch.mjs +57 -94
- package/fesm2022/exhaustive-ui-core-toggleswitch.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toolbar.mjs +36 -55
- package/fesm2022/exhaustive-ui-core-toolbar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tooltip.mjs +264 -343
- package/fesm2022/exhaustive-ui-core-tooltip.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tree.mjs +508 -639
- package/fesm2022/exhaustive-ui-core-tree.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treeselect.mjs +327 -421
- package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treetable.mjs +1267 -1473
- package/fesm2022/exhaustive-ui-core-treetable.mjs.map +1 -1
- package/package.json +5 -5
- package/schematics/migrations/remove-dead-inputs/migration.js +213 -7
- package/schematics/migrations/renamed-inputs/migration.js +97 -0
- package/schematics/migrations/styleclass-to-class/migration.js +92 -1
- package/schematics/migrations.json +7 -2
- package/schematics/utils/removed-inputs.js +0 -0
- package/schematics/utils/renamed-inputs.js +175 -0
- package/schematics/utils/styleclass.js +24 -8
- package/schematics/utils/versions.json +8 -8
- package/types/exhaustive-ui-core-accordion.d.ts +8 -24
- package/types/exhaustive-ui-core-animateonscroll.d.ts +19 -21
- package/types/exhaustive-ui-core-api.d.ts +2 -3
- package/types/exhaustive-ui-core-autocomplete.d.ts +103 -176
- package/types/exhaustive-ui-core-autofocus.d.ts +4 -7
- package/types/exhaustive-ui-core-avatar.d.ts +18 -25
- package/types/exhaustive-ui-core-badge.d.ts +13 -27
- package/types/exhaustive-ui-core-blockui.d.ts +18 -30
- package/types/exhaustive-ui-core-breadcrumb.d.ts +21 -22
- package/types/exhaustive-ui-core-button.d.ts +57 -89
- package/types/exhaustive-ui-core-carousel.d.ts +56 -82
- package/types/exhaustive-ui-core-cascadeselect.d.ts +77 -111
- package/types/exhaustive-ui-core-chart.d.ts +21 -29
- package/types/exhaustive-ui-core-checkbox.d.ts +25 -39
- package/types/exhaustive-ui-core-chip.d.ts +31 -38
- package/types/exhaustive-ui-core-colorpicker.d.ts +23 -57
- package/types/exhaustive-ui-core-confirmdialog.d.ts +39 -109
- package/types/exhaustive-ui-core-confirmpopup.d.ts +24 -43
- package/types/exhaustive-ui-core-contextmenu.d.ts +54 -71
- package/types/exhaustive-ui-core-dataview.d.ts +42 -65
- package/types/exhaustive-ui-core-datepicker.d.ts +109 -191
- package/types/exhaustive-ui-core-dialog.d.ts +73 -123
- package/types/exhaustive-ui-core-dock.d.ts +16 -25
- package/types/exhaustive-ui-core-dragdrop.d.ts +32 -36
- package/types/exhaustive-ui-core-drawer.d.ts +32 -64
- package/types/exhaustive-ui-core-dynamicdialog.d.ts +9 -54
- package/types/exhaustive-ui-core-editor.d.ts +15 -25
- package/types/exhaustive-ui-core-fieldset.d.ts +15 -35
- package/types/exhaustive-ui-core-fileupload.d.ts +69 -95
- package/types/exhaustive-ui-core-floatlabel.d.ts +4 -6
- package/types/exhaustive-ui-core-focustrap.d.ts +5 -10
- package/types/exhaustive-ui-core-galleria.d.ts +124 -194
- package/types/exhaustive-ui-core-iconfield.d.ts +5 -13
- package/types/exhaustive-ui-core-icons-baseicon.d.ts +4 -5
- package/types/exhaustive-ui-core-image.d.ts +35 -68
- package/types/exhaustive-ui-core-imagecompare.d.ts +19 -20
- package/types/exhaustive-ui-core-inplace.d.ts +30 -42
- package/types/exhaustive-ui-core-inputgroup.d.ts +2 -9
- package/types/exhaustive-ui-core-inputgroupaddon.d.ts +6 -10
- package/types/exhaustive-ui-core-inputicon.d.ts +4 -11
- package/types/exhaustive-ui-core-inputmask.d.ts +53 -66
- package/types/exhaustive-ui-core-inputnumber.d.ts +62 -84
- package/types/exhaustive-ui-core-inputotp.d.ts +16 -20
- package/types/exhaustive-ui-core-inputtext.d.ts +5 -8
- package/types/exhaustive-ui-core-keyfilter.d.ts +11 -15
- package/types/exhaustive-ui-core-knob.d.ts +45 -60
- package/types/exhaustive-ui-core-listbox.d.ts +90 -126
- package/types/exhaustive-ui-core-megamenu.d.ts +45 -66
- package/types/exhaustive-ui-core-menu.d.ts +33 -53
- package/types/exhaustive-ui-core-menubar.d.ts +38 -85
- package/types/exhaustive-ui-core-metergroup.d.ts +39 -48
- package/types/exhaustive-ui-core-multiselect.d.ts +166 -219
- package/types/exhaustive-ui-core-orderlist.d.ts +58 -81
- package/types/exhaustive-ui-core-organizationchart.d.ts +32 -67
- package/types/exhaustive-ui-core-overlaybadge.d.ts +10 -20
- package/types/exhaustive-ui-core-paginator.d.ts +41 -69
- package/types/exhaustive-ui-core-panel.d.ts +18 -45
- package/types/exhaustive-ui-core-panelmenu.d.ts +31 -76
- package/types/exhaustive-ui-core-password.d.ts +56 -93
- package/types/exhaustive-ui-core-picklist.d.ts +107 -121
- package/types/exhaustive-ui-core-popover.d.ts +23 -47
- package/types/exhaustive-ui-core-rating.d.ts +18 -26
- package/types/exhaustive-ui-core-scroller.d.ts +90 -120
- package/types/exhaustive-ui-core-scrollpanel.d.ts +35 -46
- package/types/exhaustive-ui-core-scrolltop.d.ts +28 -45
- package/types/exhaustive-ui-core-select.d.ts +137 -188
- package/types/exhaustive-ui-core-selectbutton.d.ts +35 -44
- package/types/exhaustive-ui-core-slider.d.ts +52 -67
- package/types/exhaustive-ui-core-speeddial.d.ts +40 -56
- package/types/exhaustive-ui-core-splitbutton.d.ts +31 -71
- package/types/exhaustive-ui-core-splitter.d.ts +47 -59
- package/types/exhaustive-ui-core-steps.d.ts +24 -31
- package/types/exhaustive-ui-core-styleclass.d.ts +27 -33
- package/types/exhaustive-ui-core-table.d.ts +349 -453
- package/types/exhaustive-ui-core-terminal.d.ts +10 -22
- package/types/exhaustive-ui-core-textarea.d.ts +7 -10
- package/types/exhaustive-ui-core-tieredmenu.d.ts +49 -84
- package/types/exhaustive-ui-core-timeline.d.ts +20 -28
- package/types/exhaustive-ui-core-togglebutton.d.ts +32 -48
- package/types/exhaustive-ui-core-toggleswitch.d.ts +26 -37
- package/types/exhaustive-ui-core-toolbar.d.ts +17 -25
- package/types/exhaustive-ui-core-tooltip.d.ts +53 -88
- package/types/exhaustive-ui-core-tree.d.ts +82 -119
- package/types/exhaustive-ui-core-treeselect.d.ts +63 -92
- package/types/exhaustive-ui-core-treetable.d.ts +203 -280
- package/types/exhaustive-ui-core-types-chip.d.ts +1 -1
|
@@ -2,7 +2,8 @@ export * from '@exhaustive-ui/core/types/dataview';
|
|
|
2
2
|
import * as i2 from '@angular/common';
|
|
3
3
|
import { CommonModule } from '@angular/common';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
|
-
import { Injectable, InjectionToken, inject, output, contentChild,
|
|
5
|
+
import { Injectable, InjectionToken, inject, afterEveryRender, afterNextRender, effect, untracked, input, booleanAttribute, numberAttribute, output, contentChild, signal, linkedSignal, computed, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
6
|
+
import { toSignal } from '@angular/core/rxjs-interop';
|
|
6
7
|
import { resolveFieldData } from '@exhaustive-ui/utils';
|
|
7
8
|
import { Header, Footer, TranslationKeys, FilterService, SharedModule } from '@exhaustive-ui/core/api';
|
|
8
9
|
import { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';
|
|
@@ -18,8 +19,8 @@ const classes = {
|
|
|
18
19
|
root: ({ instance }) => [
|
|
19
20
|
'p-dataview p-component',
|
|
20
21
|
{
|
|
21
|
-
'p-dataview-list': instance.layout === 'list',
|
|
22
|
-
'p-dataview-grid': instance.layout === 'grid'
|
|
22
|
+
'p-dataview-list': instance.layout() === 'list',
|
|
23
|
+
'p-dataview-grid': instance.layout() === 'grid'
|
|
23
24
|
}
|
|
24
25
|
],
|
|
25
26
|
header: 'p-dataview-header',
|
|
@@ -99,160 +100,197 @@ class DataView extends BaseComponent {
|
|
|
99
100
|
componentName = 'DataView';
|
|
100
101
|
bindDirectiveInstance = inject(Bind, { self: true });
|
|
101
102
|
$pcDataView = inject(DATAVIEW_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
|
|
102
|
-
|
|
103
|
-
|
|
103
|
+
constructor() {
|
|
104
|
+
super();
|
|
105
|
+
afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root'])));
|
|
106
|
+
afterNextRender(() => this.initialized.set(true));
|
|
107
|
+
effect(() => {
|
|
108
|
+
const layout = this.layout();
|
|
109
|
+
untracked(() => {
|
|
110
|
+
if (this.initialized()) {
|
|
111
|
+
this.onChangeLayout.emit({ layout });
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
});
|
|
115
|
+
effect(() => {
|
|
116
|
+
this.value();
|
|
117
|
+
untracked(() => {
|
|
118
|
+
if (!this.lazy() && this.hasFilter()) {
|
|
119
|
+
this.filter(this.filterValue());
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
});
|
|
123
|
+
effect(() => {
|
|
124
|
+
const sortField = this.sortField();
|
|
125
|
+
const sortOrder = this.sortOrder();
|
|
126
|
+
untracked(() => {
|
|
127
|
+
//avoid triggering lazy load prior to lazy initialization at onInit
|
|
128
|
+
if (this.initialized() || (!this.lazy() && (sortField !== undefined || sortOrder !== undefined))) {
|
|
129
|
+
this.sort();
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
});
|
|
104
133
|
}
|
|
105
134
|
/**
|
|
106
135
|
* When specified as true, enables the pagination.
|
|
107
136
|
* @group Props
|
|
108
137
|
*/
|
|
109
|
-
paginator;
|
|
138
|
+
paginator = input(undefined, { ...(ngDevMode ? { debugName: "paginator" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
110
139
|
/**
|
|
111
140
|
* Number of rows to display per page.
|
|
112
141
|
* @group Props
|
|
113
142
|
*/
|
|
114
|
-
rows;
|
|
143
|
+
rows = input(undefined, { ...(ngDevMode ? { debugName: "rows" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
115
144
|
/**
|
|
116
145
|
* Number of total records, defaults to length of value when not defined.
|
|
117
146
|
* @group Props
|
|
118
147
|
*/
|
|
119
|
-
totalRecords;
|
|
148
|
+
totalRecords = input(undefined, { ...(ngDevMode ? { debugName: "totalRecords" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
120
149
|
/**
|
|
121
150
|
* Number of page links to display in paginator.
|
|
122
151
|
* @group Props
|
|
123
152
|
*/
|
|
124
|
-
pageLinks = 5;
|
|
153
|
+
pageLinks = input(5, { ...(ngDevMode ? { debugName: "pageLinks" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
125
154
|
/**
|
|
126
155
|
* Array of integer/object values to display inside rows per page dropdown of paginator
|
|
127
156
|
* @group Props
|
|
128
157
|
*/
|
|
129
|
-
rowsPerPageOptions
|
|
158
|
+
rowsPerPageOptions = input(/* @ts-ignore */
|
|
159
|
+
...(ngDevMode ? [undefined, { debugName: "rowsPerPageOptions" }] : /* istanbul ignore next */ []));
|
|
130
160
|
/**
|
|
131
161
|
* Position of the paginator.
|
|
132
162
|
* @group Props
|
|
133
163
|
*/
|
|
134
|
-
paginatorPosition = 'bottom'
|
|
164
|
+
paginatorPosition = input('bottom', /* @ts-ignore */
|
|
165
|
+
...(ngDevMode ? [{ debugName: "paginatorPosition" }] : /* istanbul ignore next */ []));
|
|
135
166
|
/**
|
|
136
167
|
* Custom style class for paginator
|
|
137
168
|
* @group Props
|
|
138
169
|
*/
|
|
139
|
-
paginatorStyleClass
|
|
170
|
+
paginatorStyleClass = input(/* @ts-ignore */
|
|
171
|
+
...(ngDevMode ? [undefined, { debugName: "paginatorStyleClass" }] : /* istanbul ignore next */ []));
|
|
140
172
|
/**
|
|
141
173
|
* Whether to show it even there is only one page.
|
|
142
174
|
* @group Props
|
|
143
175
|
*/
|
|
144
|
-
alwaysShowPaginator = true;
|
|
176
|
+
alwaysShowPaginator = input(true, { ...(ngDevMode ? { debugName: "alwaysShowPaginator" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
145
177
|
/**
|
|
146
178
|
* Target element to attach the paginator dropdown overlay, valid values are "body" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]="mydiv" for a div element having #mydiv as variable name).
|
|
147
179
|
* @group Props
|
|
148
180
|
*/
|
|
149
|
-
paginatorDropdownAppendTo
|
|
181
|
+
paginatorDropdownAppendTo = input(/* @ts-ignore */
|
|
182
|
+
...(ngDevMode ? [undefined, { debugName: "paginatorDropdownAppendTo" }] : /* istanbul ignore next */ []));
|
|
150
183
|
/**
|
|
151
184
|
* Paginator dropdown height of the viewport in pixels, a scrollbar is defined if height of list exceeds this value.
|
|
152
185
|
* @group Props
|
|
153
186
|
*/
|
|
154
|
-
paginatorDropdownScrollHeight = '200px'
|
|
187
|
+
paginatorDropdownScrollHeight = input('200px', /* @ts-ignore */
|
|
188
|
+
...(ngDevMode ? [{ debugName: "paginatorDropdownScrollHeight" }] : /* istanbul ignore next */ []));
|
|
155
189
|
/**
|
|
156
190
|
* Template of the current page report element. Available placeholders are {currentPage},{totalPages},{rows},{first},{last} and {totalRecords}
|
|
157
191
|
* @group Props
|
|
158
192
|
*/
|
|
159
|
-
currentPageReportTemplate = '{currentPage} of {totalPages}'
|
|
193
|
+
currentPageReportTemplate = input('{currentPage} of {totalPages}', /* @ts-ignore */
|
|
194
|
+
...(ngDevMode ? [{ debugName: "currentPageReportTemplate" }] : /* istanbul ignore next */ []));
|
|
160
195
|
/**
|
|
161
196
|
* Whether to display current page report.
|
|
162
197
|
* @group Props
|
|
163
198
|
*/
|
|
164
|
-
showCurrentPageReport;
|
|
199
|
+
showCurrentPageReport = input(undefined, { ...(ngDevMode ? { debugName: "showCurrentPageReport" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
165
200
|
/**
|
|
166
201
|
* Whether to display a dropdown to navigate to any page.
|
|
167
202
|
* @group Props
|
|
168
203
|
*/
|
|
169
|
-
showJumpToPageDropdown;
|
|
204
|
+
showJumpToPageDropdown = input(undefined, { ...(ngDevMode ? { debugName: "showJumpToPageDropdown" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
170
205
|
/**
|
|
171
206
|
* When enabled, icons are displayed on paginator to go first and last page.
|
|
172
207
|
* @group Props
|
|
173
208
|
*/
|
|
174
|
-
showFirstLastIcon = true;
|
|
209
|
+
showFirstLastIcon = input(true, { ...(ngDevMode ? { debugName: "showFirstLastIcon" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
175
210
|
/**
|
|
176
211
|
* Whether to show page links.
|
|
177
212
|
* @group Props
|
|
178
213
|
*/
|
|
179
|
-
showPageLinks = true;
|
|
214
|
+
showPageLinks = input(true, { ...(ngDevMode ? { debugName: "showPageLinks" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
180
215
|
/**
|
|
181
216
|
* Defines if data is loaded and interacted with in lazy manner.
|
|
182
217
|
* @group Props
|
|
183
218
|
*/
|
|
184
|
-
lazy;
|
|
219
|
+
lazy = input(undefined, { ...(ngDevMode ? { debugName: "lazy" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
185
220
|
/**
|
|
186
221
|
* Whether to call lazy loading on initialization.
|
|
187
222
|
* @group Props
|
|
188
223
|
*/
|
|
189
|
-
lazyLoadOnInit = true;
|
|
224
|
+
lazyLoadOnInit = input(true, { ...(ngDevMode ? { debugName: "lazyLoadOnInit" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
190
225
|
/**
|
|
191
226
|
* Text to display when there is no data. Defaults to global value in i18n translation configuration.
|
|
192
227
|
* @group Props
|
|
193
228
|
*/
|
|
194
|
-
emptyMessage = ''
|
|
195
|
-
|
|
196
|
-
* Style class of the component.
|
|
197
|
-
* @deprecated since v20.0.0, use `class` instead.
|
|
198
|
-
* @group Props
|
|
199
|
-
*/
|
|
200
|
-
styleClass;
|
|
229
|
+
emptyMessage = input('', /* @ts-ignore */
|
|
230
|
+
...(ngDevMode ? [{ debugName: "emptyMessage" }] : /* istanbul ignore next */ []));
|
|
201
231
|
/**
|
|
202
232
|
* Style class of the grid.
|
|
203
233
|
* @group Props
|
|
204
234
|
*/
|
|
205
|
-
gridStyleClass = ''
|
|
235
|
+
gridStyleClass = input('', /* @ts-ignore */
|
|
236
|
+
...(ngDevMode ? [{ debugName: "gridStyleClass" }] : /* istanbul ignore next */ []));
|
|
206
237
|
/**
|
|
207
238
|
* Function to optimize the dom operations by delegating to ngForTrackBy, default algorithm checks for object identity.
|
|
208
239
|
* @group Props
|
|
209
240
|
*/
|
|
210
|
-
trackBy = (index, item) => item
|
|
241
|
+
trackBy = input((index, item) => item, /* @ts-ignore */
|
|
242
|
+
...(ngDevMode ? [{ debugName: "trackBy" }] : /* istanbul ignore next */ []));
|
|
211
243
|
/**
|
|
212
244
|
* Comma separated list of fields in the object graph to search against.
|
|
213
245
|
* @group Props
|
|
214
246
|
*/
|
|
215
|
-
filterBy
|
|
247
|
+
filterBy = input(/* @ts-ignore */
|
|
248
|
+
...(ngDevMode ? [undefined, { debugName: "filterBy" }] : /* istanbul ignore next */ []));
|
|
216
249
|
/**
|
|
217
250
|
* Locale to use in filtering. The default locale is the host environment's current locale.
|
|
218
251
|
* @group Props
|
|
219
252
|
*/
|
|
220
|
-
filterLocale
|
|
253
|
+
filterLocale = input(/* @ts-ignore */
|
|
254
|
+
...(ngDevMode ? [undefined, { debugName: "filterLocale" }] : /* istanbul ignore next */ []));
|
|
221
255
|
/**
|
|
222
256
|
* Displays a loader to indicate data load is in progress.
|
|
223
257
|
* @group Props
|
|
224
258
|
*/
|
|
225
|
-
loading;
|
|
259
|
+
loading = input(undefined, { ...(ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
226
260
|
/**
|
|
227
261
|
* The icon to show while indicating data load is in progress.
|
|
228
262
|
* @group Props
|
|
229
263
|
*/
|
|
230
|
-
loadingIcon
|
|
264
|
+
loadingIcon = input(/* @ts-ignore */
|
|
265
|
+
...(ngDevMode ? [undefined, { debugName: "loadingIcon" }] : /* istanbul ignore next */ []));
|
|
231
266
|
/**
|
|
232
267
|
* Index of the first row to be displayed.
|
|
233
268
|
* @group Props
|
|
234
269
|
*/
|
|
235
|
-
first = 0;
|
|
270
|
+
first = input(0, { ...(ngDevMode ? { debugName: "first" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
236
271
|
/**
|
|
237
272
|
* Property name of data to use in sorting by default.
|
|
238
273
|
* @group Props
|
|
239
274
|
*/
|
|
240
|
-
sortField
|
|
275
|
+
sortField = input(/* @ts-ignore */
|
|
276
|
+
...(ngDevMode ? [undefined, { debugName: "sortField" }] : /* istanbul ignore next */ []));
|
|
241
277
|
/**
|
|
242
278
|
* Order to sort the data by default.
|
|
243
279
|
* @group Props
|
|
244
280
|
*/
|
|
245
|
-
sortOrder;
|
|
281
|
+
sortOrder = input(undefined, { ...(ngDevMode ? { debugName: "sortOrder" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
246
282
|
/**
|
|
247
283
|
* An array of objects to display.
|
|
248
284
|
* @group Props
|
|
249
285
|
*/
|
|
250
|
-
value
|
|
286
|
+
value = input(/* @ts-ignore */
|
|
287
|
+
...(ngDevMode ? [undefined, { debugName: "value" }] : /* istanbul ignore next */ []));
|
|
251
288
|
/**
|
|
252
289
|
* Defines the layout mode.
|
|
253
290
|
* @group Props
|
|
254
291
|
*/
|
|
255
|
-
layout = 'list'
|
|
292
|
+
layout = input('list', /* @ts-ignore */
|
|
293
|
+
...(ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []));
|
|
256
294
|
/**
|
|
257
295
|
* Callback to invoke when paging, sorting or filtering happens in lazy mode.
|
|
258
296
|
* @param {DataViewLazyLoadEvent} event - Custom lazy load event.
|
|
@@ -340,68 +378,62 @@ class DataView extends BaseComponent {
|
|
|
340
378
|
...(ngDevMode ? [{ debugName: "header" }] : /* istanbul ignore next */ []));
|
|
341
379
|
footer = contentChild(Footer, /* @ts-ignore */
|
|
342
380
|
...(ngDevMode ? [{ debugName: "footer" }] : /* istanbul ignore next */ []));
|
|
343
|
-
|
|
344
|
-
filteredValue;
|
|
345
|
-
filterValue
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
381
|
+
filteredValue = signal(undefined, /* @ts-ignore */
|
|
382
|
+
...(ngDevMode ? [{ debugName: "filteredValue" }] : /* istanbul ignore next */ []));
|
|
383
|
+
filterValue = signal(undefined, /* @ts-ignore */
|
|
384
|
+
...(ngDevMode ? [{ debugName: "filterValue" }] : /* istanbul ignore next */ []));
|
|
385
|
+
initialized = signal(undefined, /* @ts-ignore */
|
|
386
|
+
...(ngDevMode ? [{ debugName: "initialized" }] : /* istanbul ignore next */ []));
|
|
387
|
+
_first = linkedSignal(() => this.first(), /* @ts-ignore */
|
|
388
|
+
...(ngDevMode ? [{ debugName: "_first" }] : /* istanbul ignore next */ []));
|
|
389
|
+
_rows = linkedSignal(() => this.rows(), /* @ts-ignore */
|
|
390
|
+
...(ngDevMode ? [{ debugName: "_rows" }] : /* istanbul ignore next */ []));
|
|
391
|
+
_totalRecords = linkedSignal(() => {
|
|
392
|
+
const totalRecords = this.totalRecords();
|
|
393
|
+
const value = this.value();
|
|
394
|
+
if (this.lazy() || (totalRecords != null && !Number.isNaN(totalRecords))) {
|
|
395
|
+
return totalRecords;
|
|
396
|
+
}
|
|
397
|
+
return value ? value.length : 0;
|
|
398
|
+
}, /* @ts-ignore */
|
|
399
|
+
...(ngDevMode ? [{ debugName: "_totalRecords" }] : /* istanbul ignore next */ []));
|
|
400
|
+
translation = toSignal(this.config.translationObserver, { initialValue: this.config.translation });
|
|
349
401
|
_componentStyle = inject(DataViewStyle);
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
}
|
|
402
|
+
emptyMessageLabel = computed(() => this.emptyMessage() || this.translation()[TranslationKeys.EMPTY_MESSAGE], /* @ts-ignore */
|
|
403
|
+
...(ngDevMode ? [{ debugName: "emptyMessageLabel" }] : /* istanbul ignore next */ []));
|
|
353
404
|
filterService = inject(FilterService);
|
|
354
405
|
onInit() {
|
|
355
|
-
if (this.lazy && this.lazyLoadOnInit) {
|
|
406
|
+
if (this.lazy() && this.lazyLoadOnInit()) {
|
|
356
407
|
this.onLazyLoad.emit(this.createLazyLoadMetadata());
|
|
357
408
|
}
|
|
358
|
-
this.translationSubscription = this.config.translationObserver.subscribe(() => {
|
|
359
|
-
this.cd.markForCheck();
|
|
360
|
-
});
|
|
361
|
-
this.initialized = true;
|
|
362
|
-
}
|
|
363
|
-
onAfterViewInit() { }
|
|
364
|
-
onChanges(simpleChanges) {
|
|
365
|
-
if (simpleChanges.layout && !simpleChanges.layout.firstChange) {
|
|
366
|
-
this.onChangeLayout.emit({ layout: simpleChanges.layout.currentValue });
|
|
367
|
-
}
|
|
368
|
-
if (simpleChanges.value) {
|
|
369
|
-
this._value = simpleChanges.value.currentValue;
|
|
370
|
-
this.updateTotalRecords();
|
|
371
|
-
if (!this.lazy && this.hasFilter()) {
|
|
372
|
-
this.filter(this.filterValue);
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
if (simpleChanges.sortField || simpleChanges.sortOrder) {
|
|
376
|
-
//avoid triggering lazy load prior to lazy initialization at onInit
|
|
377
|
-
if (!this.lazy || this.initialized) {
|
|
378
|
-
this.sort();
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
409
|
}
|
|
382
410
|
updateTotalRecords() {
|
|
383
|
-
|
|
411
|
+
const value = this.value();
|
|
412
|
+
this._totalRecords.set(this.lazy() ? this._totalRecords() : value ? value.length : 0);
|
|
384
413
|
}
|
|
385
414
|
paginate(event) {
|
|
386
|
-
this.
|
|
387
|
-
this.
|
|
388
|
-
if (this.lazy) {
|
|
415
|
+
this._first.set(event.first);
|
|
416
|
+
this._rows.set(event.rows);
|
|
417
|
+
if (this.lazy()) {
|
|
389
418
|
this.onLazyLoad.emit(this.createLazyLoadMetadata());
|
|
390
419
|
}
|
|
391
420
|
this.onPage.emit({
|
|
392
|
-
first: this.
|
|
393
|
-
rows: this.
|
|
421
|
+
first: this._first(),
|
|
422
|
+
rows: this._rows()
|
|
394
423
|
});
|
|
395
424
|
}
|
|
396
425
|
sort() {
|
|
397
|
-
this.
|
|
398
|
-
|
|
426
|
+
this._first.set(0);
|
|
427
|
+
const value = this.value();
|
|
428
|
+
if (this.lazy()) {
|
|
399
429
|
this.onLazyLoad.emit(this.createLazyLoadMetadata());
|
|
400
430
|
}
|
|
401
|
-
else if (
|
|
402
|
-
this.
|
|
403
|
-
|
|
404
|
-
|
|
431
|
+
else if (value) {
|
|
432
|
+
const sortField = this.sortField();
|
|
433
|
+
const sortOrder = this.sortOrder();
|
|
434
|
+
value.sort((data1, data2) => {
|
|
435
|
+
let value1 = resolveFieldData(data1, sortField);
|
|
436
|
+
let value2 = resolveFieldData(data2, sortField);
|
|
405
437
|
let result;
|
|
406
438
|
if (value1 == null && value2 != null)
|
|
407
439
|
result = -1;
|
|
@@ -413,62 +445,58 @@ class DataView extends BaseComponent {
|
|
|
413
445
|
result = value1.localeCompare(value2);
|
|
414
446
|
else
|
|
415
447
|
result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
|
|
416
|
-
return
|
|
448
|
+
return sortOrder * result;
|
|
417
449
|
});
|
|
418
450
|
if (this.hasFilter()) {
|
|
419
|
-
this.filter(this.filterValue);
|
|
451
|
+
this.filter(this.filterValue());
|
|
420
452
|
}
|
|
421
453
|
}
|
|
422
454
|
this.onSort.emit({
|
|
423
|
-
sortField: this.sortField,
|
|
424
|
-
sortOrder: this.sortOrder
|
|
455
|
+
sortField: this.sortField(),
|
|
456
|
+
sortOrder: this.sortOrder()
|
|
425
457
|
});
|
|
426
458
|
}
|
|
427
|
-
isEmpty() {
|
|
428
|
-
let data = this.filteredValue || this.value;
|
|
459
|
+
isEmpty = computed(() => {
|
|
460
|
+
let data = this.filteredValue() || this.value();
|
|
429
461
|
return data == null || data.length == 0;
|
|
430
|
-
}
|
|
462
|
+
}, /* @ts-ignore */
|
|
463
|
+
...(ngDevMode ? [{ debugName: "isEmpty" }] : /* istanbul ignore next */ []));
|
|
431
464
|
createLazyLoadMetadata() {
|
|
432
465
|
return {
|
|
433
|
-
first: this.
|
|
434
|
-
rows: this.
|
|
435
|
-
sortField: this.sortField,
|
|
436
|
-
sortOrder: this.sortOrder
|
|
466
|
+
first: this._first(),
|
|
467
|
+
rows: this._rows(),
|
|
468
|
+
sortField: this.sortField(),
|
|
469
|
+
sortOrder: this.sortOrder()
|
|
437
470
|
};
|
|
438
471
|
}
|
|
439
472
|
getBlockableElement() {
|
|
440
473
|
return this.el.nativeElement.children[0];
|
|
441
474
|
}
|
|
442
475
|
filter(filter, filterMatchMode = 'contains') {
|
|
443
|
-
this.filterValue
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
476
|
+
this.filterValue.set(filter);
|
|
477
|
+
const value = this.value();
|
|
478
|
+
if (value && value.length) {
|
|
479
|
+
let searchFields = this.filterBy().split(',');
|
|
480
|
+
let filteredValue = this.filterService.filter(value, searchFields, filter, filterMatchMode, this.filterLocale());
|
|
481
|
+
if (filteredValue.length === value.length) {
|
|
482
|
+
filteredValue = null;
|
|
449
483
|
}
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
this.
|
|
484
|
+
this.filteredValue.set(filteredValue);
|
|
485
|
+
if (this.paginator()) {
|
|
486
|
+
this._first.set(0);
|
|
487
|
+
this._totalRecords.set(filteredValue ? filteredValue.length : value ? value.length : 0);
|
|
453
488
|
}
|
|
454
|
-
this.cd.markForCheck();
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
hasFilter() {
|
|
458
|
-
return this.filterValue && this.filterValue.trim().length > 0;
|
|
459
|
-
}
|
|
460
|
-
onDestroy() {
|
|
461
|
-
if (this.translationSubscription) {
|
|
462
|
-
this.translationSubscription.unsubscribe();
|
|
463
489
|
}
|
|
464
490
|
}
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
491
|
+
hasFilter = computed(() => this.filterValue() && this.filterValue().trim().length > 0, /* @ts-ignore */
|
|
492
|
+
...(ngDevMode ? [{ debugName: "hasFilter" }] : /* istanbul ignore next */ []));
|
|
493
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: DataView, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
494
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: DataView, isStandalone: true, selector: "p-dataView, p-dataview, p-data-view", inputs: { paginator: { classPropertyName: "paginator", publicName: "paginator", 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 }, pageLinks: { classPropertyName: "pageLinks", publicName: "pageLinks", isSignal: true, isRequired: false, transformFunction: null }, rowsPerPageOptions: { classPropertyName: "rowsPerPageOptions", publicName: "rowsPerPageOptions", 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 }, alwaysShowPaginator: { classPropertyName: "alwaysShowPaginator", publicName: "alwaysShowPaginator", 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 }, showFirstLastIcon: { classPropertyName: "showFirstLastIcon", publicName: "showFirstLastIcon", isSignal: true, isRequired: false, transformFunction: null }, showPageLinks: { classPropertyName: "showPageLinks", publicName: "showPageLinks", 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 }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, gridStyleClass: { classPropertyName: "gridStyleClass", publicName: "gridStyleClass", isSignal: true, isRequired: false, transformFunction: null }, trackBy: { classPropertyName: "trackBy", publicName: "trackBy", isSignal: true, isRequired: false, transformFunction: null }, filterBy: { classPropertyName: "filterBy", publicName: "filterBy", isSignal: true, isRequired: false, transformFunction: null }, filterLocale: { classPropertyName: "filterLocale", publicName: "filterLocale", 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 }, first: { classPropertyName: "first", publicName: "first", 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 }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onLazyLoad: "onLazyLoad", onPage: "onPage", onSort: "onSort", onChangeLayout: "onChangeLayout" }, host: { properties: { "class": "cx('root')" } }, providers: [DataViewStyle, { provide: DATAVIEW_INSTANCE, useExisting: DataView }, { provide: PARENT_INSTANCE, useExisting: DataView }], queries: [{ propertyName: "listTemplate", first: true, predicate: ["list"], descendants: true, isSignal: true }, { propertyName: "gridTemplate", first: true, predicate: ["grid"], descendants: true, isSignal: true }, { propertyName: "headerTemplate", first: true, predicate: ["header"], descendants: true, isSignal: true }, { propertyName: "emptymessageTemplate", first: true, predicate: ["emptymessage"], descendants: true, isSignal: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], descendants: true, isSignal: true }, { propertyName: "paginatorleft", first: true, predicate: ["paginatorleft"], descendants: true, isSignal: true }, { propertyName: "paginatorright", first: true, predicate: ["paginatorright"], descendants: true, isSignal: true }, { propertyName: "paginatordropdownitem", first: true, predicate: ["paginatordropdownitem"], descendants: true, isSignal: true }, { propertyName: "loadingicon", first: true, predicate: ["loadingicon"], descendants: true, isSignal: true }, { propertyName: "header", first: true, predicate: Header, descendants: true, isSignal: true }, { propertyName: "footer", first: true, predicate: Footer, descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
495
|
+
@if (loading()) {
|
|
468
496
|
<div [pBind]="ptm('loading')" [class]="cx('loading')">
|
|
469
497
|
<div [pBind]="ptm('loadingOverlay')" [class]="cx('loadingOverlay')">
|
|
470
|
-
@if (loadingIcon) {
|
|
471
|
-
<i [class]="cn(cx('loadingIcon'), 'pi-spin' + loadingIcon)"></i>
|
|
498
|
+
@if (loadingIcon()) {
|
|
499
|
+
<i [class]="cn(cx('loadingIcon'), 'pi-spin' + loadingIcon())"></i>
|
|
472
500
|
} @else {
|
|
473
501
|
<ng-container>
|
|
474
502
|
<svg [pBind]="ptm('loadingIcon')" data-p-icon="spinner" [spin]="true" [class]="cx('loadingIcon')" />
|
|
@@ -484,55 +512,55 @@ class DataView extends BaseComponent {
|
|
|
484
512
|
<ng-container *ngTemplateOutlet="headerTemplate()"></ng-container>
|
|
485
513
|
</div>
|
|
486
514
|
}
|
|
487
|
-
@if (paginator && (paginatorPosition === 'top' || paginatorPosition == 'both')) {
|
|
515
|
+
@if (paginator() && (paginatorPosition() === 'top' || paginatorPosition() == 'both')) {
|
|
488
516
|
<p-paginator
|
|
489
|
-
[rows]="
|
|
490
|
-
[first]="
|
|
491
|
-
[totalRecords]="
|
|
492
|
-
[pageLinkSize]="pageLinks"
|
|
493
|
-
[alwaysShow]="alwaysShowPaginator"
|
|
517
|
+
[rows]="_rows()"
|
|
518
|
+
[first]="_first()"
|
|
519
|
+
[totalRecords]="_totalRecords()"
|
|
520
|
+
[pageLinkSize]="pageLinks()"
|
|
521
|
+
[alwaysShow]="alwaysShowPaginator()"
|
|
494
522
|
(onPageChange)="paginate($event)"
|
|
495
|
-
[rowsPerPageOptions]="rowsPerPageOptions"
|
|
496
|
-
[appendTo]="paginatorDropdownAppendTo"
|
|
497
|
-
[dropdownScrollHeight]="paginatorDropdownScrollHeight"
|
|
523
|
+
[rowsPerPageOptions]="rowsPerPageOptions()"
|
|
524
|
+
[appendTo]="paginatorDropdownAppendTo()"
|
|
525
|
+
[dropdownScrollHeight]="paginatorDropdownScrollHeight()"
|
|
498
526
|
[templateLeft]="paginatorleft()"
|
|
499
527
|
[templateRight]="paginatorright()"
|
|
500
|
-
[currentPageReportTemplate]="currentPageReportTemplate"
|
|
501
|
-
[showFirstLastIcon]="showFirstLastIcon"
|
|
528
|
+
[currentPageReportTemplate]="currentPageReportTemplate()"
|
|
529
|
+
[showFirstLastIcon]="showFirstLastIcon()"
|
|
502
530
|
[dropdownItemTemplate]="paginatordropdownitem()"
|
|
503
|
-
[showCurrentPageReport]="showCurrentPageReport"
|
|
504
|
-
[showJumpToPageDropdown]="showJumpToPageDropdown"
|
|
505
|
-
[showPageLinks]="showPageLinks"
|
|
506
|
-
[
|
|
531
|
+
[showCurrentPageReport]="showCurrentPageReport()"
|
|
532
|
+
[showJumpToPageDropdown]="showJumpToPageDropdown()"
|
|
533
|
+
[showPageLinks]="showPageLinks()"
|
|
534
|
+
[class]="cn(cx('pcPaginator', { position: 'top' }), paginatorStyleClass())"
|
|
507
535
|
[pt]="ptm('pcPaginator')"
|
|
508
536
|
[unstyled]="unstyled()"
|
|
509
537
|
></p-paginator>
|
|
510
538
|
}
|
|
511
539
|
<div [pBind]="ptm('content')" [class]="cx('content')">
|
|
512
|
-
@if (layout === 'list') {
|
|
540
|
+
@if (layout() === 'list') {
|
|
513
541
|
<ng-container
|
|
514
542
|
*ngTemplateOutlet="
|
|
515
543
|
listTemplate();
|
|
516
544
|
context: {
|
|
517
|
-
$implicit: paginator ? (filteredValue || value | slice: (lazy ? 0 :
|
|
545
|
+
$implicit: paginator() ? (filteredValue() || value() | slice: (lazy() ? 0 : _first()) : (lazy() ? 0 : _first()) + _rows()) : filteredValue() || value()
|
|
518
546
|
}
|
|
519
547
|
"
|
|
520
548
|
></ng-container>
|
|
521
549
|
}
|
|
522
|
-
@if (layout === 'grid') {
|
|
550
|
+
@if (layout() === 'grid') {
|
|
523
551
|
<ng-container
|
|
524
552
|
*ngTemplateOutlet="
|
|
525
553
|
gridTemplate();
|
|
526
554
|
context: {
|
|
527
|
-
$implicit: paginator ? (filteredValue || value | slice: (lazy ? 0 :
|
|
555
|
+
$implicit: paginator() ? (filteredValue() || value() | slice: (lazy() ? 0 : _first()) : (lazy() ? 0 : _first()) + _rows()) : filteredValue() || value()
|
|
528
556
|
}
|
|
529
557
|
"
|
|
530
558
|
></ng-container>
|
|
531
559
|
}
|
|
532
|
-
@if (isEmpty() && !loading) {
|
|
560
|
+
@if (isEmpty() && !loading()) {
|
|
533
561
|
<div [pBind]="ptm('emptyMessage')" [class]="cx('emptyMessage')">
|
|
534
562
|
@if (!emptymessageTemplate()) {
|
|
535
|
-
{{ emptyMessageLabel }}
|
|
563
|
+
{{ emptyMessageLabel() }}
|
|
536
564
|
} @else {
|
|
537
565
|
<ng-template [ngTemplateOutlet]="empty"></ng-template>
|
|
538
566
|
}
|
|
@@ -540,26 +568,26 @@ class DataView extends BaseComponent {
|
|
|
540
568
|
</div>
|
|
541
569
|
}
|
|
542
570
|
</div>
|
|
543
|
-
@if (paginator && (paginatorPosition === 'bottom' || paginatorPosition == 'both')) {
|
|
571
|
+
@if (paginator() && (paginatorPosition() === 'bottom' || paginatorPosition() == 'both')) {
|
|
544
572
|
<p-paginator
|
|
545
|
-
[rows]="
|
|
546
|
-
[first]="
|
|
547
|
-
[totalRecords]="
|
|
548
|
-
[pageLinkSize]="pageLinks"
|
|
549
|
-
[alwaysShow]="alwaysShowPaginator"
|
|
573
|
+
[rows]="_rows()"
|
|
574
|
+
[first]="_first()"
|
|
575
|
+
[totalRecords]="_totalRecords()"
|
|
576
|
+
[pageLinkSize]="pageLinks()"
|
|
577
|
+
[alwaysShow]="alwaysShowPaginator()"
|
|
550
578
|
(onPageChange)="paginate($event)"
|
|
551
|
-
[rowsPerPageOptions]="rowsPerPageOptions"
|
|
552
|
-
[appendTo]="paginatorDropdownAppendTo"
|
|
553
|
-
[dropdownScrollHeight]="paginatorDropdownScrollHeight"
|
|
579
|
+
[rowsPerPageOptions]="rowsPerPageOptions()"
|
|
580
|
+
[appendTo]="paginatorDropdownAppendTo()"
|
|
581
|
+
[dropdownScrollHeight]="paginatorDropdownScrollHeight()"
|
|
554
582
|
[templateLeft]="paginatorleft()"
|
|
555
583
|
[templateRight]="paginatorright()"
|
|
556
|
-
[currentPageReportTemplate]="currentPageReportTemplate"
|
|
557
|
-
[showFirstLastIcon]="showFirstLastIcon"
|
|
584
|
+
[currentPageReportTemplate]="currentPageReportTemplate()"
|
|
585
|
+
[showFirstLastIcon]="showFirstLastIcon()"
|
|
558
586
|
[dropdownItemTemplate]="paginatordropdownitem()"
|
|
559
|
-
[showCurrentPageReport]="showCurrentPageReport"
|
|
560
|
-
[showJumpToPageDropdown]="showJumpToPageDropdown"
|
|
561
|
-
[showPageLinks]="showPageLinks"
|
|
562
|
-
[
|
|
587
|
+
[showCurrentPageReport]="showCurrentPageReport()"
|
|
588
|
+
[showJumpToPageDropdown]="showJumpToPageDropdown()"
|
|
589
|
+
[showPageLinks]="showPageLinks()"
|
|
590
|
+
[class]="cn(cx('pcPaginator', { position: 'bottom' }), paginatorStyleClass())"
|
|
563
591
|
[pt]="ptm('pcPaginator')"
|
|
564
592
|
[unstyled]="unstyled()"
|
|
565
593
|
></p-paginator>
|
|
@@ -570,20 +598,19 @@ class DataView extends BaseComponent {
|
|
|
570
598
|
<ng-container *ngTemplateOutlet="footerTemplate()"></ng-container>
|
|
571
599
|
</div>
|
|
572
600
|
}
|
|
573
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: PaginatorModule }, { kind: "component", type: i3.Paginator, selector: "p-paginator", inputs: ["pageLinkSize", "
|
|
601
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: PaginatorModule }, { kind: "component", type: i3.Paginator, selector: "p-paginator", inputs: ["pageLinkSize", "alwaysShow", "templateLeft", "templateRight", "dropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showFirstLastIcon", "totalRecords", "rows", "rowsPerPageOptions", "showJumpToPageDropdown", "showJumpToPageInput", "jumpToPageItemTemplate", "showPageLinks", "locale", "dropdownItemTemplate", "first", "appendTo"], outputs: ["onPageChange"] }, { kind: "component", type: SpinnerIcon, selector: "[data-p-icon=\"spinner\"]" }, { kind: "ngmodule", type: SharedModule }, { kind: "directive", type: Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "pipe", type: i2.SlicePipe, name: "slice" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
574
602
|
}
|
|
575
603
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: DataView, decorators: [{
|
|
576
604
|
type: Component,
|
|
577
605
|
args: [{
|
|
578
606
|
selector: 'p-dataView, p-dataview, p-data-view',
|
|
579
|
-
standalone: true,
|
|
580
607
|
imports: [CommonModule, PaginatorModule, SpinnerIcon, SharedModule, Bind],
|
|
581
608
|
template: `
|
|
582
|
-
@if (loading) {
|
|
609
|
+
@if (loading()) {
|
|
583
610
|
<div [pBind]="ptm('loading')" [class]="cx('loading')">
|
|
584
611
|
<div [pBind]="ptm('loadingOverlay')" [class]="cx('loadingOverlay')">
|
|
585
|
-
@if (loadingIcon) {
|
|
586
|
-
<i [class]="cn(cx('loadingIcon'), 'pi-spin' + loadingIcon)"></i>
|
|
612
|
+
@if (loadingIcon()) {
|
|
613
|
+
<i [class]="cn(cx('loadingIcon'), 'pi-spin' + loadingIcon())"></i>
|
|
587
614
|
} @else {
|
|
588
615
|
<ng-container>
|
|
589
616
|
<svg [pBind]="ptm('loadingIcon')" data-p-icon="spinner" [spin]="true" [class]="cx('loadingIcon')" />
|
|
@@ -599,55 +626,55 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
599
626
|
<ng-container *ngTemplateOutlet="headerTemplate()"></ng-container>
|
|
600
627
|
</div>
|
|
601
628
|
}
|
|
602
|
-
@if (paginator && (paginatorPosition === 'top' || paginatorPosition == 'both')) {
|
|
629
|
+
@if (paginator() && (paginatorPosition() === 'top' || paginatorPosition() == 'both')) {
|
|
603
630
|
<p-paginator
|
|
604
|
-
[rows]="
|
|
605
|
-
[first]="
|
|
606
|
-
[totalRecords]="
|
|
607
|
-
[pageLinkSize]="pageLinks"
|
|
608
|
-
[alwaysShow]="alwaysShowPaginator"
|
|
631
|
+
[rows]="_rows()"
|
|
632
|
+
[first]="_first()"
|
|
633
|
+
[totalRecords]="_totalRecords()"
|
|
634
|
+
[pageLinkSize]="pageLinks()"
|
|
635
|
+
[alwaysShow]="alwaysShowPaginator()"
|
|
609
636
|
(onPageChange)="paginate($event)"
|
|
610
|
-
[rowsPerPageOptions]="rowsPerPageOptions"
|
|
611
|
-
[appendTo]="paginatorDropdownAppendTo"
|
|
612
|
-
[dropdownScrollHeight]="paginatorDropdownScrollHeight"
|
|
637
|
+
[rowsPerPageOptions]="rowsPerPageOptions()"
|
|
638
|
+
[appendTo]="paginatorDropdownAppendTo()"
|
|
639
|
+
[dropdownScrollHeight]="paginatorDropdownScrollHeight()"
|
|
613
640
|
[templateLeft]="paginatorleft()"
|
|
614
641
|
[templateRight]="paginatorright()"
|
|
615
|
-
[currentPageReportTemplate]="currentPageReportTemplate"
|
|
616
|
-
[showFirstLastIcon]="showFirstLastIcon"
|
|
642
|
+
[currentPageReportTemplate]="currentPageReportTemplate()"
|
|
643
|
+
[showFirstLastIcon]="showFirstLastIcon()"
|
|
617
644
|
[dropdownItemTemplate]="paginatordropdownitem()"
|
|
618
|
-
[showCurrentPageReport]="showCurrentPageReport"
|
|
619
|
-
[showJumpToPageDropdown]="showJumpToPageDropdown"
|
|
620
|
-
[showPageLinks]="showPageLinks"
|
|
621
|
-
[
|
|
645
|
+
[showCurrentPageReport]="showCurrentPageReport()"
|
|
646
|
+
[showJumpToPageDropdown]="showJumpToPageDropdown()"
|
|
647
|
+
[showPageLinks]="showPageLinks()"
|
|
648
|
+
[class]="cn(cx('pcPaginator', { position: 'top' }), paginatorStyleClass())"
|
|
622
649
|
[pt]="ptm('pcPaginator')"
|
|
623
650
|
[unstyled]="unstyled()"
|
|
624
651
|
></p-paginator>
|
|
625
652
|
}
|
|
626
653
|
<div [pBind]="ptm('content')" [class]="cx('content')">
|
|
627
|
-
@if (layout === 'list') {
|
|
654
|
+
@if (layout() === 'list') {
|
|
628
655
|
<ng-container
|
|
629
656
|
*ngTemplateOutlet="
|
|
630
657
|
listTemplate();
|
|
631
658
|
context: {
|
|
632
|
-
$implicit: paginator ? (filteredValue || value | slice: (lazy ? 0 :
|
|
659
|
+
$implicit: paginator() ? (filteredValue() || value() | slice: (lazy() ? 0 : _first()) : (lazy() ? 0 : _first()) + _rows()) : filteredValue() || value()
|
|
633
660
|
}
|
|
634
661
|
"
|
|
635
662
|
></ng-container>
|
|
636
663
|
}
|
|
637
|
-
@if (layout === 'grid') {
|
|
664
|
+
@if (layout() === 'grid') {
|
|
638
665
|
<ng-container
|
|
639
666
|
*ngTemplateOutlet="
|
|
640
667
|
gridTemplate();
|
|
641
668
|
context: {
|
|
642
|
-
$implicit: paginator ? (filteredValue || value | slice: (lazy ? 0 :
|
|
669
|
+
$implicit: paginator() ? (filteredValue() || value() | slice: (lazy() ? 0 : _first()) : (lazy() ? 0 : _first()) + _rows()) : filteredValue() || value()
|
|
643
670
|
}
|
|
644
671
|
"
|
|
645
672
|
></ng-container>
|
|
646
673
|
}
|
|
647
|
-
@if (isEmpty() && !loading) {
|
|
674
|
+
@if (isEmpty() && !loading()) {
|
|
648
675
|
<div [pBind]="ptm('emptyMessage')" [class]="cx('emptyMessage')">
|
|
649
676
|
@if (!emptymessageTemplate()) {
|
|
650
|
-
{{ emptyMessageLabel }}
|
|
677
|
+
{{ emptyMessageLabel() }}
|
|
651
678
|
} @else {
|
|
652
679
|
<ng-template [ngTemplateOutlet]="empty"></ng-template>
|
|
653
680
|
}
|
|
@@ -655,26 +682,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
655
682
|
</div>
|
|
656
683
|
}
|
|
657
684
|
</div>
|
|
658
|
-
@if (paginator && (paginatorPosition === 'bottom' || paginatorPosition == 'both')) {
|
|
685
|
+
@if (paginator() && (paginatorPosition() === 'bottom' || paginatorPosition() == 'both')) {
|
|
659
686
|
<p-paginator
|
|
660
|
-
[rows]="
|
|
661
|
-
[first]="
|
|
662
|
-
[totalRecords]="
|
|
663
|
-
[pageLinkSize]="pageLinks"
|
|
664
|
-
[alwaysShow]="alwaysShowPaginator"
|
|
687
|
+
[rows]="_rows()"
|
|
688
|
+
[first]="_first()"
|
|
689
|
+
[totalRecords]="_totalRecords()"
|
|
690
|
+
[pageLinkSize]="pageLinks()"
|
|
691
|
+
[alwaysShow]="alwaysShowPaginator()"
|
|
665
692
|
(onPageChange)="paginate($event)"
|
|
666
|
-
[rowsPerPageOptions]="rowsPerPageOptions"
|
|
667
|
-
[appendTo]="paginatorDropdownAppendTo"
|
|
668
|
-
[dropdownScrollHeight]="paginatorDropdownScrollHeight"
|
|
693
|
+
[rowsPerPageOptions]="rowsPerPageOptions()"
|
|
694
|
+
[appendTo]="paginatorDropdownAppendTo()"
|
|
695
|
+
[dropdownScrollHeight]="paginatorDropdownScrollHeight()"
|
|
669
696
|
[templateLeft]="paginatorleft()"
|
|
670
697
|
[templateRight]="paginatorright()"
|
|
671
|
-
[currentPageReportTemplate]="currentPageReportTemplate"
|
|
672
|
-
[showFirstLastIcon]="showFirstLastIcon"
|
|
698
|
+
[currentPageReportTemplate]="currentPageReportTemplate()"
|
|
699
|
+
[showFirstLastIcon]="showFirstLastIcon()"
|
|
673
700
|
[dropdownItemTemplate]="paginatordropdownitem()"
|
|
674
|
-
[showCurrentPageReport]="showCurrentPageReport"
|
|
675
|
-
[showJumpToPageDropdown]="showJumpToPageDropdown"
|
|
676
|
-
[showPageLinks]="showPageLinks"
|
|
677
|
-
[
|
|
701
|
+
[showCurrentPageReport]="showCurrentPageReport()"
|
|
702
|
+
[showJumpToPageDropdown]="showJumpToPageDropdown()"
|
|
703
|
+
[showPageLinks]="showPageLinks()"
|
|
704
|
+
[class]="cn(cx('pcPaginator', { position: 'bottom' }), paginatorStyleClass())"
|
|
678
705
|
[pt]="ptm('pcPaginator')"
|
|
679
706
|
[unstyled]="unstyled()"
|
|
680
707
|
></p-paginator>
|
|
@@ -690,85 +717,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
690
717
|
encapsulation: ViewEncapsulation.None,
|
|
691
718
|
providers: [DataViewStyle, { provide: DATAVIEW_INSTANCE, useExisting: DataView }, { provide: PARENT_INSTANCE, useExisting: DataView }],
|
|
692
719
|
host: {
|
|
693
|
-
'[class]': "
|
|
720
|
+
'[class]': "cx('root')"
|
|
694
721
|
},
|
|
695
722
|
hostDirectives: [Bind]
|
|
696
723
|
}]
|
|
697
|
-
}], propDecorators: { paginator: [{
|
|
698
|
-
type: Input,
|
|
699
|
-
args: [{ transform: booleanAttribute }]
|
|
700
|
-
}], rows: [{
|
|
701
|
-
type: Input,
|
|
702
|
-
args: [{ transform: numberAttribute }]
|
|
703
|
-
}], totalRecords: [{
|
|
704
|
-
type: Input,
|
|
705
|
-
args: [{ transform: numberAttribute }]
|
|
706
|
-
}], pageLinks: [{
|
|
707
|
-
type: Input,
|
|
708
|
-
args: [{ transform: numberAttribute }]
|
|
709
|
-
}], rowsPerPageOptions: [{
|
|
710
|
-
type: Input
|
|
711
|
-
}], paginatorPosition: [{
|
|
712
|
-
type: Input
|
|
713
|
-
}], paginatorStyleClass: [{
|
|
714
|
-
type: Input
|
|
715
|
-
}], alwaysShowPaginator: [{
|
|
716
|
-
type: Input,
|
|
717
|
-
args: [{ transform: booleanAttribute }]
|
|
718
|
-
}], paginatorDropdownAppendTo: [{
|
|
719
|
-
type: Input
|
|
720
|
-
}], paginatorDropdownScrollHeight: [{
|
|
721
|
-
type: Input
|
|
722
|
-
}], currentPageReportTemplate: [{
|
|
723
|
-
type: Input
|
|
724
|
-
}], showCurrentPageReport: [{
|
|
725
|
-
type: Input,
|
|
726
|
-
args: [{ transform: booleanAttribute }]
|
|
727
|
-
}], showJumpToPageDropdown: [{
|
|
728
|
-
type: Input,
|
|
729
|
-
args: [{ transform: booleanAttribute }]
|
|
730
|
-
}], showFirstLastIcon: [{
|
|
731
|
-
type: Input,
|
|
732
|
-
args: [{ transform: booleanAttribute }]
|
|
733
|
-
}], showPageLinks: [{
|
|
734
|
-
type: Input,
|
|
735
|
-
args: [{ transform: booleanAttribute }]
|
|
736
|
-
}], lazy: [{
|
|
737
|
-
type: Input,
|
|
738
|
-
args: [{ transform: booleanAttribute }]
|
|
739
|
-
}], lazyLoadOnInit: [{
|
|
740
|
-
type: Input,
|
|
741
|
-
args: [{ transform: booleanAttribute }]
|
|
742
|
-
}], emptyMessage: [{
|
|
743
|
-
type: Input
|
|
744
|
-
}], styleClass: [{
|
|
745
|
-
type: Input
|
|
746
|
-
}], gridStyleClass: [{
|
|
747
|
-
type: Input
|
|
748
|
-
}], trackBy: [{
|
|
749
|
-
type: Input
|
|
750
|
-
}], filterBy: [{
|
|
751
|
-
type: Input
|
|
752
|
-
}], filterLocale: [{
|
|
753
|
-
type: Input
|
|
754
|
-
}], loading: [{
|
|
755
|
-
type: Input,
|
|
756
|
-
args: [{ transform: booleanAttribute }]
|
|
757
|
-
}], loadingIcon: [{
|
|
758
|
-
type: Input
|
|
759
|
-
}], first: [{
|
|
760
|
-
type: Input,
|
|
761
|
-
args: [{ transform: numberAttribute }]
|
|
762
|
-
}], sortField: [{
|
|
763
|
-
type: Input
|
|
764
|
-
}], sortOrder: [{
|
|
765
|
-
type: Input,
|
|
766
|
-
args: [{ transform: numberAttribute }]
|
|
767
|
-
}], value: [{
|
|
768
|
-
type: Input
|
|
769
|
-
}], layout: [{
|
|
770
|
-
type: Input
|
|
771
|
-
}], onLazyLoad: [{ type: i0.Output, args: ["onLazyLoad"] }], onPage: [{ type: i0.Output, args: ["onPage"] }], onSort: [{ type: i0.Output, args: ["onSort"] }], onChangeLayout: [{ type: i0.Output, args: ["onChangeLayout"] }], listTemplate: [{ type: i0.ContentChild, args: ['list', { isSignal: true }] }], gridTemplate: [{ type: i0.ContentChild, args: ['grid', { isSignal: true }] }], headerTemplate: [{ type: i0.ContentChild, args: ['header', { isSignal: true }] }], emptymessageTemplate: [{ type: i0.ContentChild, args: ['emptymessage', { isSignal: true }] }], footerTemplate: [{ type: i0.ContentChild, args: ['footer', { isSignal: true }] }], paginatorleft: [{ type: i0.ContentChild, args: ['paginatorleft', { isSignal: true }] }], paginatorright: [{ type: i0.ContentChild, args: ['paginatorright', { isSignal: true }] }], paginatordropdownitem: [{ type: i0.ContentChild, args: ['paginatordropdownitem', { isSignal: true }] }], loadingicon: [{ type: i0.ContentChild, args: ['loadingicon', { isSignal: true }] }], header: [{ type: i0.ContentChild, args: [i0.forwardRef(() => Header), { isSignal: true }] }], footer: [{ type: i0.ContentChild, args: [i0.forwardRef(() => Footer), { isSignal: true }] }] } });
|
|
724
|
+
}], ctorParameters: () => [], propDecorators: { paginator: [{ type: i0.Input, args: [{ isSignal: true, alias: "paginator", required: false }] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }], totalRecords: [{ type: i0.Input, args: [{ isSignal: true, alias: "totalRecords", required: false }] }], pageLinks: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageLinks", required: false }] }], rowsPerPageOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowsPerPageOptions", required: false }] }], paginatorPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "paginatorPosition", required: false }] }], paginatorStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "paginatorStyleClass", required: false }] }], alwaysShowPaginator: [{ type: i0.Input, args: [{ isSignal: true, alias: "alwaysShowPaginator", 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 }] }], showFirstLastIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showFirstLastIcon", required: false }] }], showPageLinks: [{ type: i0.Input, args: [{ isSignal: true, alias: "showPageLinks", required: false }] }], lazy: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazy", required: false }] }], lazyLoadOnInit: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazyLoadOnInit", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }], gridStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "gridStyleClass", required: false }] }], trackBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "trackBy", required: false }] }], filterBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterBy", required: false }] }], filterLocale: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterLocale", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], loadingIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingIcon", required: false }] }], first: [{ type: i0.Input, args: [{ isSignal: true, alias: "first", required: false }] }], sortField: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortField", required: false }] }], sortOrder: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortOrder", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }], onLazyLoad: [{ type: i0.Output, args: ["onLazyLoad"] }], onPage: [{ type: i0.Output, args: ["onPage"] }], onSort: [{ type: i0.Output, args: ["onSort"] }], onChangeLayout: [{ type: i0.Output, args: ["onChangeLayout"] }], listTemplate: [{ type: i0.ContentChild, args: ['list', { isSignal: true }] }], gridTemplate: [{ type: i0.ContentChild, args: ['grid', { isSignal: true }] }], headerTemplate: [{ type: i0.ContentChild, args: ['header', { isSignal: true }] }], emptymessageTemplate: [{ type: i0.ContentChild, args: ['emptymessage', { isSignal: true }] }], footerTemplate: [{ type: i0.ContentChild, args: ['footer', { isSignal: true }] }], paginatorleft: [{ type: i0.ContentChild, args: ['paginatorleft', { isSignal: true }] }], paginatorright: [{ type: i0.ContentChild, args: ['paginatorright', { isSignal: true }] }], paginatordropdownitem: [{ type: i0.ContentChild, args: ['paginatordropdownitem', { isSignal: true }] }], loadingicon: [{ type: i0.ContentChild, args: ['loadingicon', { isSignal: true }] }], header: [{ type: i0.ContentChild, args: [i0.forwardRef(() => Header), { isSignal: true }] }], footer: [{ type: i0.ContentChild, args: [i0.forwardRef(() => Footer), { isSignal: true }] }] } });
|
|
772
725
|
class DataViewModule {
|
|
773
726
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: DataViewModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
774
727
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.1", ngImport: i0, type: DataViewModule, imports: [DataView, SharedModule], exports: [DataView, SharedModule] });
|