@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,7 @@ export * from '@exhaustive-ui/core/types/paginator';
|
|
|
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,
|
|
5
|
+
import { Injectable, InjectionToken, inject, afterEveryRender, effect, untracked, input, numberAttribute, booleanAttribute, output, contentChild, contentChildren, computed, linkedSignal, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
6
6
|
import * as i3 from '@angular/forms';
|
|
7
7
|
import { FormsModule } from '@angular/forms';
|
|
8
8
|
import * as i4 from '@exhaustive-ui/core/api';
|
|
@@ -162,124 +162,121 @@ class Paginator extends BaseComponent {
|
|
|
162
162
|
componentName = 'Paginator';
|
|
163
163
|
bindDirectiveInstance = inject(Bind, { self: true });
|
|
164
164
|
$pcPaginator = inject(PAGINATOR_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
|
|
165
|
-
|
|
166
|
-
|
|
165
|
+
constructor() {
|
|
166
|
+
super();
|
|
167
|
+
afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root'])));
|
|
168
|
+
effect(() => {
|
|
169
|
+
this.totalRecords();
|
|
170
|
+
untracked(() => this.updateFirst());
|
|
171
|
+
});
|
|
167
172
|
}
|
|
168
173
|
/**
|
|
169
174
|
* Number of page links to display.
|
|
170
175
|
* @group Props
|
|
171
176
|
*/
|
|
172
|
-
pageLinkSize = 5;
|
|
173
|
-
/**
|
|
174
|
-
* Style class of the component.
|
|
175
|
-
* @deprecated since v20.0.0, use `class` instead.
|
|
176
|
-
* @group Props
|
|
177
|
-
*/
|
|
178
|
-
styleClass;
|
|
177
|
+
pageLinkSize = input(5, { ...(ngDevMode ? { debugName: "pageLinkSize" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
179
178
|
/**
|
|
180
179
|
* Whether to show it even there is only one page.
|
|
181
180
|
* @group Props
|
|
182
181
|
*/
|
|
183
|
-
alwaysShow = true;
|
|
184
|
-
/**
|
|
185
|
-
* Target element to attach the 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).
|
|
186
|
-
* @deprecated since v20.0.0. Use `appendTo` instead.
|
|
187
|
-
* @group Props
|
|
188
|
-
*/
|
|
189
|
-
dropdownAppendTo;
|
|
182
|
+
alwaysShow = input(true, { ...(ngDevMode ? { debugName: "alwaysShow" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
190
183
|
/**
|
|
191
184
|
* Template instance to inject into the left side of the paginator.
|
|
192
185
|
* @param {PaginatorTemplateContext} context - Paginator template context.
|
|
193
186
|
* @see {@link PaginatorTemplateContext}
|
|
194
187
|
* @group Props
|
|
195
188
|
*/
|
|
196
|
-
templateLeft
|
|
189
|
+
templateLeft = input(/* @ts-ignore */
|
|
190
|
+
...(ngDevMode ? [undefined, { debugName: "templateLeft" }] : /* istanbul ignore next */ []));
|
|
197
191
|
/**
|
|
198
192
|
* Template instance to inject into the right side of the paginator.
|
|
199
193
|
* @param {PaginatorTemplateContext} context - Paginator template context.
|
|
200
194
|
* @see {@link PaginatorTemplateContext}
|
|
201
195
|
* @group Props
|
|
202
196
|
*/
|
|
203
|
-
templateRight
|
|
197
|
+
templateRight = input(/* @ts-ignore */
|
|
198
|
+
...(ngDevMode ? [undefined, { debugName: "templateRight" }] : /* istanbul ignore next */ []));
|
|
204
199
|
/**
|
|
205
200
|
* Dropdown height of the viewport in pixels, a scrollbar is defined if height of list exceeds this value.
|
|
206
201
|
* @group Props
|
|
207
202
|
*/
|
|
208
|
-
dropdownScrollHeight = '200px'
|
|
203
|
+
dropdownScrollHeight = input('200px', /* @ts-ignore */
|
|
204
|
+
...(ngDevMode ? [{ debugName: "dropdownScrollHeight" }] : /* istanbul ignore next */ []));
|
|
209
205
|
/**
|
|
210
206
|
* Template of the current page report element. Available placeholders are {currentPage},{totalPages},{rows},{first},{last} and {totalRecords}
|
|
211
207
|
* @group Props
|
|
212
208
|
*/
|
|
213
|
-
currentPageReportTemplate = '{currentPage} of {totalPages}'
|
|
209
|
+
currentPageReportTemplate = input('{currentPage} of {totalPages}', /* @ts-ignore */
|
|
210
|
+
...(ngDevMode ? [{ debugName: "currentPageReportTemplate" }] : /* istanbul ignore next */ []));
|
|
214
211
|
/**
|
|
215
212
|
* Whether to display current page report.
|
|
216
213
|
* @group Props
|
|
217
214
|
*/
|
|
218
|
-
showCurrentPageReport;
|
|
215
|
+
showCurrentPageReport = input(undefined, { ...(ngDevMode ? { debugName: "showCurrentPageReport" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
219
216
|
/**
|
|
220
217
|
* When enabled, icons are displayed on paginator to go first and last page.
|
|
221
218
|
* @group Props
|
|
222
219
|
*/
|
|
223
|
-
showFirstLastIcon = true;
|
|
220
|
+
showFirstLastIcon = input(true, { ...(ngDevMode ? { debugName: "showFirstLastIcon" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
224
221
|
/**
|
|
225
222
|
* Number of total records.
|
|
226
223
|
* @group Props
|
|
227
224
|
*/
|
|
228
|
-
totalRecords = 0;
|
|
225
|
+
totalRecords = input(0, { ...(ngDevMode ? { debugName: "totalRecords" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
229
226
|
/**
|
|
230
227
|
* Data count to display per page.
|
|
231
228
|
* @group Props
|
|
232
229
|
*/
|
|
233
|
-
rows = 0;
|
|
230
|
+
rows = input(0, { ...(ngDevMode ? { debugName: "rows" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
234
231
|
/**
|
|
235
232
|
* Array of integer/object values to display inside rows per page dropdown. A object that have 'showAll' key can be added to it to show all data. Exp; [10,20,30,{showAll:'All'}]
|
|
236
233
|
* @group Props
|
|
237
234
|
*/
|
|
238
|
-
rowsPerPageOptions
|
|
235
|
+
rowsPerPageOptions = input(/* @ts-ignore */
|
|
236
|
+
...(ngDevMode ? [undefined, { debugName: "rowsPerPageOptions" }] : /* istanbul ignore next */ []));
|
|
239
237
|
/**
|
|
240
238
|
* Whether to display a dropdown to navigate to any page.
|
|
241
239
|
* @group Props
|
|
242
240
|
*/
|
|
243
|
-
showJumpToPageDropdown;
|
|
241
|
+
showJumpToPageDropdown = input(undefined, { ...(ngDevMode ? { debugName: "showJumpToPageDropdown" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
244
242
|
/**
|
|
245
243
|
* Whether to display a input to navigate to any page.
|
|
246
244
|
* @group Props
|
|
247
245
|
*/
|
|
248
|
-
showJumpToPageInput;
|
|
246
|
+
showJumpToPageInput = input(undefined, { ...(ngDevMode ? { debugName: "showJumpToPageInput" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
249
247
|
/**
|
|
250
248
|
* Template instance to inject into the jump to page dropdown item inside in the paginator.
|
|
251
249
|
* @param {PaginatorDropdownItemTemplateContext} context - dropdown item context.
|
|
252
250
|
* @see {@link PaginatorDropdownItemTemplateContext}
|
|
253
251
|
* @group Props
|
|
254
252
|
*/
|
|
255
|
-
jumpToPageItemTemplate
|
|
253
|
+
jumpToPageItemTemplate = input(/* @ts-ignore */
|
|
254
|
+
...(ngDevMode ? [undefined, { debugName: "jumpToPageItemTemplate" }] : /* istanbul ignore next */ []));
|
|
256
255
|
/**
|
|
257
256
|
* Whether to show page links.
|
|
258
257
|
* @group Props
|
|
259
258
|
*/
|
|
260
|
-
showPageLinks = true;
|
|
259
|
+
showPageLinks = input(true, { ...(ngDevMode ? { debugName: "showPageLinks" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
261
260
|
/**
|
|
262
261
|
* Locale to be used in formatting.
|
|
263
262
|
* @group Props
|
|
264
263
|
*/
|
|
265
|
-
locale
|
|
264
|
+
locale = input(/* @ts-ignore */
|
|
265
|
+
...(ngDevMode ? [undefined, { debugName: "locale" }] : /* istanbul ignore next */ []));
|
|
266
266
|
/**
|
|
267
267
|
* Template instance to inject into the rows per page dropdown item inside in the paginator.
|
|
268
268
|
* @param {PaginatorDropdownItemTemplateContext} context - dropdown item context.
|
|
269
269
|
* @see {@link PaginatorDropdownItemTemplateContext}
|
|
270
270
|
* @group Props
|
|
271
271
|
*/
|
|
272
|
-
dropdownItemTemplate
|
|
272
|
+
dropdownItemTemplate = input(/* @ts-ignore */
|
|
273
|
+
...(ngDevMode ? [undefined, { debugName: "dropdownItemTemplate" }] : /* istanbul ignore next */ []));
|
|
273
274
|
/**
|
|
274
275
|
* Zero-relative number of the first row to be displayed.
|
|
275
276
|
* @group Props
|
|
276
277
|
*/
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
}
|
|
280
|
-
set first(val) {
|
|
281
|
-
this._first = val;
|
|
282
|
-
}
|
|
278
|
+
first = input(0, /* @ts-ignore */
|
|
279
|
+
...(ngDevMode ? [{ debugName: "first" }] : /* istanbul ignore next */ []));
|
|
283
280
|
/**
|
|
284
281
|
* Target element to attach the 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).
|
|
285
282
|
* @defaultValue 'self'
|
|
@@ -320,47 +317,84 @@ class Paginator extends BaseComponent {
|
|
|
320
317
|
nextPageLinkIconTemplate = contentChild('nextpagelinkicon', { ...(ngDevMode ? { debugName: "nextPageLinkIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
321
318
|
templates = contentChildren(PrimeTemplate, /* @ts-ignore */
|
|
322
319
|
...(ngDevMode ? [{ debugName: "templates" }] : /* istanbul ignore next */ []));
|
|
323
|
-
_dropdownIconTemplate
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
320
|
+
_dropdownIconTemplate = computed(() => this.templates()
|
|
321
|
+
.filter((item) => item.getType() === 'dropdownicon')
|
|
322
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
323
|
+
...(ngDevMode ? [{ debugName: "_dropdownIconTemplate" }] : /* istanbul ignore next */ []));
|
|
324
|
+
_firstPageLinkIconTemplate = computed(() => this.templates()
|
|
325
|
+
.filter((item) => item.getType() === 'firstpagelinkicon')
|
|
326
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
327
|
+
...(ngDevMode ? [{ debugName: "_firstPageLinkIconTemplate" }] : /* istanbul ignore next */ []));
|
|
328
|
+
_previousPageLinkIconTemplate = computed(() => this.templates()
|
|
329
|
+
.filter((item) => item.getType() === 'previouspagelinkicon')
|
|
330
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
331
|
+
...(ngDevMode ? [{ debugName: "_previousPageLinkIconTemplate" }] : /* istanbul ignore next */ []));
|
|
332
|
+
_lastPageLinkIconTemplate = computed(() => this.templates()
|
|
333
|
+
.filter((item) => item.getType() === 'lastpagelinkicon')
|
|
334
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
335
|
+
...(ngDevMode ? [{ debugName: "_lastPageLinkIconTemplate" }] : /* istanbul ignore next */ []));
|
|
336
|
+
_nextPageLinkIconTemplate = computed(() => this.templates()
|
|
337
|
+
.filter((item) => item.getType() === 'nextpagelinkicon')
|
|
338
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
339
|
+
...(ngDevMode ? [{ debugName: "_nextPageLinkIconTemplate" }] : /* istanbul ignore next */ []));
|
|
340
|
+
pageLinks = computed(() => {
|
|
341
|
+
const pageLinks = [];
|
|
342
|
+
let boundaries = this.calculatePageLinkBoundaries(), start = boundaries[0], end = boundaries[1];
|
|
343
|
+
for (let i = start; i <= end; i++) {
|
|
344
|
+
pageLinks.push(i + 1);
|
|
345
|
+
}
|
|
346
|
+
return pageLinks;
|
|
347
|
+
}, /* @ts-ignore */
|
|
348
|
+
...(ngDevMode ? [{ debugName: "pageLinks" }] : /* istanbul ignore next */ []));
|
|
349
|
+
pageItems = computed(() => {
|
|
350
|
+
if (!this.showJumpToPageDropdown()) {
|
|
351
|
+
return undefined;
|
|
352
|
+
}
|
|
353
|
+
const pageItems = [];
|
|
354
|
+
for (let i = 0; i < this.getPageCount(); i++) {
|
|
355
|
+
pageItems.push({ label: String(i + 1), value: i });
|
|
356
|
+
}
|
|
357
|
+
return pageItems;
|
|
358
|
+
}, /* @ts-ignore */
|
|
359
|
+
...(ngDevMode ? [{ debugName: "pageItems" }] : /* istanbul ignore next */ []));
|
|
360
|
+
rowsPerPageItems = computed(() => {
|
|
361
|
+
const rowsPerPageOptions = this.rowsPerPageOptions();
|
|
362
|
+
if (!rowsPerPageOptions) {
|
|
363
|
+
return undefined;
|
|
364
|
+
}
|
|
365
|
+
const rowsPerPageItems = [];
|
|
366
|
+
let showAllItem = null;
|
|
367
|
+
for (let opt of rowsPerPageOptions) {
|
|
368
|
+
if (typeof opt == 'object' && opt['showAll']) {
|
|
369
|
+
showAllItem = { label: opt['showAll'], value: this.totalRecords() };
|
|
370
|
+
}
|
|
371
|
+
else {
|
|
372
|
+
rowsPerPageItems.push({ label: String(this.getLocalization(opt)), value: opt });
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
if (showAllItem) {
|
|
376
|
+
rowsPerPageItems.push(showAllItem);
|
|
377
|
+
}
|
|
378
|
+
return rowsPerPageItems;
|
|
379
|
+
}, /* @ts-ignore */
|
|
380
|
+
...(ngDevMode ? [{ debugName: "rowsPerPageItems" }] : /* istanbul ignore next */ []));
|
|
381
|
+
paginatorState = computed(() => ({
|
|
382
|
+
page: this.getPage(),
|
|
383
|
+
pageCount: this.getPageCount(),
|
|
384
|
+
rows: this._rows(),
|
|
385
|
+
first: this._first(),
|
|
386
|
+
totalRecords: this.totalRecords()
|
|
387
|
+
}), /* @ts-ignore */
|
|
388
|
+
...(ngDevMode ? [{ debugName: "paginatorState" }] : /* istanbul ignore next */ []));
|
|
389
|
+
_first = linkedSignal(() => this.first(), /* @ts-ignore */
|
|
390
|
+
...(ngDevMode ? [{ debugName: "_first" }] : /* istanbul ignore next */ []));
|
|
391
|
+
_rows = linkedSignal(() => this.rows(), /* @ts-ignore */
|
|
392
|
+
...(ngDevMode ? [{ debugName: "_rows" }] : /* istanbul ignore next */ []));
|
|
334
393
|
_componentStyle = inject(PaginatorStyle);
|
|
335
394
|
$appendTo = computed(() => this.appendTo() || this.config.overlayAppendTo(), /* @ts-ignore */
|
|
336
395
|
...(ngDevMode ? [{ debugName: "$appendTo" }] : /* istanbul ignore next */ []));
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
}
|
|
340
|
-
onInit() {
|
|
341
|
-
this.updatePaginatorState();
|
|
342
|
-
}
|
|
343
|
-
onAfterContentInit() {
|
|
344
|
-
this.templates().forEach((item) => {
|
|
345
|
-
switch (item.getType()) {
|
|
346
|
-
case 'dropdownicon':
|
|
347
|
-
this._dropdownIconTemplate = item.template;
|
|
348
|
-
break;
|
|
349
|
-
case 'firstpagelinkicon':
|
|
350
|
-
this._firstPageLinkIconTemplate = item.template;
|
|
351
|
-
break;
|
|
352
|
-
case 'previouspagelinkicon':
|
|
353
|
-
this._previousPageLinkIconTemplate = item.template;
|
|
354
|
-
break;
|
|
355
|
-
case 'lastpagelinkicon':
|
|
356
|
-
this._lastPageLinkIconTemplate = item.template;
|
|
357
|
-
break;
|
|
358
|
-
case 'nextpagelinkicon':
|
|
359
|
-
this._nextPageLinkIconTemplate = item.template;
|
|
360
|
-
break;
|
|
361
|
-
}
|
|
362
|
-
});
|
|
363
|
-
}
|
|
396
|
+
display = computed(() => (this.alwaysShow() || this.pageLinks().length > 1 ? null : 'none'), /* @ts-ignore */
|
|
397
|
+
...(ngDevMode ? [{ debugName: "display" }] : /* istanbul ignore next */ []));
|
|
364
398
|
getAriaLabel(labelType) {
|
|
365
399
|
return this.config.translation.aria ? this.config.translation.aria[labelType] : undefined;
|
|
366
400
|
}
|
|
@@ -368,7 +402,7 @@ class Paginator extends BaseComponent {
|
|
|
368
402
|
return this.config.translation.aria ? this.config.translation.aria.pageLabel?.replace(/{page}/g, `${value}`) : undefined;
|
|
369
403
|
}
|
|
370
404
|
getLocalization(digit) {
|
|
371
|
-
const numerals = [...new Intl.NumberFormat(this.locale, { useGrouping: false }).format(9876543210)].reverse();
|
|
405
|
+
const numerals = [...new Intl.NumberFormat(this.locale(), { useGrouping: false }).format(9876543210)].reverse();
|
|
372
406
|
const index = new Map(numerals.map((d, i) => [i, d]));
|
|
373
407
|
if (digit > 9) {
|
|
374
408
|
const numbers = String(digit).split('');
|
|
@@ -378,101 +412,43 @@ class Paginator extends BaseComponent {
|
|
|
378
412
|
return index.get(digit);
|
|
379
413
|
}
|
|
380
414
|
}
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
this._first = simpleChange.first.currentValue;
|
|
390
|
-
this.updatePageLinks();
|
|
391
|
-
this.updatePaginatorState();
|
|
392
|
-
}
|
|
393
|
-
if (simpleChange.rows) {
|
|
394
|
-
this.updatePageLinks();
|
|
395
|
-
this.updatePaginatorState();
|
|
396
|
-
}
|
|
397
|
-
if (simpleChange.rowsPerPageOptions) {
|
|
398
|
-
this.updateRowsPerPageOptions();
|
|
399
|
-
}
|
|
400
|
-
if (simpleChange.pageLinkSize) {
|
|
401
|
-
this.updatePageLinks();
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
updateRowsPerPageOptions() {
|
|
405
|
-
if (this.rowsPerPageOptions) {
|
|
406
|
-
this.rowsPerPageItems = [];
|
|
407
|
-
let showAllItem = null;
|
|
408
|
-
for (let opt of this.rowsPerPageOptions) {
|
|
409
|
-
if (typeof opt == 'object' && opt['showAll']) {
|
|
410
|
-
showAllItem = { label: opt['showAll'], value: this.totalRecords };
|
|
411
|
-
}
|
|
412
|
-
else {
|
|
413
|
-
this.rowsPerPageItems.push({ label: String(this.getLocalization(opt)), value: opt });
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
if (showAllItem) {
|
|
417
|
-
this.rowsPerPageItems.push(showAllItem);
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
isFirstPage() {
|
|
422
|
-
return this.getPage() === 0;
|
|
423
|
-
}
|
|
424
|
-
isLastPage() {
|
|
425
|
-
return this.getPage() === this.getPageCount() - 1;
|
|
426
|
-
}
|
|
427
|
-
getPageCount() {
|
|
428
|
-
return Math.ceil(this.totalRecords / this.rows);
|
|
429
|
-
}
|
|
430
|
-
calculatePageLinkBoundaries() {
|
|
431
|
-
let numberOfPages = this.getPageCount(), visiblePages = Math.min(this.pageLinkSize, numberOfPages);
|
|
415
|
+
isFirstPage = computed(() => this.getPage() === 0, /* @ts-ignore */
|
|
416
|
+
...(ngDevMode ? [{ debugName: "isFirstPage" }] : /* istanbul ignore next */ []));
|
|
417
|
+
isLastPage = computed(() => this.getPage() === this.getPageCount() - 1, /* @ts-ignore */
|
|
418
|
+
...(ngDevMode ? [{ debugName: "isLastPage" }] : /* istanbul ignore next */ []));
|
|
419
|
+
getPageCount = computed(() => Math.ceil(this.totalRecords() / this._rows()), /* @ts-ignore */
|
|
420
|
+
...(ngDevMode ? [{ debugName: "getPageCount" }] : /* istanbul ignore next */ []));
|
|
421
|
+
calculatePageLinkBoundaries = computed(() => {
|
|
422
|
+
let numberOfPages = this.getPageCount(), visiblePages = Math.min(this.pageLinkSize(), numberOfPages);
|
|
432
423
|
//calculate range, keep current in middle if necessary
|
|
433
424
|
let start = Math.max(0, Math.ceil(this.getPage() - visiblePages / 2)), end = Math.min(numberOfPages - 1, start + visiblePages - 1);
|
|
434
425
|
//check when approaching to last page
|
|
435
|
-
var delta = this.pageLinkSize - (end - start + 1);
|
|
426
|
+
var delta = this.pageLinkSize() - (end - start + 1);
|
|
436
427
|
start = Math.max(0, start - delta);
|
|
437
428
|
return [start, end];
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
this.pageLinks = [];
|
|
441
|
-
let boundaries = this.calculatePageLinkBoundaries(), start = boundaries[0], end = boundaries[1];
|
|
442
|
-
for (let i = start; i <= end; i++) {
|
|
443
|
-
this.pageLinks.push(i + 1);
|
|
444
|
-
}
|
|
445
|
-
if (this.showJumpToPageDropdown) {
|
|
446
|
-
this.pageItems = [];
|
|
447
|
-
for (let i = 0; i < this.getPageCount(); i++) {
|
|
448
|
-
this.pageItems.push({ label: String(i + 1), value: i });
|
|
449
|
-
}
|
|
450
|
-
}
|
|
451
|
-
}
|
|
429
|
+
}, /* @ts-ignore */
|
|
430
|
+
...(ngDevMode ? [{ debugName: "calculatePageLinkBoundaries" }] : /* istanbul ignore next */ []));
|
|
452
431
|
changePage(p) {
|
|
453
432
|
var pc = this.getPageCount();
|
|
454
433
|
if (p >= 0 && p < pc) {
|
|
455
|
-
this._first
|
|
434
|
+
this._first.set(this._rows() * p);
|
|
456
435
|
var state = {
|
|
457
436
|
page: p,
|
|
458
|
-
first: this.
|
|
459
|
-
rows: this.
|
|
437
|
+
first: this._first(),
|
|
438
|
+
rows: this._rows(),
|
|
460
439
|
pageCount: pc
|
|
461
440
|
};
|
|
462
|
-
this.updatePageLinks();
|
|
463
441
|
this.onPageChange.emit(state);
|
|
464
|
-
this.updatePaginatorState();
|
|
465
442
|
}
|
|
466
443
|
}
|
|
467
444
|
updateFirst() {
|
|
468
445
|
const page = this.getPage();
|
|
469
|
-
if (page > 0 && this.totalRecords && this.
|
|
446
|
+
if (page > 0 && this.totalRecords() && this._first() >= this.totalRecords()) {
|
|
470
447
|
Promise.resolve(null).then(() => this.changePage(page - 1));
|
|
471
448
|
}
|
|
472
449
|
}
|
|
473
|
-
getPage()
|
|
474
|
-
|
|
475
|
-
}
|
|
450
|
+
getPage = computed(() => Math.floor(this._first() / this._rows()), /* @ts-ignore */
|
|
451
|
+
...(ngDevMode ? [{ debugName: "getPage" }] : /* istanbul ignore next */ []));
|
|
476
452
|
changePageToFirst(event) {
|
|
477
453
|
if (!this.isFirstPage()) {
|
|
478
454
|
this.changePage(0);
|
|
@@ -503,65 +479,53 @@ class Paginator extends BaseComponent {
|
|
|
503
479
|
onPageDropdownChange(event) {
|
|
504
480
|
this.changePage(event.value);
|
|
505
481
|
}
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
}
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
get currentPageReport() {
|
|
522
|
-
return this.currentPageReportTemplate
|
|
523
|
-
.replace('{currentPage}', String(this.currentPage()))
|
|
524
|
-
.replace('{totalPages}', String(this.getPageCount()))
|
|
525
|
-
.replace('{first}', String(this.totalRecords > 0 ? this._first + 1 : 0))
|
|
526
|
-
.replace('{last}', String(Math.min(this._first + this.rows, this.totalRecords)))
|
|
527
|
-
.replace('{rows}', String(this.rows))
|
|
528
|
-
.replace('{totalRecords}', String(this.totalRecords));
|
|
529
|
-
}
|
|
530
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Paginator, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
531
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: Paginator, isStandalone: true, selector: "p-paginator", inputs: { pageLinkSize: { classPropertyName: "pageLinkSize", publicName: "pageLinkSize", isSignal: false, isRequired: false, transformFunction: numberAttribute }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: false, isRequired: false, transformFunction: null }, alwaysShow: { classPropertyName: "alwaysShow", publicName: "alwaysShow", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, dropdownAppendTo: { classPropertyName: "dropdownAppendTo", publicName: "dropdownAppendTo", isSignal: false, isRequired: false, transformFunction: null }, templateLeft: { classPropertyName: "templateLeft", publicName: "templateLeft", isSignal: false, isRequired: false, transformFunction: null }, templateRight: { classPropertyName: "templateRight", publicName: "templateRight", isSignal: false, isRequired: false, transformFunction: null }, dropdownScrollHeight: { classPropertyName: "dropdownScrollHeight", publicName: "dropdownScrollHeight", isSignal: false, isRequired: false, transformFunction: null }, currentPageReportTemplate: { classPropertyName: "currentPageReportTemplate", publicName: "currentPageReportTemplate", isSignal: false, isRequired: false, transformFunction: null }, showCurrentPageReport: { classPropertyName: "showCurrentPageReport", publicName: "showCurrentPageReport", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, showFirstLastIcon: { classPropertyName: "showFirstLastIcon", publicName: "showFirstLastIcon", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, totalRecords: { classPropertyName: "totalRecords", publicName: "totalRecords", isSignal: false, isRequired: false, transformFunction: numberAttribute }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: false, isRequired: false, transformFunction: numberAttribute }, rowsPerPageOptions: { classPropertyName: "rowsPerPageOptions", publicName: "rowsPerPageOptions", isSignal: false, isRequired: false, transformFunction: null }, showJumpToPageDropdown: { classPropertyName: "showJumpToPageDropdown", publicName: "showJumpToPageDropdown", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, showJumpToPageInput: { classPropertyName: "showJumpToPageInput", publicName: "showJumpToPageInput", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, jumpToPageItemTemplate: { classPropertyName: "jumpToPageItemTemplate", publicName: "jumpToPageItemTemplate", isSignal: false, isRequired: false, transformFunction: null }, showPageLinks: { classPropertyName: "showPageLinks", publicName: "showPageLinks", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: false, isRequired: false, transformFunction: null }, dropdownItemTemplate: { classPropertyName: "dropdownItemTemplate", publicName: "dropdownItemTemplate", isSignal: false, isRequired: false, transformFunction: null }, first: { classPropertyName: "first", publicName: "first", isSignal: false, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onPageChange: "onPageChange" }, host: { properties: { "class": "cn(cx('paginator'), styleClass)", "style.display": "this.display" } }, providers: [PaginatorStyle, { provide: PAGINATOR_INSTANCE, useExisting: Paginator }, { provide: PARENT_INSTANCE, useExisting: Paginator }], queries: [{ propertyName: "dropdownIconTemplate", first: true, predicate: ["dropdownicon"], isSignal: true }, { propertyName: "firstPageLinkIconTemplate", first: true, predicate: ["firstpagelinkicon"], isSignal: true }, { propertyName: "previousPageLinkIconTemplate", first: true, predicate: ["previouspagelinkicon"], isSignal: true }, { propertyName: "lastPageLinkIconTemplate", first: true, predicate: ["lastpagelinkicon"], isSignal: true }, { propertyName: "nextPageLinkIconTemplate", first: true, predicate: ["nextpagelinkicon"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
532
|
-
@if (templateLeft) {
|
|
482
|
+
empty = computed(() => this.getPageCount() === 0, /* @ts-ignore */
|
|
483
|
+
...(ngDevMode ? [{ debugName: "empty" }] : /* istanbul ignore next */ []));
|
|
484
|
+
currentPage = computed(() => (this.getPageCount() > 0 ? this.getPage() + 1 : 0), /* @ts-ignore */
|
|
485
|
+
...(ngDevMode ? [{ debugName: "currentPage" }] : /* istanbul ignore next */ []));
|
|
486
|
+
currentPageReport = computed(() => this.currentPageReportTemplate()
|
|
487
|
+
.replace('{currentPage}', String(this.currentPage()))
|
|
488
|
+
.replace('{totalPages}', String(this.getPageCount()))
|
|
489
|
+
.replace('{first}', String(this.totalRecords() > 0 ? this._first() + 1 : 0))
|
|
490
|
+
.replace('{last}', String(Math.min(this._first() + this._rows(), this.totalRecords())))
|
|
491
|
+
.replace('{rows}', String(this._rows()))
|
|
492
|
+
.replace('{totalRecords}', String(this.totalRecords())), /* @ts-ignore */
|
|
493
|
+
...(ngDevMode ? [{ debugName: "currentPageReport" }] : /* istanbul ignore next */ []));
|
|
494
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Paginator, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
495
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: Paginator, isStandalone: true, selector: "p-paginator", inputs: { pageLinkSize: { classPropertyName: "pageLinkSize", publicName: "pageLinkSize", isSignal: true, isRequired: false, transformFunction: null }, alwaysShow: { classPropertyName: "alwaysShow", publicName: "alwaysShow", isSignal: true, isRequired: false, transformFunction: null }, templateLeft: { classPropertyName: "templateLeft", publicName: "templateLeft", isSignal: true, isRequired: false, transformFunction: null }, templateRight: { classPropertyName: "templateRight", publicName: "templateRight", isSignal: true, isRequired: false, transformFunction: null }, dropdownScrollHeight: { classPropertyName: "dropdownScrollHeight", publicName: "dropdownScrollHeight", 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 }, showFirstLastIcon: { classPropertyName: "showFirstLastIcon", publicName: "showFirstLastIcon", isSignal: true, isRequired: false, transformFunction: null }, totalRecords: { classPropertyName: "totalRecords", publicName: "totalRecords", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, rowsPerPageOptions: { classPropertyName: "rowsPerPageOptions", publicName: "rowsPerPageOptions", 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 }, jumpToPageItemTemplate: { classPropertyName: "jumpToPageItemTemplate", publicName: "jumpToPageItemTemplate", isSignal: true, isRequired: false, transformFunction: null }, showPageLinks: { classPropertyName: "showPageLinks", publicName: "showPageLinks", isSignal: true, isRequired: false, transformFunction: null }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, dropdownItemTemplate: { classPropertyName: "dropdownItemTemplate", publicName: "dropdownItemTemplate", isSignal: true, isRequired: false, transformFunction: null }, first: { classPropertyName: "first", publicName: "first", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onPageChange: "onPageChange" }, host: { properties: { "class": "cx('paginator')", "style.display": "display()" } }, providers: [PaginatorStyle, { provide: PAGINATOR_INSTANCE, useExisting: Paginator }, { provide: PARENT_INSTANCE, useExisting: Paginator }], queries: [{ propertyName: "dropdownIconTemplate", first: true, predicate: ["dropdownicon"], isSignal: true }, { propertyName: "firstPageLinkIconTemplate", first: true, predicate: ["firstpagelinkicon"], isSignal: true }, { propertyName: "previousPageLinkIconTemplate", first: true, predicate: ["previouspagelinkicon"], isSignal: true }, { propertyName: "lastPageLinkIconTemplate", first: true, predicate: ["lastpagelinkicon"], isSignal: true }, { propertyName: "nextPageLinkIconTemplate", first: true, predicate: ["nextpagelinkicon"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
496
|
+
@if (templateLeft()) {
|
|
533
497
|
<div [pBind]="ptm('contentStart')" [class]="cx('contentStart')">
|
|
534
|
-
<ng-container *ngTemplateOutlet="templateLeft; context: { $implicit: paginatorState }"></ng-container>
|
|
498
|
+
<ng-container *ngTemplateOutlet="templateLeft(); context: { $implicit: paginatorState() }"></ng-container>
|
|
535
499
|
</div>
|
|
536
500
|
}
|
|
537
|
-
@if (showCurrentPageReport) {
|
|
538
|
-
<span [pBind]="ptm('current')" [class]="cx('current')">{{ currentPageReport }}</span>
|
|
501
|
+
@if (showCurrentPageReport()) {
|
|
502
|
+
<span [pBind]="ptm('current')" [class]="cx('current')">{{ currentPageReport() }}</span>
|
|
539
503
|
}
|
|
540
|
-
@if (showFirstLastIcon) {
|
|
504
|
+
@if (showFirstLastIcon()) {
|
|
541
505
|
<button [pBind]="ptm('first')" type="button" [disabled]="isFirstPage() || empty()" (click)="changePageToFirst($event)" pRipple [class]="cx('first')" [attr.aria-label]="getAriaLabel('firstPageLabel')">
|
|
542
|
-
@if (!firstPageLinkIconTemplate() && !_firstPageLinkIconTemplate) {
|
|
506
|
+
@if (!firstPageLinkIconTemplate() && !_firstPageLinkIconTemplate()) {
|
|
543
507
|
<svg [pBind]="ptm('firstIcon')" data-p-icon="angle-double-left" [class]="cx('firstIcon')" />
|
|
544
508
|
}
|
|
545
|
-
@if (firstPageLinkIconTemplate() || _firstPageLinkIconTemplate) {
|
|
509
|
+
@if (firstPageLinkIconTemplate() || _firstPageLinkIconTemplate()) {
|
|
546
510
|
<span [class]="cx('firstIcon')">
|
|
547
|
-
<ng-template *ngTemplateOutlet="firstPageLinkIconTemplate() || _firstPageLinkIconTemplate"></ng-template>
|
|
511
|
+
<ng-template *ngTemplateOutlet="firstPageLinkIconTemplate() || _firstPageLinkIconTemplate()"></ng-template>
|
|
548
512
|
</span>
|
|
549
513
|
}
|
|
550
514
|
</button>
|
|
551
515
|
}
|
|
552
516
|
<button [pBind]="ptm('prev')" type="button" [disabled]="isFirstPage() || empty()" (click)="changePageToPrev($event)" pRipple [class]="cx('prev')" [attr.aria-label]="getAriaLabel('prevPageLabel')">
|
|
553
|
-
@if (!previousPageLinkIconTemplate() && !_previousPageLinkIconTemplate) {
|
|
517
|
+
@if (!previousPageLinkIconTemplate() && !_previousPageLinkIconTemplate()) {
|
|
554
518
|
<svg [pBind]="ptm('prevIcon')" data-p-icon="angle-left" [class]="cx('prevIcon')" />
|
|
555
519
|
}
|
|
556
|
-
@if (previousPageLinkIconTemplate() || _previousPageLinkIconTemplate) {
|
|
520
|
+
@if (previousPageLinkIconTemplate() || _previousPageLinkIconTemplate()) {
|
|
557
521
|
<span [class]="cx('prevIcon')">
|
|
558
|
-
<ng-template *ngTemplateOutlet="previousPageLinkIconTemplate() || _previousPageLinkIconTemplate"></ng-template>
|
|
522
|
+
<ng-template *ngTemplateOutlet="previousPageLinkIconTemplate() || _previousPageLinkIconTemplate()"></ng-template>
|
|
559
523
|
</span>
|
|
560
524
|
}
|
|
561
525
|
</button>
|
|
562
|
-
@if (showPageLinks) {
|
|
526
|
+
@if (showPageLinks()) {
|
|
563
527
|
<span [pBind]="ptm('pages')" [class]="cx('pages')">
|
|
564
|
-
@for (pageLink of pageLinks; track pageLink) {
|
|
528
|
+
@for (pageLink of pageLinks(); track pageLink) {
|
|
565
529
|
<button
|
|
566
530
|
[pBind]="ptm('page')"
|
|
567
531
|
type="button"
|
|
@@ -576,56 +540,56 @@ class Paginator extends BaseComponent {
|
|
|
576
540
|
}
|
|
577
541
|
</span>
|
|
578
542
|
}
|
|
579
|
-
@if (showJumpToPageDropdown) {
|
|
543
|
+
@if (showJumpToPageDropdown()) {
|
|
580
544
|
<p-select
|
|
581
|
-
[options]="pageItems"
|
|
545
|
+
[options]="pageItems()"
|
|
582
546
|
[ngModel]="getPage()"
|
|
583
547
|
[ngModelOptions]="{ standalone: true }"
|
|
584
548
|
[disabled]="empty()"
|
|
585
549
|
[attr.aria-label]="getAriaLabel('jumpToPageDropdownLabel')"
|
|
586
|
-
[
|
|
550
|
+
[class]="cx('pcJumpToPageDropdown')"
|
|
587
551
|
(onChange)="onPageDropdownChange($event)"
|
|
588
|
-
[appendTo]="
|
|
589
|
-
[scrollHeight]="dropdownScrollHeight"
|
|
552
|
+
[appendTo]="$appendTo()"
|
|
553
|
+
[scrollHeight]="dropdownScrollHeight()"
|
|
590
554
|
[pt]="ptm('pcJumpToPageDropdown')"
|
|
591
555
|
[unstyled]="unstyled()"
|
|
592
556
|
>
|
|
593
|
-
<ng-template pTemplate="selectedItem">{{ currentPageReport }}</ng-template>
|
|
594
|
-
@if (jumpToPageItemTemplate) {
|
|
557
|
+
<ng-template pTemplate="selectedItem">{{ currentPageReport() }}</ng-template>
|
|
558
|
+
@if (jumpToPageItemTemplate()) {
|
|
595
559
|
<ng-template let-item pTemplate="item">
|
|
596
|
-
<ng-container *ngTemplateOutlet="jumpToPageItemTemplate; context: { $implicit: item }"></ng-container>
|
|
560
|
+
<ng-container *ngTemplateOutlet="jumpToPageItemTemplate(); context: { $implicit: item }"></ng-container>
|
|
597
561
|
</ng-template>
|
|
598
562
|
}
|
|
599
|
-
@if (dropdownIconTemplate() || _dropdownIconTemplate) {
|
|
563
|
+
@if (dropdownIconTemplate() || _dropdownIconTemplate()) {
|
|
600
564
|
<ng-template pTemplate="dropdownicon">
|
|
601
|
-
<ng-container *ngTemplateOutlet="dropdownIconTemplate() || _dropdownIconTemplate"></ng-container>
|
|
565
|
+
<ng-container *ngTemplateOutlet="dropdownIconTemplate() || _dropdownIconTemplate()"></ng-container>
|
|
602
566
|
</ng-template>
|
|
603
567
|
}
|
|
604
568
|
</p-select>
|
|
605
569
|
}
|
|
606
570
|
<button [pBind]="ptm('next')" type="button" [disabled]="isLastPage() || empty()" (click)="changePageToNext($event)" pRipple [class]="cx('next')" [attr.aria-label]="getAriaLabel('nextPageLabel')">
|
|
607
|
-
@if (!nextPageLinkIconTemplate() && !_nextPageLinkIconTemplate) {
|
|
571
|
+
@if (!nextPageLinkIconTemplate() && !_nextPageLinkIconTemplate()) {
|
|
608
572
|
<svg [pBind]="ptm('nextIcon')" data-p-icon="angle-right" [class]="cx('nextIcon')" />
|
|
609
573
|
}
|
|
610
|
-
@if (nextPageLinkIconTemplate() || _nextPageLinkIconTemplate) {
|
|
574
|
+
@if (nextPageLinkIconTemplate() || _nextPageLinkIconTemplate()) {
|
|
611
575
|
<span [class]="cx('nextIcon')">
|
|
612
|
-
<ng-template *ngTemplateOutlet="nextPageLinkIconTemplate() || _nextPageLinkIconTemplate"></ng-template>
|
|
576
|
+
<ng-template *ngTemplateOutlet="nextPageLinkIconTemplate() || _nextPageLinkIconTemplate()"></ng-template>
|
|
613
577
|
</span>
|
|
614
578
|
}
|
|
615
579
|
</button>
|
|
616
|
-
@if (showFirstLastIcon) {
|
|
580
|
+
@if (showFirstLastIcon()) {
|
|
617
581
|
<button [pBind]="ptm('last')" type="button" [disabled]="isLastPage() || empty()" (click)="changePageToLast($event)" pRipple [class]="cx('last')" [attr.aria-label]="getAriaLabel('lastPageLabel')">
|
|
618
|
-
@if (!lastPageLinkIconTemplate() && !_lastPageLinkIconTemplate) {
|
|
582
|
+
@if (!lastPageLinkIconTemplate() && !_lastPageLinkIconTemplate()) {
|
|
619
583
|
<svg [pBind]="ptm('lastIcon')" data-p-icon="angle-double-right" [class]="cx('lastIcon')" />
|
|
620
584
|
}
|
|
621
|
-
@if (lastPageLinkIconTemplate() || _lastPageLinkIconTemplate) {
|
|
585
|
+
@if (lastPageLinkIconTemplate() || _lastPageLinkIconTemplate()) {
|
|
622
586
|
<span [class]="cx('lastIcon')">
|
|
623
|
-
<ng-template *ngTemplateOutlet="lastPageLinkIconTemplate() || _lastPageLinkIconTemplate"></ng-template>
|
|
587
|
+
<ng-template *ngTemplateOutlet="lastPageLinkIconTemplate() || _lastPageLinkIconTemplate()"></ng-template>
|
|
624
588
|
</span>
|
|
625
589
|
}
|
|
626
590
|
</button>
|
|
627
591
|
}
|
|
628
|
-
@if (showJumpToPageInput) {
|
|
592
|
+
@if (showJumpToPageInput()) {
|
|
629
593
|
<p-inputnumber
|
|
630
594
|
[pt]="ptm('pcJumpToPageInput')"
|
|
631
595
|
[ngModel]="currentPage()"
|
|
@@ -636,79 +600,78 @@ class Paginator extends BaseComponent {
|
|
|
636
600
|
[unstyled]="unstyled()"
|
|
637
601
|
></p-inputnumber>
|
|
638
602
|
}
|
|
639
|
-
@if (rowsPerPageOptions) {
|
|
603
|
+
@if (rowsPerPageOptions()) {
|
|
640
604
|
<p-select
|
|
641
|
-
[options]="rowsPerPageItems"
|
|
642
|
-
[(ngModel)]="
|
|
605
|
+
[options]="rowsPerPageItems()"
|
|
606
|
+
[(ngModel)]="_rows"
|
|
643
607
|
[ngModelOptions]="{ standalone: true }"
|
|
644
|
-
[
|
|
608
|
+
[class]="cx('pcRowPerPageDropdown')"
|
|
645
609
|
[disabled]="empty()"
|
|
646
610
|
(onChange)="onRppChange($event)"
|
|
647
|
-
[appendTo]="
|
|
648
|
-
[scrollHeight]="dropdownScrollHeight"
|
|
611
|
+
[appendTo]="$appendTo()"
|
|
612
|
+
[scrollHeight]="dropdownScrollHeight()"
|
|
649
613
|
[ariaLabel]="getAriaLabel('rowsPerPageLabel')"
|
|
650
614
|
[pt]="ptm('pcRowPerPageDropdown')"
|
|
651
615
|
[unstyled]="unstyled()"
|
|
652
616
|
>
|
|
653
|
-
@if (dropdownItemTemplate) {
|
|
617
|
+
@if (dropdownItemTemplate()) {
|
|
654
618
|
<ng-template let-item pTemplate="item">
|
|
655
|
-
<ng-container *ngTemplateOutlet="dropdownItemTemplate; context: { $implicit: item }"></ng-container>
|
|
619
|
+
<ng-container *ngTemplateOutlet="dropdownItemTemplate(); context: { $implicit: item }"></ng-container>
|
|
656
620
|
</ng-template>
|
|
657
621
|
}
|
|
658
|
-
@if (dropdownIconTemplate() || _dropdownIconTemplate) {
|
|
622
|
+
@if (dropdownIconTemplate() || _dropdownIconTemplate()) {
|
|
659
623
|
<ng-template pTemplate="dropdownicon">
|
|
660
|
-
<ng-container *ngTemplateOutlet="dropdownIconTemplate() || _dropdownIconTemplate"></ng-container>
|
|
624
|
+
<ng-container *ngTemplateOutlet="dropdownIconTemplate() || _dropdownIconTemplate()"></ng-container>
|
|
661
625
|
</ng-template>
|
|
662
626
|
}
|
|
663
627
|
</p-select>
|
|
664
628
|
}
|
|
665
|
-
@if (templateRight) {
|
|
629
|
+
@if (templateRight()) {
|
|
666
630
|
<div [pBind]="ptm('contentEnd')" [class]="cx('contentEnd')">
|
|
667
|
-
<ng-container *ngTemplateOutlet="templateRight; context: { $implicit: paginatorState }"></ng-container>
|
|
631
|
+
<ng-container *ngTemplateOutlet="templateRight(); context: { $implicit: paginatorState() }"></ng-container>
|
|
668
632
|
</div>
|
|
669
633
|
}
|
|
670
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: Select, selector: "p-select", inputs: ["id", "scrollHeight", "filter", "panelStyle", "
|
|
634
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: Select, selector: "p-select", inputs: ["id", "scrollHeight", "filter", "panelStyle", "panelStyleClass", "readonly", "editable", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "filterValue", "options", "appendTo", "motionOptions"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "component", type: 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: "ngmodule", type: FormsModule }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: Ripple, selector: "[pRipple]" }, { kind: "component", type: AngleDoubleLeftIcon, selector: "[data-p-icon=\"angle-double-left\"]" }, { kind: "component", type: AngleDoubleRightIcon, selector: "[data-p-icon=\"angle-double-right\"]" }, { kind: "component", type: AngleLeftIcon, selector: "[data-p-icon=\"angle-left\"]" }, { kind: "component", type: AngleRightIcon, selector: "[data-p-icon=\"angle-right\"]" }, { kind: "ngmodule", type: SharedModule }, { kind: "directive", type: i4.PrimeTemplate, selector: "[pTemplate]", inputs: ["pTemplate"] }, { kind: "directive", type: Bind, selector: "[pBind]", inputs: ["pBind"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
671
635
|
}
|
|
672
636
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Paginator, decorators: [{
|
|
673
637
|
type: Component,
|
|
674
638
|
args: [{
|
|
675
639
|
selector: 'p-paginator',
|
|
676
|
-
standalone: true,
|
|
677
640
|
imports: [CommonModule, Select, InputNumber, FormsModule, Ripple, AngleDoubleLeftIcon, AngleDoubleRightIcon, AngleLeftIcon, AngleRightIcon, SharedModule, Bind],
|
|
678
641
|
template: `
|
|
679
|
-
@if (templateLeft) {
|
|
642
|
+
@if (templateLeft()) {
|
|
680
643
|
<div [pBind]="ptm('contentStart')" [class]="cx('contentStart')">
|
|
681
|
-
<ng-container *ngTemplateOutlet="templateLeft; context: { $implicit: paginatorState }"></ng-container>
|
|
644
|
+
<ng-container *ngTemplateOutlet="templateLeft(); context: { $implicit: paginatorState() }"></ng-container>
|
|
682
645
|
</div>
|
|
683
646
|
}
|
|
684
|
-
@if (showCurrentPageReport) {
|
|
685
|
-
<span [pBind]="ptm('current')" [class]="cx('current')">{{ currentPageReport }}</span>
|
|
647
|
+
@if (showCurrentPageReport()) {
|
|
648
|
+
<span [pBind]="ptm('current')" [class]="cx('current')">{{ currentPageReport() }}</span>
|
|
686
649
|
}
|
|
687
|
-
@if (showFirstLastIcon) {
|
|
650
|
+
@if (showFirstLastIcon()) {
|
|
688
651
|
<button [pBind]="ptm('first')" type="button" [disabled]="isFirstPage() || empty()" (click)="changePageToFirst($event)" pRipple [class]="cx('first')" [attr.aria-label]="getAriaLabel('firstPageLabel')">
|
|
689
|
-
@if (!firstPageLinkIconTemplate() && !_firstPageLinkIconTemplate) {
|
|
652
|
+
@if (!firstPageLinkIconTemplate() && !_firstPageLinkIconTemplate()) {
|
|
690
653
|
<svg [pBind]="ptm('firstIcon')" data-p-icon="angle-double-left" [class]="cx('firstIcon')" />
|
|
691
654
|
}
|
|
692
|
-
@if (firstPageLinkIconTemplate() || _firstPageLinkIconTemplate) {
|
|
655
|
+
@if (firstPageLinkIconTemplate() || _firstPageLinkIconTemplate()) {
|
|
693
656
|
<span [class]="cx('firstIcon')">
|
|
694
|
-
<ng-template *ngTemplateOutlet="firstPageLinkIconTemplate() || _firstPageLinkIconTemplate"></ng-template>
|
|
657
|
+
<ng-template *ngTemplateOutlet="firstPageLinkIconTemplate() || _firstPageLinkIconTemplate()"></ng-template>
|
|
695
658
|
</span>
|
|
696
659
|
}
|
|
697
660
|
</button>
|
|
698
661
|
}
|
|
699
662
|
<button [pBind]="ptm('prev')" type="button" [disabled]="isFirstPage() || empty()" (click)="changePageToPrev($event)" pRipple [class]="cx('prev')" [attr.aria-label]="getAriaLabel('prevPageLabel')">
|
|
700
|
-
@if (!previousPageLinkIconTemplate() && !_previousPageLinkIconTemplate) {
|
|
663
|
+
@if (!previousPageLinkIconTemplate() && !_previousPageLinkIconTemplate()) {
|
|
701
664
|
<svg [pBind]="ptm('prevIcon')" data-p-icon="angle-left" [class]="cx('prevIcon')" />
|
|
702
665
|
}
|
|
703
|
-
@if (previousPageLinkIconTemplate() || _previousPageLinkIconTemplate) {
|
|
666
|
+
@if (previousPageLinkIconTemplate() || _previousPageLinkIconTemplate()) {
|
|
704
667
|
<span [class]="cx('prevIcon')">
|
|
705
|
-
<ng-template *ngTemplateOutlet="previousPageLinkIconTemplate() || _previousPageLinkIconTemplate"></ng-template>
|
|
668
|
+
<ng-template *ngTemplateOutlet="previousPageLinkIconTemplate() || _previousPageLinkIconTemplate()"></ng-template>
|
|
706
669
|
</span>
|
|
707
670
|
}
|
|
708
671
|
</button>
|
|
709
|
-
@if (showPageLinks) {
|
|
672
|
+
@if (showPageLinks()) {
|
|
710
673
|
<span [pBind]="ptm('pages')" [class]="cx('pages')">
|
|
711
|
-
@for (pageLink of pageLinks; track pageLink) {
|
|
674
|
+
@for (pageLink of pageLinks(); track pageLink) {
|
|
712
675
|
<button
|
|
713
676
|
[pBind]="ptm('page')"
|
|
714
677
|
type="button"
|
|
@@ -723,56 +686,56 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
723
686
|
}
|
|
724
687
|
</span>
|
|
725
688
|
}
|
|
726
|
-
@if (showJumpToPageDropdown) {
|
|
689
|
+
@if (showJumpToPageDropdown()) {
|
|
727
690
|
<p-select
|
|
728
|
-
[options]="pageItems"
|
|
691
|
+
[options]="pageItems()"
|
|
729
692
|
[ngModel]="getPage()"
|
|
730
693
|
[ngModelOptions]="{ standalone: true }"
|
|
731
694
|
[disabled]="empty()"
|
|
732
695
|
[attr.aria-label]="getAriaLabel('jumpToPageDropdownLabel')"
|
|
733
|
-
[
|
|
696
|
+
[class]="cx('pcJumpToPageDropdown')"
|
|
734
697
|
(onChange)="onPageDropdownChange($event)"
|
|
735
|
-
[appendTo]="
|
|
736
|
-
[scrollHeight]="dropdownScrollHeight"
|
|
698
|
+
[appendTo]="$appendTo()"
|
|
699
|
+
[scrollHeight]="dropdownScrollHeight()"
|
|
737
700
|
[pt]="ptm('pcJumpToPageDropdown')"
|
|
738
701
|
[unstyled]="unstyled()"
|
|
739
702
|
>
|
|
740
|
-
<ng-template pTemplate="selectedItem">{{ currentPageReport }}</ng-template>
|
|
741
|
-
@if (jumpToPageItemTemplate) {
|
|
703
|
+
<ng-template pTemplate="selectedItem">{{ currentPageReport() }}</ng-template>
|
|
704
|
+
@if (jumpToPageItemTemplate()) {
|
|
742
705
|
<ng-template let-item pTemplate="item">
|
|
743
|
-
<ng-container *ngTemplateOutlet="jumpToPageItemTemplate; context: { $implicit: item }"></ng-container>
|
|
706
|
+
<ng-container *ngTemplateOutlet="jumpToPageItemTemplate(); context: { $implicit: item }"></ng-container>
|
|
744
707
|
</ng-template>
|
|
745
708
|
}
|
|
746
|
-
@if (dropdownIconTemplate() || _dropdownIconTemplate) {
|
|
709
|
+
@if (dropdownIconTemplate() || _dropdownIconTemplate()) {
|
|
747
710
|
<ng-template pTemplate="dropdownicon">
|
|
748
|
-
<ng-container *ngTemplateOutlet="dropdownIconTemplate() || _dropdownIconTemplate"></ng-container>
|
|
711
|
+
<ng-container *ngTemplateOutlet="dropdownIconTemplate() || _dropdownIconTemplate()"></ng-container>
|
|
749
712
|
</ng-template>
|
|
750
713
|
}
|
|
751
714
|
</p-select>
|
|
752
715
|
}
|
|
753
716
|
<button [pBind]="ptm('next')" type="button" [disabled]="isLastPage() || empty()" (click)="changePageToNext($event)" pRipple [class]="cx('next')" [attr.aria-label]="getAriaLabel('nextPageLabel')">
|
|
754
|
-
@if (!nextPageLinkIconTemplate() && !_nextPageLinkIconTemplate) {
|
|
717
|
+
@if (!nextPageLinkIconTemplate() && !_nextPageLinkIconTemplate()) {
|
|
755
718
|
<svg [pBind]="ptm('nextIcon')" data-p-icon="angle-right" [class]="cx('nextIcon')" />
|
|
756
719
|
}
|
|
757
|
-
@if (nextPageLinkIconTemplate() || _nextPageLinkIconTemplate) {
|
|
720
|
+
@if (nextPageLinkIconTemplate() || _nextPageLinkIconTemplate()) {
|
|
758
721
|
<span [class]="cx('nextIcon')">
|
|
759
|
-
<ng-template *ngTemplateOutlet="nextPageLinkIconTemplate() || _nextPageLinkIconTemplate"></ng-template>
|
|
722
|
+
<ng-template *ngTemplateOutlet="nextPageLinkIconTemplate() || _nextPageLinkIconTemplate()"></ng-template>
|
|
760
723
|
</span>
|
|
761
724
|
}
|
|
762
725
|
</button>
|
|
763
|
-
@if (showFirstLastIcon) {
|
|
726
|
+
@if (showFirstLastIcon()) {
|
|
764
727
|
<button [pBind]="ptm('last')" type="button" [disabled]="isLastPage() || empty()" (click)="changePageToLast($event)" pRipple [class]="cx('last')" [attr.aria-label]="getAriaLabel('lastPageLabel')">
|
|
765
|
-
@if (!lastPageLinkIconTemplate() && !_lastPageLinkIconTemplate) {
|
|
728
|
+
@if (!lastPageLinkIconTemplate() && !_lastPageLinkIconTemplate()) {
|
|
766
729
|
<svg [pBind]="ptm('lastIcon')" data-p-icon="angle-double-right" [class]="cx('lastIcon')" />
|
|
767
730
|
}
|
|
768
|
-
@if (lastPageLinkIconTemplate() || _lastPageLinkIconTemplate) {
|
|
731
|
+
@if (lastPageLinkIconTemplate() || _lastPageLinkIconTemplate()) {
|
|
769
732
|
<span [class]="cx('lastIcon')">
|
|
770
|
-
<ng-template *ngTemplateOutlet="lastPageLinkIconTemplate() || _lastPageLinkIconTemplate"></ng-template>
|
|
733
|
+
<ng-template *ngTemplateOutlet="lastPageLinkIconTemplate() || _lastPageLinkIconTemplate()"></ng-template>
|
|
771
734
|
</span>
|
|
772
735
|
}
|
|
773
736
|
</button>
|
|
774
737
|
}
|
|
775
|
-
@if (showJumpToPageInput) {
|
|
738
|
+
@if (showJumpToPageInput()) {
|
|
776
739
|
<p-inputnumber
|
|
777
740
|
[pt]="ptm('pcJumpToPageInput')"
|
|
778
741
|
[ngModel]="currentPage()"
|
|
@@ -783,35 +746,35 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
783
746
|
[unstyled]="unstyled()"
|
|
784
747
|
></p-inputnumber>
|
|
785
748
|
}
|
|
786
|
-
@if (rowsPerPageOptions) {
|
|
749
|
+
@if (rowsPerPageOptions()) {
|
|
787
750
|
<p-select
|
|
788
|
-
[options]="rowsPerPageItems"
|
|
789
|
-
[(ngModel)]="
|
|
751
|
+
[options]="rowsPerPageItems()"
|
|
752
|
+
[(ngModel)]="_rows"
|
|
790
753
|
[ngModelOptions]="{ standalone: true }"
|
|
791
|
-
[
|
|
754
|
+
[class]="cx('pcRowPerPageDropdown')"
|
|
792
755
|
[disabled]="empty()"
|
|
793
756
|
(onChange)="onRppChange($event)"
|
|
794
|
-
[appendTo]="
|
|
795
|
-
[scrollHeight]="dropdownScrollHeight"
|
|
757
|
+
[appendTo]="$appendTo()"
|
|
758
|
+
[scrollHeight]="dropdownScrollHeight()"
|
|
796
759
|
[ariaLabel]="getAriaLabel('rowsPerPageLabel')"
|
|
797
760
|
[pt]="ptm('pcRowPerPageDropdown')"
|
|
798
761
|
[unstyled]="unstyled()"
|
|
799
762
|
>
|
|
800
|
-
@if (dropdownItemTemplate) {
|
|
763
|
+
@if (dropdownItemTemplate()) {
|
|
801
764
|
<ng-template let-item pTemplate="item">
|
|
802
|
-
<ng-container *ngTemplateOutlet="dropdownItemTemplate; context: { $implicit: item }"></ng-container>
|
|
765
|
+
<ng-container *ngTemplateOutlet="dropdownItemTemplate(); context: { $implicit: item }"></ng-container>
|
|
803
766
|
</ng-template>
|
|
804
767
|
}
|
|
805
|
-
@if (dropdownIconTemplate() || _dropdownIconTemplate) {
|
|
768
|
+
@if (dropdownIconTemplate() || _dropdownIconTemplate()) {
|
|
806
769
|
<ng-template pTemplate="dropdownicon">
|
|
807
|
-
<ng-container *ngTemplateOutlet="dropdownIconTemplate() || _dropdownIconTemplate"></ng-container>
|
|
770
|
+
<ng-container *ngTemplateOutlet="dropdownIconTemplate() || _dropdownIconTemplate()"></ng-container>
|
|
808
771
|
</ng-template>
|
|
809
772
|
}
|
|
810
773
|
</p-select>
|
|
811
774
|
}
|
|
812
|
-
@if (templateRight) {
|
|
775
|
+
@if (templateRight()) {
|
|
813
776
|
<div [pBind]="ptm('contentEnd')" [class]="cx('contentEnd')">
|
|
814
|
-
<ng-container *ngTemplateOutlet="templateRight; context: { $implicit: paginatorState }"></ng-container>
|
|
777
|
+
<ng-container *ngTemplateOutlet="templateRight(); context: { $implicit: paginatorState() }"></ng-container>
|
|
815
778
|
</div>
|
|
816
779
|
}
|
|
817
780
|
`,
|
|
@@ -819,63 +782,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
819
782
|
encapsulation: ViewEncapsulation.None,
|
|
820
783
|
providers: [PaginatorStyle, { provide: PAGINATOR_INSTANCE, useExisting: Paginator }, { provide: PARENT_INSTANCE, useExisting: Paginator }],
|
|
821
784
|
host: {
|
|
822
|
-
'[class]': "
|
|
785
|
+
'[class]': "cx('paginator')",
|
|
786
|
+
'[style.display]': 'display()'
|
|
823
787
|
},
|
|
824
788
|
hostDirectives: [Bind]
|
|
825
789
|
}]
|
|
826
|
-
}], propDecorators: { pageLinkSize: [{
|
|
827
|
-
type: Input,
|
|
828
|
-
args: [{ transform: numberAttribute }]
|
|
829
|
-
}], styleClass: [{
|
|
830
|
-
type: Input
|
|
831
|
-
}], alwaysShow: [{
|
|
832
|
-
type: Input,
|
|
833
|
-
args: [{ transform: booleanAttribute }]
|
|
834
|
-
}], dropdownAppendTo: [{
|
|
835
|
-
type: Input
|
|
836
|
-
}], templateLeft: [{
|
|
837
|
-
type: Input
|
|
838
|
-
}], templateRight: [{
|
|
839
|
-
type: Input
|
|
840
|
-
}], dropdownScrollHeight: [{
|
|
841
|
-
type: Input
|
|
842
|
-
}], currentPageReportTemplate: [{
|
|
843
|
-
type: Input
|
|
844
|
-
}], showCurrentPageReport: [{
|
|
845
|
-
type: Input,
|
|
846
|
-
args: [{ transform: booleanAttribute }]
|
|
847
|
-
}], showFirstLastIcon: [{
|
|
848
|
-
type: Input,
|
|
849
|
-
args: [{ transform: booleanAttribute }]
|
|
850
|
-
}], totalRecords: [{
|
|
851
|
-
type: Input,
|
|
852
|
-
args: [{ transform: numberAttribute }]
|
|
853
|
-
}], rows: [{
|
|
854
|
-
type: Input,
|
|
855
|
-
args: [{ transform: numberAttribute }]
|
|
856
|
-
}], rowsPerPageOptions: [{
|
|
857
|
-
type: Input
|
|
858
|
-
}], showJumpToPageDropdown: [{
|
|
859
|
-
type: Input,
|
|
860
|
-
args: [{ transform: booleanAttribute }]
|
|
861
|
-
}], showJumpToPageInput: [{
|
|
862
|
-
type: Input,
|
|
863
|
-
args: [{ transform: booleanAttribute }]
|
|
864
|
-
}], jumpToPageItemTemplate: [{
|
|
865
|
-
type: Input
|
|
866
|
-
}], showPageLinks: [{
|
|
867
|
-
type: Input,
|
|
868
|
-
args: [{ transform: booleanAttribute }]
|
|
869
|
-
}], locale: [{
|
|
870
|
-
type: Input
|
|
871
|
-
}], dropdownItemTemplate: [{
|
|
872
|
-
type: Input
|
|
873
|
-
}], first: [{
|
|
874
|
-
type: Input
|
|
875
|
-
}], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], onPageChange: [{ type: i0.Output, args: ["onPageChange"] }], dropdownIconTemplate: [{ type: i0.ContentChild, args: ['dropdownicon', { ...{ descendants: false }, isSignal: true }] }], firstPageLinkIconTemplate: [{ type: i0.ContentChild, args: ['firstpagelinkicon', { ...{ descendants: false }, isSignal: true }] }], previousPageLinkIconTemplate: [{ type: i0.ContentChild, args: ['previouspagelinkicon', { ...{ descendants: false }, isSignal: true }] }], lastPageLinkIconTemplate: [{ type: i0.ContentChild, args: ['lastpagelinkicon', { ...{ descendants: false }, isSignal: true }] }], nextPageLinkIconTemplate: [{ type: i0.ContentChild, args: ['nextpagelinkicon', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }], display: [{
|
|
876
|
-
type: HostBinding,
|
|
877
|
-
args: ['style.display']
|
|
878
|
-
}] } });
|
|
790
|
+
}], ctorParameters: () => [], propDecorators: { pageLinkSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageLinkSize", required: false }] }], alwaysShow: [{ type: i0.Input, args: [{ isSignal: true, alias: "alwaysShow", required: false }] }], templateLeft: [{ type: i0.Input, args: [{ isSignal: true, alias: "templateLeft", required: false }] }], templateRight: [{ type: i0.Input, args: [{ isSignal: true, alias: "templateRight", required: false }] }], dropdownScrollHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropdownScrollHeight", required: false }] }], currentPageReportTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "currentPageReportTemplate", required: false }] }], showCurrentPageReport: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCurrentPageReport", required: false }] }], showFirstLastIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showFirstLastIcon", required: false }] }], totalRecords: [{ type: i0.Input, args: [{ isSignal: true, alias: "totalRecords", required: false }] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }], rowsPerPageOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowsPerPageOptions", required: false }] }], showJumpToPageDropdown: [{ type: i0.Input, args: [{ isSignal: true, alias: "showJumpToPageDropdown", required: false }] }], showJumpToPageInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "showJumpToPageInput", required: false }] }], jumpToPageItemTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "jumpToPageItemTemplate", required: false }] }], showPageLinks: [{ type: i0.Input, args: [{ isSignal: true, alias: "showPageLinks", required: false }] }], locale: [{ type: i0.Input, args: [{ isSignal: true, alias: "locale", required: false }] }], dropdownItemTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropdownItemTemplate", required: false }] }], first: [{ type: i0.Input, args: [{ isSignal: true, alias: "first", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], onPageChange: [{ type: i0.Output, args: ["onPageChange"] }], dropdownIconTemplate: [{ type: i0.ContentChild, args: ['dropdownicon', { ...{ descendants: false }, isSignal: true }] }], firstPageLinkIconTemplate: [{ type: i0.ContentChild, args: ['firstpagelinkicon', { ...{ descendants: false }, isSignal: true }] }], previousPageLinkIconTemplate: [{ type: i0.ContentChild, args: ['previouspagelinkicon', { ...{ descendants: false }, isSignal: true }] }], lastPageLinkIconTemplate: [{ type: i0.ContentChild, args: ['lastpagelinkicon', { ...{ descendants: false }, isSignal: true }] }], nextPageLinkIconTemplate: [{ type: i0.ContentChild, args: ['nextpagelinkicon', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
|
|
879
791
|
class PaginatorModule {
|
|
880
792
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: PaginatorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
881
793
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.1", ngImport: i0, type: PaginatorModule, imports: [Paginator, SharedModule], exports: [Paginator, SharedModule] });
|