@tectra-ng/ui 0.3.2 → 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 +4 -4
  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
@@ -2,129 +2,78 @@ import * as i0 from "@angular/core";
2
2
  import { InjectionToken, Signal } from "@angular/core";
3
3
  import { TxPassThroughOptions } from "@tectra-ng/core/config";
4
4
  import { TxIconName } from "@tectra-ng/icons";
5
- import { TectraDeepPartial } from "@tectra-ng/themes";
5
+ import { TectraAvatarTokens, TectraDeepPartial } from "@tectra-ng/themes";
6
6
  import * as i1 from "@tectra-ng/ui/tooltip";
7
7
  import { TxMenuItem } from "@tectra-ng/ui/menu";
8
+ /** Named size of an avatar; `size` also accepts a number in px. */
8
9
  export type TxAvatarSize = 'small' | 'medium' | 'large' | 'xlarge';
10
+ /** Outline of an avatar: `circle` or `square`. */
9
11
  export type TxAvatarShape = 'circle' | 'square';
12
+ /** Background colour of an avatar with initials. */
10
13
  export type TxAvatarTone = 'blue' | 'green' | 'sky' | 'orange' | 'purple' | 'red';
14
+ /** Names of the parts of `tx-avatar` that `pt` can style. */
11
15
  export type TxAvatarPart = 'root' | 'image' | 'label' | 'icon';
16
+ /** Names of the parts of `tx-avatar-group` that `pt` can style. */
12
17
  export type TxAvatarGroupPart = 'root' | 'more' | 'add' | 'list' | 'item' | 'name';
18
+ /** Names of the parts of `tx-avatar-editor` that `pt` can style. */
13
19
  export type TxAvatarEditorPart = 'root' | 'photo' | 'badge' | 'loader' | 'hint';
20
+ /** Why the editor refused a file: `type` is not accepted, `size` is over the limit. */
14
21
  export type TxAvatarEditorRejectReason = 'type' | 'size';
22
+ /** A file the editor refused and why. */
15
23
  export interface TxAvatarEditorRejection {
24
+ /** The refused file. */
16
25
  readonly file: File;
26
+ /** Why it was refused. */
17
27
  readonly reason: TxAvatarEditorRejectReason;
18
28
  }
29
+ /** What an avatar needs from its `tx-avatar-group`. */
19
30
  export interface TxAvatarGroupContext {
31
+ /** Size the group gives to its avatars. */
20
32
  readonly size: Signal<TxAvatarSize | number | undefined>;
33
+ /** Shape the group gives to its avatars. */
21
34
  readonly shape: Signal<TxAvatarShape | undefined>;
35
+ /** Whether avatars show their name in a tooltip. */
22
36
  readonly tooltips: Signal<boolean>;
37
+ /** Tells whether the avatar is folded into the `+N` button. */
23
38
  isHidden(avatar: object): boolean;
24
39
  }
40
+ /** Lets an avatar read the size, shape and tooltip settings of the `tx-avatar-group` around it. */
25
41
  export declare const TX_AVATAR_GROUP: InjectionToken<TxAvatarGroupContext>;
