@tectra-ng/ui 0.3.1 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data-view/README.md +9 -1
- package/dialog/README.md +3 -0
- package/fesm2022/tectra-ng-ui-accordion.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-amount.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-analog-clock.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-avatar.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-carousel.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-checkbox.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-chips-input.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-color-picker.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-confirm.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-countdown.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-country.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-data-view.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-datepicker.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-dialog.mjs +51 -0
- package/fesm2022/tectra-ng-ui-dialog.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-email-suggestion.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-export-font.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-export.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-file-upload.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-galleria.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-highlight-text.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-icon-field.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-image.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-input-mask.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-input-number.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-key-filter.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-list-input.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-mention-textarea.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-menu.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-month-calendar.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-paginator.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-panel-menu.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-password-generator.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-radio-button.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-sparkline.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-splitter.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-stat-tiles.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-stepper.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-table.mjs +2 -2
- package/fesm2022/tectra-ng-ui-table.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tabs.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-toast.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-toolbar.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tooltip.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree-select.mjs +20 -3
- package/fesm2022/tectra-ng-ui-tree-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree-table.mjs +2 -2
- package/fesm2022/tectra-ng-ui-tree-table.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-virtual-scroller.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui.mjs +1 -1
- package/fesm2022/tectra-ng-ui.mjs.map +1 -1
- package/package.json +9 -9
- package/table/README.md +1 -0
- package/tree-select/README.md +1 -0
- package/types/tectra-ng-ui-accordion.d.ts +96 -65
- package/types/tectra-ng-ui-accordion.d.ts.map +1 -1
- package/types/tectra-ng-ui-amount.d.ts +40 -17
- package/types/tectra-ng-ui-amount.d.ts.map +1 -1
- package/types/tectra-ng-ui-analog-clock.d.ts +28 -41
- package/types/tectra-ng-ui-analog-clock.d.ts.map +1 -1
- package/types/tectra-ng-ui-autocomplete.d.ts +35 -96
- package/types/tectra-ng-ui-autocomplete.d.ts.map +1 -1
- package/types/tectra-ng-ui-avatar.d.ts +84 -259
- package/types/tectra-ng-ui-avatar.d.ts.map +1 -1
- package/types/tectra-ng-ui-badge.d.ts +18 -61
- package/types/tectra-ng-ui-badge.d.ts.map +1 -1
- package/types/tectra-ng-ui-breadcrumb.d.ts +53 -36
- package/types/tectra-ng-ui-breadcrumb.d.ts.map +1 -1
- package/types/tectra-ng-ui-button-group.d.ts +4 -0
- package/types/tectra-ng-ui-button-group.d.ts.map +1 -1
- package/types/tectra-ng-ui-button.d.ts +45 -266
- package/types/tectra-ng-ui-button.d.ts.map +1 -1
- package/types/tectra-ng-ui-card.d.ts +14 -16
- package/types/tectra-ng-ui-card.d.ts.map +1 -1
- package/types/tectra-ng-ui-carousel.d.ts +55 -27
- package/types/tectra-ng-ui-carousel.d.ts.map +1 -1
- package/types/tectra-ng-ui-cascade-select.d.ts +48 -8
- package/types/tectra-ng-ui-cascade-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-checkbox.d.ts +79 -119
- package/types/tectra-ng-ui-checkbox.d.ts.map +1 -1
- package/types/tectra-ng-ui-chip.d.ts +19 -22
- package/types/tectra-ng-ui-chip.d.ts.map +1 -1
- package/types/tectra-ng-ui-chips-input.d.ts +41 -11
- package/types/tectra-ng-ui-chips-input.d.ts.map +1 -1
- package/types/tectra-ng-ui-color-picker.d.ts +51 -47
- package/types/tectra-ng-ui-color-picker.d.ts.map +1 -1
- package/types/tectra-ng-ui-confirm.d.ts +45 -0
- package/types/tectra-ng-ui-confirm.d.ts.map +1 -1
- package/types/tectra-ng-ui-countdown.d.ts +42 -10
- package/types/tectra-ng-ui-countdown.d.ts.map +1 -1
- package/types/tectra-ng-ui-country-select.d.ts +41 -96
- package/types/tectra-ng-ui-country-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-country.d.ts +40 -17
- package/types/tectra-ng-ui-country.d.ts.map +1 -1
- package/types/tectra-ng-ui-data-view.d.ts +92 -34
- package/types/tectra-ng-ui-data-view.d.ts.map +1 -1
- package/types/tectra-ng-ui-datepicker.d.ts +186 -147
- package/types/tectra-ng-ui-datepicker.d.ts.map +1 -1
- package/types/tectra-ng-ui-dialog.d.ts +149 -67
- package/types/tectra-ng-ui-dialog.d.ts.map +1 -1
- package/types/tectra-ng-ui-divider.d.ts +17 -12
- package/types/tectra-ng-ui-divider.d.ts.map +1 -1
- package/types/tectra-ng-ui-drawer.d.ts +31 -67
- package/types/tectra-ng-ui-drawer.d.ts.map +1 -1
- package/types/tectra-ng-ui-email-suggestion.d.ts +25 -8
- package/types/tectra-ng-ui-email-suggestion.d.ts.map +1 -1
- package/types/tectra-ng-ui-export-font.d.ts +1 -0
- package/types/tectra-ng-ui-export-font.d.ts.map +1 -1
- package/types/tectra-ng-ui-export.d.ts +238 -0
- package/types/tectra-ng-ui-export.d.ts.map +1 -1
- package/types/tectra-ng-ui-field.d.ts +24 -11
- package/types/tectra-ng-ui-field.d.ts.map +1 -1
- package/types/tectra-ng-ui-fieldset.d.ts +14 -23
- package/types/tectra-ng-ui-fieldset.d.ts.map +1 -1
- package/types/tectra-ng-ui-file-upload.d.ts +127 -115
- package/types/tectra-ng-ui-file-upload.d.ts.map +1 -1
- package/types/tectra-ng-ui-galleria.d.ts +84 -84
- package/types/tectra-ng-ui-galleria.d.ts.map +1 -1
- package/types/tectra-ng-ui-highlight-text.d.ts +24 -10
- package/types/tectra-ng-ui-highlight-text.d.ts.map +1 -1
- package/types/tectra-ng-ui-icon-field.d.ts +20 -0
- package/types/tectra-ng-ui-icon-field.d.ts.map +1 -1
- package/types/tectra-ng-ui-image.d.ts +60 -36
- package/types/tectra-ng-ui-image.d.ts.map +1 -1
- package/types/tectra-ng-ui-input-group.d.ts +9 -0
- package/types/tectra-ng-ui-input-group.d.ts.map +1 -1
- package/types/tectra-ng-ui-input-mask.d.ts +39 -0
- package/types/tectra-ng-ui-input-mask.d.ts.map +1 -1
- package/types/tectra-ng-ui-input-number.d.ts +73 -15
- package/types/tectra-ng-ui-input-number.d.ts.map +1 -1
- package/types/tectra-ng-ui-input-otp.d.ts +28 -21
- package/types/tectra-ng-ui-input-otp.d.ts.map +1 -1
- package/types/tectra-ng-ui-input.d.ts +17 -50
- package/types/tectra-ng-ui-input.d.ts.map +1 -1
- package/types/tectra-ng-ui-key-filter.d.ts +14 -0
- package/types/tectra-ng-ui-key-filter.d.ts.map +1 -1
- package/types/tectra-ng-ui-knob.d.ts +38 -18
- package/types/tectra-ng-ui-knob.d.ts.map +1 -1
- package/types/tectra-ng-ui-label.d.ts +19 -0
- package/types/tectra-ng-ui-label.d.ts.map +1 -1
- package/types/tectra-ng-ui-link.d.ts +39 -34
- package/types/tectra-ng-ui-link.d.ts.map +1 -1
- package/types/tectra-ng-ui-list-input.d.ts +54 -45
- package/types/tectra-ng-ui-list-input.d.ts.map +1 -1
- package/types/tectra-ng-ui-listbox.d.ts +24 -14
- package/types/tectra-ng-ui-listbox.d.ts.map +1 -1
- package/types/tectra-ng-ui-mention-textarea.d.ts +36 -9
- package/types/tectra-ng-ui-mention-textarea.d.ts.map +1 -1
- package/types/tectra-ng-ui-menu.d.ts +92 -166
- package/types/tectra-ng-ui-menu.d.ts.map +1 -1
- package/types/tectra-ng-ui-menubar.d.ts +29 -58
- package/types/tectra-ng-ui-menubar.d.ts.map +1 -1
- package/types/tectra-ng-ui-message.d.ts +61 -126
- package/types/tectra-ng-ui-message.d.ts.map +1 -1
- package/types/tectra-ng-ui-month-calendar.d.ts +98 -87
- package/types/tectra-ng-ui-month-calendar.d.ts.map +1 -1
- package/types/tectra-ng-ui-multiselect.d.ts +26 -96
- package/types/tectra-ng-ui-multiselect.d.ts.map +1 -1
- package/types/tectra-ng-ui-overlay-badge.d.ts +20 -9
- package/types/tectra-ng-ui-overlay-badge.d.ts.map +1 -1
- package/types/tectra-ng-ui-paginator.d.ts +69 -47
- package/types/tectra-ng-ui-paginator.d.ts.map +1 -1
- package/types/tectra-ng-ui-panel-menu.d.ts +52 -105
- package/types/tectra-ng-ui-panel-menu.d.ts.map +1 -1
- package/types/tectra-ng-ui-panel.d.ts +22 -30
- package/types/tectra-ng-ui-panel.d.ts.map +1 -1
- package/types/tectra-ng-ui-password-generator.d.ts +27 -0
- package/types/tectra-ng-ui-password-generator.d.ts.map +1 -1
- package/types/tectra-ng-ui-password.d.ts +55 -26
- package/types/tectra-ng-ui-password.d.ts.map +1 -1
- package/types/tectra-ng-ui-pill.d.ts +23 -70
- package/types/tectra-ng-ui-pill.d.ts.map +1 -1
- package/types/tectra-ng-ui-popover.d.ts +58 -46
- package/types/tectra-ng-ui-popover.d.ts.map +1 -1
- package/types/tectra-ng-ui-progress-bar.d.ts +32 -28
- package/types/tectra-ng-ui-progress-bar.d.ts.map +1 -1
- package/types/tectra-ng-ui-progress-spinner.d.ts +18 -16
- package/types/tectra-ng-ui-progress-spinner.d.ts.map +1 -1
- package/types/tectra-ng-ui-radio-button.d.ts +64 -115
- package/types/tectra-ng-ui-radio-button.d.ts.map +1 -1
- package/types/tectra-ng-ui-rating.d.ts +40 -29
- package/types/tectra-ng-ui-rating.d.ts.map +1 -1
- package/types/tectra-ng-ui-scroll-panel.d.ts +22 -17
- package/types/tectra-ng-ui-scroll-panel.d.ts.map +1 -1
- package/types/tectra-ng-ui-select.d.ts +169 -100
- package/types/tectra-ng-ui-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-skeleton.d.ts +34 -37
- package/types/tectra-ng-ui-skeleton.d.ts.map +1 -1
- package/types/tectra-ng-ui-slider.d.ts +37 -33
- package/types/tectra-ng-ui-slider.d.ts.map +1 -1
- package/types/tectra-ng-ui-sparkline.d.ts +22 -15
- package/types/tectra-ng-ui-sparkline.d.ts.map +1 -1
- package/types/tectra-ng-ui-speed-dial.d.ts +34 -11
- package/types/tectra-ng-ui-speed-dial.d.ts.map +1 -1
- package/types/tectra-ng-ui-split-button.d.ts +28 -7
- package/types/tectra-ng-ui-split-button.d.ts.map +1 -1
- package/types/tectra-ng-ui-splitter.d.ts +47 -23
- package/types/tectra-ng-ui-splitter.d.ts.map +1 -1
- package/types/tectra-ng-ui-stat-tiles.d.ts +39 -91
- package/types/tectra-ng-ui-stat-tiles.d.ts.map +1 -1
- package/types/tectra-ng-ui-status-icon.d.ts +19 -23
- package/types/tectra-ng-ui-status-icon.d.ts.map +1 -1
- package/types/tectra-ng-ui-stepper.d.ts +106 -133
- package/types/tectra-ng-ui-stepper.d.ts.map +1 -1
- package/types/tectra-ng-ui-table.d.ts +415 -183
- package/types/tectra-ng-ui-table.d.ts.map +1 -1
- package/types/tectra-ng-ui-tabs.d.ts +91 -133
- package/types/tectra-ng-ui-tabs.d.ts.map +1 -1
- package/types/tectra-ng-ui-tag.d.ts +46 -135
- package/types/tectra-ng-ui-tag.d.ts.map +1 -1
- package/types/tectra-ng-ui-textarea.d.ts +25 -31
- package/types/tectra-ng-ui-textarea.d.ts.map +1 -1
- package/types/tectra-ng-ui-timeline.d.ts +39 -27
- package/types/tectra-ng-ui-timeline.d.ts.map +1 -1
- package/types/tectra-ng-ui-toast.d.ts +84 -78
- package/types/tectra-ng-ui-toast.d.ts.map +1 -1
- package/types/tectra-ng-ui-toggle-button.d.ts +29 -55
- package/types/tectra-ng-ui-toggle-button.d.ts.map +1 -1
- package/types/tectra-ng-ui-toggle-switch.d.ts +41 -55
- package/types/tectra-ng-ui-toggle-switch.d.ts.map +1 -1
- package/types/tectra-ng-ui-toolbar.d.ts +15 -14
- package/types/tectra-ng-ui-toolbar.d.ts.map +1 -1
- package/types/tectra-ng-ui-tooltip.d.ts +72 -22
- package/types/tectra-ng-ui-tooltip.d.ts.map +1 -1
- package/types/tectra-ng-ui-tree-select.d.ts +65 -104
- package/types/tectra-ng-ui-tree-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-tree-table.d.ts +30 -0
- package/types/tectra-ng-ui-tree-table.d.ts.map +1 -1
- package/types/tectra-ng-ui-tree.d.ts +197 -69
- package/types/tectra-ng-ui-tree.d.ts.map +1 -1
- package/types/tectra-ng-ui-truncate-text.d.ts +21 -14
- package/types/tectra-ng-ui-truncate-text.d.ts.map +1 -1
- package/types/tectra-ng-ui-virtual-scroller.d.ts +97 -13
- package/types/tectra-ng-ui-virtual-scroller.d.ts.map +1 -1
- package/types/tectra-ng-ui.d.ts +2 -1
- package/types/tectra-ng-ui.d.ts.map +1 -1
|
@@ -1,119 +1,198 @@
|
|
|
1
1
|
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
2
|
-
import { TectraDeepPartial } from "@tectra-ng/themes";
|
|
2
|
+
import { TectraDeepPartial, TectraVirtualScrollerTokens } from "@tectra-ng/themes";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
import { TemplateRef } from "@angular/core";
|
|
5
|
+
/** Scroll direction: `vertical` list, `horizontal` list, or `both` for a grid. */
|
|
5
6
|
export type TxVirtualScrollerOrientation = 'vertical' | 'horizontal' | 'both';
|
|
7
|
+
/** Parts of `tx-virtual-scroller` that `pt` can style. */
|
|
6
8
|
export type TxVirtualScrollerPart = 'root' | 'spacer' | 'content' | 'item' | 'row' | 'loader' | 'loadingIcon';
|
|
9
|
+
/** An item index, or `[row, column]` for a `both` grid. */
|
|
7
10
|
export type TxVirtualScrollerPosition = number | readonly [number, number];
|
|
11
|
+
/** A span of items from `first` up to, not including, `last`. */
|
|
8
12
|
export interface TxVirtualScrollerRange {
|
|
13
|
+
/** Index of the first item; `[row, column]` for a `both` grid. */
|
|
9
14
|
first: TxVirtualScrollerPosition;
|
|
15
|
+
/** Index after the last item; `[row, column]` for a `both` grid. */
|
|
10
16
|
last: TxVirtualScrollerPosition;
|
|
11
17
|
}
|
|
18
|
+
/** The rendered items and, inside them, the ones that are visible. */
|
|
12
19
|
export interface TxVirtualScrollerRenderedRange extends TxVirtualScrollerRange {
|
|
20
|
+
/** The items that are really visible, without the tolerance on both sides. */
|
|
13
21
|
viewport: TxVirtualScrollerRange;
|
|
14
22
|
}
|
|
23
|
+
/** Event of `lazyLoad`: the range of items to load. */
|
|
15
24
|
export interface TxVirtualScrollerLazyLoadEvent {
|
|
25
|
+
/** Index of the first item to load. */
|
|
16
26
|
first: number;
|
|
27
|
+
/** Index after the last item to load. */
|
|
17
28
|
last: number;
|
|
18
29
|
}
|
|
30
|
+
/** Event of `scrolled`. */
|
|
19
31
|
export interface TxVirtualScrollerScrollEvent {
|
|
32
|
+
/** The DOM scroll event. */
|
|
20
33
|
originalEvent: Event;
|
|
21
34
|
}
|
|
35
|
+
/** Context of the `txVirtualScrollerItem` template. */
|
|
22
36
|
export interface TxVirtualScrollerItemContext<T = unknown> {
|
|
37
|
+
/** The item; `undefined` while it is not loaded. */
|
|
23
38
|
$implicit: T;
|
|
39
|
+
/** Index of the item. */
|
|
24
40
|
index: number;
|
|
41
|
+
/** Number of items on this axis. */
|
|
25
42
|
count: number;
|
|
43
|
+
/** Whether this is the first item. */
|
|
26
44
|
first: boolean;
|
|
45
|
+
/** Whether this is the last item. */
|
|
27
46
|
last: boolean;
|
|
47
|
+
/** Whether the index is even. */
|
|
28
48
|
even: boolean;
|
|
49
|
+
/** Whether the index is odd. */
|
|
29
50
|
odd: boolean;
|
|
30
51
|
}
|
|
52
|
+
/** Context of the `txVirtualScrollerLoader` template. */
|
|
31
53
|
export interface TxVirtualScrollerLoaderContext {
|
|
54
|
+
/** Index of the item the loader stands for. */
|
|
32
55
|
$implicit: number;
|
|
56
|
+
/** Index of the item the loader stands for. */
|
|
33
57
|
index: number;
|
|
58
|
+
/** Number of items on this axis. */
|
|
34
59
|
count: number;
|
|
35
60
|
}
|
|
61
|
+
/** Context of the `txVirtualScrollerContent` template that renders the whole range at once. */
|
|
36
62
|
export interface TxVirtualScrollerContentContext<T = unknown> {
|
|
63
|
+
/** The items of the rendered range. */
|
|
37
64
|
$implicit: T[];
|
|
65
|
+
/** The items of the rendered range. */
|
|
38
66
|
items: T[];
|
|
67
|
+
/** Index of the first rendered item. */
|
|
39
68
|
first: number;
|
|
69
|
+
/** Index after the last rendered item. */
|
|
40
70
|
last: number;
|
|
71
|
+
/** Number of items on this axis. */
|
|
41
72
|
count: number;
|
|
73
|
+
/** Size in px of the empty space before the rendered items. */
|
|
42
74
|
spacerBefore: number;
|
|
75
|
+
/** Size in px of one item along the scroll axis. */
|
|
43
76
|
itemSize: number;
|
|
44
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* `<ng-template txVirtualScrollerItem let-item let-index="index">` — one item; context also has `count`, `first`, `last`, `even`, `odd`
|
|
80
|
+
* @see https://tectra-ng.com/components/virtual-scroller
|
|
81
|
+
*/
|
|
45
82
|
export declare class TxVirtualScrollerItem {
|
|
46
83
|
readonly templateRef: TemplateRef<TxVirtualScrollerItemContext<unknown>>;
|
|
47
84
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxVirtualScrollerItem, never>;
|
|
48
85
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxVirtualScrollerItem, "ng-template[txVirtualScrollerItem]", never, {}, {}, never, never, true, never>;
|
|
49
86
|
}
|
|
87
|
+
/**
|
|
88
|
+
* `<ng-template txVirtualScrollerLoader let-index>` — placeholder of a missing or loading item
|
|
89
|
+
* @see https://tectra-ng.com/components/virtual-scroller
|
|
90
|
+
*/
|
|
50
91
|
export declare class TxVirtualScrollerLoader {
|
|
51
92
|
readonly templateRef: TemplateRef<TxVirtualScrollerLoaderContext>;
|
|
52
93
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxVirtualScrollerLoader, never>;
|
|
53
94
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxVirtualScrollerLoader, "ng-template[txVirtualScrollerLoader]", never, {}, {}, never, never, true, never>;
|
|
54
95
|
}
|
|
96
|
+
/**
|
|
97
|
+
* `<ng-template txVirtualScrollerLoadingIcon>` — own icon of the loading mask
|
|
98
|
+
* @see https://tectra-ng.com/components/virtual-scroller
|
|
99
|
+
*/
|
|
55
100
|
export declare class TxVirtualScrollerLoadingIcon {
|
|
56
101
|
readonly templateRef: TemplateRef<void>;
|
|
57
102
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxVirtualScrollerLoadingIcon, never>;
|
|
58
103
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxVirtualScrollerLoadingIcon, "ng-template[txVirtualScrollerLoadingIcon]", never, {}, {}, never, never, true, never>;
|
|
59
104
|
}
|
|
105
|
+
/**
|
|
106
|
+
* `<ng-template txVirtualScrollerContent let-items let-first="first">` — renders the whole range yourself (rows of a table, for example)
|
|
107
|
+
* @see https://tectra-ng.com/components/virtual-scroller
|
|
108
|
+
*/
|
|
60
109
|
export declare class TxVirtualScrollerContent {
|
|
61
110
|
readonly templateRef: TemplateRef<TxVirtualScrollerContentContext<unknown>>;
|
|
62
111
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxVirtualScrollerContent, never>;
|
|
63
112
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TxVirtualScrollerContent, "ng-template[txVirtualScrollerContent]", never, {}, {}, never, never, true, never>;
|
|
64
113
|
}
|
|
114
|
+
/** Rendered span of one axis and the visible span inside it, as indexes. */
|
|
65
115
|
interface TxAxisRange {
|
|
116
|
+
/** Index of the first rendered item. */
|
|
66
117
|
first: number;
|
|
118
|
+
/** Index after the last rendered item. */
|
|
67
119
|
last: number;
|
|
120
|
+
/** Index of the first visible item. */
|
|
68
121
|
viewFirst: number;
|
|
122
|
+
/** Index after the last visible item. */
|
|
69
123
|
viewLast: number;
|
|
70
124
|
}
|
|
125
|
+
/** One rendered item with its index. */
|
|
71
126
|
interface TxRenderedCell<T> {
|
|
127
|
+
/** Index of the item on its axis. */
|
|
72
128
|
index: number;
|
|
129
|
+
/** The item; `undefined` while it is not loaded. */
|
|
73
130
|
item: T | undefined;
|
|
74
131
|
}
|
|
132
|
+
/** One rendered row of a `both` grid. */
|
|
75
133
|
interface TxRenderedRow<T> {
|
|
134
|
+
/** Index of the row. */
|
|
76
135
|
index: number;
|
|
136
|
+
/** The rendered cells of the row. */
|
|
77
137
|
cells: TxRenderedCell<T>[];
|
|
78
138
|
}
|
|
139
|
+
/**
|
|
140
|
+
* Renders only the items that fit in its scroll area, so long lists scroll smoothly;
|
|
141
|
+
* vertical, horizontal or as a grid.
|
|
142
|
+
*/
|
|
79
143
|
export declare class TxVirtualScroller<T = unknown> {
|
|
80
144
|
private readonly virtualScrollerTheme;
|
|
145
|
+
/** Items to render; for `both` an array of rows, each an array of cells. Missing items (`undefined`) show the loader template */
|
|
81
146
|
readonly items: import("@angular/core").InputSignal<readonly (T | undefined)[] | readonly (readonly (T | undefined)[])[] | null | undefined>;
|
|
147
|
+
/** Size of one item in px; for `both` `[rowHeight, columnWidth]` */
|
|
82
148
|
readonly itemSize: import("@angular/core").InputSignal<number | readonly [number, number]>;
|
|
149
|
+
/** Height of the scroll area, e.g. `300px` */
|
|
83
150
|
readonly scrollHeight: import("@angular/core").InputSignal<string | undefined>;
|
|
151
|
+
/** Width of the scroll area */
|
|
84
152
|
readonly scrollWidth: import("@angular/core").InputSignal<string | undefined>;
|
|
153
|
+
/** `vertical`, `horizontal` or `both` */
|
|
85
154
|
readonly orientation: import("@angular/core").InputSignal<TxVirtualScrollerOrientation>;
|
|
155
|
+
/** Items rendered beyond each edge of the viewport (half a viewport by default) */
|
|
86
156
|
readonly numToleratedItems: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
|
|
157
|
+
/** Waits this many ms after scrolling stops before rendering the new range */
|
|
87
158
|
readonly delay: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
159
|
+
/** With `lazy`, ranges are asked in chunks of this many items */
|
|
88
160
|
readonly step: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
161
|
+
/** Emits `lazyLoad` with every new range */
|
|
89
162
|
readonly lazy: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
163
|
+
/** Keeps the items already rendered, only adds new ones */
|
|
90
164
|
readonly appendOnly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
165
|
+
/** Renders every item without virtualization */
|
|
91
166
|
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
167
|
+
/** Keeps the full scroll size with a spacer */
|
|
92
168
|
readonly showSpacer: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
169
|
+
/** Shows loaders while `loading` is on or while a `delay` runs */
|
|
93
170
|
readonly showLoader: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
171
|
+
/** Loading state; with `showLoader` shows the loader template or a mask with a spinner */
|
|
94
172
|
readonly loading: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
173
|
+
/** Icon of the loading mask */
|
|
95
174
|
readonly loadingIcon: import("@angular/core").InputSignal<string>;
|
|
175
|
+
/** `(index, item) => key` for rendering; the index by default */
|
|
96
176
|
readonly trackBy: import("@angular/core").InputSignal<((index: number, item: T | undefined) => unknown) | undefined>;
|
|
177
|
+
/** Tab index of the scroll area so it scrolls with the keyboard */
|
|
97
178
|
readonly tabindex: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
179
|
+
/** Accessible name; the scroll area becomes a region */
|
|
98
180
|
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
181
|
+
/** Id of the element that labels the scroll area */
|
|
99
182
|
readonly ariaLabelledBy: import("@angular/core").InputSignal<string | undefined>;
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
focusRingColor: string;
|
|
104
|
-
focusRingOffset: string;
|
|
105
|
-
};
|
|
106
|
-
loader: {
|
|
107
|
-
background: string;
|
|
108
|
-
color: string;
|
|
109
|
-
iconSize: string;
|
|
110
|
-
};
|
|
111
|
-
}> | undefined>;
|
|
183
|
+
/** Design tokens of this instance (`virtualScroller`) */
|
|
184
|
+
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraVirtualScrollerTokens> | undefined>;
|
|
185
|
+
/** Classes and styles of the parts: `root`, `spacer`, `content`, `item`, `row`, `loader`, `loadingIcon` */
|
|
112
186
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxVirtualScrollerPart, import("@tectra-ng/core/config").TxPassThroughValue<TxVirtualScroller<T>>>> | undefined>;
|
|
187
|
+
/** How `pt` merges with the global pass-through */
|
|
113
188
|
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
189
|
+
/** Removes the tectra styles */
|
|
114
190
|
readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
191
|
+
/** A new range should be loaded: `{ first, last }` */
|
|
115
192
|
readonly lazyLoad: import("@angular/core").OutputEmitterRef<TxVirtualScrollerLazyLoadEvent>;
|
|
193
|
+
/** The area was scrolled: `{ originalEvent }` */
|
|
116
194
|
readonly scrolled: import("@angular/core").OutputEmitterRef<TxVirtualScrollerScrollEvent>;
|
|
195
|
+
/** The visible range changed: `{ first, last }` */
|
|
117
196
|
readonly scrollIndexChange: import("@angular/core").OutputEmitterRef<import("@tectra-ng/ui/virtual-scroller").TxVirtualScrollerRange>;
|
|
118
197
|
readonly itemTemplate: import("@angular/core").Signal<TxVirtualScrollerItem | undefined>;
|
|
119
198
|
readonly loaderTemplate: import("@angular/core").Signal<TxVirtualScrollerLoader | undefined>;
|
|
@@ -159,13 +238,18 @@ export declare class TxVirtualScroller<T = unknown> {
|
|
|
159
238
|
readonly contentContext: import("@angular/core").Signal<TxVirtualScrollerContentContext<T | undefined>>;
|
|
160
239
|
constructor();
|
|
161
240
|
readonly renderedRange: import("@angular/core").Signal<TxVirtualScrollerRenderedRange>;
|
|
241
|
+
/** `{ first, last, viewport: { first, last } }` */
|
|
162
242
|
getRenderedRange(): TxVirtualScrollerRenderedRange;
|
|
163
243
|
trackOf(index: number, item: T | undefined): unknown;
|
|
164
244
|
itemContext(cell: TxRenderedCell<T>, count: number): TxVirtualScrollerItemContext<T | undefined>;
|
|
165
245
|
onScroll(event: Event): void;
|
|
246
|
+
/** Native `scrollTo` */
|
|
166
247
|
scrollTo(options: ScrollToOptions): void;
|
|
248
|
+
/** Scrolls so the item is first; `[row, column]` for `both` */
|
|
167
249
|
scrollToIndex(index: TxVirtualScrollerPosition, behavior?: ScrollBehavior): void;
|
|
250
|
+
/** Scrolls the item to the start or the end of the viewport */
|
|
168
251
|
scrollInView(index: TxVirtualScrollerPosition, to: 'to-start' | 'to-end', behavior?: ScrollBehavior): void;
|
|
252
|
+
/** Measures the viewport again */
|
|
169
253
|
refresh(): void;
|
|
170
254
|
private positionOf;
|
|
171
255
|
private measure;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-virtual-scroller.d.ts","names":[],"sources":["../../../../packages/ui/virtual-scroller/src/virtual-scroller.types.ts","../../../../packages/ui/virtual-scroller/src/virtual-scroller.templates.ts","../../../../packages/ui/virtual-scroller/src/virtual-scroller.component.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-virtual-scroller.d.ts","names":[],"sources":["../../../../packages/ui/virtual-scroller/src/virtual-scroller.types.ts","../../../../packages/ui/virtual-scroller/src/virtual-scroller.templates.ts","../../../../packages/ui/virtual-scroller/src/virtual-scroller.component.ts"],"mappings":";;;;;YACY;;YAEA;;YAEA;;iBAGK;;EAEf,OAAO;;EAEP,MAAM;;;iBAIS,uCAAuC;;EAEtD,UAAU;;;iBAIK;;EAEf;;EAEA;;;iBAIe;;EAEf,eAAe;;;iBAIA,6BAA6B;;EAE5C,WAAW;;EAEX;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;;iBAIe,gCAAgC;;EAE/C,WAAW;;EAEX,OAAO;;EAEP;;EAEA;;EAEA;;EAEA;;EAEA;;;;;;qBC1EW;WACF,aAAW,YAAA;SADT,MA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
-
{"version":3,"file":"tectra-ng-ui.d.ts","names":[],"sources":["../../../../packages/ui/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui.d.ts","names":[],"sources":["../../../../packages/ui/index.ts"],"mappings":"AACA;qBAAa"}
|