@testgorilla/tgo-ui 11.22.2 → 12.0.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 (227) hide show
  1. package/fesm2022/testgorilla-tgo-ui-components-accordion.mjs +335 -229
  2. package/fesm2022/testgorilla-tgo-ui-components-accordion.mjs.map +1 -1
  3. package/fesm2022/testgorilla-tgo-ui-components-ai-audio-circle.mjs +547 -465
  4. package/fesm2022/testgorilla-tgo-ui-components-ai-audio-circle.mjs.map +1 -1
  5. package/fesm2022/testgorilla-tgo-ui-components-ai-caveat.mjs +160 -75
  6. package/fesm2022/testgorilla-tgo-ui-components-ai-caveat.mjs.map +1 -1
  7. package/fesm2022/testgorilla-tgo-ui-components-ai-feedback.mjs +678 -278
  8. package/fesm2022/testgorilla-tgo-ui-components-ai-feedback.mjs.map +1 -1
  9. package/fesm2022/testgorilla-tgo-ui-components-alert-banner.mjs +337 -274
  10. package/fesm2022/testgorilla-tgo-ui-components-alert-banner.mjs.map +1 -1
  11. package/fesm2022/testgorilla-tgo-ui-components-audio-waveform.mjs +351 -192
  12. package/fesm2022/testgorilla-tgo-ui-components-audio-waveform.mjs.map +1 -1
  13. package/fesm2022/testgorilla-tgo-ui-components-autocomplete-v2.mjs +1950 -960
  14. package/fesm2022/testgorilla-tgo-ui-components-autocomplete-v2.mjs.map +1 -1
  15. package/fesm2022/testgorilla-tgo-ui-components-autocomplete.mjs +1206 -1044
  16. package/fesm2022/testgorilla-tgo-ui-components-autocomplete.mjs.map +1 -1
  17. package/fesm2022/testgorilla-tgo-ui-components-avatar.mjs +328 -182
  18. package/fesm2022/testgorilla-tgo-ui-components-avatar.mjs.map +1 -1
  19. package/fesm2022/testgorilla-tgo-ui-components-badge.mjs +383 -203
  20. package/fesm2022/testgorilla-tgo-ui-components-badge.mjs.map +1 -1
  21. package/fesm2022/testgorilla-tgo-ui-components-breadcrumb.mjs +553 -261
  22. package/fesm2022/testgorilla-tgo-ui-components-breadcrumb.mjs.map +1 -1
  23. package/fesm2022/testgorilla-tgo-ui-components-button.mjs +709 -739
  24. package/fesm2022/testgorilla-tgo-ui-components-button.mjs.map +1 -1
  25. package/fesm2022/testgorilla-tgo-ui-components-card.mjs +219 -184
  26. package/fesm2022/testgorilla-tgo-ui-components-card.mjs.map +1 -1
  27. package/fesm2022/testgorilla-tgo-ui-components-checkbox.mjs +515 -458
  28. package/fesm2022/testgorilla-tgo-ui-components-checkbox.mjs.map +1 -1
  29. package/fesm2022/testgorilla-tgo-ui-components-checklist.mjs +423 -162
  30. package/fesm2022/testgorilla-tgo-ui-components-checklist.mjs.map +1 -1
  31. package/fesm2022/testgorilla-tgo-ui-components-core.mjs +10784 -10996
  32. package/fesm2022/testgorilla-tgo-ui-components-core.mjs.map +1 -1
  33. package/fesm2022/testgorilla-tgo-ui-components-datepicker.mjs +810 -533
  34. package/fesm2022/testgorilla-tgo-ui-components-datepicker.mjs.map +1 -1
  35. package/fesm2022/testgorilla-tgo-ui-components-device-control.mjs +473 -116
  36. package/fesm2022/testgorilla-tgo-ui-components-device-control.mjs.map +1 -1
  37. package/fesm2022/testgorilla-tgo-ui-components-dialog.mjs +1149 -540
  38. package/fesm2022/testgorilla-tgo-ui-components-dialog.mjs.map +1 -1
  39. package/fesm2022/testgorilla-tgo-ui-components-divider.mjs +148 -84
  40. package/fesm2022/testgorilla-tgo-ui-components-divider.mjs.map +1 -1
  41. package/fesm2022/testgorilla-tgo-ui-components-donut-chart.mjs +239 -142
  42. package/fesm2022/testgorilla-tgo-ui-components-donut-chart.mjs.map +1 -1
  43. package/fesm2022/testgorilla-tgo-ui-components-dropdown.mjs +599 -467
  44. package/fesm2022/testgorilla-tgo-ui-components-dropdown.mjs.map +1 -1
  45. package/fesm2022/testgorilla-tgo-ui-components-elevation-shadow.mjs +126 -70
  46. package/fesm2022/testgorilla-tgo-ui-components-elevation-shadow.mjs.map +1 -1
  47. package/fesm2022/testgorilla-tgo-ui-components-empty-state.mjs +324 -329
  48. package/fesm2022/testgorilla-tgo-ui-components-empty-state.mjs.map +1 -1
  49. package/fesm2022/testgorilla-tgo-ui-components-field.mjs +969 -648
  50. package/fesm2022/testgorilla-tgo-ui-components-field.mjs.map +1 -1
  51. package/fesm2022/testgorilla-tgo-ui-components-file-upload.mjs +553 -419
  52. package/fesm2022/testgorilla-tgo-ui-components-file-upload.mjs.map +1 -1
  53. package/fesm2022/testgorilla-tgo-ui-components-filter-button.mjs +847 -452
  54. package/fesm2022/testgorilla-tgo-ui-components-filter-button.mjs.map +1 -1
  55. package/fesm2022/testgorilla-tgo-ui-components-gaussian-chart.mjs +398 -302
  56. package/fesm2022/testgorilla-tgo-ui-components-gaussian-chart.mjs.map +1 -1
  57. package/fesm2022/testgorilla-tgo-ui-components-icon-label.mjs +162 -95
  58. package/fesm2022/testgorilla-tgo-ui-components-icon-label.mjs.map +1 -1
  59. package/fesm2022/testgorilla-tgo-ui-components-icon.mjs +1825 -1789
  60. package/fesm2022/testgorilla-tgo-ui-components-icon.mjs.map +1 -1
  61. package/fesm2022/testgorilla-tgo-ui-components-infinite-scroll-table.mjs +1018 -672
  62. package/fesm2022/testgorilla-tgo-ui-components-infinite-scroll-table.mjs.map +1 -1
  63. package/fesm2022/testgorilla-tgo-ui-components-inline-field.mjs +758 -368
  64. package/fesm2022/testgorilla-tgo-ui-components-inline-field.mjs.map +1 -1
  65. package/fesm2022/testgorilla-tgo-ui-components-logo.mjs +204 -212
  66. package/fesm2022/testgorilla-tgo-ui-components-logo.mjs.map +1 -1
  67. package/fesm2022/testgorilla-tgo-ui-components-media-card.mjs +183 -48
  68. package/fesm2022/testgorilla-tgo-ui-components-media-card.mjs.map +1 -1
  69. package/fesm2022/testgorilla-tgo-ui-components-media-dialog.mjs +243 -79
  70. package/fesm2022/testgorilla-tgo-ui-components-media-dialog.mjs.map +1 -1
  71. package/fesm2022/testgorilla-tgo-ui-components-multi-input.mjs +751 -361
  72. package/fesm2022/testgorilla-tgo-ui-components-multi-input.mjs.map +1 -1
  73. package/fesm2022/testgorilla-tgo-ui-components-navbar.mjs +1122 -385
  74. package/fesm2022/testgorilla-tgo-ui-components-navbar.mjs.map +1 -1
  75. package/fesm2022/testgorilla-tgo-ui-components-overflow-menu.mjs +689 -413
  76. package/fesm2022/testgorilla-tgo-ui-components-overflow-menu.mjs.map +1 -1
  77. package/fesm2022/testgorilla-tgo-ui-components-page-header.mjs +227 -92
  78. package/fesm2022/testgorilla-tgo-ui-components-page-header.mjs.map +1 -1
  79. package/fesm2022/testgorilla-tgo-ui-components-paginator.mjs +174 -113
  80. package/fesm2022/testgorilla-tgo-ui-components-paginator.mjs.map +1 -1
  81. package/fesm2022/testgorilla-tgo-ui-components-password-criteria.mjs +367 -165
  82. package/fesm2022/testgorilla-tgo-ui-components-password-criteria.mjs.map +1 -1
  83. package/fesm2022/testgorilla-tgo-ui-components-password-strength.mjs +253 -118
  84. package/fesm2022/testgorilla-tgo-ui-components-password-strength.mjs.map +1 -1
  85. package/fesm2022/testgorilla-tgo-ui-components-phone-input.mjs +730 -444
  86. package/fesm2022/testgorilla-tgo-ui-components-phone-input.mjs.map +1 -1
  87. package/fesm2022/testgorilla-tgo-ui-components-popover.mjs +533 -221
  88. package/fesm2022/testgorilla-tgo-ui-components-popover.mjs.map +1 -1
  89. package/fesm2022/testgorilla-tgo-ui-components-popup-tip.mjs +274 -76
  90. package/fesm2022/testgorilla-tgo-ui-components-popup-tip.mjs.map +1 -1
  91. package/fesm2022/testgorilla-tgo-ui-components-progress-bar.mjs +184 -124
  92. package/fesm2022/testgorilla-tgo-ui-components-progress-bar.mjs.map +1 -1
  93. package/fesm2022/testgorilla-tgo-ui-components-prompt.mjs +1223 -574
  94. package/fesm2022/testgorilla-tgo-ui-components-prompt.mjs.map +1 -1
  95. package/fesm2022/testgorilla-tgo-ui-components-radial-progress.mjs +249 -160
  96. package/fesm2022/testgorilla-tgo-ui-components-radial-progress.mjs.map +1 -1
  97. package/fesm2022/testgorilla-tgo-ui-components-radio-button.mjs +447 -439
  98. package/fesm2022/testgorilla-tgo-ui-components-radio-button.mjs.map +1 -1
  99. package/fesm2022/testgorilla-tgo-ui-components-rating.mjs +226 -150
  100. package/fesm2022/testgorilla-tgo-ui-components-rating.mjs.map +1 -1
  101. package/fesm2022/testgorilla-tgo-ui-components-scale-table.mjs +255 -67
  102. package/fesm2022/testgorilla-tgo-ui-components-scale-table.mjs.map +1 -1
  103. package/fesm2022/testgorilla-tgo-ui-components-scale.mjs +205 -162
  104. package/fesm2022/testgorilla-tgo-ui-components-scale.mjs.map +1 -1
  105. package/fesm2022/testgorilla-tgo-ui-components-segmented-bar.mjs +245 -153
  106. package/fesm2022/testgorilla-tgo-ui-components-segmented-bar.mjs.map +1 -1
  107. package/fesm2022/testgorilla-tgo-ui-components-segmented-button.mjs +274 -140
  108. package/fesm2022/testgorilla-tgo-ui-components-segmented-button.mjs.map +1 -1
  109. package/fesm2022/testgorilla-tgo-ui-components-segmented-toggle.mjs +319 -147
  110. package/fesm2022/testgorilla-tgo-ui-components-segmented-toggle.mjs.map +1 -1
  111. package/fesm2022/testgorilla-tgo-ui-components-selectable-card.mjs +286 -84
  112. package/fesm2022/testgorilla-tgo-ui-components-selectable-card.mjs.map +1 -1
  113. package/fesm2022/testgorilla-tgo-ui-components-side-navigation.mjs +660 -208
  114. package/fesm2022/testgorilla-tgo-ui-components-side-navigation.mjs.map +1 -1
  115. package/fesm2022/testgorilla-tgo-ui-components-side-panel.mjs +579 -320
  116. package/fesm2022/testgorilla-tgo-ui-components-side-panel.mjs.map +1 -1
  117. package/fesm2022/testgorilla-tgo-ui-components-side-sheet.mjs +419 -200
  118. package/fesm2022/testgorilla-tgo-ui-components-side-sheet.mjs.map +1 -1
  119. package/fesm2022/testgorilla-tgo-ui-components-skeleton.mjs +132 -80
  120. package/fesm2022/testgorilla-tgo-ui-components-skeleton.mjs.map +1 -1
  121. package/fesm2022/testgorilla-tgo-ui-components-slider.mjs +741 -390
  122. package/fesm2022/testgorilla-tgo-ui-components-slider.mjs.map +1 -1
  123. package/fesm2022/testgorilla-tgo-ui-components-snackbar.mjs +455 -329
  124. package/fesm2022/testgorilla-tgo-ui-components-snackbar.mjs.map +1 -1
  125. package/fesm2022/testgorilla-tgo-ui-components-spider-chart.mjs +543 -514
  126. package/fesm2022/testgorilla-tgo-ui-components-spider-chart.mjs.map +1 -1
  127. package/fesm2022/testgorilla-tgo-ui-components-spinner.mjs +193 -104
  128. package/fesm2022/testgorilla-tgo-ui-components-spinner.mjs.map +1 -1
  129. package/fesm2022/testgorilla-tgo-ui-components-stepper.mjs +760 -524
  130. package/fesm2022/testgorilla-tgo-ui-components-stepper.mjs.map +1 -1
  131. package/fesm2022/testgorilla-tgo-ui-components-table.mjs +714 -415
  132. package/fesm2022/testgorilla-tgo-ui-components-table.mjs.map +1 -1
  133. package/fesm2022/testgorilla-tgo-ui-components-tabs.mjs +847 -438
  134. package/fesm2022/testgorilla-tgo-ui-components-tabs.mjs.map +1 -1
  135. package/fesm2022/testgorilla-tgo-ui-components-tag.mjs +535 -275
  136. package/fesm2022/testgorilla-tgo-ui-components-tag.mjs.map +1 -1
  137. package/fesm2022/testgorilla-tgo-ui-components-toggle.mjs +316 -246
  138. package/fesm2022/testgorilla-tgo-ui-components-toggle.mjs.map +1 -1
  139. package/fesm2022/testgorilla-tgo-ui-components-tooltip.mjs +404 -284
  140. package/fesm2022/testgorilla-tgo-ui-components-tooltip.mjs.map +1 -1
  141. package/fesm2022/testgorilla-tgo-ui-components-universal-skills.mjs +664 -383
  142. package/fesm2022/testgorilla-tgo-ui-components-universal-skills.mjs.map +1 -1
  143. package/fesm2022/testgorilla-tgo-ui-components-validation-error.mjs +201 -112
  144. package/fesm2022/testgorilla-tgo-ui-components-validation-error.mjs.map +1 -1
  145. package/fesm2022/testgorilla-tgo-ui-components-write-with-ai.mjs +1014 -458
  146. package/fesm2022/testgorilla-tgo-ui-components-write-with-ai.mjs.map +1 -1
  147. package/fesm2022/testgorilla-tgo-ui.mjs +147 -155
  148. package/fesm2022/testgorilla-tgo-ui.mjs.map +1 -1
  149. package/mcp/catalog.json +1 -1
  150. package/package.json +16 -17
  151. package/projects/tgo-canopy-ui/assets/icons/rebrand/Sequences-filled.svg +3 -0
  152. package/projects/tgo-canopy-ui/assets/icons/rebrand/Sequences-in-line.svg +3 -0
  153. package/projects/tgo-canopy-ui/theme/_palette.scss +23 -18
  154. package/types/testgorilla-tgo-ui-components-accordion.d.ts +214 -158
  155. package/types/testgorilla-tgo-ui-components-ai-audio-circle.d.ts +93 -69
  156. package/types/testgorilla-tgo-ui-components-ai-caveat.d.ts +37 -34
  157. package/types/testgorilla-tgo-ui-components-ai-feedback.d.ts +126 -86
  158. package/types/testgorilla-tgo-ui-components-alert-banner.d.ts +260 -185
  159. package/types/testgorilla-tgo-ui-components-audio-waveform.d.ts +96 -67
  160. package/types/testgorilla-tgo-ui-components-autocomplete-v2.d.ts +455 -256
  161. package/types/testgorilla-tgo-ui-components-autocomplete.d.ts +545 -390
  162. package/types/testgorilla-tgo-ui-components-avatar.d.ts +128 -102
  163. package/types/testgorilla-tgo-ui-components-badge.d.ts +191 -139
  164. package/types/testgorilla-tgo-ui-components-breadcrumb.d.ts +100 -62
  165. package/types/testgorilla-tgo-ui-components-button.d.ts +479 -340
  166. package/types/testgorilla-tgo-ui-components-card.d.ts +153 -114
  167. package/types/testgorilla-tgo-ui-components-checkbox.d.ts +299 -223
  168. package/types/testgorilla-tgo-ui-components-checklist.d.ts +149 -97
  169. package/types/testgorilla-tgo-ui-components-core.d.ts +307 -295
  170. package/types/testgorilla-tgo-ui-components-datepicker.d.ts +404 -299
  171. package/types/testgorilla-tgo-ui-components-device-control.d.ts +151 -81
  172. package/types/testgorilla-tgo-ui-components-dialog.d.ts +442 -329
  173. package/types/testgorilla-tgo-ui-components-divider.d.ts +64 -51
  174. package/types/testgorilla-tgo-ui-components-donut-chart.d.ts +41 -37
  175. package/types/testgorilla-tgo-ui-components-dropdown.d.ts +335 -241
  176. package/types/testgorilla-tgo-ui-components-elevation-shadow.d.ts +48 -43
  177. package/types/testgorilla-tgo-ui-components-empty-state.d.ts +317 -215
  178. package/types/testgorilla-tgo-ui-components-field.d.ts +559 -388
  179. package/types/testgorilla-tgo-ui-components-file-upload.d.ts +230 -168
  180. package/types/testgorilla-tgo-ui-components-filter-button.d.ts +263 -206
  181. package/types/testgorilla-tgo-ui-components-gaussian-chart.d.ts +107 -94
  182. package/types/testgorilla-tgo-ui-components-icon-label.d.ts +84 -61
  183. package/types/testgorilla-tgo-ui-components-icon.d.ts +137 -110
  184. package/types/testgorilla-tgo-ui-components-infinite-scroll-table.d.ts +429 -303
  185. package/types/testgorilla-tgo-ui-components-inline-field.d.ts +338 -254
  186. package/types/testgorilla-tgo-ui-components-logo.d.ts +119 -101
  187. package/types/testgorilla-tgo-ui-components-media-card.d.ts +51 -35
  188. package/types/testgorilla-tgo-ui-components-media-dialog.d.ts +40 -45
  189. package/types/testgorilla-tgo-ui-components-multi-input.d.ts +283 -194
  190. package/types/testgorilla-tgo-ui-components-navbar.d.ts +326 -208
  191. package/types/testgorilla-tgo-ui-components-overflow-menu.d.ts +276 -204
  192. package/types/testgorilla-tgo-ui-components-page-header.d.ts +67 -50
  193. package/types/testgorilla-tgo-ui-components-paginator.d.ts +103 -70
  194. package/types/testgorilla-tgo-ui-components-password-criteria.d.ts +67 -58
  195. package/types/testgorilla-tgo-ui-components-password-strength.d.ts +66 -57
  196. package/types/testgorilla-tgo-ui-components-phone-input.d.ts +217 -175
  197. package/types/testgorilla-tgo-ui-components-popover.d.ts +94 -53
  198. package/types/testgorilla-tgo-ui-components-popup-tip.d.ts +81 -44
  199. package/types/testgorilla-tgo-ui-components-progress-bar.d.ts +115 -84
  200. package/types/testgorilla-tgo-ui-components-prompt.d.ts +315 -219
  201. package/types/testgorilla-tgo-ui-components-radial-progress.d.ts +146 -107
  202. package/types/testgorilla-tgo-ui-components-radio-button.d.ts +296 -219
  203. package/types/testgorilla-tgo-ui-components-rating.d.ts +134 -95
  204. package/types/testgorilla-tgo-ui-components-scale-table.d.ts +67 -47
  205. package/types/testgorilla-tgo-ui-components-scale.d.ts +91 -66
  206. package/types/testgorilla-tgo-ui-components-segmented-bar.d.ts +118 -89
  207. package/types/testgorilla-tgo-ui-components-segmented-button.d.ts +107 -80
  208. package/types/testgorilla-tgo-ui-components-segmented-toggle.d.ts +138 -105
  209. package/types/testgorilla-tgo-ui-components-selectable-card.d.ts +90 -56
  210. package/types/testgorilla-tgo-ui-components-side-navigation.d.ts +183 -107
  211. package/types/testgorilla-tgo-ui-components-side-panel.d.ts +156 -145
  212. package/types/testgorilla-tgo-ui-components-side-sheet.d.ts +98 -89
  213. package/types/testgorilla-tgo-ui-components-skeleton.d.ts +50 -33
  214. package/types/testgorilla-tgo-ui-components-slider.d.ts +278 -198
  215. package/types/testgorilla-tgo-ui-components-snackbar.d.ts +211 -159
  216. package/types/testgorilla-tgo-ui-components-spider-chart.d.ts +140 -121
  217. package/types/testgorilla-tgo-ui-components-spinner.d.ts +93 -72
  218. package/types/testgorilla-tgo-ui-components-stepper.d.ts +480 -338
  219. package/types/testgorilla-tgo-ui-components-table.d.ts +280 -233
  220. package/types/testgorilla-tgo-ui-components-tabs.d.ts +282 -183
  221. package/types/testgorilla-tgo-ui-components-tag.d.ts +266 -193
  222. package/types/testgorilla-tgo-ui-components-toggle.d.ts +180 -132
  223. package/types/testgorilla-tgo-ui-components-tooltip.d.ts +142 -105
  224. package/types/testgorilla-tgo-ui-components-universal-skills.d.ts +165 -144
  225. package/types/testgorilla-tgo-ui-components-validation-error.d.ts +70 -51
  226. package/types/testgorilla-tgo-ui-components-write-with-ai.d.ts +210 -133
  227. package/types/testgorilla-tgo-ui.d.ts +52 -45
