@testgorilla/tgo-ui 4.1.3-beta → 4.1.3

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 (281) hide show
  1. package/components/accordion/accordion.component.d.ts +2 -2
  2. package/components/accordion/accordion.component.module.d.ts +2 -2
  3. package/components/ai-feedback/ai-feedback.module.d.ts +2 -2
  4. package/components/alert-banner/alert-banner.component.d.ts +2 -2
  5. package/components/alert-banner/alert-banner.component.module.d.ts +3 -3
  6. package/components/autocomplete/autocomplete.component.d.ts +2 -2
  7. package/components/autocomplete/autocomplete.component.module.d.ts +10 -9
  8. package/components/avatar/avatar.component.d.ts +2 -2
  9. package/components/avatar/avatar.component.module.d.ts +4 -4
  10. package/components/avatar/avatar.model.d.ts +2 -2
  11. package/components/badge/badge.component.d.ts +2 -2
  12. package/components/badge/badge.component.module.d.ts +1 -1
  13. package/components/breadcrumb/breadcrumb.component.d.ts +5 -3
  14. package/components/breadcrumb/breadcrumb.component.module.d.ts +4 -4
  15. package/components/button/button.component.d.ts +2 -2
  16. package/components/button/button.component.module.d.ts +5 -4
  17. package/components/button/button.model.d.ts +1 -1
  18. package/components/card/card.component.d.ts +2 -2
  19. package/components/card/card.component.module.d.ts +1 -1
  20. package/components/card/card.model.d.ts +1 -1
  21. package/components/checkbox/checkbox.component.d.ts +2 -2
  22. package/components/checkbox/checkbox.component.module.d.ts +8 -6
  23. package/components/checklist/checklist.component.d.ts +2 -2
  24. package/components/confirm-dialog/confirm-dialog.component.d.ts +4 -4
  25. package/components/confirm-dialog/confirm-dialog.component.module.d.ts +2 -2
  26. package/components/confirm-dialog/confirm-dialog.model.d.ts +3 -3
  27. package/components/datepicker/datepicker.component.d.ts +1 -1
  28. package/components/datepicker/datepicker.component.module.d.ts +3 -3
  29. package/components/dialog/dialog.component.d.ts +4 -4
  30. package/components/dialog/dialog.component.module.d.ts +2 -2
  31. package/components/dialog/dialog.model.d.ts +1 -1
  32. package/components/dialog/dialog.service.d.ts +1 -1
  33. package/components/divider/divider.component.d.ts +1 -1
  34. package/components/donut-chart/donut-chart.component.d.ts +5 -17
  35. package/components/dropdown/dropdown.component.d.ts +2 -2
  36. package/components/dropdown/dropdown.component.module.d.ts +6 -5
  37. package/components/elevation-shadow/elevation-shadow.component.d.ts +1 -1
  38. package/components/empty-state/empty-state.component.d.ts +3 -3
  39. package/components/empty-state/empty-state.component.module.d.ts +3 -3
  40. package/components/field/field.component.d.ts +4 -4
  41. package/components/field/field.component.module.d.ts +8 -6
  42. package/components/file-upload/file-upload.component.d.ts +1 -1
  43. package/components/file-upload/file-upload.component.module.d.ts +3 -3
  44. package/components/filter-button/filter-button.component.d.ts +3 -3
  45. package/components/filter-button/filter-button.component.module.d.ts +8 -7
  46. package/components/filter-button/filter-button.model.d.ts +1 -1
  47. package/components/gaussian-chart/gaussian-chart.component.d.ts +1 -1
  48. package/components/gaussian-chart/gaussian-chart.module.d.ts +2 -2
  49. package/components/icon/icon.component.d.ts +2 -2
  50. package/components/icon-label/icon-label.component.d.ts +2 -2
  51. package/components/icon-label/icon-label.component.module.d.ts +1 -1
  52. package/components/inline-field/inline-field.component.d.ts +3 -3
  53. package/components/inline-field/inline-field.component.module.d.ts +3 -3
  54. package/components/inline-field/inline-field.model.d.ts +1 -1
  55. package/components/logo/logo.component.d.ts +1 -1
  56. package/components/multi-input/multi-input.component.module.d.ts +8 -7
  57. package/components/navbar/mobile-navbar-side-sheet/mobile-navbar-side-sheet.component.d.ts +2 -2
  58. package/components/navbar/navbar.component.d.ts +3 -3
  59. package/components/navbar/navbar.component.module.d.ts +6 -6
  60. package/components/navbar/navbar.model.d.ts +2 -2
  61. package/components/overflow-menu/overflow-menu.component.d.ts +3 -3
  62. package/components/overflow-menu/overflow-menu.component.module.d.ts +5 -4
  63. package/components/overflow-menu/overflow-menu.model.d.ts +1 -1
  64. package/components/page-header/page-header.component.d.ts +1 -1
  65. package/components/page-header/page-header.component.module.d.ts +2 -2
  66. package/components/paginator/paginator.component.d.ts +1 -1
  67. package/components/password-criteria/password.component.module.d.ts +4 -4
  68. package/components/password-strength/password-strength.component.d.ts +2 -2
  69. package/components/password-strength/password-strength.component.module.d.ts +3 -3
  70. package/components/phone-input/phone-input.component.d.ts +1 -1
  71. package/components/phone-input/phone-input.component.module.d.ts +4 -4
  72. package/components/progress-bar/progress-bar.component.d.ts +1 -1
  73. package/components/progress-bar/progress-bar.component.module.d.ts +1 -1
  74. package/components/prompt/prompt.component.d.ts +1 -1
  75. package/components/prompt/prompt.module.d.ts +7 -7
  76. package/components/radial-progress/radial-progress.component.d.ts +2 -2
  77. package/components/radial-progress/radial-progress.component.module.d.ts +1 -1
  78. package/components/radio-button/radio-button.component.d.ts +2 -2
  79. package/components/radio-button/radio-button.component.module.d.ts +2 -2
  80. package/components/rating/rating.component.d.ts +1 -1
  81. package/components/scale/scale.component.d.ts +1 -1
  82. package/components/scale-table/scale-table.component.d.ts +1 -1
  83. package/components/segmented-bar/segmented-bar.component.d.ts +1 -1
  84. package/components/segmented-bar/segmented-bar.component.module.d.ts +2 -2
  85. package/components/segmented-bar/segmented-bar.model.d.ts +1 -1
  86. package/components/segmented-button/segmented-button.component.d.ts +1 -1
  87. package/components/selectable-card/selectable-card.component.d.ts +6 -2
  88. package/components/selectable-card/selectable-card.component.module.d.ts +2 -2
  89. package/components/side-panel/side-panel.component.d.ts +1 -1
  90. package/components/side-sheet/side-sheet.component.d.ts +1 -1
  91. package/components/side-sheet/side-sheet.component.module.d.ts +4 -4
  92. package/components/skeleton/skeleton.component.d.ts +2 -2
  93. package/components/slider/slider.component.d.ts +1 -1
  94. package/components/snackbar/snackbar.component.d.ts +2 -2
  95. package/components/snackbar/snackbar.component.module.d.ts +3 -3
  96. package/components/snackbar/snackbar.service.d.ts +1 -1
  97. package/components/spider-chart/spider-chart.component.d.ts +1 -1
  98. package/components/spider-chart/spider-chart.module.d.ts +2 -2
  99. package/components/spinner/spinner.component.d.ts +2 -2
  100. package/components/spinner/spinner.module.d.ts +2 -2
  101. package/components/step/step.component.d.ts +3 -3
  102. package/components/step/step.component.module.d.ts +2 -2
  103. package/components/stepper/stepper.component.d.ts +1 -1
  104. package/components/stepper/stepper.component.module.d.ts +3 -3
  105. package/components/stepper/stepper.model.d.ts +1 -1
  106. package/components/table/table.component.d.ts +1 -1
  107. package/components/table/table.component.module.d.ts +5 -5
  108. package/components/tabs/tab.directive.d.ts +1 -1
  109. package/components/tabs/tabs.component.d.ts +1 -1
  110. package/components/tabs/tabs.component.module.d.ts +3 -3
  111. package/components/tabs/tabs.model.d.ts +1 -1
  112. package/components/tag/tag.component.d.ts +2 -2
  113. package/components/tag/tag.component.module.d.ts +3 -3
  114. package/components/toggle/toggle.component.d.ts +1 -1
  115. package/components/toggle/toggle.component.module.d.ts +5 -4
  116. package/components/tooltip/tooltip.component.d.ts +1 -1
  117. package/components/tooltip/tooltip.component.module.d.ts +3 -2
  118. package/components/universal-skills-report/universal-skills-report.component.d.ts +2 -2
  119. package/components/universal-skills-report/universal-skills-report.component.module.d.ts +3 -3
  120. package/components/universal-skills-spider-charts/universal-skills-spider-charts.component.d.ts +2 -2
  121. package/components/universal-skills-spider-charts/universal-skills-spider-charts.component.module.d.ts +4 -4
  122. package/components/validation-error/validation-error.component.d.ts +1 -1
  123. package/components/validation-error/validation-error.module.d.ts +2 -2
  124. package/fesm2022/testgorilla-tgo-ui.mjs +22749 -3564
  125. package/fesm2022/testgorilla-tgo-ui.mjs.map +1 -1
  126. package/models/application-theme.model.d.ts +1 -0
  127. package/package.json +9 -142
  128. package/{components/core → pipes}/ui-translate.pipe.d.ts +1 -1
  129. package/projects/tgo-canopy-ui/assets/i18n/da-dk.json +820 -0
  130. package/projects/tgo-canopy-ui/assets/i18n/de.json +820 -0
  131. package/projects/tgo-canopy-ui/assets/i18n/en.json +829 -0
  132. package/projects/tgo-canopy-ui/assets/i18n/es.json +820 -0
  133. package/projects/tgo-canopy-ui/assets/i18n/fr.json +820 -0
  134. package/projects/tgo-canopy-ui/assets/i18n/it-it.json +820 -0
  135. package/projects/tgo-canopy-ui/assets/i18n/ja-jp.json +820 -0
  136. package/projects/tgo-canopy-ui/assets/i18n/nb-no.json +820 -0
  137. package/projects/tgo-canopy-ui/assets/i18n/nl.json +820 -0
  138. package/projects/tgo-canopy-ui/assets/i18n/pl-pl.json +820 -0
  139. package/projects/tgo-canopy-ui/assets/i18n/pt-br.json +820 -0
  140. package/projects/tgo-canopy-ui/assets/i18n/sv-se.json +820 -0
  141. package/public-api.d.ts +87 -0
  142. package/utils/alert-bars.utils.d.ts +1 -1
  143. package/components/autocomplete/index.d.ts +0 -5
  144. package/components/autocomplete/public-api.d.ts +0 -4
  145. package/components/avatar/index.d.ts +0 -5
  146. package/components/avatar/public-api.d.ts +0 -4
  147. package/components/badge/index.d.ts +0 -5
  148. package/components/badge/public-api.d.ts +0 -4
  149. package/components/button/color-contrast.d.ts +0 -28
  150. package/components/button/index.d.ts +0 -5
  151. package/components/button/public-api.d.ts +0 -5
  152. package/components/card/index.d.ts +0 -5
  153. package/components/card/public-api.d.ts +0 -4
  154. package/components/checkbox/index.d.ts +0 -5
  155. package/components/checkbox/public-api.d.ts +0 -4
  156. package/components/core/application-theme.model.d.ts +0 -7
  157. package/components/core/has-validation-error.pipe.d.ts +0 -15
  158. package/components/core/index.d.ts +0 -5
  159. package/components/core/keyboard-events.model.d.ts +0 -11
  160. package/components/core/public-api.d.ts +0 -12
  161. package/components/core/select-text.directive.d.ts +0 -19
  162. package/components/divider/index.d.ts +0 -5
  163. package/components/divider/public-api.d.ts +0 -4
  164. package/components/dropdown/index.d.ts +0 -5
  165. package/components/dropdown/public-api.d.ts +0 -4
  166. package/components/elevation-shadow/index.d.ts +0 -5
  167. package/components/elevation-shadow/public-api.d.ts +0 -3
  168. package/components/empty-state/index.d.ts +0 -5
  169. package/components/empty-state/public-api.d.ts +0 -4
  170. package/components/field/index.d.ts +0 -5
  171. package/components/field/public-api.d.ts +0 -4
  172. package/components/filter-button/index.d.ts +0 -5
  173. package/components/filter-button/public-api.d.ts +0 -4
  174. package/components/icon/index.d.ts +0 -5
  175. package/components/icon/public-api.d.ts +0 -5
  176. package/components/inline-field/index.d.ts +0 -5
  177. package/components/inline-field/public-api.d.ts +0 -4
  178. package/components/logo/index.d.ts +0 -5
  179. package/components/logo/public-api.d.ts +0 -4
  180. package/components/paginator/index.d.ts +0 -5
  181. package/components/paginator/public-api.d.ts +0 -3
  182. package/components/progress-bar/index.d.ts +0 -5
  183. package/components/progress-bar/public-api.d.ts +0 -3
  184. package/components/radial-progress/index.d.ts +0 -5
  185. package/components/radial-progress/public-api.d.ts +0 -4
  186. package/components/radio-button/index.d.ts +0 -5
  187. package/components/radio-button/public-api.d.ts +0 -4
  188. package/components/rating/index.d.ts +0 -5
  189. package/components/rating/public-api.d.ts +0 -3
  190. package/components/scale/index.d.ts +0 -5
  191. package/components/scale/public-api.d.ts +0 -3
  192. package/components/segmented-bar/index.d.ts +0 -5
  193. package/components/segmented-bar/public-api.d.ts +0 -4
  194. package/components/segmented-button/index.d.ts +0 -5
  195. package/components/segmented-button/public-api.d.ts +0 -4
  196. package/components/skeleton/index.d.ts +0 -5
  197. package/components/skeleton/public-api.d.ts +0 -3
  198. package/components/slider/index.d.ts +0 -5
  199. package/components/slider/public-api.d.ts +0 -4
  200. package/components/spinner/index.d.ts +0 -5
  201. package/components/spinner/public-api.d.ts +0 -4
  202. package/components/tag/index.d.ts +0 -5
  203. package/components/tag/public-api.d.ts +0 -4
  204. package/components/toggle/index.d.ts +0 -5
  205. package/components/toggle/public-api.d.ts +0 -3
  206. package/components/tooltip/index.d.ts +0 -5
  207. package/components/tooltip/public-api.d.ts +0 -5
  208. package/components/validation-error/index.d.ts +0 -5
  209. package/components/validation-error/public-api.d.ts +0 -3
  210. package/fesm2022/testgorilla-tgo-ui-components-autocomplete.mjs +0 -1045
  211. package/fesm2022/testgorilla-tgo-ui-components-autocomplete.mjs.map +0 -1
  212. package/fesm2022/testgorilla-tgo-ui-components-avatar.mjs +0 -173
  213. package/fesm2022/testgorilla-tgo-ui-components-avatar.mjs.map +0 -1
  214. package/fesm2022/testgorilla-tgo-ui-components-badge.mjs +0 -180
  215. package/fesm2022/testgorilla-tgo-ui-components-badge.mjs.map +0 -1
  216. package/fesm2022/testgorilla-tgo-ui-components-button.mjs +0 -635
  217. package/fesm2022/testgorilla-tgo-ui-components-button.mjs.map +0 -1
  218. package/fesm2022/testgorilla-tgo-ui-components-card.mjs +0 -164
  219. package/fesm2022/testgorilla-tgo-ui-components-card.mjs.map +0 -1
  220. package/fesm2022/testgorilla-tgo-ui-components-checkbox.mjs +0 -402
  221. package/fesm2022/testgorilla-tgo-ui-components-checkbox.mjs.map +0 -1
  222. package/fesm2022/testgorilla-tgo-ui-components-core.mjs +0 -10807
  223. package/fesm2022/testgorilla-tgo-ui-components-core.mjs.map +0 -1
  224. package/fesm2022/testgorilla-tgo-ui-components-divider.mjs +0 -88
  225. package/fesm2022/testgorilla-tgo-ui-components-divider.mjs.map +0 -1
  226. package/fesm2022/testgorilla-tgo-ui-components-dropdown.mjs +0 -434
  227. package/fesm2022/testgorilla-tgo-ui-components-dropdown.mjs.map +0 -1
  228. package/fesm2022/testgorilla-tgo-ui-components-elevation-shadow.mjs +0 -75
  229. package/fesm2022/testgorilla-tgo-ui-components-elevation-shadow.mjs.map +0 -1
  230. package/fesm2022/testgorilla-tgo-ui-components-empty-state.mjs +0 -326
  231. package/fesm2022/testgorilla-tgo-ui-components-empty-state.mjs.map +0 -1
  232. package/fesm2022/testgorilla-tgo-ui-components-field.mjs +0 -638
  233. package/fesm2022/testgorilla-tgo-ui-components-field.mjs.map +0 -1
  234. package/fesm2022/testgorilla-tgo-ui-components-filter-button.mjs +0 -314
  235. package/fesm2022/testgorilla-tgo-ui-components-filter-button.mjs.map +0 -1
  236. package/fesm2022/testgorilla-tgo-ui-components-icon.mjs +0 -1496
  237. package/fesm2022/testgorilla-tgo-ui-components-icon.mjs.map +0 -1
  238. package/fesm2022/testgorilla-tgo-ui-components-inline-field.mjs +0 -367
  239. package/fesm2022/testgorilla-tgo-ui-components-inline-field.mjs.map +0 -1
  240. package/fesm2022/testgorilla-tgo-ui-components-logo.mjs +0 -218
  241. package/fesm2022/testgorilla-tgo-ui-components-logo.mjs.map +0 -1
  242. package/fesm2022/testgorilla-tgo-ui-components-paginator.mjs +0 -110
  243. package/fesm2022/testgorilla-tgo-ui-components-paginator.mjs.map +0 -1
  244. package/fesm2022/testgorilla-tgo-ui-components-progress-bar.mjs +0 -128
  245. package/fesm2022/testgorilla-tgo-ui-components-progress-bar.mjs.map +0 -1
  246. package/fesm2022/testgorilla-tgo-ui-components-radial-progress.mjs +0 -152
  247. package/fesm2022/testgorilla-tgo-ui-components-radial-progress.mjs.map +0 -1
  248. package/fesm2022/testgorilla-tgo-ui-components-radio-button.mjs +0 -373
  249. package/fesm2022/testgorilla-tgo-ui-components-radio-button.mjs.map +0 -1
  250. package/fesm2022/testgorilla-tgo-ui-components-rating.mjs +0 -150
  251. package/fesm2022/testgorilla-tgo-ui-components-rating.mjs.map +0 -1
  252. package/fesm2022/testgorilla-tgo-ui-components-scale.mjs +0 -158
  253. package/fesm2022/testgorilla-tgo-ui-components-scale.mjs.map +0 -1
  254. package/fesm2022/testgorilla-tgo-ui-components-segmented-bar.mjs +0 -137
  255. package/fesm2022/testgorilla-tgo-ui-components-segmented-bar.mjs.map +0 -1
  256. package/fesm2022/testgorilla-tgo-ui-components-segmented-button.mjs +0 -128
  257. package/fesm2022/testgorilla-tgo-ui-components-segmented-button.mjs.map +0 -1
  258. package/fesm2022/testgorilla-tgo-ui-components-skeleton.mjs +0 -81
  259. package/fesm2022/testgorilla-tgo-ui-components-skeleton.mjs.map +0 -1
  260. package/fesm2022/testgorilla-tgo-ui-components-slider.mjs +0 -274
  261. package/fesm2022/testgorilla-tgo-ui-components-slider.mjs.map +0 -1
  262. package/fesm2022/testgorilla-tgo-ui-components-spinner.mjs +0 -108
  263. package/fesm2022/testgorilla-tgo-ui-components-spinner.mjs.map +0 -1
  264. package/fesm2022/testgorilla-tgo-ui-components-tag.mjs +0 -239
  265. package/fesm2022/testgorilla-tgo-ui-components-tag.mjs.map +0 -1
  266. package/fesm2022/testgorilla-tgo-ui-components-toggle.mjs +0 -216
  267. package/fesm2022/testgorilla-tgo-ui-components-toggle.mjs.map +0 -1
  268. package/fesm2022/testgorilla-tgo-ui-components-tooltip.mjs +0 -272
  269. package/fesm2022/testgorilla-tgo-ui-components-tooltip.mjs.map +0 -1
  270. package/fesm2022/testgorilla-tgo-ui-components-validation-error.mjs +0 -79
  271. package/fesm2022/testgorilla-tgo-ui-components-validation-error.mjs.map +0 -1
  272. /package/{components/core → directives}/digits-only.directive.d.ts +0 -0
  273. /package/{components/core → directives}/ellipse-text.directive.d.ts +0 -0
  274. /package/{components/autocomplete → directives}/select-text.directive.d.ts +0 -0
  275. /package/{components/core → models}/checkbox.model.d.ts +0 -0
  276. /package/{components/avatar → pipes}/name-initials.pipe.d.ts +0 -0
  277. /package/{components/icon → services}/icons.service.d.ts +0 -0
  278. /package/{components/core → utils}/autocomplete-utils.d.ts +0 -0
  279. /package/{components/core → utils}/hex-to-rgb.d.ts +0 -0
  280. /package/{components/core → utils/localization}/language.model.d.ts +0 -0
  281. /package/{components/core → utils/localization}/language.service.d.ts +0 -0
