@tectra-ng/ui 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +26 -2
- package/amount/README.md +28 -0
- package/autocomplete/README.md +82 -0
- package/avatar/README.md +43 -0
- package/badge/README.md +19 -0
- package/button/README.md +46 -0
- package/button-group/README.md +8 -0
- package/card/README.md +30 -0
- package/cascade-select/README.md +49 -0
- package/checkbox/README.md +64 -0
- package/chip/README.md +38 -0
- package/chips-input/README.md +47 -0
- package/color-picker/README.md +43 -0
- package/confirm/README.md +46 -0
- package/country/README.md +23 -0
- package/country-select/README.md +39 -0
- package/dialog/README.md +84 -0
- package/divider/README.md +24 -0
- package/drawer/README.md +54 -0
- package/email-suggestion/README.md +20 -0
- package/fesm2022/tectra-ng-ui-amount.mjs +415 -0
- package/fesm2022/tectra-ng-ui-amount.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-autocomplete.mjs +730 -0
- package/fesm2022/tectra-ng-ui-autocomplete.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-avatar.mjs +670 -0
- package/fesm2022/tectra-ng-ui-avatar.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-badge.mjs +191 -0
- package/fesm2022/tectra-ng-ui-badge.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-button-group.mjs +50 -0
- package/fesm2022/tectra-ng-ui-button-group.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-button.mjs +725 -0
- package/fesm2022/tectra-ng-ui-button.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-card.mjs +210 -0
- package/fesm2022/tectra-ng-ui-card.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-cascade-select.mjs +887 -0
- package/fesm2022/tectra-ng-ui-cascade-select.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-checkbox.mjs +1150 -0
- package/fesm2022/tectra-ng-ui-checkbox.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-chip.mjs +344 -0
- package/fesm2022/tectra-ng-ui-chip.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-chips-input.mjs +649 -0
- package/fesm2022/tectra-ng-ui-chips-input.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-color-picker.mjs +828 -0
- package/fesm2022/tectra-ng-ui-color-picker.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-confirm.mjs +489 -0
- package/fesm2022/tectra-ng-ui-confirm.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-country-select.mjs +545 -0
- package/fesm2022/tectra-ng-ui-country-select.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-country.mjs +313 -0
- package/fesm2022/tectra-ng-ui-country.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-dialog.mjs +1539 -0
- package/fesm2022/tectra-ng-ui-dialog.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-divider.mjs +194 -0
- package/fesm2022/tectra-ng-ui-divider.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-drawer.mjs +540 -0
- package/fesm2022/tectra-ng-ui-drawer.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-email-suggestion.mjs +341 -0
- package/fesm2022/tectra-ng-ui-email-suggestion.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-field.mjs +492 -0
- package/fesm2022/tectra-ng-ui-field.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-fieldset.mjs +258 -0
- package/fesm2022/tectra-ng-ui-fieldset.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-highlight-text.mjs +246 -0
- package/fesm2022/tectra-ng-ui-highlight-text.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-icon-field.mjs +478 -0
- package/fesm2022/tectra-ng-ui-icon-field.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-input-group.mjs +113 -0
- package/fesm2022/tectra-ng-ui-input-group.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-input-mask.mjs +413 -0
- package/fesm2022/tectra-ng-ui-input-mask.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-input-number.mjs +1045 -0
- package/fesm2022/tectra-ng-ui-input-number.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-input-otp.mjs +553 -0
- package/fesm2022/tectra-ng-ui-input-otp.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-input.mjs +260 -0
- package/fesm2022/tectra-ng-ui-input.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-key-filter.mjs +185 -0
- package/fesm2022/tectra-ng-ui-key-filter.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-knob.mjs +630 -0
- package/fesm2022/tectra-ng-ui-knob.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-label.mjs +271 -0
- package/fesm2022/tectra-ng-ui-label.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-link.mjs +699 -0
- package/fesm2022/tectra-ng-ui-link.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-listbox.mjs +484 -0
- package/fesm2022/tectra-ng-ui-listbox.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-mention-textarea.mjs +717 -0
- package/fesm2022/tectra-ng-ui-mention-textarea.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-menu.mjs +1484 -0
- package/fesm2022/tectra-ng-ui-menu.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-message.mjs +975 -0
- package/fesm2022/tectra-ng-ui-message.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-multiselect.mjs +569 -0
- package/fesm2022/tectra-ng-ui-multiselect.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-overlay-badge.mjs +345 -0
- package/fesm2022/tectra-ng-ui-overlay-badge.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-paginator.mjs +849 -0
- package/fesm2022/tectra-ng-ui-paginator.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-panel.mjs +317 -0
- package/fesm2022/tectra-ng-ui-panel.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-password-generator.mjs +292 -0
- package/fesm2022/tectra-ng-ui-password-generator.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-password.mjs +871 -0
- package/fesm2022/tectra-ng-ui-password.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-pill.mjs +361 -0
- package/fesm2022/tectra-ng-ui-pill.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-popover.mjs +742 -0
- package/fesm2022/tectra-ng-ui-popover.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-progress-bar.mjs +440 -0
- package/fesm2022/tectra-ng-ui-progress-bar.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-progress-spinner.mjs +265 -0
- package/fesm2022/tectra-ng-ui-progress-spinner.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-radio-button.mjs +817 -0
- package/fesm2022/tectra-ng-ui-radio-button.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-rating.mjs +584 -0
- package/fesm2022/tectra-ng-ui-rating.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-select.mjs +2478 -0
- package/fesm2022/tectra-ng-ui-select.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-skeleton.mjs +548 -0
- package/fesm2022/tectra-ng-ui-skeleton.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-slider.mjs +630 -0
- package/fesm2022/tectra-ng-ui-slider.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-speed-dial.mjs +669 -0
- package/fesm2022/tectra-ng-ui-speed-dial.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-split-button.mjs +614 -0
- package/fesm2022/tectra-ng-ui-split-button.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-status-icon.mjs +295 -0
- package/fesm2022/tectra-ng-ui-status-icon.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-table.mjs +5997 -0
- package/fesm2022/tectra-ng-ui-table.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-tag.mjs +422 -0
- package/fesm2022/tectra-ng-ui-tag.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-textarea.mjs +482 -0
- package/fesm2022/tectra-ng-ui-textarea.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-toast.mjs +668 -0
- package/fesm2022/tectra-ng-ui-toast.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-toggle-button.mjs +416 -0
- package/fesm2022/tectra-ng-ui-toggle-button.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-toggle-switch.mjs +560 -0
- package/fesm2022/tectra-ng-ui-toggle-switch.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-tooltip.mjs +835 -0
- package/fesm2022/tectra-ng-ui-tooltip.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-tree-select.mjs +986 -0
- package/fesm2022/tectra-ng-ui-tree-select.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui.mjs +4 -0
- package/fesm2022/tectra-ng-ui.mjs.map +1 -0
- package/field/README.md +43 -0
- package/fieldset/README.md +36 -0
- package/highlight-text/README.md +20 -0
- package/icon-field/README.md +30 -0
- package/input/README.md +22 -0
- package/input-group/README.md +21 -0
- package/input-mask/README.md +30 -0
- package/input-number/README.md +61 -0
- package/input-otp/README.md +44 -0
- package/key-filter/README.md +31 -0
- package/knob/README.md +50 -0
- package/label/README.md +29 -0
- package/link/README.md +47 -0
- package/listbox/README.md +68 -0
- package/mention-textarea/README.md +47 -0
- package/menu/README.md +65 -0
- package/message/README.md +58 -0
- package/multiselect/README.md +85 -0
- package/overlay-badge/README.md +30 -0
- package/package.json +301 -3
- package/paginator/README.md +60 -0
- package/panel/README.md +45 -0
- package/password/README.md +60 -0
- package/password-generator/README.md +34 -0
- package/pill/README.md +42 -0
- package/popover/README.md +67 -0
- package/progress-bar/README.md +32 -0
- package/progress-spinner/README.md +22 -0
- package/radio-button/README.md +54 -0
- package/rating/README.md +49 -0
- package/select/README.md +78 -0
- package/skeleton/README.md +27 -0
- package/slider/README.md +48 -0
- package/speed-dial/README.md +49 -0
- package/split-button/README.md +45 -0
- package/status-icon/README.md +22 -0
- package/table/README.md +178 -0
- package/tag/README.md +42 -0
- package/textarea/README.md +37 -0
- package/toast/README.md +52 -0
- package/toggle-button/README.md +34 -0
- package/toggle-switch/README.md +49 -0
- package/tooltip/README.md +60 -0
- package/tree-select/README.md +49 -0
- package/types/tectra-ng-ui-amount.d.ts +135 -0
- package/types/tectra-ng-ui-amount.d.ts.map +1 -0
- package/types/tectra-ng-ui-autocomplete.d.ts +250 -0
- package/types/tectra-ng-ui-autocomplete.d.ts.map +1 -0
- package/types/tectra-ng-ui-avatar.d.ts +289 -0
- package/types/tectra-ng-ui-avatar.d.ts.map +1 -0
- package/types/tectra-ng-ui-badge.d.ts +119 -0
- package/types/tectra-ng-ui-badge.d.ts.map +1 -0
- package/types/tectra-ng-ui-button-group.d.ts +6 -0
- package/types/tectra-ng-ui-button-group.d.ts.map +1 -0
- package/types/tectra-ng-ui-button.d.ts +466 -0
- package/types/tectra-ng-ui-button.d.ts.map +1 -0
- package/types/tectra-ng-ui-card.d.ts +71 -0
- package/types/tectra-ng-ui-card.d.ts.map +1 -0
- package/types/tectra-ng-ui-cascade-select.d.ts +244 -0
- package/types/tectra-ng-ui-cascade-select.d.ts.map +1 -0
- package/types/tectra-ng-ui-checkbox.d.ts +450 -0
- package/types/tectra-ng-ui-checkbox.d.ts.map +1 -0
- package/types/tectra-ng-ui-chip.d.ts +106 -0
- package/types/tectra-ng-ui-chip.d.ts.map +1 -0
- package/types/tectra-ng-ui-chips-input.d.ts +187 -0
- package/types/tectra-ng-ui-chips-input.d.ts.map +1 -0
- package/types/tectra-ng-ui-color-picker.d.ts +237 -0
- package/types/tectra-ng-ui-color-picker.d.ts.map +1 -0
- package/types/tectra-ng-ui-confirm.d.ts +80 -0
- package/types/tectra-ng-ui-confirm.d.ts.map +1 -0
- package/types/tectra-ng-ui-country-select.d.ts +235 -0
- package/types/tectra-ng-ui-country-select.d.ts.map +1 -0
- package/types/tectra-ng-ui-country.d.ts +105 -0
- package/types/tectra-ng-ui-country.d.ts.map +1 -0
- package/types/tectra-ng-ui-dialog.d.ts +453 -0
- package/types/tectra-ng-ui-dialog.d.ts.map +1 -0
- package/types/tectra-ng-ui-divider.d.ts +70 -0
- package/types/tectra-ng-ui-divider.d.ts.map +1 -0
- package/types/tectra-ng-ui-drawer.d.ts +188 -0
- package/types/tectra-ng-ui-drawer.d.ts.map +1 -0
- package/types/tectra-ng-ui-email-suggestion.d.ts +84 -0
- package/types/tectra-ng-ui-email-suggestion.d.ts.map +1 -0
- package/types/tectra-ng-ui-field.d.ts +139 -0
- package/types/tectra-ng-ui-field.d.ts.map +1 -0
- package/types/tectra-ng-ui-fieldset.d.ts +74 -0
- package/types/tectra-ng-ui-fieldset.d.ts.map +1 -0
- package/types/tectra-ng-ui-highlight-text.d.ts +75 -0
- package/types/tectra-ng-ui-highlight-text.d.ts.map +1 -0
- package/types/tectra-ng-ui-icon-field.d.ts +77 -0
- package/types/tectra-ng-ui-icon-field.d.ts.map +1 -0
- package/types/tectra-ng-ui-input-group.d.ts +18 -0
- package/types/tectra-ng-ui-input-group.d.ts.map +1 -0
- package/types/tectra-ng-ui-input-mask.d.ts +91 -0
- package/types/tectra-ng-ui-input-mask.d.ts.map +1 -0
- package/types/tectra-ng-ui-input-number.d.ts +326 -0
- package/types/tectra-ng-ui-input-number.d.ts.map +1 -0
- package/types/tectra-ng-ui-input-otp.d.ts +173 -0
- package/types/tectra-ng-ui-input-otp.d.ts.map +1 -0
- package/types/tectra-ng-ui-input.d.ts +113 -0
- package/types/tectra-ng-ui-input.d.ts.map +1 -0
- package/types/tectra-ng-ui-key-filter.d.ts +43 -0
- package/types/tectra-ng-ui-key-filter.d.ts.map +1 -0
- package/types/tectra-ng-ui-knob.d.ts +207 -0
- package/types/tectra-ng-ui-knob.d.ts.map +1 -0
- package/types/tectra-ng-ui-label.d.ts +53 -0
- package/types/tectra-ng-ui-label.d.ts.map +1 -0
- package/types/tectra-ng-ui-link.d.ts +223 -0
- package/types/tectra-ng-ui-link.d.ts.map +1 -0
- package/types/tectra-ng-ui-listbox.d.ts +131 -0
- package/types/tectra-ng-ui-listbox.d.ts.map +1 -0
- package/types/tectra-ng-ui-mention-textarea.d.ts +169 -0
- package/types/tectra-ng-ui-mention-textarea.d.ts.map +1 -0
- package/types/tectra-ng-ui-menu.d.ts +512 -0
- package/types/tectra-ng-ui-menu.d.ts.map +1 -0
- package/types/tectra-ng-ui-message.d.ts +390 -0
- package/types/tectra-ng-ui-message.d.ts.map +1 -0
- package/types/tectra-ng-ui-multiselect.d.ts +216 -0
- package/types/tectra-ng-ui-multiselect.d.ts.map +1 -0
- package/types/tectra-ng-ui-overlay-badge.d.ts +104 -0
- package/types/tectra-ng-ui-overlay-badge.d.ts.map +1 -0
- package/types/tectra-ng-ui-paginator.d.ts +293 -0
- package/types/tectra-ng-ui-paginator.d.ts.map +1 -0
- package/types/tectra-ng-ui-panel.d.ts +133 -0
- package/types/tectra-ng-ui-panel.d.ts.map +1 -0
- package/types/tectra-ng-ui-password-generator.d.ts +80 -0
- package/types/tectra-ng-ui-password-generator.d.ts.map +1 -0
- package/types/tectra-ng-ui-password.d.ts +271 -0
- package/types/tectra-ng-ui-password.d.ts.map +1 -0
- package/types/tectra-ng-ui-pill.d.ts +167 -0
- package/types/tectra-ng-ui-pill.d.ts.map +1 -0
- package/types/tectra-ng-ui-popover.d.ts +244 -0
- package/types/tectra-ng-ui-popover.d.ts.map +1 -0
- package/types/tectra-ng-ui-progress-bar.d.ts +151 -0
- package/types/tectra-ng-ui-progress-bar.d.ts.map +1 -0
- package/types/tectra-ng-ui-progress-spinner.d.ts +95 -0
- package/types/tectra-ng-ui-progress-spinner.d.ts.map +1 -0
- package/types/tectra-ng-ui-radio-button.d.ts +380 -0
- package/types/tectra-ng-ui-radio-button.d.ts.map +1 -0
- package/types/tectra-ng-ui-rating.d.ts +195 -0
- package/types/tectra-ng-ui-rating.d.ts.map +1 -0
- package/types/tectra-ng-ui-select.d.ts +761 -0
- package/types/tectra-ng-ui-select.d.ts.map +1 -0
- package/types/tectra-ng-ui-skeleton.d.ts +182 -0
- package/types/tectra-ng-ui-skeleton.d.ts.map +1 -0
- package/types/tectra-ng-ui-slider.d.ts +220 -0
- package/types/tectra-ng-ui-slider.d.ts.map +1 -0
- package/types/tectra-ng-ui-speed-dial.d.ts +175 -0
- package/types/tectra-ng-ui-speed-dial.d.ts.map +1 -0
- package/types/tectra-ng-ui-split-button.d.ts +139 -0
- package/types/tectra-ng-ui-split-button.d.ts.map +1 -0
- package/types/tectra-ng-ui-status-icon.d.ts +105 -0
- package/types/tectra-ng-ui-status-icon.d.ts.map +1 -0
- package/types/tectra-ng-ui-table.d.ts +1301 -0
- package/types/tectra-ng-ui-table.d.ts.map +1 -0
- package/types/tectra-ng-ui-tag.d.ts +157 -0
- package/types/tectra-ng-ui-tag.d.ts.map +1 -0
- package/types/tectra-ng-ui-textarea.d.ts +146 -0
- package/types/tectra-ng-ui-textarea.d.ts.map +1 -0
- package/types/tectra-ng-ui-toast.d.ts +268 -0
- package/types/tectra-ng-ui-toast.d.ts.map +1 -0
- package/types/tectra-ng-ui-toggle-button.d.ts +184 -0
- package/types/tectra-ng-ui-toggle-button.d.ts.map +1 -0
- package/types/tectra-ng-ui-toggle-switch.d.ts +226 -0
- package/types/tectra-ng-ui-toggle-switch.d.ts.map +1 -0
- package/types/tectra-ng-ui-tooltip.d.ts +275 -0
- package/types/tectra-ng-ui-tooltip.d.ts.map +1 -0
- package/types/tectra-ng-ui-tree-select.d.ts +339 -0
- package/types/tectra-ng-ui-tree-select.d.ts.map +1 -0
- package/types/tectra-ng-ui.d.ts +2 -0
- package/types/tectra-ng-ui.d.ts.map +1 -0
|
@@ -0,0 +1,849 @@
|
|
|
1
|
+
import { BreakpointObserver } from "@angular/cdk/layout";
|
|
2
|
+
import { NgTemplateOutlet } from "@angular/common";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import { ChangeDetectionStrategy, Component, Directive, TemplateRef, booleanAttribute, computed, contentChild, effect, inject, input, model, numberAttribute, output, untracked } from "@angular/core";
|
|
5
|
+
import { toObservable, toSignal } from "@angular/core/rxjs-interop";
|
|
6
|
+
import * as i1 from "@angular/forms";
|
|
7
|
+
import { FormsModule } from "@angular/forms";
|
|
8
|
+
import { injectPassThrough, injectUnstyled } from "@tectra-ng/core/config";
|
|
9
|
+
import { TxLocaleService, injectTranslations } from "@tectra-ng/core/i18n";
|
|
10
|
+
import { optionalBoolean } from "@tectra-ng/core/utils";
|
|
11
|
+
import { TxIcon } from "@tectra-ng/icons";
|
|
12
|
+
import { toStyleObject } from "@tectra-ng/themes";
|
|
13
|
+
import { TxInput } from "@tectra-ng/ui/input";
|
|
14
|
+
import { TxSelect } from "@tectra-ng/ui/select";
|
|
15
|
+
import { map, of, switchMap } from "rxjs";
|
|
16
|
+
var TxPaginatorStart = class TxPaginatorStart {
|
|
17
|
+
templateRef = inject(TemplateRef);
|
|
18
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
19
|
+
minVersion: "12.0.0",
|
|
20
|
+
version: "22.2.3",
|
|
21
|
+
ngImport: i0,
|
|
22
|
+
type: TxPaginatorStart,
|
|
23
|
+
deps: [],
|
|
24
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
25
|
+
});
|
|
26
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
27
|
+
minVersion: "14.0.0",
|
|
28
|
+
version: "22.2.3",
|
|
29
|
+
type: TxPaginatorStart,
|
|
30
|
+
isStandalone: true,
|
|
31
|
+
selector: "ng-template[txPaginatorStart]",
|
|
32
|
+
ngImport: i0
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
36
|
+
minVersion: "12.0.0",
|
|
37
|
+
version: "22.2.3",
|
|
38
|
+
ngImport: i0,
|
|
39
|
+
type: TxPaginatorStart,
|
|
40
|
+
decorators: [{
|
|
41
|
+
type: Directive,
|
|
42
|
+
args: [{ selector: "ng-template[txPaginatorStart]" }]
|
|
43
|
+
}]
|
|
44
|
+
});
|
|
45
|
+
var TxPaginatorEnd = class TxPaginatorEnd {
|
|
46
|
+
templateRef = inject(TemplateRef);
|
|
47
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
48
|
+
minVersion: "12.0.0",
|
|
49
|
+
version: "22.2.3",
|
|
50
|
+
ngImport: i0,
|
|
51
|
+
type: TxPaginatorEnd,
|
|
52
|
+
deps: [],
|
|
53
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
54
|
+
});
|
|
55
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
56
|
+
minVersion: "14.0.0",
|
|
57
|
+
version: "22.2.3",
|
|
58
|
+
type: TxPaginatorEnd,
|
|
59
|
+
isStandalone: true,
|
|
60
|
+
selector: "ng-template[txPaginatorEnd]",
|
|
61
|
+
ngImport: i0
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
65
|
+
minVersion: "12.0.0",
|
|
66
|
+
version: "22.2.3",
|
|
67
|
+
ngImport: i0,
|
|
68
|
+
type: TxPaginatorEnd,
|
|
69
|
+
decorators: [{
|
|
70
|
+
type: Directive,
|
|
71
|
+
args: [{ selector: "ng-template[txPaginatorEnd]" }]
|
|
72
|
+
}]
|
|
73
|
+
});
|
|
74
|
+
function pageCountOf(totalRecords, rows) {
|
|
75
|
+
if (totalRecords <= 0) return 0;
|
|
76
|
+
return rows > 0 ? Math.ceil(totalRecords / rows) : 1;
|
|
77
|
+
}
|
|
78
|
+
function firstToPage(first, rows) {
|
|
79
|
+
return rows > 0 ? Math.floor(Math.max(0, first) / rows) : 0;
|
|
80
|
+
}
|
|
81
|
+
function pageToFirst(page, rows) {
|
|
82
|
+
return Math.max(0, page) * Math.max(0, rows);
|
|
83
|
+
}
|
|
84
|
+
function pageLinksOf(page, pageCount, linkSize) {
|
|
85
|
+
const visible = Math.max(0, Math.min(linkSize, pageCount));
|
|
86
|
+
let start = Math.max(0, Math.ceil(page - visible / 2));
|
|
87
|
+
const end = Math.min(pageCount - 1, start + visible - 1);
|
|
88
|
+
start = Math.max(0, start - (visible - (end - start + 1)));
|
|
89
|
+
return Array.from({ length: Math.max(0, end - start + 1) }, (_, index) => start + index);
|
|
90
|
+
}
|
|
91
|
+
var TxPaginator = class TxPaginator {
|
|
92
|
+
localeService = inject(TxLocaleService);
|
|
93
|
+
breakpointObserver = inject(BreakpointObserver);
|
|
94
|
+
first = model(0, ...ngDevMode ? [{ debugName: "first" }] : /* istanbul ignore next */ []);
|
|
95
|
+
rows = model(0, ...ngDevMode ? [{ debugName: "rows" }] : /* istanbul ignore next */ []);
|
|
96
|
+
totalRecords = input(0, {
|
|
97
|
+
...ngDevMode ? { debugName: "totalRecords" } : /* istanbul ignore next */ {},
|
|
98
|
+
transform: numberAttribute
|
|
99
|
+
});
|
|
100
|
+
pageLinkSize = input(5, {
|
|
101
|
+
...ngDevMode ? { debugName: "pageLinkSize" } : /* istanbul ignore next */ {},
|
|
102
|
+
transform: numberAttribute
|
|
103
|
+
});
|
|
104
|
+
compactPageLinkSize = input(3, {
|
|
105
|
+
...ngDevMode ? { debugName: "compactPageLinkSize" } : /* istanbul ignore next */ {},
|
|
106
|
+
transform: numberAttribute
|
|
107
|
+
});
|
|
108
|
+
compactBreakpoint = input("40rem", ...ngDevMode ? [{ debugName: "compactBreakpoint" }] : /* istanbul ignore next */ []);
|
|
109
|
+
rowsPerPageOptions = input(void 0, ...ngDevMode ? [{ debugName: "rowsPerPageOptions" }] : /* istanbul ignore next */ []);
|
|
110
|
+
alwaysShow = input(true, {
|
|
111
|
+
...ngDevMode ? { debugName: "alwaysShow" } : /* istanbul ignore next */ {},
|
|
112
|
+
transform: booleanAttribute
|
|
113
|
+
});
|
|
114
|
+
showFirstLastIcon = input(true, {
|
|
115
|
+
...ngDevMode ? { debugName: "showFirstLastIcon" } : /* istanbul ignore next */ {},
|
|
116
|
+
transform: booleanAttribute
|
|
117
|
+
});
|
|
118
|
+
showPageLinks = input(true, {
|
|
119
|
+
...ngDevMode ? { debugName: "showPageLinks" } : /* istanbul ignore next */ {},
|
|
120
|
+
transform: booleanAttribute
|
|
121
|
+
});
|
|
122
|
+
showCurrentPageReport = input(false, {
|
|
123
|
+
...ngDevMode ? { debugName: "showCurrentPageReport" } : /* istanbul ignore next */ {},
|
|
124
|
+
transform: booleanAttribute
|
|
125
|
+
});
|
|
126
|
+
currentPageReportTemplate = input(void 0, ...ngDevMode ? [{ debugName: "currentPageReportTemplate" }] : /* istanbul ignore next */ []);
|
|
127
|
+
showJumpToPageDropdown = input(false, {
|
|
128
|
+
...ngDevMode ? { debugName: "showJumpToPageDropdown" } : /* istanbul ignore next */ {},
|
|
129
|
+
transform: booleanAttribute
|
|
130
|
+
});
|
|
131
|
+
showJumpToPageInput = input(false, {
|
|
132
|
+
...ngDevMode ? { debugName: "showJumpToPageInput" } : /* istanbul ignore next */ {},
|
|
133
|
+
transform: booleanAttribute
|
|
134
|
+
});
|
|
135
|
+
showTotal = input(false, {
|
|
136
|
+
...ngDevMode ? { debugName: "showTotal" } : /* istanbul ignore next */ {},
|
|
137
|
+
transform: booleanAttribute
|
|
138
|
+
});
|
|
139
|
+
disabled = input(false, {
|
|
140
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
141
|
+
transform: booleanAttribute
|
|
142
|
+
});
|
|
143
|
+
locale = input(void 0, ...ngDevMode ? [{ debugName: "locale" }] : /* istanbul ignore next */ []);
|
|
144
|
+
dropdownScrollHeight = input("200px", ...ngDevMode ? [{ debugName: "dropdownScrollHeight" }] : /* istanbul ignore next */ []);
|
|
145
|
+
firstPageIcon = input("angle-double-left", ...ngDevMode ? [{ debugName: "firstPageIcon" }] : /* istanbul ignore next */ []);
|
|
146
|
+
previousPageIcon = input("angle-left", ...ngDevMode ? [{ debugName: "previousPageIcon" }] : /* istanbul ignore next */ []);
|
|
147
|
+
nextPageIcon = input("angle-right", ...ngDevMode ? [{ debugName: "nextPageIcon" }] : /* istanbul ignore next */ []);
|
|
148
|
+
lastPageIcon = input("angle-double-right", ...ngDevMode ? [{ debugName: "lastPageIcon" }] : /* istanbul ignore next */ []);
|
|
149
|
+
ariaLabel = input(void 0, ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
150
|
+
dt = input(void 0, ...ngDevMode ? [{ debugName: "dt" }] : /* istanbul ignore next */ []);
|
|
151
|
+
pt = input(void 0, ...ngDevMode ? [{ debugName: "pt" }] : /* istanbul ignore next */ []);
|
|
152
|
+
ptOptions = input(void 0, ...ngDevMode ? [{ debugName: "ptOptions" }] : /* istanbul ignore next */ []);
|
|
153
|
+
unstyled = input(void 0, {
|
|
154
|
+
...ngDevMode ? { debugName: "unstyled" } : /* istanbul ignore next */ {},
|
|
155
|
+
transform: optionalBoolean
|
|
156
|
+
});
|
|
157
|
+
pageChange = output();
|
|
158
|
+
startTemplate = contentChild(TxPaginatorStart, ...ngDevMode ? [{ debugName: "startTemplate" }] : /* istanbul ignore next */ []);
|
|
159
|
+
endTemplate = contentChild(TxPaginatorEnd, ...ngDevMode ? [{ debugName: "endTemplate" }] : /* istanbul ignore next */ []);
|
|
160
|
+
translations = injectTranslations();
|
|
161
|
+
isUnstyled = injectUnstyled(this.unstyled);
|
|
162
|
+
passThrough = injectPassThrough("paginator", this, this.pt, this.ptOptions);
|
|
163
|
+
hostStyle = computed(() => ({
|
|
164
|
+
...toStyleObject(this.dt(), "--tx-paginator"),
|
|
165
|
+
...this.passThrough().root?.style
|
|
166
|
+
}), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
|
|
167
|
+
compact = toSignal(toObservable(this.compactBreakpoint).pipe(switchMap((breakpoint) => breakpoint ? this.breakpointObserver.observe(`(width < ${breakpoint})`).pipe(map(({ matches }) => matches)) : of(false))), { initialValue: false });
|
|
168
|
+
pageCount = computed(() => pageCountOf(this.totalRecords(), this.rows()), ...ngDevMode ? [{ debugName: "pageCount" }] : /* istanbul ignore next */ []);
|
|
169
|
+
page = computed(() => Math.min(firstToPage(this.first(), this.rows()), Math.max(0, this.pageCount() - 1)), ...ngDevMode ? [{ debugName: "page" }] : /* istanbul ignore next */ []);
|
|
170
|
+
empty = computed(() => this.pageCount() === 0, ...ngDevMode ? [{ debugName: "empty" }] : /* istanbul ignore next */ []);
|
|
171
|
+
isFirstPage = computed(() => this.empty() || this.page() === 0, ...ngDevMode ? [{ debugName: "isFirstPage" }] : /* istanbul ignore next */ []);
|
|
172
|
+
isLastPage = computed(() => this.empty() || this.page() === this.pageCount() - 1, ...ngDevMode ? [{ debugName: "isLastPage" }] : /* istanbul ignore next */ []);
|
|
173
|
+
pageLinks = computed(() => pageLinksOf(this.page(), this.pageCount(), this.compact() ? this.compactPageLinkSize() : this.pageLinkSize()), ...ngDevMode ? [{ debugName: "pageLinks" }] : /* istanbul ignore next */ []);
|
|
174
|
+
showEnds = computed(() => this.showFirstLastIcon() && !this.compact(), ...ngDevMode ? [{ debugName: "showEnds" }] : /* istanbul ignore next */ []);
|
|
175
|
+
visible = computed(() => this.alwaysShow() || this.pageCount() > 1, ...ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []);
|
|
176
|
+
state = computed(() => ({
|
|
177
|
+
page: this.page(),
|
|
178
|
+
first: this.first(),
|
|
179
|
+
rows: this.rows(),
|
|
180
|
+
pageCount: this.pageCount()
|
|
181
|
+
}), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
|
|
182
|
+
rowsPerPageItems = computed(() => {
|
|
183
|
+
const options = this.rowsPerPageOptions();
|
|
184
|
+
if (!options?.length) return [];
|
|
185
|
+
const rows = this.rows();
|
|
186
|
+
const items = options.map((option) => typeof option === "number" ? {
|
|
187
|
+
label: this.format(option),
|
|
188
|
+
value: option
|
|
189
|
+
} : {
|
|
190
|
+
label: option.showAll,
|
|
191
|
+
value: this.totalRecords()
|
|
192
|
+
});
|
|
193
|
+
const numbers = options.filter((option) => typeof option === "number");
|
|
194
|
+
if (rows > 0 && !items.some((item) => item.value === rows)) return [...[...numbers, rows].sort((a, b) => a - b).map((value) => ({
|
|
195
|
+
label: this.format(value),
|
|
196
|
+
value
|
|
197
|
+
})), ...items.filter((_, index) => typeof options[index] !== "number")];
|
|
198
|
+
return items;
|
|
199
|
+
}, ...ngDevMode ? [{ debugName: "rowsPerPageItems" }] : /* istanbul ignore next */ []);
|
|
200
|
+
jumpToPageItems = computed(() => Array.from({ length: this.pageCount() }, (_, index) => ({
|
|
201
|
+
label: this.format(index + 1),
|
|
202
|
+
value: index
|
|
203
|
+
})), ...ngDevMode ? [{ debugName: "jumpToPageItems" }] : /* istanbul ignore next */ []);
|
|
204
|
+
currentPageReport = computed(() => {
|
|
205
|
+
const total = this.totalRecords();
|
|
206
|
+
const first = this.first();
|
|
207
|
+
const values = {
|
|
208
|
+
currentPage: this.empty() ? 0 : this.page() + 1,
|
|
209
|
+
totalPages: this.pageCount(),
|
|
210
|
+
first: total > 0 ? first + 1 : 0,
|
|
211
|
+
last: Math.min(first + this.rows(), total),
|
|
212
|
+
rows: this.rows(),
|
|
213
|
+
totalRecords: total
|
|
214
|
+
};
|
|
215
|
+
return (this.currentPageReportTemplate() ?? this.translations().currentPageReport).replace(/\{(\w+)\}/g, (match, key) => key in values ? this.format(values[key]) : match);
|
|
216
|
+
}, ...ngDevMode ? [{ debugName: "currentPageReport" }] : /* istanbul ignore next */ []);
|
|
217
|
+
totalLabel = computed(() => this.translations().totalCount.replace("{count}", this.format(this.totalRecords())), ...ngDevMode ? [{ debugName: "totalLabel" }] : /* istanbul ignore next */ []);
|
|
218
|
+
constructor() {
|
|
219
|
+
effect(() => {
|
|
220
|
+
const total = this.totalRecords();
|
|
221
|
+
const pageCount = this.pageCount();
|
|
222
|
+
const first = untracked(this.first);
|
|
223
|
+
if (total > 0 && first >= total && pageCount > 0) untracked(() => this.changePage(pageCount - 1));
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
changePage(page) {
|
|
227
|
+
const pageCount = this.pageCount();
|
|
228
|
+
if (this.disabled() || page < 0 || page >= pageCount) return;
|
|
229
|
+
const first = pageToFirst(page, this.rows());
|
|
230
|
+
if (first === this.first() && page === this.page()) return;
|
|
231
|
+
this.first.set(first);
|
|
232
|
+
this.pageChange.emit({
|
|
233
|
+
page,
|
|
234
|
+
first,
|
|
235
|
+
rows: this.rows(),
|
|
236
|
+
pageCount
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
changeRows(rows) {
|
|
240
|
+
if (rows === null || rows <= 0 || rows === this.rows()) return;
|
|
241
|
+
const page = firstToPage(this.first(), rows);
|
|
242
|
+
const first = pageToFirst(page, rows);
|
|
243
|
+
this.rows.set(rows);
|
|
244
|
+
this.first.set(first);
|
|
245
|
+
this.pageChange.emit({
|
|
246
|
+
page,
|
|
247
|
+
first,
|
|
248
|
+
rows,
|
|
249
|
+
pageCount: pageCountOf(this.totalRecords(), rows)
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
jumpTo(input) {
|
|
253
|
+
const value = Number.parseInt(input.value, 10);
|
|
254
|
+
if (Number.isNaN(value)) {
|
|
255
|
+
input.value = String(this.page() + 1);
|
|
256
|
+
return;
|
|
257
|
+
}
|
|
258
|
+
const page = Math.min(Math.max(value, 1), Math.max(this.pageCount(), 1)) - 1;
|
|
259
|
+
input.value = String(page + 1);
|
|
260
|
+
this.changePage(page);
|
|
261
|
+
}
|
|
262
|
+
pageLabel(page) {
|
|
263
|
+
return this.translations().pageNumber.replace("{page}", this.format(page + 1));
|
|
264
|
+
}
|
|
265
|
+
format(value) {
|
|
266
|
+
return new Intl.NumberFormat(this.locale() ?? this.localeService.locale().intl, { useGrouping: false }).format(value);
|
|
267
|
+
}
|
|
268
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
269
|
+
minVersion: "12.0.0",
|
|
270
|
+
version: "22.2.3",
|
|
271
|
+
ngImport: i0,
|
|
272
|
+
type: TxPaginator,
|
|
273
|
+
deps: [],
|
|
274
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
275
|
+
});
|
|
276
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
277
|
+
minVersion: "17.0.0",
|
|
278
|
+
version: "22.2.3",
|
|
279
|
+
type: TxPaginator,
|
|
280
|
+
isStandalone: true,
|
|
281
|
+
selector: "tx-paginator",
|
|
282
|
+
inputs: {
|
|
283
|
+
first: {
|
|
284
|
+
classPropertyName: "first",
|
|
285
|
+
publicName: "first",
|
|
286
|
+
isSignal: true,
|
|
287
|
+
isRequired: false,
|
|
288
|
+
transformFunction: null
|
|
289
|
+
},
|
|
290
|
+
rows: {
|
|
291
|
+
classPropertyName: "rows",
|
|
292
|
+
publicName: "rows",
|
|
293
|
+
isSignal: true,
|
|
294
|
+
isRequired: false,
|
|
295
|
+
transformFunction: null
|
|
296
|
+
},
|
|
297
|
+
totalRecords: {
|
|
298
|
+
classPropertyName: "totalRecords",
|
|
299
|
+
publicName: "totalRecords",
|
|
300
|
+
isSignal: true,
|
|
301
|
+
isRequired: false,
|
|
302
|
+
transformFunction: null
|
|
303
|
+
},
|
|
304
|
+
pageLinkSize: {
|
|
305
|
+
classPropertyName: "pageLinkSize",
|
|
306
|
+
publicName: "pageLinkSize",
|
|
307
|
+
isSignal: true,
|
|
308
|
+
isRequired: false,
|
|
309
|
+
transformFunction: null
|
|
310
|
+
},
|
|
311
|
+
compactPageLinkSize: {
|
|
312
|
+
classPropertyName: "compactPageLinkSize",
|
|
313
|
+
publicName: "compactPageLinkSize",
|
|
314
|
+
isSignal: true,
|
|
315
|
+
isRequired: false,
|
|
316
|
+
transformFunction: null
|
|
317
|
+
},
|
|
318
|
+
compactBreakpoint: {
|
|
319
|
+
classPropertyName: "compactBreakpoint",
|
|
320
|
+
publicName: "compactBreakpoint",
|
|
321
|
+
isSignal: true,
|
|
322
|
+
isRequired: false,
|
|
323
|
+
transformFunction: null
|
|
324
|
+
},
|
|
325
|
+
rowsPerPageOptions: {
|
|
326
|
+
classPropertyName: "rowsPerPageOptions",
|
|
327
|
+
publicName: "rowsPerPageOptions",
|
|
328
|
+
isSignal: true,
|
|
329
|
+
isRequired: false,
|
|
330
|
+
transformFunction: null
|
|
331
|
+
},
|
|
332
|
+
alwaysShow: {
|
|
333
|
+
classPropertyName: "alwaysShow",
|
|
334
|
+
publicName: "alwaysShow",
|
|
335
|
+
isSignal: true,
|
|
336
|
+
isRequired: false,
|
|
337
|
+
transformFunction: null
|
|
338
|
+
},
|
|
339
|
+
showFirstLastIcon: {
|
|
340
|
+
classPropertyName: "showFirstLastIcon",
|
|
341
|
+
publicName: "showFirstLastIcon",
|
|
342
|
+
isSignal: true,
|
|
343
|
+
isRequired: false,
|
|
344
|
+
transformFunction: null
|
|
345
|
+
},
|
|
346
|
+
showPageLinks: {
|
|
347
|
+
classPropertyName: "showPageLinks",
|
|
348
|
+
publicName: "showPageLinks",
|
|
349
|
+
isSignal: true,
|
|
350
|
+
isRequired: false,
|
|
351
|
+
transformFunction: null
|
|
352
|
+
},
|
|
353
|
+
showCurrentPageReport: {
|
|
354
|
+
classPropertyName: "showCurrentPageReport",
|
|
355
|
+
publicName: "showCurrentPageReport",
|
|
356
|
+
isSignal: true,
|
|
357
|
+
isRequired: false,
|
|
358
|
+
transformFunction: null
|
|
359
|
+
},
|
|
360
|
+
currentPageReportTemplate: {
|
|
361
|
+
classPropertyName: "currentPageReportTemplate",
|
|
362
|
+
publicName: "currentPageReportTemplate",
|
|
363
|
+
isSignal: true,
|
|
364
|
+
isRequired: false,
|
|
365
|
+
transformFunction: null
|
|
366
|
+
},
|
|
367
|
+
showJumpToPageDropdown: {
|
|
368
|
+
classPropertyName: "showJumpToPageDropdown",
|
|
369
|
+
publicName: "showJumpToPageDropdown",
|
|
370
|
+
isSignal: true,
|
|
371
|
+
isRequired: false,
|
|
372
|
+
transformFunction: null
|
|
373
|
+
},
|
|
374
|
+
showJumpToPageInput: {
|
|
375
|
+
classPropertyName: "showJumpToPageInput",
|
|
376
|
+
publicName: "showJumpToPageInput",
|
|
377
|
+
isSignal: true,
|
|
378
|
+
isRequired: false,
|
|
379
|
+
transformFunction: null
|
|
380
|
+
},
|
|
381
|
+
showTotal: {
|
|
382
|
+
classPropertyName: "showTotal",
|
|
383
|
+
publicName: "showTotal",
|
|
384
|
+
isSignal: true,
|
|
385
|
+
isRequired: false,
|
|
386
|
+
transformFunction: null
|
|
387
|
+
},
|
|
388
|
+
disabled: {
|
|
389
|
+
classPropertyName: "disabled",
|
|
390
|
+
publicName: "disabled",
|
|
391
|
+
isSignal: true,
|
|
392
|
+
isRequired: false,
|
|
393
|
+
transformFunction: null
|
|
394
|
+
},
|
|
395
|
+
locale: {
|
|
396
|
+
classPropertyName: "locale",
|
|
397
|
+
publicName: "locale",
|
|
398
|
+
isSignal: true,
|
|
399
|
+
isRequired: false,
|
|
400
|
+
transformFunction: null
|
|
401
|
+
},
|
|
402
|
+
dropdownScrollHeight: {
|
|
403
|
+
classPropertyName: "dropdownScrollHeight",
|
|
404
|
+
publicName: "dropdownScrollHeight",
|
|
405
|
+
isSignal: true,
|
|
406
|
+
isRequired: false,
|
|
407
|
+
transformFunction: null
|
|
408
|
+
},
|
|
409
|
+
firstPageIcon: {
|
|
410
|
+
classPropertyName: "firstPageIcon",
|
|
411
|
+
publicName: "firstPageIcon",
|
|
412
|
+
isSignal: true,
|
|
413
|
+
isRequired: false,
|
|
414
|
+
transformFunction: null
|
|
415
|
+
},
|
|
416
|
+
previousPageIcon: {
|
|
417
|
+
classPropertyName: "previousPageIcon",
|
|
418
|
+
publicName: "previousPageIcon",
|
|
419
|
+
isSignal: true,
|
|
420
|
+
isRequired: false,
|
|
421
|
+
transformFunction: null
|
|
422
|
+
},
|
|
423
|
+
nextPageIcon: {
|
|
424
|
+
classPropertyName: "nextPageIcon",
|
|
425
|
+
publicName: "nextPageIcon",
|
|
426
|
+
isSignal: true,
|
|
427
|
+
isRequired: false,
|
|
428
|
+
transformFunction: null
|
|
429
|
+
},
|
|
430
|
+
lastPageIcon: {
|
|
431
|
+
classPropertyName: "lastPageIcon",
|
|
432
|
+
publicName: "lastPageIcon",
|
|
433
|
+
isSignal: true,
|
|
434
|
+
isRequired: false,
|
|
435
|
+
transformFunction: null
|
|
436
|
+
},
|
|
437
|
+
ariaLabel: {
|
|
438
|
+
classPropertyName: "ariaLabel",
|
|
439
|
+
publicName: "ariaLabel",
|
|
440
|
+
isSignal: true,
|
|
441
|
+
isRequired: false,
|
|
442
|
+
transformFunction: null
|
|
443
|
+
},
|
|
444
|
+
dt: {
|
|
445
|
+
classPropertyName: "dt",
|
|
446
|
+
publicName: "dt",
|
|
447
|
+
isSignal: true,
|
|
448
|
+
isRequired: false,
|
|
449
|
+
transformFunction: null
|
|
450
|
+
},
|
|
451
|
+
pt: {
|
|
452
|
+
classPropertyName: "pt",
|
|
453
|
+
publicName: "pt",
|
|
454
|
+
isSignal: true,
|
|
455
|
+
isRequired: false,
|
|
456
|
+
transformFunction: null
|
|
457
|
+
},
|
|
458
|
+
ptOptions: {
|
|
459
|
+
classPropertyName: "ptOptions",
|
|
460
|
+
publicName: "ptOptions",
|
|
461
|
+
isSignal: true,
|
|
462
|
+
isRequired: false,
|
|
463
|
+
transformFunction: null
|
|
464
|
+
},
|
|
465
|
+
unstyled: {
|
|
466
|
+
classPropertyName: "unstyled",
|
|
467
|
+
publicName: "unstyled",
|
|
468
|
+
isSignal: true,
|
|
469
|
+
isRequired: false,
|
|
470
|
+
transformFunction: null
|
|
471
|
+
}
|
|
472
|
+
},
|
|
473
|
+
outputs: {
|
|
474
|
+
first: "firstChange",
|
|
475
|
+
rows: "rowsChange",
|
|
476
|
+
pageChange: "pageChange"
|
|
477
|
+
},
|
|
478
|
+
host: {
|
|
479
|
+
properties: {
|
|
480
|
+
"class": "passThrough().root?.class",
|
|
481
|
+
"style": "hostStyle()",
|
|
482
|
+
"attr.data-styled": "!isUnstyled() || null",
|
|
483
|
+
"class.tx-paginator--compact": "compact()",
|
|
484
|
+
"class.tx-paginator--with-total": "showTotal()",
|
|
485
|
+
"attr.hidden": "!visible() || null"
|
|
486
|
+
},
|
|
487
|
+
classAttribute: "tx-paginator"
|
|
488
|
+
},
|
|
489
|
+
queries: [{
|
|
490
|
+
propertyName: "startTemplate",
|
|
491
|
+
first: true,
|
|
492
|
+
predicate: TxPaginatorStart,
|
|
493
|
+
descendants: true,
|
|
494
|
+
isSignal: true
|
|
495
|
+
}, {
|
|
496
|
+
propertyName: "endTemplate",
|
|
497
|
+
first: true,
|
|
498
|
+
predicate: TxPaginatorEnd,
|
|
499
|
+
descendants: true,
|
|
500
|
+
isSignal: true
|
|
501
|
+
}],
|
|
502
|
+
ngImport: i0,
|
|
503
|
+
template: "@if (showTotal()) {\n <div class=\"tx-paginator__total\" [class]=\"passThrough().total?.class\" [style]=\"passThrough().total?.style\">{{ totalLabel() }}</div>\n}\n<nav\n class=\"tx-paginator__bar\"\n [class]=\"passThrough().bar?.class\"\n [style]=\"passThrough().bar?.style\"\n [attr.aria-label]=\"ariaLabel() ?? translations().pagination\"\n>\n @if (startTemplate(); as start) {\n <div class=\"tx-paginator__start\" [class]=\"passThrough().start?.class\" [style]=\"passThrough().start?.style\">\n <ng-container [ngTemplateOutlet]=\"start.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: state() }\" />\n </div>\n }\n @if (showCurrentPageReport()) {\n <span\n class=\"tx-paginator__report\"\n aria-live=\"polite\"\n [class]=\"passThrough().currentPageReport?.class\"\n [style]=\"passThrough().currentPageReport?.style\"\n >{{ currentPageReport() }}</span\n >\n }\n @if (showEnds()) {\n <button\n type=\"button\"\n class=\"tx-paginator__nav tx-paginator__first\"\n [class]=\"passThrough().first?.class\"\n [style]=\"passThrough().first?.style\"\n [disabled]=\"disabled() || isFirstPage()\"\n [attr.aria-label]=\"translations().firstPage\"\n (click)=\"changePage(0)\"\n >\n <tx-icon class=\"tx-paginator__icon\" aria-hidden=\"true\" [name]=\"firstPageIcon()\" />\n </button>\n }\n <button\n type=\"button\"\n class=\"tx-paginator__nav tx-paginator__previous\"\n [class]=\"passThrough().previous?.class\"\n [style]=\"passThrough().previous?.style\"\n [disabled]=\"disabled() || isFirstPage()\"\n [attr.aria-label]=\"translations().previousPage\"\n (click)=\"changePage(page() - 1)\"\n >\n <tx-icon class=\"tx-paginator__icon\" aria-hidden=\"true\" [name]=\"previousPageIcon()\" />\n </button>\n @if (showPageLinks()) {\n <span class=\"tx-paginator__pages\" [class]=\"passThrough().pages?.class\" [style]=\"passThrough().pages?.style\">\n @for (link of pageLinks(); track link) {\n <button\n type=\"button\"\n class=\"tx-paginator__nav tx-paginator__page\"\n [class.tx-paginator__page--selected]=\"link === page()\"\n [class]=\"passThrough().page?.class\"\n [style]=\"passThrough().page?.style\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"pageLabel(link)\"\n [attr.aria-current]=\"link === page() ? 'page' : null\"\n (click)=\"changePage(link)\"\n >\n {{ format(link + 1) }}\n </button>\n }\n </span>\n }\n @if (showJumpToPageDropdown() && !empty()) {\n <tx-select\n class=\"tx-paginator__jump-dropdown\"\n optionLabel=\"label\"\n optionValue=\"value\"\n [class]=\"passThrough().jumpToPageDropdown?.class\"\n [style]=\"passThrough().jumpToPageDropdown?.style\"\n [options]=\"jumpToPageItems()\"\n [scrollHeight]=\"dropdownScrollHeight()\"\n [ariaLabel]=\"translations().jumpToPage\"\n [unstyled]=\"isUnstyled()\"\n [disabled]=\"disabled()\"\n [ngModel]=\"page()\"\n (ngModelChange)=\"changePage($event)\"\n />\n }\n <button\n type=\"button\"\n class=\"tx-paginator__nav tx-paginator__next\"\n [class]=\"passThrough().next?.class\"\n [style]=\"passThrough().next?.style\"\n [disabled]=\"disabled() || isLastPage()\"\n [attr.aria-label]=\"translations().nextPage\"\n (click)=\"changePage(page() + 1)\"\n >\n <tx-icon class=\"tx-paginator__icon\" aria-hidden=\"true\" [name]=\"nextPageIcon()\" />\n </button>\n @if (showEnds()) {\n <button\n type=\"button\"\n class=\"tx-paginator__nav tx-paginator__last\"\n [class]=\"passThrough().last?.class\"\n [style]=\"passThrough().last?.style\"\n [disabled]=\"disabled() || isLastPage()\"\n [attr.aria-label]=\"translations().lastPage\"\n (click)=\"changePage(pageCount() - 1)\"\n >\n <tx-icon class=\"tx-paginator__icon\" aria-hidden=\"true\" [name]=\"lastPageIcon()\" />\n </button>\n }\n @if (showJumpToPageInput()) {\n <input\n #jumpInput\n txInput\n type=\"text\"\n inputmode=\"numeric\"\n class=\"tx-paginator__jump-input\"\n [class]=\"passThrough().jumpToPageInput?.class\"\n [style]=\"passThrough().jumpToPageInput?.style\"\n [value]=\"empty() ? '' : format(page() + 1)\"\n [disabled]=\"disabled() || empty()\"\n [unstyled]=\"isUnstyled()\"\n [attr.aria-label]=\"translations().jumpToPage\"\n (keydown.enter)=\"jumpTo(jumpInput)\"\n (blur)=\"jumpTo(jumpInput)\"\n />\n }\n @if (rowsPerPageItems().length) {\n <tx-select\n class=\"tx-paginator__rpp-dropdown\"\n optionLabel=\"label\"\n optionValue=\"value\"\n [class]=\"passThrough().rowsPerPageDropdown?.class\"\n [style]=\"passThrough().rowsPerPageDropdown?.style\"\n [options]=\"rowsPerPageItems()\"\n [scrollHeight]=\"dropdownScrollHeight()\"\n [ariaLabel]=\"translations().rowsPerPage\"\n [unstyled]=\"isUnstyled()\"\n [disabled]=\"disabled()\"\n [ngModel]=\"rows()\"\n (ngModelChange)=\"changeRows($event)\"\n />\n }\n @if (endTemplate(); as end) {\n <div class=\"tx-paginator__end\" [class]=\"passThrough().end?.class\" [style]=\"passThrough().end?.style\">\n <ng-container [ngTemplateOutlet]=\"end.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: state() }\" />\n </div>\n }\n</nav>\n",
|
|
504
|
+
styles: [":host{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center}:host([hidden]){display:none}.tx-paginator__bar{display:flex;flex-wrap:nowrap;align-items:center;justify-content:center;max-width:100%}.tx-paginator__pages{display:flex;align-items:center}.tx-paginator__start{margin-inline-end:auto}.tx-paginator__end{margin-inline-start:auto}.tx-paginator__nav{position:relative;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;margin:0;padding:0;border:0 none;font:inherit;cursor:pointer;-webkit-user-select:none;user-select:none}.tx-paginator__nav:disabled{cursor:default}.tx-paginator__first:dir(rtl),.tx-paginator__previous:dir(rtl),.tx-paginator__next:dir(rtl),.tx-paginator__last:dir(rtl){transform:rotate(180deg)}@media(width>=64rem){:host{flex-direction:row}.tx-paginator__total{position:absolute;inset-inline-start:0}}:host([data-styled]) .tx-paginator__total{margin:var(--tx-paginator-total-margin);color:var(--tx-paginator-total-color);font-size:var(--tx-paginator-total-font-size);font-weight:var(--tx-paginator-total-font-weight)}:host([data-styled]) .tx-paginator__bar{gap:var(--tx-paginator-gap);padding:var(--tx-paginator-padding);border-radius:var(--tx-paginator-border-radius);background:var(--tx-paginator-background);color:var(--tx-paginator-color)}:host([data-styled]) .tx-paginator__pages{gap:var(--tx-paginator-gap)}:host([data-styled]) .tx-paginator__nav{min-width:var(--tx-paginator-nav-button-width);height:var(--tx-paginator-nav-button-height);border-radius:var(--tx-paginator-nav-button-border-radius);background:var(--tx-paginator-nav-button-background);color:var(--tx-paginator-nav-button-color);font-size:var(--tx-paginator-nav-button-font-size);font-weight:var(--tx-paginator-nav-button-font-weight);transition:background var(--tx-paginator-transition-duration),color var(--tx-paginator-transition-duration),outline-color var(--tx-paginator-transition-duration)}:host([data-styled]) .tx-paginator__nav:focus-visible{outline:var(--tx-paginator-nav-button-focus-ring-width) var(--tx-paginator-nav-button-focus-ring-style) var(--tx-paginator-nav-button-focus-ring-color);outline-offset:var(--tx-paginator-nav-button-focus-ring-offset)}:host([data-styled]) .tx-paginator__nav:not(:disabled):not(.tx-paginator__page--selected):hover{background:var(--tx-paginator-nav-button-hover-background);color:var(--tx-paginator-nav-button-hover-color)}:host([data-styled]) .tx-paginator__nav:disabled{opacity:var(--tx-paginator-nav-button-disabled-opacity)}:host([data-styled]) .tx-paginator__page--selected{background:var(--tx-paginator-nav-button-selected-background);color:var(--tx-paginator-nav-button-selected-color)}:host([data-styled]) .tx-paginator__icon{--tx-icon-size: var(--tx-paginator-nav-button-icon-size)}:host([data-styled]) .tx-paginator__report{color:var(--tx-paginator-current-page-report-color);font-size:var(--tx-paginator-current-page-report-font-size);font-weight:var(--tx-paginator-current-page-report-font-weight);white-space:nowrap}:host([data-styled]) .tx-paginator__jump-input{max-width:var(--tx-paginator-jump-to-page-input-max-width);text-align:center}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-paginator__nav{transition:none}}\n"],
|
|
505
|
+
dependencies: [
|
|
506
|
+
{
|
|
507
|
+
kind: "directive",
|
|
508
|
+
type: NgTemplateOutlet,
|
|
509
|
+
selector: "[ngTemplateOutlet]",
|
|
510
|
+
inputs: [
|
|
511
|
+
"ngTemplateOutletContext",
|
|
512
|
+
"ngTemplateOutlet",
|
|
513
|
+
"ngTemplateOutletInjector"
|
|
514
|
+
]
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
kind: "ngmodule",
|
|
518
|
+
type: FormsModule
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
kind: "directive",
|
|
522
|
+
type: i1.NgControlStatus,
|
|
523
|
+
selector: "[formControlName],[ngModel],[formControl]"
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
kind: "directive",
|
|
527
|
+
type: i1.NgModel,
|
|
528
|
+
selector: "[ngModel]:not([formControlName]):not([formControl])",
|
|
529
|
+
inputs: [
|
|
530
|
+
"name",
|
|
531
|
+
"disabled",
|
|
532
|
+
"ngModel",
|
|
533
|
+
"ngModelOptions"
|
|
534
|
+
],
|
|
535
|
+
outputs: ["ngModelChange"],
|
|
536
|
+
exportAs: ["ngModel"]
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
kind: "component",
|
|
540
|
+
type: TxIcon,
|
|
541
|
+
selector: "tx-icon",
|
|
542
|
+
inputs: ["name"]
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
kind: "component",
|
|
546
|
+
type: TxSelect,
|
|
547
|
+
selector: "tx-select",
|
|
548
|
+
inputs: [
|
|
549
|
+
"options",
|
|
550
|
+
"editable",
|
|
551
|
+
"checkmark",
|
|
552
|
+
"dropdownIcon",
|
|
553
|
+
"dt",
|
|
554
|
+
"pt",
|
|
555
|
+
"ptOptions",
|
|
556
|
+
"unstyled"
|
|
557
|
+
],
|
|
558
|
+
outputs: ["changed"]
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
kind: "directive",
|
|
562
|
+
type: TxInput,
|
|
563
|
+
selector: "input[txInput], textarea[txInput]",
|
|
564
|
+
inputs: [
|
|
565
|
+
"invalid",
|
|
566
|
+
"size",
|
|
567
|
+
"variant",
|
|
568
|
+
"fluid",
|
|
569
|
+
"dt",
|
|
570
|
+
"pt",
|
|
571
|
+
"ptOptions",
|
|
572
|
+
"unstyled"
|
|
573
|
+
]
|
|
574
|
+
}
|
|
575
|
+
],
|
|
576
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
577
|
+
});
|
|
578
|
+
};
|
|
579
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
580
|
+
minVersion: "12.0.0",
|
|
581
|
+
version: "22.2.3",
|
|
582
|
+
ngImport: i0,
|
|
583
|
+
type: TxPaginator,
|
|
584
|
+
decorators: [{
|
|
585
|
+
type: Component,
|
|
586
|
+
args: [{
|
|
587
|
+
selector: "tx-paginator",
|
|
588
|
+
imports: [
|
|
589
|
+
NgTemplateOutlet,
|
|
590
|
+
FormsModule,
|
|
591
|
+
TxIcon,
|
|
592
|
+
TxSelect,
|
|
593
|
+
TxInput
|
|
594
|
+
],
|
|
595
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
596
|
+
host: {
|
|
597
|
+
class: "tx-paginator",
|
|
598
|
+
"[class]": "passThrough().root?.class",
|
|
599
|
+
"[style]": "hostStyle()",
|
|
600
|
+
"[attr.data-styled]": "!isUnstyled() || null",
|
|
601
|
+
"[class.tx-paginator--compact]": "compact()",
|
|
602
|
+
"[class.tx-paginator--with-total]": "showTotal()",
|
|
603
|
+
"[attr.hidden]": "!visible() || null"
|
|
604
|
+
},
|
|
605
|
+
template: "@if (showTotal()) {\n <div class=\"tx-paginator__total\" [class]=\"passThrough().total?.class\" [style]=\"passThrough().total?.style\">{{ totalLabel() }}</div>\n}\n<nav\n class=\"tx-paginator__bar\"\n [class]=\"passThrough().bar?.class\"\n [style]=\"passThrough().bar?.style\"\n [attr.aria-label]=\"ariaLabel() ?? translations().pagination\"\n>\n @if (startTemplate(); as start) {\n <div class=\"tx-paginator__start\" [class]=\"passThrough().start?.class\" [style]=\"passThrough().start?.style\">\n <ng-container [ngTemplateOutlet]=\"start.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: state() }\" />\n </div>\n }\n @if (showCurrentPageReport()) {\n <span\n class=\"tx-paginator__report\"\n aria-live=\"polite\"\n [class]=\"passThrough().currentPageReport?.class\"\n [style]=\"passThrough().currentPageReport?.style\"\n >{{ currentPageReport() }}</span\n >\n }\n @if (showEnds()) {\n <button\n type=\"button\"\n class=\"tx-paginator__nav tx-paginator__first\"\n [class]=\"passThrough().first?.class\"\n [style]=\"passThrough().first?.style\"\n [disabled]=\"disabled() || isFirstPage()\"\n [attr.aria-label]=\"translations().firstPage\"\n (click)=\"changePage(0)\"\n >\n <tx-icon class=\"tx-paginator__icon\" aria-hidden=\"true\" [name]=\"firstPageIcon()\" />\n </button>\n }\n <button\n type=\"button\"\n class=\"tx-paginator__nav tx-paginator__previous\"\n [class]=\"passThrough().previous?.class\"\n [style]=\"passThrough().previous?.style\"\n [disabled]=\"disabled() || isFirstPage()\"\n [attr.aria-label]=\"translations().previousPage\"\n (click)=\"changePage(page() - 1)\"\n >\n <tx-icon class=\"tx-paginator__icon\" aria-hidden=\"true\" [name]=\"previousPageIcon()\" />\n </button>\n @if (showPageLinks()) {\n <span class=\"tx-paginator__pages\" [class]=\"passThrough().pages?.class\" [style]=\"passThrough().pages?.style\">\n @for (link of pageLinks(); track link) {\n <button\n type=\"button\"\n class=\"tx-paginator__nav tx-paginator__page\"\n [class.tx-paginator__page--selected]=\"link === page()\"\n [class]=\"passThrough().page?.class\"\n [style]=\"passThrough().page?.style\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"pageLabel(link)\"\n [attr.aria-current]=\"link === page() ? 'page' : null\"\n (click)=\"changePage(link)\"\n >\n {{ format(link + 1) }}\n </button>\n }\n </span>\n }\n @if (showJumpToPageDropdown() && !empty()) {\n <tx-select\n class=\"tx-paginator__jump-dropdown\"\n optionLabel=\"label\"\n optionValue=\"value\"\n [class]=\"passThrough().jumpToPageDropdown?.class\"\n [style]=\"passThrough().jumpToPageDropdown?.style\"\n [options]=\"jumpToPageItems()\"\n [scrollHeight]=\"dropdownScrollHeight()\"\n [ariaLabel]=\"translations().jumpToPage\"\n [unstyled]=\"isUnstyled()\"\n [disabled]=\"disabled()\"\n [ngModel]=\"page()\"\n (ngModelChange)=\"changePage($event)\"\n />\n }\n <button\n type=\"button\"\n class=\"tx-paginator__nav tx-paginator__next\"\n [class]=\"passThrough().next?.class\"\n [style]=\"passThrough().next?.style\"\n [disabled]=\"disabled() || isLastPage()\"\n [attr.aria-label]=\"translations().nextPage\"\n (click)=\"changePage(page() + 1)\"\n >\n <tx-icon class=\"tx-paginator__icon\" aria-hidden=\"true\" [name]=\"nextPageIcon()\" />\n </button>\n @if (showEnds()) {\n <button\n type=\"button\"\n class=\"tx-paginator__nav tx-paginator__last\"\n [class]=\"passThrough().last?.class\"\n [style]=\"passThrough().last?.style\"\n [disabled]=\"disabled() || isLastPage()\"\n [attr.aria-label]=\"translations().lastPage\"\n (click)=\"changePage(pageCount() - 1)\"\n >\n <tx-icon class=\"tx-paginator__icon\" aria-hidden=\"true\" [name]=\"lastPageIcon()\" />\n </button>\n }\n @if (showJumpToPageInput()) {\n <input\n #jumpInput\n txInput\n type=\"text\"\n inputmode=\"numeric\"\n class=\"tx-paginator__jump-input\"\n [class]=\"passThrough().jumpToPageInput?.class\"\n [style]=\"passThrough().jumpToPageInput?.style\"\n [value]=\"empty() ? '' : format(page() + 1)\"\n [disabled]=\"disabled() || empty()\"\n [unstyled]=\"isUnstyled()\"\n [attr.aria-label]=\"translations().jumpToPage\"\n (keydown.enter)=\"jumpTo(jumpInput)\"\n (blur)=\"jumpTo(jumpInput)\"\n />\n }\n @if (rowsPerPageItems().length) {\n <tx-select\n class=\"tx-paginator__rpp-dropdown\"\n optionLabel=\"label\"\n optionValue=\"value\"\n [class]=\"passThrough().rowsPerPageDropdown?.class\"\n [style]=\"passThrough().rowsPerPageDropdown?.style\"\n [options]=\"rowsPerPageItems()\"\n [scrollHeight]=\"dropdownScrollHeight()\"\n [ariaLabel]=\"translations().rowsPerPage\"\n [unstyled]=\"isUnstyled()\"\n [disabled]=\"disabled()\"\n [ngModel]=\"rows()\"\n (ngModelChange)=\"changeRows($event)\"\n />\n }\n @if (endTemplate(); as end) {\n <div class=\"tx-paginator__end\" [class]=\"passThrough().end?.class\" [style]=\"passThrough().end?.style\">\n <ng-container [ngTemplateOutlet]=\"end.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: state() }\" />\n </div>\n }\n</nav>\n",
|
|
606
|
+
styles: [":host{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center}:host([hidden]){display:none}.tx-paginator__bar{display:flex;flex-wrap:nowrap;align-items:center;justify-content:center;max-width:100%}.tx-paginator__pages{display:flex;align-items:center}.tx-paginator__start{margin-inline-end:auto}.tx-paginator__end{margin-inline-start:auto}.tx-paginator__nav{position:relative;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;margin:0;padding:0;border:0 none;font:inherit;cursor:pointer;-webkit-user-select:none;user-select:none}.tx-paginator__nav:disabled{cursor:default}.tx-paginator__first:dir(rtl),.tx-paginator__previous:dir(rtl),.tx-paginator__next:dir(rtl),.tx-paginator__last:dir(rtl){transform:rotate(180deg)}@media(width>=64rem){:host{flex-direction:row}.tx-paginator__total{position:absolute;inset-inline-start:0}}:host([data-styled]) .tx-paginator__total{margin:var(--tx-paginator-total-margin);color:var(--tx-paginator-total-color);font-size:var(--tx-paginator-total-font-size);font-weight:var(--tx-paginator-total-font-weight)}:host([data-styled]) .tx-paginator__bar{gap:var(--tx-paginator-gap);padding:var(--tx-paginator-padding);border-radius:var(--tx-paginator-border-radius);background:var(--tx-paginator-background);color:var(--tx-paginator-color)}:host([data-styled]) .tx-paginator__pages{gap:var(--tx-paginator-gap)}:host([data-styled]) .tx-paginator__nav{min-width:var(--tx-paginator-nav-button-width);height:var(--tx-paginator-nav-button-height);border-radius:var(--tx-paginator-nav-button-border-radius);background:var(--tx-paginator-nav-button-background);color:var(--tx-paginator-nav-button-color);font-size:var(--tx-paginator-nav-button-font-size);font-weight:var(--tx-paginator-nav-button-font-weight);transition:background var(--tx-paginator-transition-duration),color var(--tx-paginator-transition-duration),outline-color var(--tx-paginator-transition-duration)}:host([data-styled]) .tx-paginator__nav:focus-visible{outline:var(--tx-paginator-nav-button-focus-ring-width) var(--tx-paginator-nav-button-focus-ring-style) var(--tx-paginator-nav-button-focus-ring-color);outline-offset:var(--tx-paginator-nav-button-focus-ring-offset)}:host([data-styled]) .tx-paginator__nav:not(:disabled):not(.tx-paginator__page--selected):hover{background:var(--tx-paginator-nav-button-hover-background);color:var(--tx-paginator-nav-button-hover-color)}:host([data-styled]) .tx-paginator__nav:disabled{opacity:var(--tx-paginator-nav-button-disabled-opacity)}:host([data-styled]) .tx-paginator__page--selected{background:var(--tx-paginator-nav-button-selected-background);color:var(--tx-paginator-nav-button-selected-color)}:host([data-styled]) .tx-paginator__icon{--tx-icon-size: var(--tx-paginator-nav-button-icon-size)}:host([data-styled]) .tx-paginator__report{color:var(--tx-paginator-current-page-report-color);font-size:var(--tx-paginator-current-page-report-font-size);font-weight:var(--tx-paginator-current-page-report-font-weight);white-space:nowrap}:host([data-styled]) .tx-paginator__jump-input{max-width:var(--tx-paginator-jump-to-page-input-max-width);text-align:center}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-paginator__nav{transition:none}}\n"]
|
|
607
|
+
}]
|
|
608
|
+
}],
|
|
609
|
+
ctorParameters: () => [],
|
|
610
|
+
propDecorators: {
|
|
611
|
+
first: [{
|
|
612
|
+
type: i0.Input,
|
|
613
|
+
args: [{
|
|
614
|
+
isSignal: true,
|
|
615
|
+
alias: "first",
|
|
616
|
+
required: false
|
|
617
|
+
}]
|
|
618
|
+
}, {
|
|
619
|
+
type: i0.Output,
|
|
620
|
+
args: ["firstChange"]
|
|
621
|
+
}],
|
|
622
|
+
rows: [{
|
|
623
|
+
type: i0.Input,
|
|
624
|
+
args: [{
|
|
625
|
+
isSignal: true,
|
|
626
|
+
alias: "rows",
|
|
627
|
+
required: false
|
|
628
|
+
}]
|
|
629
|
+
}, {
|
|
630
|
+
type: i0.Output,
|
|
631
|
+
args: ["rowsChange"]
|
|
632
|
+
}],
|
|
633
|
+
totalRecords: [{
|
|
634
|
+
type: i0.Input,
|
|
635
|
+
args: [{
|
|
636
|
+
isSignal: true,
|
|
637
|
+
alias: "totalRecords",
|
|
638
|
+
required: false
|
|
639
|
+
}]
|
|
640
|
+
}],
|
|
641
|
+
pageLinkSize: [{
|
|
642
|
+
type: i0.Input,
|
|
643
|
+
args: [{
|
|
644
|
+
isSignal: true,
|
|
645
|
+
alias: "pageLinkSize",
|
|
646
|
+
required: false
|
|
647
|
+
}]
|
|
648
|
+
}],
|
|
649
|
+
compactPageLinkSize: [{
|
|
650
|
+
type: i0.Input,
|
|
651
|
+
args: [{
|
|
652
|
+
isSignal: true,
|
|
653
|
+
alias: "compactPageLinkSize",
|
|
654
|
+
required: false
|
|
655
|
+
}]
|
|
656
|
+
}],
|
|
657
|
+
compactBreakpoint: [{
|
|
658
|
+
type: i0.Input,
|
|
659
|
+
args: [{
|
|
660
|
+
isSignal: true,
|
|
661
|
+
alias: "compactBreakpoint",
|
|
662
|
+
required: false
|
|
663
|
+
}]
|
|
664
|
+
}],
|
|
665
|
+
rowsPerPageOptions: [{
|
|
666
|
+
type: i0.Input,
|
|
667
|
+
args: [{
|
|
668
|
+
isSignal: true,
|
|
669
|
+
alias: "rowsPerPageOptions",
|
|
670
|
+
required: false
|
|
671
|
+
}]
|
|
672
|
+
}],
|
|
673
|
+
alwaysShow: [{
|
|
674
|
+
type: i0.Input,
|
|
675
|
+
args: [{
|
|
676
|
+
isSignal: true,
|
|
677
|
+
alias: "alwaysShow",
|
|
678
|
+
required: false
|
|
679
|
+
}]
|
|
680
|
+
}],
|
|
681
|
+
showFirstLastIcon: [{
|
|
682
|
+
type: i0.Input,
|
|
683
|
+
args: [{
|
|
684
|
+
isSignal: true,
|
|
685
|
+
alias: "showFirstLastIcon",
|
|
686
|
+
required: false
|
|
687
|
+
}]
|
|
688
|
+
}],
|
|
689
|
+
showPageLinks: [{
|
|
690
|
+
type: i0.Input,
|
|
691
|
+
args: [{
|
|
692
|
+
isSignal: true,
|
|
693
|
+
alias: "showPageLinks",
|
|
694
|
+
required: false
|
|
695
|
+
}]
|
|
696
|
+
}],
|
|
697
|
+
showCurrentPageReport: [{
|
|
698
|
+
type: i0.Input,
|
|
699
|
+
args: [{
|
|
700
|
+
isSignal: true,
|
|
701
|
+
alias: "showCurrentPageReport",
|
|
702
|
+
required: false
|
|
703
|
+
}]
|
|
704
|
+
}],
|
|
705
|
+
currentPageReportTemplate: [{
|
|
706
|
+
type: i0.Input,
|
|
707
|
+
args: [{
|
|
708
|
+
isSignal: true,
|
|
709
|
+
alias: "currentPageReportTemplate",
|
|
710
|
+
required: false
|
|
711
|
+
}]
|
|
712
|
+
}],
|
|
713
|
+
showJumpToPageDropdown: [{
|
|
714
|
+
type: i0.Input,
|
|
715
|
+
args: [{
|
|
716
|
+
isSignal: true,
|
|
717
|
+
alias: "showJumpToPageDropdown",
|
|
718
|
+
required: false
|
|
719
|
+
}]
|
|
720
|
+
}],
|
|
721
|
+
showJumpToPageInput: [{
|
|
722
|
+
type: i0.Input,
|
|
723
|
+
args: [{
|
|
724
|
+
isSignal: true,
|
|
725
|
+
alias: "showJumpToPageInput",
|
|
726
|
+
required: false
|
|
727
|
+
}]
|
|
728
|
+
}],
|
|
729
|
+
showTotal: [{
|
|
730
|
+
type: i0.Input,
|
|
731
|
+
args: [{
|
|
732
|
+
isSignal: true,
|
|
733
|
+
alias: "showTotal",
|
|
734
|
+
required: false
|
|
735
|
+
}]
|
|
736
|
+
}],
|
|
737
|
+
disabled: [{
|
|
738
|
+
type: i0.Input,
|
|
739
|
+
args: [{
|
|
740
|
+
isSignal: true,
|
|
741
|
+
alias: "disabled",
|
|
742
|
+
required: false
|
|
743
|
+
}]
|
|
744
|
+
}],
|
|
745
|
+
locale: [{
|
|
746
|
+
type: i0.Input,
|
|
747
|
+
args: [{
|
|
748
|
+
isSignal: true,
|
|
749
|
+
alias: "locale",
|
|
750
|
+
required: false
|
|
751
|
+
}]
|
|
752
|
+
}],
|
|
753
|
+
dropdownScrollHeight: [{
|
|
754
|
+
type: i0.Input,
|
|
755
|
+
args: [{
|
|
756
|
+
isSignal: true,
|
|
757
|
+
alias: "dropdownScrollHeight",
|
|
758
|
+
required: false
|
|
759
|
+
}]
|
|
760
|
+
}],
|
|
761
|
+
firstPageIcon: [{
|
|
762
|
+
type: i0.Input,
|
|
763
|
+
args: [{
|
|
764
|
+
isSignal: true,
|
|
765
|
+
alias: "firstPageIcon",
|
|
766
|
+
required: false
|
|
767
|
+
}]
|
|
768
|
+
}],
|
|
769
|
+
previousPageIcon: [{
|
|
770
|
+
type: i0.Input,
|
|
771
|
+
args: [{
|
|
772
|
+
isSignal: true,
|
|
773
|
+
alias: "previousPageIcon",
|
|
774
|
+
required: false
|
|
775
|
+
}]
|
|
776
|
+
}],
|
|
777
|
+
nextPageIcon: [{
|
|
778
|
+
type: i0.Input,
|
|
779
|
+
args: [{
|
|
780
|
+
isSignal: true,
|
|
781
|
+
alias: "nextPageIcon",
|
|
782
|
+
required: false
|
|
783
|
+
}]
|
|
784
|
+
}],
|
|
785
|
+
lastPageIcon: [{
|
|
786
|
+
type: i0.Input,
|
|
787
|
+
args: [{
|
|
788
|
+
isSignal: true,
|
|
789
|
+
alias: "lastPageIcon",
|
|
790
|
+
required: false
|
|
791
|
+
}]
|
|
792
|
+
}],
|
|
793
|
+
ariaLabel: [{
|
|
794
|
+
type: i0.Input,
|
|
795
|
+
args: [{
|
|
796
|
+
isSignal: true,
|
|
797
|
+
alias: "ariaLabel",
|
|
798
|
+
required: false
|
|
799
|
+
}]
|
|
800
|
+
}],
|
|
801
|
+
dt: [{
|
|
802
|
+
type: i0.Input,
|
|
803
|
+
args: [{
|
|
804
|
+
isSignal: true,
|
|
805
|
+
alias: "dt",
|
|
806
|
+
required: false
|
|
807
|
+
}]
|
|
808
|
+
}],
|
|
809
|
+
pt: [{
|
|
810
|
+
type: i0.Input,
|
|
811
|
+
args: [{
|
|
812
|
+
isSignal: true,
|
|
813
|
+
alias: "pt",
|
|
814
|
+
required: false
|
|
815
|
+
}]
|
|
816
|
+
}],
|
|
817
|
+
ptOptions: [{
|
|
818
|
+
type: i0.Input,
|
|
819
|
+
args: [{
|
|
820
|
+
isSignal: true,
|
|
821
|
+
alias: "ptOptions",
|
|
822
|
+
required: false
|
|
823
|
+
}]
|
|
824
|
+
}],
|
|
825
|
+
unstyled: [{
|
|
826
|
+
type: i0.Input,
|
|
827
|
+
args: [{
|
|
828
|
+
isSignal: true,
|
|
829
|
+
alias: "unstyled",
|
|
830
|
+
required: false
|
|
831
|
+
}]
|
|
832
|
+
}],
|
|
833
|
+
pageChange: [{
|
|
834
|
+
type: i0.Output,
|
|
835
|
+
args: ["pageChange"]
|
|
836
|
+
}],
|
|
837
|
+
startTemplate: [{
|
|
838
|
+
type: i0.ContentChild,
|
|
839
|
+
args: [i0.forwardRef(() => TxPaginatorStart), { isSignal: true }]
|
|
840
|
+
}],
|
|
841
|
+
endTemplate: [{
|
|
842
|
+
type: i0.ContentChild,
|
|
843
|
+
args: [i0.forwardRef(() => TxPaginatorEnd), { isSignal: true }]
|
|
844
|
+
}]
|
|
845
|
+
}
|
|
846
|
+
});
|
|
847
|
+
export { TxPaginator, TxPaginatorEnd, TxPaginatorStart, firstToPage, pageCountOf, pageLinksOf, pageToFirst };
|
|
848
|
+
|
|
849
|
+
//# sourceMappingURL=tectra-ng-ui-paginator.mjs.map
|