@@ -1,108 +1,141 @@
1
- import * as _angular_core from '@angular/core';
2
- import { TooltipPosition } from '@angular/material/tooltip';
3
- import { ApplicationTheme } from '@testgorilla/tgo-ui/components/core';
4
- export { ApplicationTheme } from '@testgorilla/tgo-ui/components/core';
5
- import { IconName } from '@testgorilla/tgo-ui/components/icon';
6
- import { TooltipPositionType } from '@testgorilla/tgo-ui/components/tooltip';
7
-
8
- interface SegmentedToggleOption<T> {
9
- value: T;
10
- /**
11
- * Visible text label. Optional so an option can be icon-only — in that case
12
- * provide `icon` and `iconAriaLabel` so the segment still has an accessible name.
13
- */
14
- label?: string;
15
- /**
16
- * Optional quantity shown to the right of the label (e.g. `Saved 12`). While
17
- * the toggle is `loading`, a skeleton is shown in its place.
18
- */
19
- count?: number;
20
- /** Optional leading icon, typed to the Canopy icon set. */
21
- icon?: IconName;
22
- /**
23
- * When set, the icon is informational and this text is exposed to assistive
24
- * tech via a visually-hidden label. When omitted, the icon is decorative and
25
- * marked `aria-hidden`.
26
- */
27
- iconAriaLabel?: string;
28
- /**
29
- * When true, selecting this option shows the brand (magenta) pill; selecting
30
- * any non-brand option shows the neutral pill.
31
- */
32
- brand?: boolean;
33
- testId?: string;
34
- /** Optional tooltip text shown when hovering or focusing this segment. */
35
- tooltip?: string;
36
- /**
37
- * Position of the tooltip relative to the segment. Only relevant when
38
- * `tooltip` is set. Defaults to `TooltipPositionType.TOP`.
39
- */
40
- tooltipPosition?: TooltipPositionType;
1
+ import { TooltipPosition } from "@angular/material/tooltip";
2
+ import { ApplicationTheme, ApplicationTheme as ApplicationTheme$1 } from "@testgorilla/tgo-ui/components/core";
3
+ import { IconName } from "@testgorilla/tgo-ui/components/icon";
4
+ import { TooltipPositionType } from "@testgorilla/tgo-ui/components/tooltip";
5
+ import * as i0 from "@angular/core";
6
+ export interface SegmentedToggleOption<T> {
7
+ value: T;
8
+ /**
9
+ * Visible text label. Optional so an option can be icon-only — in that case
10
+ * provide `icon` and `iconAriaLabel` so the segment still has an accessible name.
11
+ */
12
+ label?: string;
13
+ /**
14
+ * Optional quantity shown to the right of the label (e.g. `Saved 12`). While
15
+ * the toggle is `loading`, a skeleton is shown in its place.
16
+ */
17
+ count?: number;
18
+ /** Optional leading icon, typed to the Canopy icon set. */
19
+ icon?: IconName;
20
+ /**
21
+ * When set, the icon is informational and this text is exposed to assistive
22
+ * tech via a visually-hidden label. When omitted, the icon is decorative and
23
+ * marked `aria-hidden`.
24
+ */
25
+ iconAriaLabel?: string;
26
+ /**
27
+ * When true, selecting this option shows the brand (magenta) pill; selecting
28
+ * any non-brand option shows the neutral pill.
29
+ */
30
+ brand?: boolean;
31
+ testId?: string;
32
+ /** Optional tooltip text shown when hovering or focusing this segment. */
33
+ tooltip?: string;
34
+ /**
35
+ * Position of the tooltip relative to the segment. Only relevant when
36
+ * `tooltip` is set. Defaults to `TooltipPositionType.TOP`.
37
+ */
38
+ tooltipPosition?: TooltipPositionType;
41
39
  }
42
-
43
- declare class SegmentedToggleComponent<T> {
44
- private readonly hostRef;
45
- private readonly destroyRef;
46
- readonly options: _angular_core.InputSignal<SegmentedToggleOption<T>[]>;
47
- readonly value: _angular_core.ModelSignal<T | undefined>;
48
- readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
49
- /**
50
- * Shows a small skeleton to the right of each option's content, in place of
51
- * its `count`, while the quantities are being fetched. Segments stay selectable.
52
- */
53
- readonly loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
54
- readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
55
- readonly testId: _angular_core.InputSignal<string | null>;
56
- readonly applicationTheme: _angular_core.InputSignal<ApplicationTheme | undefined>;
57
- private readonly defaultAppTheme;
58
- readonly theme: _angular_core.Signal<ApplicationTheme>;
59
- /**
60
- * Pill-shaped placeholder sized to a short count next to a 16px icon/label.
61
- * Tinted from the segment's text colour so it follows every state (unselected,
62
- * selected, brand, disabled); the library's fixed light grey vanishes on white
63
- * and glares on the black pill.
64
- */
65
- protected readonly skeletonTheme: {
66
- 'background-color': string;
67
- width: string;
68
- height: string;
69
- margin: string;
70
- 'border-radius': string;
71
- 'vertical-align': string;
40
+ export declare class SegmentedToggleComponent<T> {
41
+ private readonly hostRef;
42
+ private readonly destroyRef;
43
+ readonly options: import("@angular/core").InputSignal<SegmentedToggleOption<T>[]>;
44
+ readonly value: import("@angular/core").ModelSignal<T | undefined>;
45
+ readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
46
+ /**
47
+ * Shows a small skeleton to the right of each option's content, in place of
48
+ * its `count`, while the quantities are being fetched. Segments stay selectable.
49
+ */
50
+ readonly loading: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
51
+ readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
52
+ readonly testId: import("@angular/core").InputSignal<string | null>;
53
+ readonly applicationTheme: import("@angular/core").InputSignal<ApplicationTheme$1 | undefined>;
54
+ private readonly defaultAppTheme;
55
+ readonly theme: import("@angular/core").Signal<ApplicationTheme$1>;
56
+ /**
57
+ * Pill-shaped placeholder sized to a short count next to a 16px icon/label.
58
+ * Tinted from the segment's text colour so it follows every state (unselected,
59
+ * selected, brand, disabled); the library's fixed light grey vanishes on white
60
+ * and glares on the black pill.
61
+ */
62
+ protected readonly skeletonTheme: {
63
+ 'background-color': string;
64
+ width: string;
65
+ height: string;
66
+ margin: string;
67
+ 'border-radius': string;
68
+ 'vertical-align': string;
69
+ };
70
+ /** One ElementRef per segment button; used to measure the active pill geometry. */
71
+ private readonly optionButtons;
72
+ /** Index of the selected option; -1 when value() matches no option. */
73
+ protected readonly selectedIndex: import("@angular/core").Signal<number>;
74
+ /** True when the currently-selected option is flagged `brand: true`. */
75
+ protected readonly selectedOptionIsBrand: import("@angular/core").Signal<boolean>;
76
+ /** Measured pixel geometry of the active button, driving the sliding indicator. */
77
+ protected readonly indicatorOffset: import("@angular/core").WritableSignal<number>;
78
+ protected readonly indicatorTop: import("@angular/core").WritableSignal<number>;
79
+ protected readonly indicatorWidth: import("@angular/core").WritableSignal<number>;
80
+ protected readonly indicatorHeight: import("@angular/core").WritableSignal<number>;
81
+ /** Enables the slide transition only after the initial position is painted. */
82
+ protected readonly animated: import("@angular/core").WritableSignal<boolean>;
83
+ constructor();
84
+ protected select(optionValue: T): void;
85
+ protected isSelected(optionValue: T): boolean;
86
+ /**
87
+ * Last-resort accessible name for a segment. Used only for an icon-only option
88
+ * that provides neither a visible `label` nor an `iconAriaLabel`, so the button
89
+ * is never a nameless control. When a label or icon label is present those name
90
+ * the button and this returns `null` (no `aria-label` attribute). The `aria-label`
91
+ * replaces the button's content as its name, so a visible `count` is appended
92
+ * here or it would never be announced.
93
+ */
94
+ protected fallbackAriaLabel(option: SegmentedToggleOption<T>): string | null;
95
+ protected optionTestId(option: SegmentedToggleOption<T>): string | null;
96
+ /** Maps the option's Canopy tooltip position (default TOP) to the MatTooltip position. */
97
+ protected tooltipPosition(option: SegmentedToggleOption<T>): TooltipPosition;
98
+ /** Reads the active button's box and writes it to the indicator signals. */
99
+ private measureIndicator;
100
+ static ɵfac: i0.ɵɵFactoryDeclaration<SegmentedToggleComponent<any>, never>;
101
+ static ɵcmp: i0.ɵɵComponentDeclaration<SegmentedToggleComponent<any>, "ui-segmented-toggle", never, {
102
+ "options": {
103
+ "alias": "options";
104
+ "required": true;
105
+ "isSignal": true;
72
106
  };
73
- /** One ElementRef per segment button; used to measure the active pill geometry. */
74
- private readonly optionButtons;
75
- /** Index of the selected option; -1 when value() matches no option. */
76
- protected readonly selectedIndex: _angular_core.Signal<number>;
77
- /** True when the currently-selected option is flagged `brand: true`. */
78
- protected readonly selectedOptionIsBrand: _angular_core.Signal<boolean>;
79
- /** Measured pixel geometry of the active button, driving the sliding indicator. */
80
- protected readonly indicatorOffset: _angular_core.WritableSignal<number>;
81
- protected readonly indicatorTop: _angular_core.WritableSignal<number>;
82
- protected readonly indicatorWidth: _angular_core.WritableSignal<number>;
83
- protected readonly indicatorHeight: _angular_core.WritableSignal<number>;
84
- /** Enables the slide transition only after the initial position is painted. */
85
- protected readonly animated: _angular_core.WritableSignal<boolean>;
86
- constructor();
87
- protected select(optionValue: T): void;
88
- protected isSelected(optionValue: T): boolean;
89
- /**
90
- * Last-resort accessible name for a segment. Used only for an icon-only option
91
- * that provides neither a visible `label` nor an `iconAriaLabel`, so the button
92
- * is never a nameless control. When a label or icon label is present those name
93
- * the button and this returns `null` (no `aria-label` attribute). The `aria-label`
94
- * replaces the button's content as its name, so a visible `count` is appended
95
- * here or it would never be announced.
96
- */
97
- protected fallbackAriaLabel(option: SegmentedToggleOption<T>): string | null;
98
- protected optionTestId(option: SegmentedToggleOption<T>): string | null;
99
- /** Maps the option's Canopy tooltip position (default TOP) to the MatTooltip position. */
100
- protected tooltipPosition(option: SegmentedToggleOption<T>): TooltipPosition;
101
- /** Reads the active button's box and writes it to the indicator signals. */
102
- private measureIndicator;
103
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<SegmentedToggleComponent<any>, never>;
104
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<SegmentedToggleComponent<any>, "ui-segmented-toggle", never, { "options": { "alias": "options"; "required": true; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "testId": { "alias": "testId"; "required": false; "isSignal": true; }; "applicationTheme": { "alias": "applicationTheme"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
107
+ "value": {
108
+ "alias": "value";
109
+ "required": false;
110
+ "isSignal": true;
111
+ };
112
+ "disabled": {
113
+ "alias": "disabled";
114
+ "required": false;
115
+ "isSignal": true;
116
+ };
117
+ "loading": {
118
+ "alias": "loading";
119
+ "required": false;
120
+ "isSignal": true;
121
+ };
122
+ "ariaLabel": {
123
+ "alias": "ariaLabel";
124
+ "required": false;
125
+ "isSignal": true;
126
+ };
127
+ "testId": {
128
+ "alias": "testId";
129
+ "required": false;
130
+ "isSignal": true;
131
+ };
132
+ "applicationTheme": {
133
+ "alias": "applicationTheme";
134
+ "required": false;
135
+ "isSignal": true;
136
+ };
137
+ }, {
138
+ "value": "valueChange";
139
+ }, never, never, true, never>;
105
140
  }
106
-
107
- export { SegmentedToggleComponent };
108
- export type { SegmentedToggleOption };
141
+ export { ApplicationTheme };
@@ -1,57 +1,91 @@
1
- import * as _angular_core from '@angular/core';
2
- import * as i2 from '@testgorilla/tgo-ui/components/card';
3
- import { CardSize, CardVariant } from '@testgorilla/tgo-ui/components/card';
4
- import * as i1 from '@angular/common';
5
- import * as i3 from '@testgorilla/tgo-ui/components/checkbox';
6
-
7
- declare class SelectableCardComponent {
8
- /**
9
- * Card size. Defaults to "medium".
10
- */
11
- size: _angular_core.InputSignal<CardSize>;
12
- /**
13
- * Card variant/design for selected state. Defaults to "default".
14
- */
15
- selectedVariant: _angular_core.InputSignal<CardVariant>;
16
- /**
17
- * Whether the card is selected (input from parent).
18
- */
19
- selected: _angular_core.InputSignal<boolean>;
20
- /**
21
- * Whether the checkbox is disabled.
22
- */
23
- isCheckboxDisabled: _angular_core.InputSignal<boolean>;
24
- /**
25
- * Whether the card is in an error state, which renders the checkbox in red.
26
- */
27
- hasError: _angular_core.InputSignal<boolean>;
28
- testId: _angular_core.InputSignal<string | null>;
29
- ariaLabel: _angular_core.InputSignal<string>;
30
- protected readonly checkboxTestId: _angular_core.Signal<string | null>;
31
- /**
32
- * Event emitted when the card is selected, with the current selected state.
33
- */
34
- cardSelected: _angular_core.OutputEmitterRef<boolean>;
35
- /**
36
- * Internal override for selected state (when user interacts).
37
- */
38
- private readonly internalSelectedOverride;
39
- /**
40
- * Computed selected state that prioritizes user interaction over input.
41
- */
42
- isSelected: _angular_core.Signal<boolean>;
43
- /**
44
- * Handles card selection, toggles internal state and emits the new value.
45
- */
46
- handleSelect(): void;
47
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<SelectableCardComponent, never>;
48
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<SelectableCardComponent, "ui-selectable-card", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "selectedVariant": { "alias": "selectedVariant"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "isCheckboxDisabled": { "alias": "isCheckboxDisabled"; "required": false; "isSignal": true; }; "hasError": { "alias": "hasError"; "required": false; "isSignal": true; }; "testId": { "alias": "testId"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "cardSelected": "cardSelected"; }, never, ["[ui-selectable-card-label]", "[ui-selectable-card-content]"], true, never>;
1
+ import * as i2 from "@testgorilla/tgo-ui/components/card";
2
+ import { CardSize, CardVariant } from "@testgorilla/tgo-ui/components/card";
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "@angular/common";
5
+ import * as i3 from "@testgorilla/tgo-ui/components/checkbox";
6
+ export declare class SelectableCardComponent {
7
+ /**
8
+ * Card size. Defaults to "medium".
9
+ */
10
+ size: import("@angular/core").InputSignal<CardSize>;
11
+ /**
12
+ * Card variant/design for selected state. Defaults to "default".
13
+ */
14
+ selectedVariant: import("@angular/core").InputSignal<CardVariant>;
15
+ /**
16
+ * Whether the card is selected (input from parent).
17
+ */
18
+ selected: import("@angular/core").InputSignal<boolean>;
19
+ /**
20
+ * Whether the checkbox is disabled.
21
+ */
22
+ isCheckboxDisabled: import("@angular/core").InputSignal<boolean>;
23
+ /**
24
+ * Whether the card is in an error state, which renders the checkbox in red.
25
+ */
26
+ hasError: import("@angular/core").InputSignal<boolean>;
27
+ testId: import("@angular/core").InputSignal<string | null>;
28
+ ariaLabel: import("@angular/core").InputSignal<string>;
29
+ protected readonly checkboxTestId: import("@angular/core").Signal<string | null>;
30
+ /**
31
+ * Event emitted when the card is selected, with the current selected state.
32
+ */
33
+ cardSelected: import("@angular/core").OutputEmitterRef<boolean>;
34
+ /**
35
+ * Internal override for selected state (when user interacts).
36
+ */
37
+ private readonly internalSelectedOverride;
38
+ /**
39
+ * Computed selected state that prioritizes user interaction over input.
40
+ */
41
+ isSelected: import("@angular/core").Signal<boolean>;
42
+ /**
43
+ * Handles card selection, toggles internal state and emits the new value.
44
+ */
45
+ handleSelect(): void;
46
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectableCardComponent, never>;
47
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectableCardComponent, "ui-selectable-card", never, {
48
+ "size": {
49
+ "alias": "size";
50
+ "required": false;
51
+ "isSignal": true;
52
+ };
53
+ "selectedVariant": {
54
+ "alias": "selectedVariant";
55
+ "required": false;
56
+ "isSignal": true;
57
+ };
58
+ "selected": {
59
+ "alias": "selected";
60
+ "required": false;
61
+ "isSignal": true;
62
+ };
63
+ "isCheckboxDisabled": {
64
+ "alias": "isCheckboxDisabled";
65
+ "required": false;
66
+ "isSignal": true;
67
+ };
68
+ "hasError": {
69
+ "alias": "hasError";
70
+ "required": false;
71
+ "isSignal": true;
72
+ };
73
+ "testId": {
74
+ "alias": "testId";
75
+ "required": false;
76
+ "isSignal": true;
77
+ };
78
+ "ariaLabel": {
79
+ "alias": "ariaLabel";
80
+ "required": false;
81
+ "isSignal": true;
82
+ };
83
+ }, {
84
+ "cardSelected": "cardSelected";
85
+ }, never, ["[ui-selectable-card-label]", "[ui-selectable-card-content]"], true, never>;
49
86
  }
50
-
51
- declare class SelectableCardComponentModule {
52
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<SelectableCardComponentModule, never>;
53
- static ɵmod: _angular_core.ɵɵNgModuleDeclaration<SelectableCardComponentModule, never, [typeof i1.CommonModule, typeof i2.CardComponentModule, typeof i3.CheckboxComponentModule, typeof SelectableCardComponent], [typeof SelectableCardComponent]>;
54
- static ɵinj: _angular_core.ɵɵInjectorDeclaration<SelectableCardComponentModule>;
55
- }
56
-
57
- export { SelectableCardComponent, SelectableCardComponentModule };
87
+ export declare class SelectableCardComponentModule {
88
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectableCardComponentModule, never>;
89
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SelectableCardComponentModule, never, [typeof i1.CommonModule, typeof i2.CardComponentModule, typeof i3.CheckboxComponentModule, typeof SelectableCardComponent], [typeof SelectableCardComponent]>;
90
+ static ɵinj: i0.ɵɵInjectorDeclaration<SelectableCardComponentModule>;
91
+ }