42
+ /**
43
+ * A person or an item as a small picture: a photo, otherwise initials from the name on a colour picked from the name, otherwise an icon. A broken photo falls back on its own. `tx-avatar-group` stacks several with an overlap, shows each name in a tooltip, and a `+N` button opens a popover that lists the hidden people.
44
+ * @see https://tectra-ng.com/components/avatar
45
+ */
26
46
  export declare class TxAvatar {
27
47
  private readonly avatarTheme;
28
48
  private txIconRegistry;
29
49
  private group;
50
+ /** Photo URL; when it is empty or fails to load, initials or the icon show instead */
30
51
  readonly image: import("@angular/core").InputSignal<string | null | undefined>;
52
+ /** Person's name: initials, colour, accessible name and title */
31
53
  readonly name: import("@angular/core").InputSignal<string | null | undefined>;
54
+ /** Own text instead of initials, e.g. `+3` or `AI` */
32
55
  readonly label: import("@angular/core").InputSignal<string | undefined>;
56
+ /** Icon when there is no photo and no name */
33
57
  readonly icon: import("@angular/core").InputSignal<TxIconName | (string & {})>;
58
+ /** `small`, `medium`, `large`, `xlarge` or a number of px (inherits the group) */
34
59
  readonly size: import("@angular/core").InputSignal<number | TxAvatarSize | undefined>;
60
+ /** `circle` or `square` (inherits the group) */
35
61
  readonly shape: import("@angular/core").InputSignal<TxAvatarShape | undefined>;
62
+ /** Own colour instead of the one picked from the name: `blue`, `green`, `sky`, `orange`, `purple`, `red` */
36
63
  readonly tone: import("@angular/core").InputSignal<TxAvatarTone | undefined>;
64
+ /** Accessible name instead of `name`; without both the avatar is decorative */
37
65
  readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
66
+ /** Shows `name` (or `ariaLabel`) in a tooltip instead of the native title; inherits `tooltips` of the group, off on its own */
38
67
  readonly tooltip: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
39
- readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<{
40
- root: {
41
- size: string;
42
- fontWeight: string;
43
- fontScale: string;
44
- iconScale: string;
45
- squareBorderRadius: string;
46
- background: string;
47
- color: string;
48
- };
49
- sm: {
50
- size: string;
51
- };
52
- lg: {
53
- size: string;
54
- };
55
- xl: {
56
- size: string;
57
- };
58
- tones: {
59
- blue: {
60
- background: string;
61
- color: string;
62
- };
63
- green: {
64
- background: string;
65
- color: string;
66
- };
67
- sky: {
68
- background: string;
69
- color: string;
70
- };
71
- orange: {
72
- background: string;
73
- color: string;
74
- };
75
- purple: {
76
- background: string;
77
- color: string;
78
- };
79
- red: {
80
- background: string;
81
- color: string;
82
- };
83
- };
84
- group: {
85
- overlap: string;
86
- ringWidth: string;
87
- ringColor: string;
88
- moreBackground: string;
89
- moreColor: string;
90
- moreFocusRingWidth: string;
91
- moreFocusRingOffset: string;
92
- moreFocusRingColor: string;
93
- endGap: string;
94
- addBackground: string;
95
- addBorderColor: string;
96
- addHoverBorderColor: string;
97
- addColor: string;
98
- addIconScale: string;
99
- };
100
- editor: {
101
- size: string;
102
- gap: string;
103
- ringWidth: string;
104
- ringColor: string;
105
- badgeRingWidth: string;
106
- badgeRingColor: string;
107
- badgeSize: string;
108
- loaderBackground: string;
109
- dropRingColor: string;
110
- hintMaxWidth: string;
111
- hintFontSize: string;
112
- hintLineHeight: string;
113
- hintColor: string;
114
- transitionDuration: string;
115
- };
116
- list: {
117
- padding: string;
118
- gap: string;
119
- itemGap: string;
120
- maxHeight: string;
121
- nameFontSize: string;
122
- nameColor: string;
123
- };
124
- }> | undefined>;
68
+ /** Design tokens of this instance (`avatar`) */
69
+ readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraAvatarTokens> | undefined>;
70
+ /** Classes and styles of the parts: `root`, `image`, `label`, `icon`; group: `root`, `more`, `add`, `list`, `item`, `name` */
125
71
  readonly pt: import("@angular/core").InputSignal<Partial<Record<TxAvatarPart, import("@tectra-ng/core/config").TxPassThroughValue<TxAvatar>>> | undefined>;
72
+ /** How `pt` merges with the global pass-through */
126
73
  readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
74
+ /** Removes the tectra styles */
127
75
  readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
76
+ /** The photo failed to load (the fallback is already shown) */
128
77
  readonly imageError: import("@angular/core").OutputEmitterRef<Event>;
129
78
  readonly isUnstyled: import("@angular/core").Signal<boolean>;
130
79
  readonly passThrough: import("@angular/core").Signal<Partial<Record<TxAvatarPart, import("@tectra-ng/core/config").TxPassThroughPart>>>;
@@ -222,106 +171,39 @@ export declare class TxAvatar {
222
171
  outputs: {};
223
172
  }]>;
224
173
  }
