@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,370 +1,760 @@
1
- import { NgClass, CommonModule } from '@angular/common';
2
- import * as i0 from '@angular/core';
3
- import { input, computed, output, signal, HostListener, ViewChild, HostBinding, Optional, Self, ChangeDetectionStrategy, ViewEncapsulation, Component, NgModule } from '@angular/core';
4
- import { ButtonComponent, ButtonComponentModule } from '@testgorilla/tgo-ui/components/button';
5
- import { FieldComponent, FieldComponentModule } from '@testgorilla/tgo-ui/components/field';
6
- import * as i1 from '@angular/forms';
7
- import { FormsModule, ReactiveFormsModule } from '@angular/forms';
8
- import { MatInputModule } from '@angular/material/input';
9
- import { IconComponentModule } from '@testgorilla/tgo-ui/components/icon';
10
-
11
- /**
12
- * A global counter used to generate unique inline field IDs.
13
- */
1
+ import { CommonModule, NgClass } from "@angular/common";
2
+ import * as i0 from "@angular/core";
3
+ import { ChangeDetectionStrategy, Component, HostBinding, HostListener, NgModule, Optional, Self, ViewChild, ViewEncapsulation, computed, input, output, signal } from "@angular/core";
4
+ import { ButtonComponent, ButtonComponentModule } from "@testgorilla/tgo-ui/components/button";
5
+ import { FieldComponent, FieldComponentModule } from "@testgorilla/tgo-ui/components/field";
6
+ import * as i1 from "@angular/forms";
7
+ import { FormsModule, ReactiveFormsModule } from "@angular/forms";
8
+ import { MatInputModule } from "@angular/material/input";
9
+ import { IconComponentModule } from "@testgorilla/tgo-ui/components/icon";
14
10
  let inlineFieldID = 0;
