@tedi-design-system/angular 6.4.0 → 6.5.0-rc.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/community/components/navigation/pagination/pagination.component.d.ts +3 -0
- package/community/components/navigation/pagination/pagination.component.d.ts.map +1 -1
- package/fesm2022/tedi-design-system-angular-community.mjs +3 -0
- package/fesm2022/tedi-design-system-angular-community.mjs.map +1 -1
- package/fesm2022/tedi-design-system-angular-tedi.mjs +743 -171
- package/fesm2022/tedi-design-system-angular-tedi.mjs.map +1 -1
- package/package.json +1 -1
- package/tedi/components/navigation/index.d.ts +1 -0
- package/tedi/components/navigation/index.d.ts.map +1 -1
- package/tedi/components/navigation/pagination/index.d.ts +5 -0
- package/tedi/components/navigation/pagination/index.d.ts.map +1 -0
- package/tedi/components/navigation/pagination/pagination-option-picker-modal/pagination-option-picker-modal.component.d.ts +31 -0
- package/tedi/components/navigation/pagination/pagination-option-picker-modal/pagination-option-picker-modal.component.d.ts.map +1 -0
- package/tedi/components/navigation/pagination/pagination-results.directive.d.ts +17 -0
- package/tedi/components/navigation/pagination/pagination-results.directive.d.ts.map +1 -0
- package/tedi/components/navigation/pagination/pagination.component.d.ts +182 -0
- package/tedi/components/navigation/pagination/pagination.component.d.ts.map +1 -0
- package/tedi/components/navigation/pagination/pagination.types.d.ts +48 -0
- package/tedi/components/navigation/pagination/pagination.types.d.ts.map +1 -0
- package/tedi/components/navigation/pagination/pagination.utils.d.ts +24 -0
- package/tedi/components/navigation/pagination/pagination.utils.d.ts.map +1 -0
- package/tedi/components/overlay/modal/modal-header/modal-header.component.d.ts +15 -1
- package/tedi/components/overlay/modal/modal-header/modal-header.component.d.ts.map +1 -1
- package/tedi/components/overlay/modal/modal.component.d.ts +3 -3
- package/tedi/components/overlay/modal/modal.component.d.ts.map +1 -1
- package/tedi/components/overlay/modal/modal.service.d.ts.map +1 -1
- package/tedi/components/overlay/modal/modal.types.d.ts +9 -2
- package/tedi/components/overlay/modal/modal.types.d.ts.map +1 -1
- package/tedi/services/translation/translations.d.ts +24 -3
- package/tedi/services/translation/translations.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../tedi/components/navigation/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../tedi/components/navigation/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { PaginationComponent } from "./pagination.component";
|
|
2
|
+
export { TediPaginationResultsDirective } from "./pagination-results.directive";
|
|
3
|
+
export { usePagination, type UsePaginationArgs } from "./pagination.utils";
|
|
4
|
+
export type { PaginationBackground, PaginationDividerPosition, PaginationItem, PaginationItemType, PaginationLabels, PaginationVisibility, } from "./pagination.types";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../tedi/components/navigation/pagination/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,8BAA8B,EAAE,MAAM,gCAAgC,CAAC;AAChF,OAAO,EAAE,aAAa,EAAE,KAAK,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC3E,YAAY,EACV,oBAAoB,EACpB,yBAAyB,EACzB,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { AfterViewInit } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface PaginationOptionPickerOption {
|
|
4
|
+
/** Value emitted when this option is selected. */
|
|
5
|
+
value: number;
|
|
6
|
+
/** Visible label inside the row. */
|
|
7
|
+
label: string;
|
|
8
|
+
/** Full accessible name for the row's button. */
|
|
9
|
+
ariaLabel: string;
|
|
10
|
+
}
|
|
11
|
+
export interface PaginationOptionPickerModalData {
|
|
12
|
+
/** Available options to choose from. */
|
|
13
|
+
options: PaginationOptionPickerOption[];
|
|
14
|
+
/** Currently selected value — drives the active styling and scroll-into-view target. */
|
|
15
|
+
selectedValue: number;
|
|
16
|
+
/** Optional heading rendered inside the modal header. Hidden when omitted. */
|
|
17
|
+
title?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare class PaginationOptionPickerModalComponent implements AfterViewInit {
|
|
20
|
+
private readonly modalRef;
|
|
21
|
+
protected readonly data: PaginationOptionPickerModalData;
|
|
22
|
+
protected readonly itemSize = 48;
|
|
23
|
+
protected readonly ready: import("@angular/core").WritableSignal<boolean>;
|
|
24
|
+
private readonly viewport;
|
|
25
|
+
ngAfterViewInit(): void;
|
|
26
|
+
protected trackByValue(_: number, option: PaginationOptionPickerOption): number;
|
|
27
|
+
protected selectValue(value: number): void;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PaginationOptionPickerModalComponent, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PaginationOptionPickerModalComponent, "tedi-pagination-option-picker-modal", never, {}, {}, never, never, true, never>;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=pagination-option-picker-modal.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination-option-picker-modal.component.d.ts","sourceRoot":"","sources":["../../../../../../tedi/components/navigation/pagination/pagination-option-picker-modal/pagination-option-picker-modal.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAOd,MAAM,eAAe,CAAC;;AAQvB,MAAM,WAAW,4BAA4B;IAC3C,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,oCAAoC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,+BAA+B;IAC9C,wCAAwC;IACxC,OAAO,EAAE,4BAA4B,EAAE,CAAC;IACxC,wFAAwF;IACxF,aAAa,EAAE,MAAM,CAAC;IACtB,8EAA8E;IAC9E,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAID,qBAiBa,oCAAqC,YAAW,aAAa;IACxE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAsC;IAC/D,SAAS,CAAC,QAAQ,CAAC,IAAI,kCAAuD;IAE9E,SAAS,CAAC,QAAQ,CAAC,QAAQ,MAAgB;IAC3C,SAAS,CAAC,QAAQ,CAAC,KAAK,kDAAiB;IACzC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAgD;IAEzE,eAAe,IAAI,IAAI;IAuCvB,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,4BAA4B,GAAG,MAAM;IAI/E,SAAS,CAAC,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;yCAnD/B,oCAAoC;2CAApC,oCAAoC;CAsDhD"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* Marker directive that lets consumers fully replace the default
|
|
4
|
+
* "X results" label inside `<tedi-pagination>`.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```html
|
|
8
|
+
* <tedi-pagination [pageCount]="10" [totalItems]="1000">
|
|
9
|
+
* <span tediPaginationResults>1000+ tulemust</span>
|
|
10
|
+
* </tedi-pagination>
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export declare class TediPaginationResultsDirective {
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TediPaginationResultsDirective, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TediPaginationResultsDirective, "[tediPaginationResults]", never, {}, {}, never, never, true, never>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=pagination-results.directive.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination-results.directive.d.ts","sourceRoot":"","sources":["../../../../../tedi/components/navigation/pagination/pagination-results.directive.ts"],"names":[],"mappings":";AAEA;;;;;;;;;;GAUG;AACH,qBAIa,8BAA8B;yCAA9B,8BAA8B;2CAA9B,8BAA8B;CAAG"}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { ButtonVariant } from "../../buttons/button/button.component";
|
|
2
|
+
import { PaginationBackground, PaginationDividerPosition, PaginationItem, PaginationLabels, PaginationVisibility } from "./pagination.types";
|
|
3
|
+
import { TediPaginationResultsDirective } from "./pagination-results.directive";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class PaginationComponent {
|
|
6
|
+
/** Total number of pages. */
|
|
7
|
+
readonly pageCount: import("@angular/core").InputSignal<number>;
|
|
8
|
+
/**
|
|
9
|
+
* Current page (1-based). Two-way bindable with `[(page)]` or used
|
|
10
|
+
* one-way with `[page]` + `(pageChange)`.
|
|
11
|
+
* @default 1
|
|
12
|
+
*/
|
|
13
|
+
readonly page: import("@angular/core").ModelSignal<number>;
|
|
14
|
+
/**
|
|
15
|
+
* Total number of items across all pages. When set, the "{count} results"
|
|
16
|
+
* label is rendered to the left of the nav. Can be replaced entirely by
|
|
17
|
+
* projecting `[tediPaginationResults]` content.
|
|
18
|
+
*/
|
|
19
|
+
readonly totalItems: import("@angular/core").InputSignal<number | undefined>;
|
|
20
|
+
/**
|
|
21
|
+
* Current page size. Two-way bindable with `[(pageSize)]` or used
|
|
22
|
+
* one-way with `[pageSize]` + `(pageSizeChange)`.
|
|
23
|
+
*/
|
|
24
|
+
readonly pageSize: import("@angular/core").ModelSignal<number | undefined>;
|
|
25
|
+
/** Options for the page-size select. Empty/undefined hides the select. */
|
|
26
|
+
readonly pageSizeOptions: import("@angular/core").InputSignal<number[]>;
|
|
27
|
+
/** Pages always shown at the start and end. @default 1 */
|
|
28
|
+
readonly boundaryCount: import("@angular/core").InputSignal<number>;
|
|
29
|
+
/** Pages shown on either side of the current page. @default 1 */
|
|
30
|
+
readonly siblingCount: import("@angular/core").InputSignal<number>;
|
|
31
|
+
/** Override any of the default text labels / aria labels. */
|
|
32
|
+
readonly labels: import("@angular/core").InputSignal<Partial<PaginationLabels> | undefined>;
|
|
33
|
+
/**
|
|
34
|
+
* Background variant. `transparent` removes the surface fill and divider —
|
|
35
|
+
* use it when pagination sits on a non-white container.
|
|
36
|
+
* @default 'white'
|
|
37
|
+
*/
|
|
38
|
+
readonly background: import("@angular/core").InputSignal<PaginationBackground>;
|
|
39
|
+
/**
|
|
40
|
+
* Where the divider line sits relative to the pagination row.
|
|
41
|
+
* `'none'` removes the divider entirely. The `transparent` background
|
|
42
|
+
* variant overrides this and never renders a divider.
|
|
43
|
+
* @default 'top'
|
|
44
|
+
*/
|
|
45
|
+
readonly dividerPosition: import("@angular/core").InputSignal<PaginationDividerPosition>;
|
|
46
|
+
/**
|
|
47
|
+
* Hide the "X results" label even when `totalItems` is set or content is
|
|
48
|
+
* projected via `[tediPaginationResults]`. Pass a breakpoint name to hide
|
|
49
|
+
* only below that breakpoint.
|
|
50
|
+
* @default false
|
|
51
|
+
*/
|
|
52
|
+
readonly hideResults: import("@angular/core").InputSignal<PaginationVisibility>;
|
|
53
|
+
/**
|
|
54
|
+
* Hide the page-size dropdown even when `pageSizeOptions` is non-empty.
|
|
55
|
+
* Pass a breakpoint name to hide only below that breakpoint.
|
|
56
|
+
* @default false
|
|
57
|
+
*/
|
|
58
|
+
readonly hidePageSize: import("@angular/core").InputSignal<PaginationVisibility>;
|
|
59
|
+
/**
|
|
60
|
+
* Hide the pager (prev/next + page list). Pass a breakpoint name to hide
|
|
61
|
+
* only below that breakpoint.
|
|
62
|
+
* @default false
|
|
63
|
+
*/
|
|
64
|
+
readonly hidePager: import("@angular/core").InputSignal<PaginationVisibility>;
|
|
65
|
+
/**
|
|
66
|
+
* Hide the prev/next arrow buttons inside the pager. Pass a breakpoint
|
|
67
|
+
* name to hide only below that breakpoint. The page list / mobile picker
|
|
68
|
+
* stays visible.
|
|
69
|
+
* @default false
|
|
70
|
+
*/
|
|
71
|
+
readonly hideArrows: import("@angular/core").InputSignal<PaginationVisibility>;
|
|
72
|
+
/**
|
|
73
|
+
* Keep prev/next arrows rendered (but disabled) at the first/last page
|
|
74
|
+
* instead of removing them from the DOM. Useful when the pager should
|
|
75
|
+
* have a stable footprint regardless of position.
|
|
76
|
+
* @default false
|
|
77
|
+
*/
|
|
78
|
+
readonly disableArrowsAtBoundary: import("@angular/core").InputSignal<boolean>;
|
|
79
|
+
/**
|
|
80
|
+
* Variant for the prev/next arrow buttons — accepts any `tedi-button`
|
|
81
|
+
* variant. Defaults to `neutral` for icon-only arrows; pair with
|
|
82
|
+
* `showArrowLabels` to render a regular button (e.g. `primary` with text).
|
|
83
|
+
* @default 'neutral'
|
|
84
|
+
*/
|
|
85
|
+
readonly arrowVariant: import("@angular/core").InputSignal<ButtonVariant>;
|
|
86
|
+
/**
|
|
87
|
+
* Render the `previous` / `next` labels as visible button text next to
|
|
88
|
+
* the arrow icon. When false (default) the buttons are icon-only and the
|
|
89
|
+
* labels are exposed only via `aria-label`.
|
|
90
|
+
* @default false
|
|
91
|
+
*/
|
|
92
|
+
readonly showArrowLabels: import("@angular/core").InputSignal<boolean>;
|
|
93
|
+
/**
|
|
94
|
+
* Material Symbols icon name for the previous-page arrow.
|
|
95
|
+
* @default 'arrow_back'
|
|
96
|
+
*/
|
|
97
|
+
readonly previousIcon: import("@angular/core").InputSignal<string>;
|
|
98
|
+
/**
|
|
99
|
+
* Material Symbols icon name for the next-page arrow.
|
|
100
|
+
* @default 'arrow_forward'
|
|
101
|
+
*/
|
|
102
|
+
readonly nextIcon: import("@angular/core").InputSignal<string>;
|
|
103
|
+
/**
|
|
104
|
+
* Show a heading inside the mobile page-jump / page-size picker modals.
|
|
105
|
+
* Uses the `pageTitle` / `pageSizeTitle` labels.
|
|
106
|
+
* @default true
|
|
107
|
+
*/
|
|
108
|
+
readonly showModalTitle: import("@angular/core").InputSignal<boolean>;
|
|
109
|
+
/** Emits whenever the user navigates to a different page. */
|
|
110
|
+
readonly pageChange: import("@angular/core").OutputEmitterRef<number>;
|
|
111
|
+
/** Emits when the user picks a different page size. */
|
|
112
|
+
readonly pageSizeChange: import("@angular/core").OutputEmitterRef<number>;
|
|
113
|
+
/** Detects the `[tediPaginationResults]` content-projection slot, if any. */
|
|
114
|
+
protected readonly customResults: import("@angular/core").Signal<TediPaginationResultsDirective | undefined>;
|
|
115
|
+
private readonly translationService;
|
|
116
|
+
private readonly breakpointService;
|
|
117
|
+
private readonly modalService;
|
|
118
|
+
/** True below `md` — pager swaps to the compact `current / total` picker. */
|
|
119
|
+
protected readonly useCompactPicker: import("@angular/core").Signal<boolean>;
|
|
120
|
+
protected readonly pageSizeInputId: string;
|
|
121
|
+
protected readonly hostClasses: import("@angular/core").Signal<string>;
|
|
122
|
+
protected readonly currentPage: import("@angular/core").Signal<number>;
|
|
123
|
+
protected readonly items: import("@angular/core").Signal<PaginationItem[]>;
|
|
124
|
+
private static readonly EMPTY_NAV_ITEM;
|
|
125
|
+
protected readonly previousItem: import("@angular/core").Signal<PaginationItem>;
|
|
126
|
+
protected readonly nextItem: import("@angular/core").Signal<PaginationItem>;
|
|
127
|
+
protected readonly pageItems: import("@angular/core").Signal<PaginationItem[]>;
|
|
128
|
+
protected readonly mergedLabels: import("@angular/core").Signal<PaginationLabels>;
|
|
129
|
+
private readonly currentBreakpoint;
|
|
130
|
+
private static readonly BREAKPOINT_ORDER;
|
|
131
|
+
protected readonly isResultsHidden: import("@angular/core").Signal<boolean>;
|
|
132
|
+
protected readonly isPageSizeHidden: import("@angular/core").Signal<boolean>;
|
|
133
|
+
protected readonly isPagerHidden: import("@angular/core").Signal<boolean>;
|
|
134
|
+
protected readonly areArrowsHidden: import("@angular/core").Signal<boolean>;
|
|
135
|
+
protected readonly showResults: import("@angular/core").Signal<boolean>;
|
|
136
|
+
protected readonly showPageSizeSelect: import("@angular/core").Signal<boolean>;
|
|
137
|
+
protected readonly showPager: import("@angular/core").Signal<boolean>;
|
|
138
|
+
/**
|
|
139
|
+
* Whether the prev/next arrows should render at all. When false they're
|
|
140
|
+
* removed from the DOM. At the first/last page, individual arrows are
|
|
141
|
+
* additionally gated by `disableArrowsAtBoundary` — see `showPrevious`
|
|
142
|
+
* / `showNext`.
|
|
143
|
+
*/
|
|
144
|
+
protected readonly showArrows: import("@angular/core").Signal<boolean>;
|
|
145
|
+
/**
|
|
146
|
+
* Whether the previous-arrow button is rendered. Removed at the first
|
|
147
|
+
* page unless `disableArrowsAtBoundary` keeps it as a disabled button.
|
|
148
|
+
*/
|
|
149
|
+
protected readonly showPrevious: import("@angular/core").Signal<boolean>;
|
|
150
|
+
/**
|
|
151
|
+
* Whether the next-arrow button is rendered. Removed at the last page
|
|
152
|
+
* unless `disableArrowsAtBoundary` keeps it as a disabled button.
|
|
153
|
+
*/
|
|
154
|
+
protected readonly showNext: import("@angular/core").Signal<boolean>;
|
|
155
|
+
private resolveVisibility;
|
|
156
|
+
protected readonly pageSizeSelectOptions: import("@angular/core").Signal<{
|
|
157
|
+
value: number;
|
|
158
|
+
label: string;
|
|
159
|
+
}[]>;
|
|
160
|
+
protected readonly mobileTriggerLabel: import("@angular/core").Signal<string>;
|
|
161
|
+
/**
|
|
162
|
+
* Accessible name for the mobile trigger button. Starts with the visible
|
|
163
|
+
* text (`{current} / {total}`) so WCAG 2.5.3 (Label in Name) is satisfied
|
|
164
|
+
* for voice-control users.
|
|
165
|
+
*/
|
|
166
|
+
protected readonly mobileTriggerAriaLabel: import("@angular/core").Signal<string>;
|
|
167
|
+
protected readonly mobilePageSizeAriaLabel: import("@angular/core").Signal<string>;
|
|
168
|
+
/** Whether the mobile page-jump picker modal is currently open. */
|
|
169
|
+
protected readonly isMobileModalOpen: import("@angular/core").WritableSignal<boolean>;
|
|
170
|
+
/** Whether the mobile page-size picker modal is currently open. */
|
|
171
|
+
protected readonly isPageSizeModalOpen: import("@angular/core").WritableSignal<boolean>;
|
|
172
|
+
protected readonly statusText: import("@angular/core").Signal<string>;
|
|
173
|
+
constructor();
|
|
174
|
+
protected handlePageChange(nextPage: number | null): void;
|
|
175
|
+
protected handlePageSizeChange(value: number | null): void;
|
|
176
|
+
protected openMobilePicker(): void;
|
|
177
|
+
protected openPageSizePicker(): void;
|
|
178
|
+
private openPickerModal;
|
|
179
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PaginationComponent, never>;
|
|
180
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PaginationComponent, "tedi-pagination", never, { "pageCount": { "alias": "pageCount"; "required": true; "isSignal": true; }; "page": { "alias": "page"; "required": false; "isSignal": true; }; "totalItems": { "alias": "totalItems"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; "isSignal": true; }; "boundaryCount": { "alias": "boundaryCount"; "required": false; "isSignal": true; }; "siblingCount": { "alias": "siblingCount"; "required": false; "isSignal": true; }; "labels": { "alias": "labels"; "required": false; "isSignal": true; }; "background": { "alias": "background"; "required": false; "isSignal": true; }; "dividerPosition": { "alias": "dividerPosition"; "required": false; "isSignal": true; }; "hideResults": { "alias": "hideResults"; "required": false; "isSignal": true; }; "hidePageSize": { "alias": "hidePageSize"; "required": false; "isSignal": true; }; "hidePager": { "alias": "hidePager"; "required": false; "isSignal": true; }; "hideArrows": { "alias": "hideArrows"; "required": false; "isSignal": true; }; "disableArrowsAtBoundary": { "alias": "disableArrowsAtBoundary"; "required": false; "isSignal": true; }; "arrowVariant": { "alias": "arrowVariant"; "required": false; "isSignal": true; }; "showArrowLabels": { "alias": "showArrowLabels"; "required": false; "isSignal": true; }; "previousIcon": { "alias": "previousIcon"; "required": false; "isSignal": true; }; "nextIcon": { "alias": "nextIcon"; "required": false; "isSignal": true; }; "showModalTitle": { "alias": "showModalTitle"; "required": false; "isSignal": true; }; }, { "page": "pageChange"; "pageSize": "pageSizeChange"; "pageChange": "pageChange"; "pageSizeChange": "pageSizeChange"; }, ["customResults"], ["[tediPaginationResults]"], true, never>;
|
|
181
|
+
}
|
|
182
|
+
//# sourceMappingURL=pagination.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.component.d.ts","sourceRoot":"","sources":["../../../../../tedi/components/navigation/pagination/pagination.component.ts"],"names":[],"mappings":"AAcA,OAAO,EAAmB,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAQvF,OAAO,EACL,oBAAoB,EACpB,yBAAyB,EACzB,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,8BAA8B,EAAE,MAAM,gCAAgC,CAAC;;AAOhF,qBAaa,mBAAmB;IAC9B,6BAA6B;IAC7B,QAAQ,CAAC,SAAS,8CAA4B;IAE9C;;;;OAIG;IACH,QAAQ,CAAC,IAAI,8CAAoB;IAEjC;;;;OAIG;IACH,QAAQ,CAAC,UAAU,0DAAwC;IAE3D;;;OAGG;IACH,QAAQ,CAAC,QAAQ,0DAAwC;IAEzD,0EAA0E;IAC1E,QAAQ,CAAC,eAAe,gDAAuB;IAE/C,0DAA0D;IAC1D,QAAQ,CAAC,aAAa,8CAAoB;IAE1C,iEAAiE;IACjE,QAAQ,CAAC,YAAY,8CAAoB;IAEzC,6DAA6D;IAC7D,QAAQ,CAAC,MAAM,6EAA2D;IAE1E;;;;OAIG;IACH,QAAQ,CAAC,UAAU,4DAAwC;IAE3D;;;;;OAKG;IACH,QAAQ,CAAC,eAAe,iEAA2C;IAEnE;;;;;OAKG;IACH,QAAQ,CAAC,WAAW,4DAAsC;IAE1D;;;;OAIG;IAC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A2BpC,OAAO,CAAC,eAAe;yCAhZZ,mBAAmB;2CAAnB,mBAAmB;CA8Z/B"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export type PaginationBackground = "white" | "transparent";
|
|
2
|
+
/**
|
|
3
|
+
* Visibility toggle for the results / page-size / pager / arrow slots.
|
|
4
|
+
* - `true` — always hidden
|
|
5
|
+
* - `false` (default) — always visible
|
|
6
|
+
* - `'sm'` / `'md'` / `'lg'` / `'xl'` / `'xxl'` — hidden below that breakpoint
|
|
7
|
+
*
|
|
8
|
+
* Mirrors the `boolean | breakpoint` pattern used by `tedi-modal`'s
|
|
9
|
+
* `fullscreen` input.
|
|
10
|
+
*/
|
|
11
|
+
export type PaginationVisibility = boolean | "sm" | "md" | "lg" | "xl" | "xxl";
|
|
12
|
+
/**
|
|
13
|
+
* Where the divider sits relative to the pagination row.
|
|
14
|
+
* - `'top'` (default) — border on top, matches single-row layouts under content
|
|
15
|
+
* - `'bottom'` — border on bottom, for above-content placements
|
|
16
|
+
* - `'none'` — no divider, useful when the surrounding container already has one
|
|
17
|
+
*/
|
|
18
|
+
export type PaginationDividerPosition = "top" | "bottom" | "none";
|
|
19
|
+
export type PaginationItemType = "page" | "previous" | "next" | "ellipsis";
|
|
20
|
+
export interface PaginationItem {
|
|
21
|
+
type: PaginationItemType;
|
|
22
|
+
page: number | null;
|
|
23
|
+
selected: boolean;
|
|
24
|
+
disabled: boolean;
|
|
25
|
+
}
|
|
26
|
+
export interface PaginationLabels {
|
|
27
|
+
/** Accessible label for the nav wrapper. @default 'Pagination' */
|
|
28
|
+
ariaLabel: string;
|
|
29
|
+
/** Previous button label (icon-only, used as aria-label). @default 'Previous page' */
|
|
30
|
+
previous: string;
|
|
31
|
+
/** Next button label (icon-only, used as aria-label). @default 'Next page' */
|
|
32
|
+
next: string;
|
|
33
|
+
/** aria-label for a numeric page button. @default (page) => 'Go to page {page}' */
|
|
34
|
+
pageAriaLabel: (page: number) => string;
|
|
35
|
+
/** aria-label for the currently active page. @default (page) => 'Current page, page {page}' */
|
|
36
|
+
currentPageAriaLabel: (page: number) => string;
|
|
37
|
+
/** Rendered to the left of the nav when `totalItems` is set. @default (count) => '{count} results' */
|
|
38
|
+
results: (count: number) => string;
|
|
39
|
+
/** Prefix label for the page-size select. @default 'Show per page' */
|
|
40
|
+
pageSize: string;
|
|
41
|
+
/** Announcement for the aria-live region when the page changes. @default (page, total) => 'Page {page} of {total}' */
|
|
42
|
+
pageStatus: (page: number, pageCount: number) => string;
|
|
43
|
+
/** Title shown above the page-jump modal on mobile when `showModalTitle` is true. @default 'Select page' */
|
|
44
|
+
pageTitle: string;
|
|
45
|
+
/** Title shown above the page-size modal on mobile when `showModalTitle` is true. @default 'Show per page' */
|
|
46
|
+
pageSizeTitle: string;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=pagination.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.types.d.ts","sourceRoot":"","sources":["../../../../../tedi/components/navigation/pagination/pagination.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAAG,OAAO,GAAG,aAAa,CAAC;AAE3D;;;;;;;;GAQG;AACH,MAAM,MAAM,oBAAoB,GAAG,OAAO,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;AAE/E;;;;;GAKG;AACH,MAAM,MAAM,yBAAyB,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;AAElE,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,GAAG,UAAU,CAAC;AAE3E,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,kBAAkB,CAAC;IACzB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,gBAAgB;IAC/B,kEAAkE;IAClE,SAAS,EAAE,MAAM,CAAC;IAClB,sFAAsF;IACtF,QAAQ,EAAE,MAAM,CAAC;IACjB,8EAA8E;IAC9E,IAAI,EAAE,MAAM,CAAC;IACb,mFAAmF;IACnF,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IACxC,+FAA+F;IAC/F,oBAAoB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IAC/C,sGAAsG;IACtG,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACnC,sEAAsE;IACtE,QAAQ,EAAE,MAAM,CAAC;IACjB,sHAAsH;IACtH,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC;IACxD,4GAA4G;IAC5G,SAAS,EAAE,MAAM,CAAC;IAClB,8GAA8G;IAC9G,aAAa,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { PaginationItem } from "./pagination.types";
|
|
2
|
+
export interface UsePaginationArgs {
|
|
3
|
+
/** 1-based current page. */
|
|
4
|
+
page: number;
|
|
5
|
+
/** Total page count. */
|
|
6
|
+
pageCount: number;
|
|
7
|
+
/** Pages always shown at the very start and very end. */
|
|
8
|
+
boundaryCount?: number;
|
|
9
|
+
/** Pages shown on either side of the current page. */
|
|
10
|
+
siblingCount?: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Computes the ordered list of pagination items (previous, page-buttons,
|
|
14
|
+
* ellipsis, next).
|
|
15
|
+
*
|
|
16
|
+
* The algorithm targets a stable slot count: for any `pageCount` larger than
|
|
17
|
+
* the window size, the returned list always has the same number of page
|
|
18
|
+
* entries (`boundaryCount * 2 + siblingCount * 2 + 3`). As the current page
|
|
19
|
+
* moves toward a boundary, the corresponding ellipsis is swapped for an extra
|
|
20
|
+
* adjacent page number rather than collapsing the list — the visual row does
|
|
21
|
+
* not expand or contract as the user navigates.
|
|
22
|
+
*/
|
|
23
|
+
export declare function usePagination({ page, pageCount, boundaryCount, siblingCount, }: UsePaginationArgs): PaginationItem[];
|
|
24
|
+
//# sourceMappingURL=pagination.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.utils.d.ts","sourceRoot":"","sources":["../../../../../tedi/components/navigation/pagination/pagination.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAsB,MAAM,oBAAoB,CAAC;AAExE,MAAM,WAAW,iBAAiB;IAChC,4BAA4B;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,wBAAwB;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,yDAAyD;IACzD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,sDAAsD;IACtD,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAOD;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EACJ,SAAS,EACT,aAAiB,EACjB,YAAgB,GACjB,EAAE,iBAAiB,GAAG,cAAc,EAAE,CAmEtC"}
|
|
@@ -1,13 +1,27 @@
|
|
|
1
|
+
import { ClosingButtonSize } from "../../../buttons/closing-button/closing-button.component";
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class ModalHeaderComponent {
|
|
3
4
|
/** Should show closing button? */
|
|
4
5
|
readonly showClose: import("@angular/core").InputSignal<boolean>;
|
|
6
|
+
/**
|
|
7
|
+
* Size of the close button. When unset, the close button size tracks the
|
|
8
|
+
* modal's own `size` variant (default → standard close button, small →
|
|
9
|
+
* compact close button). Set explicitly to override that default.
|
|
10
|
+
*/
|
|
11
|
+
readonly closeButtonSize: import("@angular/core").InputSignal<ClosingButtonSize | undefined>;
|
|
5
12
|
/** @deprecated Injected when used inside the old template-based tedi-modal. */
|
|
6
13
|
private readonly modal;
|
|
7
14
|
/** Injected when opened via ModalService. */
|
|
8
15
|
private readonly modalRef;
|
|
16
|
+
/** Read from the surrounding modal so the close button can auto-shrink in small modals. */
|
|
17
|
+
private readonly modalSize;
|
|
18
|
+
/**
|
|
19
|
+
* Effective close-button size: explicit input wins, otherwise derive from
|
|
20
|
+
* the surrounding modal's `size` variant (small modal → small button).
|
|
21
|
+
*/
|
|
22
|
+
protected readonly effectiveCloseButtonSize: import("@angular/core").Signal<ClosingButtonSize>;
|
|
9
23
|
closeModal(): void;
|
|
10
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<ModalHeaderComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ModalHeaderComponent, "tedi-modal-header", never, { "showClose": { "alias": "showClose"; "required": false; "isSignal": true; }; }, {}, never, ["h1,h2,h3,h4,h5,h6", "[tedi-modal-description]", "*"], true, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ModalHeaderComponent, "tedi-modal-header", never, { "showClose": { "alias": "showClose"; "required": false; "isSignal": true; }; "closeButtonSize": { "alias": "closeButtonSize"; "required": false; "isSignal": true; }; }, {}, never, ["h1,h2,h3,h4,h5,h6", "[tedi-modal-description]", "*"], true, never>;
|
|
12
26
|
}
|
|
13
27
|
//# sourceMappingURL=modal-header.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal-header.component.d.ts","sourceRoot":"","sources":["../../../../../../tedi/components/overlay/modal/modal-header/modal-header.component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"modal-header.component.d.ts","sourceRoot":"","sources":["../../../../../../tedi/components/overlay/modal/modal-header/modal-header.component.ts"],"names":[],"mappings":"AAQA,OAAO,EAEL,iBAAiB,EAClB,MAAM,0DAA0D,CAAC;;AAKlE,qBAYa,oBAAoB;IAC/B,kCAAkC;IAClC,QAAQ,CAAC,SAAS,+CAAe;IAEjC;;;;OAIG;IACH,QAAQ,CAAC,eAAe,qEAAmD;IAE3E,+EAA+E;IAC/E,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA8C;IAEpE,6CAA6C;IAC7C,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAwC;IAEjE,2FAA2F;IAC3F,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA0C;IAEpE;;;OAGG;IACH,SAAS,CAAC,QAAQ,CAAC,wBAAwB,oDAIxC;IAEH,UAAU;yCA9BC,oBAAoB;2CAApB,oBAAoB;CAqChC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterViewInit, OnDestroy } from "@angular/core";
|
|
1
|
+
import { AfterViewInit, OnDestroy, Signal } from "@angular/core";
|
|
2
2
|
import type { ModalSize, ModalWidth, ModalPosition } from "./modal.types";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
@@ -34,8 +34,8 @@ export declare class ModalComponent implements AfterViewInit, OnDestroy {
|
|
|
34
34
|
private prevFocusedElement;
|
|
35
35
|
private readonly isPresetWidth;
|
|
36
36
|
/** Custom width for non-preset widths (legacy mode only). */
|
|
37
|
-
readonly customWidth:
|
|
38
|
-
readonly classes:
|
|
37
|
+
readonly customWidth: Signal<ModalWidth | null>;
|
|
38
|
+
readonly classes: Signal<string>;
|
|
39
39
|
constructor();
|
|
40
40
|
ngAfterViewInit(): void;
|
|
41
41
|
ngOnDestroy(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.component.d.ts","sourceRoot":"","sources":["../../../../../tedi/components/overlay/modal/modal.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,aAAa,EAEb,SAAS,
|
|
1
|
+
{"version":3,"file":"modal.component.d.ts","sourceRoot":"","sources":["../../../../../tedi/components/overlay/modal/modal.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,aAAa,EAEb,SAAS,EAIT,MAAM,EAEP,MAAM,eAAe,CAAC;AAKvB,OAAO,KAAK,EACV,SAAS,EACT,UAAU,EACV,aAAa,EACd,MAAM,eAAe,CAAC;;AAEvB;;;;;;;;;GASG;AACH,qBA4Ba,cAAe,YAAW,aAAa,EAAE,SAAS;IAC7D,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,+CAAgB;IAE7B,iBAAiB;IACjB,QAAQ,CAAC,IAAI,iDAA+B;IAE5C,kBAAkB;IAClB,QAAQ,CAAC,KAAK,kDAA2B;IAEzC,4BAA4B;IAC5B,QAAQ,CAAC,QAAQ,qDAAkC;IAEnD,gGAAgG;IAChG,QAAQ,CAAC,oBAAoB,+CAAe;IAE5C,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAoB;IAC7C,OAAO,CAAC,QAAQ,CAAC,IAAI,CAA+C;IACpE,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAuB;IAElD;;;OAGG;IACH,QAAQ,CAAC,WAAW,UAA0C;IAE9D,OAAO,CAAC,gBAAgB,CAAc;IACtC,OAAO,CAAC,kBAAkB,CAA4B;IAEtD,OAAO,CAAC,QAAQ,CAAC,aAAa,CAE5B;IAEF,6DAA6D;IAC7D,QAAQ,CAAC,WAAW,4BAElB;IAEF,QAAQ,CAAC,OAAO,iBAwBb;;IAgBH,eAAe,IAAI,IAAI;IAOvB,WAAW;IAaX,OAAO,CAAC,MAAM;IAOd,OAAO,CAAC,OAAO;IAUf,gBAAgB;IAChB,eAAe,IAAI,IAAI;IAMvB,OAAO,CAAC,aAAa,CAInB;yCA9HS,cAAc;2CAAd,cAAc;CA+H1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.service.d.ts","sourceRoot":"","sources":["../../../../../tedi/components/overlay/modal/modal.service.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,
|
|
1
|
+
{"version":3,"file":"modal.service.d.ts","sourceRoot":"","sources":["../../../../../tedi/components/overlay/modal/modal.service.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,WAAW,EAMZ,MAAM,eAAe,CAAC;;AAIvB,qBACa,YAAY;IACvB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAkB;IACzC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAmB;IAE3C;;;;;;;;;;;;;;;;;OAiBG;IACH,IAAI,CAAC,CAAC,GAAG,OAAO,EAAE,CAAC,GAAG,OAAO,EAC3B,SAAS,EAAE,aAAa,CAAC,OAAO,CAAC,EACjC,MAAM,GAAE,WAAW,CAAC,CAAC,CAAM,GAC1B,QAAQ,CAAC,CAAC,CAAC;IAmDd,6BAA6B;IAC7B,QAAQ,IAAI,IAAI;IAIhB,OAAO,CAAC,iBAAiB;IAmCzB,OAAO,CAAC,mBAAmB;IAyB3B,OAAO,CAAC,qBAAqB;yCA7IlB,YAAY;6CAAZ,YAAY;CAyKxB"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { InjectionToken } from "@angular/core";
|
|
1
|
+
import { InjectionToken, Signal } from "@angular/core";
|
|
2
2
|
import { BreakpointFlag } from "../../../services/breakpoint/breakpoint.service";
|
|
3
3
|
export type ModalSize = "default" | "small";
|
|
4
4
|
export type ModalWidthPreset = "xs" | "sm" | "md" | "lg" | "xl";
|
|
5
5
|
export type ModalWidth = ModalWidthPreset | (string & {});
|
|
6
|
-
export type ModalPosition = "center" | "top" | "left" | "right";
|
|
6
|
+
export type ModalPosition = "center" | "top" | "bottom" | "left" | "right";
|
|
7
7
|
export type ModalScrollBehavior = "content" | "page";
|
|
8
8
|
export type ModalFullscreen = BreakpointFlag;
|
|
9
9
|
export interface ModalConfig<D = unknown> {
|
|
@@ -34,4 +34,11 @@ export interface ModalConfig<D = unknown> {
|
|
|
34
34
|
}
|
|
35
35
|
/** Injection token for data passed to a modal opened via ModalService. */
|
|
36
36
|
export declare const MODAL_DATA: InjectionToken<unknown>;
|
|
37
|
+
/**
|
|
38
|
+
* Injection token exposing the current modal's `size` variant as a signal.
|
|
39
|
+
* Provided by both the template-based `<tedi-modal>` and `ModalService` so
|
|
40
|
+
* child components (notably `<tedi-modal-header>`) can derive size-aware
|
|
41
|
+
* defaults without duplicating the variant in their own inputs.
|
|
42
|
+
*/
|
|
43
|
+
export declare const MODAL_SIZE: InjectionToken<Signal<ModalSize>>;
|
|
37
44
|
//# sourceMappingURL=modal.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.types.d.ts","sourceRoot":"","sources":["../../../../../tedi/components/overlay/modal/modal.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"modal.types.d.ts","sourceRoot":"","sources":["../../../../../tedi/components/overlay/modal/modal.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,iDAAiD,CAAC;AAEjF,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAC5C,MAAM,MAAM,gBAAgB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAChE,MAAM,MAAM,UAAU,GAAG,gBAAgB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAC1D,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;AAC3E,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,MAAM,CAAC;AACrD,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC;AAE7C,MAAM,WAAW,WAAW,CAAC,CAAC,GAAG,OAAO;IACtC,wFAAwF;IACxF,IAAI,CAAC,EAAE,CAAC,CAAC;IACT,6CAA6C;IAC7C,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,yFAAyF;IACzF,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,iIAAiI;IACjI,cAAc,CAAC,EAAE,mBAAmB,CAAC;IACrC,oEAAoE;IACpE,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,8DAA8D;IAC9D,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,kEAAkE;IAClE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,6JAA6J;IAC7J,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,0EAA0E;AAC1E,eAAO,MAAM,UAAU,yBAA+C,CAAC;AAEvE;;;;;GAKG;AACH,eAAO,MAAM,UAAU,mCAAyD,CAAC"}
|
|
@@ -464,9 +464,9 @@ export declare const translationsMap: {
|
|
|
464
464
|
"pagination.results": {
|
|
465
465
|
description: string;
|
|
466
466
|
components: string[];
|
|
467
|
-
et: (count?: number) =>
|
|
468
|
-
en: (count?: number) =>
|
|
469
|
-
ru: (count?: number) =>
|
|
467
|
+
et: (count?: number) => string;
|
|
468
|
+
en: (count?: number) => string;
|
|
469
|
+
ru: (count?: number) => string;
|
|
470
470
|
};
|
|
471
471
|
"pagination.page-size": {
|
|
472
472
|
description: string;
|
|
@@ -475,6 +475,27 @@ export declare const translationsMap: {
|
|
|
475
475
|
en: string;
|
|
476
476
|
ru: string;
|
|
477
477
|
};
|
|
478
|
+
"pagination.page-status": {
|
|
479
|
+
description: string;
|
|
480
|
+
components: string[];
|
|
481
|
+
et: (page?: number, total?: number) => string;
|
|
482
|
+
en: (page?: number, total?: number) => string;
|
|
483
|
+
ru: (page?: number, total?: number) => string;
|
|
484
|
+
};
|
|
485
|
+
"pagination.page-title": {
|
|
486
|
+
description: string;
|
|
487
|
+
components: string[];
|
|
488
|
+
et: string;
|
|
489
|
+
en: string;
|
|
490
|
+
ru: string;
|
|
491
|
+
};
|
|
492
|
+
"pagination.page-size-title": {
|
|
493
|
+
description: string;
|
|
494
|
+
components: string[];
|
|
495
|
+
et: string;
|
|
496
|
+
en: string;
|
|
497
|
+
ru: string;
|
|
498
|
+
};
|
|
478
499
|
"table-of-contents.title": {
|
|
479
500
|
description: string;
|
|
480
501
|
components: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../../tedi/services/translation/translations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAiFX,OAAO;qBACP,OAAO;qBACP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAuGR,MAAM;oBACN,MAAM;oBACN,MAAM;;;;;oBAKN,MAAM,WAAW,MAAM;oBAEvB,MAAM,WAAW,MAAM;oBAEvB,MAAM,WAAW,MAAM;;;;;;;;;;;;oBAavB,MAAM;oBACN,MAAM;oBACN,MAAM;;;;;oBAKN,MAAM,cAAc,MAAM;oBAE1B,MAAM,cAAc,MAAM;oBAE1B,MAAM,cAAc,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAoK1B,MAAM;oBAIN,MAAM;oBAIN,MAAM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