174
+ /**
175
+ * A person or an item as a small picture: a photo, otherwise initials from the name on a colour picked from the name, otherwise an icon. A broken photo falls back on its own. `tx-avatar-group` stacks several with an overlap, shows each name in a tooltip, and a `+N` button opens a popover that lists the hidden people.
176
+ * @see https://tectra-ng.com/components/avatar
177
+ */
225
178
  export declare class TxAvatarGroup {
226
179
  private readonly avatarTheme;
180
+ /** shows this many avatars and a `+N` button; it opens a popover that lists the hidden ones (avatar + name) */
227
181
  readonly max: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
182
+ /** `small`, `medium`, `large`, `xlarge` or a number of px (inherits the group) */
228
183
  readonly size: import("@angular/core").InputSignal<number | TxAvatarSize | undefined>;
184
+ /** `circle` or `square` (inherits the group) */
229
185
  readonly shape: import("@angular/core").InputSignal<TxAvatarShape | undefined>;
186
+ /** name tooltip on every avatar (on by default) */
230
187
  readonly tooltips: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
188
+ /** `+N` is a button with the list of hidden people (on by default); `false` keeps it a plain label, e.g. inside a select trigger */
231
189
  readonly morePopover: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
190
+ /** Accessible name instead of `name`; without both the avatar is decorative */
232
191
  readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
192
+ /** accessible name of `+N` and of its popover ("N more", translated, by default) */
233
193
  readonly moreLabel: import("@angular/core").InputSignal<string | undefined>;
194
+ /** a dashed add button of the avatar size at the end; emits `add` */
234
195
  readonly addButton: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
196
+ /** tooltip and accessible name of the add button ("Add a person", translated, by default) */
235
197
  readonly addLabel: import("@angular/core").InputSignal<string | undefined>;
236
- readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<{
237
- root: {
238
- size: string;
239
- fontWeight: string;
240
- fontScale: string;
241
- iconScale: string;
242
- squareBorderRadius: string;
243
- background: string;
244
- color: string;
245
- };
246
- sm: {
247
- size: string;
248
- };
249
- lg: {
250
- size: string;
251
- };
252
- xl: {
253
- size: string;
254
- };
255
- tones: {
256
- blue: {
257
- background: string;
258
- color: string;
259
- };
260
- green: {
261
- background: string;
262
- color: string;
263
- };
264
- sky: {
265
- background: string;
266
- color: string;
267
- };
268
- orange: {
269
- background: string;
270
- color: string;
271
- };
272
- purple: {
273
- background: string;
274
- color: string;
275
- };
276
- red: {
277
- background: string;
278
- color: string;
279
- };
280
- };
281
- group: {
282
- overlap: string;
283
- ringWidth: string;
284
- ringColor: string;
285
- moreBackground: string;
286
- moreColor: string;
287
- moreFocusRingWidth: string;
288
- moreFocusRingOffset: string;
289
- moreFocusRingColor: string;
290
- endGap: string;
291
- addBackground: string;
292
- addBorderColor: string;
293
- addHoverBorderColor: string;
294
- addColor: string;
295
- addIconScale: string;
296
- };
297
- editor: {
298
- size: string;
299
- gap: string;
300
- ringWidth: string;
301
- ringColor: string;
302
- badgeRingWidth: string;
303
- badgeRingColor: string;
304
- badgeSize: string;
305
- loaderBackground: string;
306
- dropRingColor: string;
307
- hintMaxWidth: string;
308
- hintFontSize: string;
309
- hintLineHeight: string;
310
- hintColor: string;
311
- transitionDuration: string;
312
- };
313
- list: {
314
- padding: string;
315
- gap: string;
316
- itemGap: string;
317
- maxHeight: string;
318
- nameFontSize: string;
319
- nameColor: string;
320
- };
321
- }> | undefined>;
198
+ /** Design tokens of this instance (`avatar`) */
199
+ readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraAvatarTokens> | undefined>;
200
+ /** Classes and styles of the parts: `root`, `image`, `label`, `icon`; group: `root`, `more`, `add`, `list`, `item`, `name` */
322
201
  readonly pt: import("@angular/core").InputSignal<Partial<Record<TxAvatarGroupPart, import("@tectra-ng/core/config").TxPassThroughValue<TxAvatarGroup>>> | undefined>;
202
+ /** How `pt` merges with the global pass-through */
323
203
  readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
204
+ /** Removes the tectra styles */
324
205
  readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
206
+ /** the add button was clicked */
325
207
  readonly add: import("@angular/core").OutputEmitterRef<void>;
326
208
  readonly avatars: import("@angular/core").Signal<readonly TxAvatar[]>;
327
209
  readonly translations: import("@angular/core").Signal<import("@tectra-ng/core/config").TxTranslations>;
@@ -409,112 +291,53 @@ export declare class TxAvatarGroup {
409
291
  "add": "add";
410
292
  }, ["avatars"], ["*", "[txAvatarGroupEnd]"], true, never>;
411
293
  }
