@tectra-ng/ui 0.3.2 → 0.4.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.
Files changed (242) hide show
  1. package/README.md +2 -2
  2. package/data-view/README.md +9 -1
  3. package/dialog/README.md +3 -0
  4. package/fesm2022/tectra-ng-ui-accordion.mjs.map +1 -1
  5. package/fesm2022/tectra-ng-ui-amount.mjs.map +1 -1
  6. package/fesm2022/tectra-ng-ui-analog-clock.mjs.map +1 -1
  7. package/fesm2022/tectra-ng-ui-avatar.mjs.map +1 -1
  8. package/fesm2022/tectra-ng-ui-breadcrumb.mjs.map +1 -1
  9. package/fesm2022/tectra-ng-ui-carousel.mjs.map +1 -1
  10. package/fesm2022/tectra-ng-ui-checkbox.mjs.map +1 -1
  11. package/fesm2022/tectra-ng-ui-chips-input.mjs.map +1 -1
  12. package/fesm2022/tectra-ng-ui-color-picker.mjs.map +1 -1
  13. package/fesm2022/tectra-ng-ui-confirm.mjs.map +1 -1
  14. package/fesm2022/tectra-ng-ui-countdown.mjs.map +1 -1
  15. package/fesm2022/tectra-ng-ui-country.mjs.map +1 -1
  16. package/fesm2022/tectra-ng-ui-data-view.mjs.map +1 -1
  17. package/fesm2022/tectra-ng-ui-datepicker.mjs.map +1 -1
  18. package/fesm2022/tectra-ng-ui-dialog.mjs +51 -0
  19. package/fesm2022/tectra-ng-ui-dialog.mjs.map +1 -1
  20. package/fesm2022/tectra-ng-ui-email-suggestion.mjs.map +1 -1
  21. package/fesm2022/tectra-ng-ui-export-font.mjs.map +1 -1
  22. package/fesm2022/tectra-ng-ui-export.mjs.map +1 -1
  23. package/fesm2022/tectra-ng-ui-file-upload.mjs.map +1 -1
  24. package/fesm2022/tectra-ng-ui-galleria.mjs.map +1 -1
  25. package/fesm2022/tectra-ng-ui-highlight-text.mjs.map +1 -1
  26. package/fesm2022/tectra-ng-ui-icon-field.mjs.map +1 -1
  27. package/fesm2022/tectra-ng-ui-image.mjs.map +1 -1
  28. package/fesm2022/tectra-ng-ui-input-mask.mjs.map +1 -1
  29. package/fesm2022/tectra-ng-ui-input-number.mjs.map +1 -1
  30. package/fesm2022/tectra-ng-ui-key-filter.mjs.map +1 -1
  31. package/fesm2022/tectra-ng-ui-list-input.mjs.map +1 -1
  32. package/fesm2022/tectra-ng-ui-mention-textarea.mjs.map +1 -1
  33. package/fesm2022/tectra-ng-ui-menu.mjs.map +1 -1
  34. package/fesm2022/tectra-ng-ui-month-calendar.mjs.map +1 -1
  35. package/fesm2022/tectra-ng-ui-paginator.mjs.map +1 -1
  36. package/fesm2022/tectra-ng-ui-panel-menu.mjs.map +1 -1
  37. package/fesm2022/tectra-ng-ui-password-generator.mjs.map +1 -1
  38. package/fesm2022/tectra-ng-ui-radio-button.mjs.map +1 -1
  39. package/fesm2022/tectra-ng-ui-select.mjs.map +1 -1
  40. package/fesm2022/tectra-ng-ui-sparkline.mjs.map +1 -1
  41. package/fesm2022/tectra-ng-ui-splitter.mjs.map +1 -1
  42. package/fesm2022/tectra-ng-ui-stat-tiles.mjs.map +1 -1
  43. package/fesm2022/tectra-ng-ui-stepper.mjs.map +1 -1
  44. package/fesm2022/tectra-ng-ui-table.mjs +2 -2
  45. package/fesm2022/tectra-ng-ui-table.mjs.map +1 -1
  46. package/fesm2022/tectra-ng-ui-tabs.mjs.map +1 -1
  47. package/fesm2022/tectra-ng-ui-toast.mjs.map +1 -1
  48. package/fesm2022/tectra-ng-ui-toolbar.mjs.map +1 -1
  49. package/fesm2022/tectra-ng-ui-tooltip.mjs.map +1 -1
  50. package/fesm2022/tectra-ng-ui-tree-select.mjs +20 -3
  51. package/fesm2022/tectra-ng-ui-tree-select.mjs.map +1 -1
  52. package/fesm2022/tectra-ng-ui-tree-table.mjs +2 -2
  53. package/fesm2022/tectra-ng-ui-tree-table.mjs.map +1 -1
  54. package/fesm2022/tectra-ng-ui-tree.mjs.map +1 -1
  55. package/fesm2022/tectra-ng-ui-virtual-scroller.mjs.map +1 -1
  56. package/fesm2022/tectra-ng-ui.mjs +1 -1
  57. package/fesm2022/tectra-ng-ui.mjs.map +1 -1
  58. package/package.json +4 -4
  59. package/table/README.md +1 -0
  60. package/tree-select/README.md +1 -0
  61. package/types/tectra-ng-ui-accordion.d.ts +96 -65
  62. package/types/tectra-ng-ui-accordion.d.ts.map +1 -1
  63. package/types/tectra-ng-ui-amount.d.ts +40 -17
  64. package/types/tectra-ng-ui-amount.d.ts.map +1 -1
  65. package/types/tectra-ng-ui-analog-clock.d.ts +28 -41
  66. package/types/tectra-ng-ui-analog-clock.d.ts.map +1 -1
  67. package/types/tectra-ng-ui-autocomplete.d.ts +35 -96
  68. package/types/tectra-ng-ui-autocomplete.d.ts.map +1 -1
  69. package/types/tectra-ng-ui-avatar.d.ts +84 -259
  70. package/types/tectra-ng-ui-avatar.d.ts.map +1 -1
  71. package/types/tectra-ng-ui-badge.d.ts +18 -61
  72. package/types/tectra-ng-ui-badge.d.ts.map +1 -1
  73. package/types/tectra-ng-ui-breadcrumb.d.ts +53 -36
  74. package/types/tectra-ng-ui-breadcrumb.d.ts.map +1 -1
  75. package/types/tectra-ng-ui-button-group.d.ts +4 -0
  76. package/types/tectra-ng-ui-button-group.d.ts.map +1 -1
  77. package/types/tectra-ng-ui-button.d.ts +45 -266
  78. package/types/tectra-ng-ui-button.d.ts.map +1 -1
  79. package/types/tectra-ng-ui-card.d.ts +14 -16
  80. package/types/tectra-ng-ui-card.d.ts.map +1 -1
  81. package/types/tectra-ng-ui-carousel.d.ts +55 -27
  82. package/types/tectra-ng-ui-carousel.d.ts.map +1 -1
  83. package/types/tectra-ng-ui-cascade-select.d.ts +48 -8
  84. package/types/tectra-ng-ui-cascade-select.d.ts.map +1 -1
  85. package/types/tectra-ng-ui-checkbox.d.ts +79 -119
  86. package/types/tectra-ng-ui-checkbox.d.ts.map +1 -1
  87. package/types/tectra-ng-ui-chip.d.ts +19 -22
  88. package/types/tectra-ng-ui-chip.d.ts.map +1 -1
  89. package/types/tectra-ng-ui-chips-input.d.ts +41 -11
  90. package/types/tectra-ng-ui-chips-input.d.ts.map +1 -1
  91. package/types/tectra-ng-ui-color-picker.d.ts +51 -47
  92. package/types/tectra-ng-ui-color-picker.d.ts.map +1 -1
  93. package/types/tectra-ng-ui-confirm.d.ts +45 -0
  94. package/types/tectra-ng-ui-confirm.d.ts.map +1 -1
  95. package/types/tectra-ng-ui-countdown.d.ts +42 -10
  96. package/types/tectra-ng-ui-countdown.d.ts.map +1 -1
  97. package/types/tectra-ng-ui-country-select.d.ts +41 -96
  98. package/types/tectra-ng-ui-country-select.d.ts.map +1 -1
  99. package/types/tectra-ng-ui-country.d.ts +40 -17
  100. package/types/tectra-ng-ui-country.d.ts.map +1 -1
  101. package/types/tectra-ng-ui-data-view.d.ts +92 -34
  102. package/types/tectra-ng-ui-data-view.d.ts.map +1 -1
  103. package/types/tectra-ng-ui-datepicker.d.ts +186 -147
  104. package/types/tectra-ng-ui-datepicker.d.ts.map +1 -1
  105. package/types/tectra-ng-ui-dialog.d.ts +149 -67
  106. package/types/tectra-ng-ui-dialog.d.ts.map +1 -1
  107. package/types/tectra-ng-ui-divider.d.ts +17 -12
  108. package/types/tectra-ng-ui-divider.d.ts.map +1 -1
  109. package/types/tectra-ng-ui-drawer.d.ts +31 -67
  110. package/types/tectra-ng-ui-drawer.d.ts.map +1 -1
  111. package/types/tectra-ng-ui-email-suggestion.d.ts +25 -8
  112. package/types/tectra-ng-ui-email-suggestion.d.ts.map +1 -1
  113. package/types/tectra-ng-ui-export-font.d.ts +1 -0
  114. package/types/tectra-ng-ui-export-font.d.ts.map +1 -1
  115. package/types/tectra-ng-ui-export.d.ts +238 -0
  116. package/types/tectra-ng-ui-export.d.ts.map +1 -1
  117. package/types/tectra-ng-ui-field.d.ts +24 -11
  118. package/types/tectra-ng-ui-field.d.ts.map +1 -1
  119. package/types/tectra-ng-ui-fieldset.d.ts +14 -23
  120. package/types/tectra-ng-ui-fieldset.d.ts.map +1 -1
  121. package/types/tectra-ng-ui-file-upload.d.ts +127 -115
  122. package/types/tectra-ng-ui-file-upload.d.ts.map +1 -1
  123. package/types/tectra-ng-ui-galleria.d.ts +84 -84
  124. package/types/tectra-ng-ui-galleria.d.ts.map +1 -1
  125. package/types/tectra-ng-ui-highlight-text.d.ts +24 -10
  126. package/types/tectra-ng-ui-highlight-text.d.ts.map +1 -1
  127. package/types/tectra-ng-ui-icon-field.d.ts +20 -0
  128. package/types/tectra-ng-ui-icon-field.d.ts.map +1 -1
  129. package/types/tectra-ng-ui-image.d.ts +60 -36
  130. package/types/tectra-ng-ui-image.d.ts.map +1 -1
  131. package/types/tectra-ng-ui-input-group.d.ts +9 -0
  132. package/types/tectra-ng-ui-input-group.d.ts.map +1 -1
  133. package/types/tectra-ng-ui-input-mask.d.ts +39 -0
  134. package/types/tectra-ng-ui-input-mask.d.ts.map +1 -1
  135. package/types/tectra-ng-ui-input-number.d.ts +73 -15
  136. package/types/tectra-ng-ui-input-number.d.ts.map +1 -1
  137. package/types/tectra-ng-ui-input-otp.d.ts +28 -21
  138. package/types/tectra-ng-ui-input-otp.d.ts.map +1 -1
  139. package/types/tectra-ng-ui-input.d.ts +17 -50
  140. package/types/tectra-ng-ui-input.d.ts.map +1 -1
  141. package/types/tectra-ng-ui-key-filter.d.ts +14 -0
  142. package/types/tectra-ng-ui-key-filter.d.ts.map +1 -1
  143. package/types/tectra-ng-ui-knob.d.ts +38 -18
  144. package/types/tectra-ng-ui-knob.d.ts.map +1 -1
  145. package/types/tectra-ng-ui-label.d.ts +19 -0
  146. package/types/tectra-ng-ui-label.d.ts.map +1 -1
  147. package/types/tectra-ng-ui-link.d.ts +39 -34
  148. package/types/tectra-ng-ui-link.d.ts.map +1 -1
  149. package/types/tectra-ng-ui-list-input.d.ts +54 -45
  150. package/types/tectra-ng-ui-list-input.d.ts.map +1 -1
  151. package/types/tectra-ng-ui-listbox.d.ts +24 -14
  152. package/types/tectra-ng-ui-listbox.d.ts.map +1 -1
  153. package/types/tectra-ng-ui-mention-textarea.d.ts +36 -9
  154. package/types/tectra-ng-ui-mention-textarea.d.ts.map +1 -1
  155. package/types/tectra-ng-ui-menu.d.ts +92 -166
  156. package/types/tectra-ng-ui-menu.d.ts.map +1 -1
  157. package/types/tectra-ng-ui-menubar.d.ts +29 -58
  158. package/types/tectra-ng-ui-menubar.d.ts.map +1 -1
  159. package/types/tectra-ng-ui-message.d.ts +61 -126
  160. package/types/tectra-ng-ui-message.d.ts.map +1 -1
  161. package/types/tectra-ng-ui-month-calendar.d.ts +98 -87
  162. package/types/tectra-ng-ui-month-calendar.d.ts.map +1 -1
  163. package/types/tectra-ng-ui-multiselect.d.ts +26 -96
  164. package/types/tectra-ng-ui-multiselect.d.ts.map +1 -1
  165. package/types/tectra-ng-ui-overlay-badge.d.ts +20 -9
  166. package/types/tectra-ng-ui-overlay-badge.d.ts.map +1 -1
  167. package/types/tectra-ng-ui-paginator.d.ts +69 -47
  168. package/types/tectra-ng-ui-paginator.d.ts.map +1 -1
  169. package/types/tectra-ng-ui-panel-menu.d.ts +52 -105
  170. package/types/tectra-ng-ui-panel-menu.d.ts.map +1 -1
  171. package/types/tectra-ng-ui-panel.d.ts +22 -30
  172. package/types/tectra-ng-ui-panel.d.ts.map +1 -1
  173. package/types/tectra-ng-ui-password-generator.d.ts +27 -0
  174. package/types/tectra-ng-ui-password-generator.d.ts.map +1 -1
  175. package/types/tectra-ng-ui-password.d.ts +55 -26
  176. package/types/tectra-ng-ui-password.d.ts.map +1 -1
  177. package/types/tectra-ng-ui-pill.d.ts +23 -70
  178. package/types/tectra-ng-ui-pill.d.ts.map +1 -1
  179. package/types/tectra-ng-ui-popover.d.ts +58 -46
  180. package/types/tectra-ng-ui-popover.d.ts.map +1 -1
  181. package/types/tectra-ng-ui-progress-bar.d.ts +32 -28
  182. package/types/tectra-ng-ui-progress-bar.d.ts.map +1 -1
  183. package/types/tectra-ng-ui-progress-spinner.d.ts +18 -16
  184. package/types/tectra-ng-ui-progress-spinner.d.ts.map +1 -1
  185. package/types/tectra-ng-ui-radio-button.d.ts +64 -115
  186. package/types/tectra-ng-ui-radio-button.d.ts.map +1 -1
  187. package/types/tectra-ng-ui-rating.d.ts +40 -29
  188. package/types/tectra-ng-ui-rating.d.ts.map +1 -1
  189. package/types/tectra-ng-ui-scroll-panel.d.ts +22 -17
  190. package/types/tectra-ng-ui-scroll-panel.d.ts.map +1 -1
  191. package/types/tectra-ng-ui-select.d.ts +169 -100
  192. package/types/tectra-ng-ui-select.d.ts.map +1 -1
  193. package/types/tectra-ng-ui-skeleton.d.ts +34 -37
  194. package/types/tectra-ng-ui-skeleton.d.ts.map +1 -1
  195. package/types/tectra-ng-ui-slider.d.ts +37 -33
  196. package/types/tectra-ng-ui-slider.d.ts.map +1 -1
  197. package/types/tectra-ng-ui-sparkline.d.ts +22 -15
  198. package/types/tectra-ng-ui-sparkline.d.ts.map +1 -1
  199. package/types/tectra-ng-ui-speed-dial.d.ts +34 -11
  200. package/types/tectra-ng-ui-speed-dial.d.ts.map +1 -1
  201. package/types/tectra-ng-ui-split-button.d.ts +28 -7
  202. package/types/tectra-ng-ui-split-button.d.ts.map +1 -1
  203. package/types/tectra-ng-ui-splitter.d.ts +47 -23
  204. package/types/tectra-ng-ui-splitter.d.ts.map +1 -1
  205. package/types/tectra-ng-ui-stat-tiles.d.ts +39 -91
  206. package/types/tectra-ng-ui-stat-tiles.d.ts.map +1 -1
  207. package/types/tectra-ng-ui-status-icon.d.ts +19 -23
  208. package/types/tectra-ng-ui-status-icon.d.ts.map +1 -1
  209. package/types/tectra-ng-ui-stepper.d.ts +106 -133
  210. package/types/tectra-ng-ui-stepper.d.ts.map +1 -1
  211. package/types/tectra-ng-ui-table.d.ts +415 -183
  212. package/types/tectra-ng-ui-table.d.ts.map +1 -1
  213. package/types/tectra-ng-ui-tabs.d.ts +91 -133
  214. package/types/tectra-ng-ui-tabs.d.ts.map +1 -1
  215. package/types/tectra-ng-ui-tag.d.ts +46 -135
  216. package/types/tectra-ng-ui-tag.d.ts.map +1 -1
  217. package/types/tectra-ng-ui-textarea.d.ts +25 -31
  218. package/types/tectra-ng-ui-textarea.d.ts.map +1 -1
  219. package/types/tectra-ng-ui-timeline.d.ts +39 -27
  220. package/types/tectra-ng-ui-timeline.d.ts.map +1 -1
  221. package/types/tectra-ng-ui-toast.d.ts +84 -78
  222. package/types/tectra-ng-ui-toast.d.ts.map +1 -1
  223. package/types/tectra-ng-ui-toggle-button.d.ts +29 -55
  224. package/types/tectra-ng-ui-toggle-button.d.ts.map +1 -1
  225. package/types/tectra-ng-ui-toggle-switch.d.ts +41 -55
  226. package/types/tectra-ng-ui-toggle-switch.d.ts.map +1 -1
  227. package/types/tectra-ng-ui-toolbar.d.ts +15 -14
  228. package/types/tectra-ng-ui-toolbar.d.ts.map +1 -1
  229. package/types/tectra-ng-ui-tooltip.d.ts +72 -22
  230. package/types/tectra-ng-ui-tooltip.d.ts.map +1 -1
  231. package/types/tectra-ng-ui-tree-select.d.ts +65 -104
  232. package/types/tectra-ng-ui-tree-select.d.ts.map +1 -1
  233. package/types/tectra-ng-ui-tree-table.d.ts +30 -0
  234. package/types/tectra-ng-ui-tree-table.d.ts.map +1 -1
  235. package/types/tectra-ng-ui-tree.d.ts +197 -69
  236. package/types/tectra-ng-ui-tree.d.ts.map +1 -1
  237. package/types/tectra-ng-ui-truncate-text.d.ts +21 -14
  238. package/types/tectra-ng-ui-truncate-text.d.ts.map +1 -1
  239. package/types/tectra-ng-ui-virtual-scroller.d.ts +97 -13
  240. package/types/tectra-ng-ui-virtual-scroller.d.ts.map +1 -1
  241. package/types/tectra-ng-ui.d.ts +2 -1
  242. 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
- readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<{
101
- root: {
102
- focusRingWidth: string;
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":";;;;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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../../../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,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;;;UCmBH;;EAER;;EAEA;;EAEA;;EAEA;;;UAIQ,eAAe;;EAEvB;;EAEA,MAAM;;;UAIE,cAAc;;EAEtB;;EAEA,OAAO,eAAe;;;;;;qBA8BX,kBAAkB;mBACZ;;WAER,+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;;WACvC,kCAAQ;;WACR,mCAAS;;WACT,wCAAc;;WACd,4BAAE,Y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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"}
@@ -1,2 +1,3 @@
1
- export declare const TECTRA_UI_VERSION = "0.0.0";
1
+ /** Version of the installed `@tectra-ng/ui` package, written in when the package is built. */
2
+ export declare const TECTRA_UI_VERSION = "0.4.1";
2
3
  //# sourceMappingURL=tectra-ng-ui.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-ui.d.ts","names":[],"sources":["../../../../packages/ui/index.ts"],"mappings":"AAAA,qBAAa"}
1
+ {"version":3,"file":"tectra-ng-ui.d.ts","names":[],"sources":["../../../../packages/ui/index.ts"],"mappings":"AACA;qBAAa"}