@tectra-ng/ui 0.1.0 → 0.1.2

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.
Files changed (96) hide show
  1. package/country/README.md +14 -4
  2. package/data-view/README.md +71 -0
  3. package/fesm2022/tectra-ng-ui-autocomplete.mjs +2 -2
  4. package/fesm2022/tectra-ng-ui-autocomplete.mjs.map +1 -1
  5. package/fesm2022/tectra-ng-ui-cascade-select.mjs +2 -2
  6. package/fesm2022/tectra-ng-ui-cascade-select.mjs.map +1 -1
  7. package/fesm2022/tectra-ng-ui-chip.mjs +2 -2
  8. package/fesm2022/tectra-ng-ui-chip.mjs.map +1 -1
  9. package/fesm2022/tectra-ng-ui-chips-input.mjs +2 -2
  10. package/fesm2022/tectra-ng-ui-chips-input.mjs.map +1 -1
  11. package/fesm2022/tectra-ng-ui-color-picker.mjs +2 -2
  12. package/fesm2022/tectra-ng-ui-color-picker.mjs.map +1 -1
  13. package/fesm2022/tectra-ng-ui-country.mjs +47 -6
  14. package/fesm2022/tectra-ng-ui-country.mjs.map +1 -1
  15. package/fesm2022/tectra-ng-ui-data-view.mjs +1370 -0
  16. package/fesm2022/tectra-ng-ui-data-view.mjs.map +1 -0
  17. package/fesm2022/tectra-ng-ui-fieldset.mjs +2 -2
  18. package/fesm2022/tectra-ng-ui-fieldset.mjs.map +1 -1
  19. package/fesm2022/tectra-ng-ui-input-number.mjs +2 -2
  20. package/fesm2022/tectra-ng-ui-input-number.mjs.map +1 -1
  21. package/fesm2022/tectra-ng-ui-input.mjs +2 -2
  22. package/fesm2022/tectra-ng-ui-input.mjs.map +1 -1
  23. package/fesm2022/tectra-ng-ui-listbox.mjs +2 -2
  24. package/fesm2022/tectra-ng-ui-listbox.mjs.map +1 -1
  25. package/fesm2022/tectra-ng-ui-menu.mjs +2 -2
  26. package/fesm2022/tectra-ng-ui-menu.mjs.map +1 -1
  27. package/fesm2022/tectra-ng-ui-message.mjs +2 -2
  28. package/fesm2022/tectra-ng-ui-message.mjs.map +1 -1
  29. package/fesm2022/tectra-ng-ui-multiselect.mjs +2 -2
  30. package/fesm2022/tectra-ng-ui-multiselect.mjs.map +1 -1
  31. package/fesm2022/tectra-ng-ui-paginator.mjs +2 -2
  32. package/fesm2022/tectra-ng-ui-paginator.mjs.map +1 -1
  33. package/fesm2022/tectra-ng-ui-select.mjs +4 -4
  34. package/fesm2022/tectra-ng-ui-select.mjs.map +1 -1
  35. package/fesm2022/tectra-ng-ui-slider.mjs +2 -2
  36. package/fesm2022/tectra-ng-ui-slider.mjs.map +1 -1
  37. package/fesm2022/tectra-ng-ui-table.mjs +1373 -1333
  38. package/fesm2022/tectra-ng-ui-table.mjs.map +1 -1
  39. package/fesm2022/tectra-ng-ui-tag.mjs +2 -2
  40. package/fesm2022/tectra-ng-ui-tag.mjs.map +1 -1
  41. package/fesm2022/tectra-ng-ui-toggle-switch.mjs +2 -2
  42. package/fesm2022/tectra-ng-ui-toggle-switch.mjs.map +1 -1
  43. package/fesm2022/tectra-ng-ui-tree-select.mjs +7 -46
  44. package/fesm2022/tectra-ng-ui-tree-select.mjs.map +1 -1
  45. package/fesm2022/tectra-ng-ui-tree-table.mjs +901 -0
  46. package/fesm2022/tectra-ng-ui-tree-table.mjs.map +1 -0
  47. package/fesm2022/tectra-ng-ui-tree.mjs +1940 -0
  48. package/fesm2022/tectra-ng-ui-tree.mjs.map +1 -0
  49. package/fesm2022/tectra-ng-ui-virtual-scroller.mjs +928 -0
  50. package/fesm2022/tectra-ng-ui-virtual-scroller.mjs.map +1 -0
  51. package/package.json +17 -1
  52. package/tree/README.md +93 -0
  53. package/tree-table/README.md +84 -0
  54. package/types/tectra-ng-ui-autocomplete.d.ts +11 -0
  55. package/types/tectra-ng-ui-autocomplete.d.ts.map +1 -1
  56. package/types/tectra-ng-ui-chip.d.ts +3 -0
  57. package/types/tectra-ng-ui-chip.d.ts.map +1 -1
  58. package/types/tectra-ng-ui-country-select.d.ts +11 -0
  59. package/types/tectra-ng-ui-country-select.d.ts.map +1 -1
  60. package/types/tectra-ng-ui-country.d.ts +9 -3
  61. package/types/tectra-ng-ui-country.d.ts.map +1 -1
  62. package/types/tectra-ng-ui-data-view.d.ts +363 -0
  63. package/types/tectra-ng-ui-data-view.d.ts.map +1 -0
  64. package/types/tectra-ng-ui-fieldset.d.ts +8 -0
  65. package/types/tectra-ng-ui-fieldset.d.ts.map +1 -1
  66. package/types/tectra-ng-ui-input-number.d.ts +1 -0
  67. package/types/tectra-ng-ui-input-number.d.ts.map +1 -1
  68. package/types/tectra-ng-ui-input.d.ts +4 -0
  69. package/types/tectra-ng-ui-input.d.ts.map +1 -1
  70. package/types/tectra-ng-ui-menu.d.ts +2 -0
  71. package/types/tectra-ng-ui-menu.d.ts.map +1 -1
  72. package/types/tectra-ng-ui-message.d.ts +5 -0
  73. package/types/tectra-ng-ui-message.d.ts.map +1 -1
  74. package/types/tectra-ng-ui-multiselect.d.ts +11 -0
  75. package/types/tectra-ng-ui-multiselect.d.ts.map +1 -1
  76. package/types/tectra-ng-ui-paginator.d.ts +1 -0
  77. package/types/tectra-ng-ui-paginator.d.ts.map +1 -1
  78. package/types/tectra-ng-ui-select.d.ts +11 -0
  79. package/types/tectra-ng-ui-select.d.ts.map +1 -1
  80. package/types/tectra-ng-ui-slider.d.ts +1 -0
  81. package/types/tectra-ng-ui-slider.d.ts.map +1 -1
  82. package/types/tectra-ng-ui-table.d.ts +181 -15
  83. package/types/tectra-ng-ui-table.d.ts.map +1 -1
  84. package/types/tectra-ng-ui-tag.d.ts +8 -0
  85. package/types/tectra-ng-ui-tag.d.ts.map +1 -1
  86. package/types/tectra-ng-ui-toggle-switch.d.ts +5 -0
  87. package/types/tectra-ng-ui-toggle-switch.d.ts.map +1 -1
  88. package/types/tectra-ng-ui-tree-select.d.ts +19 -22
  89. package/types/tectra-ng-ui-tree-select.d.ts.map +1 -1
  90. package/types/tectra-ng-ui-tree-table.d.ts +94 -0
  91. package/types/tectra-ng-ui-tree-table.d.ts.map +1 -0
  92. package/types/tectra-ng-ui-tree.d.ts +571 -0
  93. package/types/tectra-ng-ui-tree.d.ts.map +1 -0
  94. package/types/tectra-ng-ui-virtual-scroller.d.ts +297 -0
  95. package/types/tectra-ng-ui-virtual-scroller.d.ts.map +1 -0
  96. package/virtual-scroller/README.md +60 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tectra-ng-ui-tree.d.ts","names":[],"sources":["../../../../packages/ui/tree/src/tree.types.ts","../../../../packages/ui/tree/src/tree-drag.service.ts","../../../../packages/ui/tree/src/tree.templates.ts","../../../../packages/ui/tree/src/tree.component.ts","../../../../packages/ui/tree/src/tree.utils.ts"],"mappings":";;;;;;iBAEiB,WAAW;EAC1B;EACA;EACA,OAAO;EACP,OAAO;EACP,eAAe;EACf,gBAAgB;EAChB,WAAW,WAAW;EACtB;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;YAGU;YACA;YACA;YACA;YACA;YACA,gBAAgB,eAAe,WAAW,KAAK,WAAW;YAE1D;iBAmBK,gBAAgB;EAC/B,MAAM,WAAW;EACjB,eAAe;;iBAGA,oBAAoB;EACnC,UAAU,WAAW;EACrB,UAAU,WAAW;EACrB,UAAU;EACV;EACA,eAAe;EACf;;iBAGe,kBAAkB;EACjC;EACA,eAAe,WAAW;;iBAGX,kBAAkB;EACjC,WAAW,WAAW;EACtB,MAAM,WAAW;EACjB;EACA;EACA;EACA;EACA;;iBAGe;EACf;EACA;EACA;;iBAGe;EACf;EACA;EACA;;iBAGe;EACf;EACA;EACA,SAAS;EACT;;iBCzFe;EACf,kBAAkB;;iBAGH;EACf,MAAM;EACN,OAAO;EACP,QAAQ;;qBAIG;WACF,+BAAK,eAAA;EAEd,MAAM,OAAO;EAIb;SAPW,MAAA,GAAA,qBAAA;;;qBCVA;WACF,aAAW,YAAA;WACX,oCAAU;SAFR,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAkB;MAAA;MAAA;MAAA;;;;qBAMlB;WAC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,297 @@
