@testgorilla/tgo-ui 11.22.3 → 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 (225) 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 -1795
  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/theme/_palette.scss +23 -18
  152. package/types/testgorilla-tgo-ui-components-accordion.d.ts +214 -158
  153. package/types/testgorilla-tgo-ui-components-ai-audio-circle.d.ts +93 -69
  154. package/types/testgorilla-tgo-ui-components-ai-caveat.d.ts +37 -34
  155. package/types/testgorilla-tgo-ui-components-ai-feedback.d.ts +126 -86
  156. package/types/testgorilla-tgo-ui-components-alert-banner.d.ts +260 -185
  157. package/types/testgorilla-tgo-ui-components-audio-waveform.d.ts +96 -67
  158. package/types/testgorilla-tgo-ui-components-autocomplete-v2.d.ts +455 -256
  159. package/types/testgorilla-tgo-ui-components-autocomplete.d.ts +545 -390
  160. package/types/testgorilla-tgo-ui-components-avatar.d.ts +128 -102
  161. package/types/testgorilla-tgo-ui-components-badge.d.ts +191 -139
  162. package/types/testgorilla-tgo-ui-components-breadcrumb.d.ts +100 -62
  163. package/types/testgorilla-tgo-ui-components-button.d.ts +479 -340
  164. package/types/testgorilla-tgo-ui-components-card.d.ts +153 -114
  165. package/types/testgorilla-tgo-ui-components-checkbox.d.ts +299 -223
  166. package/types/testgorilla-tgo-ui-components-checklist.d.ts +149 -97
  167. package/types/testgorilla-tgo-ui-components-core.d.ts +307 -295
  168. package/types/testgorilla-tgo-ui-components-datepicker.d.ts +404 -299
  169. package/types/testgorilla-tgo-ui-components-device-control.d.ts +151 -81
  170. package/types/testgorilla-tgo-ui-components-dialog.d.ts +442 -329
  171. package/types/testgorilla-tgo-ui-components-divider.d.ts +64 -51
  172. package/types/testgorilla-tgo-ui-components-donut-chart.d.ts +41 -37
  173. package/types/testgorilla-tgo-ui-components-dropdown.d.ts +335 -241
  174. package/types/testgorilla-tgo-ui-components-elevation-shadow.d.ts +48 -43
  175. package/types/testgorilla-tgo-ui-components-empty-state.d.ts +317 -215
  176. package/types/testgorilla-tgo-ui-components-field.d.ts +559 -388
  177. package/types/testgorilla-tgo-ui-components-file-upload.d.ts +230 -168
  178. package/types/testgorilla-tgo-ui-components-filter-button.d.ts +263 -206
  179. package/types/testgorilla-tgo-ui-components-gaussian-chart.d.ts +107 -94
  180. package/types/testgorilla-tgo-ui-components-icon-label.d.ts +84 -61
  181. package/types/testgorilla-tgo-ui-components-icon.d.ts +137 -110
  182. package/types/testgorilla-tgo-ui-components-infinite-scroll-table.d.ts +429 -303
  183. package/types/testgorilla-tgo-ui-components-inline-field.d.ts +338 -254
  184. package/types/testgorilla-tgo-ui-components-logo.d.ts +119 -101
  185. package/types/testgorilla-tgo-ui-components-media-card.d.ts +51 -35
  186. package/types/testgorilla-tgo-ui-components-media-dialog.d.ts +40 -45
  187. package/types/testgorilla-tgo-ui-components-multi-input.d.ts +283 -194
  188. package/types/testgorilla-tgo-ui-components-navbar.d.ts +326 -208
  189. package/types/testgorilla-tgo-ui-components-overflow-menu.d.ts +276 -204
  190. package/types/testgorilla-tgo-ui-components-page-header.d.ts +67 -50
  191. package/types/testgorilla-tgo-ui-components-paginator.d.ts +103 -70
  192. package/types/testgorilla-tgo-ui-components-password-criteria.d.ts +67 -58
  193. package/types/testgorilla-tgo-ui-components-password-strength.d.ts +66 -57
  194. package/types/testgorilla-tgo-ui-components-phone-input.d.ts +217 -175
  195. package/types/testgorilla-tgo-ui-components-popover.d.ts +94 -53
  196. package/types/testgorilla-tgo-ui-components-popup-tip.d.ts +81 -44
  197. package/types/testgorilla-tgo-ui-components-progress-bar.d.ts +115 -84
  198. package/types/testgorilla-tgo-ui-components-prompt.d.ts +315 -219
  199. package/types/testgorilla-tgo-ui-components-radial-progress.d.ts +146 -107
  200. package/types/testgorilla-tgo-ui-components-radio-button.d.ts +296 -219
  201. package/types/testgorilla-tgo-ui-components-rating.d.ts +134 -95
  202. package/types/testgorilla-tgo-ui-components-scale-table.d.ts +67 -47
  203. package/types/testgorilla-tgo-ui-components-scale.d.ts +91 -66
  204. package/types/testgorilla-tgo-ui-components-segmented-bar.d.ts +118 -89
  205. package/types/testgorilla-tgo-ui-components-segmented-button.d.ts +107 -80
  206. package/types/testgorilla-tgo-ui-components-segmented-toggle.d.ts +138 -105
  207. package/types/testgorilla-tgo-ui-components-selectable-card.d.ts +90 -56
  208. package/types/testgorilla-tgo-ui-components-side-navigation.d.ts +183 -107
  209. package/types/testgorilla-tgo-ui-components-side-panel.d.ts +156 -145
  210. package/types/testgorilla-tgo-ui-components-side-sheet.d.ts +98 -89
  211. package/types/testgorilla-tgo-ui-components-skeleton.d.ts +50 -33
  212. package/types/testgorilla-tgo-ui-components-slider.d.ts +278 -198
  213. package/types/testgorilla-tgo-ui-components-snackbar.d.ts +211 -159
  214. package/types/testgorilla-tgo-ui-components-spider-chart.d.ts +140 -121
  215. package/types/testgorilla-tgo-ui-components-spinner.d.ts +93 -72
  216. package/types/testgorilla-tgo-ui-components-stepper.d.ts +480 -338
  217. package/types/testgorilla-tgo-ui-components-table.d.ts +280 -233
  218. package/types/testgorilla-tgo-ui-components-tabs.d.ts +282 -183
  219. package/types/testgorilla-tgo-ui-components-tag.d.ts +266 -193
  220. package/types/testgorilla-tgo-ui-components-toggle.d.ts +180 -132
  221. package/types/testgorilla-tgo-ui-components-tooltip.d.ts +142 -105
  222. package/types/testgorilla-tgo-ui-components-universal-skills.d.ts +165 -144
  223. package/types/testgorilla-tgo-ui-components-validation-error.d.ts +70 -51
  224. package/types/testgorilla-tgo-ui-components-write-with-ai.d.ts +210 -133
  225. package/types/testgorilla-tgo-ui.d.ts +52 -45