15
- class InlineFieldComponent {
16
- constructor(cdr, destroyRef, elementRef, ngControl) {
17
- this.cdr = cdr;
18
- this.destroyRef = destroyRef;
19
- this.elementRef = elementRef;
20
- this.ngControl = ngControl;
21
- this.class = 'ui-inline-field';
22
- /**
23
- * Component ID for accessibility
24
- */
25
- this.id = input(`inline-field-${inlineFieldID++}`, ...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
26
- /**
27
- * Field label
28
- */
29
- this.label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
30
- /**
31
- * Field placeholder
32
- */
33
- this.placeholder = input('', ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
34
- /**
35
- * Current value
36
- */
37
- this.value = input('', ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
38
- /**
39
- * Whether the field is required
40
- */
41
- this.required = input(false, ...(ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []));
42
- /**
43
- * Whether the field is disabled
44
- */
45
- this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
46
- /**
47
- * Application theme
48
- */
49
- this.applicationTheme = input('light', ...(ngDevMode ? [{ debugName: "applicationTheme" }] : /* istanbul ignore next */ []));
50
- /**
51
- * Field type
52
- */
53
- this.fieldType = input('text', ...(ngDevMode ? [{ debugName: "fieldType" }] : /* istanbul ignore next */ []));
54
- /**
55
- * Field type
56
- */
57
- this.maxRows = input(0, ...(ngDevMode ? [{ debugName: "maxRows" }] : /* istanbul ignore next */ []));
58
- /**
59
- * Error messages
60
- */
61
- this.errors = input([], ...(ngDevMode ? [{ debugName: "errors" }] : /* istanbul ignore next */ []));
62
- /**
63
- * Whether to show errors
64
- */
65
- this.showErrors = input(true, ...(ngDevMode ? [{ debugName: "showErrors" }] : /* istanbul ignore next */ []));
66
- /**
67
- * Button configuration
68
- */
69
- this.buttonConfig = input({
70
- saveLabel: 'Save',
71
- cancelLabel: 'Cancel',
72
- saveIcon: 'Check-filled',
73
- cancelIcon: 'Close-filled',
74
- }, ...(ngDevMode ? [{ debugName: "buttonConfig" }] : /* istanbul ignore next */ []));
75
- /**
76
- * Validation configuration
77
- */
78
- this.validation = input({}, ...(ngDevMode ? [{ debugName: "validation" }] : /* istanbul ignore next */ []));
79
- /**
80
- * ARIA label
81
- */
82
- this.ariaLabel = input('', ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
83
- this.testId = input(null, ...(ngDevMode ? [{ debugName: "testId" }] : /* istanbul ignore next */ []));
84
- this.saveButtonTestId = computed(() => (this.testId() ? `${this.testId()}-save` : null), ...(ngDevMode ? [{ debugName: "saveButtonTestId" }] : /* istanbul ignore next */ []));
85
- this.cancelButtonTestId = computed(() => (this.testId() ? `${this.testId()}-cancel` : null), ...(ngDevMode ? [{ debugName: "cancelButtonTestId" }] : /* istanbul ignore next */ []));
86
- /**
87
- * Full width
88
- */
89
- this.fullWidth = input(false, ...(ngDevMode ? [{ debugName: "fullWidth" }] : /* istanbul ignore next */ []));
90
- /**
91
- * Emitted when save button is clicked
92
- */
93
- this.save = output();
94
- /**
95
- * Emitted when cancel button is clicked
96
- */
97
- // eslint-disable-next-line @angular-eslint/no-output-native -- output shadows a native event; rename is breaking, deferred to the breaking-change MAJOR (see plan)
98
- this.cancel = output();
99
- /**
100
- * Emitted when value changes
101
- */
102
- this.valueChange = output();
103
- /**
104
- * Emitted when editing mode changes
105
- */
106
- this.editingModeChange = output();
107
- /**
108
- * Emitted on focus
109
- */
110
- this.focusEvent = output();
111
- /**
112
- * Emitted on blur
113
- */
114
- this.blurEvent = output();
115
- this._isEditing = signal(false, ...(ngDevMode ? [{ debugName: "_isEditing" }] : /* istanbul ignore next */ []));
116
- this._originalValue = signal('', ...(ngDevMode ? [{ debugName: "_originalValue" }] : /* istanbul ignore next */ []));
117
- this._currentValue = signal('', ...(ngDevMode ? [{ debugName: "_currentValue" }] : /* istanbul ignore next */ []));
118
- this._state = signal('default', ...(ngDevMode ? [{ debugName: "_state" }] : /* istanbul ignore next */ []));
119
- this.isEditing = computed(() => this._isEditing(), ...(ngDevMode ? [{ debugName: "isEditing" }] : /* istanbul ignore next */ []));
120
- this.currentValue = computed(() => this._currentValue(), ...(ngDevMode ? [{ debugName: "currentValue" }] : /* istanbul ignore next */ []));
121
- this.state = computed(() => this._state(), ...(ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []));
122
- this.saveButtonConfig = computed(() => ({
123
- // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing -- intentional falsy fallback: an empty-string label must also fall back to the default (pre-rollout behavior)
124
- label: this.buttonConfig().saveLabel || 'Save',
125
- iconName: this.buttonConfig().saveIcon ?? 'Check-filled',
126
- variant: 'secondary-inverted',
127
- size: 'small',
128
- disabled: this.disabled(),
129
- }), ...(ngDevMode ? [{ debugName: "saveButtonConfig" }] : /* istanbul ignore next */ []));
130
- this.cancelButtonConfig = computed(() => ({
131
- // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing -- intentional falsy fallback: an empty-string label must also fall back to the default (pre-rollout behavior)
132
- label: this.buttonConfig().cancelLabel || 'Cancel',
133
- iconName: this.buttonConfig().cancelIcon ?? 'Close-filled',
134
- variant: 'secondary-inverted',
135
- size: 'small',
136
- disabled: this.disabled(),
137
- }), ...(ngDevMode ? [{ debugName: "cancelButtonConfig" }] : /* istanbul ignore next */ []));
138
- this.onChange = (_val) => { };
139
- this.onTouched = () => { };
140
- if (this.ngControl !== null) {
141
- this.ngControl.valueAccessor = this;
142
- }
143
- }
144
- ngOnInit() {
145
- this._currentValue.set(this.value());
146
- this._originalValue.set(this.value());
147
- this.updateState();
148
- }
149
- writeValue(value) {
150
- const newValue = value || '';
151
- this._currentValue.set(newValue);
152
- if (!this.isEditing()) {
153
- this._originalValue.set(newValue);
154
- }
155
- this.cdr.markForCheck();
156
- }
157
- registerOnChange(fn) {
158
- this.onChange = fn;
159
- }
160
- registerOnTouched(fn) {
161
- this.onTouched = fn;
162
- }
163
- setDisabledState(_isDisabled) {
164
- this.updateState();
165
- this.cdr.markForCheck();
166
- }
167
- onComponentFocusOut(event) {
168
- const relatedTarget = event.relatedTarget;
169
- const isLeavingComponent = !relatedTarget || !this.elementRef.nativeElement.contains(relatedTarget);
170
- if (isLeavingComponent && this.isEditing()) {
171
- this._currentValue.set(this._originalValue());
172
- this.exitEditMode();
173
- this.onChange(this._originalValue());
174
- this.cancel.emit();
175
- }
176
- }
177
- onEscapePressed(event) {
178
- if (this.isEditing()) {
179
- event.preventDefault();
180
- this.cancelEdit();
181
- }
182
- }
183
- onEnterPressed(event) {
184
- if (this.isEditing() && event instanceof KeyboardEvent && !event.shiftKey) {
185
- event.preventDefault();
186
- this.saveEdit();
187
- }
188
- }
189
- onTabPressed() { }
190
- onInputFocus() {
191
- if (!this.disabled() && !this.isEditing()) {
192
- this.enterEditMode();
193
- }
194
- this._state.set('focused');
195
- this.focusEvent.emit();
196
- this.onTouched();
197
- }
198
- onInputBlur() {
199
- this.blurEvent.emit();
200
- }
201
- onInputChange(event) {
202
- const inputElement = event.target;
203
- const newValue = inputElement.value;
204
- this._currentValue.set(newValue);
205
- this.valueChange.emit(newValue);
206
- }
207
- focus() {
208
- if (this.fieldComponent) {
209
- this.fieldComponent.focus();
210
- this.fieldComponent.field?.nativeElement?.select();
211
- }
212
- }
213
- enterEditMode() {
214
- if (this.disabled() || this.isEditing()) {
215
- return;
216
- }
217
- this._originalValue.set(this._currentValue());
218
- this._isEditing.set(true);
219
- this._state.set('editing');
220
- this.editingModeChange.emit(true);
221
- this.cdr.markForCheck();
222
- }
223
- saveEdit() {
224
- if (!this.isEditing()) {
225
- return;
226
- }
227
- const newValue = this.currentValue();
228
- const hasValidationError = this.hasValidationError(newValue);
229
- if (hasValidationError) {
230
- this._state.set('error');
231
- this.cdr.markForCheck();
232
- return;
233
- }
234
- const changeEvent = {
235
- value: newValue,
236
- saved: true,
237
- previousValue: this._originalValue(),
238
- };
239
- this._originalValue.set(newValue);
240
- this.exitEditMode();
241
- this.onChange(newValue);
242
- this.save.emit(changeEvent);
243
- }
244
- cancelEdit() {
245
- if (!this.isEditing()) {
246
- return;
247
- }
248
- this._currentValue.set(this._originalValue());
249
- this.exitEditMode();
250
- this.cancel.emit();
251
- }
252
- exitEditMode() {
253
- this._isEditing.set(false);
254
- this.updateState();
255
- this.editingModeChange.emit(false);
256
- this.cdr.markForCheck();
257
- }
258
- updateState() {
259
- if (this.disabled()) {
260
- this._state.set('disabled');
261
- }
262
- else if (this.errors().length > 0) {
263
- this._state.set('error');
264
- }
265
- else if (this.isEditing()) {
266
- this._state.set('editing');
267
- }
268
- else {
269
- this._state.set('default');
270
- }
271
- }
272
- hasValidationError(value) {
273
- const config = this.validation();
274
- return (this.hasRequiredError(value, config) ||
275
- this.hasMinLengthError(value, config) ||
276
- this.hasMaxLengthError(value, config) ||
277
- this.hasPatternError(value, config) ||
278
- this.hasCustomValidationError(value, config));
279
- }
280
- hasRequiredError(value, config) {
281
- return config.required ? !value || value.trim().length === 0 : false;
282
- }
283
- hasMinLengthError(value, config) {
284
- return config.minLength ? value.length < config.minLength : false;
285
- }
286
- hasMaxLengthError(value, config) {
287
- return config.maxLength ? value.length > config.maxLength : false;
288
- }
289
- hasPatternError(value, config) {
290
- return config.pattern ? !config.pattern.test(value) : false;
291
- }
292
- hasCustomValidationError(value, config) {
293
- return config.customValidator ? config.customValidator(value) : false;
294
- }
295
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: InlineFieldComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.DestroyRef }, { token: i0.ElementRef }, { token: i1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component }); }
296
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: InlineFieldComponent, isStandalone: true, selector: "ui-inline-field", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, applicationTheme: { classPropertyName: "applicationTheme", publicName: "applicationTheme", isSignal: true, isRequired: false, transformFunction: null }, fieldType: { classPropertyName: "fieldType", publicName: "fieldType", isSignal: true, isRequired: false, transformFunction: null }, maxRows: { classPropertyName: "maxRows", publicName: "maxRows", isSignal: true, isRequired: false, transformFunction: null }, errors: { classPropertyName: "errors", publicName: "errors", isSignal: true, isRequired: false, transformFunction: null }, showErrors: { classPropertyName: "showErrors", publicName: "showErrors", isSignal: true, isRequired: false, transformFunction: null }, buttonConfig: { classPropertyName: "buttonConfig", publicName: "buttonConfig", isSignal: true, isRequired: false, transformFunction: null }, validation: { classPropertyName: "validation", publicName: "validation", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, testId: { classPropertyName: "testId", publicName: "testId", isSignal: true, isRequired: false, transformFunction: null }, fullWidth: { classPropertyName: "fullWidth", publicName: "fullWidth", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { save: "save", cancel: "cancel", valueChange: "valueChange", editingModeChange: "editingModeChange", focusEvent: "focusEvent", blurEvent: "blurEvent" }, host: { listeners: { "focusout": "onComponentFocusOut($event)", "keydown.escape": "onEscapePressed($event)", "keydown.enter": "onEnterPressed($event)", "keydown.tab": "onTabPressed()" }, properties: { "attr.theme": "applicationTheme()", "attr.state": "state()", "attr.editing": "isEditing()", "class.full-width": "fullWidth()", "class": "this.class" } }, viewQueries: [{ propertyName: "fieldComponent", first: true, predicate: ["fieldElement"], descendants: true }], ngImport: i0, template: "<div class=\"inline-field-container\">\n <div class=\"field-wrapper\" [ngClass]=\"{ 'is-editing': isEditing() }\">\n <ui-field\n [id]=\"id() + '-input'\"\n [label]=\"label()\"\n [placeholder]=\"placeholder()\"\n [value]=\"currentValue()\"\n [required]=\"required()\"\n [disabled]=\"disabled()\"\n [errors]=\"errors()\"\n [showBottomContent]=\"showErrors()\"\n [ariaLabel]=\"ariaLabel()\"\n [applicationTheme]=\"applicationTheme()\"\n [fullWidth]=\"true\"\n [isAutocompleteOff]=\"true\"\n [type]=\"fieldType()\"\n [maxRows]=\"maxRows()\"\n (input)=\"onInputChange($event)\"\n (fieldBlur)=\"onInputBlur()\"\n (focusin)=\"onInputFocus()\"\n #fieldElement\n data-testid=\"inline-field\"\n [testId]=\"testId()\"\n ></ui-field>\n\n @if (isEditing()) {\n <div class=\"action-buttons\">\n <ui-button\n [label]=\"saveButtonConfig().label\"\n [iconName]=\"saveButtonConfig().iconName\"\n [variant]=\"saveButtonConfig().variant\"\n [size]=\"saveButtonConfig().size\"\n [disabled]=\"saveButtonConfig().disabled\"\n [applicationTheme]=\"applicationTheme()\"\n [iconPosition]=\"'left'\"\n (buttonClickEvent)=\"saveEdit()\"\n [attr.aria-label]=\"'Save ' + (label() || 'field')\"\n [testId]=\"saveButtonTestId()\"\n class=\"save-button\"\n ></ui-button>\n <ui-button\n [label]=\"cancelButtonConfig().label\"\n [iconName]=\"cancelButtonConfig().iconName\"\n [variant]=\"cancelButtonConfig().variant\"\n [size]=\"cancelButtonConfig().size\"\n [disabled]=\"cancelButtonConfig().disabled\"\n [applicationTheme]=\"applicationTheme()\"\n [iconPosition]=\"'left'\"\n (buttonClickEvent)=\"cancelEdit()\"\n [attr.aria-label]=\"'Cancel editing ' + (label() || 'field')\"\n [testId]=\"cancelButtonTestId()\"\n class=\"cancel-button\"\n ></ui-button>\n </div>\n }\n </div>\n</div>\n", styles: [".bg-teal-60b{background:#1c443c}.bg-teal-30b{background:#31766a}.bg-teal-default{background:#46a997}.bg-teal-30w{background:#7ec3b6}.bg-teal-60w{background:#b5ddd5}.bg-teal-secondary{background:#cbd6cb}.bg-teal-90w{background:#ecf6f5}.bg-petrol-60b{background:#102930}.bg-petrol-30b{background:#1b4754}.bg-petrol-default{background:#276678}.bg-petrol-30w{background:#6894a0}.bg-petrol-60w{background:#a9c2c9}.bg-petrol-secondary{background:#c8d7de}.bg-petrol-90w{background:#e9f0f1}.bg-error-60b{background:#513131}.bg-error-30b{background:#8e5655}.bg-error-60w{background:#e3c3c6}.bg-error-secondary{background:#f0dad9}.bg-error-default{background:#cb7b7a}.bg-warning-secondary{background:#f0d6bb}.bg-warning-default{background:#cca45f}.bg-black{background:#000}.bg-dark{background:#888}.bg-medium{background:#e0e0e0}.bg-grey{background:#ededed}.bg-light{background:#f6f6f6}.bg-white{background:#fff}.bg-box-shadow{background:#00000014}.bg-navigation-subtitle{background:#528593}.bgc-teal-60b{background-color:#1c443c}.bgc-teal-30b{background-color:#31766a}.bgc-teal-default{background-color:#46a997}.bgc-teal-30w{background-color:#7ec3b6}.bgc-teal-60w{background-color:#b5ddd5}.bgc-teal-secondary{background-color:#cbd6cb}.bgc-teal-90w{background-color:#ecf6f5}.bgc-petrol-60b{background-color:#102930}.bgc-petrol-30b{background-color:#1b4754}.bgc-petrol-default{background-color:#276678}.bgc-petrol-30w{background-color:#6894a0}.bgc-petrol-60w{background-color:#a9c2c9}.bgc-petrol-secondary{background-color:#c8d7de}.bgc-petrol-90w{background-color:#e9f0f1}.bgc-error-60b{background-color:#513131}.bgc-error-30b{background-color:#8e5655}.bgc-error-60w{background-color:#e3c3c6}.bgc-error-secondary{background-color:#f0dad9}.bgc-error-default{background-color:#cb7b7a}.bgc-warning-secondary{background-color:#f0d6bb}.bgc-warning-default{background-color:#cca45f}.bgc-black{background-color:#000}.bgc-dark{background-color:#888}.bgc-medium{background-color:#e0e0e0}.bgc-grey{background-color:#ededed}.bgc-light{background-color:#f6f6f6}.bgc-white{background-color:#fff}.bgc-box-shadow{background-color:#00000014}.bgc-navigation-subtitle{background-color:#528593}.ui-inline-field{display:block;position:relative;width:100%;max-width:320px}.ui-inline-field.full-width{max-width:100%}.ui-inline-field .inline-field-container,.ui-inline-field .field-wrapper{position:relative;width:100%}.ui-inline-field .field-wrapper ::ng-deep ui-field .mat-mdc-form-field-subscript-wrapper{display:none!important}.ui-inline-field .field-wrapper .action-buttons{position:absolute;top:calc(100% + 4px);right:0;display:flex;gap:8px;z-index:10}.ui-inline-field .field-wrapper:hover .action-buttons.show-on-hover{opacity:1}.ui-inline-field .error-messages{margin-top:4px}.ui-inline-field .error-messages .error-message{display:flex;align-items:center;gap:4px;color:#e02800;font-size:12px;line-height:16px}.ui-inline-field .error-messages .error-message .error-icon ::ng-deep svg{color:#e02800}.ui-inline-field[state=disabled]{pointer-events:none}@media(max-width:768px){.ui-inline-field .field-wrapper .action-buttons{position:static;margin-top:8px;justify-content:flex-end}}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: FieldComponent, selector: "ui-field", inputs: ["fullWidth", "fullHeight", "label", "labelHtml", "labelIcon", "fieldName", "placeholder", "id", "value", "badgeVariant", "errors", "disabled", "required", "readOnly", "hintMessage", "type", "updateOnBlur", "allowOnlyDigits", "isAutocompleteOff", "allowNegative", "showBottomContent", "applicationTheme", "ariaLabel", "testId", "loading", "isValid", "maxCharacters", "trimOnBlur", "trimOnSubmit", "maxRows", "hasTextAreaCounter", "hideBuiltInErrors", "hideLabelInErrors", "max", "min", "textareaHeight", "borderless", "autosizableTextarea", "isAIVariant", "ariaLabelledby", "ariaDescribedby", "hasError"], outputs: ["validateEvent", "fieldBlur"] }, { kind: "component", type: ButtonComponent, selector: "ui-button", inputs: ["size", "variant", "label", "iconPosition", "justIcon", "iconName", "trailingIconName", "trailingIconFilled", "disabled", "loading", "loadingWithLabel", "fullWidth", "url", "urlTarget", "value", "tooltip", "isPremium", "type", "companyColor", "buttonBadgeConfig", "applicationTheme", "disabledScaleOnClick", "ariaLabel", "ariaExpanded", "ariaControls", "ariaPressed", "ariaRequired", "ariaLabelledby", "ariaDescribedby", "preventDefault", "hasBackground", "tooltipPosition", "role", "iconFilled", "testId"], outputs: ["buttonClickEvent", "buttonHoverEvent"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
297
- }
298
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: InlineFieldComponent, decorators: [{
299
- type: Component,
300
- args: [{ selector: 'ui-inline-field', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
301
- '[attr.theme]': 'applicationTheme()',
302
- '[attr.state]': 'state()',
303
- '[attr.editing]': 'isEditing()',
304
- '[class.full-width]': 'fullWidth()',
305
- }, imports: [NgClass, FieldComponent, ButtonComponent], template: "<div class=\"inline-field-container\">\n <div class=\"field-wrapper\" [ngClass]=\"{ 'is-editing': isEditing() }\">\n <ui-field\n [id]=\"id() + '-input'\"\n [label]=\"label()\"\n [placeholder]=\"placeholder()\"\n [value]=\"currentValue()\"\n [required]=\"required()\"\n [disabled]=\"disabled()\"\n [errors]=\"errors()\"\n [showBottomContent]=\"showErrors()\"\n [ariaLabel]=\"ariaLabel()\"\n [applicationTheme]=\"applicationTheme()\"\n [fullWidth]=\"true\"\n [isAutocompleteOff]=\"true\"\n [type]=\"fieldType()\"\n [maxRows]=\"maxRows()\"\n (input)=\"onInputChange($event)\"\n (fieldBlur)=\"onInputBlur()\"\n (focusin)=\"onInputFocus()\"\n #fieldElement\n data-testid=\"inline-field\"\n [testId]=\"testId()\"\n ></ui-field>\n\n @if (isEditing()) {\n <div class=\"action-buttons\">\n <ui-button\n [label]=\"saveButtonConfig().label\"\n [iconName]=\"saveButtonConfig().iconName\"\n [variant]=\"saveButtonConfig().variant\"\n [size]=\"saveButtonConfig().size\"\n [disabled]=\"saveButtonConfig().disabled\"\n [applicationTheme]=\"applicationTheme()\"\n [iconPosition]=\"'left'\"\n (buttonClickEvent)=\"saveEdit()\"\n [attr.aria-label]=\"'Save ' + (label() || 'field')\"\n [testId]=\"saveButtonTestId()\"\n class=\"save-button\"\n ></ui-button>\n <ui-button\n [label]=\"cancelButtonConfig().label\"\n [iconName]=\"cancelButtonConfig().iconName\"\n [variant]=\"cancelButtonConfig().variant\"\n [size]=\"cancelButtonConfig().size\"\n [disabled]=\"cancelButtonConfig().disabled\"\n [applicationTheme]=\"applicationTheme()\"\n [iconPosition]=\"'left'\"\n (buttonClickEvent)=\"cancelEdit()\"\n [attr.aria-label]=\"'Cancel editing ' + (label() || 'field')\"\n [testId]=\"cancelButtonTestId()\"\n class=\"cancel-button\"\n ></ui-button>\n </div>\n }\n </div>\n</div>\n", styles: [".bg-teal-60b{background:#1c443c}.bg-teal-30b{background:#31766a}.bg-teal-default{background:#46a997}.bg-teal-30w{background:#7ec3b6}.bg-teal-60w{background:#b5ddd5}.bg-teal-secondary{background:#cbd6cb}.bg-teal-90w{background:#ecf6f5}.bg-petrol-60b{background:#102930}.bg-petrol-30b{background:#1b4754}.bg-petrol-default{background:#276678}.bg-petrol-30w{background:#6894a0}.bg-petrol-60w{background:#a9c2c9}.bg-petrol-secondary{background:#c8d7de}.bg-petrol-90w{background:#e9f0f1}.bg-error-60b{background:#513131}.bg-error-30b{background:#8e5655}.bg-error-60w{background:#e3c3c6}.bg-error-secondary{background:#f0dad9}.bg-error-default{background:#cb7b7a}.bg-warning-secondary{background:#f0d6bb}.bg-warning-default{background:#cca45f}.bg-black{background:#000}.bg-dark{background:#888}.bg-medium{background:#e0e0e0}.bg-grey{background:#ededed}.bg-light{background:#f6f6f6}.bg-white{background:#fff}.bg-box-shadow{background:#00000014}.bg-navigation-subtitle{background:#528593}.bgc-teal-60b{background-color:#1c443c}.bgc-teal-30b{background-color:#31766a}.bgc-teal-default{background-color:#46a997}.bgc-teal-30w{background-color:#7ec3b6}.bgc-teal-60w{background-color:#b5ddd5}.bgc-teal-secondary{background-color:#cbd6cb}.bgc-teal-90w{background-color:#ecf6f5}.bgc-petrol-60b{background-color:#102930}.bgc-petrol-30b{background-color:#1b4754}.bgc-petrol-default{background-color:#276678}.bgc-petrol-30w{background-color:#6894a0}.bgc-petrol-60w{background-color:#a9c2c9}.bgc-petrol-secondary{background-color:#c8d7de}.bgc-petrol-90w{background-color:#e9f0f1}.bgc-error-60b{background-color:#513131}.bgc-error-30b{background-color:#8e5655}.bgc-error-60w{background-color:#e3c3c6}.bgc-error-secondary{background-color:#f0dad9}.bgc-error-default{background-color:#cb7b7a}.bgc-warning-secondary{background-color:#f0d6bb}.bgc-warning-default{background-color:#cca45f}.bgc-black{background-color:#000}.bgc-dark{background-color:#888}.bgc-medium{background-color:#e0e0e0}.bgc-grey{background-color:#ededed}.bgc-light{background-color:#f6f6f6}.bgc-white{background-color:#fff}.bgc-box-shadow{background-color:#00000014}.bgc-navigation-subtitle{background-color:#528593}.ui-inline-field{display:block;position:relative;width:100%;max-width:320px}.ui-inline-field.full-width{max-width:100%}.ui-inline-field .inline-field-container,.ui-inline-field .field-wrapper{position:relative;width:100%}.ui-inline-field .field-wrapper ::ng-deep ui-field .mat-mdc-form-field-subscript-wrapper{display:none!important}.ui-inline-field .field-wrapper .action-buttons{position:absolute;top:calc(100% + 4px);right:0;display:flex;gap:8px;z-index:10}.ui-inline-field .field-wrapper:hover .action-buttons.show-on-hover{opacity:1}.ui-inline-field .error-messages{margin-top:4px}.ui-inline-field .error-messages .error-message{display:flex;align-items:center;gap:4px;color:#e02800;font-size:12px;line-height:16px}.ui-inline-field .error-messages .error-message .error-icon ::ng-deep svg{color:#e02800}.ui-inline-field[state=disabled]{pointer-events:none}@media(max-width:768px){.ui-inline-field .field-wrapper .action-buttons{position:static;margin-top:8px;justify-content:flex-end}}\n"] }]
306
- }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.DestroyRef }, { type: i0.ElementRef }, { type: i1.NgControl, decorators: [{
307
- type: Optional
308
- }, {
309
- type: Self
310
- }] }], propDecorators: { class: [{
311
- type: HostBinding
312
- }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], applicationTheme: [{ type: i0.Input, args: [{ isSignal: true, alias: "applicationTheme", required: false }] }], fieldType: [{ type: i0.Input, args: [{ isSignal: true, alias: "fieldType", required: false }] }], maxRows: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxRows", required: false }] }], errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }], showErrors: [{ type: i0.Input, args: [{ isSignal: true, alias: "showErrors", required: false }] }], buttonConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonConfig", required: false }] }], validation: [{ type: i0.Input, args: [{ isSignal: true, alias: "validation", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], testId: [{ type: i0.Input, args: [{ isSignal: true, alias: "testId", required: false }] }], fullWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "fullWidth", required: false }] }], save: [{ type: i0.Output, args: ["save"] }], cancel: [{ type: i0.Output, args: ["cancel"] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], editingModeChange: [{ type: i0.Output, args: ["editingModeChange"] }], focusEvent: [{ type: i0.Output, args: ["focusEvent"] }], blurEvent: [{ type: i0.Output, args: ["blurEvent"] }], fieldComponent: [{
313
- type: ViewChild,
314
- args: ['fieldElement']
315
- }], onComponentFocusOut: [{
316
- type: HostListener,
317
- args: ['focusout', ['$event']]
318
- }], onEscapePressed: [{
319
- type: HostListener,
320
- args: ['keydown.escape', ['$event']]
321
- }], onEnterPressed: [{
322
- type: HostListener,
323
- args: ['keydown.enter', ['$event']]
324
- }], onTabPressed: [{
325
- type: HostListener,
326
- args: ['keydown.tab']
327
- }] } });
328
-
329
- class InlineFieldComponentModule {
330
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: InlineFieldComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
331
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.25", ngImport: i0, type: InlineFieldComponentModule, imports: [CommonModule,
332
- FormsModule,
333
- ReactiveFormsModule,
334
- MatInputModule,
335
- ButtonComponentModule,
336
- FieldComponentModule,
337
- IconComponentModule,
338
- InlineFieldComponent], exports: [InlineFieldComponent] }); }
339
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: InlineFieldComponentModule, imports: [CommonModule,
340
- FormsModule,
341
- ReactiveFormsModule,
342
- MatInputModule,
343
- ButtonComponentModule,
344
- FieldComponentModule,
345
- IconComponentModule,
346
- InlineFieldComponent] }); }
347
- }
348
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: InlineFieldComponentModule, decorators: [{
349
- type: NgModule,
350
- args: [{
351
- imports: [
352
- CommonModule,
353
- FormsModule,
354
- ReactiveFormsModule,
355
- MatInputModule,
356
- ButtonComponentModule,
357
- FieldComponentModule,
358
- IconComponentModule,
359
- InlineFieldComponent,
360
- ],
361
- exports: [InlineFieldComponent],
362
- }]
363
- }] });
364
-
365
- /**
366
- * Generated bundle index. Do not edit.
367
- */
368
-
11
+ var InlineFieldComponent = class InlineFieldComponent {
12
+ constructor(cdr, destroyRef, elementRef, ngControl) {
13
+ this.cdr = cdr;
14
+ this.destroyRef = destroyRef;
15
+ this.elementRef = elementRef;
16
+ this.ngControl = ngControl;
17
+ this.class = "ui-inline-field";
18
+ this.id = input(`inline-field-${inlineFieldID++}`, ...ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []);
19
+ this.label = input("", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
20
+ this.placeholder = input("", ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
21
+ this.value = input("", ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
22
+ this.required = input(false, ...ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []);
23
+ this.disabled = input(false, ...ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []);
24
+ this.applicationTheme = input("light", ...ngDevMode ? [{ debugName: "applicationTheme" }] : /* istanbul ignore next */ []);
25
+ this.fieldType = input("text", ...ngDevMode ? [{ debugName: "fieldType" }] : /* istanbul ignore next */ []);
26
+ this.maxRows = input(0, ...ngDevMode ? [{ debugName: "maxRows" }] : /* istanbul ignore next */ []);
27
+ this.errors = input([], ...ngDevMode ? [{ debugName: "errors" }] : /* istanbul ignore next */ []);
28
+ this.showErrors = input(true, ...ngDevMode ? [{ debugName: "showErrors" }] : /* istanbul ignore next */ []);
29
+ this.buttonConfig = input({
30
+ saveLabel: "Save",
31
+ cancelLabel: "Cancel",
32
+ saveIcon: "Check-filled",
33
+ cancelIcon: "Close-filled"
34
+ }, ...ngDevMode ? [{ debugName: "buttonConfig" }] : /* istanbul ignore next */ []);
35
+ this.validation = input({}, ...ngDevMode ? [{ debugName: "validation" }] : /* istanbul ignore next */ []);
36
+ this.ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
37
+ this.testId = input(null, ...ngDevMode ? [{ debugName: "testId" }] : /* istanbul ignore next */ []);
38
+ this.saveButtonTestId = computed(() => this.testId() ? `${this.testId()}-save` : null, ...ngDevMode ? [{ debugName: "saveButtonTestId" }] : /* istanbul ignore next */ []);
39
+ this.cancelButtonTestId = computed(() => this.testId() ? `${this.testId()}-cancel` : null, ...ngDevMode ? [{ debugName: "cancelButtonTestId" }] : /* istanbul ignore next */ []);
40
+ this.fullWidth = input(false, ...ngDevMode ? [{ debugName: "fullWidth" }] : /* istanbul ignore next */ []);
41
+ this.save = output();
42
+ this.cancel = output();
43
+ this.valueChange = output();
44
+ this.editingModeChange = output();
45
+ this.focusEvent = output();
46
+ this.blurEvent = output();
47
+ this._isEditing = signal(false, ...ngDevMode ? [{ debugName: "_isEditing" }] : /* istanbul ignore next */ []);
48
+ this._originalValue = signal("", ...ngDevMode ? [{ debugName: "_originalValue" }] : /* istanbul ignore next */ []);
49
+ this._currentValue = signal("", ...ngDevMode ? [{ debugName: "_currentValue" }] : /* istanbul ignore next */ []);
50
+ this._state = signal("default", ...ngDevMode ? [{ debugName: "_state" }] : /* istanbul ignore next */ []);
51
+ this.isEditing = computed(() => this._isEditing(), ...ngDevMode ? [{ debugName: "isEditing" }] : /* istanbul ignore next */ []);
52
+ this.currentValue = computed(() => this._currentValue(), ...ngDevMode ? [{ debugName: "currentValue" }] : /* istanbul ignore next */ []);
53
+ this.state = computed(() => this._state(), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
54
+ this.saveButtonConfig = computed(() => ({
55
+ label: this.buttonConfig().saveLabel || "Save",
56
+ iconName: this.buttonConfig().saveIcon ?? "Check-filled",
57
+ variant: "secondary-inverted",
58
+ size: "small",
59
+ disabled: this.disabled()
60
+ }), ...ngDevMode ? [{ debugName: "saveButtonConfig" }] : /* istanbul ignore next */ []);
61
+ this.cancelButtonConfig = computed(() => ({
62
+ label: this.buttonConfig().cancelLabel || "Cancel",
63
+ iconName: this.buttonConfig().cancelIcon ?? "Close-filled",
64
+ variant: "secondary-inverted",
65
+ size: "small",
66
+ disabled: this.disabled()
67
+ }), ...ngDevMode ? [{ debugName: "cancelButtonConfig" }] : /* istanbul ignore next */ []);
68
+ this.onChange = (_val) => {};
69
+ this.onTouched = () => {};
70
+ if (this.ngControl !== null) this.ngControl.valueAccessor = this;
71
+ }
72
+ ngOnInit() {
73
+ this._currentValue.set(this.value());
74
+ this._originalValue.set(this.value());
75
+ this.updateState();
76
+ }
77
+ writeValue(value) {
78
+ const newValue = value || "";
79
+ this._currentValue.set(newValue);
80
+ if (!this.isEditing()) this._originalValue.set(newValue);
81
+ this.cdr.markForCheck();
82
+ }
83
+ registerOnChange(fn) {
84
+ this.onChange = fn;
85
+ }
86
+ registerOnTouched(fn) {
87
+ this.onTouched = fn;
88
+ }
89
+ setDisabledState(_isDisabled) {
90
+ this.updateState();
91
+ this.cdr.markForCheck();
92
+ }
93
+ onComponentFocusOut(event) {
94
+ const relatedTarget = event.relatedTarget;
95
+ if ((!relatedTarget || !this.elementRef.nativeElement.contains(relatedTarget)) && this.isEditing()) {
96
+ this._currentValue.set(this._originalValue());
97
+ this.exitEditMode();
98
+ this.onChange(this._originalValue());
99
+ this.cancel.emit();
100
+ }
101
+ }
102
+ onEscapePressed(event) {
103
+ if (this.isEditing()) {
104
+ event.preventDefault();
105
+ this.cancelEdit();
106
+ }
107
+ }
108
+ onEnterPressed(event) {
109
+ if (this.isEditing() && event instanceof KeyboardEvent && !event.shiftKey) {
110
+ event.preventDefault();
111
+ this.saveEdit();
112
+ }
113
+ }
114
+ onTabPressed() {}
115
+ onInputFocus() {
116
+ if (!this.disabled() && !this.isEditing()) this.enterEditMode();
117
+ this._state.set("focused");
118
+ this.focusEvent.emit();
119
+ this.onTouched();
120
+ }
121
+ onInputBlur() {
122
+ this.blurEvent.emit();
123
+ }
124
+ onInputChange(event) {
125
+ const newValue = event.target.value;
126
+ this._currentValue.set(newValue);
127
+ this.valueChange.emit(newValue);
128
+ }
129
+ focus() {
130
+ if (this.fieldComponent) {
131
+ this.fieldComponent.focus();
132
+ this.fieldComponent.field?.nativeElement?.select();
133
+ }
134
+ }
135
+ enterEditMode() {
136
+ if (this.disabled() || this.isEditing()) return;
137
+ this._originalValue.set(this._currentValue());
138
+ this._isEditing.set(true);
139
+ this._state.set("editing");
140
+ this.editingModeChange.emit(true);
141
+ this.cdr.markForCheck();
142
+ }
143
+ saveEdit() {
144
+ if (!this.isEditing()) return;
145
+ const newValue = this.currentValue();
146
+ if (this.hasValidationError(newValue)) {
147
+ this._state.set("error");
148
+ this.cdr.markForCheck();
149
+ return;
150
+ }
151
+ const changeEvent = {
152
+ value: newValue,
153
+ saved: true,
154
+ previousValue: this._originalValue()
155
+ };
156
+ this._originalValue.set(newValue);
157
+ this.exitEditMode();
158
+ this.onChange(newValue);
159
+ this.save.emit(changeEvent);
160
+ }
161
+ cancelEdit() {
162
+ if (!this.isEditing()) return;
163
+ this._currentValue.set(this._originalValue());
164
+ this.exitEditMode();
165
+ this.cancel.emit();
166
+ }
167
+ exitEditMode() {
168
+ this._isEditing.set(false);
169
+ this.updateState();
170
+ this.editingModeChange.emit(false);
171
+ this.cdr.markForCheck();
172
+ }
173
+ updateState() {
174
+ if (this.disabled()) this._state.set("disabled");
175
+ else if (this.errors().length > 0) this._state.set("error");
176
+ else if (this.isEditing()) this._state.set("editing");
177
+ else this._state.set("default");
178
+ }
179
+ hasValidationError(value) {
180
+ const config = this.validation();
181
+ return this.hasRequiredError(value, config) || this.hasMinLengthError(value, config) || this.hasMaxLengthError(value, config) || this.hasPatternError(value, config) || this.hasCustomValidationError(value, config);
182
+ }
183
+ hasRequiredError(value, config) {
184
+ return config.required ? !value || value.trim().length === 0 : false;
185
+ }
186
+ hasMinLengthError(value, config) {
187
+ return config.minLength ? value.length < config.minLength : false;
188
+ }
189
+ hasMaxLengthError(value, config) {
190
+ return config.maxLength ? value.length > config.maxLength : false;
191
+ }
192
+ hasPatternError(value, config) {
193
+ return config.pattern ? !config.pattern.test(value) : false;
194
+ }
195
+ hasCustomValidationError(value, config) {
196
+ return config.customValidator ? config.customValidator(value) : false;
197
+ }
198
+ static {
199
+ this.ɵfac = i0.ɵɵngDeclareFactory({
200
+ minVersion: "12.0.0",
201
+ version: "22.2.4",
202
+ ngImport: i0,
203
+ type: InlineFieldComponent,
204
+ deps: [
205
+ { token: i0.ChangeDetectorRef },
206
+ { token: i0.DestroyRef },
207
+ { token: i0.ElementRef },
208
+ {
209
+ token: i1.NgControl,
210
+ optional: true,
211
+ self: true
212
+ }
213
+ ],
214
+ target: i0.ɵɵFactoryTarget.Component
215
+ });
216
+ }
217
+ static {
218
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
219
+ minVersion: "17.0.0",
220
+ version: "22.2.4",
221
+ type: InlineFieldComponent,
222
+ isStandalone: true,
223
+ selector: "ui-inline-field",
224
+ inputs: {
225
+ id: {
226
+ classPropertyName: "id",
227
+ publicName: "id",
228
+ isSignal: true,
229
+ isRequired: false,
230
+ transformFunction: null
231
+ },
232
+ label: {
233
+ classPropertyName: "label",
234
+ publicName: "label",
235
+ isSignal: true,
236
+ isRequired: false,
237
+ transformFunction: null
238
+ },
239
+ placeholder: {
240
+ classPropertyName: "placeholder",
241
+ publicName: "placeholder",
242
+ isSignal: true,
243
+ isRequired: false,
244
+ transformFunction: null
245
+ },
246
+ value: {
247
+ classPropertyName: "value",
248
+ publicName: "value",
249
+ isSignal: true,
250
+ isRequired: false,
251
+ transformFunction: null
252
+ },
253
+ required: {
254
+ classPropertyName: "required",
255
+ publicName: "required",
256
+ isSignal: true,
257
+ isRequired: false,
258
+ transformFunction: null
259
+ },
260
+ disabled: {
261
+ classPropertyName: "disabled",
262
+ publicName: "disabled",
263
+ isSignal: true,
264
+ isRequired: false,
265
+ transformFunction: null
266
+ },
267
+ applicationTheme: {
268
+ classPropertyName: "applicationTheme",
269
+ publicName: "applicationTheme",
270
+ isSignal: true,
271
+ isRequired: false,
272
+ transformFunction: null
273
+ },
274
+ fieldType: {
275
+ classPropertyName: "fieldType",
276
+ publicName: "fieldType",
277
+ isSignal: true,
278
+ isRequired: false,
279
+ transformFunction: null
280
+ },
281
+ maxRows: {
282
+ classPropertyName: "maxRows",
283
+ publicName: "maxRows",
284
+ isSignal: true,
285
+ isRequired: false,
286
+ transformFunction: null
287
+ },
288
+ errors: {
289
+ classPropertyName: "errors",
290
+ publicName: "errors",
291
+ isSignal: true,
292
+ isRequired: false,
293
+ transformFunction: null
294
+ },
295
+ showErrors: {
296
+ classPropertyName: "showErrors",
297
+ publicName: "showErrors",
298
+ isSignal: true,
299
+ isRequired: false,
300
+ transformFunction: null
301
+ },
302
+ buttonConfig: {
303
+ classPropertyName: "buttonConfig",
304
+ publicName: "buttonConfig",
305
+ isSignal: true,
306
+ isRequired: false,
307
+ transformFunction: null
308
+ },
309
+ validation: {
310
+ classPropertyName: "validation",
311
+ publicName: "validation",
312
+ isSignal: true,
313
+ isRequired: false,
314
+ transformFunction: null
315
+ },
316
+ ariaLabel: {
317
+ classPropertyName: "ariaLabel",
318
+ publicName: "ariaLabel",
319
+ isSignal: true,
320
+ isRequired: false,
321
+ transformFunction: null
322
+ },
323
+ testId: {
324
+ classPropertyName: "testId",
325
+ publicName: "testId",
326
+ isSignal: true,
327
+ isRequired: false,
328
+ transformFunction: null
329
+ },
330
+ fullWidth: {
331
+ classPropertyName: "fullWidth",
332
+ publicName: "fullWidth",
333
+ isSignal: true,
334
+ isRequired: false,
335
+ transformFunction: null
336
+ }
337
+ },
338
+ outputs: {
339
+ save: "save",
340
+ cancel: "cancel",
341
+ valueChange: "valueChange",
342
+ editingModeChange: "editingModeChange",
343
+ focusEvent: "focusEvent",
344
+ blurEvent: "blurEvent"
345
+ },
346
+ host: {
347
+ listeners: {
348
+ "focusout": "onComponentFocusOut($event)",
349
+ "keydown.escape": "onEscapePressed($event)",
350
+ "keydown.enter": "onEnterPressed($event)",
351
+ "keydown.tab": "onTabPressed()"
352
+ },
353
+ properties: {
354
+ "attr.theme": "applicationTheme()",
355
+ "attr.state": "state()",
356
+ "attr.editing": "isEditing()",
357
+ "class.full-width": "fullWidth()",
358
+ "class": "this.class"
359
+ }
360
+ },
361
+ viewQueries: [{
362
+ propertyName: "fieldComponent",
363
+ first: true,
364
+ predicate: ["fieldElement"],
365
+ descendants: true
366
+ }],
367
+ ngImport: i0,
368
+ template: "<div class=\"inline-field-container\">\n <div class=\"field-wrapper\" [ngClass]=\"{ 'is-editing': isEditing() }\">\n <ui-field\n [id]=\"id() + '-input'\"\n [label]=\"label()\"\n [placeholder]=\"placeholder()\"\n [value]=\"currentValue()\"\n [required]=\"required()\"\n [disabled]=\"disabled()\"\n [errors]=\"errors()\"\n [showBottomContent]=\"showErrors()\"\n [ariaLabel]=\"ariaLabel()\"\n [applicationTheme]=\"applicationTheme()\"\n [fullWidth]=\"true\"\n [isAutocompleteOff]=\"true\"\n [type]=\"fieldType()\"\n [maxRows]=\"maxRows()\"\n (input)=\"onInputChange($event)\"\n (fieldBlur)=\"onInputBlur()\"\n (focusin)=\"onInputFocus()\"\n #fieldElement\n data-testid=\"inline-field\"\n [testId]=\"testId()\"\n ></ui-field>\n\n @if (isEditing()) {\n <div class=\"action-buttons\">\n <ui-button\n [label]=\"saveButtonConfig().label\"\n [iconName]=\"saveButtonConfig().iconName\"\n [variant]=\"saveButtonConfig().variant\"\n [size]=\"saveButtonConfig().size\"\n [disabled]=\"saveButtonConfig().disabled\"\n [applicationTheme]=\"applicationTheme()\"\n [iconPosition]=\"'left'\"\n (buttonClickEvent)=\"saveEdit()\"\n [attr.aria-label]=\"'Save ' + (label() || 'field')\"\n [testId]=\"saveButtonTestId()\"\n class=\"save-button\"\n ></ui-button>\n <ui-button\n [label]=\"cancelButtonConfig().label\"\n [iconName]=\"cancelButtonConfig().iconName\"\n [variant]=\"cancelButtonConfig().variant\"\n [size]=\"cancelButtonConfig().size\"\n [disabled]=\"cancelButtonConfig().disabled\"\n [applicationTheme]=\"applicationTheme()\"\n [iconPosition]=\"'left'\"\n (buttonClickEvent)=\"cancelEdit()\"\n [attr.aria-label]=\"'Cancel editing ' + (label() || 'field')\"\n [testId]=\"cancelButtonTestId()\"\n class=\"cancel-button\"\n ></ui-button>\n </div>\n }\n </div>\n</div>\n",
369
+ styles: [".bg-teal-60b{background:#1c443c}.bg-teal-30b{background:#31766a}.bg-teal-default{background:#46a997}.bg-teal-30w{background:#7ec3b6}.bg-teal-60w{background:#b5ddd5}.bg-teal-secondary{background:#cbd6cb}.bg-teal-90w{background:#ecf6f5}.bg-petrol-60b{background:#102930}.bg-petrol-30b{background:#1b4754}.bg-petrol-default{background:#276678}.bg-petrol-30w{background:#6894a0}.bg-petrol-60w{background:#a9c2c9}.bg-petrol-secondary{background:#c8d7de}.bg-petrol-90w{background:#e9f0f1}.bg-error-60b{background:#513131}.bg-error-30b{background:#8e5655}.bg-error-60w{background:#e3c3c6}.bg-error-secondary{background:#f0dad9}.bg-error-default{background:#cb7b7a}.bg-warning-secondary{background:#f0d6bb}.bg-warning-default{background:#cca45f}.bg-black{background:#000}.bg-dark{background:#888}.bg-medium{background:#e0e0e0}.bg-grey{background:#ededed}.bg-light{background:#f6f6f6}.bg-white{background:#fff}.bg-box-shadow{background:#00000014}.bg-navigation-subtitle{background:#528593}.bgc-teal-60b{background-color:#1c443c}.bgc-teal-30b{background-color:#31766a}.bgc-teal-default{background-color:#46a997}.bgc-teal-30w{background-color:#7ec3b6}.bgc-teal-60w{background-color:#b5ddd5}.bgc-teal-secondary{background-color:#cbd6cb}.bgc-teal-90w{background-color:#ecf6f5}.bgc-petrol-60b{background-color:#102930}.bgc-petrol-30b{background-color:#1b4754}.bgc-petrol-default{background-color:#276678}.bgc-petrol-30w{background-color:#6894a0}.bgc-petrol-60w{background-color:#a9c2c9}.bgc-petrol-secondary{background-color:#c8d7de}.bgc-petrol-90w{background-color:#e9f0f1}.bgc-error-60b{background-color:#513131}.bgc-error-30b{background-color:#8e5655}.bgc-error-60w{background-color:#e3c3c6}.bgc-error-secondary{background-color:#f0dad9}.bgc-error-default{background-color:#cb7b7a}.bgc-warning-secondary{background-color:#f0d6bb}.bgc-warning-default{background-color:#cca45f}.bgc-black{background-color:#000}.bgc-dark{background-color:#888}.bgc-medium{background-color:#e0e0e0}.bgc-grey{background-color:#ededed}.bgc-light{background-color:#f6f6f6}.bgc-white{background-color:#fff}.bgc-box-shadow{background-color:#00000014}.bgc-navigation-subtitle{background-color:#528593}.ui-inline-field{display:block;position:relative;width:100%;max-width:320px}.ui-inline-field.full-width{max-width:100%}.ui-inline-field .inline-field-container,.ui-inline-field .field-wrapper{position:relative;width:100%}.ui-inline-field .field-wrapper ::ng-deep ui-field .mat-mdc-form-field-subscript-wrapper{display:none!important}.ui-inline-field .field-wrapper .action-buttons{position:absolute;top:calc(100% + 4px);right:0;display:flex;gap:8px;z-index:10}.ui-inline-field .field-wrapper:hover .action-buttons.show-on-hover{opacity:1}.ui-inline-field .error-messages{margin-top:4px}.ui-inline-field .error-messages .error-message{display:flex;align-items:center;gap:4px;color:#e02800;font-size:12px;line-height:16px}.ui-inline-field .error-messages .error-message .error-icon ::ng-deep svg{color:#e02800}.ui-inline-field[state=disabled]{pointer-events:none}@media(max-width:768px){.ui-inline-field .field-wrapper .action-buttons{position:static;margin-top:8px;justify-content:flex-end}}\n"],
370
+ dependencies: [
371
+ {
372
+ kind: "directive",
373
+ type: NgClass,
374
+ selector: "[ngClass]",
375
+ inputs: ["class", "ngClass"]
376
+ },
377
+ {
378
+ kind: "component",
379
+ type: FieldComponent,
380
+ selector: "ui-field",
381
+ inputs: [
382
+ "fullWidth",
383
+ "fullHeight",
384
+ "label",
385
+ "labelHtml",
386
+ "labelIcon",
387
+ "fieldName",
388
+ "placeholder",
389
+ "id",
390
+ "value",
391
+ "badgeVariant",
392
+ "errors",
393
+ "disabled",
394
+ "required",
395
+ "readOnly",
396
+ "hintMessage",
397
+ "type",
398
+ "updateOnBlur",
399
+ "allowOnlyDigits",
400
+ "isAutocompleteOff",
401
+ "allowNegative",
402
+ "showBottomContent",
403
+ "applicationTheme",
404
+ "ariaLabel",
405
+ "testId",
406
+ "loading",
407
+ "isValid",
408
+ "maxCharacters",
409
+ "trimOnBlur",
410
+ "trimOnSubmit",
411
+ "maxRows",
412
+ "hasTextAreaCounter",
413
+ "hideBuiltInErrors",
414
+ "hideLabelInErrors",
415
+ "max",
416
+ "min",
417
+ "textareaHeight",
418
+ "borderless",
419
+ "autosizableTextarea",
420
+ "isAIVariant",
421
+ "ariaLabelledby",
422
+ "ariaDescribedby",
423
+ "hasError"
424
+ ],
425
+ outputs: ["validateEvent", "fieldBlur"]
426
+ },
427
+ {
428
+ kind: "component",
429
+ type: ButtonComponent,
430
+ selector: "ui-button",
431
+ inputs: [
432
+ "size",
433
+ "variant",
434
+ "label",
435
+ "iconPosition",
436
+ "justIcon",
437
+ "iconName",
438
+ "trailingIconName",
439
+ "trailingIconFilled",
440
+ "disabled",
441
+ "loading",
442
+ "loadingWithLabel",
443
+ "fullWidth",
444
+ "url",
445
+ "urlTarget",
446
+ "value",
447
+ "tooltip",
448
+ "isPremium",
449
+ "type",
450
+ "companyColor",
451
+ "buttonBadgeConfig",
452
+ "applicationTheme",
453
+ "disabledScaleOnClick",
454
+ "ariaLabel",
455
+ "ariaExpanded",
456
+ "ariaControls",
457
+ "ariaPressed",
458
+ "ariaRequired",
459
+ "ariaLabelledby",
460
+ "ariaDescribedby",
461
+ "preventDefault",
462
+ "hasBackground",
463
+ "tooltipPosition",
464
+ "role",
465
+ "iconFilled",
466
+ "testId"
467
+ ],
468
+ outputs: ["buttonClickEvent", "buttonHoverEvent"]
469
+ }
470
+ ],
471
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
472
+ encapsulation: i0.ViewEncapsulation.None
473
+ });
474
+ }
475
+ };
476
+ i0.ɵɵngDeclareClassMetadata({
477
+ minVersion: "12.0.0",
478
+ version: "22.2.4",
479
+ ngImport: i0,
480
+ type: InlineFieldComponent,
481
+ decorators: [{
482
+ type: Component,
483
+ args: [{
484
+ selector: "ui-inline-field",
485
+ encapsulation: ViewEncapsulation.None,
486
+ changeDetection: ChangeDetectionStrategy.OnPush,
487
+ host: {
488
+ "[attr.theme]": "applicationTheme()",
489
+ "[attr.state]": "state()",
490
+ "[attr.editing]": "isEditing()",
491
+ "[class.full-width]": "fullWidth()"
492
+ },
493
+ imports: [
494
+ NgClass,
495
+ FieldComponent,
496
+ ButtonComponent
497
+ ],
498
+ template: "<div class=\"inline-field-container\">\n <div class=\"field-wrapper\" [ngClass]=\"{ 'is-editing': isEditing() }\">\n <ui-field\n [id]=\"id() + '-input'\"\n [label]=\"label()\"\n [placeholder]=\"placeholder()\"\n [value]=\"currentValue()\"\n [required]=\"required()\"\n [disabled]=\"disabled()\"\n [errors]=\"errors()\"\n [showBottomContent]=\"showErrors()\"\n [ariaLabel]=\"ariaLabel()\"\n [applicationTheme]=\"applicationTheme()\"\n [fullWidth]=\"true\"\n [isAutocompleteOff]=\"true\"\n [type]=\"fieldType()\"\n [maxRows]=\"maxRows()\"\n (input)=\"onInputChange($event)\"\n (fieldBlur)=\"onInputBlur()\"\n (focusin)=\"onInputFocus()\"\n #fieldElement\n data-testid=\"inline-field\"\n [testId]=\"testId()\"\n ></ui-field>\n\n @if (isEditing()) {\n <div class=\"action-buttons\">\n <ui-button\n [label]=\"saveButtonConfig().label\"\n [iconName]=\"saveButtonConfig().iconName\"\n [variant]=\"saveButtonConfig().variant\"\n [size]=\"saveButtonConfig().size\"\n [disabled]=\"saveButtonConfig().disabled\"\n [applicationTheme]=\"applicationTheme()\"\n [iconPosition]=\"'left'\"\n (buttonClickEvent)=\"saveEdit()\"\n [attr.aria-label]=\"'Save ' + (label() || 'field')\"\n [testId]=\"saveButtonTestId()\"\n class=\"save-button\"\n ></ui-button>\n <ui-button\n [label]=\"cancelButtonConfig().label\"\n [iconName]=\"cancelButtonConfig().iconName\"\n [variant]=\"cancelButtonConfig().variant\"\n [size]=\"cancelButtonConfig().size\"\n [disabled]=\"cancelButtonConfig().disabled\"\n [applicationTheme]=\"applicationTheme()\"\n [iconPosition]=\"'left'\"\n (buttonClickEvent)=\"cancelEdit()\"\n [attr.aria-label]=\"'Cancel editing ' + (label() || 'field')\"\n [testId]=\"cancelButtonTestId()\"\n class=\"cancel-button\"\n ></ui-button>\n </div>\n }\n </div>\n</div>\n",
499
+ styles: [".bg-teal-60b{background:#1c443c}.bg-teal-30b{background:#31766a}.bg-teal-default{background:#46a997}.bg-teal-30w{background:#7ec3b6}.bg-teal-60w{background:#b5ddd5}.bg-teal-secondary{background:#cbd6cb}.bg-teal-90w{background:#ecf6f5}.bg-petrol-60b{background:#102930}.bg-petrol-30b{background:#1b4754}.bg-petrol-default{background:#276678}.bg-petrol-30w{background:#6894a0}.bg-petrol-60w{background:#a9c2c9}.bg-petrol-secondary{background:#c8d7de}.bg-petrol-90w{background:#e9f0f1}.bg-error-60b{background:#513131}.bg-error-30b{background:#8e5655}.bg-error-60w{background:#e3c3c6}.bg-error-secondary{background:#f0dad9}.bg-error-default{background:#cb7b7a}.bg-warning-secondary{background:#f0d6bb}.bg-warning-default{background:#cca45f}.bg-black{background:#000}.bg-dark{background:#888}.bg-medium{background:#e0e0e0}.bg-grey{background:#ededed}.bg-light{background:#f6f6f6}.bg-white{background:#fff}.bg-box-shadow{background:#00000014}.bg-navigation-subtitle{background:#528593}.bgc-teal-60b{background-color:#1c443c}.bgc-teal-30b{background-color:#31766a}.bgc-teal-default{background-color:#46a997}.bgc-teal-30w{background-color:#7ec3b6}.bgc-teal-60w{background-color:#b5ddd5}.bgc-teal-secondary{background-color:#cbd6cb}.bgc-teal-90w{background-color:#ecf6f5}.bgc-petrol-60b{background-color:#102930}.bgc-petrol-30b{background-color:#1b4754}.bgc-petrol-default{background-color:#276678}.bgc-petrol-30w{background-color:#6894a0}.bgc-petrol-60w{background-color:#a9c2c9}.bgc-petrol-secondary{background-color:#c8d7de}.bgc-petrol-90w{background-color:#e9f0f1}.bgc-error-60b{background-color:#513131}.bgc-error-30b{background-color:#8e5655}.bgc-error-60w{background-color:#e3c3c6}.bgc-error-secondary{background-color:#f0dad9}.bgc-error-default{background-color:#cb7b7a}.bgc-warning-secondary{background-color:#f0d6bb}.bgc-warning-default{background-color:#cca45f}.bgc-black{background-color:#000}.bgc-dark{background-color:#888}.bgc-medium{background-color:#e0e0e0}.bgc-grey{background-color:#ededed}.bgc-light{background-color:#f6f6f6}.bgc-white{background-color:#fff}.bgc-box-shadow{background-color:#00000014}.bgc-navigation-subtitle{background-color:#528593}.ui-inline-field{display:block;position:relative;width:100%;max-width:320px}.ui-inline-field.full-width{max-width:100%}.ui-inline-field .inline-field-container,.ui-inline-field .field-wrapper{position:relative;width:100%}.ui-inline-field .field-wrapper ::ng-deep ui-field .mat-mdc-form-field-subscript-wrapper{display:none!important}.ui-inline-field .field-wrapper .action-buttons{position:absolute;top:calc(100% + 4px);right:0;display:flex;gap:8px;z-index:10}.ui-inline-field .field-wrapper:hover .action-buttons.show-on-hover{opacity:1}.ui-inline-field .error-messages{margin-top:4px}.ui-inline-field .error-messages .error-message{display:flex;align-items:center;gap:4px;color:#e02800;font-size:12px;line-height:16px}.ui-inline-field .error-messages .error-message .error-icon ::ng-deep svg{color:#e02800}.ui-inline-field[state=disabled]{pointer-events:none}@media(max-width:768px){.ui-inline-field .field-wrapper .action-buttons{position:static;margin-top:8px;justify-content:flex-end}}\n"]
500
+ }]
501
+ }],
502
+ ctorParameters: () => [
503
+ { type: i0.ChangeDetectorRef },
504
+ { type: i0.DestroyRef },
505
+ { type: i0.ElementRef },
506
+ {
507
+ type: i1.NgControl,
508
+ decorators: [{ type: Optional }, { type: Self }]
509
+ }
510
+ ],
511
+ propDecorators: {
512
+ class: [{ type: HostBinding }],
513
+ id: [{
514
+ type: i0.Input,
515
+ args: [{
516
+ isSignal: true,
517
+ alias: "id",
518
+ required: false
519
+ }]
520
+ }],
521
+ label: [{
522
+ type: i0.Input,
523
+ args: [{
524
+ isSignal: true,
525
+ alias: "label",
526
+ required: false
527
+ }]
528
+ }],
529
+ placeholder: [{
530
+ type: i0.Input,
531
+ args: [{
532
+ isSignal: true,
533
+ alias: "placeholder",
534
+ required: false
535
+ }]
536
+ }],
537
+ value: [{
538
+ type: i0.Input,
539
+ args: [{
540
+ isSignal: true,
541
+ alias: "value",
542
+ required: false
543
+ }]
544
+ }],
545
+ required: [{
546
+ type: i0.Input,
547
+ args: [{
548
+ isSignal: true,
549
+ alias: "required",
550
+ required: false
551
+ }]
552
+ }],
553
+ disabled: [{
554
+ type: i0.Input,
555
+ args: [{
556
+ isSignal: true,
557
+ alias: "disabled",
558
+ required: false
559
+ }]
560
+ }],
561
+ applicationTheme: [{
562
+ type: i0.Input,
563
+ args: [{
564
+ isSignal: true,
565
+ alias: "applicationTheme",
566
+ required: false
567
+ }]
568
+ }],
569
+ fieldType: [{
570
+ type: i0.Input,
571
+ args: [{
572
+ isSignal: true,
573
+ alias: "fieldType",
574
+ required: false
575
+ }]
576
+ }],
577
+ maxRows: [{
578
+ type: i0.Input,
579
+ args: [{
580
+ isSignal: true,
581
+ alias: "maxRows",
582
+ required: false
583
+ }]
584
+ }],
585
+ errors: [{
586
+ type: i0.Input,
587
+ args: [{
588
+ isSignal: true,
589
+ alias: "errors",
590
+ required: false
591
+ }]
592
+ }],
593
+ showErrors: [{
594
+ type: i0.Input,
595
+ args: [{
596
+ isSignal: true,
597
+ alias: "showErrors",
598
+ required: false
599
+ }]
600
+ }],
601
+ buttonConfig: [{
602
+ type: i0.Input,
603
+ args: [{
604
+ isSignal: true,
605
+ alias: "buttonConfig",
606
+ required: false
607
+ }]
608
+ }],
609
+ validation: [{
610
+ type: i0.Input,
611
+ args: [{
612
+ isSignal: true,
613
+ alias: "validation",
614
+ required: false
615
+ }]
616
+ }],
617
+ ariaLabel: [{
618
+ type: i0.Input,
619
+ args: [{
620
+ isSignal: true,
621
+ alias: "ariaLabel",
622
+ required: false
623
+ }]
624
+ }],
625
+ testId: [{
626
+ type: i0.Input,
627
+ args: [{
628
+ isSignal: true,
629
+ alias: "testId",
630
+ required: false
631
+ }]
632
+ }],
633
+ fullWidth: [{
634
+ type: i0.Input,
635
+ args: [{
636
+ isSignal: true,
637
+ alias: "fullWidth",
638
+ required: false
639
+ }]
640
+ }],
641
+ save: [{
642
+ type: i0.Output,
643
+ args: ["save"]
644
+ }],
645
+ cancel: [{
646
+ type: i0.Output,
647
+ args: ["cancel"]
648
+ }],
649
+ valueChange: [{
650
+ type: i0.Output,
651
+ args: ["valueChange"]
652
+ }],
653
+ editingModeChange: [{
654
+ type: i0.Output,
655
+ args: ["editingModeChange"]
656
+ }],
657
+ focusEvent: [{
658
+ type: i0.Output,
659
+ args: ["focusEvent"]
660
+ }],
661
+ blurEvent: [{
662
+ type: i0.Output,
663
+ args: ["blurEvent"]
664
+ }],
665
+ fieldComponent: [{
666
+ type: ViewChild,
667
+ args: ["fieldElement"]
668
+ }],
669
+ onComponentFocusOut: [{
670
+ type: HostListener,
671
+ args: ["focusout", ["$event"]]
672
+ }],
673
+ onEscapePressed: [{
674
+ type: HostListener,
675
+ args: ["keydown.escape", ["$event"]]
676
+ }],
677
+ onEnterPressed: [{
678
+ type: HostListener,
679
+ args: ["keydown.enter", ["$event"]]
680
+ }],
681
+ onTabPressed: [{
682
+ type: HostListener,
683
+ args: ["keydown.tab"]
684
+ }]
685
+ }
686
+ });
687
+ var InlineFieldComponentModule = class InlineFieldComponentModule {
688
+ static {
689
+ this.ɵfac = i0.ɵɵngDeclareFactory({
690
+ minVersion: "12.0.0",
691
+ version: "22.2.4",
692
+ ngImport: i0,
693
+ type: InlineFieldComponentModule,
694
+ deps: [],
695
+ target: i0.ɵɵFactoryTarget.NgModule
696
+ });
697
+ }
698
+ static {
699
+ this.ɵmod = i0.ɵɵngDeclareNgModule({
700
+ minVersion: "14.0.0",
701
+ version: "22.2.4",
702
+ ngImport: i0,
703
+ type: InlineFieldComponentModule,
704
+ imports: [
705
+ CommonModule,
706
+ FormsModule,
707
+ ReactiveFormsModule,
708
+ MatInputModule,
709
+ ButtonComponentModule,
710
+ FieldComponentModule,
711
+ IconComponentModule,
712
+ InlineFieldComponent
713
+ ],
714
+ exports: [InlineFieldComponent]
715
+ });
716
+ }
717
+ static {
718
+ this.ɵinj = i0.ɵɵngDeclareInjector({
719
+ minVersion: "12.0.0",
720
+ version: "22.2.4",
721
+ ngImport: i0,
722
+ type: InlineFieldComponentModule,
723
+ imports: [
724
+ CommonModule,
725
+ FormsModule,
726
+ ReactiveFormsModule,
727
+ MatInputModule,
728
+ ButtonComponentModule,
729
+ FieldComponentModule,
730
+ IconComponentModule,
731
+ InlineFieldComponent
732
+ ]
733
+ });
734
+ }
735
+ };
736
+ i0.ɵɵngDeclareClassMetadata({
737
+ minVersion: "12.0.0",
738
+ version: "22.2.4",
739
+ ngImport: i0,
740
+ type: InlineFieldComponentModule,
741
+ decorators: [{
742
+ type: NgModule,
743
+ args: [{
744
+ imports: [
745
+ CommonModule,
746
+ FormsModule,
747
+ ReactiveFormsModule,
748
+ MatInputModule,
749
+ ButtonComponentModule,
750
+ FieldComponentModule,
751
+ IconComponentModule,
752
+ InlineFieldComponent
753
+ ],
754
+ exports: [InlineFieldComponent]
755
+ }]
756
+ }]
757
+ });
369
758
  export { InlineFieldComponent, InlineFieldComponentModule };
370
- //# sourceMappingURL=testgorilla-tgo-ui-components-inline-field.mjs.map
759
+
760
+ //# sourceMappingURL=testgorilla-tgo-ui-components-inline-field.mjs.map