294
+ /**
295
+ * Tells whether a file matches an `accept` list of extensions (`.png`), MIME types and wildcards (`image/*`); an empty list accepts everything.
296
+ */
412
297
  export declare function acceptsFile(file: File, accept: string): boolean;
298
+ /**
299
+ * A large avatar the person can change themselves: the camera button picks a photo, or opens a menu with "Change photo" and "Remove" once there is one. Removing asks first in a confirm dialog. Dropping an image file on the photo works too. The editor only reports the chosen file (`photoChange`, `null` after removing); upload it and set `image` to the new address, with `loading` on meanwhile.
300
+ * @see https://tectra-ng.com/components/avatar-editor
301
+ */
413
302
  export declare class TxAvatarEditor {
414
303
  private readonly avatarTheme;
304
+ /** Two-way: the photo address; without it the avatar shows initials and the button uploads at once */
415
305
  readonly image: import("@angular/core").ModelSignal<string | null | undefined>;
306
+ /** Name for the initials and the colour when there is no photo */
416
307
  readonly name: import("@angular/core").InputSignal<string | null | undefined>;
308
+ /** Size of the photo in px (112 by default, `editor.size` token) */
417
309
  readonly size: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
310
+ /** Spinner over the photo while the new one uploads; the button is off */
418
311
  readonly loading: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
312
+ /** Turns the button and drop off */
419
313
  readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
314
+ /** Small text under the photo, e.g. allowed types and size */
420
315
  readonly hint: import("@angular/core").InputSignal<string | undefined>;
316
+ /** File types the picker offers and the editor takes, as in `<input type="file">` (`image/*` by default) */
421
317
  readonly accept: import("@angular/core").InputSignal<string>;
318
+ /** Largest file in bytes; a bigger one emits `rejected` */
422
319
  readonly maxFileSize: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
320
+ /** Ask in a confirm dialog before removing (on by default) */
423
321
  readonly confirmRemove: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
322
+ /** Text of "Change photo" (button tooltip and menu item) */
424
323
  readonly changeLabel: import("@angular/core").InputSignal<string | undefined>;
324
+ /** Text of "Remove" (menu item and the confirm button) */
425
325
  readonly removeLabel: import("@angular/core").InputSignal<string | undefined>;
326
+ /** Title of the confirm dialog */
426
327
  readonly removeTitle: import("@angular/core").InputSignal<string | undefined>;
328
+ /** Text of the confirm dialog */
427
329
  readonly removeMessage: import("@angular/core").InputSignal<string | undefined>;
428
- readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<{
429
- root: {
430
- size: string;
431
- fontWeight: string;
432
- fontScale: string;
433
- iconScale: string;
434
- squareBorderRadius: string;
435
- background: string;
436
- color: string;
437
- };
438
- sm: {
439
- size: string;
440
- };
441
- lg: {
442
- size: string;
443
- };
444
- xl: {
445
- size: string;
446
- };
447
- tones: {
448
- blue: {
449
- background: string;
450
- color: string;
451
- };
452
- green: {
453
- background: string;
454
- color: string;
455
- };
456
- sky: {
457
- background: string;
458
- color: string;
459
- };
460
- orange: {
461
- background: string;
462
- color: string;
463
- };
464
- purple: {
465
- background: string;
466
- color: string;
467
- };
468
- red: {
469
- background: string;
470
- color: string;
471
- };
472
- };
473
- group: {
474
- overlap: string;
475
- ringWidth: string;
476
- ringColor: string;
477
- moreBackground: string;
478
- moreColor: string;
479
- moreFocusRingWidth: string;
480
- moreFocusRingOffset: string;
481
- moreFocusRingColor: string;
482
- endGap: string;
483
- addBackground: string;
484
- addBorderColor: string;
485
- addHoverBorderColor: string;
486
- addColor: string;
487
- addIconScale: string;
488
- };
489
- editor: {
490
- size: string;
491
- gap: string;
492
- ringWidth: string;
493
- ringColor: string;
494
- badgeRingWidth: string;
495
- badgeRingColor: string;
496
- badgeSize: string;
497
- loaderBackground: string;
498
- dropRingColor: string;
499
- hintMaxWidth: string;
500
- hintFontSize: string;
501
- hintLineHeight: string;
502
- hintColor: string;
503
- transitionDuration: string;
504
- };
505
- list: {
506
- padding: string;
507
- gap: string;
508
- itemGap: string;
509
- maxHeight: string;
510
- nameFontSize: string;
511
- nameColor: string;
512
- };
513
- }> | undefined>;
330
+ /** Design tokens (`avatar`, the `editor` group) */
331
+ readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraAvatarTokens> | undefined>;
332
+ /** Classes and styles of the parts: `root`, `photo`, `badge`, `loader`, `hint` */
514
333
  readonly pt: import("@angular/core").InputSignal<Partial<Record<TxAvatarEditorPart, import("@tectra-ng/core/config").TxPassThroughValue<TxAvatarEditor>>> | undefined>;
334
+ /** How `pt` merges with the global pass-through */
515
335
  readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
336
+ /** Drops the tectra styles, keeps the behaviour */
516
337
  readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
338
+ /** The chosen file, or `null` after the photo was removed */
517
339
  readonly photoChange: import("@angular/core").OutputEmitterRef<File | null>;
340
+ /** `{ file, reason }` — the file has the wrong type (`type`) or is too big (`size`) */
518
341
  readonly rejected: import("@angular/core").OutputEmitterRef<TxAvatarEditorRejection>;
519
342
  readonly isUnstyled: import("@angular/core").Signal<boolean>;
520
343
  readonly passThrough: import("@angular/core").Signal<Partial<Record<TxAvatarEditorPart, import("@tectra-ng/core/config").TxPassThroughPart>>>;
@@ -530,7 +353,9 @@ export declare class TxAvatarEditor {
530
353
  readonly hostStyle: import("@angular/core").Signal<{
531
354
  '--tx-avatar-editor-size'?: string | undefined;
532
355
  }>;
356
+ /** Opens the file picker */
533
357
  pick(): void;
358
+ /** Removes the photo (asks first when `confirmRemove`) */
534
359
  remove(): Promise<void>;
535
360
  protected onBadge(event: MouseEvent): void;
536
361
  protected onFile(event: Event): void;
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-ui-avatar.d.ts","names":[],"sources":["../../../../packages/ui/avatar/src/avatar.types.ts","../../../../packages/ui/avatar/src/avatar-group.token.ts","../../../../packages/ui/avatar/src/avatar.component.ts","../../../../packages/ui/avatar/src/avatar-group.component.ts","../../../../packages/ui/avatar/src/avatar-editor.component.ts"],"mappings":";;;;;;;YAAY;YACA;YACA;YACA;YACA;YACA;YACA;iBAEK;WACN,MAAM;WACN,QAAQ;;iBCPF;WACN,MAAM,OAAO;WACb,OAAO,OAAO;WACd,UAAU;EACnB,SAAS;;qBAGE,iBAAe,eAAA;qBCyCf;mBACM;UAET;UACA;WAEC,+BAAK;WACL,8BAAI;WACJ,+BAAK;WACL,8BAAI,YAAA;WACJ,8BAAI,qBAAA;WACJ,+BAAK,YAAA;WACL,8BAAI,YAAA;WACJ,mCAAS;WACT,iCAAO;WACP,4BAAE,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WACF,4BAAE,YAAA,QAAA,OAAA,+CAAA,mBAAA;WACF,mCAAS,YAAA;WACT,kCAAQ;WAER,oCAAU,iBAAA;WAEV,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,+CAAA;WACX,gCAAM;WACN,mCAAS;WACT,kCAAQ;WACR,sCAAY,gBAAA;WACZ,oCAAU,gBAAA;WACV,uCAAa,OAAA;WACb,sCAAY,OAAA;WACZ,wCAAc;WACd,sCAAY;WACZ,qCAAW;WACX,kCAAQ;WACR,kCAAQ,OAAA;WACR,mCAAS;;;;EAiBlB,aAAa,OAAO;SArDT,MAAA,GAAA,qBAAA;SAAA,MAAA,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A;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA;IAAA;IAAA"}
1
+ {"version":3,"file":"tectra-ng-ui-avatar.d.ts","names":[],"sources":["../../../../packages/ui/avatar/src/avatar.types.ts","../../../../packages/ui/avatar/src/avatar-group.token.ts","../../../../packages/ui/avatar/src/avatar.component.ts","../../../../packages/ui/avatar/src/avatar-group.component.ts","../../../../packages/ui/avatar/src/avatar-editor.component.ts"],"mappings":";;;;;;;;YACY;;YAEA;;YAEA;;YAEA;;YAEA;;YAEA;;YAEA;;iBAGK;;WAEN,MAAM;;WAEN,QAAQ;;;iBChBF;;WAEN,MAAM,OAAO;;WAEb,OAAO,OAAO;;WAEd,UAAU;;EAEnB,SAAS;;;qBAIE,iBAAe,eAAA;;;;;qBCmCf;mBACM;UAET;UACA;;WAEC,+BAAK;;WACL,8BAAI;;WACJ,+BAAK;;WACL,8BAAI,YAAA;;WACJ,8BAAI,qBAAA;;WACJ,+BAAK,YAAA;;WACL,8BAAI,YAAA;;WACJ,mCAAS;;WACT,iCAAO;;WACP,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,+CAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;;WAER,oCAAU,iBAAA;WAEV,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,+CAAA;WACX,gCAAM;WACN,mCAAS;WACT,kCAAQ;WACR,sCAAY,gBAAA;WACZ,oCAAU,gBAAA;WACV,uCAAa,OAAA;WACb,sCAAY,OAAA;WACZ,wCAAc;WACd,sCAAY;WACZ,qCAAW;WACX,kCAAQ;WACR,kCAAQ,OAAA;WACR,mCAAS;;;;EAiBlB,aAAa,OAAO;SArDT,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAQ;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;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WACL,8BAAI;;WACJ,8BAAI;;WACJ,iCAAO;;WACP,kCAAQ;;WACR,8BAAI;;WACJ,gCAAM;;WACN,qCAAW;;WACX,uCAAa;;WACb,qCAAW;;WACX,qCAAW;;WACX,qCAAW;;WACX,uCAAa;;WACb,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,qDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;;WAER,qCAAW,iBAAA;;WACX,kCAAQ,iBAAA;WAER,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,qDAAA;qBACD,2BAAC,wCAAA;mBACH;mBACA;mBACA;qBAEE,kCAAQ;qBACR,kCAAQ;qBACR,iCAAO;qBACP,oCAAU;qBACV,mCAAS,OAAA;WAKnB,mCAAS;;;;EASlB;;EASM,UAAU;YAkBN,QAAQ,OAAO;YAQf,OAAO,OAAO;YAOd,WAAW,OAAO;YASlB;YAIA,OAAO,OAAO;UAUhB;SAlHG,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;IAAA;IAAA"}
@@ -1,76 +1,33 @@
1
1
  import { TxPassThroughOptions } from "@tectra-ng/core/config";
2
- import { TectraDeepPartial } from "@tectra-ng/themes";
2
+ import { TectraBadgeTokens, TectraDeepPartial } from "@tectra-ng/themes";
3
3
  import * as i0 from "@angular/core";
4
+ /**
5
+ * Colour meaning of a badge: `primary`, `secondary`, `success`, `info`, `warn`, `danger`, `help` or `contrast`.
6
+ */
4
7
  export type TxBadgeSeverity = 'primary' | 'secondary' | 'success' | 'info' | 'warn' | 'danger' | 'help' | 'contrast';
8
+ /** Size of a badge: `small`, `medium`, `large` or `xlarge`. */
5
9
  export type TxBadgeSize = 'small' | 'medium' | 'large' | 'xlarge';
10
+ /** Names of the parts of `tx-badge` that `pt` can style. */
6
11
  export type TxBadgePart = 'root';
12
+ /**
13
+ * A small status or counter. Without a `value` it renders as a dot.
14
+ * @see https://tectra-ng.com/components/badge
15
+ */
7
16
  export declare class TxBadge {
8
17
  private readonly badgeTheme;
18
+ /** Text or number inside; empty = a dot */
9
19
  readonly value: import("@angular/core").InputSignal<string | number | undefined>;
20
+ /** Colour: `primary`, `secondary`, `success`, `info`, `warn`, `danger`, `help`, `contrast` */
10
21
  readonly severity: import("@angular/core").InputSignal<TxBadgeSeverity>;
22
+ /** `small`, `medium`, `large`, `xlarge` */
11
23
  readonly size: import("@angular/core").InputSignal<TxBadgeSize>;
12
- readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<{
13
- root: {
14
- borderRadius: string;
15
- padding: string;
16
- fontSize: string;
17
- fontWeight: string;
18
- minWidth: string;
19
- height: string;
20
- };
21
- dot: {
22
- size: string;
23
- };
24
- sm: {
25
- fontSize: string;
26
- minWidth: string;
27
- height: string;
28
- };
29
- lg: {
30
- fontSize: string;
31
- minWidth: string;
32
- height: string;
33
- };
34
- xl: {
35
- fontSize: string;
36
- minWidth: string;
37
- height: string;
38
- };
39
- primary: {
40
- background: string;
41
- color: string;
42
- };
43
- secondary: {
44
- background: string;
45
- color: string;
46
- };
47
- success: {
48
- background: string;
49
- color: string;
50
- };
51
- info: {
52
- background: string;
53
- color: string;
54
- };
55
- warn: {
56
- background: string;
57
- color: string;
58
- };
59
- danger: {
60
- background: string;
61
- color: string;
62
- };
63
- help: {
64
- background: string;
65
- color: string;
66
- };
67
- contrast: {
68
- background: string;
69
- color: string;
70
- };
71
- }> | undefined>;
24
+ /** Design tokens of this one badge, e.g. `{ primary: { background: '#0d9488' } }` */
25
+ readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraBadgeTokens> | undefined>;
26
+ /** Extra `class` / `style` for the `root` part — an object or a function `({ instance }) => ({ class, style })` */
72
27
  readonly pt: import("@angular/core").InputSignal<Partial<Record<"root", import("@tectra-ng/core/config").TxPassThroughValue<TxBadge>>> | undefined>;
28
+ /** How this `pt` meets the global one from `provideTectra({ pt })`: `mergeSections` (default `true` — keep global parts this `pt` does not mention), `mergeProps` (default `false` — a local part replaces the global one; `true` joins classes and styles) */
73
29
  readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
30
+ /** Drops all tectra styles; classes stay for your own CSS */
74
31
  readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
75
32
  isUnstyled: import("@angular/core").Signal<boolean>;
76
33
  passThrough: import("@angular/core").Signal<Partial<Record<"root", import("@tectra-ng/core/config").TxPassThroughPart>>>;
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-ui-badge.d.ts","names":[],"sources":["../../../../packages/ui/badge/src/badge.types.ts","../../../../packages/ui/badge/src/badge.component.ts"],"mappings":";;;YAAY;YACA;YACA;qBCuBC;mBACM;WAER,+BAAK;WACL,kCAAQ,YAAA;WACR,8BAAI,YAAA;WACJ,4BAAE,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WACF,4BAAE,YAAA,QAAA,gDAAA,mBAAA;WACF,mCAAS,YAAA;WACT,kCAAQ;EAEjB,oCAAU;EACV,qCAAW,OAAA,QAAA,gDAAA;WACF,+BAAK;WACL,mCAAS;;;SAdP,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAO;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-badge.d.ts","names":[],"sources":["../../../../packages/ui/badge/src/badge.types.ts","../../../../packages/ui/badge/src/badge.component.ts"],"mappings":";;;;;;YAGY;;YAEA;;YAEA;;;;;qBCkBC;mBACM;;WAER,+BAAK;;WACL,kCAAQ,YAAA;;WACR,8BAAI,YAAA;;WACJ,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,gDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;EAEjB,oCAAU;EACV,qCAAW,OAAA,QAAA,gDAAA;WACF,+BAAK;WACL,mCAAS;;;SAdP,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAO;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"}