@@ -1,1045 +0,0 @@
1
- import * as i11 from '@angular/cdk/scrolling';
2
- import { CdkVirtualScrollViewport, CdkVirtualForOf, CdkFixedSizeVirtualScroll } from '@angular/cdk/scrolling';
3
- import * as i4 from '@angular/common';
4
- import { isPlatformBrowser, CommonModule } from '@angular/common';
5
- import * as i0 from '@angular/core';
6
- import { HostListener, Input, Directive, Pipe, EventEmitter, signal, PLATFORM_ID, booleanAttribute, ViewChild, Output, HostBinding, Optional, Inject, Self, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
7
- import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
8
- import { take, map, filter, throttleTime, ReplaySubject, BehaviorSubject, startWith } from 'rxjs';
9
- import * as i15 from '@testgorilla/tgo-ui/components/core';
10
- import { AutocompleteUtils, IKeyboardEvent, UiTranslatePipe, HasValidationErrorPipe } from '@testgorilla/tgo-ui/components/core';
11
- import * as i1 from '@angular/platform-browser';
12
- import * as i2 from '@angular/forms';
13
- import { FormsModule } from '@angular/forms';
14
- import * as i3 from '@angular/cdk/a11y';
15
- import * as i5 from '@angular/material/form-field';
16
- import { MatFormFieldModule } from '@angular/material/form-field';
17
- import * as i6 from '@angular/material/autocomplete';
18
- import { MatAutocompleteModule } from '@angular/material/autocomplete';
19
- import * as i7 from '@angular/material/input';
20
- import { MatInputModule } from '@angular/material/input';
21
- import * as i8 from '@testgorilla/tgo-ui/components/tag';
22
- import { TagComponentModule } from '@testgorilla/tgo-ui/components/tag';
23
- import * as i9 from '@testgorilla/tgo-ui/components/icon';
24
- import { IconComponentModule } from '@testgorilla/tgo-ui/components/icon';
25
- import * as i10 from '@testgorilla/tgo-ui/components/validation-error';
26
- import { ValidationErrorModule } from '@testgorilla/tgo-ui/components/validation-error';
27
- import * as i13 from '@testgorilla/tgo-ui/components/spinner';
28
- import { SpinnerComponentModule } from '@testgorilla/tgo-ui/components/spinner';
29
- import { MatChipsModule } from '@angular/material/chips';
30
-
31
- var Autocomplete;
32
- (function (Autocomplete) {
33
- Autocomplete["SINGLE"] = "single";
34
- Autocomplete["MULTI"] = "multi";
35
- Autocomplete["LARGE"] = "large";
36
- })(Autocomplete || (Autocomplete = {}));
37
- var Padding;
38
- (function (Padding) {
39
- Padding[Padding["AUTOCOMPLETE_CONTAINER"] = 40] = "AUTOCOMPLETE_CONTAINER";
40
- Padding[Padding["DROPDOWN_CONTAINER"] = 60] = "DROPDOWN_CONTAINER";
41
- Padding[Padding["AUTOCOMPLETE_SPACE_CONTAINER"] = 65] = "AUTOCOMPLETE_SPACE_CONTAINER";
42
- Padding[Padding["DROPDOWN_SPACE_CONTAINER"] = 85] = "DROPDOWN_SPACE_CONTAINER";
43
- })(Padding || (Padding = {}));
44
- const AMOUNT_TAG_WIDTH = 33;
45
- var Timeout;
46
- (function (Timeout) {
47
- Timeout[Timeout["VIEW_INITIALIZED_AFTER_ACTION"] = 150] = "VIEW_INITIALIZED_AFTER_ACTION";
48
- Timeout[Timeout["VIEW_INITIALIZED_COMPONENT_LOAD"] = 600] = "VIEW_INITIALIZED_COMPONENT_LOAD";
49
- })(Timeout || (Timeout = {}));
50
- var DropdownVariation;
51
- (function (DropdownVariation) {
52
- DropdownVariation["AUTOCOMPLETE"] = "autocomplete";
53
- DropdownVariation["DROPDOWN"] = "dropdown";
54
- })(DropdownVariation || (DropdownVariation = {}));
55
-
56
- class PreventInputDirective {
57
- onKeyDown(event) {
58
- const allowedKeys = [
59
- 'ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown', 'Backspace', 'Tab', 'Delete', 'Control', 'Shift', 'Alt'
60
- ];
61
- if (!allowedKeys.includes(event.key) && !event.ctrlKey && !event.metaKey && this.uiPreventInput) {
62
- event.preventDefault();
63
- }
64
- }
65
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: PreventInputDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
66
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.17", type: PreventInputDirective, isStandalone: true, selector: "[uiPreventInput]", inputs: { uiPreventInput: "uiPreventInput" }, host: { listeners: { "keydown": "onKeyDown($event)" } }, ngImport: i0 }); }
67
- }
68
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: PreventInputDirective, decorators: [{
69
- type: Directive,
70
- args: [{
71
- selector: '[uiPreventInput]',
72
- standalone: true
73
- }]
74
- }], propDecorators: { uiPreventInput: [{
75
- type: Input
76
- }], onKeyDown: [{
77
- type: HostListener,
78
- args: ['keydown', ['$event']]
79
- }] } });
80
-
81
- /**
82
- * the SelectTextDirective provides a dynamic way to highlight or style specific text within an element.
83
- */
84
- class SelectTextDirective {
85
- constructor(el) {
86
- this.el = el;
87
- }
88
- /**
89
- * this method utilizes setTimeout to defer the execution until the next tick of the event loop.
90
- * The text content of the element is modified by wrapping occurrences of the specified selectText with a <span> element,
91
- * applying a bold font-weight style.
92
- */
93
- setTextColor() {
94
- const textElement = this.el.nativeElement;
95
- setTimeout(() => {
96
- const { textContent } = textElement;
97
- if (this.selectText && textContent) {
98
- textElement.innerHTML = textContent.replace(new RegExp(this.selectText, 'gmi'), match => `<span style="font-weight: bold" >${match}</span>`);
99
- }
100
- }, 0);
101
- }
102
- ngOnChanges() {
103
- if (this.selectText) {
104
- this.setTextColor();
105
- }
106
- }
107
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: SelectTextDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
108
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.17", type: SelectTextDirective, isStandalone: false, selector: "[selectText]", inputs: { selectText: "selectText" }, usesOnChanges: true, ngImport: i0 }); }
109
- }
110
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: SelectTextDirective, decorators: [{
111
- type: Directive,
112
- args: [{
113
- selector: '[selectText]',
114
- standalone: false
115
- }]
116
- }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { selectText: [{
117
- type: Input
118
- }] } });
119
-
120
- /**
121
- * the TransformItemPipe is designed to selectively extract and return values from objects based on a specified field,
122
- * providing a way to transform and display data a template.
123
- */
124
- class TransformItemPipe {
125
- transform(value, field, getValueList = false) {
126
- if (getValueList) {
127
- return AutocompleteUtils.isArray(value) ? value.map((item) => field ? item[field] : item) : field ? value?.[field] : value;
128
- }
129
- if (AutocompleteUtils.isPrimitive(value)) {
130
- return value;
131
- }
132
- else if (!AutocompleteUtils.isPrimitive(value) && field && (value?.[field] || value[0][field])) {
133
- return value?.[field] || value[0][field];
134
- }
135
- else {
136
- AutocompleteUtils.throwInvalidSetupError();
137
- }
138
- }
139
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TransformItemPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
140
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.17", ngImport: i0, type: TransformItemPipe, isStandalone: false, name: "transformItem" }); }
141
- }
142
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TransformItemPipe, decorators: [{
143
- type: Pipe,
144
- args: [{
145
- name: 'transformItem',
146
- standalone: false
147
- }]
148
- }] });
149
-
150
- /**
151
- * The purpose of this pipe is to determine if the value is present in the values array.
152
- * If values is an array, the method uses the includes method to check for inclusion.
153
- * If values is not an array, it checks for strict equality between value and values.
154
- */
155
- class IncludesPipe {
156
- transform(value, values, valueField) {
157
- return Array.isArray(values)
158
- ? !!values?.find(v => (valueField ? v?.[valueField] === value?.[valueField] : value === v))
159
- : valueField
160
- ? value?.[valueField] === values?.[valueField]
161
- : value === values;
162
- }
163
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: IncludesPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
164
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.17", ngImport: i0, type: IncludesPipe, isStandalone: false, name: "includes" }); }
165
- }
166
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: IncludesPipe, decorators: [{
167
- type: Pipe,
168
- args: [{
169
- name: 'includes',
170
- standalone: false
171
- }]
172
- }] });
173
-
174
- // eslint-disable-next-line @angular-eslint/no-conflicting-lifecycle
175
- class AutocompleteComponent {
176
- /**
177
- * @property value
178
- * @description The selected value(s) in the autocomplete.
179
- * @memberof AutocompleteComponent
180
- */
181
- set itemValue(v) {
182
- this.value = AutocompleteUtils.isArray(v) ? v : v ? [v] : [];
183
- }
184
- /**
185
- * Input field errors
186
- *
187
- * @type {string[]}
188
- * @memberof AutocompleteComponent
189
- */
190
- set errors(errors) {
191
- this.safeErrors = errors?.filter(Boolean).map(error => this.domSanitizer.bypassSecurityTrustHtml(error));
192
- }
193
- set cdkVirtualScrollViewport(viewport) {
194
- if (this.savedVirtualScrollSubscription) {
195
- this.savedVirtualScrollSubscription.unsubscribe();
196
- }
197
- if (viewport) {
198
- this.savedVirtualScrollViewport = viewport;
199
- if (this.infiniteScroll) {
200
- setTimeout(() => {
201
- this.inputValueSearch$.pipe(take(1)).subscribe(searchValue => {
202
- this.isFilteredViewport = !!searchValue;
203
- });
204
- }, 0);
205
- this.savedVirtualScrollSubscription = this.savedVirtualScrollViewport
206
- .elementScrolled()
207
- .pipe(map(() => this.savedVirtualScrollViewport.measureScrollOffset('bottom')), filter(offset => offset < this.savedVirtualScrollViewport.getViewportSize() * 0.2), throttleTime(200), takeUntilDestroyed(this.destroyRef))
208
- .subscribe(() => {
209
- if (this.isFilteredViewport) {
210
- this.scrollViewportBottomReachedFiltered.emit();
211
- }
212
- else {
213
- this.scrollViewportBottomReached.emit();
214
- }
215
- });
216
- }
217
- }
218
- }
219
- constructor(defaultAppTheme, cdr, domSanitizer, ngControl, platformId, el, focusMonitor, destroyRef, ngZone) {
220
- this.defaultAppTheme = defaultAppTheme;
221
- this.cdr = cdr;
222
- this.domSanitizer = domSanitizer;
223
- this.ngControl = ngControl;
224
- this.platformId = platformId;
225
- this.el = el;
226
- this.focusMonitor = focusMonitor;
227
- this.destroyRef = destroyRef;
228
- this.ngZone = ngZone;
229
- /**
230
- * @property itemsList
231
- * @description The list of items to display in the autocomplete.
232
- * @memberof AutocompleteComponent
233
- */
234
- this.itemsList = [];
235
- /**
236
- * @property suggestionsList
237
- * @description The list of suggestions to display in the autocomplete.
238
- * @memberof AutocompleteComponent
239
- */
240
- this.suggestionsList = [];
241
- /**
242
- * @property disabled
243
- * @description If `true`, the autocomplete is disabled.
244
- * @memberof AutocompleteComponent
245
- */
246
- this.disabled = false;
247
- /**
248
- * @property allowAdd
249
- * @description If `true`, allows adding new values to the autocomplete.
250
- * @memberof AutocompleteComponent
251
- */
252
- this.allowAdd = true;
253
- /**
254
- * @property textField
255
- * @description The field to be used as the display text in the autocomplete.
256
- * @memberof AutocompleteComponent
257
- */
258
- this.textField = '';
259
- /**
260
- * @property valueField
261
- * @description The field to be used as the value in the autocomplete.
262
- * @memberof AutocompleteComponent
263
- */
264
- this.valueField = '';
265
- /**
266
- * @property label
267
- * @description The label for the autocomplete input.
268
- * @memberof AutocompleteComponent
269
- */
270
- this.label = '';
271
- /**
272
- * @property placeholder
273
- * @description The placeholder for the autocomplete input.
274
- * @memberof AutocompleteComponent
275
- */
276
- this.placeholder = '';
277
- /**
278
- * @property type
279
- * @description The type of the autocomplete ('single', 'multi', etc.).
280
- * @memberof AutocompleteComponent
281
- */
282
- this.type = 'multi';
283
- /**
284
- * @property minCharactersSearch
285
- * @description The minimum characters to trigger search.
286
- * @memberof AutocompleteComponent
287
- */
288
- this.minCharactersSearch = 3;
289
- /**
290
- * @property variant
291
- * @description The variant of Autocomplete
292
- * @memberof AutocompleteComponent
293
- */
294
- this.variant = DropdownVariation.AUTOCOMPLETE;
295
- /**
296
- * Show reserved content below form field
297
- * @property showBottomContent
298
- * @type {boolean}
299
- * @memberof AutocompleteComponent
300
- */
301
- this.showBottomContent = true;
302
- /**
303
- * Return full object if true
304
- * @property valuePrimitive
305
- * @type {boolean}
306
- * @memberof AutocompleteComponent
307
- */
308
- this.valuePrimitive = false;
309
- /**
310
- * Indicator of the autocomplete width
311
- * @property fullWidth
312
- * @type {boolean}
313
- * @memberof AutocompleteComponent
314
- */
315
- this.fullWidth = false;
316
- /**
317
- *
318
- * Defines the application theme
319
- *
320
- * @type {ApplicationTheme}
321
- * @memberof AutocompleteComponent
322
- */
323
- this.applicationTheme = 'light';
324
- /**
325
- * Color of the option hover.
326
- * Defaults to Test Gorilla primary color.
327
- *
328
- * @type {string}
329
- * @memberof AutocompleteComponent
330
- */
331
- this.companyColor = '#FFF2FC';
332
- /**
333
- * Hide in-build errors for Reactive Forms
334
- *
335
- * @type {number}
336
- * @memberof AutocompleteComponent
337
- */
338
- this.hideBuiltInErrors = false;
339
- /**
340
- * Hide label in errors
341
- *
342
- * @type {number}
343
- * @memberof AutocompleteComponent
344
- */
345
- this.hideLabelInErrors = false;
346
- /**
347
- * Sets dropdown list to virtual scroll mode
348
- *
349
- * @type {boolean}
350
- * @memberof AutocompleteComponent
351
- */
352
- this.virtualScroll = false;
353
- /**
354
- * @property dropdownPanelClass
355
- * @description Sets class on autocomplete dropdown
356
- * @memberof AutocompleteComponent
357
- */
358
- this.dropdownPanelClass = '';
359
- /**
360
- * @property closeOnScroll
361
- * @description Defines if dropdown should be closed on page scroll
362
- * @memberof AutocompleteComponent
363
- */
364
- this.closeOnScroll = false;
365
- /**
366
- * @property AutocompleteSize
367
- * @description Defines the size of the autocomplete. Small changes the tags to counter; medium is default.
368
- * @memberof AutocompleteComponent
369
- */
370
- this.size = 'medium';
371
- /**
372
- * @property allowUserInput
373
- * @description If `true`, allows the user to input custom values in the autocomplete.
374
- * @type {boolean}
375
- * @memberof AutocompleteComponent
376
- */
377
- this.allowUserInput = true;
378
- /**
379
- * @property clearable
380
- * @description If `true`, allows the user to clear the input values
381
- * @type {boolean}
382
- * @memberof AutocompleteComponent
383
- */
384
- this.clearable = true;
385
- /**
386
- * @property exactMatchSelect
387
- * @description If `true`, allows to select the exact match from the suggestions list
388
- * @type {boolean}
389
- * @memberof AutocompleteComponent
390
- */
391
- this.exactMatchSelect = true;
392
- /**
393
- * @property maxItemSelected
394
- * @description Sets the maximum number of items that can be selected in the autocomplete
395
- * @type {boolean}
396
- * @memberof AutocompleteComponent
397
- */
398
- this.maxItemSelected = Infinity;
399
- this.isDynamicFilteringEnabled = false;
400
- this.dynamicFilterLoading = false;
401
- this.dynamicFilteredList = null;
402
- this.infiniteScroll = false;
403
- this.hasMoreOptionsForInfiniteScroll = true;
404
- this.selectionChange = new EventEmitter();
405
- this.searchTextChange = new EventEmitter();
406
- this.blur = new EventEmitter();
407
- this.focus = new EventEmitter();
408
- /**
409
- * @property scrollViewportBottomReached
410
- * @description Emits when the bottom of the unfiltered list is reached during infinite scroll
411
- * @memberof AutocompleteComponent
412
- */
413
- this.scrollViewportBottomReached = new EventEmitter();
414
- /**
415
- * @property scrollViewportBottomReachedFiltered
416
- * @description Emits when the bottom of the filtered list is reached during infinite scroll
417
- * @memberof AutocompleteComponent
418
- */
419
- this.scrollViewportBottomReachedFiltered = new EventEmitter();
420
- this.safeErrors = [];
421
- this.inputValue = '';
422
- this.isInputFocus = false;
423
- this.autocompleteType = Autocomplete;
424
- this.isOverLapping = false;
425
- this.isOverlapChecking = true;
426
- this.overlapIndex = 0;
427
- this.inputOpacity = 1;
428
- this.firstTagMaxWidth = 0;
429
- this.inputValueSearch$ = new ReplaySubject(1);
430
- this.userInput$ = new ReplaySubject(1);
431
- this.dynamicFilteredList$ = new BehaviorSubject(null);
432
- this.filteredItemsList$ = this.inputValueSearch$.pipe(startWith(''), map(inputValue => inputValue.length
433
- ? AutocompleteUtils.filterItems(this.itemsList, inputValue, this.textField, this.isGrouped)
434
- : null));
435
- this.filteredSuggestionList$ = this.inputValueSearch$.pipe(map(inputValue => inputValue.length ? AutocompleteUtils.filterItems(this.suggestionsList, inputValue, this.textField) : null));
436
- this.isFilteredViewport = false;
437
- this.scrollEvent = (event) => {
438
- const isNotAutocompleteScroll = !event.target?.id?.includes('mat-autocomplete-') &&
439
- !event.target?.parentElement?.id?.includes('mat-autocomplete-') &&
440
- !event.target?.classList?.contains('mat-mdc-autocomplete-trigger');
441
- if (this.autocomplete.panelOpen && isNotAutocompleteScroll) {
442
- this.autocomplete.closePanel();
443
- }
444
- };
445
- this.searchResult$ = this.inputValueSearch$.pipe(map(inputValue => !!inputValue.trim()));
446
- this.translationContext = 'AUTOCOMPLETE.';
447
- this.AutocompleteUtils = AutocompleteUtils;
448
- this.isPlatform = isPlatformBrowser(this.platformId);
449
- this.keyboardFocused = signal(false);
450
- this.isAlreadyAdded = false;
451
- this.onChange = (_) => { };
452
- this.onTouch = () => { };
453
- this.trackByFn = (index, value) => value.changingThisBreaksApplicationSecurity;
454
- if (this.ngControl != null) {
455
- this.ngControl.valueAccessor = this;
456
- }
457
- if (defaultAppTheme) {
458
- this.applicationTheme = defaultAppTheme;
459
- }
460
- this.subscriberDisplayChange();
461
- }
462
- ngOnInit() {
463
- if (this.isDynamicFilteringEnabled) {
464
- this.filteredItemsList$ = this.dynamicFilteredList$;
465
- }
466
- }
467
- /**
468
- * Used to mark component view as dirty when touched programmatically with markAsTouched/markAllAsTouched or errors
469
- * to display validation errors that might happen (e.g. required)
470
- */
471
- // eslint-disable-next-line @angular-eslint/no-conflicting-lifecycle
472
- ngDoCheck() {
473
- if (this.ngControl?.touched || this.ngControl?.errors) {
474
- this.cdr.markForCheck();
475
- }
476
- }
477
- // eslint-disable-next-line @angular-eslint/no-conflicting-lifecycle
478
- ngOnChanges(changes) {
479
- if (this.isDynamicFilteringEnabled) {
480
- const dynamicFilteredList = changes['dynamicFilteredList']?.currentValue;
481
- if (dynamicFilteredList) {
482
- this.dynamicFilteredList$.next(dynamicFilteredList);
483
- }
484
- return;
485
- }
486
- if (changes['itemsList'] || changes['suggestionsList'] || changes['valueField']) {
487
- this.itemsList = this.isGrouped
488
- ? this.itemsList
489
- : AutocompleteUtils.excludeSuggestions(this.itemsList, this.suggestionsList, this.valueField);
490
- this.initValue();
491
- }
492
- if (this.isPlatform && changes['companyColor']) {
493
- this.setCompanyColorVariable();
494
- }
495
- }
496
- // eslint-disable-next-line @angular-eslint/no-conflicting-lifecycle
497
- ngAfterViewInit() {
498
- if (this.type !== Autocomplete.LARGE) {
499
- this.checkOverlap(Timeout.VIEW_INITIALIZED_COMPONENT_LOAD, true);
500
- }
501
- this.isPlatform && this.setCompanyColorVariable();
502
- if (this.closeOnScroll) {
503
- window.addEventListener('scroll', this.scrollEvent, true);
504
- }
505
- this.focusMonitor
506
- .monitor(this.matInput)
507
- .pipe(takeUntilDestroyed(this.destroyRef))
508
- .subscribe(origin => this.ngZone.run(() => {
509
- this.keyboardFocused.set(origin === 'keyboard');
510
- }));
511
- this.matInput.nativeElement.onkeydown = this.onKeydown.bind(this);
512
- }
513
- // eslint-disable-next-line @angular-eslint/no-conflicting-lifecycle
514
- ngOnDestroy() {
515
- window.removeEventListener('scroll', this.scrollEvent, true);
516
- if (this.observer) {
517
- this.observer.disconnect();
518
- }
519
- }
520
- registerOnChange(fn) {
521
- this.onChange = fn;
522
- }
523
- registerOnTouched(fn) {
524
- this.onTouch = fn;
525
- }
526
- setDisabledState(isDisabled) {
527
- this.disabled = isDisabled;
528
- this.cdr.markForCheck();
529
- }
530
- writeValue(value) {
531
- if (this.valuePrimitive && this.textField && this.valueField) {
532
- if (this.type === Autocomplete.SINGLE) {
533
- this.value = this.itemsList.find(item => item[this.valueField] === value);
534
- }
535
- else {
536
- this.value = AutocompleteUtils.isArray(value)
537
- ? this.itemsList.filter(item => value.find((v) => v === item[this.valueField]))
538
- : [this.itemsList.find(item => item[this.valueField] === value)];
539
- this.value = this.value.filter(Boolean).length ? this.value : null;
540
- }
541
- }
542
- else {
543
- this.value = value;
544
- }
545
- this.initValue();
546
- this.cdr.markForCheck();
547
- }
548
- get isGrouped() {
549
- return this.itemsList?.some((item) => item.isGroup);
550
- }
551
- onOptionSelected(event) {
552
- const inputValue = event.option.value;
553
- const itemValue = AutocompleteUtils.createValueItem(inputValue, this.textField, this.valueField);
554
- this.addNewValue(itemValue);
555
- if (this.type === this.autocompleteType.MULTI) {
556
- this.checkOverlap();
557
- }
558
- queueMicrotask(() => {
559
- if (this.type !== this.autocompleteType.SINGLE) {
560
- this.inputValue = '';
561
- }
562
- else {
563
- this.inputValue = AutocompleteUtils.transformDisplayValue(this.value, this.textField);
564
- }
565
- this.cdr.markForCheck();
566
- });
567
- this.onUpdate();
568
- }
569
- onOptionRemoved(option) {
570
- setTimeout(() => this.autocomplete.closePanel(), 0);
571
- const foundValue = this.value.find((v) => (this.compareWith ? this.compareWith(v, option) : v === option));
572
- if (foundValue) {
573
- this.value = this.value.filter((v) => (this.compareWith ? !this.compareWith(v, option) : v !== option));
574
- this.matAutocomplete.options.forEach(option => {
575
- if (option.value?.value === foundValue.value) {
576
- option.deselect();
577
- }
578
- });
579
- }
580
- if (this.type === this.autocompleteType.MULTI) {
581
- this.checkOverlap();
582
- }
583
- if (!this.value.length) {
584
- this.inputValue = '';
585
- }
586
- this.onUpdate();
587
- }
588
- onInputChange(event) {
589
- const inputValue = event.target.value;
590
- this.userInput$.next(inputValue);
591
- if (inputValue.length >= this.minCharactersSearch) {
592
- this.inputValueSearch$.next(inputValue);
593
- this.searchTextChange.emit(inputValue);
594
- const itemList = this.isGrouped ? this.itemsList.flatMap(groups => groups.items) : this.itemsList.flat();
595
- const findValue = [...this.suggestionsList, ...itemList].find(v => inputValue === (this.textField ? v[this.textField] : v));
596
- const count = AutocompleteUtils.countMatchingWords([...this.suggestionsList, ...itemList], this.inputValue, this.textField);
597
- if (findValue && count === 1 && this.exactMatchSelect) {
598
- this.onOptionSelected({ option: { value: findValue } });
599
- }
600
- }
601
- else {
602
- this.inputValueSearch$.next('');
603
- this.userInput$.next('');
604
- }
605
- this.isAlreadyAdded = !!(this.compareWith
606
- ? this.value.find((v) => this.compareWith(v, inputValue))
607
- : AutocompleteUtils.findDuplicate(this.value, inputValue, this.textField));
608
- }
609
- onClear() {
610
- this.inputValue = '';
611
- this.value = AutocompleteUtils.isArray(this.value) ? [] : '';
612
- this.isOverLapping = false;
613
- this.overlapIndex = 0;
614
- this.onUpdate();
615
- this.matAutocomplete?.options.forEach(option => option.deselect());
616
- this.onTouch();
617
- }
618
- refillInput() {
619
- setTimeout(() => {
620
- if (this.value && this.type === this.autocompleteType.SINGLE && !this.inputValue) {
621
- this.inputValue = AutocompleteUtils.transformDisplayValue(this.value, this.textField);
622
- }
623
- else if (!this.inputValue && this.value?.length) {
624
- this.inputValue = ' ';
625
- }
626
- else if (this.inputValue && this.type === Autocomplete.SINGLE && this.value && Object.keys(this.value).length) {
627
- this.inputValue = AutocompleteUtils.transformDisplayValue(AutocompleteUtils.isArray(this.value) ? this.value[0] : this.value, this.textField);
628
- }
629
- else if (this.inputValue) {
630
- this.inputValue = ' ';
631
- }
632
- this.inputValueSearch$.next('');
633
- this.userInput$.next('');
634
- this.isInputFocus = false;
635
- this.onTouch();
636
- this.blur.emit();
637
- }, 0);
638
- }
639
- gotoUp() {
640
- if (this.savedVirtualScrollViewport) {
641
- this.savedVirtualScrollViewport.scrollToIndex(0);
642
- this.savedVirtualScrollViewport.checkViewportSize();
643
- }
644
- }
645
- onFocus() {
646
- this.isInputFocus = true;
647
- const inputValue = AutocompleteUtils.isArray(this.inputValue) ? this.inputValue[0] : this.inputValue;
648
- if (AutocompleteUtils.isPrimitive(inputValue)) {
649
- if (typeof inputValue !== 'number' && inputValue?.match(/^\s+/gm)) {
650
- this.inputValue = inputValue.trimStart();
651
- }
652
- }
653
- else {
654
- if (inputValue[this.textField]?.match(/^\s+/gm)) {
655
- this.inputValue = inputValue[this.textField].trimStart();
656
- }
657
- }
658
- this.focus.emit();
659
- }
660
- checkOverlap(delay = Timeout.VIEW_INITIALIZED_AFTER_ACTION, init = false) {
661
- this.isOverLapping = false;
662
- this.isOverlapChecking = true;
663
- this.inputOpacity = 0;
664
- setTimeout(() => {
665
- const inputWidth = this.inputWidth;
666
- const tags = this.tagContainer?.nativeElement.querySelectorAll('.value-tag');
667
- if (tags) {
668
- let width = 0;
669
- let firstTagWidth = 0;
670
- tags.forEach((tag, index) => {
671
- width += tag.getBoundingClientRect().width;
672
- if (!index) {
673
- firstTagWidth = width;
674
- }
675
- const inpWidth = this.formFieldElement?.nativeElement.getBoundingClientRect().width - 20;
676
- this.firstTagMaxWidth =
677
- tags.length > 1
678
- ? inpWidth -
679
- (this.variant === DropdownVariation.DROPDOWN
680
- ? Padding.DROPDOWN_SPACE_CONTAINER
681
- : Padding.AUTOCOMPLETE_SPACE_CONTAINER)
682
- : inpWidth;
683
- if (!this.isOverLapping && width > inputWidth && index > 0) {
684
- this.isOverLapping = true;
685
- this.overlapIndex = index;
686
- }
687
- });
688
- this.isOverlapChecking = false;
689
- if (init) {
690
- if (this.type === this.autocompleteType.SINGLE) {
691
- this.inputValue = AutocompleteUtils.transformDisplayValue(this.value[0], this.textField);
692
- }
693
- else if (this.value?.length) {
694
- this.inputValue = ' ';
695
- }
696
- }
697
- const tagContainerWidth = this.tagContainer.nativeElement.getBoundingClientRect().width;
698
- this.tagContainer.nativeElement.style.maxWidth = tagContainerWidth / 100 ? '100%' : tagContainerWidth + 'px';
699
- this.cdr.markForCheck();
700
- }
701
- this.inputOpacity = 1;
702
- }, delay);
703
- }
704
- onUpdate() {
705
- this.inputValueSearch$.next('');
706
- this.userInput$.next('');
707
- if (!this.valuePrimitive) {
708
- this.onChange(this.value);
709
- }
710
- else {
711
- if (this.type === Autocomplete.SINGLE) {
712
- this.onChange(this.value[this.valueField]);
713
- }
714
- else {
715
- this.onChange(this.value.map((v) => v[this.valueField]));
716
- }
717
- }
718
- this.updateControlMaxLengthValidity();
719
- this.selectionChange.emit(this.value);
720
- }
721
- updateControlMaxLengthValidity() {
722
- const control = this.ngControl?.control;
723
- if (!control) {
724
- return;
725
- }
726
- if (this.type !== Autocomplete.SINGLE) {
727
- const existingErrors = control.errors || {};
728
- if (this.value.length > this.maxItemSelected) {
729
- control.setErrors({
730
- ...existingErrors,
731
- maxItemSelected: {
732
- expected: this.maxItemSelected,
733
- actual: this.value.length,
734
- },
735
- });
736
- control.markAsTouched();
737
- }
738
- else {
739
- if (existingErrors['maxItemSelected']) {
740
- delete existingErrors['maxItemSelected'];
741
- control.setErrors(Object.keys(existingErrors).length ? existingErrors : null);
742
- }
743
- }
744
- }
745
- }
746
- initValue() {
747
- if (this.type === this.autocompleteType.SINGLE && this.variant !== DropdownVariation.DROPDOWN) {
748
- if (AutocompleteUtils.isArray(this.value)) {
749
- this.inputValue = AutocompleteUtils.transformDisplayValue(this.value[0], this.textField);
750
- }
751
- else {
752
- this.inputValue = this.value ? AutocompleteUtils.transformDisplayValue(this.value, this.textField) : '';
753
- }
754
- }
755
- else if (this.variant === DropdownVariation.DROPDOWN) {
756
- this.inputValue =
757
- (AutocompleteUtils.isArray(this.value) && !this.value?.length) || !this.value
758
- ? ''
759
- : this.type === Autocomplete.SINGLE
760
- ? AutocompleteUtils.transformDisplayValue(AutocompleteUtils.isArray(this.value) ? this.value[0] : this.value, this.textField)
761
- : ' ';
762
- }
763
- else {
764
- this.inputValue = this.value && this.value.length ? ' ' : '';
765
- }
766
- if (this.type === this.autocompleteType.MULTI) {
767
- this.checkOverlap();
768
- }
769
- }
770
- addNewValue(newValue) {
771
- if (this.type !== this.autocompleteType.SINGLE && !this.value) {
772
- this.value = [];
773
- }
774
- const foundDuplicate = this.compareWith
775
- ? this.value.find((v) => this.compareWith(v, newValue))
776
- : AutocompleteUtils.findDuplicate(this.value, newValue, this.textField);
777
- if (this.type !== this.autocompleteType.SINGLE) {
778
- this.value = foundDuplicate
779
- ? this.value.filter((v) => this.compareWith ? !this.compareWith(v, foundDuplicate) : v !== foundDuplicate)
780
- : [...this.value, newValue];
781
- }
782
- else {
783
- this.value = newValue;
784
- }
785
- }
786
- get isDropdown() {
787
- return this.variant === DropdownVariation.DROPDOWN;
788
- }
789
- onChevronClick(autocomplete) {
790
- if (autocomplete.isOpen) {
791
- setTimeout(() => {
792
- this.autocomplete.closePanel();
793
- }, 0);
794
- }
795
- }
796
- get inputWidth() {
797
- return (this.formFieldElement?.nativeElement.getBoundingClientRect().width -
798
- (this.isDropdown ? Padding.DROPDOWN_CONTAINER : Padding.AUTOCOMPLETE_CONTAINER));
799
- }
800
- /**
801
- * Adding company color variable to the body to style overlay container that's out of the component scope.
802
- */
803
- setCompanyColorVariable() {
804
- document.body.style.setProperty('--ui-autocomplete-option-color', `${this.companyColor}`);
805
- }
806
- subscriberDisplayChange() {
807
- const autocompleteHostElement = this.el.nativeElement;
808
- this.observer = new MutationObserver(mutations => {
809
- mutations.forEach(mutation => {
810
- if (mutation.attributeName === 'style') {
811
- const displayStyle = getComputedStyle(autocompleteHostElement).display;
812
- if (displayStyle !== 'none') {
813
- this.checkOverlap();
814
- }
815
- }
816
- });
817
- });
818
- this.observer.observe(autocompleteHostElement, {
819
- attributes: true,
820
- attributeFilter: ['style'],
821
- });
822
- }
823
- get hasObjectValue() {
824
- return this.value ? !!Object.keys(this.value).length : false;
825
- }
826
- onKeydown($event) {
827
- const optionHeight = 48;
828
- if ($event.key === IKeyboardEvent.HOME) {
829
- this.matAutocomplete._keyManager.setFirstItemActive();
830
- }
831
- else if ($event.key === IKeyboardEvent.END) {
832
- this.matAutocomplete._keyManager.setLastItemActive();
833
- }
834
- else if ($event.key === IKeyboardEvent.PAGE_DOWN) {
835
- this.matAutocomplete._keyManager.setNextItemActive();
836
- this.matAutocomplete._keyManager.setNextItemActive();
837
- this.matAutocomplete._keyManager.setNextItemActive();
838
- }
839
- else if ($event.key === IKeyboardEvent.PAGE_UP) {
840
- this.matAutocomplete._keyManager.setPreviousItemActive();
841
- this.matAutocomplete._keyManager.setPreviousItemActive();
842
- this.matAutocomplete._keyManager.setPreviousItemActive();
843
- }
844
- this.matAutocomplete._setScrollTop(this.matAutocomplete._keyManager.activeItemIndex * optionHeight);
845
- }
846
- getVirtualScrollHeight(itemCount) {
847
- const itemHeight = 48;
848
- const maxHeight = 200;
849
- const minHeight = 48;
850
- const calculatedHeight = itemCount * itemHeight;
851
- return Math.min(Math.max(calculatedHeight, minHeight), maxHeight);
852
- }
853
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: AutocompleteComponent, deps: [{ token: 'CANOPYUI_DEFAULT_APPLICATION_THEME', optional: true }, { token: i0.ChangeDetectorRef }, { token: i1.DomSanitizer }, { token: i2.NgControl, optional: true, self: true }, { token: PLATFORM_ID }, { token: i0.ElementRef }, { token: i3.FocusMonitor }, { token: i0.DestroyRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
854
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.17", type: AutocompleteComponent, isStandalone: false, selector: "ui-autocomplete", inputs: { itemsList: "itemsList", suggestionsList: "suggestionsList", disabled: "disabled", allowAdd: "allowAdd", textField: "textField", valueField: "valueField", label: "label", placeholder: "placeholder", itemValue: "itemValue", type: "type", minCharactersSearch: "minCharactersSearch", variant: "variant", showBottomContent: "showBottomContent", valuePrimitive: "valuePrimitive", fullWidth: "fullWidth", applicationTheme: "applicationTheme", required: "required", errors: "errors", companyColor: "companyColor", hideBuiltInErrors: "hideBuiltInErrors", hideLabelInErrors: "hideLabelInErrors", virtualScroll: ["virtualScroll", "virtualScroll", booleanAttribute], compareWith: "compareWith", dropdownPanelClass: "dropdownPanelClass", closeOnScroll: "closeOnScroll", size: "size", allowUserInput: "allowUserInput", clearable: "clearable", exactMatchSelect: "exactMatchSelect", maxItemSelected: "maxItemSelected", maxLength: "maxLength", isDynamicFilteringEnabled: "isDynamicFilteringEnabled", dynamicFilterLoading: "dynamicFilterLoading", dynamicFilteredList: "dynamicFilteredList", infiniteScroll: "infiniteScroll", hasMoreOptionsForInfiniteScroll: "hasMoreOptionsForInfiniteScroll" }, outputs: { selectionChange: "selectionChange", searchTextChange: "searchTextChange", blur: "blur", focus: "focus", scrollViewportBottomReached: "scrollViewportBottomReached", scrollViewportBottomReachedFiltered: "scrollViewportBottomReachedFiltered" }, host: { properties: { "class.full-width": "this.fullWidth", "attr.theme": "this.applicationTheme" } }, viewQueries: [{ propertyName: "formFieldElement", first: true, predicate: ["formField"], descendants: true }, { propertyName: "tagContainer", first: true, predicate: ["tagContainer"], descendants: true }, { propertyName: "autocomplete", first: true, predicate: ["trigger"], descendants: true }, { propertyName: "cdkVirtualScrollViewport", first: true, predicate: CdkVirtualScrollViewport, descendants: true }, { propertyName: "matAutocomplete", first: true, predicate: ["autocomplete"], descendants: true }, { propertyName: "matInput", first: true, predicate: ["matInput"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<ng-container>\n <div class=\"autocomplete-wrapper\" [ngClass]=\"{ 'full-width': fullWidth, disabled: disabled }\">\n <mat-form-field\n [color]=\"\n safeErrors.length ||\n (ngControl?.errors && ngControl?.touched) ||\n (AutocompleteUtils.isArray(value) && value.length) > maxItemSelected ||\n ((AutocompleteUtils.isArray(value) && value.length) >= maxItemSelected && inputValue && inputValue !== ' ')\n ? 'warn'\n : 'accent'\n \"\n [appearance]=\"'outline'\"\n [ngClass]=\"{\n 'large-size': type === autocompleteType.LARGE,\n 'hide-bottom-content': !showBottomContent,\n 'keyboard-focused': keyboardFocused(),\n 'has-label': !!label,\n }\"\n >\n <mat-label *ngIf=\"label\">{{ label }} <span *ngIf=\"required\">*</span></mat-label>\n <div #formField class=\"input-container\">\n <span\n style=\"position: absolute; left: -9999px\"\n *ngIf=\"textField ? value?.[textField] : value === inputValue\"\n aria-live=\"polite\"\n >{{ ('SELECTED' | uiTranslate | async) + ' ' + inputValue }}</span\n >\n\n <input\n #trigger=\"matAutocompleteTrigger\"\n #matInput\n [attr.maxlength]=\"maxLength !== null && maxLength !== undefined ? maxLength : null\"\n [uiPreventInput]=\"!allowUserInput\"\n [disabled]=\"disabled\"\n [ngClass]=\"{ 'unset-margin': value && type === autocompleteType.LARGE, 'no-caret': !allowUserInput }\"\n (blur)=\"refillInput()\"\n (focusin)=\"onFocus()\"\n [attr.aria-label]=\"\n (translationContext + 'SELECTED' | uiTranslate | async) + ' ' + (value | transformItem: textField : true)\n \"\n [style.opacity]=\"type === autocompleteType.MULTI ? inputOpacity : 1\"\n matInput\n [placeholder]=\"value && value.length ? '' : placeholder\"\n [type]=\"'text'\"\n [matAutocomplete]=\"autocomplete\"\n (input)=\"onInputChange($event)\"\n [(ngModel)]=\"inputValue\"\n />\n <div\n class=\"selected-items\"\n #tagContainer\n *ngIf=\"\n (type === autocompleteType.LARGE && value) ||\n (!(inputValue && isInputFocus) && value && type !== autocompleteType.SINGLE)\n \"\n >\n <ui-tag\n class=\"value-tag\"\n [id]=\"'ui-tag-' + i\"\n *ngFor=\"let valueItem of value; let i = index\"\n [label]=\"valueItem | transformItem: textField\"\n [allowClose]=\"true\"\n [applicationTheme]=\"applicationTheme\"\n [style.opacity]=\"type === autocompleteType.MULTI ? inputOpacity : 1\"\n [style.display]=\"\n (isOverLapping && i > 0 && i >= overlapIndex) || (size === 'small' && value.length > 1) ? 'none' : 'block'\n \"\n [ngStyle]=\"{ '--tag-max-width': type === autocompleteType.LARGE ? 'fit-content' : firstTagMaxWidth + 'px' }\"\n [ngClass]=\"{\n 'overlap-tag': isOverlapChecking && overlapIndex && i >= overlapIndex && type === autocompleteType.MULTI,\n }\"\n (close)=\"onOptionRemoved(valueItem)\"\n ></ui-tag>\n @if (size === 'small') {\n <div class=\"selected-count\" *ngIf=\"value.length > 1\">\n {{\n translationContext + 'SELECTED_AMOUNT'\n | uiTranslate: { numberSelected: (value | slice: overlapIndex).length }\n | async\n }}\n </div>\n } @else {\n <div *ngIf=\"value.length > 1 && isOverLapping\" class=\"overlap-count\">\n <ui-tag [applicationTheme]=\"applicationTheme\" [label]=\"'+' + (value.length - overlapIndex)\"></ui-tag>\n </div>\n }\n </div>\n </div>\n\n <ui-icon\n *ngIf=\"\n (clearable && type === autocompleteType.SINGLE && (value?.length || hasObjectValue)) ||\n (type !== autocompleteType.SINGLE &&\n value &&\n value.length > 1 &&\n ((AutocompleteUtils.isPrimitive(value) && value.length) ||\n (!AutocompleteUtils.isPrimitive(value) &&\n ((AutocompleteUtils.isArray(value) && value.length) ||\n (!AutocompleteUtils.isArray(value) && !value.length)))))\n \"\n class=\"remove-selected\"\n [tabIndex]=\"disabled ? -1 : 0\"\n (keydown.enter)=\"onClear(); $event.preventDefault(); $event.stopPropagation()\"\n (keydown.space)=\"onClear(); $event.preventDefault(); $event.stopPropagation()\"\n [ngClass]=\"{ 'large-input-icon': type === autocompleteType.LARGE }\"\n (click)=\"onClear(); $event.preventDefault(); $event.stopPropagation()\"\n [size]=\"'24'\"\n [color]=\"applicationTheme === 'classic' ? 'inherit' : 'rebrand-black'\"\n [attr.aria-label]=\"'COMMON.CLEAR' | uiTranslate | async\"\n [name]=\"applicationTheme === 'classic' ? 'Close' : 'Close-in-line'\"\n ></ui-icon>\n\n <ui-icon\n class=\"arrow-state\"\n [ngClass]=\"{ opened: autocomplete.isOpen, 'large-input-icon': type === autocompleteType.LARGE }\"\n *ngIf=\"isDropdown\"\n [size]=\"'24'\"\n [name]=\"applicationTheme !== 'classic' ? 'Arrow-chevron-down-in-line' : 'Arrow_down'\"\n (click)=\"onChevronClick(autocomplete)\"\n ></ui-icon>\n\n <mat-autocomplete\n #autocomplete\n [class]=\"applicationTheme + ' ' + dropdownPanelClass\"\n (optionSelected)=\"onOptionSelected($event)\"\n [disableRipple]=\"applicationTheme !== 'classic'\"\n [hideSingleSelectionIndicator]=\"false\"\n (opened)=\"gotoUp()\"\n >\n @if (type !== autocompleteType.MULTI || value?.length < maxItemSelected) {\n <ng-container *ngIf=\"!(searchResult$ | async)\">\n <ng-container *ngIf=\"!isDropdown; else dropdownList\">\n <mat-optgroup\n [label]=\"(translationContext + 'SUGGESTED' | uiTranslate | async)! | uppercase\"\n *ngIf=\"suggestionsList.length\"\n >\n <mat-option\n (mousedown)=\"$event.preventDefault()\"\n [ngClass]=\"{ 'selected-option': suggested | includes: value : valueField }\"\n *ngFor=\"let suggested of suggestionsList\"\n [value]=\"suggested\"\n >\n <span [selectText]=\"userInput$ | async\">{{ suggested | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n </mat-optgroup>\n\n <mat-optgroup\n [label]=\"(translationContext + 'SELECTED' | uiTranslate | async)! | uppercase\"\n *ngIf=\"value?.length && type !== autocompleteType.SINGLE\"\n >\n <mat-option\n (mousedown)=\"$event.preventDefault()\"\n [ngClass]=\"{ 'selected-option': item | includes: value : valueField }\"\n *ngFor=\"let item of value\"\n [value]=\"item\"\n >\n <span>{{ item | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n </mat-optgroup>\n\n @if (isGrouped) {\n @for (group of itemsList; track group) {\n @if (group.groupName) {\n <mat-optgroup [label]=\"group.groupName\">\n <mat-option\n (mousedown)=\"$event.preventDefault()\"\n [ngClass]=\"{ 'selected-option': item | includes: value : valueField }\"\n *ngFor=\"let item of group.items\"\n [value]=\"item\"\n >\n <span [selectText]=\"userInput$ | async\">{{ item | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n </mat-optgroup>\n } @else {\n <mat-option\n (mousedown)=\"$event.preventDefault()\"\n [ngClass]=\"{ 'selected-option': item | includes: value : valueField }\"\n *ngFor=\"let item of group.items\"\n [value]=\"item\"\n >\n <span [selectText]=\"userInput$ | async\">{{ item | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n }\n }\n }\n\n <mat-optgroup\n [label]=\"(translationContext + 'SELECTED' | uiTranslate | async)! | uppercase\"\n *ngIf=\"value?.length && type === autocompleteType.SINGLE\"\n >\n <mat-option (mousedown)=\"$event.preventDefault()\" [class]=\"'selected-option'\" [value]=\"value\">\n <span [selectText]=\"userInput$ | async\">{{ value | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n </mat-optgroup>\n </ng-container>\n\n <ng-template #dropdownList>\n <cdk-virtual-scroll-viewport\n *ngIf=\"virtualScroll || infiniteScroll; else defaultViewPort\"\n [itemSize]=\"48\"\n [style.height.px]=\"getVirtualScrollHeight(itemsList.length)\"\n class=\"virtual-scroll\"\n >\n @if (!isGrouped) {\n <mat-option\n (mousedown)=\"$event.preventDefault()\"\n [ngClass]=\"{ 'selected-option': item | includes: value : valueField }\"\n *cdkVirtualFor=\"let item of itemsList\"\n [value]=\"item\"\n >\n <span [selectText]=\"userInput$ | async\">{{ item | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n\n @if (infiniteScroll && hasMoreOptionsForInfiniteScroll) {\n <mat-option class=\"loading-option\" [style.pointer-events]=\"'none'\">\n <div class=\"loading-container\">\n <ui-spinner size=\"small\" [isLoader]=\"false\"></ui-spinner>\n </div>\n </mat-option>\n }\n } @else {\n @for (group of itemsList; track group) {\n @if (group.groupName) {\n <mat-optgroup [label]=\"group.groupName\">\n <mat-option\n (mousedown)=\"$event.preventDefault()\"\n [ngClass]=\"{ 'selected-option': item | includes: value : valueField }\"\n *cdkVirtualFor=\"let item of group.items\"\n [value]=\"item\"\n >\n <span [selectText]=\"userInput$ | async\">{{ item | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n </mat-optgroup>\n } @else {\n <mat-option\n (mousedown)=\"$event.preventDefault()\"\n [ngClass]=\"{ 'selected-option': item | includes: value : valueField }\"\n *cdkVirtualFor=\"let item of group.items\"\n [value]=\"item\"\n >\n <span [selectText]=\"userInput$ | async\">{{ item | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n }\n }\n }\n </cdk-virtual-scroll-viewport>\n\n <ng-template #defaultViewPort>\n @if (!isGrouped) {\n <mat-option\n (mousedown)=\"$event.preventDefault()\"\n [ngClass]=\"{ 'selected-option': item | includes: value : valueField }\"\n *ngFor=\"let item of itemsList\"\n [value]=\"item\"\n >\n <span [selectText]=\"userInput$ | async\">{{ item | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n } @else {\n @for (group of itemsList; track group) {\n @if (group.groupName) {\n <mat-optgroup [label]=\"group.groupName\">\n <mat-option\n (mousedown)=\"$event.preventDefault()\"\n [ngClass]=\"{ 'selected-option': item | includes: value : valueField }\"\n *ngFor=\"let item of group.items\"\n [value]=\"item\"\n >\n <span [selectText]=\"userInput$ | async\">{{ item | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n </mat-optgroup>\n } @else {\n <mat-option\n (mousedown)=\"$event.preventDefault()\"\n [ngClass]=\"{ 'selected-option': item | includes: value : valueField }\"\n *ngFor=\"let item of group.items\"\n [value]=\"item\"\n >\n <span [selectText]=\"userInput$ | async\">{{ item | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n }\n }\n }\n </ng-template>\n </ng-template>\n </ng-container>\n\n <ng-container *ngIf=\"filteredSuggestionList$ | async as filteredSuggestionList\">\n <ng-container *ngIf=\"filteredItemsList$ | async as filteredItemsList\">\n <ng-container *ngIf=\"virtualScroll || infiniteScroll; else filteredWithoutVirtualScroll\">\n <cdk-virtual-scroll-viewport\n [itemSize]=\"48\"\n [style.height.px]=\"getVirtualScrollHeight(filteredItemsList.length)\"\n class=\"virtual-scroll\"\n >\n @if (isGrouped && filteredItemsList.length) {\n @for (group of filteredItemsList; track group) {\n @if (group.groupName) {\n <mat-optgroup [label]=\"group.groupName\">\n <mat-option\n (mousedown)=\"$event.preventDefault()\"\n [ngClass]=\"{ 'selected-option': item | includes: value : valueField }\"\n *cdkVirtualFor=\"let item of group.filteredItems\"\n [value]=\"item\"\n >\n <span [selectText]=\"userInput$ | async\">{{ item | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n </mat-optgroup>\n } @else {\n <mat-option\n (mousedown)=\"$event.preventDefault()\"\n [ngClass]=\"{ 'selected-option': item | includes: value : valueField }\"\n *cdkVirtualFor=\"let item of group.filteredItems\"\n [value]=\"item\"\n >\n <span [selectText]=\"userInput$ | async\">{{ item | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n }\n }\n }\n\n <mat-optgroup\n [label]=\"(translationContext + 'SUGGESTED' | uiTranslate | async)! | uppercase\"\n *ngIf=\"filteredSuggestionList.length\"\n >\n <mat-option\n (mousedown)=\"$event.preventDefault()\"\n [ngClass]=\"{ 'selected-option': item | includes: value : valueField }\"\n *cdkVirtualFor=\"let item of filteredSuggestionList\"\n [value]=\"item\"\n >\n <span [selectText]=\"userInput$ | async\">{{ item | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n </mat-optgroup>\n\n <ng-container *ngIf=\"!filteredSuggestionList.length && !isGrouped; else showItemListWithGroupVirtual\">\n @for (item of filteredItemsList; let idx = $index; track item[valueField] || idx) {\n <mat-option\n (mousedown)=\"$event.preventDefault()\"\n [ngClass]=\"{ 'selected-option': item | includes: value : valueField }\"\n [value]=\"item\"\n >\n <span [selectText]=\"userInput$ | async\">{{ item | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n }\n </ng-container>\n\n <ng-template #showItemListWithGroupVirtual>\n <mat-optgroup\n [label]=\"(translationContext + 'ALL_ITEMS' | uiTranslate | async)! | uppercase\"\n *ngIf=\"filteredItemsList.length && !isGrouped\"\n >\n @for (item of filteredItemsList; let idx = $index; track item[valueField] || idx) {\n <mat-option\n (mousedown)=\"$event.preventDefault()\"\n [ngClass]=\"{ 'selected-option': item | includes: value : valueField }\"\n [value]=\"item\"\n >\n <span [selectText]=\"userInput$ | async\">{{ item | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n }\n </mat-optgroup>\n </ng-template>\n\n @if (isDynamicFilteringEnabled && dynamicFilterLoading) {\n <mat-option class=\"loading-option\" [style.pointer-events]=\"'none'\">\n <div class=\"loading-container\">\n <ui-spinner size=\"small\" [isLoader]=\"false\"></ui-spinner>\n </div>\n </mat-option>\n } @else if (inputValue) {\n @if (allowAdd && !isAlreadyAdded) {\n <mat-option (mousedown)=\"$event.preventDefault()\" [value]=\"inputValue\">\n <span>{{ 'COMMON.ADD' | uiTranslate | async }}</span>\n <span class=\"add-suggestion\">\"{{ inputValue }}\"</span>\n </mat-option>\n } @else if (!filteredItemsList.length && !filteredSuggestionList.length) {\n <mat-option [style.pointer-events]=\"'none'\">\n <span>{{ translationContext + 'NO_RESULTS_FOUND' | uiTranslate | async }}</span>\n </mat-option>\n }\n }\n </cdk-virtual-scroll-viewport>\n </ng-container>\n\n <ng-template #filteredWithoutVirtualScroll>\n @if (isGrouped && filteredItemsList.length) {\n @for (group of filteredItemsList; track group) {\n @if (group.groupName) {\n <mat-optgroup [label]=\"group.groupName\">\n <mat-option\n (mousedown)=\"$event.preventDefault()\"\n [ngClass]=\"{ 'selected-option': item | includes: value : valueField }\"\n *ngFor=\"let item of group.filteredItems\"\n [value]=\"item\"\n >\n <span [selectText]=\"userInput$ | async\">{{ item | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n </mat-optgroup>\n } @else {\n <mat-option\n (mousedown)=\"$event.preventDefault()\"\n [ngClass]=\"{ 'selected-option': item | includes: value : valueField }\"\n *ngFor=\"let item of group.filteredItems\"\n [value]=\"item\"\n >\n <span [selectText]=\"userInput$ | async\">{{ item | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n }\n }\n }\n\n @if (isGrouped && filteredItemsList.length) {\n @for (group of filteredItemsList; track group) {\n @if (group.groupName) {\n <mat-optgroup [label]=\"group.groupName\">\n <mat-option\n (mousedown)=\"$event.preventDefault()\"\n [ngClass]=\"{ 'selected-option': item | includes: value : valueField }\"\n *ngFor=\"let item of group.filteredItems\"\n [value]=\"item\"\n >\n <span [selectText]=\"userInput$ | async\">{{ item | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n </mat-optgroup>\n } @else {\n <mat-option\n (mousedown)=\"$event.preventDefault()\"\n [ngClass]=\"{ 'selected-option': item | includes: value : valueField }\"\n *ngFor=\"let item of group.filteredItems\"\n [value]=\"item\"\n >\n <span [selectText]=\"userInput$ | async\">{{ item | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n }\n }\n }\n\n <mat-optgroup\n [label]=\"(translationContext + 'SUGGESTED' | uiTranslate | async)! | uppercase\"\n *ngIf=\"filteredSuggestionList.length\"\n >\n <mat-option\n (mousedown)=\"$event.preventDefault()\"\n [ngClass]=\"{ 'selected-option': item | includes: value : valueField }\"\n *ngFor=\"let item of filteredSuggestionList\"\n [value]=\"item\"\n >\n <span [selectText]=\"userInput$ | async\">{{ item | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n </mat-optgroup>\n\n <ng-container *ngIf=\"!filteredSuggestionList.length && !isGrouped; else showItemListWithGroup\">\n @for (item of filteredItemsList; let idx = $index; track item[valueField] || idx) {\n <mat-option\n (mousedown)=\"$event.preventDefault()\"\n [ngClass]=\"{ 'selected-option': item | includes: value : valueField }\"\n [value]=\"item\"\n >\n <span [selectText]=\"userInput$ | async\">{{ item | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n }\n </ng-container>\n\n <ng-template #showItemListWithGroup>\n <mat-optgroup\n [label]=\"(translationContext + 'ALL_ITEMS' | uiTranslate | async)! | uppercase\"\n *ngIf=\"filteredItemsList.length && !isGrouped\"\n >\n @for (item of filteredItemsList; let idx = $index; track item[valueField] || idx) {\n <mat-option\n (mousedown)=\"$event.preventDefault()\"\n [ngClass]=\"{ 'selected-option': item | includes: value : valueField }\"\n [value]=\"item\"\n >\n <span [selectText]=\"userInput$ | async\">{{ item | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n }\n </mat-optgroup>\n </ng-template>\n\n @if (isDynamicFilteringEnabled && dynamicFilterLoading) {\n <mat-option class=\"loading-option\" [style.pointer-events]=\"'none'\">\n <div class=\"loading-container\">\n <ui-spinner size=\"small\" [isLoader]=\"false\"></ui-spinner>\n </div>\n </mat-option>\n } @else if (inputValue) {\n @if (allowAdd && !isAlreadyAdded) {\n <mat-option (mousedown)=\"$event.preventDefault()\" [value]=\"inputValue\">\n <span>{{ 'COMMON.ADD' | uiTranslate | async }}</span>\n <span class=\"add-suggestion\">\"{{ inputValue }}\"</span>\n </mat-option>\n } @else if (!filteredItemsList.length && !filteredSuggestionList.length) {\n <mat-option [style.pointer-events]=\"'none'\">\n <span>{{ translationContext + 'NO_RESULTS_FOUND' | uiTranslate | async }}</span>\n </mat-option>\n }\n }\n </ng-template>\n </ng-container>\n </ng-container>\n }\n </mat-autocomplete>\n <mat-hint\n class=\"error\"\n *ngIf=\"\n safeErrors.length ||\n (ngControl?.errors | hasValidationError) ||\n (AutocompleteUtils.isArray(value) && value.length) > maxItemSelected ||\n ((AutocompleteUtils.isArray(value) && value.length) >= maxItemSelected && inputValue && inputValue !== ' ')\n \"\n >\n <div\n class=\"errors\"\n *ngIf=\"\n (AutocompleteUtils.isArray(value) && value.length) > maxItemSelected ||\n ((AutocompleteUtils.isArray(value) && value.length) >= maxItemSelected && inputValue && inputValue !== ' ')\n \"\n >\n <ui-icon [applicationTheme]=\"applicationTheme\" [name]=\"'Error'\"></ui-icon>\n <span>{{ translationContext + 'MAX_SELECTED_ERROR' | uiTranslate: { max: maxItemSelected } | async }}</span>\n </div>\n <ng-container *ngIf=\"safeErrors.length\">\n <div class=\"errors\" *ngFor=\"let error of safeErrors; trackBy: trackByFn\">\n <ui-icon [applicationTheme]=\"applicationTheme\" [name]=\"'Error'\"></ui-icon>\n <span [innerHTML]=\"error\"></span>\n </div>\n </ng-container>\n <ui-validation-error\n *ngIf=\"ngControl && !hideBuiltInErrors\"\n [ngControl]=\"ngControl\"\n [label]=\"hideLabelInErrors ? null : label\"\n ></ui-validation-error>\n </mat-hint>\n </mat-form-field>\n </div>\n</ng-container>\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}:host{width:320px;display:block}:host.full-width{width:100%}:host ui-tag{height:32px;margin:4px}:host ui-tag ::ng-deep .tag-container{margin:0!important}:host ui-tag ::ng-deep .tag-wrapper{max-width:fit-content}.large-size input{margin:10px 0}.large-size .selected-items{margin:5px 0;flex-wrap:wrap}.large-size .input-container{display:flex;flex-direction:column-reverse}.large-size ::ng-deep .mat-mdc-form-field-infix,.large-size .mat-mdc-form-field-flex{align-items:unset!important}.disabled *{pointer-events:none}.input-container{width:100%;margin:auto;display:flex;flex-direction:row-reverse}.input-container .selected-items{display:flex;padding-left:4px}.input-container .selected-items .selected-count{white-space:nowrap}.input-container .selected-items .value-tag{max-width:var(--tag-max-width)}.input-container .selected-items .value-tag ::ng-deep .tag-container{max-width:var(--tag-max-width)}.input-container .selected-items .overlap-count{font-size:14px;line-height:20px}.input-container .selected-items .overlap-count ui-tag{display:block}.input-container .selected-items .overlap-tag{position:absolute;opacity:0}.input-container input{margin-left:6px}.input-container input.unset-margin{margin-top:unset}.input-container input.no-caret{cursor:pointer;caret-color:transparent!important}.add-suggestion{margin:0 5px;color:#000;font-weight:700}.remove-selected{cursor:pointer;margin-right:2px;border-radius:50px;height:fit-content}.remove-selected.large-input-icon{margin-top:10px}.arrow-state{height:24px;cursor:pointer}.arrow-state.large-input-icon{margin-top:10px}.arrow-state.opened{transform:rotateX(180deg)}::ng-deep .autocomplete-wrapper .mat-mdc-form-field{width:100%}::ng-deep .autocomplete-wrapper .mat-mdc-form-field .mat-mdc-form-field-hint.error,::ng-deep .autocomplete-wrapper .mat-mdc-form-field .mat-mdc-form-field-hint.error svg{color:#cb7b7a}::ng-deep .autocomplete-wrapper .mat-mdc-form-field .mat-mdc-form-field-hint.error{display:flex}::ng-deep .autocomplete-wrapper .mat-mdc-form-field .mat-mdc-form-field-hint.error{display:flex;flex-flow:column;row-gap:4px}::ng-deep .autocomplete-wrapper .mat-mdc-form-field .mat-mdc-form-field-hint.error .errors{display:flex}::ng-deep .autocomplete-wrapper .mat-mdc-form-field .mat-mdc-form-field-hint.error .errors ui-icon{margin-right:8px}::ng-deep .autocomplete-wrapper .mat-mdc-form-field .mat-mdc-form-field-hint.error{color:#e02800!important}::ng-deep .autocomplete-wrapper .mat-mdc-form-field .mat-mdc-form-field-hint.error svg{color:#e02800!important}::ng-deep .autocomplete-wrapper .mat-mdc-form-field .mat-mdc-form-field-bottom-align:before{height:0}::ng-deep .autocomplete-wrapper .mat-mdc-form-field .mat-mdc-form-field-hint-wrapper{padding:0 0 12px;font-size:12px;line-height:16px;position:relative}::ng-deep .autocomplete-wrapper .mat-mdc-form-field .mat-mdc-form-field-hint-wrapper .mat-form-field-hint-spacer{display:none}::ng-deep .autocomplete-wrapper .mat-mdc-form-field.hide-bottom-content .mat-mdc-form-field-subscript-wrapper{display:none}::ng-deep .autocomplete-wrapper .mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{top:28px!important}::ng-deep .autocomplete-wrapper .mat-mdc-form-field .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:22px!important}::ng-deep .autocomplete-wrapper .mat-mdc-form-field .mat-mdc-text-field-wrapper{padding-left:12px!important;height:unset!important;max-height:unset!important}::ng-deep .autocomplete-wrapper .mat-mdc-form-field .mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{color:#276678!important}::ng-deep .autocomplete-wrapper .mat-mdc-form-field .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch{border-bottom:2px solid #276678!important}::ng-deep .autocomplete-wrapper .mat-mdc-form-field .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading{border-left:2px solid #276678!important;border-bottom:2px solid #276678!important;border-top:2px solid #276678!important}::ng-deep .autocomplete-wrapper .mat-mdc-form-field .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border:2px solid #276678!important;border-left:unset!important}::ng-deep .autocomplete-wrapper .mat-mdc-form-field .mat-mdc-form-field-infix,::ng-deep .autocomplete-wrapper .mat-mdc-form-field .mat-mdc-form-field-flex{min-height:48px!important;max-height:184px!important;overflow-y:auto;overflow-x:hidden;padding:0!important;display:flex;justify-content:center;text-align:center;align-items:center;flex-direction:row;width:100%}::ng-deep .autocomplete-wrapper .mat-mdc-form-field .mdc-line-ripple{display:none!important}::ng-deep .mat-mdc-autocomplete-panel{box-shadow:0 8px 24px 4px #00000014;max-height:312px!important}::ng-deep .mat-mdc-autocomplete-panel .mat-mdc-option:hover:not(.mdc-list-item--disabled),::ng-deep .mat-mdc-autocomplete-panel .mat-mdc-option:focus:not(.mdc-list-item--disabled),::ng-deep .mat-mdc-autocomplete-panel .mat-mdc-option.mat-mdc-option-active,::ng-deep .mat-mdc-autocomplete-panel .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple):not(.mdc-list-item--disabled){background:#e9f0f1!important}::ng-deep .mat-mdc-autocomplete-panel .mat-mdc-option{padding-right:32px;padding-left:12px!important}::ng-deep .mat-mdc-autocomplete-panel .mat-mdc-option ui-icon{display:none;position:absolute;right:0;bottom:calc(50% - 8px);margin:0 10px}::ng-deep .mat-mdc-autocomplete-panel .mat-mdc-option.selected-option{background:#e9f0f1}::ng-deep .mat-mdc-autocomplete-panel .mat-mdc-option.selected-option ui-icon{display:block}::ng-deep .mat-mdc-autocomplete-panel .mat-mdc-option.mdc-list-item--selected .mdc-list-item__primary-text,::ng-deep .mat-mdc-autocomplete-panel .mat-mdc-option .mdc-list-item--activated .mdc-list-item__primary-text{color:#000!important}::ng-deep .mat-mdc-autocomplete-panel .mat-mdc-option .mat-pseudo-checkbox{display:none}::ng-deep .mat-mdc-autocomplete-panel .mat-mdc-optgroup .mat-mdc-optgroup-label{font-weight:700!important}::ng-deep .mat-mdc-autocomplete-panel .mat-mdc-optgroup .mdc-list-item__primary-text{color:#000;font-size:12px;line-height:16px;font-weight:700}.active-field .mdc-notched-outline__leading{border-left-width:2px;border-top-width:2px;border-bottom-width:2px}.active-field .mdc-notched-outline__notch{border-top-width:2px;border-bottom-width:2px}.active-field .mdc-notched-outline__trailing{border-top-width:2px;border-bottom-width:2px;border-right-width:2px}.loading-option{display:flex}.loading-option .loading-container{display:flex;justify-content:center;align-items:center;width:100%;height:100%;position:absolute;top:0;left:0}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i5.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i5.MatLabel, selector: "mat-label" }, { kind: "directive", type: i5.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "component", type: i6.MatAutocomplete, selector: "mat-autocomplete", inputs: ["aria-label", "aria-labelledby", "displayWith", "autoActiveFirstOption", "autoSelectActiveOption", "requireSelection", "panelWidth", "disableRipple", "class", "hideSingleSelectionIndicator"], outputs: ["optionSelected", "opened", "closed", "optionActivated"], exportAs: ["matAutocomplete"] }, { kind: "component", type: i6.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "component", type: i6.MatOptgroup, selector: "mat-optgroup", inputs: ["label", "disabled"], exportAs: ["matOptgroup"] }, { kind: "directive", type: i6.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", inputs: ["matAutocomplete", "matAutocompletePosition", "matAutocompleteConnectedTo", "autocomplete", "matAutocompleteDisabled"], exportAs: ["matAutocompleteTrigger"] }, { kind: "directive", type: i7.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i8.TagComponent, selector: "ui-tag", inputs: ["label", "icon", "allowClose", "readOnly", "isSelected", "showIconWhenSelected", "isDisabled", "applicationTheme", "ariaLabel", "ariaRequired"], outputs: ["close", "press"] }, { kind: "component", type: i9.IconComponent, selector: "ui-icon", inputs: ["size", "cssClass", "name", "color", "filled", "toggleIconStyle", "applicationTheme", "useFullIconName"] }, { kind: "component", type: i10.ValidationErrorComponent, selector: "ui-validation-error", inputs: ["ngControl", "touchedOn", "errorMessage", "label", "applicationTheme"] }, { kind: "directive", type: i11.CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i11.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "directive", type: i11.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { kind: "directive", type: PreventInputDirective, selector: "[uiPreventInput]", inputs: ["uiPreventInput"] }, { kind: "component", type: i13.SpinnerComponent, selector: "ui-spinner", inputs: ["size", "isLoader", "text", "applicationTheme", "iconName", "iconSize"] }, { kind: "directive", type: SelectTextDirective, selector: "[selectText]", inputs: ["selectText"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i4.UpperCasePipe, name: "uppercase" }, { kind: "pipe", type: i4.SlicePipe, name: "slice" }, { kind: "pipe", type: i15.UiTranslatePipe, name: "uiTranslate" }, { kind: "pipe", type: i15.HasValidationErrorPipe, name: "hasValidationError" }, { kind: "pipe", type: TransformItemPipe, name: "transformItem" }, { kind: "pipe", type: IncludesPipe, name: "includes" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
855
- }
856
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: AutocompleteComponent, decorators: [{
857
- type: Component,
858
- args: [{ selector: 'ui-autocomplete', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<ng-container>\n <div class=\"autocomplete-wrapper\" [ngClass]=\"{ 'full-width': fullWidth, disabled: disabled }\">\n <mat-form-field\n [color]=\"\n safeErrors.length ||\n (ngControl?.errors && ngControl?.touched) ||\n (AutocompleteUtils.isArray(value) && value.length) > maxItemSelected ||\n ((AutocompleteUtils.isArray(value) && value.length) >= maxItemSelected && inputValue && inputValue !== ' ')\n ? 'warn'\n : 'accent'\n \"\n [appearance]=\"'outline'\"\n [ngClass]=\"{\n 'large-size': type === autocompleteType.LARGE,\n 'hide-bottom-content': !showBottomContent,\n 'keyboard-focused': keyboardFocused(),\n 'has-label': !!label,\n }\"\n >\n <mat-label *ngIf=\"label\">{{ label }} <span *ngIf=\"required\">*</span></mat-label>\n <div #formField class=\"input-container\">\n <span\n style=\"position: absolute; left: -9999px\"\n *ngIf=\"textField ? value?.[textField] : value === inputValue\"\n aria-live=\"polite\"\n >{{ ('SELECTED' | uiTranslate | async) + ' ' + inputValue }}</span\n >\n\n <input\n #trigger=\"matAutocompleteTrigger\"\n #matInput\n [attr.maxlength]=\"maxLength !== null && maxLength !== undefined ? maxLength : null\"\n [uiPreventInput]=\"!allowUserInput\"\n [disabled]=\"disabled\"\n [ngClass]=\"{ 'unset-margin': value && type === autocompleteType.LARGE, 'no-caret': !allowUserInput }\"\n (blur)=\"refillInput()\"\n (focusin)=\"onFocus()\"\n [attr.aria-label]=\"\n (translationContext + 'SELECTED' | uiTranslate | async) + ' ' + (value | transformItem: textField : true)\n \"\n [style.opacity]=\"type === autocompleteType.MULTI ? inputOpacity : 1\"\n matInput\n [placeholder]=\"value && value.length ? '' : placeholder\"\n [type]=\"'text'\"\n [matAutocomplete]=\"autocomplete\"\n (input)=\"onInputChange($event)\"\n [(ngModel)]=\"inputValue\"\n />\n <div\n class=\"selected-items\"\n #tagContainer\n *ngIf=\"\n (type === autocompleteType.LARGE && value) ||\n (!(inputValue && isInputFocus) && value && type !== autocompleteType.SINGLE)\n \"\n >\n <ui-tag\n class=\"value-tag\"\n [id]=\"'ui-tag-' + i\"\n *ngFor=\"let valueItem of value; let i = index\"\n [label]=\"valueItem | transformItem: textField\"\n [allowClose]=\"true\"\n [applicationTheme]=\"applicationTheme\"\n [style.opacity]=\"type === autocompleteType.MULTI ? inputOpacity : 1\"\n [style.display]=\"\n (isOverLapping && i > 0 && i >= overlapIndex) || (size === 'small' && value.length > 1) ? 'none' : 'block'\n \"\n [ngStyle]=\"{ '--tag-max-width': type === autocompleteType.LARGE ? 'fit-content' : firstTagMaxWidth + 'px' }\"\n [ngClass]=\"{\n 'overlap-tag': isOverlapChecking && overlapIndex && i >= overlapIndex && type === autocompleteType.MULTI,\n }\"\n (close)=\"onOptionRemoved(valueItem)\"\n ></ui-tag>\n @if (size === 'small') {\n <div class=\"selected-count\" *ngIf=\"value.length > 1\">\n {{\n translationContext + 'SELECTED_AMOUNT'\n | uiTranslate: { numberSelected: (value | slice: overlapIndex).length }\n | async\n }}\n </div>\n } @else {\n <div *ngIf=\"value.length > 1 && isOverLapping\" class=\"overlap-count\">\n <ui-tag [applicationTheme]=\"applicationTheme\" [label]=\"'+' + (value.length - overlapIndex)\"></ui-tag>\n </div>\n }\n </div>\n </div>\n\n <ui-icon\n *ngIf=\"\n (clearable && type === autocompleteType.SINGLE && (value?.length || hasObjectValue)) ||\n (type !== autocompleteType.SINGLE &&\n value &&\n value.length > 1 &&\n ((AutocompleteUtils.isPrimitive(value) && value.length) ||\n (!AutocompleteUtils.isPrimitive(value) &&\n ((AutocompleteUtils.isArray(value) && value.length) ||\n (!AutocompleteUtils.isArray(value) && !value.length)))))\n \"\n class=\"remove-selected\"\n [tabIndex]=\"disabled ? -1 : 0\"\n (keydown.enter)=\"onClear(); $event.preventDefault(); $event.stopPropagation()\"\n (keydown.space)=\"onClear(); $event.preventDefault(); $event.stopPropagation()\"\n [ngClass]=\"{ 'large-input-icon': type === autocompleteType.LARGE }\"\n (click)=\"onClear(); $event.preventDefault(); $event.stopPropagation()\"\n [size]=\"'24'\"\n [color]=\"applicationTheme === 'classic' ? 'inherit' : 'rebrand-black'\"\n [attr.aria-label]=\"'COMMON.CLEAR' | uiTranslate | async\"\n [name]=\"applicationTheme === 'classic' ? 'Close' : 'Close-in-line'\"\n ></ui-icon>\n\n <ui-icon\n class=\"arrow-state\"\n [ngClass]=\"{ opened: autocomplete.isOpen, 'large-input-icon': type === autocompleteType.LARGE }\"\n *ngIf=\"isDropdown\"\n [size]=\"'24'\"\n [name]=\"applicationTheme !== 'classic' ? 'Arrow-chevron-down-in-line' : 'Arrow_down'\"\n (click)=\"onChevronClick(autocomplete)\"\n ></ui-icon>\n\n <mat-autocomplete\n #autocomplete\n [class]=\"applicationTheme + ' ' + dropdownPanelClass\"\n (optionSelected)=\"onOptionSelected($event)\"\n [disableRipple]=\"applicationTheme !== 'classic'\"\n [hideSingleSelectionIndicator]=\"false\"\n (opened)=\"gotoUp()\"\n >\n @if (type !== autocompleteType.MULTI || value?.length < maxItemSelected) {\n <ng-container *ngIf=\"!(searchResult$ | async)\">\n <ng-container *ngIf=\"!isDropdown; else dropdownList\">\n <mat-optgroup\n [label]=\"(translationContext + 'SUGGESTED' | uiTranslate | async)! | uppercase\"\n *ngIf=\"suggestionsList.length\"\n >\n <mat-option\n (mousedown)=\"$event.preventDefault()\"\n [ngClass]=\"{ 'selected-option': suggested | includes: value : valueField }\"\n *ngFor=\"let suggested of suggestionsList\"\n [value]=\"suggested\"\n >\n <span [selectText]=\"userInput$ | async\">{{ suggested | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n </mat-optgroup>\n\n <mat-optgroup\n [label]=\"(translationContext + 'SELECTED' | uiTranslate | async)! | uppercase\"\n *ngIf=\"value?.length && type !== autocompleteType.SINGLE\"\n >\n <mat-option\n (mousedown)=\"$event.preventDefault()\"\n [ngClass]=\"{ 'selected-option': item | includes: value : valueField }\"\n *ngFor=\"let item of value\"\n [value]=\"item\"\n >\n <span>{{ item | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n </mat-optgroup>\n\n @if (isGrouped) {\n @for (group of itemsList; track group) {\n @if (group.groupName) {\n <mat-optgroup [label]=\"group.groupName\">\n <mat-option\n (mousedown)=\"$event.preventDefault()\"\n [ngClass]=\"{ 'selected-option': item | includes: value : valueField }\"\n *ngFor=\"let item of group.items\"\n [value]=\"item\"\n >\n <span [selectText]=\"userInput$ | async\">{{ item | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n </mat-optgroup>\n } @else {\n <mat-option\n (mousedown)=\"$event.preventDefault()\"\n [ngClass]=\"{ 'selected-option': item | includes: value : valueField }\"\n *ngFor=\"let item of group.items\"\n [value]=\"item\"\n >\n <span [selectText]=\"userInput$ | async\">{{ item | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n }\n }\n }\n\n <mat-optgroup\n [label]=\"(translationContext + 'SELECTED' | uiTranslate | async)! | uppercase\"\n *ngIf=\"value?.length && type === autocompleteType.SINGLE\"\n >\n <mat-option (mousedown)=\"$event.preventDefault()\" [class]=\"'selected-option'\" [value]=\"value\">\n <span [selectText]=\"userInput$ | async\">{{ value | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n </mat-optgroup>\n </ng-container>\n\n <ng-template #dropdownList>\n <cdk-virtual-scroll-viewport\n *ngIf=\"virtualScroll || infiniteScroll; else defaultViewPort\"\n [itemSize]=\"48\"\n [style.height.px]=\"getVirtualScrollHeight(itemsList.length)\"\n class=\"virtual-scroll\"\n >\n @if (!isGrouped) {\n <mat-option\n (mousedown)=\"$event.preventDefault()\"\n [ngClass]=\"{ 'selected-option': item | includes: value : valueField }\"\n *cdkVirtualFor=\"let item of itemsList\"\n [value]=\"item\"\n >\n <span [selectText]=\"userInput$ | async\">{{ item | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n\n @if (infiniteScroll && hasMoreOptionsForInfiniteScroll) {\n <mat-option class=\"loading-option\" [style.pointer-events]=\"'none'\">\n <div class=\"loading-container\">\n <ui-spinner size=\"small\" [isLoader]=\"false\"></ui-spinner>\n </div>\n </mat-option>\n }\n } @else {\n @for (group of itemsList; track group) {\n @if (group.groupName) {\n <mat-optgroup [label]=\"group.groupName\">\n <mat-option\n (mousedown)=\"$event.preventDefault()\"\n [ngClass]=\"{ 'selected-option': item | includes: value : valueField }\"\n *cdkVirtualFor=\"let item of group.items\"\n [value]=\"item\"\n >\n <span [selectText]=\"userInput$ | async\">{{ item | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n </mat-optgroup>\n } @else {\n <mat-option\n (mousedown)=\"$event.preventDefault()\"\n [ngClass]=\"{ 'selected-option': item | includes: value : valueField }\"\n *cdkVirtualFor=\"let item of group.items\"\n [value]=\"item\"\n >\n <span [selectText]=\"userInput$ | async\">{{ item | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n }\n }\n }\n </cdk-virtual-scroll-viewport>\n\n <ng-template #defaultViewPort>\n @if (!isGrouped) {\n <mat-option\n (mousedown)=\"$event.preventDefault()\"\n [ngClass]=\"{ 'selected-option': item | includes: value : valueField }\"\n *ngFor=\"let item of itemsList\"\n [value]=\"item\"\n >\n <span [selectText]=\"userInput$ | async\">{{ item | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n } @else {\n @for (group of itemsList; track group) {\n @if (group.groupName) {\n <mat-optgroup [label]=\"group.groupName\">\n <mat-option\n (mousedown)=\"$event.preventDefault()\"\n [ngClass]=\"{ 'selected-option': item | includes: value : valueField }\"\n *ngFor=\"let item of group.items\"\n [value]=\"item\"\n >\n <span [selectText]=\"userInput$ | async\">{{ item | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n </mat-optgroup>\n } @else {\n <mat-option\n (mousedown)=\"$event.preventDefault()\"\n [ngClass]=\"{ 'selected-option': item | includes: value : valueField }\"\n *ngFor=\"let item of group.items\"\n [value]=\"item\"\n >\n <span [selectText]=\"userInput$ | async\">{{ item | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n }\n }\n }\n </ng-template>\n </ng-template>\n </ng-container>\n\n <ng-container *ngIf=\"filteredSuggestionList$ | async as filteredSuggestionList\">\n <ng-container *ngIf=\"filteredItemsList$ | async as filteredItemsList\">\n <ng-container *ngIf=\"virtualScroll || infiniteScroll; else filteredWithoutVirtualScroll\">\n <cdk-virtual-scroll-viewport\n [itemSize]=\"48\"\n [style.height.px]=\"getVirtualScrollHeight(filteredItemsList.length)\"\n class=\"virtual-scroll\"\n >\n @if (isGrouped && filteredItemsList.length) {\n @for (group of filteredItemsList; track group) {\n @if (group.groupName) {\n <mat-optgroup [label]=\"group.groupName\">\n <mat-option\n (mousedown)=\"$event.preventDefault()\"\n [ngClass]=\"{ 'selected-option': item | includes: value : valueField }\"\n *cdkVirtualFor=\"let item of group.filteredItems\"\n [value]=\"item\"\n >\n <span [selectText]=\"userInput$ | async\">{{ item | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n </mat-optgroup>\n } @else {\n <mat-option\n (mousedown)=\"$event.preventDefault()\"\n [ngClass]=\"{ 'selected-option': item | includes: value : valueField }\"\n *cdkVirtualFor=\"let item of group.filteredItems\"\n [value]=\"item\"\n >\n <span [selectText]=\"userInput$ | async\">{{ item | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n }\n }\n }\n\n <mat-optgroup\n [label]=\"(translationContext + 'SUGGESTED' | uiTranslate | async)! | uppercase\"\n *ngIf=\"filteredSuggestionList.length\"\n >\n <mat-option\n (mousedown)=\"$event.preventDefault()\"\n [ngClass]=\"{ 'selected-option': item | includes: value : valueField }\"\n *cdkVirtualFor=\"let item of filteredSuggestionList\"\n [value]=\"item\"\n >\n <span [selectText]=\"userInput$ | async\">{{ item | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n </mat-optgroup>\n\n <ng-container *ngIf=\"!filteredSuggestionList.length && !isGrouped; else showItemListWithGroupVirtual\">\n @for (item of filteredItemsList; let idx = $index; track item[valueField] || idx) {\n <mat-option\n (mousedown)=\"$event.preventDefault()\"\n [ngClass]=\"{ 'selected-option': item | includes: value : valueField }\"\n [value]=\"item\"\n >\n <span [selectText]=\"userInput$ | async\">{{ item | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n }\n </ng-container>\n\n <ng-template #showItemListWithGroupVirtual>\n <mat-optgroup\n [label]=\"(translationContext + 'ALL_ITEMS' | uiTranslate | async)! | uppercase\"\n *ngIf=\"filteredItemsList.length && !isGrouped\"\n >\n @for (item of filteredItemsList; let idx = $index; track item[valueField] || idx) {\n <mat-option\n (mousedown)=\"$event.preventDefault()\"\n [ngClass]=\"{ 'selected-option': item | includes: value : valueField }\"\n [value]=\"item\"\n >\n <span [selectText]=\"userInput$ | async\">{{ item | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n }\n </mat-optgroup>\n </ng-template>\n\n @if (isDynamicFilteringEnabled && dynamicFilterLoading) {\n <mat-option class=\"loading-option\" [style.pointer-events]=\"'none'\">\n <div class=\"loading-container\">\n <ui-spinner size=\"small\" [isLoader]=\"false\"></ui-spinner>\n </div>\n </mat-option>\n } @else if (inputValue) {\n @if (allowAdd && !isAlreadyAdded) {\n <mat-option (mousedown)=\"$event.preventDefault()\" [value]=\"inputValue\">\n <span>{{ 'COMMON.ADD' | uiTranslate | async }}</span>\n <span class=\"add-suggestion\">\"{{ inputValue }}\"</span>\n </mat-option>\n } @else if (!filteredItemsList.length && !filteredSuggestionList.length) {\n <mat-option [style.pointer-events]=\"'none'\">\n <span>{{ translationContext + 'NO_RESULTS_FOUND' | uiTranslate | async }}</span>\n </mat-option>\n }\n }\n </cdk-virtual-scroll-viewport>\n </ng-container>\n\n <ng-template #filteredWithoutVirtualScroll>\n @if (isGrouped && filteredItemsList.length) {\n @for (group of filteredItemsList; track group) {\n @if (group.groupName) {\n <mat-optgroup [label]=\"group.groupName\">\n <mat-option\n (mousedown)=\"$event.preventDefault()\"\n [ngClass]=\"{ 'selected-option': item | includes: value : valueField }\"\n *ngFor=\"let item of group.filteredItems\"\n [value]=\"item\"\n >\n <span [selectText]=\"userInput$ | async\">{{ item | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n </mat-optgroup>\n } @else {\n <mat-option\n (mousedown)=\"$event.preventDefault()\"\n [ngClass]=\"{ 'selected-option': item | includes: value : valueField }\"\n *ngFor=\"let item of group.filteredItems\"\n [value]=\"item\"\n >\n <span [selectText]=\"userInput$ | async\">{{ item | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n }\n }\n }\n\n @if (isGrouped && filteredItemsList.length) {\n @for (group of filteredItemsList; track group) {\n @if (group.groupName) {\n <mat-optgroup [label]=\"group.groupName\">\n <mat-option\n (mousedown)=\"$event.preventDefault()\"\n [ngClass]=\"{ 'selected-option': item | includes: value : valueField }\"\n *ngFor=\"let item of group.filteredItems\"\n [value]=\"item\"\n >\n <span [selectText]=\"userInput$ | async\">{{ item | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n </mat-optgroup>\n } @else {\n <mat-option\n (mousedown)=\"$event.preventDefault()\"\n [ngClass]=\"{ 'selected-option': item | includes: value : valueField }\"\n *ngFor=\"let item of group.filteredItems\"\n [value]=\"item\"\n >\n <span [selectText]=\"userInput$ | async\">{{ item | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n }\n }\n }\n\n <mat-optgroup\n [label]=\"(translationContext + 'SUGGESTED' | uiTranslate | async)! | uppercase\"\n *ngIf=\"filteredSuggestionList.length\"\n >\n <mat-option\n (mousedown)=\"$event.preventDefault()\"\n [ngClass]=\"{ 'selected-option': item | includes: value : valueField }\"\n *ngFor=\"let item of filteredSuggestionList\"\n [value]=\"item\"\n >\n <span [selectText]=\"userInput$ | async\">{{ item | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n </mat-optgroup>\n\n <ng-container *ngIf=\"!filteredSuggestionList.length && !isGrouped; else showItemListWithGroup\">\n @for (item of filteredItemsList; let idx = $index; track item[valueField] || idx) {\n <mat-option\n (mousedown)=\"$event.preventDefault()\"\n [ngClass]=\"{ 'selected-option': item | includes: value : valueField }\"\n [value]=\"item\"\n >\n <span [selectText]=\"userInput$ | async\">{{ item | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n }\n </ng-container>\n\n <ng-template #showItemListWithGroup>\n <mat-optgroup\n [label]=\"(translationContext + 'ALL_ITEMS' | uiTranslate | async)! | uppercase\"\n *ngIf=\"filteredItemsList.length && !isGrouped\"\n >\n @for (item of filteredItemsList; let idx = $index; track item[valueField] || idx) {\n <mat-option\n (mousedown)=\"$event.preventDefault()\"\n [ngClass]=\"{ 'selected-option': item | includes: value : valueField }\"\n [value]=\"item\"\n >\n <span [selectText]=\"userInput$ | async\">{{ item | transformItem: textField }}</span>\n <ui-icon\n [applicationTheme]=\"applicationTheme\"\n [name]=\"applicationTheme === 'classic' ? 'Check' : 'Check-in-line'\"\n ></ui-icon>\n </mat-option>\n }\n </mat-optgroup>\n </ng-template>\n\n @if (isDynamicFilteringEnabled && dynamicFilterLoading) {\n <mat-option class=\"loading-option\" [style.pointer-events]=\"'none'\">\n <div class=\"loading-container\">\n <ui-spinner size=\"small\" [isLoader]=\"false\"></ui-spinner>\n </div>\n </mat-option>\n } @else if (inputValue) {\n @if (allowAdd && !isAlreadyAdded) {\n <mat-option (mousedown)=\"$event.preventDefault()\" [value]=\"inputValue\">\n <span>{{ 'COMMON.ADD' | uiTranslate | async }}</span>\n <span class=\"add-suggestion\">\"{{ inputValue }}\"</span>\n </mat-option>\n } @else if (!filteredItemsList.length && !filteredSuggestionList.length) {\n <mat-option [style.pointer-events]=\"'none'\">\n <span>{{ translationContext + 'NO_RESULTS_FOUND' | uiTranslate | async }}</span>\n </mat-option>\n }\n }\n </ng-template>\n </ng-container>\n </ng-container>\n }\n </mat-autocomplete>\n <mat-hint\n class=\"error\"\n *ngIf=\"\n safeErrors.length ||\n (ngControl?.errors | hasValidationError) ||\n (AutocompleteUtils.isArray(value) && value.length) > maxItemSelected ||\n ((AutocompleteUtils.isArray(value) && value.length) >= maxItemSelected && inputValue && inputValue !== ' ')\n \"\n >\n <div\n class=\"errors\"\n *ngIf=\"\n (AutocompleteUtils.isArray(value) && value.length) > maxItemSelected ||\n ((AutocompleteUtils.isArray(value) && value.length) >= maxItemSelected && inputValue && inputValue !== ' ')\n \"\n >\n <ui-icon [applicationTheme]=\"applicationTheme\" [name]=\"'Error'\"></ui-icon>\n <span>{{ translationContext + 'MAX_SELECTED_ERROR' | uiTranslate: { max: maxItemSelected } | async }}</span>\n </div>\n <ng-container *ngIf=\"safeErrors.length\">\n <div class=\"errors\" *ngFor=\"let error of safeErrors; trackBy: trackByFn\">\n <ui-icon [applicationTheme]=\"applicationTheme\" [name]=\"'Error'\"></ui-icon>\n <span [innerHTML]=\"error\"></span>\n </div>\n </ng-container>\n <ui-validation-error\n *ngIf=\"ngControl && !hideBuiltInErrors\"\n [ngControl]=\"ngControl\"\n [label]=\"hideLabelInErrors ? null : label\"\n ></ui-validation-error>\n </mat-hint>\n </mat-form-field>\n </div>\n</ng-container>\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}:host{width:320px;display:block}:host.full-width{width:100%}:host ui-tag{height:32px;margin:4px}:host ui-tag ::ng-deep .tag-container{margin:0!important}:host ui-tag ::ng-deep .tag-wrapper{max-width:fit-content}.large-size input{margin:10px 0}.large-size .selected-items{margin:5px 0;flex-wrap:wrap}.large-size .input-container{display:flex;flex-direction:column-reverse}.large-size ::ng-deep .mat-mdc-form-field-infix,.large-size .mat-mdc-form-field-flex{align-items:unset!important}.disabled *{pointer-events:none}.input-container{width:100%;margin:auto;display:flex;flex-direction:row-reverse}.input-container .selected-items{display:flex;padding-left:4px}.input-container .selected-items .selected-count{white-space:nowrap}.input-container .selected-items .value-tag{max-width:var(--tag-max-width)}.input-container .selected-items .value-tag ::ng-deep .tag-container{max-width:var(--tag-max-width)}.input-container .selected-items .overlap-count{font-size:14px;line-height:20px}.input-container .selected-items .overlap-count ui-tag{display:block}.input-container .selected-items .overlap-tag{position:absolute;opacity:0}.input-container input{margin-left:6px}.input-container input.unset-margin{margin-top:unset}.input-container input.no-caret{cursor:pointer;caret-color:transparent!important}.add-suggestion{margin:0 5px;color:#000;font-weight:700}.remove-selected{cursor:pointer;margin-right:2px;border-radius:50px;height:fit-content}.remove-selected.large-input-icon{margin-top:10px}.arrow-state{height:24px;cursor:pointer}.arrow-state.large-input-icon{margin-top:10px}.arrow-state.opened{transform:rotateX(180deg)}::ng-deep .autocomplete-wrapper .mat-mdc-form-field{width:100%}::ng-deep .autocomplete-wrapper .mat-mdc-form-field .mat-mdc-form-field-hint.error,::ng-deep .autocomplete-wrapper .mat-mdc-form-field .mat-mdc-form-field-hint.error svg{color:#cb7b7a}::ng-deep .autocomplete-wrapper .mat-mdc-form-field .mat-mdc-form-field-hint.error{display:flex}::ng-deep .autocomplete-wrapper .mat-mdc-form-field .mat-mdc-form-field-hint.error{display:flex;flex-flow:column;row-gap:4px}::ng-deep .autocomplete-wrapper .mat-mdc-form-field .mat-mdc-form-field-hint.error .errors{display:flex}::ng-deep .autocomplete-wrapper .mat-mdc-form-field .mat-mdc-form-field-hint.error .errors ui-icon{margin-right:8px}::ng-deep .autocomplete-wrapper .mat-mdc-form-field .mat-mdc-form-field-hint.error{color:#e02800!important}::ng-deep .autocomplete-wrapper .mat-mdc-form-field .mat-mdc-form-field-hint.error svg{color:#e02800!important}::ng-deep .autocomplete-wrapper .mat-mdc-form-field .mat-mdc-form-field-bottom-align:before{height:0}::ng-deep .autocomplete-wrapper .mat-mdc-form-field .mat-mdc-form-field-hint-wrapper{padding:0 0 12px;font-size:12px;line-height:16px;position:relative}::ng-deep .autocomplete-wrapper .mat-mdc-form-field .mat-mdc-form-field-hint-wrapper .mat-form-field-hint-spacer{display:none}::ng-deep .autocomplete-wrapper .mat-mdc-form-field.hide-bottom-content .mat-mdc-form-field-subscript-wrapper{display:none}::ng-deep .autocomplete-wrapper .mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{top:28px!important}::ng-deep .autocomplete-wrapper .mat-mdc-form-field .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:22px!important}::ng-deep .autocomplete-wrapper .mat-mdc-form-field .mat-mdc-text-field-wrapper{padding-left:12px!important;height:unset!important;max-height:unset!important}::ng-deep .autocomplete-wrapper .mat-mdc-form-field .mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{color:#276678!important}::ng-deep .autocomplete-wrapper .mat-mdc-form-field .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch{border-bottom:2px solid #276678!important}::ng-deep .autocomplete-wrapper .mat-mdc-form-field .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading{border-left:2px solid #276678!important;border-bottom:2px solid #276678!important;border-top:2px solid #276678!important}::ng-deep .autocomplete-wrapper .mat-mdc-form-field .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border:2px solid #276678!important;border-left:unset!important}::ng-deep .autocomplete-wrapper .mat-mdc-form-field .mat-mdc-form-field-infix,::ng-deep .autocomplete-wrapper .mat-mdc-form-field .mat-mdc-form-field-flex{min-height:48px!important;max-height:184px!important;overflow-y:auto;overflow-x:hidden;padding:0!important;display:flex;justify-content:center;text-align:center;align-items:center;flex-direction:row;width:100%}::ng-deep .autocomplete-wrapper .mat-mdc-form-field .mdc-line-ripple{display:none!important}::ng-deep .mat-mdc-autocomplete-panel{box-shadow:0 8px 24px 4px #00000014;max-height:312px!important}::ng-deep .mat-mdc-autocomplete-panel .mat-mdc-option:hover:not(.mdc-list-item--disabled),::ng-deep .mat-mdc-autocomplete-panel .mat-mdc-option:focus:not(.mdc-list-item--disabled),::ng-deep .mat-mdc-autocomplete-panel .mat-mdc-option.mat-mdc-option-active,::ng-deep .mat-mdc-autocomplete-panel .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple):not(.mdc-list-item--disabled){background:#e9f0f1!important}::ng-deep .mat-mdc-autocomplete-panel .mat-mdc-option{padding-right:32px;padding-left:12px!important}::ng-deep .mat-mdc-autocomplete-panel .mat-mdc-option ui-icon{display:none;position:absolute;right:0;bottom:calc(50% - 8px);margin:0 10px}::ng-deep .mat-mdc-autocomplete-panel .mat-mdc-option.selected-option{background:#e9f0f1}::ng-deep .mat-mdc-autocomplete-panel .mat-mdc-option.selected-option ui-icon{display:block}::ng-deep .mat-mdc-autocomplete-panel .mat-mdc-option.mdc-list-item--selected .mdc-list-item__primary-text,::ng-deep .mat-mdc-autocomplete-panel .mat-mdc-option .mdc-list-item--activated .mdc-list-item__primary-text{color:#000!important}::ng-deep .mat-mdc-autocomplete-panel .mat-mdc-option .mat-pseudo-checkbox{display:none}::ng-deep .mat-mdc-autocomplete-panel .mat-mdc-optgroup .mat-mdc-optgroup-label{font-weight:700!important}::ng-deep .mat-mdc-autocomplete-panel .mat-mdc-optgroup .mdc-list-item__primary-text{color:#000;font-size:12px;line-height:16px;font-weight:700}.active-field .mdc-notched-outline__leading{border-left-width:2px;border-top-width:2px;border-bottom-width:2px}.active-field .mdc-notched-outline__notch{border-top-width:2px;border-bottom-width:2px}.active-field .mdc-notched-outline__trailing{border-top-width:2px;border-bottom-width:2px;border-right-width:2px}.loading-option{display:flex}.loading-option .loading-container{display:flex;justify-content:center;align-items:center;width:100%;height:100%;position:absolute;top:0;left:0}\n"] }]
859
- }], ctorParameters: () => [{ type: undefined, decorators: [{
860
- type: Optional
861
- }, {
862
- type: Inject,
863
- args: ['CANOPYUI_DEFAULT_APPLICATION_THEME']
864
- }] }, { type: i0.ChangeDetectorRef }, { type: i1.DomSanitizer }, { type: i2.NgControl, decorators: [{
865
- type: Optional
866
- }, {
867
- type: Self
868
- }] }, { type: undefined, decorators: [{
869
- type: Inject,
870
- args: [PLATFORM_ID]
871
- }] }, { type: i0.ElementRef }, { type: i3.FocusMonitor }, { type: i0.DestroyRef }, { type: i0.NgZone }], propDecorators: { itemsList: [{
872
- type: Input
873
- }], suggestionsList: [{
874
- type: Input
875
- }], disabled: [{
876
- type: Input
877
- }], allowAdd: [{
878
- type: Input
879
- }], textField: [{
880
- type: Input
881
- }], valueField: [{
882
- type: Input
883
- }], label: [{
884
- type: Input
885
- }], placeholder: [{
886
- type: Input
887
- }], itemValue: [{
888
- type: Input
889
- }], type: [{
890
- type: Input
891
- }], minCharactersSearch: [{
892
- type: Input
893
- }], variant: [{
894
- type: Input,
895
- args: [{ required: true }]
896
- }], showBottomContent: [{
897
- type: Input
898
- }], valuePrimitive: [{
899
- type: Input
900
- }], fullWidth: [{
901
- type: HostBinding,
902
- args: ['class.full-width']
903
- }, {
904
- type: Input
905
- }], applicationTheme: [{
906
- type: HostBinding,
907
- args: ['attr.theme']
908
- }, {
909
- type: Input
910
- }], required: [{
911
- type: Input
912
- }], errors: [{
913
- type: Input
914
- }], companyColor: [{
915
- type: Input
916
- }], hideBuiltInErrors: [{
917
- type: Input
918
- }], hideLabelInErrors: [{
919
- type: Input
920
- }], virtualScroll: [{
921
- type: Input,
922
- args: [{ transform: booleanAttribute }]
923
- }], compareWith: [{
924
- type: Input
925
- }], dropdownPanelClass: [{
926
- type: Input
927
- }], closeOnScroll: [{
928
- type: Input
929
- }], size: [{
930
- type: Input
931
- }], allowUserInput: [{
932
- type: Input
933
- }], clearable: [{
934
- type: Input
935
- }], exactMatchSelect: [{
936
- type: Input
937
- }], maxItemSelected: [{
938
- type: Input
939
- }], maxLength: [{
940
- type: Input
941
- }], isDynamicFilteringEnabled: [{
942
- type: Input
943
- }], dynamicFilterLoading: [{
944
- type: Input
945
- }], dynamicFilteredList: [{
946
- type: Input
947
- }], infiniteScroll: [{
948
- type: Input
949
- }], hasMoreOptionsForInfiniteScroll: [{
950
- type: Input
951
- }], selectionChange: [{
952
- type: Output
953
- }], searchTextChange: [{
954
- type: Output
955
- }], blur: [{
956
- type: Output
957
- }], focus: [{
958
- type: Output
959
- }], scrollViewportBottomReached: [{
960
- type: Output
961
- }], scrollViewportBottomReachedFiltered: [{
962
- type: Output
963
- }], formFieldElement: [{
964
- type: ViewChild,
965
- args: ['formField']
966
- }], tagContainer: [{
967
- type: ViewChild,
968
- args: ['tagContainer']
969
- }], autocomplete: [{
970
- type: ViewChild,
971
- args: ['trigger']
972
- }], cdkVirtualScrollViewport: [{
973
- type: ViewChild,
974
- args: [CdkVirtualScrollViewport, { static: false }]
975
- }], matAutocomplete: [{
976
- type: ViewChild,
977
- args: ['autocomplete']
978
- }], matInput: [{
979
- type: ViewChild,
980
- args: ['matInput']
981
- }] } });
982
-
983
- class AutocompleteComponentModule {
984
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: AutocompleteComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
985
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.17", ngImport: i0, type: AutocompleteComponentModule, declarations: [AutocompleteComponent, TransformItemPipe, IncludesPipe, SelectTextDirective], imports: [CommonModule,
986
- MatFormFieldModule,
987
- MatAutocompleteModule,
988
- MatInputModule,
989
- FormsModule,
990
- TagComponentModule,
991
- MatChipsModule,
992
- IconComponentModule,
993
- UiTranslatePipe,
994
- ValidationErrorModule,
995
- HasValidationErrorPipe,
996
- CdkVirtualForOf,
997
- CdkVirtualScrollViewport,
998
- CdkFixedSizeVirtualScroll,
999
- PreventInputDirective,
1000
- SpinnerComponentModule], exports: [AutocompleteComponent] }); }
1001
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: AutocompleteComponentModule, providers: [TransformItemPipe, IncludesPipe, SelectTextDirective], imports: [CommonModule,
1002
- MatFormFieldModule,
1003
- MatAutocompleteModule,
1004
- MatInputModule,
1005
- FormsModule,
1006
- TagComponentModule,
1007
- MatChipsModule,
1008
- IconComponentModule,
1009
- ValidationErrorModule,
1010
- CdkVirtualScrollViewport,
1011
- SpinnerComponentModule] }); }
1012
- }
1013
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: AutocompleteComponentModule, decorators: [{
1014
- type: NgModule,
1015
- args: [{
1016
- declarations: [AutocompleteComponent, TransformItemPipe, IncludesPipe, SelectTextDirective],
1017
- imports: [
1018
- CommonModule,
1019
- MatFormFieldModule,
1020
- MatAutocompleteModule,
1021
- MatInputModule,
1022
- FormsModule,
1023
- TagComponentModule,
1024
- MatChipsModule,
1025
- IconComponentModule,
1026
- UiTranslatePipe,
1027
- ValidationErrorModule,
1028
- HasValidationErrorPipe,
1029
- CdkVirtualForOf,
1030
- CdkVirtualScrollViewport,
1031
- CdkFixedSizeVirtualScroll,
1032
- PreventInputDirective,
1033
- SpinnerComponentModule
1034
- ],
1035
- exports: [AutocompleteComponent],
1036
- providers: [TransformItemPipe, IncludesPipe, SelectTextDirective],
1037
- }]
1038
- }] });
1039
-
1040
- /**
1041
- * Generated bundle index. Do not edit.
1042
- */
1043
-
1044
- export { AMOUNT_TAG_WIDTH, Autocomplete, AutocompleteComponent, AutocompleteComponentModule, DropdownVariation, Padding, Timeout };
1045
- //# sourceMappingURL=testgorilla-tgo-ui-components-autocomplete.mjs.map