1
+ import { TxPassThroughOptions } from "@tectra-ng/core/config";
2
+ import { TectraDeepPartial } from "@tectra-ng/themes";
3
+ import * as i0 from "@angular/core";
4
+ import { TemplateRef } from "@angular/core";
5
+ export type TxVirtualScrollerOrientation = 'vertical' | 'horizontal' | 'both';
6
+ export type TxVirtualScrollerPart = 'root' | 'spacer' | 'content' | 'item' | 'row' | 'loader' | 'loadingIcon';
7
+ export type TxVirtualScrollerPosition = number | readonly [number, number];
8
+ export interface TxVirtualScrollerRange {
9
+ first: TxVirtualScrollerPosition;
10
+ last: TxVirtualScrollerPosition;
11
+ }
12
+ export interface TxVirtualScrollerRenderedRange extends TxVirtualScrollerRange {
13
+ viewport: TxVirtualScrollerRange;
14
+ }
15
+ export interface TxVirtualScrollerLazyLoadEvent {
16
+ first: number;
17
+ last: number;
18
+ }
19
+ export interface TxVirtualScrollerScrollEvent {
20
+ originalEvent: Event;
21
+ }
22
+ export interface TxVirtualScrollerItemContext<T = unknown> {
23
+ $implicit: T;
24
+ index: number;
25
+ count: number;
26
+ first: boolean;
27
+ last: boolean;
28
+ even: boolean;
29
+ odd: boolean;
30
+ }
31
+ export interface TxVirtualScrollerLoaderContext {
32
+ $implicit: number;
33
+ index: number;
34
+ count: number;
35
+ }
36
+ export interface TxVirtualScrollerContentContext<T = unknown> {
37
+ $implicit: T[];
38
+ items: T[];
39
+ first: number;
40
+ last: number;
41
+ count: number;
42
+ spacerBefore: number;
43
+ itemSize: number;
44
+ }
45
+ export declare class TxVirtualScrollerItem {
46
+ readonly templateRef: TemplateRef<TxVirtualScrollerItemContext<unknown>>;
47
+ static ɵfac: i0.ɵɵFactoryDeclaration<TxVirtualScrollerItem, never>;
48
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TxVirtualScrollerItem, "ng-template[txVirtualScrollerItem]", never, {}, {}, never, never, true, never>;
49
+ }
50
+ export declare class TxVirtualScrollerLoader {
51
+ readonly templateRef: TemplateRef<TxVirtualScrollerLoaderContext>;
52
+ static ɵfac: i0.ɵɵFactoryDeclaration<TxVirtualScrollerLoader, never>;
53
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TxVirtualScrollerLoader, "ng-template[txVirtualScrollerLoader]", never, {}, {}, never, never, true, never>;
54
+ }
55
+ export declare class TxVirtualScrollerLoadingIcon {
56
+ readonly templateRef: TemplateRef<void>;
57
+ static ɵfac: i0.ɵɵFactoryDeclaration<TxVirtualScrollerLoadingIcon, never>;
58
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TxVirtualScrollerLoadingIcon, "ng-template[txVirtualScrollerLoadingIcon]", never, {}, {}, never, never, true, never>;
59
+ }
60
+ export declare class TxVirtualScrollerContent {
61
+ readonly templateRef: TemplateRef<TxVirtualScrollerContentContext<unknown>>;
62
+ static ɵfac: i0.ɵɵFactoryDeclaration<TxVirtualScrollerContent, never>;
63
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TxVirtualScrollerContent, "ng-template[txVirtualScrollerContent]", never, {}, {}, never, never, true, never>;
64
+ }
65
+ interface TxAxisRange {
66
+ first: number;
67
+ last: number;
68
+ viewFirst: number;
69
+ viewLast: number;
70
+ }
71
+ interface TxRenderedCell<T> {
72
+ index: number;
73
+ item: T | undefined;
74
+ }
75
+ interface TxRenderedRow<T> {
76
+ index: number;
77
+ cells: TxRenderedCell<T>[];
78
+ }
79
+ export declare class TxVirtualScroller<T = unknown> {
80
+ readonly items: import("@angular/core").InputSignal<readonly (T | undefined)[] | readonly (readonly (T | undefined)[])[] | null | undefined>;
81
+ readonly itemSize: import("@angular/core").InputSignal<number | readonly [number, number]>;
82
+ readonly scrollHeight: import("@angular/core").InputSignal<string | undefined>;
83
+ readonly scrollWidth: import("@angular/core").InputSignal<string | undefined>;
84
+ readonly orientation: import("@angular/core").InputSignal<TxVirtualScrollerOrientation>;
85
+ readonly numToleratedItems: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
86
+ readonly delay: import("@angular/core").InputSignalWithTransform<number, unknown>;
87
+ readonly step: import("@angular/core").InputSignalWithTransform<number, unknown>;
88
+ readonly lazy: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
89
+ readonly appendOnly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
90
+ readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
91
+ readonly showSpacer: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
92
+ readonly showLoader: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
93
+ readonly loading: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
94
+ readonly loadingIcon: import("@angular/core").InputSignal<string>;
95
+ readonly trackBy: import("@angular/core").InputSignal<((index: number, item: T | undefined) => unknown) | undefined>;
96
+ readonly tabindex: import("@angular/core").InputSignalWithTransform<number, unknown>;
97
+ readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
98
+ readonly ariaLabelledBy: import("@angular/core").InputSignal<string | undefined>;
99
+ readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<{
100
+ root: {
101
+ focusRingWidth: string;
102
+ focusRingColor: string;
103
+ focusRingOffset: string;
104
+ };
105
+ loader: {
106
+ background: string;
107
+ color: string;
108
+ iconSize: string;
109
+ };
110
+ }> | undefined>;
111
+ readonly pt: import("@angular/core").InputSignal<Partial<Record<TxVirtualScrollerPart, import("@tectra-ng/core/config").TxPassThroughValue<TxVirtualScroller<T>>>> | undefined>;
112
+ readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
113
+ readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
114
+ readonly lazyLoad: import("@angular/core").OutputEmitterRef<TxVirtualScrollerLazyLoadEvent>;
115
+ readonly scrolled: import("@angular/core").OutputEmitterRef<TxVirtualScrollerScrollEvent>;
116
+ readonly scrollIndexChange: import("@angular/core").OutputEmitterRef<import("@tectra-ng/ui/virtual-scroller").TxVirtualScrollerRange>;
117
+ readonly itemTemplate: import("@angular/core").Signal<TxVirtualScrollerItem | undefined>;
118
+ readonly loaderTemplate: import("@angular/core").Signal<TxVirtualScrollerLoader | undefined>;
119
+ readonly loadingIconTemplate: import("@angular/core").Signal<TxVirtualScrollerLoadingIcon | undefined>;
120
+ readonly contentTemplate: import("@angular/core").Signal<TxVirtualScrollerContent | undefined>;
121
+ private readonly host;
122
+ private readonly destroy;
123
+ private readonly cleanup;
124
+ private timer;
125
+ private lastLazy;
126
+ private lastViewport;
127
+ readonly translations: import("@angular/core").Signal<import("@tectra-ng/core/config").TxTranslations>;
128
+ readonly isUnstyled: import("@angular/core").Signal<boolean>;
129
+ readonly passThrough: import("@angular/core").Signal<Partial<Record<TxVirtualScrollerPart, import("@tectra-ng/core/config").TxPassThroughPart>>>;
130
+ readonly hostStyle: import("@angular/core").Signal<{
131
+ width?: string | undefined;
132
+ height?: string | undefined;
133
+ }>;
134
+ readonly scrollTop: import("@angular/core").WritableSignal<number>;
135
+ readonly scrollLeft: import("@angular/core").WritableSignal<number>;
136
+ readonly viewportHeight: import("@angular/core").WritableSignal<number>;
137
+ readonly viewportWidth: import("@angular/core").WritableSignal<number>;
138
+ readonly scrolling: import("@angular/core").WritableSignal<boolean>;
139
+ readonly both: import("@angular/core").Signal<boolean>;
140
+ readonly horizontal: import("@angular/core").Signal<boolean>;
141
+ readonly rowSize: import("@angular/core").Signal<number>;
142
+ readonly columnSize: import("@angular/core").Signal<number>;
143
+ readonly list: import("@angular/core").Signal<readonly (T | undefined)[]>;
144
+ readonly grid: import("@angular/core").Signal<readonly (readonly (T | undefined)[])[]>;
145
+ readonly rowCount: import("@angular/core").Signal<number>;
146
+ readonly columnCount: import("@angular/core").Signal<number>;
147
+ readonly rows: import("@angular/core").Signal<TxAxisRange>;
148
+ readonly columns: import("@angular/core").Signal<TxAxisRange>;
149
+ readonly totalHeight: import("@angular/core").Signal<number | null>;
150
+ readonly totalWidth: import("@angular/core").Signal<number | null>;
151
+ readonly offsetTop: import("@angular/core").Signal<number>;
152
+ readonly offsetLeft: import("@angular/core").Signal<number>;
153
+ readonly contentTransform: import("@angular/core").Signal<string>;
154
+ readonly renderedItems: import("@angular/core").Signal<TxRenderedCell<T>[]>;
155
+ readonly renderedRows: import("@angular/core").Signal<TxRenderedRow<T>[]>;
156
+ readonly showLoaderMask: import("@angular/core").Signal<boolean>;
157
+ readonly showLoaderItems: import("@angular/core").Signal<boolean>;
158
+ readonly contentContext: import("@angular/core").Signal<TxVirtualScrollerContentContext<T | undefined>>;
159
+ constructor();
160
+ readonly renderedRange: import("@angular/core").Signal<TxVirtualScrollerRenderedRange>;
161
+ getRenderedRange(): TxVirtualScrollerRenderedRange;
162
+ trackOf(index: number, item: T | undefined): unknown;
163
+ itemContext(cell: TxRenderedCell<T>, count: number): TxVirtualScrollerItemContext<T | undefined>;
164
+ onScroll(event: Event): void;
165
+ scrollTo(options: ScrollToOptions): void;
166
+ scrollToIndex(index: TxVirtualScrollerPosition, behavior?: ScrollBehavior): void;
167
+ scrollInView(index: TxVirtualScrollerPosition, to: 'to-start' | 'to-end', behavior?: ScrollBehavior): void;
168
+ refresh(): void;
169
+ private positionOf;
170
+ private measure;
171
+ private fullRange;
172
+ private axisRange;
173
+ static ɵfac: i0.ɵɵFactoryDeclaration<TxVirtualScroller<any>, never>;
174
+ static ɵcmp: i0.ɵɵComponentDeclaration<TxVirtualScroller<any>, "tx-virtual-scroller", never, {
175
+ "items": {
176
+ "alias": "items";
177
+ "required": false;
178
+ "isSignal": true;
179
+ };
180
+ "itemSize": {
181
+ "alias": "itemSize";
182
+ "required": false;
183
+ "isSignal": true;
184
+ };
185
+ "scrollHeight": {
186
+ "alias": "scrollHeight";
187
+ "required": false;
188
+ "isSignal": true;
189
+ };
190
+ "scrollWidth": {
191
+ "alias": "scrollWidth";
192
+ "required": false;
193
+ "isSignal": true;
194
+ };
195
+ "orientation": {
196
+ "alias": "orientation";
197
+ "required": false;
198
+ "isSignal": true;
199
+ };
200
+ "numToleratedItems": {
201
+ "alias": "numToleratedItems";
202
+ "required": false;
203
+ "isSignal": true;
204
+ };
205
+ "delay": {
206
+ "alias": "delay";
207
+ "required": false;
208
+ "isSignal": true;
209
+ };
210
+ "step": {
211
+ "alias": "step";
212
+ "required": false;
213
+ "isSignal": true;
214
+ };
215
+ "lazy": {
216
+ "alias": "lazy";
217
+ "required": false;
218
+ "isSignal": true;
219
+ };
220
+ "appendOnly": {
221
+ "alias": "appendOnly";
222
+ "required": false;
223
+ "isSignal": true;
224
+ };
225
+ "disabled": {
226
+ "alias": "disabled";
227
+ "required": false;
228
+ "isSignal": true;
229
+ };
230
+ "showSpacer": {
231
+ "alias": "showSpacer";
232
+ "required": false;
233
+ "isSignal": true;
234
+ };
235
+ "showLoader": {
236
+ "alias": "showLoader";
237
+ "required": false;
238
+ "isSignal": true;
239
+ };
240
+ "loading": {
241
+ "alias": "loading";
242
+ "required": false;
243
+ "isSignal": true;
244
+ };
245
+ "loadingIcon": {
246
+ "alias": "loadingIcon";
247
+ "required": false;
248
+ "isSignal": true;
249
+ };
250
+ "trackBy": {
251
+ "alias": "trackBy";
252
+ "required": false;
253
+ "isSignal": true;
254
+ };
255
+ "tabindex": {
256
+ "alias": "tabindex";
257
+ "required": false;
258
+ "isSignal": true;
259
+ };
260
+ "ariaLabel": {
261
+ "alias": "ariaLabel";
262
+ "required": false;
263
+ "isSignal": true;
264
+ };
265
+ "ariaLabelledBy": {
266
+ "alias": "ariaLabelledBy";
267
+ "required": false;
268
+ "isSignal": true;
269
+ };
270
+ "dt": {
271
+ "alias": "dt";
272
+ "required": false;
273
+ "isSignal": true;
274
+ };
275
+ "pt": {
276
+ "alias": "pt";
277
+ "required": false;
278
+ "isSignal": true;
279
+ };
280
+ "ptOptions": {
281
+ "alias": "ptOptions";
282
+ "required": false;
283
+ "isSignal": true;
284
+ };
285
+ "unstyled": {
286
+ "alias": "unstyled";
287
+ "required": false;
288
+ "isSignal": true;
289
+ };
290
+ }, {
291
+ "lazyLoad": "lazyLoad";
292
+ "scrolled": "scrolled";
293
+ "scrollIndexChange": "scrollIndexChange";
294
+ }, ["itemTemplate", "loaderTemplate", "loadingIconTemplate", "contentTemplate"], never, true, never>;
295
+ }
296
+ export {};
297
+ //# sourceMappingURL=tectra-ng-ui-virtual-scroller.d.ts.map
@@ -0,0 +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":";;;;YAAY;YACA;YACA;iBAEK;EACf,OAAO;EACP,MAAM;;iBAGS,uCAAuC;EACtD,UAAU;;iBAGK;EACf;EACA;;iBAGe;EACf,eAAe;;iBAGA,6BAA6B;EAC5C,WAAW;EACX;EACA;EACA;EACA;EACA;EACA;;iBAGe;EACf;EACA;EACA;;iBAGe,gCAAgC;EAC/C,WAAW;EACX,OAAO;EACP;EACA;EACA;EACA;EACA;;qBCzCW;WACF,aAAW,YAAA;SADT,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;qBAKA;WACF,aAAW,YAAA;SADT,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;qBAKA;WACF,aAAW;SADT,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;qBAKA;WACF,aAAW,YAAA;SADT,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;UCgBH;EACR;EACA;EACA;EACA;;UAGQ,eAAe;EACvB;EACA,MAAM;;UAGE,cAAc;EACtB;EACA,OAAO,eAAe;;qBAyBX,kBAAkB;WACpB,+BAAK,sBAAA,uCAAA;WACL,kCAAQ;WACR,sCAAY;WACZ,qCAAW;WACX,qCAAW,YAAA;WACX,2CAAiB;WACjB,+BAAK;WACL,8BAAI;WACJ,8BAAI;WACJ,oCAAU;WACV,kCAAQ;WACR,oCAAU;WACV,oCAAU;WACV,iCAAO;WACP,qCAAW;WACX,iCAAO,cAAA,eAAwB,MAAQ;WAC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AAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA;IAAA;IAAA"}
@@ -0,0 +1,60 @@
1
+ # Virtual scroller
2
+
3
+ Renders only the items that fit in its scroll area, so lists of thousands of items scroll smoothly. Works vertically, horizontally or in both directions (a grid of rows and columns), loads ranges lazily from a server, shows loaders and scrolls to any index. Items have a fixed size.
4
+
5
+ ## Inputs
6
+ | Name | Description |
7
+ |---|---|
8
+ | items | Items to render; for `both` an array of rows, each an array of cells. Missing items (`undefined`) show the loader template |
9
+ | itemSize | Size of one item in px; for `both` `[rowHeight, columnWidth]` |
10
+ | scrollHeight | Height of the scroll area, e.g. `300px` |
11
+ | scrollWidth | Width of the scroll area |
12
+ | orientation | `vertical`, `horizontal` or `both` |
13
+ | numToleratedItems | Items rendered beyond each edge of the viewport (half a viewport by default) |
14
+ | delay | Waits this many ms after scrolling stops before rendering the new range |
15
+ | step | With `lazy`, ranges are asked in chunks of this many items |
16
+ | lazy | Emits `lazyLoad` with every new range |
17
+ | appendOnly | Keeps the items already rendered, only adds new ones |
18
+ | disabled | Renders every item without virtualization |
19
+ | showSpacer | Keeps the full scroll size with a spacer |
20
+ | showLoader | Shows loaders while `loading` is on or while a `delay` runs |
21
+ | loading | Loading state; with `showLoader` shows the loader template or a mask with a spinner |
22
+ | loadingIcon | Icon of the loading mask |
23
+ | trackBy | `(index, item) => key` for rendering; the index by default |
24
+ | tabindex | Tab index of the scroll area so it scrolls with the keyboard |
25
+ | ariaLabel | Accessible name; the scroll area becomes a region |
26
+ | ariaLabelledBy | Id of the element that labels the scroll area |
27
+ | dt | Design tokens of this instance (`virtualScroller`) |
28
+ | pt | Classes and styles of the parts: `root`, `spacer`, `content`, `item`, `row`, `loader`, `loadingIcon` |
29
+ | ptOptions | How `pt` merges with the global pass-through |
30
+ | unstyled | Removes the tectra styles |
31
+
32
+ ## Outputs
33
+ | Name | Description |
34
+ |---|---|
35
+ | lazyLoad | A new range should be loaded: `{ first, last }` |
36
+ | scrolled | The area was scrolled: `{ originalEvent }` |
37
+ | scrollIndexChange | The visible range changed: `{ first, last }` |
38
+
39
+ ## Slots
40
+ | Name | Description |
41
+ |---|---|
42
+ | txVirtualScrollerItem | `<ng-template txVirtualScrollerItem let-item let-index="index">` — one item; context also has `count`, `first`, `last`, `even`, `odd` |
43
+ | txVirtualScrollerLoader | `<ng-template txVirtualScrollerLoader let-index>` — placeholder of a missing or loading item |
44
+ | txVirtualScrollerLoadingIcon | `<ng-template txVirtualScrollerLoadingIcon>` — own icon of the loading mask |
45
+ | txVirtualScrollerContent | `<ng-template txVirtualScrollerContent let-items let-first="first">` — renders the whole range yourself (rows of a table, for example) |
46
+
47
+ ## Methods
48
+ | Name | Description |
49
+ |---|---|
50
+ | scrollToIndex(index, behavior?) | Scrolls so the item is first; `[row, column]` for `both` |
51
+ | scrollInView(index, 'to-start' \| 'to-end', behavior?) | Scrolls the item to the start or the end of the viewport |
52
+ | scrollTo(options) | Native `scrollTo` |
53
+ | getRenderedRange() | `{ first, last, viewport: { first, last } }` |
54
+ | refresh() | Measures the viewport again |
55
+
56
+ ## Keyboard
57
+ | Key | Action |
58
+ |---|---|
59
+ | Tab | Focuses the scroll area |
60
+ | Arrow keys, Page Up / Page Down, Home / End, Space | Scroll natively |