@testgorilla/tgo-ui 11.22.3 → 12.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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,340 +1,453 @@
1
- import * as i0 from '@angular/core';
2
- import { OnInit, OnChanges, AfterViewInit, EventEmitter, SimpleChanges, ChangeDetectorRef } from '@angular/core';
3
- import * as i2 from '@angular/material/dialog';
4
- import { MatDialogRef, MatDialog, MatDialogConfig } from '@angular/material/dialog';
5
- import * as i3 from '@testgorilla/tgo-ui/components/button';
6
- import { ButtonColor, ButtonIconPosition, ButtonComponent } from '@testgorilla/tgo-ui/components/button';
7
- import * as i4 from '@testgorilla/tgo-ui/components/core';
8
- import { ApplicationTheme, Language } from '@testgorilla/tgo-ui/components/core';
9
- export { ApplicationTheme } from '@testgorilla/tgo-ui/components/core';
10
- import { IconName } from '@testgorilla/tgo-ui/components/icon';
11
- import * as i1 from '@angular/common';
12
- import { ComponentType } from '@angular/cdk/portal';
13
- import * as i4$1 from '@testgorilla/tgo-ui/components/toggle';
14
-
15
- declare class DialogComponent implements OnInit, OnChanges, AfterViewInit {
16
- private readonly defaultAppTheme;
17
- dialogRef: MatDialogRef<DialogComponent>;
18
- private readonly data;
19
- /**
20
- * Dialog title
21
- *
22
- * @memberof DialogComponent
23
- */
24
- title?: string | undefined;
25
- /**
26
- * Show close button
27
- *
28
- * @memberof DialogComponent
29
- */
30
- showCloseButton: boolean;
31
- /**
32
- * Fuction called before dialgo is closed
33
- *
34
- * @memberof DialogComponent
35
- */
36
- canCloseFn: () => boolean;
37
- /**
38
- * Secondary button label
39
- *
40
- * @memberof DialogComponent
41
- */
42
- secondaryButtonLabel?: string | undefined;
43
- /**
44
- * Footer dialog message
45
- *
46
- * @memberof DialogComponent
47
- */
48
- footerMessage?: string | undefined;
49
- /**
50
- * Primary button label
51
- *
52
- * @memberof DialogComponent
53
- */
54
- primaryButtonLabel?: string | undefined;
55
- /**
56
- * Primary button icon name
57
- *
58
- * @memberof DialogComponent
59
- */
60
- primaryButtonIconName?: IconName | '';
61
- /**
62
- * Secondary button type
63
- *
64
- * @memberof DialogComponent
65
- */
66
- secondaryButtonType: ButtonColor;
67
- /**
68
- * Primary button type
69
- *
70
- * @memberof DialogComponent
71
- */
72
- primaryButtonType: ButtonColor;
73
- /**
74
- * Primary button test id
75
- *
76
- * @memberof DialogComponent
77
- */
78
- primaryButtonDataTestId: string | null;
79
- testId: string | null;
80
- closeButtonTestId: string | null;
81
- closeButtonAriaLabel: string;
82
- /**
83
- * Secondary button test id
84
- *
85
- * @memberof DialogComponent
86
- */
87
- secondaryButtonDataTestId: string | null;
88
- /**
89
- * Color of the dialog.
90
- * Defaults to Test Gorilla primary color.
91
- *
92
- * @type {string}
93
- * @memberof DialogComponent
94
- */
95
- companyColor: string | null;
96
- /**
97
- *
98
- * Defines the application theme
99
- *
100
- * @type {ApplicationTheme}
101
- * @memberof DialogComponent
102
- */
103
- applicationTheme: ApplicationTheme;
104
- /**
105
- *
106
- * Disable primary button
107
- *
108
- * @type {boolean}
109
- * @memberof DialogComponent
110
- */
111
- disablePrimaryButton: boolean;
112
- /**
113
- *
114
- * Show a spinner in place of the primary button label while the action runs.
115
- * Also disables the button, so a second click cannot fire
116
- * `primaryButtonClickEvent` while the first is still in flight.
117
- *
118
- * @memberof DialogComponent
119
- */
120
- primaryButtonLoading: i0.InputSignalWithTransform<boolean, unknown>;
121
- /**
122
- *
123
- * Tooltip shown when hovering the primary button. Bound to a wrapper around the
124
- * button so it also shows while the button is disabled (a disabled button
125
- * receives no pointer events), e.g. to explain why the action is unavailable.
126
- *
127
- * @type {string}
128
- * @memberof DialogComponent
129
- */
130
- primaryButtonTooltip: string;
131
- /**
132
- *
133
- * Disable close button
134
- *
135
- * @type {boolean}
136
- * @memberof DialogComponent
137
- */
138
- disableClose: boolean;
139
- /**
140
- *
141
- * Disable button when canCloseFn is used
142
- *
143
- * @type {boolean}
144
- * @memberof DialogComponent
145
- */
146
- shouldDisableButtons: boolean;
147
- /**
148
- * A string representing the ARIA requirement for accessibility.
149
- * This attribute is used to indicate whether an input field is required for form submission.
150
- * @type {string}
151
- * @memberof DialogComponent
152
- */
153
- ariaLabelledby: string;
154
- /**
155
- * A string representing the ARIA requirement for accessibility.
156
- * This attribute is used to indicate whether an input field is required for form submission.
157
- * @type {string}
158
- * @memberof DialogComponent
159
- */
160
- ariaDescribedby: string;
161
- /**
162
- * Defines how modal was opened (with keyboard or not)
163
- *
164
- * @type {boolean}
165
- * @memberof DialogComponent
166
- */
167
- keyboardOpen: boolean;
168
- primaryButtonIconPosition: i0.InputSignal<ButtonIconPosition>;
169
- closeEvent: EventEmitter<Event>;
170
- secondaryButtonClickEvent: EventEmitter<Event>;
171
- primaryButtonClickEvent: EventEmitter<Event>;
172
- closeButton: ButtonComponent;
173
- modalClosed: boolean;
174
- onEsc(): void;
175
- constructor(defaultAppTheme: ApplicationTheme, dialogRef: MatDialogRef<DialogComponent>, data: {
176
- applicationTheme: ApplicationTheme;
177
- });
178
- disableButtons: boolean;
179
- protected readonly translationContext = "DIALOG.";
180
- customHeader?: unknown;
181
- get hasCustomHeader(): boolean;
182
- ngOnInit(): void;
183
- ngOnChanges(changes: SimpleChanges): void;
184
- ngAfterViewInit(): void;
185
- areButtonsDisabled(): void;
186
- dismiss(): void;
187
- onClose(event: Event): void;
188
- onSecondaryButtonClick(event: Event): void;
189
- onPrimaryButtonClick(event: Event): void;
190
- static ɵfac: i0.ɵɵFactoryDeclaration<DialogComponent, [{ optional: true; }, null, null]>;
191
- static ɵcmp: i0.ɵɵComponentDeclaration<DialogComponent, "ui-dialog", never, { "title": { "alias": "title"; "required": false; }; "showCloseButton": { "alias": "showCloseButton"; "required": false; }; "canCloseFn": { "alias": "canCloseFn"; "required": false; }; "secondaryButtonLabel": { "alias": "secondaryButtonLabel"; "required": false; }; "footerMessage": { "alias": "footerMessage"; "required": false; }; "primaryButtonLabel": { "alias": "primaryButtonLabel"; "required": false; }; "primaryButtonIconName": { "alias": "primaryButtonIconName"; "required": false; }; "secondaryButtonType": { "alias": "secondaryButtonType"; "required": false; }; "primaryButtonType": { "alias": "primaryButtonType"; "required": false; }; "primaryButtonDataTestId": { "alias": "primaryButtonDataTestId"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "closeButtonTestId": { "alias": "closeButtonTestId"; "required": false; }; "closeButtonAriaLabel": { "alias": "closeButtonAriaLabel"; "required": false; }; "secondaryButtonDataTestId": { "alias": "secondaryButtonDataTestId"; "required": false; }; "companyColor": { "alias": "companyColor"; "required": false; }; "applicationTheme": { "alias": "applicationTheme"; "required": false; }; "disablePrimaryButton": { "alias": "disablePrimaryButton"; "required": false; }; "primaryButtonLoading": { "alias": "primaryButtonLoading"; "required": false; "isSignal": true; }; "primaryButtonTooltip": { "alias": "primaryButtonTooltip"; "required": false; }; "disableClose": { "alias": "disableClose"; "required": false; }; "shouldDisableButtons": { "alias": "shouldDisableButtons"; "required": false; }; "ariaLabelledby": { "alias": "ariaLabelledby"; "required": false; }; "ariaDescribedby": { "alias": "ariaDescribedby"; "required": false; }; "keyboardOpen": { "alias": "keyboardOpen"; "required": false; }; "primaryButtonIconPosition": { "alias": "primaryButtonIconPosition"; "required": false; "isSignal": true; }; }, { "closeEvent": "closeEvent"; "secondaryButtonClickEvent": "secondaryButtonClickEvent"; "primaryButtonClickEvent": "primaryButtonClickEvent"; }, ["customHeader"], ["[dialogHeader]", "*", "[dialogFooter]"], true, never>;
1
+ import * as i0 from "@angular/core";
2
+ import { AfterViewInit, ChangeDetectorRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from "@angular/core";
3
+ import * as i2 from "@angular/material/dialog";
4
+ import { MatDialog, MatDialogConfig, MatDialogRef } from "@angular/material/dialog";
5
+ import * as i3 from "@testgorilla/tgo-ui/components/button";
6
+ import { ButtonColor, ButtonComponent, ButtonIconPosition } from "@testgorilla/tgo-ui/components/button";
7
+ import * as i4$1 from "@testgorilla/tgo-ui/components/core";
8
+ import { ApplicationTheme, ApplicationTheme as ApplicationTheme$1, Language } from "@testgorilla/tgo-ui/components/core";
9
+ import { IconName } from "@testgorilla/tgo-ui/components/icon";
10
+ import * as i1 from "@angular/common";
11
+ import { ComponentType } from "@angular/cdk/portal";
12
+ import * as i4 from "@testgorilla/tgo-ui/components/toggle";
13
+ export declare class DialogComponent implements OnInit, OnChanges, AfterViewInit {
14
+ private readonly defaultAppTheme;
15
+ dialogRef: MatDialogRef<DialogComponent>;
16
+ private readonly data;
17
+ /**
18
+ * Dialog title
19
+ *
20
+ * @memberof DialogComponent
21
+ */
22
+ title?: string | undefined;
23
+ /**
24
+ * Show close button
25
+ *
26
+ * @memberof DialogComponent
27
+ */
28
+ showCloseButton: boolean;
29
+ /**
30
+ * Fuction called before dialgo is closed
31
+ *
32
+ * @memberof DialogComponent
33
+ */
34
+ canCloseFn: () => boolean;
35
+ /**
36
+ * Secondary button label
37
+ *
38
+ * @memberof DialogComponent
39
+ */
40
+ secondaryButtonLabel?: string | undefined;
41
+ /**
42
+ * Footer dialog message
43
+ *
44
+ * @memberof DialogComponent
45
+ */
46
+ footerMessage?: string | undefined;
47
+ /**
48
+ * Primary button label
49
+ *
50
+ * @memberof DialogComponent
51
+ */
52
+ primaryButtonLabel?: string | undefined;
53
+ /**
54
+ * Primary button icon name
55
+ *
56
+ * @memberof DialogComponent
57
+ */
58
+ primaryButtonIconName?: IconName | '';
59
+ /**
60
+ * Secondary button type
61
+ *
62
+ * @memberof DialogComponent
63
+ */
64
+ secondaryButtonType: ButtonColor;
65
+ /**
66
+ * Primary button type
67
+ *
68
+ * @memberof DialogComponent
69
+ */
70
+ primaryButtonType: ButtonColor;
71
+ /**
72
+ * Primary button test id
73
+ *
74
+ * @memberof DialogComponent
75
+ */
76
+ primaryButtonDataTestId: string | null;
77
+ testId: string | null;
78
+ closeButtonTestId: string | null;
79
+ closeButtonAriaLabel: string;
80
+ /**
81
+ * Secondary button test id
82
+ *
83
+ * @memberof DialogComponent
84
+ */
85
+ secondaryButtonDataTestId: string | null;
86
+ /**
87
+ * Color of the dialog.
88
+ * Defaults to Test Gorilla primary color.
89
+ *
90
+ * @type {string}
91
+ * @memberof DialogComponent
92
+ */
93
+ companyColor: string | null;
94
+ /**
95
+ *
96
+ * Defines the application theme
97
+ *
98
+ * @type {ApplicationTheme}
99
+ * @memberof DialogComponent
100
+ */
101
+ applicationTheme: ApplicationTheme$1;
102
+ /**
103
+ *
104
+ * Disable primary button
105
+ *
106
+ * @type {boolean}
107
+ * @memberof DialogComponent
108
+ */
109
+ disablePrimaryButton: boolean;
110
+ /**
111
+ *
112
+ * Show a spinner in place of the primary button label while the action runs.
113
+ * Also disables the button, so a second click cannot fire
114
+ * `primaryButtonClickEvent` while the first is still in flight.
115
+ *
116
+ * @memberof DialogComponent
117
+ */
118
+ primaryButtonLoading: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
119
+ /**
120
+ *
121
+ * Tooltip shown when hovering the primary button. Bound to a wrapper around the
122
+ * button so it also shows while the button is disabled (a disabled button
123
+ * receives no pointer events), e.g. to explain why the action is unavailable.
124
+ *
125
+ * @type {string}
126
+ * @memberof DialogComponent
127
+ */
128
+ primaryButtonTooltip: string;
129
+ /**
130
+ *
131
+ * Disable close button
132
+ *
133
+ * @type {boolean}
134
+ * @memberof DialogComponent
135
+ */
136
+ disableClose: boolean;
137
+ /**
138
+ *
139
+ * Disable button when canCloseFn is used
140
+ *
141
+ * @type {boolean}
142
+ * @memberof DialogComponent
143
+ */
144
+ shouldDisableButtons: boolean;
145
+ /**
146
+ * A string representing the ARIA requirement for accessibility.
147
+ * This attribute is used to indicate whether an input field is required for form submission.
148
+ * @type {string}
149
+ * @memberof DialogComponent
150
+ */
151
+ ariaLabelledby: string;
152
+ /**
153
+ * A string representing the ARIA requirement for accessibility.
154
+ * This attribute is used to indicate whether an input field is required for form submission.
155
+ * @type {string}
156
+ * @memberof DialogComponent
157
+ */
158
+ ariaDescribedby: string;
159
+ /**
160
+ * Defines how modal was opened (with keyboard or not)
161
+ *
162
+ * @type {boolean}
163
+ * @memberof DialogComponent
164
+ */
165
+ keyboardOpen: boolean;
166
+ primaryButtonIconPosition: import("@angular/core").InputSignal<ButtonIconPosition>;
167
+ closeEvent: EventEmitter<Event>;
168
+ secondaryButtonClickEvent: EventEmitter<Event>;
169
+ primaryButtonClickEvent: EventEmitter<Event>;
170
+ closeButton: ButtonComponent;
171
+ modalClosed: boolean;
172
+ onEsc(): void;
173
+ constructor(defaultAppTheme: ApplicationTheme$1, dialogRef: MatDialogRef<DialogComponent>, data: {
174
+ applicationTheme: ApplicationTheme$1;
175
+ });
176
+ disableButtons: boolean;
177
+ protected readonly translationContext = "DIALOG.";
178
+ customHeader?: unknown;
179
+ get hasCustomHeader(): boolean;
180
+ ngOnInit(): void;
181
+ ngOnChanges(changes: SimpleChanges): void;
182
+ ngAfterViewInit(): void;
183
+ areButtonsDisabled(): void;
184
+ dismiss(): void;
185
+ onClose(event: Event): void;
186
+ onSecondaryButtonClick(event: Event): void;
187
+ onPrimaryButtonClick(event: Event): void;
188
+ static ɵfac: i0.ɵɵFactoryDeclaration<DialogComponent, [{
189
+ optional: true;
190
+ }, null, null]>;
191
+ static ɵcmp: i0.ɵɵComponentDeclaration<DialogComponent, "ui-dialog", never, {
192
+ "title": {
193
+ "alias": "title";
194
+ "required": false;
195
+ };
196
+ "showCloseButton": {
197
+ "alias": "showCloseButton";
198
+ "required": false;
199
+ };
200
+ "canCloseFn": {
201
+ "alias": "canCloseFn";
202
+ "required": false;
203
+ };
204
+ "secondaryButtonLabel": {
205
+ "alias": "secondaryButtonLabel";
206
+ "required": false;
207
+ };
208
+ "footerMessage": {
209
+ "alias": "footerMessage";
210
+ "required": false;
211
+ };
212
+ "primaryButtonLabel": {
213
+ "alias": "primaryButtonLabel";
214
+ "required": false;
215
+ };
216
+ "primaryButtonIconName": {
217
+ "alias": "primaryButtonIconName";
218
+ "required": false;
219
+ };
220
+ "secondaryButtonType": {
221
+ "alias": "secondaryButtonType";
222
+ "required": false;
223
+ };
224
+ "primaryButtonType": {
225
+ "alias": "primaryButtonType";
226
+ "required": false;
227
+ };
228
+ "primaryButtonDataTestId": {
229
+ "alias": "primaryButtonDataTestId";
230
+ "required": false;
231
+ };
232
+ "testId": {
233
+ "alias": "testId";
234
+ "required": false;
235
+ };
236
+ "closeButtonTestId": {
237
+ "alias": "closeButtonTestId";
238
+ "required": false;
239
+ };
240
+ "closeButtonAriaLabel": {
241
+ "alias": "closeButtonAriaLabel";
242
+ "required": false;
243
+ };
244
+ "secondaryButtonDataTestId": {
245
+ "alias": "secondaryButtonDataTestId";
246
+ "required": false;
247
+ };
248
+ "companyColor": {
249
+ "alias": "companyColor";
250
+ "required": false;
251
+ };
252
+ "applicationTheme": {
253
+ "alias": "applicationTheme";
254
+ "required": false;
255
+ };
256
+ "disablePrimaryButton": {
257
+ "alias": "disablePrimaryButton";
258
+ "required": false;
259
+ };
260
+ "primaryButtonLoading": {
261
+ "alias": "primaryButtonLoading";
262
+ "required": false;
263
+ "isSignal": true;
264
+ };
265
+ "primaryButtonTooltip": {
266
+ "alias": "primaryButtonTooltip";
267
+ "required": false;
268
+ };
269
+ "disableClose": {
270
+ "alias": "disableClose";
271
+ "required": false;
272
+ };
273
+ "shouldDisableButtons": {
274
+ "alias": "shouldDisableButtons";
275
+ "required": false;
276
+ };
277
+ "ariaLabelledby": {
278
+ "alias": "ariaLabelledby";
279
+ "required": false;
280
+ };
281
+ "ariaDescribedby": {
282
+ "alias": "ariaDescribedby";
283
+ "required": false;
284
+ };
285
+ "keyboardOpen": {
286
+ "alias": "keyboardOpen";
287
+ "required": false;
288
+ };
289
+ "primaryButtonIconPosition": {
290
+ "alias": "primaryButtonIconPosition";
291
+ "required": false;
292
+ "isSignal": true;
293
+ };
294
+ }, {
295
+ "closeEvent": "closeEvent";
296
+ "secondaryButtonClickEvent": "secondaryButtonClickEvent";
297
+ "primaryButtonClickEvent": "primaryButtonClickEvent";
298
+ }, ["customHeader"], ["[dialogHeader]", "*", "[dialogFooter]"], true, never>;
192
299
  }
193
-
194
- declare class DialogComponentModule {
195
- static ɵfac: i0.ɵɵFactoryDeclaration<DialogComponentModule, never>;
196
- static ɵmod: i0.ɵɵNgModuleDeclaration<DialogComponentModule, never, [typeof i1.CommonModule, typeof i2.MatDialogModule, typeof i3.ButtonComponentModule, typeof i4.UiTranslatePipe, typeof DialogComponent], [typeof DialogComponent]>;
197
- static ɵinj: i0.ɵɵInjectorDeclaration<DialogComponentModule>;
300
+ export declare class DialogComponentModule {
301
+ static ɵfac: i0.ɵɵFactoryDeclaration<DialogComponentModule, never>;
302
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DialogComponentModule, never, [typeof i1.CommonModule, typeof i2.MatDialogModule, typeof i3.ButtonComponentModule, typeof i4$1.UiTranslatePipe, typeof DialogComponent], [typeof DialogComponent]>;
303
+ static ɵinj: i0.ɵɵInjectorDeclaration<DialogComponentModule>;
198
304
  }
199
-
200
- type DialogSize = 'small' | 'large' | 'x-large';
201
- declare class DialogService {
202
- private readonly matDialog;
203
- private readonly defaultAppTheme;
204
- constructor(matDialog: MatDialog, defaultAppTheme: ApplicationTheme);
205
- open<K = any, R = any, T = any>(dialogComponent: ComponentType<T>, dialogConfig?: DialogConfig<K>): MatDialogRef<T, R>;
206
- static ɵfac: i0.ɵɵFactoryDeclaration<DialogService, [null, { optional: true; }]>;
207
- static ɵprov: i0.ɵɵInjectableDeclaration<DialogService>;
305
+ export type DialogSize = 'small' | 'large' | 'x-large';
306
+ export declare class DialogService {
307
+ private readonly matDialog;
308
+ private readonly defaultAppTheme;
309
+ constructor(matDialog: MatDialog, defaultAppTheme: ApplicationTheme$1);
310
+ open<K = any, R = any, T = any>(dialogComponent: ComponentType<T>, dialogConfig?: DialogConfig<K>): MatDialogRef<T, R>;
311
+ static ɵfac: i0.ɵɵFactoryDeclaration<DialogService, [null, {
312
+ optional: true;
313
+ }]>;
314
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
208
315
  }
209
-
210
- interface DialogConfig<T = any> {
211
- applicationTheme?: ApplicationTheme;
212
- size?: DialogSize;
213
- panelClass?: string;
214
- extraData?: T;
215
- backdropClass?: string;
216
- keyboardOpen?: boolean;
217
- config?: MatDialogConfig;
316
+ export interface DialogConfig<T = any> {
317
+ applicationTheme?: ApplicationTheme$1;
318
+ size?: DialogSize;
319
+ panelClass?: string;
320
+ extraData?: T;
321
+ backdropClass?: string;
322
+ keyboardOpen?: boolean;
323
+ config?: MatDialogConfig;
218
324
  }
219
-
220
- interface ConfirmDialogData {
221
- message?: string;
222
- confirmButtonText?: string;
223
- cancelButtonText?: string;
224
- title?: string;
225
- color?: string;
226
- language?: Language;
227
- messageHtml?: string;
228
- showCloseButton?: boolean;
229
- showSecondaryButton?: boolean;
230
- primaryButtonType?: ButtonColor;
231
- primaryButtonIconPosition?: ButtonIconPosition;
232
- secondaryButtonType?: ButtonColor;
233
- primaryButtonIconName?: IconName;
234
- primaryButtonDataTestId?: string;
235
- secondaryButtonDataTestId?: string;
236
- /**
237
- * Callback function executed when the primary/confirm button is clicked.
238
- *
239
- * This callback is executed immediately before the dialog closes, within the same
240
- * user gesture context. This is crucial for operations that may trigger popup blockers
241
- * in restrictive browsers, such as:
242
- * - Opening new tabs/windows (window.open)
243
- * - Triggering file downloads
244
- * - Navigating to external URLs
245
- * - Accessing clipboard operations
246
- *
247
- * **Important**: Use this instead of subscribing to `afterClosed()` for popup-sensitive
248
- * operations, as `afterClosed()` executes outside the user gesture context and will
249
- * be blocked by popup blockers in most modern browsers.
250
- *
251
- * @example
252
- * ```typescript
253
- * // ✅ Good - executes within user gesture, won't be blocked
254
- * onConfirm: () => window.open('https://example.com', '_blank')
255
- *
256
- * // ❌ Bad - executes outside user gesture, could be blocked
257
- * dialogRef.afterClosed().subscribe(result => {
258
- * if (result) window.open('https://example.com', '_blank');
259
- * });
260
- * ```
261
- */
262
- onConfirm?: () => void;
325
+ export interface ConfirmDialogData {
326
+ message?: string;
327
+ confirmButtonText?: string;
328
+ cancelButtonText?: string;
329
+ title?: string;
330
+ color?: string;
331
+ language?: Language;
332
+ messageHtml?: string;
333
+ showCloseButton?: boolean;
334
+ showSecondaryButton?: boolean;
335
+ primaryButtonType?: ButtonColor;
336
+ primaryButtonIconPosition?: ButtonIconPosition;
337
+ secondaryButtonType?: ButtonColor;
338
+ primaryButtonIconName?: IconName;
339
+ primaryButtonDataTestId?: string;
340
+ secondaryButtonDataTestId?: string;
341
+ /**
342
+ * Callback function executed when the primary/confirm button is clicked.
343
+ *
344
+ * This callback is executed immediately before the dialog closes, within the same
345
+ * user gesture context. This is crucial for operations that may trigger popup blockers
346
+ * in restrictive browsers, such as:
347
+ * - Opening new tabs/windows (window.open)
348
+ * - Triggering file downloads
349
+ * - Navigating to external URLs
350
+ * - Accessing clipboard operations
351
+ *
352
+ * **Important**: Use this instead of subscribing to `afterClosed()` for popup-sensitive
353
+ * operations, as `afterClosed()` executes outside the user gesture context and will
354
+ * be blocked by popup blockers in most modern browsers.
355
+ *
356
+ * @example
357
+ * ```typescript
358
+ * // ✅ Good - executes within user gesture, won't be blocked
359
+ * onConfirm: () => window.open('https://example.com', '_blank')
360
+ *
361
+ * // ❌ Bad - executes outside user gesture, could be blocked
362
+ * dialogRef.afterClosed().subscribe(result => {
363
+ * if (result) window.open('https://example.com', '_blank');
364
+ * });
365
+ * ```
366
+ */
367
+ onConfirm?: () => void;
263
368
  }
264
-
265
- declare class ConfirmDialogComponent {
266
- private readonly defaultAppTheme;
267
- dialogRef: MatDialogRef<ConfirmDialogComponent>;
268
- private readonly data;
269
- confirmMessage: string | undefined;
270
- confirmButtonText: string | undefined;
271
- cancelButtonText: string | undefined;
272
- title: string | undefined;
273
- lang: i4.Language;
274
- confirmMessageHtml: string | undefined;
275
- showCloseButton: boolean;
276
- showSecondaryButton: boolean;
277
- color: string | null;
278
- primaryButtonType: ButtonColor;
279
- secondaryButtonType: ButtonColor;
280
- primaryButtonIconName: IconName | undefined;
281
- primaryButtonDataTestId: string;
282
- secondaryButtonDataTestId: string;
283
- primaryButtonIconPosition: ButtonIconPosition;
284
- /**
285
- *
286
- * Defines the application theme
287
- *
288
- * @type {ApplicationTheme}
289
- * @memberof DialogComponent
290
- */
291
- applicationTheme: ApplicationTheme;
292
- constructor(defaultAppTheme: ApplicationTheme, dialogRef: MatDialogRef<ConfirmDialogComponent>, data: ConfirmDialogData);
293
- onConfirm(): void;
294
- static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmDialogComponent, [{ optional: true; }, null, null]>;
295
- static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmDialogComponent, "ui-confirm-dialog", never, { "applicationTheme": { "alias": "applicationTheme"; "required": false; }; }, {}, never, never, true, never>;
369
+ export declare class ConfirmDialogComponent {
370
+ private readonly defaultAppTheme;
371
+ dialogRef: MatDialogRef<ConfirmDialogComponent>;
372
+ private readonly data;
373
+ confirmMessage: string | undefined;
374
+ confirmButtonText: string | undefined;
375
+ cancelButtonText: string | undefined;
376
+ title: string | undefined;
377
+ lang: import("@testgorilla/tgo-ui/components/core").Language;
378
+ confirmMessageHtml: string | undefined;
379
+ showCloseButton: boolean;
380
+ showSecondaryButton: boolean;
381
+ color: string | null;
382
+ primaryButtonType: ButtonColor;
383
+ secondaryButtonType: ButtonColor;
384
+ primaryButtonIconName: IconName | undefined;
385
+ primaryButtonDataTestId: string;
386
+ secondaryButtonDataTestId: string;
387
+ primaryButtonIconPosition: ButtonIconPosition;
388
+ /**
389
+ *
390
+ * Defines the application theme
391
+ *
392
+ * @type {ApplicationTheme}
393
+ * @memberof DialogComponent
394
+ */
395
+ applicationTheme: ApplicationTheme$1;
396
+ constructor(defaultAppTheme: ApplicationTheme$1, dialogRef: MatDialogRef<ConfirmDialogComponent>, data: ConfirmDialogData);
397
+ onConfirm(): void;
398
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmDialogComponent, [{
399
+ optional: true;
400
+ }, null, null]>;
401
+ static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmDialogComponent, "ui-confirm-dialog", never, {
402
+ "applicationTheme": {
403
+ "alias": "applicationTheme";
404
+ "required": false;
405
+ };
406
+ }, {}, never, never, true, never>;
296
407
  }
297
-
298
- declare class ConfirmDialogComponentModule {
299
- static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmDialogComponentModule, never>;
300
- static ɵmod: i0.ɵɵNgModuleDeclaration<ConfirmDialogComponentModule, never, [typeof i1.CommonModule, typeof i2.MatDialogModule, typeof i3.ButtonComponentModule, typeof DialogComponentModule, typeof i4.UiTranslatePipe, typeof ConfirmDialogComponent], [typeof ConfirmDialogComponent]>;
301
- static ɵinj: i0.ɵɵInjectorDeclaration<ConfirmDialogComponentModule>;
408
+ export declare class ConfirmDialogComponentModule {
409
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmDialogComponentModule, never>;
410
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ConfirmDialogComponentModule, never, [typeof i1.CommonModule, typeof i2.MatDialogModule, typeof i3.ButtonComponentModule, typeof DialogComponentModule, typeof i4$1.UiTranslatePipe, typeof ConfirmDialogComponent], [typeof ConfirmDialogComponent]>;
411
+ static ɵinj: i0.ɵɵInjectorDeclaration<ConfirmDialogComponentModule>;
302
412
  }
303
-
304
413
  interface DialogCustomData {
305
- title?: string;
306
- type?: 'default' | 'custom-header' | 'footer-content' | 'disabled-primary-tooltip';
307
- showCloseButton: boolean;
308
- keyboardOpen: boolean;
309
- footerMessage?: string;
310
- primaryButtonTooltip?: string;
414
+ title?: string;
415
+ type?: 'default' | 'custom-header' | 'footer-content' | 'disabled-primary-tooltip';
416
+ showCloseButton: boolean;
417
+ keyboardOpen: boolean;
418
+ footerMessage?: string;
419
+ primaryButtonTooltip?: string;
311
420
  }
312
- declare class DialogCustomComponent implements OnInit {
313
- private readonly defaultAppTheme;
314
- protected data: DialogCustomData;
315
- private readonly cdr;
316
- canClose: () => boolean;
317
- /**
318
- *
319
- * Defines the application theme
320
- *
321
- * @type {ApplicationTheme}
322
- * @memberof DialogComponent
323
- */
324
- applicationTheme: ApplicationTheme;
325
- constructor(defaultAppTheme: ApplicationTheme, data: DialogCustomData, cdr: ChangeDetectorRef);
326
- ngOnInit(): void;
327
- canCloseFalse(): boolean;
328
- canCloseTrue(): boolean;
329
- static ɵfac: i0.ɵɵFactoryDeclaration<DialogCustomComponent, [{ optional: true; }, null, null]>;
330
- static ɵcmp: i0.ɵɵComponentDeclaration<DialogCustomComponent, "ui-dialog-custom", never, { "applicationTheme": { "alias": "applicationTheme"; "required": false; }; }, {}, never, never, true, never>;
421
+ export declare class DialogCustomComponent implements OnInit {
422
+ private readonly defaultAppTheme;
423
+ protected data: DialogCustomData;
424
+ private readonly cdr;
425
+ canClose: () => boolean;
426
+ /**
427
+ *
428
+ * Defines the application theme
429
+ *
430
+ * @type {ApplicationTheme}
431
+ * @memberof DialogComponent
432
+ */
433
+ applicationTheme: ApplicationTheme$1;
434
+ constructor(defaultAppTheme: ApplicationTheme$1, data: DialogCustomData, cdr: ChangeDetectorRef);
435
+ ngOnInit(): void;
436
+ canCloseFalse(): boolean;
437
+ canCloseTrue(): boolean;
438
+ static ɵfac: i0.ɵɵFactoryDeclaration<DialogCustomComponent, [{
439
+ optional: true;
440
+ }, null, null]>;
441
+ static ɵcmp: i0.ɵɵComponentDeclaration<DialogCustomComponent, "ui-dialog-custom", never, {
442
+ "applicationTheme": {
443
+ "alias": "applicationTheme";
444
+ "required": false;
445
+ };
446
+ }, {}, never, never, true, never>;
331
447
  }
332
-
333
- declare class DialogCustomComponentModule {
334
- static ɵfac: i0.ɵɵFactoryDeclaration<DialogCustomComponentModule, never>;
335
- static ɵmod: i0.ɵɵNgModuleDeclaration<DialogCustomComponentModule, never, [typeof i1.CommonModule, typeof DialogComponentModule, typeof i3.ButtonComponentModule, typeof i4$1.ToggleComponentModule, typeof DialogCustomComponent], [typeof DialogCustomComponent]>;
336
- static ɵinj: i0.ɵɵInjectorDeclaration<DialogCustomComponentModule>;
448
+ export declare class DialogCustomComponentModule {
449
+ static ɵfac: i0.ɵɵFactoryDeclaration<DialogCustomComponentModule, never>;
450
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DialogCustomComponentModule, never, [typeof i1.CommonModule, typeof DialogComponentModule, typeof i3.ButtonComponentModule, typeof i4.ToggleComponentModule, typeof DialogCustomComponent], [typeof DialogCustomComponent]>;
451
+ static ɵinj: i0.ɵɵInjectorDeclaration<DialogCustomComponentModule>;
337
452
  }
338
-
339
- export { ConfirmDialogComponent, ConfirmDialogComponentModule, DialogComponent, DialogComponentModule, DialogCustomComponent, DialogCustomComponentModule, DialogService };
340
- export type { ConfirmDialogData, DialogConfig, DialogSize };
453
+ export { ApplicationTheme };