@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.
Files changed (241) hide show
  1. package/data-view/README.md +9 -1
  2. package/dialog/README.md +3 -0
  3. package/fesm2022/tectra-ng-ui-accordion.mjs.map +1 -1
  4. package/fesm2022/tectra-ng-ui-amount.mjs.map +1 -1
  5. package/fesm2022/tectra-ng-ui-analog-clock.mjs.map +1 -1
  6. package/fesm2022/tectra-ng-ui-avatar.mjs.map +1 -1
  7. package/fesm2022/tectra-ng-ui-breadcrumb.mjs.map +1 -1
  8. package/fesm2022/tectra-ng-ui-carousel.mjs.map +1 -1
  9. package/fesm2022/tectra-ng-ui-checkbox.mjs.map +1 -1
  10. package/fesm2022/tectra-ng-ui-chips-input.mjs.map +1 -1
  11. package/fesm2022/tectra-ng-ui-color-picker.mjs.map +1 -1
  12. package/fesm2022/tectra-ng-ui-confirm.mjs.map +1 -1
  13. package/fesm2022/tectra-ng-ui-countdown.mjs.map +1 -1
  14. package/fesm2022/tectra-ng-ui-country.mjs.map +1 -1
  15. package/fesm2022/tectra-ng-ui-data-view.mjs.map +1 -1
  16. package/fesm2022/tectra-ng-ui-datepicker.mjs.map +1 -1
  17. package/fesm2022/tectra-ng-ui-dialog.mjs +51 -0
  18. package/fesm2022/tectra-ng-ui-dialog.mjs.map +1 -1
  19. package/fesm2022/tectra-ng-ui-email-suggestion.mjs.map +1 -1
  20. package/fesm2022/tectra-ng-ui-export-font.mjs.map +1 -1
  21. package/fesm2022/tectra-ng-ui-export.mjs.map +1 -1
  22. package/fesm2022/tectra-ng-ui-file-upload.mjs.map +1 -1
  23. package/fesm2022/tectra-ng-ui-galleria.mjs.map +1 -1
  24. package/fesm2022/tectra-ng-ui-highlight-text.mjs.map +1 -1
  25. package/fesm2022/tectra-ng-ui-icon-field.mjs.map +1 -1
  26. package/fesm2022/tectra-ng-ui-image.mjs.map +1 -1
  27. package/fesm2022/tectra-ng-ui-input-mask.mjs.map +1 -1
  28. package/fesm2022/tectra-ng-ui-input-number.mjs.map +1 -1
  29. package/fesm2022/tectra-ng-ui-key-filter.mjs.map +1 -1
  30. package/fesm2022/tectra-ng-ui-list-input.mjs.map +1 -1
  31. package/fesm2022/tectra-ng-ui-mention-textarea.mjs.map +1 -1
  32. package/fesm2022/tectra-ng-ui-menu.mjs.map +1 -1
  33. package/fesm2022/tectra-ng-ui-month-calendar.mjs.map +1 -1
  34. package/fesm2022/tectra-ng-ui-paginator.mjs.map +1 -1
  35. package/fesm2022/tectra-ng-ui-panel-menu.mjs.map +1 -1
  36. package/fesm2022/tectra-ng-ui-password-generator.mjs.map +1 -1
  37. package/fesm2022/tectra-ng-ui-radio-button.mjs.map +1 -1
  38. package/fesm2022/tectra-ng-ui-select.mjs.map +1 -1
  39. package/fesm2022/tectra-ng-ui-sparkline.mjs.map +1 -1
  40. package/fesm2022/tectra-ng-ui-splitter.mjs.map +1 -1
  41. package/fesm2022/tectra-ng-ui-stat-tiles.mjs.map +1 -1
  42. package/fesm2022/tectra-ng-ui-stepper.mjs.map +1 -1
  43. package/fesm2022/tectra-ng-ui-table.mjs +2 -2
  44. package/fesm2022/tectra-ng-ui-table.mjs.map +1 -1
  45. package/fesm2022/tectra-ng-ui-tabs.mjs.map +1 -1
  46. package/fesm2022/tectra-ng-ui-toast.mjs.map +1 -1
  47. package/fesm2022/tectra-ng-ui-toolbar.mjs.map +1 -1
  48. package/fesm2022/tectra-ng-ui-tooltip.mjs.map +1 -1
  49. package/fesm2022/tectra-ng-ui-tree-select.mjs +20 -3
  50. package/fesm2022/tectra-ng-ui-tree-select.mjs.map +1 -1
  51. package/fesm2022/tectra-ng-ui-tree-table.mjs +2 -2
  52. package/fesm2022/tectra-ng-ui-tree-table.mjs.map +1 -1
  53. package/fesm2022/tectra-ng-ui-tree.mjs.map +1 -1
  54. package/fesm2022/tectra-ng-ui-virtual-scroller.mjs.map +1 -1
  55. package/fesm2022/tectra-ng-ui.mjs +1 -1
  56. package/fesm2022/tectra-ng-ui.mjs.map +1 -1
  57. package/package.json +9 -9
  58. package/table/README.md +1 -0
  59. package/tree-select/README.md +1 -0
  60. package/types/tectra-ng-ui-accordion.d.ts +96 -65
  61. package/types/tectra-ng-ui-accordion.d.ts.map +1 -1
  62. package/types/tectra-ng-ui-amount.d.ts +40 -17
  63. package/types/tectra-ng-ui-amount.d.ts.map +1 -1
  64. package/types/tectra-ng-ui-analog-clock.d.ts +28 -41
  65. package/types/tectra-ng-ui-analog-clock.d.ts.map +1 -1
  66. package/types/tectra-ng-ui-autocomplete.d.ts +35 -96
  67. package/types/tectra-ng-ui-autocomplete.d.ts.map +1 -1
  68. package/types/tectra-ng-ui-avatar.d.ts +84 -259
  69. package/types/tectra-ng-ui-avatar.d.ts.map +1 -1
  70. package/types/tectra-ng-ui-badge.d.ts +18 -61
  71. package/types/tectra-ng-ui-badge.d.ts.map +1 -1
  72. package/types/tectra-ng-ui-breadcrumb.d.ts +53 -36
  73. package/types/tectra-ng-ui-breadcrumb.d.ts.map +1 -1
  74. package/types/tectra-ng-ui-button-group.d.ts +4 -0
  75. package/types/tectra-ng-ui-button-group.d.ts.map +1 -1
  76. package/types/tectra-ng-ui-button.d.ts +45 -266
  77. package/types/tectra-ng-ui-button.d.ts.map +1 -1
  78. package/types/tectra-ng-ui-card.d.ts +14 -16
  79. package/types/tectra-ng-ui-card.d.ts.map +1 -1
  80. package/types/tectra-ng-ui-carousel.d.ts +55 -27
  81. package/types/tectra-ng-ui-carousel.d.ts.map +1 -1
  82. package/types/tectra-ng-ui-cascade-select.d.ts +48 -8
  83. package/types/tectra-ng-ui-cascade-select.d.ts.map +1 -1
  84. package/types/tectra-ng-ui-checkbox.d.ts +79 -119
  85. package/types/tectra-ng-ui-checkbox.d.ts.map +1 -1
  86. package/types/tectra-ng-ui-chip.d.ts +19 -22
  87. package/types/tectra-ng-ui-chip.d.ts.map +1 -1
  88. package/types/tectra-ng-ui-chips-input.d.ts +41 -11
  89. package/types/tectra-ng-ui-chips-input.d.ts.map +1 -1
  90. package/types/tectra-ng-ui-color-picker.d.ts +51 -47
  91. package/types/tectra-ng-ui-color-picker.d.ts.map +1 -1
  92. package/types/tectra-ng-ui-confirm.d.ts +45 -0
  93. package/types/tectra-ng-ui-confirm.d.ts.map +1 -1
  94. package/types/tectra-ng-ui-countdown.d.ts +42 -10
  95. package/types/tectra-ng-ui-countdown.d.ts.map +1 -1
  96. package/types/tectra-ng-ui-country-select.d.ts +41 -96
  97. package/types/tectra-ng-ui-country-select.d.ts.map +1 -1
  98. package/types/tectra-ng-ui-country.d.ts +40 -17
  99. package/types/tectra-ng-ui-country.d.ts.map +1 -1
  100. package/types/tectra-ng-ui-data-view.d.ts +92 -34
  101. package/types/tectra-ng-ui-data-view.d.ts.map +1 -1
  102. package/types/tectra-ng-ui-datepicker.d.ts +186 -147
  103. package/types/tectra-ng-ui-datepicker.d.ts.map +1 -1
  104. package/types/tectra-ng-ui-dialog.d.ts +149 -67
  105. package/types/tectra-ng-ui-dialog.d.ts.map +1 -1
  106. package/types/tectra-ng-ui-divider.d.ts +17 -12
  107. package/types/tectra-ng-ui-divider.d.ts.map +1 -1
  108. package/types/tectra-ng-ui-drawer.d.ts +31 -67
  109. package/types/tectra-ng-ui-drawer.d.ts.map +1 -1
  110. package/types/tectra-ng-ui-email-suggestion.d.ts +25 -8
  111. package/types/tectra-ng-ui-email-suggestion.d.ts.map +1 -1
  112. package/types/tectra-ng-ui-export-font.d.ts +1 -0
  113. package/types/tectra-ng-ui-export-font.d.ts.map +1 -1
  114. package/types/tectra-ng-ui-export.d.ts +238 -0
  115. package/types/tectra-ng-ui-export.d.ts.map +1 -1
  116. package/types/tectra-ng-ui-field.d.ts +24 -11
  117. package/types/tectra-ng-ui-field.d.ts.map +1 -1
  118. package/types/tectra-ng-ui-fieldset.d.ts +14 -23
  119. package/types/tectra-ng-ui-fieldset.d.ts.map +1 -1
  120. package/types/tectra-ng-ui-file-upload.d.ts +127 -115
  121. package/types/tectra-ng-ui-file-upload.d.ts.map +1 -1
  122. package/types/tectra-ng-ui-galleria.d.ts +84 -84
  123. package/types/tectra-ng-ui-galleria.d.ts.map +1 -1
  124. package/types/tectra-ng-ui-highlight-text.d.ts +24 -10
  125. package/types/tectra-ng-ui-highlight-text.d.ts.map +1 -1
  126. package/types/tectra-ng-ui-icon-field.d.ts +20 -0
  127. package/types/tectra-ng-ui-icon-field.d.ts.map +1 -1
  128. package/types/tectra-ng-ui-image.d.ts +60 -36
  129. package/types/tectra-ng-ui-image.d.ts.map +1 -1
  130. package/types/tectra-ng-ui-input-group.d.ts +9 -0
  131. package/types/tectra-ng-ui-input-group.d.ts.map +1 -1
  132. package/types/tectra-ng-ui-input-mask.d.ts +39 -0
  133. package/types/tectra-ng-ui-input-mask.d.ts.map +1 -1
  134. package/types/tectra-ng-ui-input-number.d.ts +73 -15
  135. package/types/tectra-ng-ui-input-number.d.ts.map +1 -1
  136. package/types/tectra-ng-ui-input-otp.d.ts +28 -21
  137. package/types/tectra-ng-ui-input-otp.d.ts.map +1 -1
  138. package/types/tectra-ng-ui-input.d.ts +17 -50
  139. package/types/tectra-ng-ui-input.d.ts.map +1 -1
  140. package/types/tectra-ng-ui-key-filter.d.ts +14 -0
  141. package/types/tectra-ng-ui-key-filter.d.ts.map +1 -1
  142. package/types/tectra-ng-ui-knob.d.ts +38 -18
  143. package/types/tectra-ng-ui-knob.d.ts.map +1 -1
  144. package/types/tectra-ng-ui-label.d.ts +19 -0
  145. package/types/tectra-ng-ui-label.d.ts.map +1 -1
  146. package/types/tectra-ng-ui-link.d.ts +39 -34
  147. package/types/tectra-ng-ui-link.d.ts.map +1 -1
  148. package/types/tectra-ng-ui-list-input.d.ts +54 -45
  149. package/types/tectra-ng-ui-list-input.d.ts.map +1 -1
  150. package/types/tectra-ng-ui-listbox.d.ts +24 -14
  151. package/types/tectra-ng-ui-listbox.d.ts.map +1 -1
  152. package/types/tectra-ng-ui-mention-textarea.d.ts +36 -9
  153. package/types/tectra-ng-ui-mention-textarea.d.ts.map +1 -1
  154. package/types/tectra-ng-ui-menu.d.ts +92 -166
  155. package/types/tectra-ng-ui-menu.d.ts.map +1 -1
  156. package/types/tectra-ng-ui-menubar.d.ts +29 -58
  157. package/types/tectra-ng-ui-menubar.d.ts.map +1 -1
  158. package/types/tectra-ng-ui-message.d.ts +61 -126
  159. package/types/tectra-ng-ui-message.d.ts.map +1 -1
  160. package/types/tectra-ng-ui-month-calendar.d.ts +98 -87
  161. package/types/tectra-ng-ui-month-calendar.d.ts.map +1 -1
  162. package/types/tectra-ng-ui-multiselect.d.ts +26 -96
  163. package/types/tectra-ng-ui-multiselect.d.ts.map +1 -1
  164. package/types/tectra-ng-ui-overlay-badge.d.ts +20 -9
  165. package/types/tectra-ng-ui-overlay-badge.d.ts.map +1 -1
  166. package/types/tectra-ng-ui-paginator.d.ts +69 -47
  167. package/types/tectra-ng-ui-paginator.d.ts.map +1 -1
  168. package/types/tectra-ng-ui-panel-menu.d.ts +52 -105
  169. package/types/tectra-ng-ui-panel-menu.d.ts.map +1 -1
  170. package/types/tectra-ng-ui-panel.d.ts +22 -30
  171. package/types/tectra-ng-ui-panel.d.ts.map +1 -1
  172. package/types/tectra-ng-ui-password-generator.d.ts +27 -0
  173. package/types/tectra-ng-ui-password-generator.d.ts.map +1 -1
  174. package/types/tectra-ng-ui-password.d.ts +55 -26
  175. package/types/tectra-ng-ui-password.d.ts.map +1 -1
  176. package/types/tectra-ng-ui-pill.d.ts +23 -70
  177. package/types/tectra-ng-ui-pill.d.ts.map +1 -1
  178. package/types/tectra-ng-ui-popover.d.ts +58 -46
  179. package/types/tectra-ng-ui-popover.d.ts.map +1 -1
  180. package/types/tectra-ng-ui-progress-bar.d.ts +32 -28
  181. package/types/tectra-ng-ui-progress-bar.d.ts.map +1 -1
  182. package/types/tectra-ng-ui-progress-spinner.d.ts +18 -16
  183. package/types/tectra-ng-ui-progress-spinner.d.ts.map +1 -1
  184. package/types/tectra-ng-ui-radio-button.d.ts +64 -115
  185. package/types/tectra-ng-ui-radio-button.d.ts.map +1 -1
  186. package/types/tectra-ng-ui-rating.d.ts +40 -29
  187. package/types/tectra-ng-ui-rating.d.ts.map +1 -1
  188. package/types/tectra-ng-ui-scroll-panel.d.ts +22 -17
  189. package/types/tectra-ng-ui-scroll-panel.d.ts.map +1 -1
  190. package/types/tectra-ng-ui-select.d.ts +169 -100
  191. package/types/tectra-ng-ui-select.d.ts.map +1 -1
  192. package/types/tectra-ng-ui-skeleton.d.ts +34 -37
  193. package/types/tectra-ng-ui-skeleton.d.ts.map +1 -1
  194. package/types/tectra-ng-ui-slider.d.ts +37 -33
  195. package/types/tectra-ng-ui-slider.d.ts.map +1 -1
  196. package/types/tectra-ng-ui-sparkline.d.ts +22 -15
  197. package/types/tectra-ng-ui-sparkline.d.ts.map +1 -1
  198. package/types/tectra-ng-ui-speed-dial.d.ts +34 -11
  199. package/types/tectra-ng-ui-speed-dial.d.ts.map +1 -1
  200. package/types/tectra-ng-ui-split-button.d.ts +28 -7
  201. package/types/tectra-ng-ui-split-button.d.ts.map +1 -1
  202. package/types/tectra-ng-ui-splitter.d.ts +47 -23
  203. package/types/tectra-ng-ui-splitter.d.ts.map +1 -1
  204. package/types/tectra-ng-ui-stat-tiles.d.ts +39 -91
  205. package/types/tectra-ng-ui-stat-tiles.d.ts.map +1 -1
  206. package/types/tectra-ng-ui-status-icon.d.ts +19 -23
  207. package/types/tectra-ng-ui-status-icon.d.ts.map +1 -1
  208. package/types/tectra-ng-ui-stepper.d.ts +106 -133
  209. package/types/tectra-ng-ui-stepper.d.ts.map +1 -1
  210. package/types/tectra-ng-ui-table.d.ts +415 -183
  211. package/types/tectra-ng-ui-table.d.ts.map +1 -1
  212. package/types/tectra-ng-ui-tabs.d.ts +91 -133
  213. package/types/tectra-ng-ui-tabs.d.ts.map +1 -1
  214. package/types/tectra-ng-ui-tag.d.ts +46 -135
  215. package/types/tectra-ng-ui-tag.d.ts.map +1 -1
  216. package/types/tectra-ng-ui-textarea.d.ts +25 -31
  217. package/types/tectra-ng-ui-textarea.d.ts.map +1 -1
  218. package/types/tectra-ng-ui-timeline.d.ts +39 -27
  219. package/types/tectra-ng-ui-timeline.d.ts.map +1 -1
  220. package/types/tectra-ng-ui-toast.d.ts +84 -78
  221. package/types/tectra-ng-ui-toast.d.ts.map +1 -1
  222. package/types/tectra-ng-ui-toggle-button.d.ts +29 -55
  223. package/types/tectra-ng-ui-toggle-button.d.ts.map +1 -1
  224. package/types/tectra-ng-ui-toggle-switch.d.ts +41 -55
  225. package/types/tectra-ng-ui-toggle-switch.d.ts.map +1 -1
  226. package/types/tectra-ng-ui-toolbar.d.ts +15 -14
  227. package/types/tectra-ng-ui-toolbar.d.ts.map +1 -1
  228. package/types/tectra-ng-ui-tooltip.d.ts +72 -22
  229. package/types/tectra-ng-ui-tooltip.d.ts.map +1 -1
  230. package/types/tectra-ng-ui-tree-select.d.ts +65 -104
  231. package/types/tectra-ng-ui-tree-select.d.ts.map +1 -1
  232. package/types/tectra-ng-ui-tree-table.d.ts +30 -0
  233. package/types/tectra-ng-ui-tree-table.d.ts.map +1 -1
  234. package/types/tectra-ng-ui-tree.d.ts +197 -69
  235. package/types/tectra-ng-ui-tree.d.ts.map +1 -1
  236. package/types/tectra-ng-ui-truncate-text.d.ts +21 -14
  237. package/types/tectra-ng-ui-truncate-text.d.ts.map +1 -1
  238. package/types/tectra-ng-ui-virtual-scroller.d.ts +97 -13
  239. package/types/tectra-ng-ui-virtual-scroller.d.ts.map +1 -1
  240. package/types/tectra-ng-ui.d.ts +2 -1
  241. package/types/tectra-ng-ui.d.ts.map +1 -1