@@ -1,172 +1,234 @@
1
- import * as i0 from '@angular/core';
2
- import { OnInit, OnChanges, EventEmitter, ElementRef, SimpleChanges } from '@angular/core';
3
- import { ControlValueAccessor } from '@angular/forms';
4
- import * as i6 from '@testgorilla/tgo-ui/components/core';
5
- import { ApplicationTheme, Color } from '@testgorilla/tgo-ui/components/core';
6
- export { ApplicationTheme } from '@testgorilla/tgo-ui/components/core';
7
- import * as i1 from '@angular/common';
8
- import * as i2 from '@angular/material/form-field';
9
- import * as i3 from '@angular/material/input';
10
- import * as i4 from '@testgorilla/tgo-ui/components/icon';
11
- import * as i5 from '@testgorilla/tgo-ui/components/progress-bar';
12
-
13
- declare class FileUploadComponent implements OnInit, OnChanges, ControlValueAccessor {
14
- private readonly defaultAppTheme;
15
- class: string;
16
- /**
17
- *
18
- * @type {number}
19
- * @memberof FileUploadComponent
20
- */
21
- maxFileSizeMB: number;
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof FileUploadComponent
26
- */
27
- minFileSizeMB: number;
28
- /**
29
- * Supported files for input field
30
- *
31
- * @type {string}
32
- * @memberof FileUploadComponent
33
- */
34
- supportedFileTypes?: string;
35
- /**
36
- * Upload progress
37
- *
38
- * @type {number}
39
- * @memberof FileUploadComponent
40
- */
41
- uploadProgress: number;
42
- /**
43
- * Show Upload progress percentage or not
44
- *
45
- * @type {boolean}
46
- * @memberof FileUploadComponent
47
- */
48
- showUploadProgress: boolean;
49
- /**
50
- * Custom progress message
51
- *
52
- * @type {string}
53
- * @memberof FileUploadComponent
54
- */
55
- fileProcessingMessage: string | undefined;
56
- /**
57
- * File upload errors
58
- *
59
- * @type {string[]}
60
- * @memberof FileUploadComponent
61
- */
62
- errors?: string[] | null;
63
- /**
64
- * File upload disabled
65
- *
66
- * @type {boolean}
67
- * @memberof FileUploadComponent
68
- */
69
- disabled: boolean;
70
- testId: string | null;
71
- get successInputTestId(): string;
72
- /**
73
- * Existing file information
74
- *
75
- * @type {(File | null)}
76
- * @memberof FileUploadComponent
77
- */
78
- file: File | null;
79
- /**
80
- * Color of the file upload.
81
- * Defaults to Test Gorilla primary color.
82
- *
83
- * @type {string}
84
- * @memberof FileUploadComponent
85
- */
86
- companyColor: string | null;
87
- compColor: string;
88
- /**
89
- *
90
- * Defines the application theme
91
- *
92
- * @type {ApplicationTheme}
93
- * @memberof FileUploadComponent
94
- */
95
- applicationTheme: ApplicationTheme;
96
- /**
97
- * A string representing the ARIA label for accessibility.
98
- * This label is used to provide an accessible name for the input element.
99
- * @type {string}
100
- * @memberof FileUploadComponent
101
- */
102
- ariaLabel: string;
103
- /**
104
- * A string representing the ARIA requirement for accessibility.
105
- * This attribute is used to indicate whether an input field is required for form submission.
106
- * @type {boolean}
107
- * @memberof FileUploadComponent
108
- */
109
- ariaRequired: boolean;
110
- /**
111
- * Whether to show the file size information.
112
- * @type {boolean}
113
- * @memberof FileUploadComponent
114
- */
115
- showFileSize: boolean;
116
- OnDrop: EventEmitter<File>;
117
- fileDrop: ElementRef<HTMLInputElement>;
118
- protected readonly translationContext = "FILE_UPLOAD.";
119
- /**
120
- * @ignore
121
- */
122
- onChange: (_value: File | null) => void;
123
- /**
124
- * @ignore
125
- */
126
- onTouch: () => void;
127
- get fileSizeInMB(): string | null;
128
- isMissedMinSize: boolean;
129
- progress: boolean;
130
- success: boolean;
131
- browse: boolean;
132
- isCanceled: boolean;
133
- colorUploadSuccess: Color;
134
- constructor(defaultAppTheme: ApplicationTheme);
135
- ngOnInit(): void;
136
- onFileDropped(files: FileList): void;
137
- onChangeUpload(event: Event): void;
138
- emitFile(files: FileList): void;
139
- showProgress(): boolean;
140
- showSuccess(): boolean;
141
- showBrowse(): boolean;
142
- ngOnChanges(changes: SimpleChanges): void;
143
- private readonly cdr;
144
- writeValue(value?: File): void;
145
- registerOnChange(fn: (value: File | null) => void): void;
146
- registerOnTouched(fn: () => void): void;
147
- setDisabledState(isDisabled: boolean): void;
148
- private getCompanyColor;
149
- private fileSizeToMB;
150
- onKeydown(ev: KeyboardEvent): void;
151
- static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadComponent, [{ optional: true; }]>;
152
- static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadComponent, "ui-file-upload", never, { "maxFileSizeMB": { "alias": "maxFileSizeMB"; "required": false; }; "minFileSizeMB": { "alias": "minFileSizeMB"; "required": false; }; "supportedFileTypes": { "alias": "supportedFileTypes"; "required": false; }; "uploadProgress": { "alias": "uploadProgress"; "required": false; }; "showUploadProgress": { "alias": "showUploadProgress"; "required": false; }; "fileProcessingMessage": { "alias": "fileProcessingMessage"; "required": false; }; "errors": { "alias": "errors"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "file": { "alias": "file"; "required": false; }; "companyColor": { "alias": "companyColor"; "required": false; }; "applicationTheme": { "alias": "applicationTheme"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "ariaRequired": { "alias": "ariaRequired"; "required": false; }; "showFileSize": { "alias": "showFileSize"; "required": false; }; }, { "OnDrop": "OnDrop"; }, never, never, true, never>;
1
+ import * as i0 from "@angular/core";
2
+ import { ElementRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from "@angular/core";
3
+ import { ControlValueAccessor } from "@angular/forms";
4
+ import * as i6 from "@testgorilla/tgo-ui/components/core";
5
+ import { ApplicationTheme, ApplicationTheme as ApplicationTheme$1, Color } from "@testgorilla/tgo-ui/components/core";
6
+ import * as i1 from "@angular/common";
7
+ import * as i2 from "@angular/material/form-field";
8
+ import * as i3 from "@angular/material/input";
9
+ import * as i4 from "@testgorilla/tgo-ui/components/icon";
10
+ import * as i5 from "@testgorilla/tgo-ui/components/progress-bar";
11
+ export declare class FileUploadComponent implements OnInit, OnChanges, ControlValueAccessor {
12
+ private readonly defaultAppTheme;
13
+ class: string;
14
+ /**
15
+ *
16
+ * @type {number}
17
+ * @memberof FileUploadComponent
18
+ */
19
+ maxFileSizeMB: number;
20
+ /**
21
+ *
22
+ * @type {number}
23
+ * @memberof FileUploadComponent
24
+ */
25
+ minFileSizeMB: number;
26
+ /**
27
+ * Supported files for input field
28
+ *
29
+ * @type {string}
30
+ * @memberof FileUploadComponent
31
+ */
32
+ supportedFileTypes?: string;
33
+ /**
34
+ * Upload progress
35
+ *
36
+ * @type {number}
37
+ * @memberof FileUploadComponent
38
+ */
39
+ uploadProgress: number;
40
+ /**
41
+ * Show Upload progress percentage or not
42
+ *
43
+ * @type {boolean}
44
+ * @memberof FileUploadComponent
45
+ */
46
+ showUploadProgress: boolean;
47
+ /**
48
+ * Custom progress message
49
+ *
50
+ * @type {string}
51
+ * @memberof FileUploadComponent
52
+ */
53
+ fileProcessingMessage: string | undefined;
54
+ /**
55
+ * File upload errors
56
+ *
57
+ * @type {string[]}
58
+ * @memberof FileUploadComponent
59
+ */
60
+ errors?: string[] | null;
61
+ /**
62
+ * File upload disabled
63
+ *
64
+ * @type {boolean}
65
+ * @memberof FileUploadComponent
66
+ */
67
+ disabled: boolean;
68
+ testId: string | null;
69
+ get successInputTestId(): string;
70
+ /**
71
+ * Existing file information
72
+ *
73
+ * @type {(File | null)}
74
+ * @memberof FileUploadComponent
75
+ */
76
+ file: File | null;
77
+ /**
78
+ * Color of the file upload.
79
+ * Defaults to Test Gorilla primary color.
80
+ *
81
+ * @type {string}
82
+ * @memberof FileUploadComponent
83
+ */
84
+ companyColor: string | null;
85
+ compColor: string;
86
+ /**
87
+ *
88
+ * Defines the application theme
89
+ *
90
+ * @type {ApplicationTheme}
91
+ * @memberof FileUploadComponent
92
+ */
93
+ applicationTheme: ApplicationTheme$1;
94
+ /**
95
+ * A string representing the ARIA label for accessibility.
96
+ * This label is used to provide an accessible name for the input element.
97
+ * @type {string}
98
+ * @memberof FileUploadComponent
99
+ */
100
+ ariaLabel: string;
101
+ /**
102
+ * A string representing the ARIA requirement for accessibility.
103
+ * This attribute is used to indicate whether an input field is required for form submission.
104
+ * @type {boolean}
105
+ * @memberof FileUploadComponent
106
+ */
107
+ ariaRequired: boolean;
108
+ /**
109
+ * Whether to show the file size information.
110
+ * @type {boolean}
111
+ * @memberof FileUploadComponent
112
+ */
113
+ showFileSize: boolean;
114
+ OnDrop: EventEmitter<File>;
115
+ fileDrop: ElementRef<HTMLInputElement>;
116
+ protected readonly translationContext = "FILE_UPLOAD.";
117
+ /**
118
+ * @ignore
119
+ */
120
+ onChange: (_value: File | null) => void;
121
+ /**
122
+ * @ignore
123
+ */
124
+ onTouch: () => void;
125
+ get fileSizeInMB(): string | null;
126
+ isMissedMinSize: boolean;
127
+ progress: boolean;
128
+ success: boolean;
129
+ browse: boolean;
130
+ isCanceled: boolean;
131
+ colorUploadSuccess: Color;
132
+ constructor(defaultAppTheme: ApplicationTheme$1);
133
+ ngOnInit(): void;
134
+ onFileDropped(files: FileList): void;
135
+ onChangeUpload(event: Event): void;
136
+ emitFile(files: FileList): void;
137
+ showProgress(): boolean;
138
+ showSuccess(): boolean;
139
+ showBrowse(): boolean;
140
+ ngOnChanges(changes: SimpleChanges): void;
141
+ private readonly cdr;
142
+ writeValue(value?: File): void;
143
+ registerOnChange(fn: (value: File | null) => void): void;
144
+ registerOnTouched(fn: () => void): void;
145
+ setDisabledState(isDisabled: boolean): void;
146
+ private getCompanyColor;
147
+ private fileSizeToMB;
148
+ onKeydown(ev: KeyboardEvent): void;
149
+ static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadComponent, [{
150
+ optional: true;
151
+ }]>;
152
+ static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadComponent, "ui-file-upload", never, {
153
+ "maxFileSizeMB": {
154
+ "alias": "maxFileSizeMB";
155
+ "required": false;
156
+ };
157
+ "minFileSizeMB": {
158
+ "alias": "minFileSizeMB";
159
+ "required": false;
160
+ };
161
+ "supportedFileTypes": {
162
+ "alias": "supportedFileTypes";
163
+ "required": false;
164
+ };
165
+ "uploadProgress": {
166
+ "alias": "uploadProgress";
167
+ "required": false;
168
+ };
169
+ "showUploadProgress": {
170
+ "alias": "showUploadProgress";
171
+ "required": false;
172
+ };
173
+ "fileProcessingMessage": {
174
+ "alias": "fileProcessingMessage";
175
+ "required": false;
176
+ };
177
+ "errors": {
178
+ "alias": "errors";
179
+ "required": false;
180
+ };
181
+ "disabled": {
182
+ "alias": "disabled";
183
+ "required": false;
184
+ };
185
+ "testId": {
186
+ "alias": "testId";
187
+ "required": false;
188
+ };
189
+ "file": {
190
+ "alias": "file";
191
+ "required": false;
192
+ };
193
+ "companyColor": {
194
+ "alias": "companyColor";
195
+ "required": false;
196
+ };
197
+ "applicationTheme": {
198
+ "alias": "applicationTheme";
199
+ "required": false;
200
+ };
201
+ "ariaLabel": {
202
+ "alias": "ariaLabel";
203
+ "required": false;
204
+ };
205
+ "ariaRequired": {
206
+ "alias": "ariaRequired";
207
+ "required": false;
208
+ };
209
+ "showFileSize": {
210
+ "alias": "showFileSize";
211
+ "required": false;
212
+ };
213
+ }, {
214
+ "OnDrop": "OnDrop";
215
+ }, never, never, true, never>;
153
216
  }
154
-
155
217
  declare class DragDropDirective {
156
- constructor();
157
- file: boolean;
158
- fileDropped: EventEmitter<FileList>;
159
- onDragOver(event: Event): void;
160
- onDragLeave(event: Event): void;
161
- ondrop(event: DragEvent): void;
162
- static ɵfac: i0.ɵɵFactoryDeclaration<DragDropDirective, never>;
163
- static ɵdir: i0.ɵɵDirectiveDeclaration<DragDropDirective, "[uiDragDrop]", never, {}, { "fileDropped": "fileDropped"; }, never, never, true, never>;
218
+ constructor();
219
+ file: boolean;
220
+ fileDropped: EventEmitter<FileList>;
221
+ onDragOver(event: Event): void;
222
+ onDragLeave(event: Event): void;
223
+ ondrop(event: DragEvent): void;
224
+ static ɵfac: i0.ɵɵFactoryDeclaration<DragDropDirective, never>;
225
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DragDropDirective, "[uiDragDrop]", never, {}, {
226
+ "fileDropped": "fileDropped";
227
+ }, never, never, true, never>;
164
228
  }
165
-
166
- declare class FileUploadComponentModule {
167
- static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadComponentModule, never>;
168
- static ɵmod: i0.ɵɵNgModuleDeclaration<FileUploadComponentModule, never, [typeof i1.CommonModule, typeof i2.MatFormFieldModule, typeof i3.MatInputModule, typeof i4.IconComponentModule, typeof i5.ProgressBarComponentModule, typeof i6.UiTranslatePipe, typeof FileUploadComponent, typeof DragDropDirective], [typeof FileUploadComponent]>;
169
- static ɵinj: i0.ɵɵInjectorDeclaration<FileUploadComponentModule>;
229
+ export declare class FileUploadComponentModule {
230
+ static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadComponentModule, never>;
231
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FileUploadComponentModule, never, [typeof i1.CommonModule, typeof i2.MatFormFieldModule, typeof i3.MatInputModule, typeof i4.IconComponentModule, typeof i5.ProgressBarComponentModule, typeof i6.UiTranslatePipe, typeof FileUploadComponent, typeof DragDropDirective], [typeof FileUploadComponent]>;
232
+ static ɵinj: i0.ɵɵInjectorDeclaration<FileUploadComponentModule>;
170
233
  }
171
-
172
- export { FileUploadComponent, FileUploadComponentModule };
234
+ export { ApplicationTheme };