@@ -3,101 +3,87 @@ import { ElementRef, TemplateRef } from "@angular/core";
3
3
  import { TxPassThroughOptions } from "@tectra-ng/core/config";
4
4
  import { TxFormControlBase } from "@tectra-ng/core/forms";
5
5
  import { TxIconName } from "@tectra-ng/icons";
6
- import { TectraDeepPartial } from "@tectra-ng/themes";
6
+ import { TectraDeepPartial, TectraToggleSwitchTokens } from "@tectra-ng/themes";
7
+ /** Size of the switch. */
7
8
  export type TxToggleSwitchSize = 'small' | 'medium' | 'large';
9
+ /** Side of the switch where the label sits. */
8
10
  export type TxToggleSwitchLabelPosition = 'start' | 'end';
11
+ /** Parts of `tx-toggle-switch` that `pt` can style. */
9
12
  export type TxToggleSwitchPart = 'root' | 'track' | 'input' | 'handle' | 'label' | 'description';
13
+ /** Event of `tx-toggle-switch` when the user flips it. */
10
14
  export interface TxToggleSwitchChangeEvent {
15
+ /** New state of the switch. */
11
16
  checked: boolean;
17
+ /** The value of the switch for the new state. */
12
18
  value: unknown;
19
+ /** The DOM event that caused the change. */
13
20
  originalEvent: Event;
14
21
  }
22
+ /** Context of the custom handle template of `tx-toggle-switch`. */
15
23
  export interface TxToggleSwitchHandleContext {
24
+ /** Whether the switch is on. */
16
25
  $implicit: boolean;
17
26
  }
27
+ /**
28
+ * `<ng-template txToggleSwitchHandle let-checked>` — content of the handle
29
+ * @see https://tectra-ng.com/components/toggle-switch
30
+ */
18
31
  export declare class TxToggleSwitchHandleTemplate {
19
32
  readonly templateRef: TemplateRef<TxToggleSwitchHandleContext>;
20
33
  static ɵfac: i0.ɵɵFactoryDeclaration<TxToggleSwitchHandleTemplate, never>;
21
34
  static ɵdir: i0.ɵɵDirectiveDeclaration<TxToggleSwitchHandleTemplate, "ng-template[txToggleSwitchHandle]", never, {}, {}, never, never, true, never>;
22
35
  }
36
+ /**
37
+ * An on / off setting that applies at once. A native checkbox with `role="switch"`: Space toggles, the label toggles, screen readers announce "on" / "off".
38
+ * @see https://tectra-ng.com/components/toggle-switch
39
+ */
23
40
  export declare class TxToggleSwitch extends TxFormControlBase<unknown> {
24
41
  private readonly toggleSwitchTheme;
25
42
  private txIconRegistry;
26
43
  private generatedId;
44
+ /** Text of the label; content inside the tag is added after it */
27
45
  readonly label: import("@angular/core").InputSignal<string | undefined>;
46
+ /** Muted text under the label, linked with `aria-describedby` */
28
47
  readonly description: import("@angular/core").InputSignal<string | undefined>;
48
+ /** `end` (label after the switch) or `start` (before it) */
29
49
  readonly labelPosition: import("@angular/core").InputSignal<TxToggleSwitchLabelPosition>;
50
+ /** Model value when on */
30
51
  readonly trueValue: import("@angular/core").InputSignal<unknown>;
52
+ /** Model value when off */
31
53
  readonly falseValue: import("@angular/core").InputSignal<unknown>;
54
+ /** Icon inside the handle when on */
32
55
  readonly onIcon: import("@angular/core").InputSignal<TxIconName | (string & {}) | undefined>;
56
+ /** Icon inside the handle when off */
33
57
  readonly offIcon: import("@angular/core").InputSignal<TxIconName | (string & {}) | undefined>;
58
+ /** `small`, `medium`, `large` */
34
59
  readonly size: import("@angular/core").InputSignal<TxToggleSwitchSize>;
60
+ /** Red ring; without it the switch follows its form control */
35
61
  readonly invalid: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
62
+ /** Disables the switch (also from the form control) */
36
63
  readonly disabledInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
64
+ /** Shows the value, ignores clicks */
37
65
  readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
66
+ /** Native `required` */
38
67
  readonly required: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
68
+ /** Native `name` */
39
69
  readonly name: import("@angular/core").InputSignal<string | undefined>;
70
+ /** Id of the native input, for an outside `<label for>` */
40
71
  readonly inputId: import("@angular/core").InputSignal<string | undefined>;
72
+ /** Accessible name when there is no visible label */
41
73
  readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
74
+ /** Id of the element that names the switch */
42
75
  readonly ariaLabelledBy: import("@angular/core").InputSignal<string | undefined>;
76
+ /** Tab order of the native input */
43
77
  readonly tabindex: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
44
- readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<{
45
- root: {
46
- width: string;
47
- height: string;
48
- gutter: string;
49
- borderRadius: string;
50
- borderWidth: string;
51
- borderColor: string;
52
- hoverBorderColor: string;
53
- checkedBorderColor: string;
54
- checkedHoverBorderColor: string;
55
- background: string;
56
- hoverBackground: string;
57
- checkedBackground: string;
58
- checkedHoverBackground: string;
59
- invalidRingColor: string;
60
- disabledBackground: string;
61
- disabledCheckedBackground: string;
62
- focusRingColor: string;
63
- focusRingWidth: string;
64
- focusRingOffset: string;
65
- gap: string;
66
- labelColor: string;
67
- labelFontSize: string;
68
- disabledLabelColor: string;
69
- descriptionColor: string;
70
- descriptionFontSize: string;
71
- transitionDuration: string;
72
- };
73
- handle: {
74
- size: string;
75
- background: string;
76
- checkedBackground: string;
77
- disabledBackground: string;
78
- shadow: string;
79
- iconColor: string;
80
- checkedIconColor: string;
81
- iconSize: string;
82
- };
83
- sm: {
84
- width: string;
85
- height: string;
86
- handleSize: string;
87
- iconSize: string;
88
- labelFontSize: string;
89
- };
90
- lg: {
91
- width: string;
92
- height: string;
93
- handleSize: string;
94
- iconSize: string;
95
- labelFontSize: string;
96
- };
97
- }> | undefined>;
78
+ /** Design tokens of this instance (`toggleSwitch`) */
79
+ readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraToggleSwitchTokens> | undefined>;
80
+ /** Classes and styles of the parts: `root`, `track`, `input`, `handle`, `label`, `description` */
98
81
  readonly pt: import("@angular/core").InputSignal<Partial<Record<TxToggleSwitchPart, import("@tectra-ng/core/config").TxPassThroughValue<TxToggleSwitch>>> | undefined>;
82
+ /** How `pt` merges with the global pass-through */
99
83
  readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
84
+ /** Removes the tectra styles, keeps the native input */
100
85
  readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
86
+ /** `{ checked, value, originalEvent }` after a toggle */
101
87
  readonly changed: import("@angular/core").OutputEmitterRef<TxToggleSwitchChangeEvent>;
102
88
  readonly handleTemplate: import("@angular/core").Signal<TxToggleSwitchHandleTemplate | undefined>;
103
89
  readonly inputRef: import("@angular/core").Signal<ElementRef<HTMLInputElement>>;
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-ui-toggle-switch.d.ts","names":[],"sources":["../../../../packages/ui/toggle-switch/src/toggle-switch.types.ts","../../../../packages/ui/toggle-switch/src/toggle-switch-templates.directive.ts","../../../../packages/ui/toggle-switch/src/toggle-switch.component.ts"],"mappings":";;;;;;YAAY;YACA;YACA;iBAEK;EACf;EACA;EACA,eAAe;;iBAGA;EACf;;qBCPW;WACF,aAAW,YAAA;SADT,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;qBCwCA,uBAAuB;mBACjB;UAET;UACA;WAEC,+BAAK;WACL,qCAAW;WACX,uCAAa,YAAA;WACb,mCAAS;WACT,oCAAU;WACV,gCAAM,YAAA;WACN,iCAAO,YAAA;WACP,8BAAI,YAAA;WACJ,iCAAO;WAEP,uCAAa;WACb,kCAAQ;WACR,kCAAQ;WACR,8BAAI;WACJ,iCAAO;WACP,mCAAS;WACT,wCAAc;WACd,kCAAQ;WACR,4BAAE,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WACF,4BAAE,YAAA,QAAA,OAAA,qDAAA,mBAAA;WACF,mCAAS,YAAA;WACT,kCAAQ;WAER,iCAAO,iBAAA;WAEP,wCAAc,OAAA;WACd,kCAAQ,OAAA,WAAA;WAER,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,qDAAA;WACX,mCAAS;WAET,oCAAU;WACV;WACA,oCAAU;WACV,iCAAO;WACP,oCAAU,OAAA;WACV,wCAAc,OAAA;WAId,mCAAS;;;EAET,WAAW;EAIpB;EAIA,aAAa,OAAO;EAMpB,cAAc,OAAO;EAOrB;SAtEW,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAc;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;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA"}
1
+ {"version":3,"file":"tectra-ng-ui-toggle-switch.d.ts","names":[],"sources":["../../../../packages/ui/toggle-switch/src/toggle-switch.types.ts","../../../../packages/ui/toggle-switch/src/toggle-switch-templates.directive.ts","../../../../packages/ui/toggle-switch/src/toggle-switch.component.ts"],"mappings":";;;;;;;YACY;;YAEA;;YAEA;;iBAGK;;EAEf;;EAEA;;EAEA,eAAe;;;iBAIA;;EAEf;;;;;;qBChBW;WACF,aAAW,YAAA;SADT,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;;;;;qBCwCA,uBAAuB;mBACjB;UAET;UACA;;WAEC,+BAAK;;WACL,qCAAW;;WACX,uCAAa,YAAA;;WACb,mCAAS;;WACT,oCAAU;;WACV,gCAAM,YAAA;;WACN,iCAAO,YAAA;;WACP,8BAAI,YAAA;;WACJ,iCAAO;;WAEP,uCAAa;;WACb,kCAAQ;;WACR,kCAAQ;;WACR,8BAAI;;WACJ,iCAAO;;WACP,mCAAS;;WACT,wCAAc;;WACd,kCAAQ;;WACR,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,qDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;;WAER,iCAAO,iBAAA;WAEP,wCAAc,OAAA;WACd,kCAAQ,OAAA,WAAA;WAER,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,qDAAA;WACX,mCAAS;WAET,oCAAU;WACV;WACA,oCAAU;WACV,iCAAO;WACP,oCAAU,OAAA;WACV,wCAAc,OAAA;WAId,mCAAS;;;EAET,WAAW;EAIpB;EAIA,aAAa,OAAO;EAMpB,cAAc,OAAO;EAOrB;SAtEW,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAc;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;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA"}
@@ -1,40 +1,41 @@
1
1
  import { TxPassThroughOptions } from "@tectra-ng/core/config";
2
- import { TectraDeepPartial } from "@tectra-ng/themes";
2
+ import { TectraDeepPartial, TectraToolbarTokens } from "@tectra-ng/themes";
3
3
  import * as i0 from "@angular/core";
4
+ /** Parts of `tx-toolbar` that `pt` can style. */
4
5
  export type TxToolbarPart = 'root' | 'start' | 'center' | 'end';
6
+ /** Direction of the toolbar: in a row or in a column. */
5
7
  export type TxToolbarOrientation = 'horizontal' | 'vertical';
8
+ /** Marks content of `tx-toolbar` that goes to the start group. */
6
9
  export declare class TxToolbarStart {
7
10
  static ɵfac: i0.ɵɵFactoryDeclaration<TxToolbarStart, never>;
8
11
  static ɵdir: i0.ɵɵDirectiveDeclaration<TxToolbarStart, "[txToolbarStart]", never, {}, {}, never, never, true, never>;
9
12
  }
13
+ /** Marks content of `tx-toolbar` that goes to the centre group. */
10
14
  export declare class TxToolbarCenter {
11
15
  static ɵfac: i0.ɵɵFactoryDeclaration<TxToolbarCenter, never>;
12
16
  static ɵdir: i0.ɵɵDirectiveDeclaration<TxToolbarCenter, "[txToolbarCenter]", never, {}, {}, never, never, true, never>;
13
17
  }
18
+ /** Marks content of `tx-toolbar` that goes to the end group. */
14
19
  export declare class TxToolbarEnd {
15
20
  static ɵfac: i0.ɵɵFactoryDeclaration<TxToolbarEnd, never>;
16
21
  static ɵdir: i0.ɵɵDirectiveDeclaration<TxToolbarEnd, "[txToolbarEnd]", never, {}, {}, never, never, true, never>;
17
22
  }
23
+ /** A bar that groups actions and controls at the start, centre and end; wraps when space runs out. */
18
24
  export declare class TxToolbar {
19
25
  private readonly toolbarTheme;
26
+ /** Accessible name of the toolbar */
20
27
  readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
28
+ /** Id of the element that names the toolbar */
21
29
  readonly ariaLabelledBy: import("@angular/core").InputSignal<string | undefined>;
30
+ /** `horizontal` or `vertical`: the direction of the groups and `aria-orientation` */
22
31
  readonly orientation: import("@angular/core").InputSignal<TxToolbarOrientation>;
23
- readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<{
24
- root: {
25
- background: string;
26
- borderColor: string;
27
- borderRadius: string;
28
- color: string;
29
- gap: string;
30
- padding: string;
31
- };
32
- group: {
33
- gap: string;
34
- };
35
- }> | undefined>;
32
+ /** Design tokens of this instance (`toolbar`) */
33
+ readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraToolbarTokens> | undefined>;
34
+ /** Classes and styles of the parts: `root`, `start`, `center`, `end` */
36
35
  readonly pt: import("@angular/core").InputSignal<Partial<Record<TxToolbarPart, import("@tectra-ng/core/config").TxPassThroughValue<TxToolbar>>> | undefined>;
36
+ /** How `pt` merges with the global pass-through */
37
37
  readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
38
+ /** Removes the tectra styles */
38
39
  readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
39
40
  readonly isUnstyled: import("@angular/core").Signal<boolean>;
40
41
  readonly passThrough: import("@angular/core").Signal<Partial<Record<TxToolbarPart, import("@tectra-ng/core/config").TxPassThroughPart>>>;
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-ui-toolbar.d.ts","names":[],"sources":["../../../../packages/ui/toolbar/src/toolbar.types.ts","../../../../packages/ui/toolbar/src/toolbar.component.ts"],"mappings":";;;YAAY;YAEA;qBCMC;SAAA,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;qBAGA;SAAA,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;qBAGA;SAAA,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;qBAmCA;mBACM;WAER,mCAAS;WACT,wCAAc;WACd,qCAAW,YAAA;WACX,4BAAE,YAAA;;;;;;;;;;;;;WACF,4BAAE,YAAA,QAAA,OAAA,gDAAA,mBAAA;WACF,mCAAS,YAAA;WACT,kCAAQ;WAER,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,gDAAA;qBACD,+BAAK,OAAA;qBACL,gCAAM,OAAA;qBACN,6BAAG,OAAA;WACb,mCAAS;;;SAhBP,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAS;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"}
1
+ {"version":3,"file":"tectra-ng-ui-toolbar.d.ts","names":[],"sources":["../../../../packages/ui/toolbar/src/toolbar.types.ts","../../../../packages/ui/toolbar/src/toolbar.component.ts"],"mappings":";;;;YACY;;YAGA;;qBCKC;SAAA,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;;qBAIA;SAAA,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;;qBAIA;SAAA,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;;qBAoCA;mBACM;;WAER,mCAAS;;WACT,wCAAc;;WACd,qCAAW,YAAA;;WACX,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,gDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;WAER,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,gDAAA;qBACD,+BAAK,OAAA;qBACL,gCAAM,OAAA;qBACN,6BAAG,OAAA;WACb,mCAAS;;;SAhBP,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAS;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"}
@@ -2,24 +2,40 @@ import * as i0 from "@angular/core";
2
2
  import { InjectionToken, Provider, Signal, TemplateRef } from "@angular/core";
3
3
  import { TxPlacement } from "@tectra-ng/core/overlay";
4
4
  import { TxPassThroughOptions, TxResolvedPassThrough } from "@tectra-ng/core/config";
5
- import { TectraDeepPartial } from "@tectra-ng/themes";
5
+ import { TectraDeepPartial, TectraTooltipTokens } from "@tectra-ng/themes";
6
+ /** What opens the tooltip: pointer hover, keyboard focus, both, or only the API. */
6
7
  export type TxTooltipEvent = 'hover' | 'focus' | 'both' | 'manual';
8
+ /** Parts of `tx-tooltip` that `pt` can style. */
7
9
  export type TxTooltipPart = 'root' | 'content' | 'arrow';
10
+ /** Context of a template tooltip. */
8
11
  export interface TxTooltipContext<TData = unknown> {
12
+ /** Value of the `tooltipContext` input. */
9
13
  $implicit: TData;
14
+ /** Closes the tooltip. */
10
15
  close: () => void;
11
16
  }
17
+ /** Content of a tooltip: text, a number, a template, or nothing to keep it hidden. */
12
18
  export type TxTooltipContent = string | number | TemplateRef<TxTooltipContext> | null | undefined;
19
+ /** App-wide defaults of `txTooltip`; each can be overridden per element. */
13
20
  export interface TxTooltipOptions {
21
+ /** Side of the element where the tooltip opens (default `top`). */
14
22
  placement?: TxPlacement;
23
+ /** What opens the tooltip (default `both`). */
15
24
  event?: TxTooltipEvent;
25
+ /** Delay before the tooltip opens, in ms (default 0). */
16
26
  showDelay?: number;
27
+ /** Delay before the tooltip closes, in ms (default 0). */
17
28
  hideDelay?: number;
29
+ /** Closes the tooltip after this many ms; without it the tooltip stays while triggered. */
18
30
  life?: number;
31
+ /** Gap between the element and the tooltip, in px (default 3.5). */
19
32
  offset?: number;
33
+ /** Shows the arrow that points at the element (default `true`). */
20
34
  arrow?: boolean;
35
+ /** Lets the pointer move onto the tooltip without closing it (default `false`). */
21
36
  interactive?: boolean;
22
37
  }
38
+ /** Built-in defaults of the tooltip options, used where nothing else is set. */
23
39
  export declare const TX_TOOLTIP_DEFAULTS: {
24
40
  readonly placement: "top";
25
41
  readonly event: "both";
@@ -29,44 +45,72 @@ export declare const TX_TOOLTIP_DEFAULTS: {
29
45
  readonly arrow: true;
30
46
  readonly interactive: false;
31
47
  };
48
+ /** App-wide tooltip options; set with `provideTxTooltip`. */
32
49
  export declare const TX_TOOLTIP_OPTIONS: InjectionToken<TxTooltipOptions>;
50
+ /** Sets app-wide defaults of every `txTooltip`, e.g. `provideTxTooltip({ showDelay: 300 })`. */
33
51
  export declare function provideTxTooltip(options: TxTooltipOptions): Provider;
52
+ /** What the registry needs from an open tooltip: a way to close it at once. */
34
53
  export interface TxTooltipHandle {
54
+ /** Closes the tooltip without delay. */
35
55
  hideNow(): void;
36
56
  }
57
+ /** Keeps one tooltip open at a time and hosts the hidden descriptions that `aria-describedby` points to. */
37
58
  export declare class TxTooltipRegistry {
38
59
  private document;
39
60
  private container;
40
61
  private active;
41
62
  private lastClosedAt;
63
+ /** Creates a hidden description element with the id, for `aria-describedby`. */
42
64
  describe(id: string): HTMLElement;
65
+ /** Removes a description element made by `describe`. */
43
66
  forget(node: HTMLElement): void;
67
+ /** Whether a tooltip is open or closed a moment ago, so the next one may skip its delay. */
44
68
  isWarm(): boolean;
69
+ /** Marks the tooltip as the open one and closes the previous one. */
45
70
  activate(tooltip: TxTooltipHandle): void;
71
+ /** Marks the tooltip as closed, if it is the open one. */
46
72
  release(tooltip: TxTooltipHandle): void;
47
73
  private now;
48
74
  private ensureContainer;
49
75
  static ɵfac: i0.ɵɵFactoryDeclaration<TxTooltipRegistry, never>;
50
76
  static ɵprov: i0.ɵɵInjectableDeclaration<any>;
51
77
  }
78
+ /** What `txTooltip` gives its panel to render: content, placement, look and pointer hooks. */
52
79
  export interface TxTooltipPanelState {
80
+ /** Id of the panel element. */
53
81
  id: string;
82
+ /** Element the tooltip belongs to. */
54
83
  origin: HTMLElement;
84
+ /** Text, number or template shown in the panel. */
55
85
  content: Signal<TxTooltipContent>;
86
+ /** Context passed to a template content. */
56
87
  context: Signal<TxTooltipContext>;
88
+ /** Side of the element where the panel opens. */
57
89
  placement: Signal<TxPlacement>;
90
+ /** Whether the arrow is shown. */
58
91
  arrow: Signal<boolean>;
92
+ /** Whether the pointer can move onto the panel. */
59
93
  interactive: Signal<boolean>;
94
+ /** Hides the panel from screen readers because the text is already read through `aria-describedby`. */
60
95
  hiddenFromReaders: Signal<boolean>;
96
+ /** Whether long text wraps onto several lines. */
61
97
  multiline: Signal<boolean>;
98
+ /** Whether the tectra styles are removed. */
62
99
  unstyled: Signal<boolean>;
100
+ /** Resolved `pt` classes and styles of the parts. */
63
101
  passThrough: Signal<TxResolvedPassThrough<TxTooltipPart>>;
102
+ /** Inline CSS variables from the `tooltipDt` input. */
64
103
  style: Signal<Record<string, string>>;
104
+ /** Extra class of the panel (the `tooltipClass` input). */
65
105
  panelClass: Signal<string | undefined>;
106
+ /** Called when the pointer enters the panel. */
66
107
  pointerEnter(): void;
108
+ /** Called when the pointer leaves the panel. */
67
109
  pointerLeave(): void;
68
110
  }
111
+ /** Gives `tx-tooltip` its `TxTooltipPanelState`. */
69
112
  export declare const TX_TOOLTIP_PANEL: InjectionToken<TxTooltipPanelState>;
113
+ /** The tooltip bubble that `txTooltip` opens in an overlay; not used directly. */
70
114
  export declare class TxTooltipPanel {
71
115
  private readonly tooltipTheme;
72
116
  readonly state: TxTooltipPanelState;
@@ -82,6 +126,7 @@ export declare class TxTooltipPanel {
82
126
  static ɵfac: i0.ɵɵFactoryDeclaration<TxTooltipPanel, never>;
83
127
  static ɵcmp: i0.ɵɵComponentDeclaration<TxTooltipPanel, "tx-tooltip", never, {}, {}, never, never, true, never>;
84
128
  }
129
+ /** Shows a tooltip with text or a template when the host is hovered or focused. */
85
130
  export declare class TxTooltip implements TxTooltipHandle {
86
131
  private readonly tooltipTheme;
87
132
  private host;
@@ -90,45 +135,45 @@ export declare class TxTooltip implements TxTooltipHandle {
90
135
  private viewContainerRef;
91
136
  private registry;
92
137
  private options;
138
+ /** Text (a new line with `\n`) or an `<ng-template>`; empty — no tooltip */
93
139
  readonly txTooltip: import("@angular/core").InputSignal<TxTooltipContent>;
140
+ /** `top` (default), `bottom`, `left`, `right`, each with `-start` / `-end`; flips when there is no room */
94
141
  readonly tooltipPlacement: import("@angular/core").InputSignal<TxPlacement | undefined>;
142
+ /** `both` (hover and keyboard focus, default), `hover`, `focus` (any focus — hints on fields), `manual` (only `show()` / `hide()`) */
95
143
  readonly tooltipEvent: import("@angular/core").InputSignal<TxTooltipEvent | undefined>;
144
+ /** Milliseconds before it shows (default 0); no delay while another tooltip was just open */
96
145
  readonly tooltipShowDelay: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
146
+ /** Milliseconds before it hides (default 0) */
97
147
  readonly tooltipHideDelay: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
148
+ /** Hides by itself after this many milliseconds */
98
149
  readonly tooltipLife: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
150
+ /** Gap to the element in px (default 3.5 — the arrow fills it) */
99
151
  readonly tooltipOffset: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
152
+ /** Shows the arrow pointing at the middle of the element (default on) */
100
153
  readonly tooltipArrow: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
154
+ /** The pointer can move onto the tooltip without closing it — to select or copy its text (default off) */
101
155
  readonly tooltipInteractive: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
156
+ /** Turns the tooltip off */
102
157
  readonly tooltipDisabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
158
+ /** Shows only when the element's text is cut off (`text-overflow: ellipsis`) */
103
159
  readonly tooltipOverflowOnly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
160
+ /** Wider (360px) with taller lines — for several lines of text */
104
161
  readonly tooltipMultiline: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
162
+ /** Value passed to the template as `$implicit` */
105
163
  readonly tooltipContext: import("@angular/core").InputSignal<unknown>;
164
+ /** Class added to the tooltip panel */
106
165
  readonly tooltipClass: import("@angular/core").InputSignal<string | undefined>;
107
- readonly tooltipDt: import("@angular/core").InputSignal<TectraDeepPartial<{
108
- root: {
109
- background: string;
110
- color: string;
111
- maxWidth: string;
112
- padding: string;
113
- borderRadius: string;
114
- fontSize: string;
115
- fontWeight: string;
116
- lineHeight: string;
117
- shadow: string;
118
- };
119
- multiline: {
120
- maxWidth: string;
121
- lineHeight: string;
122
- };
123
- arrow: {
124
- size: string;
125
- inset: string;
126
- };
127
- }> | undefined>;
166
+ /** Design tokens of this tooltip (`tooltip`) */
167
+ readonly tooltipDt: import("@angular/core").InputSignal<TectraDeepPartial<TectraTooltipTokens> | undefined>;
168
+ /** Classes and styles of the parts: `root`, `content`, `arrow` */
128
169
  readonly tooltipPt: import("@angular/core").InputSignal<Partial<Record<TxTooltipPart, import("@tectra-ng/core/config").TxPassThroughValue<TxTooltip>>> | undefined>;
170
+ /** How `tooltipPt` merges with the global pass-through */
129
171
  readonly tooltipPtOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
172
+ /** Removes the tectra styles */
130
173
  readonly tooltipUnstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
174
+ /** The tooltip opened */
131
175
  readonly tooltipShown: import("@angular/core").OutputEmitterRef<void>;
176
+ /** The tooltip closed */
132
177
  readonly tooltipHidden: import("@angular/core").OutputEmitterRef<void>;
133
178
  private readonly ref;
134
179
  private readonly contentSource;
@@ -141,6 +186,7 @@ export declare class TxTooltip implements TxTooltipHandle {
141
186
  private touched;
142
187
  private destroyed;
143
188
  readonly id: string;
189
+ /** Signal: whether it is open */
144
190
  readonly isOpen: Signal<boolean>;
145
191
  readonly placement: Signal<TxPlacement>;
146
192
  readonly event: Signal<TxTooltipEvent>;
@@ -163,9 +209,13 @@ export declare class TxTooltip implements TxTooltipHandle {
163
209
  private readonly listensToFocus;
164
210
  constructor();
165
211
  useContent(source: Signal<TxTooltipContent>): void;
212
+ /** Opens the tooltip (`#tip="txTooltip"`, then `tip.show()`) */
166
213
  show(delay?: number): void;
214
+ /** Closes it after the hide delay */
167
215
  hide(delay?: number): void;
216
+ /** Closes it at once */
168
217
  hideNow(): void;
218
+ /** Opens or closes it */
169
219
  toggle(): void;
170
220
  onPointerEnter(): void;
171
221
  onPointerLeave(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-ui-tooltip.d.ts","names":[],"sources":["../../../../packages/ui/tooltip/src/tooltip.types.ts","../../../../packages/ui/tooltip/src/tooltip.options.ts","../../../../packages/ui/tooltip/src/tooltip-registry.service.ts","../../../../packages/ui/tooltip/src/tooltip-panel.component.ts","../../../../packages/ui/tooltip/src/tooltip.directive.ts"],"mappings":";;;;;YAGY;YACA;iBAEK,iBAAiB;EAChC,WAAW;EACX;;YAGU,qCAAqC,YAAY;iBAE5C;EACf,YAAY;EACZ,QAAQ;EACR;EACA;EACA;EACA;EACA;EACA;;qBClBW;;;;;;;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U,OAAA;WACV,SAAO,OAAA;WACP,MAAI;WAIJ,UAAQ,OAAA,YAAA;WAIR,YAAU;WACV,gBAAc;WACd,SAAO,OAAA;mBAEC;mBACA;;EAyCjB,WAAW,QAAQ,OAAO;EAI1B,KAAK;EAgBL,KAAK;EAaL;EAMA;EAQA;EAWA;EAQA,cAAc,OAAO;EAQrB;EAUA,WAAW,OAAO;UAcV;UAuDA;UAMA;UAMA;UAIA;UAQA;UAKA;UAKA;SA1SG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAS;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"}
1
+ {"version":3,"file":"tectra-ng-ui-tooltip.d.ts","names":[],"sources":["../../../../packages/ui/tooltip/src/tooltip.types.ts","../../../../packages/ui/tooltip/src/tooltip.options.ts","../../../../packages/ui/tooltip/src/tooltip-registry.service.ts","../../../../packages/ui/tooltip/src/tooltip-panel.component.ts","../../../../packages/ui/tooltip/src/tooltip.directive.ts"],"mappings":";;;;;;YAIY;;YAEA;;iBAGK,iBAAiB;;EAEhC,WAAW;;EAEX;;;YAIU,qCAAqC,YAAY;;iBAG5C;;EAEf,YAAY;;EAEZ,QAAQ;;EAER;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;qBChCW;;;;;;;;;;qBAWA,o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