@ngstarter-ui/components 22.3.5 → 22.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (476) hide show
  1. package/README.md +27 -0
  2. package/ai/component-registry.json +186 -101
  3. package/fesm2022/attachment-block-BK9QxVjq.mjs +163 -0
  4. package/fesm2022/attachment-block-BK9QxVjq.mjs.map +1 -0
  5. package/fesm2022/callout-block-Bl4GZYz8.mjs +196 -0
  6. package/fesm2022/callout-block-Bl4GZYz8.mjs.map +1 -0
  7. package/fesm2022/code-block.component-DCRD-9iP.mjs +393 -0
  8. package/fesm2022/code-block.component-DCRD-9iP.mjs.map +1 -0
  9. package/fesm2022/content-builder.store-D622mHxt.mjs +328 -0
  10. package/fesm2022/content-builder.store-D622mHxt.mjs.map +1 -0
  11. package/fesm2022/content-editor-content-editable.directive-WzD9_71s.mjs +1110 -0
  12. package/fesm2022/content-editor-content-editable.directive-WzD9_71s.mjs.map +1 -0
  13. package/fesm2022/cursor-controller-DKfBII1n.mjs +55 -0
  14. package/fesm2022/cursor-controller-DKfBII1n.mjs.map +1 -0
  15. package/fesm2022/default-converters-9oSKDsXP.mjs +140 -0
  16. package/fesm2022/default-converters-9oSKDsXP.mjs.map +1 -0
  17. package/fesm2022/divider-block.component-Dvgeq_D0.mjs +148 -0
  18. package/fesm2022/divider-block.component-Dvgeq_D0.mjs.map +1 -0
  19. package/fesm2022/embed-block-CYkOv4Wt.mjs +565 -0
  20. package/fesm2022/embed-block-CYkOv4Wt.mjs.map +1 -0
  21. package/fesm2022/extra-block-defs-Cn_hfM3c.mjs +122 -0
  22. package/fesm2022/extra-block-defs-Cn_hfM3c.mjs.map +1 -0
  23. package/fesm2022/gallery-block-DT3uIURY.mjs +365 -0
  24. package/fesm2022/gallery-block-DT3uIURY.mjs.map +1 -0
  25. package/fesm2022/grid-block-ZVDT3m8-.mjs +504 -0
  26. package/fesm2022/grid-block-ZVDT3m8-.mjs.map +1 -0
  27. package/fesm2022/heading-block.component-iCpJGTMh.mjs +274 -0
  28. package/fesm2022/heading-block.component-iCpJGTMh.mjs.map +1 -0
  29. package/fesm2022/html-utils-DywL8gGa.mjs +24 -0
  30. package/fesm2022/html-utils-DywL8gGa.mjs.map +1 -0
  31. package/fesm2022/image-block.component-DJ7-HCR8.mjs +285 -0
  32. package/fesm2022/image-block.component-DJ7-HCR8.mjs.map +1 -0
  33. package/fesm2022/list-block.component-qFIebEBO.mjs +312 -0
  34. package/fesm2022/list-block.component-qFIebEBO.mjs.map +1 -0
  35. package/fesm2022/nested-blocks-CXhgXJ1H.mjs +345 -0
  36. package/fesm2022/nested-blocks-CXhgXJ1H.mjs.map +1 -0
  37. package/fesm2022/ngstarter-ui-components-action-required.mjs +150 -45
  38. package/fesm2022/ngstarter-ui-components-action-required.mjs.map +1 -1
  39. package/fesm2022/ngstarter-ui-components-alert.mjs +318 -133
  40. package/fesm2022/ngstarter-ui-components-alert.mjs.map +1 -1
  41. package/fesm2022/ngstarter-ui-components-announcement.mjs +280 -88
  42. package/fesm2022/ngstarter-ui-components-announcement.mjs.map +1 -1
  43. package/fesm2022/ngstarter-ui-components-autocomplete.mjs +647 -386
  44. package/fesm2022/ngstarter-ui-components-autocomplete.mjs.map +1 -1
  45. package/fesm2022/ngstarter-ui-components-avatar.mjs +715 -482
  46. package/fesm2022/ngstarter-ui-components-avatar.mjs.map +1 -1
  47. package/fesm2022/ngstarter-ui-components-badge.mjs +308 -97
  48. package/fesm2022/ngstarter-ui-components-badge.mjs.map +1 -1
  49. package/fesm2022/ngstarter-ui-components-block-loader.mjs +164 -47
  50. package/fesm2022/ngstarter-ui-components-block-loader.mjs.map +1 -1
  51. package/fesm2022/ngstarter-ui-components-bottom-sheet.mjs +278 -315
  52. package/fesm2022/ngstarter-ui-components-bottom-sheet.mjs.map +1 -1
  53. package/fesm2022/ngstarter-ui-components-breadcrumbs.mjs +707 -205
  54. package/fesm2022/ngstarter-ui-components-breadcrumbs.mjs.map +1 -1
  55. package/fesm2022/ngstarter-ui-components-button-toggle.mjs +518 -175
  56. package/fesm2022/ngstarter-ui-components-button-toggle.mjs.map +1 -1
  57. package/fesm2022/ngstarter-ui-components-button.mjs +294 -68
  58. package/fesm2022/ngstarter-ui-components-button.mjs.map +1 -1
  59. package/fesm2022/ngstarter-ui-components-calendar.mjs +442 -250
  60. package/fesm2022/ngstarter-ui-components-calendar.mjs.map +1 -1
  61. package/fesm2022/ngstarter-ui-components-card-overlay.mjs +159 -47
  62. package/fesm2022/ngstarter-ui-components-card-overlay.mjs.map +1 -1
  63. package/fesm2022/ngstarter-ui-components-card.mjs +619 -194
  64. package/fesm2022/ngstarter-ui-components-card.mjs.map +1 -1
  65. package/fesm2022/ngstarter-ui-components-carousel.mjs +1012 -634
  66. package/fesm2022/ngstarter-ui-components-carousel.mjs.map +1 -1
  67. package/fesm2022/ngstarter-ui-components-checkbox.mjs +715 -308
  68. package/fesm2022/ngstarter-ui-components-checkbox.mjs.map +1 -1
  69. package/fesm2022/ngstarter-ui-components-chips.mjs +1397 -667
  70. package/fesm2022/ngstarter-ui-components-chips.mjs.map +1 -1
  71. package/fesm2022/ngstarter-ui-components-code-highlighter.mjs +519 -357
  72. package/fesm2022/ngstarter-ui-components-code-highlighter.mjs.map +1 -1
  73. package/fesm2022/ngstarter-ui-components-color-picker.mjs +1218 -604
  74. package/fesm2022/ngstarter-ui-components-color-picker.mjs.map +1 -1
  75. package/fesm2022/ngstarter-ui-components-color-scheme.mjs +265 -134
  76. package/fesm2022/ngstarter-ui-components-color-scheme.mjs.map +1 -1
  77. package/fesm2022/ngstarter-ui-components-color-switcher.mjs +190 -71
  78. package/fesm2022/ngstarter-ui-components-color-switcher.mjs.map +1 -1
  79. package/fesm2022/ngstarter-ui-components-command-bar.mjs +197 -58
  80. package/fesm2022/ngstarter-ui-components-command-bar.mjs.map +1 -1
  81. package/fesm2022/ngstarter-ui-components-comment-editor.mjs +2212 -1128
  82. package/fesm2022/ngstarter-ui-components-comment-editor.mjs.map +1 -1
  83. package/fesm2022/ngstarter-ui-components-comparison-slider.mjs +269 -183
  84. package/fesm2022/ngstarter-ui-components-comparison-slider.mjs.map +1 -1
  85. package/fesm2022/ngstarter-ui-components-confirm.mjs +164 -86
  86. package/fesm2022/ngstarter-ui-components-confirm.mjs.map +1 -1
  87. package/fesm2022/ngstarter-ui-components-content-editor.mjs +6240 -2
  88. package/fesm2022/ngstarter-ui-components-content-editor.mjs.map +1 -1
  89. package/fesm2022/ngstarter-ui-components-cookie-popup.mjs +244 -108
  90. package/fesm2022/ngstarter-ui-components-cookie-popup.mjs.map +1 -1
  91. package/fesm2022/ngstarter-ui-components-core.mjs +2110 -1592
  92. package/fesm2022/ngstarter-ui-components-core.mjs.map +1 -1
  93. package/fesm2022/ngstarter-ui-components-country-select.mjs +1970 -588
  94. package/fesm2022/ngstarter-ui-components-country-select.mjs.map +1 -1
  95. package/fesm2022/ngstarter-ui-components-crop.mjs +249 -191
  96. package/fesm2022/ngstarter-ui-components-crop.mjs.map +1 -1
  97. package/fesm2022/ngstarter-ui-components-currency-select.mjs +1658 -452
  98. package/fesm2022/ngstarter-ui-components-currency-select.mjs.map +1 -1
  99. package/fesm2022/ngstarter-ui-components-data-view.mjs +4538 -2497
  100. package/fesm2022/ngstarter-ui-components-data-view.mjs.map +1 -1
  101. package/fesm2022/ngstarter-ui-components-date-format-select.mjs +357 -157
  102. package/fesm2022/ngstarter-ui-components-date-format-select.mjs.map +1 -1
  103. package/fesm2022/ngstarter-ui-components-datepicker.mjs +2587 -1264
  104. package/fesm2022/ngstarter-ui-components-datepicker.mjs.map +1 -1
  105. package/fesm2022/ngstarter-ui-components-dialog.mjs +681 -385
  106. package/fesm2022/ngstarter-ui-components-dialog.mjs.map +1 -1
  107. package/fesm2022/ngstarter-ui-components-digit-roller.mjs +1000 -750
  108. package/fesm2022/ngstarter-ui-components-digit-roller.mjs.map +1 -1
  109. package/fesm2022/ngstarter-ui-components-divider.mjs +164 -41
  110. package/fesm2022/ngstarter-ui-components-divider.mjs.map +1 -1
  111. package/fesm2022/ngstarter-ui-components-drawer.mjs +218 -143
  112. package/fesm2022/ngstarter-ui-components-drawer.mjs.map +1 -1
  113. package/fesm2022/ngstarter-ui-components-emoji-picker.mjs +345 -247
  114. package/fesm2022/ngstarter-ui-components-emoji-picker.mjs.map +1 -1
  115. package/fesm2022/ngstarter-ui-components-empty-state.mjs +244 -74
  116. package/fesm2022/ngstarter-ui-components-empty-state.mjs.map +1 -1
  117. package/fesm2022/ngstarter-ui-components-events.mjs +467 -126
  118. package/fesm2022/ngstarter-ui-components-events.mjs.map +1 -1
  119. package/fesm2022/ngstarter-ui-components-expand.mjs +191 -59
  120. package/fesm2022/ngstarter-ui-components-expand.mjs.map +1 -1
  121. package/fesm2022/ngstarter-ui-components-expansion.mjs +529 -193
  122. package/fesm2022/ngstarter-ui-components-expansion.mjs.map +1 -1
  123. package/fesm2022/ngstarter-ui-components-file-type.mjs +270 -171
  124. package/fesm2022/ngstarter-ui-components-file-type.mjs.map +1 -1
  125. package/fesm2022/ngstarter-ui-components-filter-builder.mjs +741 -352
  126. package/fesm2022/ngstarter-ui-components-filter-builder.mjs.map +1 -1
  127. package/fesm2022/ngstarter-ui-components-form-builder.mjs +9032 -6964
  128. package/fesm2022/ngstarter-ui-components-form-builder.mjs.map +1 -1
  129. package/fesm2022/ngstarter-ui-components-form-field.mjs +741 -276
  130. package/fesm2022/ngstarter-ui-components-form-field.mjs.map +1 -1
  131. package/fesm2022/ngstarter-ui-components-gauge.mjs +155 -43
  132. package/fesm2022/ngstarter-ui-components-gauge.mjs.map +1 -1
  133. package/fesm2022/ngstarter-ui-components-grid.mjs +197 -81
  134. package/fesm2022/ngstarter-ui-components-grid.mjs.map +1 -1
  135. package/fesm2022/ngstarter-ui-components-guided-tour.mjs +881 -740
  136. package/fesm2022/ngstarter-ui-components-guided-tour.mjs.map +1 -1
  137. package/fesm2022/ngstarter-ui-components-headless-editor.mjs +3573 -3656
  138. package/fesm2022/ngstarter-ui-components-headless-editor.mjs.map +1 -1
  139. package/fesm2022/ngstarter-ui-components-headless-stepper.mjs +277 -204
  140. package/fesm2022/ngstarter-ui-components-headless-stepper.mjs.map +1 -1
  141. package/fesm2022/ngstarter-ui-components-icon.mjs +209 -182
  142. package/fesm2022/ngstarter-ui-components-icon.mjs.map +1 -1
  143. package/fesm2022/ngstarter-ui-components-image-designer.mjs +5096 -4066
  144. package/fesm2022/ngstarter-ui-components-image-designer.mjs.map +1 -1
  145. package/fesm2022/ngstarter-ui-components-image-placeholder.mjs +45 -19
  146. package/fesm2022/ngstarter-ui-components-image-placeholder.mjs.map +1 -1
  147. package/fesm2022/ngstarter-ui-components-image-resizer.mjs +333 -154
  148. package/fesm2022/ngstarter-ui-components-image-resizer.mjs.map +1 -1
  149. package/fesm2022/ngstarter-ui-components-image-viewer.mjs +564 -358
  150. package/fesm2022/ngstarter-ui-components-image-viewer.mjs.map +1 -1
  151. package/fesm2022/ngstarter-ui-components-image-zoom-viewer.mjs +246 -167
  152. package/fesm2022/ngstarter-ui-components-image-zoom-viewer.mjs.map +1 -1
  153. package/fesm2022/ngstarter-ui-components-incidents.mjs +732 -258
  154. package/fesm2022/ngstarter-ui-components-incidents.mjs.map +1 -1
  155. package/fesm2022/ngstarter-ui-components-inline-text-edit.mjs +244 -182
  156. package/fesm2022/ngstarter-ui-components-inline-text-edit.mjs.map +1 -1
  157. package/fesm2022/ngstarter-ui-components-input-mask.mjs +314 -174
  158. package/fesm2022/ngstarter-ui-components-input-mask.mjs.map +1 -1
  159. package/fesm2022/ngstarter-ui-components-input-validator.mjs +45 -69
  160. package/fesm2022/ngstarter-ui-components-input-validator.mjs.map +1 -1
  161. package/fesm2022/ngstarter-ui-components-input.mjs +303 -161
  162. package/fesm2022/ngstarter-ui-components-input.mjs.map +1 -1
  163. package/fesm2022/ngstarter-ui-components-kanban-board.mjs +504 -159
  164. package/fesm2022/ngstarter-ui-components-kanban-board.mjs.map +1 -1
  165. package/fesm2022/ngstarter-ui-components-kbd.mjs +86 -30
  166. package/fesm2022/ngstarter-ui-components-kbd.mjs.map +1 -1
  167. package/fesm2022/ngstarter-ui-components-layout.mjs +681 -220
  168. package/fesm2022/ngstarter-ui-components-layout.mjs.map +1 -1
  169. package/fesm2022/ngstarter-ui-components-list.mjs +968 -281
  170. package/fesm2022/ngstarter-ui-components-list.mjs.map +1 -1
  171. package/fesm2022/ngstarter-ui-components-logo.mjs +181 -51
  172. package/fesm2022/ngstarter-ui-components-logo.mjs.map +1 -1
  173. package/fesm2022/ngstarter-ui-components-marquee.mjs +226 -147
  174. package/fesm2022/ngstarter-ui-components-marquee.mjs.map +1 -1
  175. package/fesm2022/ngstarter-ui-components-menu.mjs +1686 -1091
  176. package/fesm2022/ngstarter-ui-components-menu.mjs.map +1 -1
  177. package/fesm2022/ngstarter-ui-components-micro-chart.mjs +1541 -943
  178. package/fesm2022/ngstarter-ui-components-micro-chart.mjs.map +1 -1
  179. package/fesm2022/ngstarter-ui-components-navigation.mjs +1035 -455
  180. package/fesm2022/ngstarter-ui-components-navigation.mjs.map +1 -1
  181. package/fesm2022/ngstarter-ui-components-notifications.mjs +678 -230
  182. package/fesm2022/ngstarter-ui-components-notifications.mjs.map +1 -1
  183. package/fesm2022/ngstarter-ui-components-number-input.mjs +616 -316
  184. package/fesm2022/ngstarter-ui-components-number-input.mjs.map +1 -1
  185. package/fesm2022/ngstarter-ui-components-option.mjs +405 -163
  186. package/fesm2022/ngstarter-ui-components-option.mjs.map +1 -1
  187. package/fesm2022/ngstarter-ui-components-overlay.mjs +107 -111
  188. package/fesm2022/ngstarter-ui-components-overlay.mjs.map +1 -1
  189. package/fesm2022/ngstarter-ui-components-page-loading-bar.mjs +131 -76
  190. package/fesm2022/ngstarter-ui-components-page-loading-bar.mjs.map +1 -1
  191. package/fesm2022/ngstarter-ui-components-paginator.mjs +543 -295
  192. package/fesm2022/ngstarter-ui-components-paginator.mjs.map +1 -1
  193. package/fesm2022/ngstarter-ui-components-password-strength.mjs +785 -340
  194. package/fesm2022/ngstarter-ui-components-password-strength.mjs.map +1 -1
  195. package/fesm2022/ngstarter-ui-components-pdf-builder.mjs +3705 -2695
  196. package/fesm2022/ngstarter-ui-components-pdf-builder.mjs.map +1 -1
  197. package/fesm2022/ngstarter-ui-components-pdf-signer.mjs +1179 -851
  198. package/fesm2022/ngstarter-ui-components-pdf-signer.mjs.map +1 -1
  199. package/fesm2022/ngstarter-ui-components-pdf-viewer.mjs +2973 -2070
  200. package/fesm2022/ngstarter-ui-components-pdf-viewer.mjs.map +1 -1
  201. package/fesm2022/ngstarter-ui-components-phone-input.mjs +2081 -770
  202. package/fesm2022/ngstarter-ui-components-phone-input.mjs.map +1 -1
  203. package/fesm2022/ngstarter-ui-components-pin-input.mjs +366 -198
  204. package/fesm2022/ngstarter-ui-components-pin-input.mjs.map +1 -1
  205. package/fesm2022/ngstarter-ui-components-popover.mjs +558 -308
  206. package/fesm2022/ngstarter-ui-components-popover.mjs.map +1 -1
  207. package/fesm2022/ngstarter-ui-components-progress-bar.mjs +178 -73
  208. package/fesm2022/ngstarter-ui-components-progress-bar.mjs.map +1 -1
  209. package/fesm2022/ngstarter-ui-components-radio-card.mjs +301 -105
  210. package/fesm2022/ngstarter-ui-components-radio-card.mjs.map +1 -1
  211. package/fesm2022/ngstarter-ui-components-radio.mjs +417 -157
  212. package/fesm2022/ngstarter-ui-components-radio.mjs.map +1 -1
  213. package/fesm2022/ngstarter-ui-components-rail-nav.mjs +208 -88
  214. package/fesm2022/ngstarter-ui-components-rail-nav.mjs.map +1 -1
  215. package/fesm2022/ngstarter-ui-components-resizable-container.mjs +123 -74
  216. package/fesm2022/ngstarter-ui-components-resizable-container.mjs.map +1 -1
  217. package/fesm2022/ngstarter-ui-components-screen-loader.mjs +197 -95
  218. package/fesm2022/ngstarter-ui-components-screen-loader.mjs.map +1 -1
  219. package/fesm2022/ngstarter-ui-components-scroll-spy.mjs +383 -245
  220. package/fesm2022/ngstarter-ui-components-scroll-spy.mjs.map +1 -1
  221. package/fesm2022/ngstarter-ui-components-scrollbar-area.mjs +705 -581
  222. package/fesm2022/ngstarter-ui-components-scrollbar-area.mjs.map +1 -1
  223. package/fesm2022/ngstarter-ui-components-segmented.mjs +422 -220
  224. package/fesm2022/ngstarter-ui-components-segmented.mjs.map +1 -1
  225. package/fesm2022/ngstarter-ui-components-select.mjs +1862 -1159
  226. package/fesm2022/ngstarter-ui-components-select.mjs.map +1 -1
  227. package/fesm2022/ngstarter-ui-components-side-panel.mjs +313 -118
  228. package/fesm2022/ngstarter-ui-components-side-panel.mjs.map +1 -1
  229. package/fesm2022/ngstarter-ui-components-sidebar.mjs +1239 -470
  230. package/fesm2022/ngstarter-ui-components-sidebar.mjs.map +1 -1
  231. package/fesm2022/ngstarter-ui-components-sidenav.mjs +664 -354
  232. package/fesm2022/ngstarter-ui-components-sidenav.mjs.map +1 -1
  233. package/fesm2022/ngstarter-ui-components-signature-pad.mjs +1092 -643
  234. package/fesm2022/ngstarter-ui-components-signature-pad.mjs.map +1 -1
  235. package/fesm2022/ngstarter-ui-components-skeleton.mjs +153 -43
  236. package/fesm2022/ngstarter-ui-components-skeleton.mjs.map +1 -1
  237. package/fesm2022/ngstarter-ui-components-slide-toggle.mjs +425 -108
  238. package/fesm2022/ngstarter-ui-components-slide-toggle.mjs.map +1 -1
  239. package/fesm2022/ngstarter-ui-components-slider.mjs +645 -487
  240. package/fesm2022/ngstarter-ui-components-slider.mjs.map +1 -1
  241. package/fesm2022/ngstarter-ui-components-snack-bar.mjs +372 -354
  242. package/fesm2022/ngstarter-ui-components-snack-bar.mjs.map +1 -1
  243. package/fesm2022/ngstarter-ui-components-sort.mjs +378 -147
  244. package/fesm2022/ngstarter-ui-components-sort.mjs.map +1 -1
  245. package/fesm2022/ngstarter-ui-components-spinner.mjs +242 -76
  246. package/fesm2022/ngstarter-ui-components-spinner.mjs.map +1 -1
  247. package/fesm2022/ngstarter-ui-components-splash-screen.mjs +142 -91
  248. package/fesm2022/ngstarter-ui-components-splash-screen.mjs.map +1 -1
  249. package/fesm2022/ngstarter-ui-components-split.mjs +1067 -929
  250. package/fesm2022/ngstarter-ui-components-split.mjs.map +1 -1
  251. package/fesm2022/ngstarter-ui-components-step-tracker.mjs +617 -331
  252. package/fesm2022/ngstarter-ui-components-step-tracker.mjs.map +1 -1
  253. package/fesm2022/ngstarter-ui-components-stepper.mjs +357 -126
  254. package/fesm2022/ngstarter-ui-components-stepper.mjs.map +1 -1
  255. package/fesm2022/ngstarter-ui-components-suggestions.mjs +259 -72
  256. package/fesm2022/ngstarter-ui-components-suggestions.mjs.map +1 -1
  257. package/fesm2022/ngstarter-ui-components-tab-panel.mjs +674 -267
  258. package/fesm2022/ngstarter-ui-components-tab-panel.mjs.map +1 -1
  259. package/fesm2022/ngstarter-ui-components-table.mjs +1144 -662
  260. package/fesm2022/ngstarter-ui-components-table.mjs.map +1 -1
  261. package/fesm2022/ngstarter-ui-components-tabs.mjs +1236 -615
  262. package/fesm2022/ngstarter-ui-components-tabs.mjs.map +1 -1
  263. package/fesm2022/ngstarter-ui-components-thumbnail-maker.mjs +414 -216
  264. package/fesm2022/ngstarter-ui-components-thumbnail-maker.mjs.map +1 -1
  265. package/fesm2022/ngstarter-ui-components-tiles.mjs +939 -647
  266. package/fesm2022/ngstarter-ui-components-tiles.mjs.map +1 -1
  267. package/fesm2022/ngstarter-ui-components-timeline.mjs +418 -122
  268. package/fesm2022/ngstarter-ui-components-timeline.mjs.map +1 -1
  269. package/fesm2022/ngstarter-ui-components-timepicker.mjs +870 -508
  270. package/fesm2022/ngstarter-ui-components-timepicker.mjs.map +1 -1
  271. package/fesm2022/ngstarter-ui-components-timezone-select.mjs +651 -371
  272. package/fesm2022/ngstarter-ui-components-timezone-select.mjs.map +1 -1
  273. package/fesm2022/ngstarter-ui-components-toolbar.mjs +727 -320
  274. package/fesm2022/ngstarter-ui-components-toolbar.mjs.map +1 -1
  275. package/fesm2022/ngstarter-ui-components-tooltip.mjs +601 -521
  276. package/fesm2022/ngstarter-ui-components-tooltip.mjs.map +1 -1
  277. package/fesm2022/ngstarter-ui-components-tree-select.mjs +1197 -434
  278. package/fesm2022/ngstarter-ui-components-tree-select.mjs.map +1 -1
  279. package/fesm2022/ngstarter-ui-components-tree.mjs +1821 -1262
  280. package/fesm2022/ngstarter-ui-components-tree.mjs.map +1 -1
  281. package/fesm2022/ngstarter-ui-components-upload.mjs +1059 -345
  282. package/fesm2022/ngstarter-ui-components-upload.mjs.map +1 -1
  283. package/fesm2022/ngstarter-ui-components-video-player.mjs +763 -533
  284. package/fesm2022/ngstarter-ui-components-video-player.mjs.map +1 -1
  285. package/fesm2022/ngstarter-ui-components-video-viewer.mjs +630 -229
  286. package/fesm2022/ngstarter-ui-components-video-viewer.mjs.map +1 -1
  287. package/fesm2022/ngstarter-ui-components-visual-builder.mjs +40 -17
  288. package/fesm2022/ngstarter-ui-components-visual-builder.mjs.map +1 -1
  289. package/fesm2022/ngstarter-ui-components-whiteboard.mjs +3039 -1803
  290. package/fesm2022/ngstarter-ui-components-whiteboard.mjs.map +1 -1
  291. package/fesm2022/ngstarter-ui-components.mjs +3 -5
  292. package/fesm2022/ngstarter-ui-components.mjs.map +1 -1
  293. package/fesm2022/paragraph-block.component-Csk8Gu3x.mjs +264 -0
  294. package/fesm2022/paragraph-block.component-Csk8Gu3x.mjs.map +1 -0
  295. package/fesm2022/plain-text-settings-BnxCxLhA.mjs +354 -0
  296. package/fesm2022/plain-text-settings-BnxCxLhA.mjs.map +1 -0
  297. package/fesm2022/quote-block.component-tRmrU97F.mjs +309 -0
  298. package/fesm2022/quote-block.component-tRmrU97F.mjs.map +1 -0
  299. package/fesm2022/table-block.component-BuzRRggv.mjs +1859 -0
  300. package/fesm2022/table-block.component-BuzRRggv.mjs.map +1 -0
  301. package/fesm2022/toggle-block-C5Jo2YDf.mjs +150 -0
  302. package/fesm2022/toggle-block-C5Jo2YDf.mjs.map +1 -0
  303. package/fesm2022/upload-status-tZ0x0BUB.mjs +107 -0
  304. package/fesm2022/upload-status-tZ0x0BUB.mjs.map +1 -0
  305. package/fesm2022/video-block.component-CpAXibm6.mjs +312 -0
  306. package/fesm2022/video-block.component-CpAXibm6.mjs.map +1 -0
  307. package/package.json +11 -10
  308. package/styles/_tokens.scss +1 -0
  309. package/types/ngstarter-ui-components-action-required.d.ts +34 -14
  310. package/types/ngstarter-ui-components-alert.d.ts +53 -44
  311. package/types/ngstarter-ui-components-announcement.d.ts +74 -53
  312. package/types/ngstarter-ui-components-autocomplete.d.ts +141 -84
  313. package/types/ngstarter-ui-components-avatar.d.ts +113 -66
  314. package/types/ngstarter-ui-components-badge.d.ts +73 -37
  315. package/types/ngstarter-ui-components-block-loader.d.ts +32 -20
  316. package/types/ngstarter-ui-components-bottom-sheet.d.ts +125 -132
  317. package/types/ngstarter-ui-components-breadcrumbs.d.ts +93 -88
  318. package/types/ngstarter-ui-components-button-toggle.d.ts +124 -54
  319. package/types/ngstarter-ui-components-button.d.ts +69 -27
  320. package/types/ngstarter-ui-components-calendar.d.ts +123 -71
  321. package/types/ngstarter-ui-components-card-overlay.d.ts +31 -19
  322. package/types/ngstarter-ui-components-card.d.ts +75 -71
  323. package/types/ngstarter-ui-components-carousel.d.ts +115 -69
  324. package/types/ngstarter-ui-components-checkbox.d.ts +183 -86
  325. package/types/ngstarter-ui-components-chips.d.ts +288 -195
  326. package/types/ngstarter-ui-components-code-highlighter.d.ts +71 -28
  327. package/types/ngstarter-ui-components-color-picker.d.ts +140 -89
  328. package/types/ngstarter-ui-components-color-scheme.d.ts +43 -52
  329. package/types/ngstarter-ui-components-color-switcher.d.ts +46 -26
  330. package/types/ngstarter-ui-components-command-bar.d.ts +40 -26
  331. package/types/ngstarter-ui-components-comment-editor.d.ts +311 -235
  332. package/types/ngstarter-ui-components-comparison-slider.d.ts +41 -40
  333. package/types/ngstarter-ui-components-confirm.d.ts +24 -29
  334. package/types/ngstarter-ui-components-content-editor.d.ts +1482 -998
  335. package/types/ngstarter-ui-components-cookie-popup.d.ts +43 -38
  336. package/types/ngstarter-ui-components-core.d.ts +513 -467
  337. package/types/ngstarter-ui-components-country-select.d.ts +170 -97
  338. package/types/ngstarter-ui-components-crop.d.ts +67 -52
  339. package/types/ngstarter-ui-components-currency-select.d.ts +127 -90
  340. package/types/ngstarter-ui-components-data-view.d.ts +811 -567
  341. package/types/ngstarter-ui-components-date-format-select.d.ts +90 -58
  342. package/types/ngstarter-ui-components-datepicker.d.ts +589 -373
  343. package/types/ngstarter-ui-components-dialog.d.ts +138 -116
  344. package/types/ngstarter-ui-components-digit-roller.d.ts +228 -131
  345. package/types/ngstarter-ui-components-divider.d.ts +29 -17
  346. package/types/ngstarter-ui-components-drawer.d.ts +39 -30
  347. package/types/ngstarter-ui-components-emoji-picker.d.ts +69 -47
  348. package/types/ngstarter-ui-components-empty-state.d.ts +20 -28
  349. package/types/ngstarter-ui-components-events.d.ts +73 -57
  350. package/types/ngstarter-ui-components-expand.d.ts +55 -25
  351. package/types/ngstarter-ui-components-expansion.d.ts +93 -64
  352. package/types/ngstarter-ui-components-file-type.d.ts +53 -27
  353. package/types/ngstarter-ui-components-filter-builder.d.ts +131 -100
  354. package/types/ngstarter-ui-components-form-builder.d.ts +1094 -881
  355. package/types/ngstarter-ui-components-form-field.d.ts +116 -105
  356. package/types/ngstarter-ui-components-gauge.d.ts +32 -20
  357. package/types/ngstarter-ui-components-grid.d.ts +66 -50
  358. package/types/ngstarter-ui-components-guided-tour.d.ts +250 -222
  359. package/types/ngstarter-ui-components-headless-editor.d.ts +708 -658
  360. package/types/ngstarter-ui-components-headless-stepper.d.ts +84 -64
  361. package/types/ngstarter-ui-components-icon.d.ts +39 -38
  362. package/types/ngstarter-ui-components-image-designer.d.ts +422 -341
  363. package/types/ngstarter-ui-components-image-placeholder.d.ts +5 -8
  364. package/types/ngstarter-ui-components-image-resizer.d.ts +40 -33
  365. package/types/ngstarter-ui-components-image-viewer.d.ts +67 -54
  366. package/types/ngstarter-ui-components-image-zoom-viewer.d.ts +29 -33
  367. package/types/ngstarter-ui-components-incidents.d.ts +97 -104
  368. package/types/ngstarter-ui-components-inline-text-edit.d.ts +54 -39
  369. package/types/ngstarter-ui-components-input-mask.d.ts +54 -34
  370. package/types/ngstarter-ui-components-input-validator.d.ts +7 -11
  371. package/types/ngstarter-ui-components-input.d.ts +82 -54
  372. package/types/ngstarter-ui-components-kanban-board.d.ts +76 -63
  373. package/types/ngstarter-ui-components-kbd.d.ts +8 -12
  374. package/types/ngstarter-ui-components-layout.d.ts +131 -87
  375. package/types/ngstarter-ui-components-list.d.ts +123 -88
  376. package/types/ngstarter-ui-components-logo.d.ts +21 -21
  377. package/types/ngstarter-ui-components-marquee.d.ts +41 -34
  378. package/types/ngstarter-ui-components-menu.d.ts +329 -221
  379. package/types/ngstarter-ui-components-micro-chart.d.ts +385 -186
  380. package/types/ngstarter-ui-components-navigation.d.ts +186 -125
  381. package/types/ngstarter-ui-components-notifications.d.ts +104 -89
  382. package/types/ngstarter-ui-components-number-input.d.ts +138 -96
  383. package/types/ngstarter-ui-components-option.d.ts +102 -68
  384. package/types/ngstarter-ui-components-overlay.d.ts +7 -12
  385. package/types/ngstarter-ui-components-page-loading-bar.d.ts +23 -20
  386. package/types/ngstarter-ui-components-paginator.d.ts +171 -129
  387. package/types/ngstarter-ui-components-password-strength.d.ts +217 -102
  388. package/types/ngstarter-ui-components-pdf-builder.d.ts +717 -649
  389. package/types/ngstarter-ui-components-pdf-signer.d.ts +202 -142
  390. package/types/ngstarter-ui-components-pdf-viewer.d.ts +544 -385
  391. package/types/ngstarter-ui-components-phone-input.d.ts +175 -115
  392. package/types/ngstarter-ui-components-pin-input.d.ts +83 -45
  393. package/types/ngstarter-ui-components-popover.d.ts +128 -89
  394. package/types/ngstarter-ui-components-progress-bar.d.ts +49 -30
  395. package/types/ngstarter-ui-components-radio-card.d.ts +50 -34
  396. package/types/ngstarter-ui-components-radio.d.ts +100 -47
  397. package/types/ngstarter-ui-components-rail-nav.d.ts +36 -29
  398. package/types/ngstarter-ui-components-resizable-container.d.ts +30 -25
  399. package/types/ngstarter-ui-components-screen-loader.d.ts +38 -32
  400. package/types/ngstarter-ui-components-scroll-spy.d.ts +56 -60
  401. package/types/ngstarter-ui-components-scrollbar-area.d.ts +116 -86
  402. package/types/ngstarter-ui-components-segmented.d.ts +93 -61
  403. package/types/ngstarter-ui-components-select.d.ts +366 -266
  404. package/types/ngstarter-ui-components-side-panel.d.ts +59 -40
  405. package/types/ngstarter-ui-components-sidebar.d.ts +208 -154
  406. package/types/ngstarter-ui-components-sidenav.d.ts +136 -78
  407. package/types/ngstarter-ui-components-signature-pad.d.ts +165 -92
  408. package/types/ngstarter-ui-components-skeleton.d.ts +18 -17
  409. package/types/ngstarter-ui-components-slide-toggle.d.ts +113 -44
  410. package/types/ngstarter-ui-components-slider.d.ts +123 -82
  411. package/types/ngstarter-ui-components-snack-bar.d.ts +126 -134
  412. package/types/ngstarter-ui-components-sort.d.ts +99 -63
  413. package/types/ngstarter-ui-components-spinner.d.ts +49 -27
  414. package/types/ngstarter-ui-components-splash-screen.d.ts +34 -29
  415. package/types/ngstarter-ui-components-split.d.ts +276 -195
  416. package/types/ngstarter-ui-components-step-tracker.d.ts +102 -83
  417. package/types/ngstarter-ui-components-stepper.d.ts +57 -43
  418. package/types/ngstarter-ui-components-suggestions.d.ts +41 -28
  419. package/types/ngstarter-ui-components-tab-panel.d.ts +110 -83
  420. package/types/ngstarter-ui-components-table.d.ts +256 -228
  421. package/types/ngstarter-ui-components-tabs.d.ts +231 -138
  422. package/types/ngstarter-ui-components-thumbnail-maker.d.ts +40 -34
  423. package/types/ngstarter-ui-components-tiles.d.ts +166 -104
  424. package/types/ngstarter-ui-components-timeline.d.ts +45 -57
  425. package/types/ngstarter-ui-components-timepicker.d.ts +166 -111
  426. package/types/ngstarter-ui-components-timezone-select.d.ts +110 -70
  427. package/types/ngstarter-ui-components-toolbar.d.ts +89 -72
  428. package/types/ngstarter-ui-components-tooltip.d.ts +89 -52
  429. package/types/ngstarter-ui-components-tree-select.d.ts +182 -105
  430. package/types/ngstarter-ui-components-tree.d.ts +355 -229
  431. package/types/ngstarter-ui-components-upload.d.ts +216 -131
  432. package/types/ngstarter-ui-components-video-player.d.ts +130 -67
  433. package/types/ngstarter-ui-components-video-viewer.d.ts +140 -91
  434. package/types/ngstarter-ui-components-visual-builder.d.ts +5 -8
  435. package/types/ngstarter-ui-components-whiteboard.d.ts +412 -339
  436. package/types/ngstarter-ui-components.d.ts +2 -2
  437. package/fesm2022/ngstarter-ui-components-content-editor-attachment-block-8OmuepvH.mjs +0 -35
  438. package/fesm2022/ngstarter-ui-components-content-editor-attachment-block-8OmuepvH.mjs.map +0 -1
  439. package/fesm2022/ngstarter-ui-components-content-editor-callout-block-Dp5tISk3.mjs +0 -26
  440. package/fesm2022/ngstarter-ui-components-content-editor-callout-block-Dp5tISk3.mjs.map +0 -1
  441. package/fesm2022/ngstarter-ui-components-content-editor-code-block.component-BbBs-R_y.mjs +0 -220
  442. package/fesm2022/ngstarter-ui-components-content-editor-code-block.component-BbBs-R_y.mjs.map +0 -1
  443. package/fesm2022/ngstarter-ui-components-content-editor-cursor-controller-4Ak8VqGX.mjs +0 -99
  444. package/fesm2022/ngstarter-ui-components-content-editor-cursor-controller-4Ak8VqGX.mjs.map +0 -1
  445. package/fesm2022/ngstarter-ui-components-content-editor-divider-block.component-D1nXMRXD.mjs +0 -40
  446. package/fesm2022/ngstarter-ui-components-content-editor-divider-block.component-D1nXMRXD.mjs.map +0 -1
  447. package/fesm2022/ngstarter-ui-components-content-editor-embed-block-DGCCeU-Y.mjs +0 -375
  448. package/fesm2022/ngstarter-ui-components-content-editor-embed-block-DGCCeU-Y.mjs.map +0 -1
  449. package/fesm2022/ngstarter-ui-components-content-editor-gallery-block-BJfRgtaA.mjs +0 -80
  450. package/fesm2022/ngstarter-ui-components-content-editor-gallery-block-BJfRgtaA.mjs.map +0 -1
  451. package/fesm2022/ngstarter-ui-components-content-editor-grid-block-C_L7hF2G.mjs +0 -65
  452. package/fesm2022/ngstarter-ui-components-content-editor-grid-block-C_L7hF2G.mjs.map +0 -1
  453. package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-durrPUhm.mjs +0 -137
  454. package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-durrPUhm.mjs.map +0 -1
  455. package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-BoL1jZpT.mjs +0 -113
  456. package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-BoL1jZpT.mjs.map +0 -1
  457. package/fesm2022/ngstarter-ui-components-content-editor-list-block.component-ChZpgXO5.mjs +0 -235
  458. package/fesm2022/ngstarter-ui-components-content-editor-list-block.component-ChZpgXO5.mjs.map +0 -1
  459. package/fesm2022/ngstarter-ui-components-content-editor-nested-blocks-DwyNFnII.mjs +0 -117
  460. package/fesm2022/ngstarter-ui-components-content-editor-nested-blocks-DwyNFnII.mjs.map +0 -1
  461. package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-BWpJv6CO.mjs +0 -4464
  462. package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-BWpJv6CO.mjs.map +0 -1
  463. package/fesm2022/ngstarter-ui-components-content-editor-paragraph-block.component-BvNvkqTO.mjs +0 -132
  464. package/fesm2022/ngstarter-ui-components-content-editor-paragraph-block.component-BvNvkqTO.mjs.map +0 -1
  465. package/fesm2022/ngstarter-ui-components-content-editor-quote-block.component-tgNKltfK.mjs +0 -171
  466. package/fesm2022/ngstarter-ui-components-content-editor-quote-block.component-tgNKltfK.mjs.map +0 -1
  467. package/fesm2022/ngstarter-ui-components-content-editor-table-block.component-BcAlqmh8.mjs +0 -1653
  468. package/fesm2022/ngstarter-ui-components-content-editor-table-block.component-BcAlqmh8.mjs.map +0 -1
  469. package/fesm2022/ngstarter-ui-components-content-editor-toggle-block-S474I51r.mjs +0 -20
  470. package/fesm2022/ngstarter-ui-components-content-editor-toggle-block-S474I51r.mjs.map +0 -1
  471. package/fesm2022/ngstarter-ui-components-content-editor-upload-status-QnKI_Rfz.mjs +0 -19
  472. package/fesm2022/ngstarter-ui-components-content-editor-upload-status-QnKI_Rfz.mjs.map +0 -1
  473. package/fesm2022/ngstarter-ui-components-content-editor-video-block.component-Dj82fxTI.mjs +0 -134
  474. package/fesm2022/ngstarter-ui-components-content-editor-video-block.component-Dj82fxTI.mjs.map +0 -1
  475. package/fesm2022/ngstarter-ui-components-form-builder-plain-text-settings-GNXKGonc.mjs +0 -159
  476. package/fesm2022/ngstarter-ui-components-form-builder-plain-text-settings-GNXKGonc.mjs.map +0 -1
@@ -1,496 +1,729 @@
1
- import * as i0 from '@angular/core';
2
- import { InjectionToken, makeEnvironmentProviders, inject, ElementRef, input, booleanAttribute, computed, forwardRef, ChangeDetectionStrategy, Component } from '@angular/core';
3
-
4
- const AVATAR_ACCESSOR = new InjectionToken('AVATAR_ACCESSOR');
5
-
6
- const AVATAR_CONFIG = new InjectionToken('AVATAR_CONFIG');
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, ElementRef, InjectionToken, booleanAttribute, computed, forwardRef, inject, input, makeEnvironmentProviders } from "@angular/core";
3
+ const AVATAR_ACCESSOR = new InjectionToken("AVATAR_ACCESSOR");
4
+ const AVATAR_CONFIG = new InjectionToken("AVATAR_CONFIG");
7
5
  function provideAvatar(config) {
8
- return makeEnvironmentProviders([
9
- { provide: AVATAR_CONFIG, useValue: config }
10
- ]);
6
+ return makeEnvironmentProviders([{
7
+ provide: AVATAR_CONFIG,
8
+ useValue: config
9
+ }]);
11
10
  }
12
-
13
11
  const GENERATED_AVATAR_RANDOM_MIN = -2147483648;
14
- const GENERATED_AVATAR_RANDOM_MAX = 2147483647;
15
12
  const GENERATED_AVATAR_MAX_SEED_LENGTH = 1024;
16
13
  const GENERATED_AVATAR_PATTERN_COLORS = [
17
- '3ead46',
18
- 'c65abd',
19
- '2697d4',
20
- 'f59e0b',
21
- 'ef4444',
22
- '14b8a6',
23
- '8b5cf6',
24
- '64748b',
25
- '22c55e',
26
- 'e11d48',
27
- '0ea5e9',
28
- 'a855f7'
14
+ "3ead46",
15
+ "c65abd",
16
+ "2697d4",
17
+ "f59e0b",
18
+ "ef4444",
19
+ "14b8a6",
20
+ "8b5cf6",
21
+ "64748b",
22
+ "22c55e",
23
+ "e11d48",
24
+ "0ea5e9",
25
+ "a855f7"
29
26
  ];
30
27
  const GENERATED_AVATAR_BACKGROUND_COLORS = [
31
- 'bbf7d0',
32
- 'f0abfc',
33
- 'bae6fd',
34
- 'fed7aa',
35
- 'fecaca',
36
- '99f6e4',
37
- 'ddd6fe',
38
- 'cbd5e1',
39
- '86efac',
40
- 'fecdd3',
41
- '7dd3fc',
42
- 'e9d5ff'
28
+ "bbf7d0",
29
+ "f0abfc",
30
+ "bae6fd",
31
+ "fed7aa",
32
+ "fecaca",
33
+ "99f6e4",
34
+ "ddd6fe",
35
+ "cbd5e1",
36
+ "86efac",
37
+ "fecdd3",
38
+ "7dd3fc",
39
+ "e9d5ff"
43
40
  ];
44
41
  const GENERATED_INITIALS_BACKGROUND_COLORS = [
45
- 'e53935',
46
- '3949ab',
47
- '43a047',
48
- 'ffb300',
49
- '8e24aa',
50
- '039be5',
51
- 'fb8c00',
52
- '00897b',
53
- 'd81b60',
54
- 'fbc02d',
55
- '5e35b1',
56
- '00acc1',
57
- 'f4511e',
58
- '7cb342',
59
- '1e88e5',
60
- 'c0ca33'
42
+ "e53935",
43
+ "3949ab",
44
+ "43a047",
45
+ "ffb300",
46
+ "8e24aa",
47
+ "039be5",
48
+ "fb8c00",
49
+ "00897b",
50
+ "d81b60",
51
+ "fbc02d",
52
+ "5e35b1",
53
+ "00acc1",
54
+ "f4511e",
55
+ "7cb342",
56
+ "1e88e5",
57
+ "c0ca33"
61
58
  ];
62
59
  const GENERATED_AVATAR_PATTERNS = [
63
- [
64
- '0x0x0',
65
- '0x0x0',
66
- 'x0x0x',
67
- 'x000x',
68
- '0xxx0'
69
- ],
70
- [
71
- 'xxxxx',
72
- 'xx0xx',
73
- 'xx0xx',
74
- '0x0x0',
75
- 'xx0xx'
76
- ],
77
- [
78
- '0xxx0',
79
- 'x000x',
80
- 'x0x0x',
81
- 'x000x',
82
- '0xxx0'
83
- ],
84
- [
85
- 'xx0xx',
86
- '0x0x0',
87
- '00x00',
88
- '0x0x0',
89
- 'xx0xx'
90
- ],
91
- [
92
- 'x000x',
93
- 'xx0xx',
94
- '0xxx0',
95
- '00x00',
96
- '00x00'
97
- ],
98
- [
99
- '00x00',
100
- '0xxx0',
101
- 'xx0xx',
102
- '0xxx0',
103
- 'x000x'
104
- ],
105
- [
106
- 'xxx00',
107
- 'x0x00',
108
- 'xxxxx',
109
- '00x0x',
110
- '00xxx'
111
- ],
112
- [
113
- '00xxx',
114
- '00x0x',
115
- 'xxxxx',
116
- 'x0x00',
117
- 'xxx00'
118
- ],
119
- [
120
- '0x0x0',
121
- 'xxxxx',
122
- '00x00',
123
- 'xxxxx',
124
- '0x0x0'
125
- ],
126
- [
127
- 'x0x0x',
128
- '0xxx0',
129
- 'xx0xx',
130
- '0xxx0',
131
- 'x0x0x'
132
- ],
133
- [
134
- '0xxx0',
135
- '0x0x0',
136
- 'xxxxx',
137
- '0x0x0',
138
- '0xxx0'
139
- ],
140
- [
141
- 'xx0xx',
142
- 'x000x',
143
- '0xxx0',
144
- 'x000x',
145
- 'xx0xx'
146
- ]
60
+ [
61
+ "0x0x0",
62
+ "0x0x0",
63
+ "x0x0x",
64
+ "x000x",
65
+ "0xxx0"
66
+ ],
67
+ [
68
+ "xxxxx",
69
+ "xx0xx",
70
+ "xx0xx",
71
+ "0x0x0",
72
+ "xx0xx"
73
+ ],
74
+ [
75
+ "0xxx0",
76
+ "x000x",
77
+ "x0x0x",
78
+ "x000x",
79
+ "0xxx0"
80
+ ],
81
+ [
82
+ "xx0xx",
83
+ "0x0x0",
84
+ "00x00",
85
+ "0x0x0",
86
+ "xx0xx"
87
+ ],
88
+ [
89
+ "x000x",
90
+ "xx0xx",
91
+ "0xxx0",
92
+ "00x00",
93
+ "00x00"
94
+ ],
95
+ [
96
+ "00x00",
97
+ "0xxx0",
98
+ "xx0xx",
99
+ "0xxx0",
100
+ "x000x"
101
+ ],
102
+ [
103
+ "xxx00",
104
+ "x0x00",
105
+ "xxxxx",
106
+ "00x0x",
107
+ "00xxx"
108
+ ],
109
+ [
110
+ "00xxx",
111
+ "00x0x",
112
+ "xxxxx",
113
+ "x0x00",
114
+ "xxx00"
115
+ ],
116
+ [
117
+ "0x0x0",
118
+ "xxxxx",
119
+ "00x00",
120
+ "xxxxx",
121
+ "0x0x0"
122
+ ],
123
+ [
124
+ "x0x0x",
125
+ "0xxx0",
126
+ "xx0xx",
127
+ "0xxx0",
128
+ "x0x0x"
129
+ ],
130
+ [
131
+ "0xxx0",
132
+ "0x0x0",
133
+ "xxxxx",
134
+ "0x0x0",
135
+ "0xxx0"
136
+ ],
137
+ [
138
+ "xx0xx",
139
+ "x000x",
140
+ "0xxx0",
141
+ "x000x",
142
+ "xx0xx"
143
+ ]
147
144
  ];
148
- class AvatarGenerator {
149
- generate(options) {
150
- const seed = String(options.seed || '');
151
- if (options.appearance === 'initials') {
152
- return this._initialsAvatar(seed, options.label, options.backgroundColors, options.foregroundColors);
153
- }
154
- if (options.appearance === 'identicon') {
155
- return this._identiconAvatar(seed, options.backgroundColors, options.foregroundColors);
156
- }
157
- return null;
158
- }
159
- _identiconAvatar(seed, backgroundColorValues, foregroundColorValues) {
160
- const random = this._createGeneratedAvatarRandom(seed || 'avatar');
161
- const pattern = random.pick(GENERATED_AVATAR_PATTERNS, GENERATED_AVATAR_PATTERNS[0]);
162
- const foregroundColors = this._colorPalette(foregroundColorValues, GENERATED_AVATAR_PATTERN_COLORS);
163
- const backgroundColors = this._colorPalette(backgroundColorValues, GENERATED_AVATAR_BACKGROUND_COLORS);
164
- const foreground = random.pick(foregroundColors, foregroundColors[0]);
165
- const rotation = random.integer(0, 3);
166
- const background = this._generatedAvatarBackground(random, backgroundColors);
167
- return {
168
- kind: 'identicon',
169
- background,
170
- foreground,
171
- label: '',
172
- cells: this._transformIdenticonCells(this._identiconCells(pattern), rotation)
173
- };
174
- }
175
- _initialsAvatar(seed, label, backgroundColorValues, foregroundColorValues) {
176
- const random = this._createGeneratedAvatarRandom(seed || 'avatar');
177
- const backgroundColors = this._colorPalette(backgroundColorValues, GENERATED_INITIALS_BACKGROUND_COLORS);
178
- const foregroundColors = this._colorPalette(foregroundColorValues, ['ffffff']);
179
- const foreground = random.pick(foregroundColors, foregroundColors[0]);
180
- const background = this._pickColorBySeed(seed || 'avatar', backgroundColors);
181
- return {
182
- kind: 'initials',
183
- background,
184
- foreground,
185
- label: this._initials(seed, label),
186
- cells: []
187
- };
188
- }
189
- _initials(seed, label) {
190
- const source = (label || seed).trim();
191
- if (!source) {
192
- return '?';
193
- }
194
- const parts = source.split(/\s+/).filter(Boolean);
195
- if (parts.length > 1) {
196
- return parts.slice(0, 2).map(part => part.charAt(0)).join('').toUpperCase();
197
- }
198
- return source.slice(0, 2).toUpperCase();
199
- }
200
- _identiconCells(rowPatterns) {
201
- const cells = [];
202
- rowPatterns.forEach((pattern, row) => {
203
- for (let column = 0; column < pattern.length; column++) {
204
- if (pattern[column] === 'x') {
205
- cells.push({
206
- id: `${column}-${row}`,
207
- x: column,
208
- y: row
209
- });
210
- }
211
- }
212
- });
213
- return cells;
214
- }
215
- _transformIdenticonCells(cells, rotation) {
216
- return cells.map(cell => {
217
- if (rotation === 1) {
218
- return {
219
- id: `${cell.y}-${4 - cell.x}`,
220
- x: cell.y,
221
- y: 4 - cell.x
222
- };
223
- }
224
- if (rotation === 2) {
225
- return {
226
- id: `${4 - cell.x}-${4 - cell.y}`,
227
- x: 4 - cell.x,
228
- y: 4 - cell.y
229
- };
230
- }
231
- if (rotation === 3) {
232
- return {
233
- id: `${4 - cell.y}-${cell.x}`,
234
- x: 4 - cell.y,
235
- y: cell.x
236
- };
237
- }
238
- return cell;
239
- });
240
- }
241
- _colorPalette(colors, fallbackColors) {
242
- return (colors.length ? colors : fallbackColors).map(color => {
243
- return color === 'transparent' ? color : `#${color.replace('#', '')}`;
244
- });
245
- }
246
- _pickColorBySeed(seed, colors) {
247
- return colors[Math.abs(this._hashGeneratedAvatarSeed(seed)) % colors.length] ?? 'transparent';
248
- }
249
- _generatedAvatarBackground(random, backgroundColors) {
250
- let shuffledBackgroundColors = random.shuffle(backgroundColors);
251
- if (shuffledBackgroundColors.length <= 1) {
252
- shuffledBackgroundColors = backgroundColors;
253
- random.next();
254
- }
255
- else {
256
- shuffledBackgroundColors = random.shuffle(backgroundColors);
257
- }
258
- return shuffledBackgroundColors[0] ?? 'transparent';
259
- }
260
- _createGeneratedAvatarRandom(seedValue) {
261
- const seed = String(seedValue ?? '').slice(0, GENERATED_AVATAR_MAX_SEED_LENGTH);
262
- let value = this._hashGeneratedAvatarSeed(seed) || 1;
263
- const next = () => {
264
- value = this._generatedAvatarXorshift(value);
265
- return value;
266
- };
267
- const integer = (min, max) => {
268
- return Math.floor(((next() - GENERATED_AVATAR_RANDOM_MIN) / (GENERATED_AVATAR_RANDOM_MAX - GENERATED_AVATAR_RANDOM_MIN)) * (max + 1 - min) + min);
269
- };
270
- return {
271
- seed,
272
- next,
273
- integer,
274
- pick: (values, fallback) => {
275
- if (values.length === 0) {
276
- next();
277
- return fallback;
278
- }
279
- return values[integer(0, values.length - 1)] ?? fallback;
280
- },
281
- shuffle: (values) => {
282
- const internalRandom = this._createGeneratedAvatarRandom(next().toString());
283
- const workingValues = [...values];
284
- for (let index = workingValues.length - 1; index > 0; index--) {
285
- const randomIndex = internalRandom.integer(0, index);
286
- [workingValues[index], workingValues[randomIndex]] = [workingValues[randomIndex], workingValues[index]];
287
- }
288
- return workingValues;
289
- }
290
- };
291
- }
292
- _hashGeneratedAvatarSeed(seed) {
293
- let hash = 0;
294
- for (let index = 0; index < seed.length; index++) {
295
- hash = ((hash << 5) - hash + seed.charCodeAt(index)) | 0;
296
- hash = this._generatedAvatarXorshift(hash);
297
- }
298
- return hash;
299
- }
300
- _generatedAvatarXorshift(value) {
301
- value ^= value << 13;
302
- value ^= value >> 17;
303
- value ^= value << 5;
304
- return value;
305
- }
306
- }
307
-
145
+ var AvatarGenerator = class {
146
+ generate(options) {
147
+ const seed = String(options.seed || "");
148
+ if (options.appearance === "initials") return this._initialsAvatar(seed, options.label, options.backgroundColors, options.foregroundColors);
149
+ if (options.appearance === "identicon") return this._identiconAvatar(seed, options.backgroundColors, options.foregroundColors);
150
+ return null;
151
+ }
152
+ _identiconAvatar(seed, backgroundColorValues, foregroundColorValues) {
153
+ const random = this._createGeneratedAvatarRandom(seed || "avatar");
154
+ const pattern = random.pick(GENERATED_AVATAR_PATTERNS, GENERATED_AVATAR_PATTERNS[0]);
155
+ const foregroundColors = this._colorPalette(foregroundColorValues, GENERATED_AVATAR_PATTERN_COLORS);
156
+ const backgroundColors = this._colorPalette(backgroundColorValues, GENERATED_AVATAR_BACKGROUND_COLORS);
157
+ const foreground = random.pick(foregroundColors, foregroundColors[0]);
158
+ const rotation = random.integer(0, 3);
159
+ return {
160
+ kind: "identicon",
161
+ background: this._generatedAvatarBackground(random, backgroundColors),
162
+ foreground,
163
+ label: "",
164
+ cells: this._transformIdenticonCells(this._identiconCells(pattern), rotation)
165
+ };
166
+ }
167
+ _initialsAvatar(seed, label, backgroundColorValues, foregroundColorValues) {
168
+ const random = this._createGeneratedAvatarRandom(seed || "avatar");
169
+ const backgroundColors = this._colorPalette(backgroundColorValues, GENERATED_INITIALS_BACKGROUND_COLORS);
170
+ const foregroundColors = this._colorPalette(foregroundColorValues, ["ffffff"]);
171
+ const foreground = random.pick(foregroundColors, foregroundColors[0]);
172
+ return {
173
+ kind: "initials",
174
+ background: this._pickColorBySeed(seed || "avatar", backgroundColors),
175
+ foreground,
176
+ label: this._initials(seed, label),
177
+ cells: []
178
+ };
179
+ }
180
+ _initials(seed, label) {
181
+ const source = (label || seed).trim();
182
+ if (!source) return "?";
183
+ const parts = source.split(/\s+/).filter(Boolean);
184
+ if (parts.length > 1) return parts.slice(0, 2).map((part) => part.charAt(0)).join("").toUpperCase();
185
+ return source.slice(0, 2).toUpperCase();
186
+ }
187
+ _identiconCells(rowPatterns) {
188
+ const cells = [];
189
+ rowPatterns.forEach((pattern, row) => {
190
+ for (let column = 0; column < pattern.length; column++) if (pattern[column] === "x") cells.push({
191
+ id: `${column}-${row}`,
192
+ x: column,
193
+ y: row
194
+ });
195
+ });
196
+ return cells;
197
+ }
198
+ _transformIdenticonCells(cells, rotation) {
199
+ return cells.map((cell) => {
200
+ if (rotation === 1) return {
201
+ id: `${cell.y}-${4 - cell.x}`,
202
+ x: cell.y,
203
+ y: 4 - cell.x
204
+ };
205
+ if (rotation === 2) return {
206
+ id: `${4 - cell.x}-${4 - cell.y}`,
207
+ x: 4 - cell.x,
208
+ y: 4 - cell.y
209
+ };
210
+ if (rotation === 3) return {
211
+ id: `${4 - cell.y}-${cell.x}`,
212
+ x: 4 - cell.y,
213
+ y: cell.x
214
+ };
215
+ return cell;
216
+ });
217
+ }
218
+ _colorPalette(colors, fallbackColors) {
219
+ return (colors.length ? colors : fallbackColors).map((color) => {
220
+ return color === "transparent" ? color : `#${color.replace("#", "")}`;
221
+ });
222
+ }
223
+ _pickColorBySeed(seed, colors) {
224
+ return colors[Math.abs(this._hashGeneratedAvatarSeed(seed)) % colors.length] ?? "transparent";
225
+ }
226
+ _generatedAvatarBackground(random, backgroundColors) {
227
+ let shuffledBackgroundColors = random.shuffle(backgroundColors);
228
+ if (shuffledBackgroundColors.length <= 1) {
229
+ shuffledBackgroundColors = backgroundColors;
230
+ random.next();
231
+ } else shuffledBackgroundColors = random.shuffle(backgroundColors);
232
+ return shuffledBackgroundColors[0] ?? "transparent";
233
+ }
234
+ _createGeneratedAvatarRandom(seedValue) {
235
+ const seed = String(seedValue ?? "").slice(0, GENERATED_AVATAR_MAX_SEED_LENGTH);
236
+ let value = this._hashGeneratedAvatarSeed(seed) || 1;
237
+ const next = () => {
238
+ value = this._generatedAvatarXorshift(value);
239
+ return value;
240
+ };
241
+ const integer = (min, max) => {
242
+ return Math.floor((next() - GENERATED_AVATAR_RANDOM_MIN) / 4294967295 * (max + 1 - min) + min);
243
+ };
244
+ return {
245
+ seed,
246
+ next,
247
+ integer,
248
+ pick: (values, fallback) => {
249
+ if (values.length === 0) {
250
+ next();
251
+ return fallback;
252
+ }
253
+ return values[integer(0, values.length - 1)] ?? fallback;
254
+ },
255
+ shuffle: (values) => {
256
+ const internalRandom = this._createGeneratedAvatarRandom(next().toString());
257
+ const workingValues = [...values];
258
+ for (let index = workingValues.length - 1; index > 0; index--) {
259
+ const randomIndex = internalRandom.integer(0, index);
260
+ [workingValues[index], workingValues[randomIndex]] = [workingValues[randomIndex], workingValues[index]];
261
+ }
262
+ return workingValues;
263
+ }
264
+ };
265
+ }
266
+ _hashGeneratedAvatarSeed(seed) {
267
+ let hash = 0;
268
+ for (let index = 0; index < seed.length; index++) {
269
+ hash = (hash << 5) - hash + seed.charCodeAt(index) | 0;
270
+ hash = this._generatedAvatarXorshift(hash);
271
+ }
272
+ return hash;
273
+ }
274
+ _generatedAvatarXorshift(value) {
275
+ value ^= value << 13;
276
+ value ^= value >> 17;
277
+ value ^= value << 5;
278
+ return value;
279
+ }
280
+ };
308
281
  const alreadyLoadedImages = [];
309
- class Avatar {
310
- _elementRef = inject(ElementRef);
311
- _config = inject(AVATAR_CONFIG, { optional: true });
312
- _avatarGenerator = new AvatarGenerator();
313
- image = input('', /* @ts-ignore */
314
- ...(ngDevMode ? [{ debugName: "image" }] : /* istanbul ignore next */ []));
315
- variant = input('', /* @ts-ignore */
316
- ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
317
- clickable = input(false, { ...(ngDevMode ? { debugName: "clickable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
318
- label = input('', /* @ts-ignore */
319
- ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
320
- key = input('', /* @ts-ignore */
321
- ...(ngDevMode ? [{ debugName: "key" }] : /* istanbul ignore next */ []));
322
- appearance = input(/* @ts-ignore */
323
- ...(ngDevMode ? [undefined, { debugName: "appearance" }] : /* istanbul ignore next */ []));
324
- backgroundColors = input([], /* @ts-ignore */
325
- ...(ngDevMode ? [{ debugName: "backgroundColors" }] : /* istanbul ignore next */ []));
326
- foregroundColors = input([], /* @ts-ignore */
327
- ...(ngDevMode ? [{ debugName: "foregroundColors" }] : /* istanbul ignore next */ []));
328
- alt = input('', /* @ts-ignore */
329
- ...(ngDevMode ? [{ debugName: "alt" }] : /* istanbul ignore next */ []));
330
- automaticColor = input(/* @ts-ignore */
331
- ...(ngDevMode ? [undefined, { debugName: "automaticColor" }] : /* istanbul ignore next */ []));
332
- presenceIndicator = input(null, /* @ts-ignore */
333
- ...(ngDevMode ? [{ debugName: "presenceIndicator" }] : /* istanbul ignore next */ []));
334
- imageLoaded;
335
- showLabel = false;
336
- generatedAvatar = computed(() => {
337
- return this._avatarGenerator.generate({
338
- appearance: this.appearance() || this._config?.appearance || 'default',
339
- seed: this._seed(),
340
- label: this.label(),
341
- backgroundColors: this.backgroundColors(),
342
- foregroundColors: this.foregroundColors()
343
- });
344
- }, /* @ts-ignore */
345
- ...(ngDevMode ? [{ debugName: "generatedAvatar" }] : /* istanbul ignore next */ []));
346
- ngOnInit() {
347
- if (!this.image()) {
348
- return;
349
- }
350
- this.imageLoaded = alreadyLoadedImages.includes(this.image());
351
- }
352
- ngAfterViewInit() {
353
- setTimeout(() => {
354
- this.showLabel = true;
355
- }, 0);
356
- }
357
- ngOnChanges(changes) {
358
- if (changes['image']) {
359
- this.imageLoaded = alreadyLoadedImages.includes(this.image());
360
- }
361
- if (changes['automaticColor'] && changes['automaticColor'].currentValue) {
362
- this._setAutomaticColor(changes['automaticColor'].currentValue);
363
- }
364
- }
365
- onImageLoaded() {
366
- if (this.imageLoaded) {
367
- return;
368
- }
369
- alreadyLoadedImages.push(this.image());
370
- this.imageLoaded = true;
371
- }
372
- _setAutomaticColor(color) {
373
- if (!this.isValidHex(color)) {
374
- throw new Error(`Invalid ${color} color, automatic color supports only a valid hex color`);
375
- }
376
- const element = this._elementRef.nativeElement;
377
- element.style.setProperty('--ngs-avatar-bg', color);
378
- element.style.setProperty('--ngs-avatar-border-color-auto', this._newShade(color, -25));
379
- element.style.setProperty('--ngs-avatar-color', this._newShade(color, -150));
380
- }
381
- _newShade(hexColor, magnitude) {
382
- hexColor = hexColor.replace(`#`, ``);
383
- if (hexColor.length === 6) {
384
- const decimalColor = parseInt(hexColor, 16);
385
- let r = (decimalColor >> 16) + magnitude;
386
- r > 255 && (r = 255);
387
- r < 0 && (r = 0);
388
- let g = (decimalColor & 0x0000ff) + magnitude;
389
- g > 255 && (g = 255);
390
- g < 0 && (g = 0);
391
- let b = ((decimalColor >> 8) & 0x00ff) + magnitude;
392
- b > 255 && (b = 255);
393
- b < 0 && (b = 0);
394
- return `#${(g | (b << 8) | (r << 16)).toString(16)}`;
395
- }
396
- else {
397
- return hexColor;
398
- }
399
- }
400
- ;
401
- _seed() {
402
- return String(this.key() || this.label() || this.alt() || '');
403
- }
404
- isValidHex(color) {
405
- if (!color || typeof color !== 'string') {
406
- return false;
407
- }
408
- // Validate hex values
409
- if (color.substring(0, 1) === '#') {
410
- color = color.substring(1);
411
- }
412
- switch (color.length) {
413
- case 3: {
414
- return /^[0-9A-F]{3}$/i.test(color);
415
- }
416
- case 6: {
417
- return /^[0-9A-F]{6}$/i.test(color);
418
- }
419
- case 8: {
420
- return /^[0-9A-F]{8}$/i.test(color);
421
- }
422
- default: {
423
- return false;
424
- }
425
- }
426
- }
427
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: Avatar, deps: [], target: i0.ɵɵFactoryTarget.Component });
428
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: Avatar, isStandalone: true, selector: "ngs-avatar,[ngs-avatar]", inputs: { image: { classPropertyName: "image", publicName: "image", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, clickable: { classPropertyName: "clickable", publicName: "clickable", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, key: { classPropertyName: "key", publicName: "key", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, backgroundColors: { classPropertyName: "backgroundColors", publicName: "backgroundColors", isSignal: true, isRequired: false, transformFunction: null }, foregroundColors: { classPropertyName: "foregroundColors", publicName: "foregroundColors", isSignal: true, isRequired: false, transformFunction: null }, alt: { classPropertyName: "alt", publicName: "alt", isSignal: true, isRequired: false, transformFunction: null }, automaticColor: { classPropertyName: "automaticColor", publicName: "automaticColor", isSignal: true, isRequired: false, transformFunction: null }, presenceIndicator: { classPropertyName: "presenceIndicator", publicName: "presenceIndicator", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.is-clickable": "clickable()", "class.has-automatic-color": "!!automaticColor()", "class.has-generated-avatar": "!!generatedAvatar()", "class.has-loaded-image": "image() && imageLoaded", "class.is-solid": "variant() === \"solid\"", "class.is-tonal": "variant() === \"tonal\"", "class.is-outlined": "variant() === \"outlined\"", "class.is-plain": "variant() === \"plain\"" }, classAttribute: "ngs-avatar" }, providers: [
429
- {
430
- provide: AVATAR_ACCESSOR,
431
- useExisting: forwardRef(() => Avatar),
432
- multi: true
433
- }
434
- ], exportAs: ["ngsAvatar"], usesOnChanges: true, ngImport: i0, template: "@if (image()) {\n <img class=\"image\" loading=\"lazy\" [src]=\"image()\" [alt]=\"alt()\" (load)=\"onImageLoaded()\">\n}\n\n@if (!image() && generatedAvatar(); as avatar) {\n @if (avatar.kind === 'identicon') {\n <svg class=\"generated-avatar\" viewBox=\"0 0 9 9\" fill=\"none\" shape-rendering=\"crispEdges\" aria-hidden=\"true\">\n <rect width=\"9\" height=\"9\" x=\"0\" y=\"0\" [attr.fill]=\"avatar.background\"></rect>\n <g>\n @for (cell of avatar.cells; track cell.id) {\n <rect\n [attr.x]=\"cell.x + 2\"\n [attr.y]=\"cell.y + 2\"\n width=\"1\"\n height=\"1\"\n [attr.fill]=\"avatar.foreground\"></rect>\n }\n </g>\n </svg>\n } @else {\n <svg class=\"generated-avatar\" viewBox=\"0 0 100 100\" aria-hidden=\"true\">\n <rect width=\"100\" height=\"100\" x=\"0\" y=\"0\" [attr.fill]=\"avatar.background\"></rect>\n <g transform=\"translate(12.5 12.5) scale(0.75)\">\n <text\n x=\"50%\"\n y=\"50%\"\n font-family=\"Arial, sans-serif\"\n font-weight=\"500\"\n font-size=\"50\"\n dy=\"17.800\"\n text-anchor=\"middle\"\n [attr.fill]=\"avatar.foreground\">{{ avatar.label }}</text>\n </g>\n </svg>\n }\n}\n\n@if (presenceIndicator()) {\n <div class=\"presence-indicator\"\n [class.is-online]=\"presenceIndicator() === 'online'\"\n [class.is-offline]=\"presenceIndicator() === 'offline'\"\n [class.is-away]=\"presenceIndicator() === 'away'\"></div>\n}\n\n@if (label() && showLabel && !generatedAvatar()) {\n <svg viewBox=\"0 0 50 50\" class=\"text\">\n <text\n x=\"50%\"\n y=\"50%\"\n alignment-baseline=\"central\"\n text-anchor=\"middle\"\n font-weight=\"inherit\"\n font-size=\"20\"\n fill=\"currentColor\">{{ label() }}</text>\n </svg>\n}\n\n<ng-content select=\"mat-icon,ngs-icon\"/>\n", styles: [":host{--ngs-avatar-font-weight: 500;--ngs-avatar-size: calc(var(--spacing, .25rem) * 10);--ngs-avatar-border-radius: calc(infinity * 1px);--ngs-avatar-bg: var(--ngs-color-surface-container-highest);--ngs-avatar-color: var(--ngs-color-on-surface);--ngs-avatar-presence-indicator-size: 20%;--ngs-avatar-presence-indicator-position-top: 5%;--ngs-avatar-presence-indicator-position-end: 5%;--ngs-avatar-presence-indicator-online-bg: var(--ngs-color-success);--ngs-avatar-presence-indicator-offline-bg: var(--ngs-color-on-surface-variant);--ngs-avatar-presence-indicator-away-bg: var(--ngs-color-warning);--ngs-avatar-presence-indicator-outline: var(--ngs-color-surface) solid 2px;--ngs-avatar-inner-border: inset 0 0 1px var(--ngs-color-outline-variant);--ngs-avatar-outlined-border-color: var(--ngs-color-outline);--ngs-avatar-border-color: transparent;--ngs-avatar-border-width: 1px;display:inline-flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none;flex:none;text-transform:uppercase;position:relative;font-weight:var(--ngs-avatar-font-weight)}:host:not([class*=text-]){color:var(--ngs-avatar-color)}:host:not([class*=rounded]){border-radius:var(--ngs-avatar-border-radius)}:host:not([class*=w-]):not([class*=size-]){width:var(--ngs-avatar-size)}:host:not([class*=h-]):not([class*=size-]){height:var(--ngs-avatar-size)}:host:not([class*=bg-]):not(.has-loaded-image){background:var(--ngs-avatar-bg)}:host.is-solid{--ngs-avatar-bg: var(--ngs-color-primary);--ngs-avatar-color: var(--ngs-color-on-primary)}:host.is-tonal{--ngs-avatar-bg: var(--ngs-color-surface-container-highest);--ngs-avatar-color: var(--ngs-color-on-surface)}:host.is-outlined{--ngs-avatar-bg: transparent;--ngs-avatar-color: var(--ngs-color-on-surface);box-shadow:inset 0 0 0 var(--ngs-avatar-border-width) var(--ngs-avatar-outlined-border-color)}:host.is-plain{--ngs-avatar-bg: transparent;--ngs-avatar-color: var(--ngs-color-on-surface)}:host .text{z-index:0;width:100%;height:100%}:host .generated-avatar{position:absolute;inset:0;z-index:0;width:100%;height:100%;overflow:hidden;border-radius:inherit}:host.has-loaded-image .text{display:none}:host.is-clickable{cursor:pointer}:host.is-hidden{display:none}:host.is-clickable:active{scale:.97}:host .image{display:inline;object-fit:cover;position:absolute;width:100%;height:100%;border-radius:inherit;z-index:1}:host .presence-indicator{position:absolute;z-index:1;outline:var(--ngs-avatar-presence-indicator-outline);border-radius:6.1875rem;width:var(--ngs-avatar-presence-indicator-size);height:var(--ngs-avatar-presence-indicator-size);top:var(--ngs-avatar-presence-indicator-position-top);inset-inline-end:var(--ngs-avatar-presence-indicator-position-end)}:host .presence-indicator.is-online{background:var(--ngs-avatar-presence-indicator-online-bg)}:host .presence-indicator.is-offline{background:var(--ngs-avatar-presence-indicator-offline-bg)}:host .presence-indicator.is-away{background:var(--ngs-avatar-presence-indicator-away-bg)}:host ::ng-deep .ngs-icon{display:flex;align-items:center;justify-content:center}:host.has-automatic-color{--ngs-avatar-border-color: var(--ngs-avatar-border-color-auto, transparent)}:host.has-generated-avatar{--ngs-avatar-bg: transparent}:host.has-generated-avatar:not([class*=shadow-]){box-shadow:var(--ngs-avatar-inner-border)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], changeDetection: i0.ChangeDetectionStrategy.Eager });
435
- }
436
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: Avatar, decorators: [{
437
- type: Component,
438
- args: [{ selector: 'ngs-avatar,[ngs-avatar]', exportAs: 'ngsAvatar', providers: [
439
- {
440
- provide: AVATAR_ACCESSOR,
441
- useExisting: forwardRef(() => Avatar),
442
- multi: true
443
- }
444
- ], changeDetection: ChangeDetectionStrategy.Eager, host: {
445
- 'class': 'ngs-avatar',
446
- '[class.is-clickable]': 'clickable()',
447
- '[class.has-automatic-color]': '!!automaticColor()',
448
- '[class.has-generated-avatar]': '!!generatedAvatar()',
449
- '[class.has-loaded-image]': 'image() && imageLoaded',
450
- '[class.is-solid]': 'variant() === "solid"',
451
- '[class.is-tonal]': 'variant() === "tonal"',
452
- '[class.is-outlined]': 'variant() === "outlined"',
453
- '[class.is-plain]': 'variant() === "plain"',
454
- }, template: "@if (image()) {\n <img class=\"image\" loading=\"lazy\" [src]=\"image()\" [alt]=\"alt()\" (load)=\"onImageLoaded()\">\n}\n\n@if (!image() && generatedAvatar(); as avatar) {\n @if (avatar.kind === 'identicon') {\n <svg class=\"generated-avatar\" viewBox=\"0 0 9 9\" fill=\"none\" shape-rendering=\"crispEdges\" aria-hidden=\"true\">\n <rect width=\"9\" height=\"9\" x=\"0\" y=\"0\" [attr.fill]=\"avatar.background\"></rect>\n <g>\n @for (cell of avatar.cells; track cell.id) {\n <rect\n [attr.x]=\"cell.x + 2\"\n [attr.y]=\"cell.y + 2\"\n width=\"1\"\n height=\"1\"\n [attr.fill]=\"avatar.foreground\"></rect>\n }\n </g>\n </svg>\n } @else {\n <svg class=\"generated-avatar\" viewBox=\"0 0 100 100\" aria-hidden=\"true\">\n <rect width=\"100\" height=\"100\" x=\"0\" y=\"0\" [attr.fill]=\"avatar.background\"></rect>\n <g transform=\"translate(12.5 12.5) scale(0.75)\">\n <text\n x=\"50%\"\n y=\"50%\"\n font-family=\"Arial, sans-serif\"\n font-weight=\"500\"\n font-size=\"50\"\n dy=\"17.800\"\n text-anchor=\"middle\"\n [attr.fill]=\"avatar.foreground\">{{ avatar.label }}</text>\n </g>\n </svg>\n }\n}\n\n@if (presenceIndicator()) {\n <div class=\"presence-indicator\"\n [class.is-online]=\"presenceIndicator() === 'online'\"\n [class.is-offline]=\"presenceIndicator() === 'offline'\"\n [class.is-away]=\"presenceIndicator() === 'away'\"></div>\n}\n\n@if (label() && showLabel && !generatedAvatar()) {\n <svg viewBox=\"0 0 50 50\" class=\"text\">\n <text\n x=\"50%\"\n y=\"50%\"\n alignment-baseline=\"central\"\n text-anchor=\"middle\"\n font-weight=\"inherit\"\n font-size=\"20\"\n fill=\"currentColor\">{{ label() }}</text>\n </svg>\n}\n\n<ng-content select=\"mat-icon,ngs-icon\"/>\n", styles: [":host{--ngs-avatar-font-weight: 500;--ngs-avatar-size: calc(var(--spacing, .25rem) * 10);--ngs-avatar-border-radius: calc(infinity * 1px);--ngs-avatar-bg: var(--ngs-color-surface-container-highest);--ngs-avatar-color: var(--ngs-color-on-surface);--ngs-avatar-presence-indicator-size: 20%;--ngs-avatar-presence-indicator-position-top: 5%;--ngs-avatar-presence-indicator-position-end: 5%;--ngs-avatar-presence-indicator-online-bg: var(--ngs-color-success);--ngs-avatar-presence-indicator-offline-bg: var(--ngs-color-on-surface-variant);--ngs-avatar-presence-indicator-away-bg: var(--ngs-color-warning);--ngs-avatar-presence-indicator-outline: var(--ngs-color-surface) solid 2px;--ngs-avatar-inner-border: inset 0 0 1px var(--ngs-color-outline-variant);--ngs-avatar-outlined-border-color: var(--ngs-color-outline);--ngs-avatar-border-color: transparent;--ngs-avatar-border-width: 1px;display:inline-flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none;flex:none;text-transform:uppercase;position:relative;font-weight:var(--ngs-avatar-font-weight)}:host:not([class*=text-]){color:var(--ngs-avatar-color)}:host:not([class*=rounded]){border-radius:var(--ngs-avatar-border-radius)}:host:not([class*=w-]):not([class*=size-]){width:var(--ngs-avatar-size)}:host:not([class*=h-]):not([class*=size-]){height:var(--ngs-avatar-size)}:host:not([class*=bg-]):not(.has-loaded-image){background:var(--ngs-avatar-bg)}:host.is-solid{--ngs-avatar-bg: var(--ngs-color-primary);--ngs-avatar-color: var(--ngs-color-on-primary)}:host.is-tonal{--ngs-avatar-bg: var(--ngs-color-surface-container-highest);--ngs-avatar-color: var(--ngs-color-on-surface)}:host.is-outlined{--ngs-avatar-bg: transparent;--ngs-avatar-color: var(--ngs-color-on-surface);box-shadow:inset 0 0 0 var(--ngs-avatar-border-width) var(--ngs-avatar-outlined-border-color)}:host.is-plain{--ngs-avatar-bg: transparent;--ngs-avatar-color: var(--ngs-color-on-surface)}:host .text{z-index:0;width:100%;height:100%}:host .generated-avatar{position:absolute;inset:0;z-index:0;width:100%;height:100%;overflow:hidden;border-radius:inherit}:host.has-loaded-image .text{display:none}:host.is-clickable{cursor:pointer}:host.is-hidden{display:none}:host.is-clickable:active{scale:.97}:host .image{display:inline;object-fit:cover;position:absolute;width:100%;height:100%;border-radius:inherit;z-index:1}:host .presence-indicator{position:absolute;z-index:1;outline:var(--ngs-avatar-presence-indicator-outline);border-radius:6.1875rem;width:var(--ngs-avatar-presence-indicator-size);height:var(--ngs-avatar-presence-indicator-size);top:var(--ngs-avatar-presence-indicator-position-top);inset-inline-end:var(--ngs-avatar-presence-indicator-position-end)}:host .presence-indicator.is-online{background:var(--ngs-avatar-presence-indicator-online-bg)}:host .presence-indicator.is-offline{background:var(--ngs-avatar-presence-indicator-offline-bg)}:host .presence-indicator.is-away{background:var(--ngs-avatar-presence-indicator-away-bg)}:host ::ng-deep .ngs-icon{display:flex;align-items:center;justify-content:center}:host.has-automatic-color{--ngs-avatar-border-color: var(--ngs-avatar-border-color-auto, transparent)}:host.has-generated-avatar{--ngs-avatar-bg: transparent}:host.has-generated-avatar:not([class*=shadow-]){box-shadow:var(--ngs-avatar-inner-border)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
455
- }], propDecorators: { image: [{ type: i0.Input, args: [{ isSignal: true, alias: "image", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], clickable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clickable", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], key: [{ type: i0.Input, args: [{ isSignal: true, alias: "key", required: false }] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], backgroundColors: [{ type: i0.Input, args: [{ isSignal: true, alias: "backgroundColors", required: false }] }], foregroundColors: [{ type: i0.Input, args: [{ isSignal: true, alias: "foregroundColors", required: false }] }], alt: [{ type: i0.Input, args: [{ isSignal: true, alias: "alt", required: false }] }], automaticColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "automaticColor", required: false }] }], presenceIndicator: [{ type: i0.Input, args: [{ isSignal: true, alias: "presenceIndicator", required: false }] }] } });
456
-
457
- class AvatarGroup {
458
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: AvatarGroup, deps: [], target: i0.ɵɵFactoryTarget.Component });
459
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.7", type: AvatarGroup, isStandalone: true, selector: "ngs-avatar-group", host: { classAttribute: "ngs-avatar-group" }, exportAs: ["ngsAvatarGroup"], ngImport: i0, template: "<ng-content/>\n", styles: [":host{--ngs-avatar-group-item-offset: calc(var(--spacing, .25rem) * 4);--ngs-avatar-group-item-border: 2px solid white;display:flex;flex:none;position:relative;align-items:center}:host ::ng-deep *+*{margin-left:calc(var(--ngs-avatar-group-item-offset) * -1)}:host ::ng-deep .ngs-avatar,:host ::ng-deep .ngs-avatar-total,:host ::ng-deep .ngs-avatar-more{border:var(--ngs-avatar-group-item-border);z-index:0}:host ::ng-deep .ngs-avatar:hover,:host ::ng-deep .ngs-avatar-total:hover,:host ::ng-deep .ngs-avatar-more:hover{z-index:1}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], changeDetection: i0.ChangeDetectionStrategy.Eager });
460
- }
461
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: AvatarGroup, decorators: [{
462
- type: Component,
463
- args: [{ selector: 'ngs-avatar-group', exportAs: 'ngsAvatarGroup', changeDetection: ChangeDetectionStrategy.Eager, host: {
464
- 'class': 'ngs-avatar-group'
465
- }, template: "<ng-content/>\n", styles: [":host{--ngs-avatar-group-item-offset: calc(var(--spacing, .25rem) * 4);--ngs-avatar-group-item-border: 2px solid white;display:flex;flex:none;position:relative;align-items:center}:host ::ng-deep *+*{margin-left:calc(var(--ngs-avatar-group-item-offset) * -1)}:host ::ng-deep .ngs-avatar,:host ::ng-deep .ngs-avatar-total,:host ::ng-deep .ngs-avatar-more{border:var(--ngs-avatar-group-item-border);z-index:0}:host ::ng-deep .ngs-avatar:hover,:host ::ng-deep .ngs-avatar-total:hover,:host ::ng-deep .ngs-avatar-more:hover{z-index:1}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
466
- }] });
467
-
468
- class AvatarMore {
469
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: AvatarMore, deps: [], target: i0.ɵɵFactoryTarget.Component });
470
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.7", type: AvatarMore, isStandalone: true, selector: "ngs-avatar-more,[ngs-avatar-more]", host: { classAttribute: "ngs-avatar-more" }, exportAs: ["ngsAvatarMore"], ngImport: i0, template: "<ng-content/>\n", styles: [":host{--ngs-avatar-font-weight: 500;--ngs-avatar-size: calc(var(--spacing, .25rem) * 10);--ngs-avatar-border-radius: calc(infinity * 1px);--ngs-avatar-bg: var(--ngs-color-success);--ngs-avatar-color: white;--ngs-avatar-inner-border: inset 0 0 2px var(--ngs-color-border);--ngs-avatar-total-font-size: var(--ngs-font-size-xs);--ngs-avatar-total-font-weight: 500;--ngs-avatar-total-color: white;--ngs-avatar-total-bg: var(--ngs-color-neutral-700);--ngs-avatar-total-hover-bg: var(--ngs-color-neutral-600);background:var(--ngs-avatar-total-bg);font-size:var(--ngs-avatar-total-font-size);font-weight:var(--ngs-avatar-total-font-weight);color:var(--ngs-avatar-total-color);border-radius:var(--ngs-avatar-border-radius);flex:none;display:flex;align-items:center;justify-content:center}:host:hover{background:var(--ngs-avatar-total-hover-bg)}:host:not([class*=w-]):not([class*=size-]){width:var(--ngs-avatar-size)}:host:not([class*=h-]):not([class*=size-]){height:var(--ngs-avatar-size)}:host-context(html.dark){--ngs-avatar-group-item-border: .125rem solid var(--ngs-color-neutral-950);--ngs-avatar-presence-indicator-outline: var(--ngs-color-neutral-950) solid 2px}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], changeDetection: i0.ChangeDetectionStrategy.Eager });
471
- }
472
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: AvatarMore, decorators: [{
473
- type: Component,
474
- args: [{ selector: 'ngs-avatar-more,[ngs-avatar-more]', exportAs: 'ngsAvatarMore', imports: [], changeDetection: ChangeDetectionStrategy.Eager, host: {
475
- 'class': 'ngs-avatar-more'
476
- }, template: "<ng-content/>\n", styles: [":host{--ngs-avatar-font-weight: 500;--ngs-avatar-size: calc(var(--spacing, .25rem) * 10);--ngs-avatar-border-radius: calc(infinity * 1px);--ngs-avatar-bg: var(--ngs-color-success);--ngs-avatar-color: white;--ngs-avatar-inner-border: inset 0 0 2px var(--ngs-color-border);--ngs-avatar-total-font-size: var(--ngs-font-size-xs);--ngs-avatar-total-font-weight: 500;--ngs-avatar-total-color: white;--ngs-avatar-total-bg: var(--ngs-color-neutral-700);--ngs-avatar-total-hover-bg: var(--ngs-color-neutral-600);background:var(--ngs-avatar-total-bg);font-size:var(--ngs-avatar-total-font-size);font-weight:var(--ngs-avatar-total-font-weight);color:var(--ngs-avatar-total-color);border-radius:var(--ngs-avatar-border-radius);flex:none;display:flex;align-items:center;justify-content:center}:host:hover{background:var(--ngs-avatar-total-hover-bg)}:host:not([class*=w-]):not([class*=size-]){width:var(--ngs-avatar-size)}:host:not([class*=h-]):not([class*=size-]){height:var(--ngs-avatar-size)}:host-context(html.dark){--ngs-avatar-group-item-border: .125rem solid var(--ngs-color-neutral-950);--ngs-avatar-presence-indicator-outline: var(--ngs-color-neutral-950) solid 2px}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
477
- }] });
478
-
479
- // DEPRECATED
480
- class AvatarTotal {
481
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: AvatarTotal, deps: [], target: i0.ɵɵFactoryTarget.Component });
482
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.7", type: AvatarTotal, isStandalone: true, selector: "ngs-avatar-total,[ngs-avatar-total]", host: { classAttribute: "ngs-avatar-total" }, exportAs: ["ngsAvatarTotal"], ngImport: i0, template: "<ng-content />\n", styles: [":host{--ngs-avatar-font-weight: 500;--ngs-avatar-size: calc(var(--spacing, .25rem) * 10);--ngs-avatar-border-radius: calc(infinity * 1px);--ngs-avatar-bg: var(--ngs-color-success);--ngs-avatar-color: white;--ngs-avatar-inner-border: inset 0 0 2px var(--ngs-color-border);--ngs-avatar-total-font-size: var(--ngs-font-size-xs);--ngs-avatar-total-font-weight: 500;--ngs-avatar-total-color: white;--ngs-avatar-total-bg: var(--ngs-color-neutral-700);--ngs-avatar-total-hover-bg: var(--ngs-color-neutral-600);background:var(--ngs-avatar-total-bg);font-size:var(--ngs-avatar-total-font-size);font-weight:var(--ngs-avatar-total-font-weight);color:var(--ngs-avatar-total-color);border-radius:var(--ngs-avatar-border-radius);flex:none;display:flex;align-items:center;justify-content:center}:host:hover{background:var(--ngs-avatar-total-hover-bg)}:host:not([class*=w-]):not([class*=size-]){width:var(--ngs-avatar-size)}:host:not([class*=h-]):not([class*=size-]){height:var(--ngs-avatar-size)}:host-context(html.dark){--ngs-avatar-group-item-border: .125rem solid var(--ngs-color-neutral-950);--ngs-avatar-presence-indicator-outline: var(--ngs-color-neutral-950) solid 2px}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], changeDetection: i0.ChangeDetectionStrategy.Eager });
483
- }
484
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: AvatarTotal, decorators: [{
485
- type: Component,
486
- args: [{ selector: 'ngs-avatar-total,[ngs-avatar-total]', exportAs: 'ngsAvatarTotal', changeDetection: ChangeDetectionStrategy.Eager, host: {
487
- 'class': 'ngs-avatar-total'
488
- }, template: "<ng-content />\n", styles: [":host{--ngs-avatar-font-weight: 500;--ngs-avatar-size: calc(var(--spacing, .25rem) * 10);--ngs-avatar-border-radius: calc(infinity * 1px);--ngs-avatar-bg: var(--ngs-color-success);--ngs-avatar-color: white;--ngs-avatar-inner-border: inset 0 0 2px var(--ngs-color-border);--ngs-avatar-total-font-size: var(--ngs-font-size-xs);--ngs-avatar-total-font-weight: 500;--ngs-avatar-total-color: white;--ngs-avatar-total-bg: var(--ngs-color-neutral-700);--ngs-avatar-total-hover-bg: var(--ngs-color-neutral-600);background:var(--ngs-avatar-total-bg);font-size:var(--ngs-avatar-total-font-size);font-weight:var(--ngs-avatar-total-font-weight);color:var(--ngs-avatar-total-color);border-radius:var(--ngs-avatar-border-radius);flex:none;display:flex;align-items:center;justify-content:center}:host:hover{background:var(--ngs-avatar-total-hover-bg)}:host:not([class*=w-]):not([class*=size-]){width:var(--ngs-avatar-size)}:host:not([class*=h-]):not([class*=size-]){height:var(--ngs-avatar-size)}:host-context(html.dark){--ngs-avatar-group-item-border: .125rem solid var(--ngs-color-neutral-950);--ngs-avatar-presence-indicator-outline: var(--ngs-color-neutral-950) solid 2px}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
489
- }] });
490
-
491
- /**
492
- * Generated bundle index. Do not edit.
493
- */
494
-
282
+ var Avatar = class Avatar {
283
+ _elementRef = inject(ElementRef);
284
+ _config = inject(AVATAR_CONFIG, { optional: true });
285
+ _avatarGenerator = new AvatarGenerator();
286
+ image = input("", ...ngDevMode ? [{ debugName: "image" }] : /* istanbul ignore next */ []);
287
+ variant = input("", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
288
+ clickable = input(false, {
289
+ ...ngDevMode ? { debugName: "clickable" } : /* istanbul ignore next */ {},
290
+ transform: booleanAttribute
291
+ });
292
+ label = input("", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
293
+ key = input("", ...ngDevMode ? [{ debugName: "key" }] : /* istanbul ignore next */ []);
294
+ appearance = input(...ngDevMode ? [void 0, { debugName: "appearance" }] : /* istanbul ignore next */ []);
295
+ backgroundColors = input([], ...ngDevMode ? [{ debugName: "backgroundColors" }] : /* istanbul ignore next */ []);
296
+ foregroundColors = input([], ...ngDevMode ? [{ debugName: "foregroundColors" }] : /* istanbul ignore next */ []);
297
+ alt = input("", ...ngDevMode ? [{ debugName: "alt" }] : /* istanbul ignore next */ []);
298
+ automaticColor = input(...ngDevMode ? [void 0, { debugName: "automaticColor" }] : /* istanbul ignore next */ []);
299
+ presenceIndicator = input(null, ...ngDevMode ? [{ debugName: "presenceIndicator" }] : /* istanbul ignore next */ []);
300
+ imageLoaded;
301
+ showLabel = false;
302
+ generatedAvatar = computed(() => {
303
+ return this._avatarGenerator.generate({
304
+ appearance: this.appearance() || this._config?.appearance || "default",
305
+ seed: this._seed(),
306
+ label: this.label(),
307
+ backgroundColors: this.backgroundColors(),
308
+ foregroundColors: this.foregroundColors()
309
+ });
310
+ }, ...ngDevMode ? [{ debugName: "generatedAvatar" }] : /* istanbul ignore next */ []);
311
+ ngOnInit() {
312
+ if (!this.image()) return;
313
+ this.imageLoaded = alreadyLoadedImages.includes(this.image());
314
+ }
315
+ ngAfterViewInit() {
316
+ setTimeout(() => {
317
+ this.showLabel = true;
318
+ }, 0);
319
+ }
320
+ ngOnChanges(changes) {
321
+ if (changes["image"]) this.imageLoaded = alreadyLoadedImages.includes(this.image());
322
+ if (changes["automaticColor"] && changes["automaticColor"].currentValue) this._setAutomaticColor(changes["automaticColor"].currentValue);
323
+ }
324
+ onImageLoaded() {
325
+ if (this.imageLoaded) return;
326
+ alreadyLoadedImages.push(this.image());
327
+ this.imageLoaded = true;
328
+ }
329
+ _setAutomaticColor(color) {
330
+ if (!this.isValidHex(color)) throw new Error(`Invalid ${color} color, automatic color supports only a valid hex color`);
331
+ const element = this._elementRef.nativeElement;
332
+ element.style.setProperty("--ngs-avatar-bg", color);
333
+ element.style.setProperty("--ngs-avatar-border-color-auto", this._newShade(color, -25));
334
+ element.style.setProperty("--ngs-avatar-color", this._newShade(color, -150));
335
+ }
336
+ _newShade(hexColor, magnitude) {
337
+ hexColor = hexColor.replace(`#`, ``);
338
+ if (hexColor.length === 6) {
339
+ const decimalColor = parseInt(hexColor, 16);
340
+ let r = (decimalColor >> 16) + magnitude;
341
+ r > 255 && (r = 255);
342
+ r < 0 && (r = 0);
343
+ let g = (decimalColor & 255) + magnitude;
344
+ g > 255 && (g = 255);
345
+ g < 0 && (g = 0);
346
+ let b = (decimalColor >> 8 & 255) + magnitude;
347
+ b > 255 && (b = 255);
348
+ b < 0 && (b = 0);
349
+ return `#${(g | b << 8 | r << 16).toString(16)}`;
350
+ } else return hexColor;
351
+ }
352
+ _seed() {
353
+ return String(this.key() || this.label() || this.alt() || "");
354
+ }
355
+ isValidHex(color) {
356
+ if (!color || typeof color !== "string") return false;
357
+ if (color.substring(0, 1) === "#") color = color.substring(1);
358
+ switch (color.length) {
359
+ case 3: return /^[0-9A-F]{3}$/i.test(color);
360
+ case 6: return /^[0-9A-F]{6}$/i.test(color);
361
+ case 8: return /^[0-9A-F]{8}$/i.test(color);
362
+ default: return false;
363
+ }
364
+ }
365
+ static ɵfac = i0.ɵɵngDeclareFactory({
366
+ minVersion: "12.0.0",
367
+ version: "22.3.0",
368
+ ngImport: i0,
369
+ type: Avatar,
370
+ deps: [],
371
+ target: i0.ɵɵFactoryTarget.Component
372
+ });
373
+ static ɵcmp = i0.ɵɵngDeclareComponent({
374
+ minVersion: "17.0.0",
375
+ version: "22.3.0",
376
+ type: Avatar,
377
+ isStandalone: true,
378
+ selector: "ngs-avatar,[ngs-avatar]",
379
+ inputs: {
380
+ image: {
381
+ classPropertyName: "image",
382
+ publicName: "image",
383
+ isSignal: true,
384
+ isRequired: false,
385
+ transformFunction: null
386
+ },
387
+ variant: {
388
+ classPropertyName: "variant",
389
+ publicName: "variant",
390
+ isSignal: true,
391
+ isRequired: false,
392
+ transformFunction: null
393
+ },
394
+ clickable: {
395
+ classPropertyName: "clickable",
396
+ publicName: "clickable",
397
+ isSignal: true,
398
+ isRequired: false,
399
+ transformFunction: null
400
+ },
401
+ label: {
402
+ classPropertyName: "label",
403
+ publicName: "label",
404
+ isSignal: true,
405
+ isRequired: false,
406
+ transformFunction: null
407
+ },
408
+ key: {
409
+ classPropertyName: "key",
410
+ publicName: "key",
411
+ isSignal: true,
412
+ isRequired: false,
413
+ transformFunction: null
414
+ },
415
+ appearance: {
416
+ classPropertyName: "appearance",
417
+ publicName: "appearance",
418
+ isSignal: true,
419
+ isRequired: false,
420
+ transformFunction: null
421
+ },
422
+ backgroundColors: {
423
+ classPropertyName: "backgroundColors",
424
+ publicName: "backgroundColors",
425
+ isSignal: true,
426
+ isRequired: false,
427
+ transformFunction: null
428
+ },
429
+ foregroundColors: {
430
+ classPropertyName: "foregroundColors",
431
+ publicName: "foregroundColors",
432
+ isSignal: true,
433
+ isRequired: false,
434
+ transformFunction: null
435
+ },
436
+ alt: {
437
+ classPropertyName: "alt",
438
+ publicName: "alt",
439
+ isSignal: true,
440
+ isRequired: false,
441
+ transformFunction: null
442
+ },
443
+ automaticColor: {
444
+ classPropertyName: "automaticColor",
445
+ publicName: "automaticColor",
446
+ isSignal: true,
447
+ isRequired: false,
448
+ transformFunction: null
449
+ },
450
+ presenceIndicator: {
451
+ classPropertyName: "presenceIndicator",
452
+ publicName: "presenceIndicator",
453
+ isSignal: true,
454
+ isRequired: false,
455
+ transformFunction: null
456
+ }
457
+ },
458
+ host: {
459
+ properties: {
460
+ "class.is-clickable": "clickable()",
461
+ "class.has-automatic-color": "!!automaticColor()",
462
+ "class.has-generated-avatar": "!!generatedAvatar()",
463
+ "class.has-loaded-image": "image() && imageLoaded",
464
+ "class.is-solid": "variant() === \"solid\"",
465
+ "class.is-tonal": "variant() === \"tonal\"",
466
+ "class.is-outlined": "variant() === \"outlined\"",
467
+ "class.is-plain": "variant() === \"plain\""
468
+ },
469
+ classAttribute: "ngs-avatar"
470
+ },
471
+ providers: [{
472
+ provide: AVATAR_ACCESSOR,
473
+ useExisting: forwardRef(() => Avatar),
474
+ multi: true
475
+ }],
476
+ exportAs: ["ngsAvatar"],
477
+ usesOnChanges: true,
478
+ ngImport: i0,
479
+ template: "@if (image()) {\n <img class=\"image\" loading=\"lazy\" [src]=\"image()\" [alt]=\"alt()\" (load)=\"onImageLoaded()\">\n}\n\n@if (!image() && generatedAvatar(); as avatar) {\n @if (avatar.kind === 'identicon') {\n <svg class=\"generated-avatar\" viewBox=\"0 0 9 9\" fill=\"none\" shape-rendering=\"crispEdges\" aria-hidden=\"true\">\n <rect width=\"9\" height=\"9\" x=\"0\" y=\"0\" [attr.fill]=\"avatar.background\"></rect>\n <g>\n @for (cell of avatar.cells; track cell.id) {\n <rect\n [attr.x]=\"cell.x + 2\"\n [attr.y]=\"cell.y + 2\"\n width=\"1\"\n height=\"1\"\n [attr.fill]=\"avatar.foreground\"></rect>\n }\n </g>\n </svg>\n } @else {\n <svg class=\"generated-avatar\" viewBox=\"0 0 100 100\" aria-hidden=\"true\">\n <rect width=\"100\" height=\"100\" x=\"0\" y=\"0\" [attr.fill]=\"avatar.background\"></rect>\n <g transform=\"translate(12.5 12.5) scale(0.75)\">\n <text\n x=\"50%\"\n y=\"50%\"\n font-family=\"Arial, sans-serif\"\n font-weight=\"500\"\n font-size=\"50\"\n dy=\"17.800\"\n text-anchor=\"middle\"\n [attr.fill]=\"avatar.foreground\">{{ avatar.label }}</text>\n </g>\n </svg>\n }\n}\n\n@if (presenceIndicator()) {\n <div class=\"presence-indicator\"\n [class.is-online]=\"presenceIndicator() === 'online'\"\n [class.is-offline]=\"presenceIndicator() === 'offline'\"\n [class.is-away]=\"presenceIndicator() === 'away'\"></div>\n}\n\n@if (label() && showLabel && !generatedAvatar()) {\n <svg viewBox=\"0 0 50 50\" class=\"text\">\n <text\n x=\"50%\"\n y=\"50%\"\n alignment-baseline=\"central\"\n text-anchor=\"middle\"\n font-weight=\"inherit\"\n font-size=\"20\"\n fill=\"currentColor\">{{ label() }}</text>\n </svg>\n}\n\n<ng-content select=\"mat-icon,ngs-icon\"/>\n",
480
+ styles: [":host{--ngs-avatar-font-weight: 500;--ngs-avatar-size: calc(var(--spacing, .25rem) * 10);--ngs-avatar-border-radius: calc(infinity * 1px);--ngs-avatar-bg: var(--ngs-color-surface-container-highest);--ngs-avatar-color: var(--ngs-color-on-surface);--ngs-avatar-presence-indicator-size: 20%;--ngs-avatar-presence-indicator-position-top: 5%;--ngs-avatar-presence-indicator-position-end: 5%;--ngs-avatar-presence-indicator-online-bg: var(--ngs-color-success);--ngs-avatar-presence-indicator-offline-bg: var(--ngs-color-on-surface-variant);--ngs-avatar-presence-indicator-away-bg: var(--ngs-color-warning);--ngs-avatar-presence-indicator-outline: var(--ngs-color-surface) solid 2px;--ngs-avatar-inner-border: inset 0 0 1px var(--ngs-color-outline-variant);--ngs-avatar-outlined-border-color: var(--ngs-color-outline);--ngs-avatar-border-color: transparent;--ngs-avatar-border-width: 1px;display:inline-flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none;flex:none;text-transform:uppercase;position:relative;font-weight:var(--ngs-avatar-font-weight)}:host:not([class*=text-]){color:var(--ngs-avatar-color)}:host:not([class*=rounded]){border-radius:var(--ngs-avatar-border-radius)}:host:not([class*=w-]):not([class*=size-]){width:var(--ngs-avatar-size)}:host:not([class*=h-]):not([class*=size-]){height:var(--ngs-avatar-size)}:host:not([class*=bg-]):not(.has-loaded-image){background:var(--ngs-avatar-bg)}:host.is-solid{--ngs-avatar-bg: var(--ngs-color-primary);--ngs-avatar-color: var(--ngs-color-on-primary)}:host.is-tonal{--ngs-avatar-bg: var(--ngs-color-surface-container-highest);--ngs-avatar-color: var(--ngs-color-on-surface)}:host.is-outlined{--ngs-avatar-bg: transparent;--ngs-avatar-color: var(--ngs-color-on-surface);box-shadow:inset 0 0 0 var(--ngs-avatar-border-width) var(--ngs-avatar-outlined-border-color)}:host.is-plain{--ngs-avatar-bg: transparent;--ngs-avatar-color: var(--ngs-color-on-surface)}:host .text{z-index:0;width:100%;height:100%}:host .generated-avatar{position:absolute;inset:0;z-index:0;width:100%;height:100%;overflow:hidden;border-radius:inherit}:host.has-loaded-image .text{display:none}:host.is-clickable{cursor:pointer}:host.is-hidden{display:none}:host.is-clickable:active{scale:.97}:host .image{display:inline;object-fit:cover;position:absolute;width:100%;height:100%;border-radius:inherit;z-index:1}:host .presence-indicator{position:absolute;z-index:1;outline:var(--ngs-avatar-presence-indicator-outline);border-radius:6.1875rem;width:var(--ngs-avatar-presence-indicator-size);height:var(--ngs-avatar-presence-indicator-size);top:var(--ngs-avatar-presence-indicator-position-top);inset-inline-end:var(--ngs-avatar-presence-indicator-position-end)}:host .presence-indicator.is-online{background:var(--ngs-avatar-presence-indicator-online-bg)}:host .presence-indicator.is-offline{background:var(--ngs-avatar-presence-indicator-offline-bg)}:host .presence-indicator.is-away{background:var(--ngs-avatar-presence-indicator-away-bg)}:host ::ng-deep .ngs-icon{display:flex;align-items:center;justify-content:center}:host.has-automatic-color{--ngs-avatar-border-color: var(--ngs-avatar-border-color-auto, transparent)}:host.has-generated-avatar{--ngs-avatar-bg: transparent}:host.has-generated-avatar:not([class*=shadow-]){box-shadow:var(--ngs-avatar-inner-border)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
481
+ changeDetection: i0.ChangeDetectionStrategy.Eager
482
+ });
483
+ };
484
+ i0.ɵɵngDeclareClassMetadata({
485
+ minVersion: "12.0.0",
486
+ version: "22.3.0",
487
+ ngImport: i0,
488
+ type: Avatar,
489
+ decorators: [{
490
+ type: Component,
491
+ args: [{
492
+ selector: "ngs-avatar,[ngs-avatar]",
493
+ exportAs: "ngsAvatar",
494
+ providers: [{
495
+ provide: AVATAR_ACCESSOR,
496
+ useExisting: forwardRef(() => Avatar),
497
+ multi: true
498
+ }],
499
+ changeDetection: ChangeDetectionStrategy.Eager,
500
+ host: {
501
+ "class": "ngs-avatar",
502
+ "[class.is-clickable]": "clickable()",
503
+ "[class.has-automatic-color]": "!!automaticColor()",
504
+ "[class.has-generated-avatar]": "!!generatedAvatar()",
505
+ "[class.has-loaded-image]": "image() && imageLoaded",
506
+ "[class.is-solid]": "variant() === \"solid\"",
507
+ "[class.is-tonal]": "variant() === \"tonal\"",
508
+ "[class.is-outlined]": "variant() === \"outlined\"",
509
+ "[class.is-plain]": "variant() === \"plain\""
510
+ },
511
+ template: "@if (image()) {\n <img class=\"image\" loading=\"lazy\" [src]=\"image()\" [alt]=\"alt()\" (load)=\"onImageLoaded()\">\n}\n\n@if (!image() && generatedAvatar(); as avatar) {\n @if (avatar.kind === 'identicon') {\n <svg class=\"generated-avatar\" viewBox=\"0 0 9 9\" fill=\"none\" shape-rendering=\"crispEdges\" aria-hidden=\"true\">\n <rect width=\"9\" height=\"9\" x=\"0\" y=\"0\" [attr.fill]=\"avatar.background\"></rect>\n <g>\n @for (cell of avatar.cells; track cell.id) {\n <rect\n [attr.x]=\"cell.x + 2\"\n [attr.y]=\"cell.y + 2\"\n width=\"1\"\n height=\"1\"\n [attr.fill]=\"avatar.foreground\"></rect>\n }\n </g>\n </svg>\n } @else {\n <svg class=\"generated-avatar\" viewBox=\"0 0 100 100\" aria-hidden=\"true\">\n <rect width=\"100\" height=\"100\" x=\"0\" y=\"0\" [attr.fill]=\"avatar.background\"></rect>\n <g transform=\"translate(12.5 12.5) scale(0.75)\">\n <text\n x=\"50%\"\n y=\"50%\"\n font-family=\"Arial, sans-serif\"\n font-weight=\"500\"\n font-size=\"50\"\n dy=\"17.800\"\n text-anchor=\"middle\"\n [attr.fill]=\"avatar.foreground\">{{ avatar.label }}</text>\n </g>\n </svg>\n }\n}\n\n@if (presenceIndicator()) {\n <div class=\"presence-indicator\"\n [class.is-online]=\"presenceIndicator() === 'online'\"\n [class.is-offline]=\"presenceIndicator() === 'offline'\"\n [class.is-away]=\"presenceIndicator() === 'away'\"></div>\n}\n\n@if (label() && showLabel && !generatedAvatar()) {\n <svg viewBox=\"0 0 50 50\" class=\"text\">\n <text\n x=\"50%\"\n y=\"50%\"\n alignment-baseline=\"central\"\n text-anchor=\"middle\"\n font-weight=\"inherit\"\n font-size=\"20\"\n fill=\"currentColor\">{{ label() }}</text>\n </svg>\n}\n\n<ng-content select=\"mat-icon,ngs-icon\"/>\n",
512
+ styles: [":host{--ngs-avatar-font-weight: 500;--ngs-avatar-size: calc(var(--spacing, .25rem) * 10);--ngs-avatar-border-radius: calc(infinity * 1px);--ngs-avatar-bg: var(--ngs-color-surface-container-highest);--ngs-avatar-color: var(--ngs-color-on-surface);--ngs-avatar-presence-indicator-size: 20%;--ngs-avatar-presence-indicator-position-top: 5%;--ngs-avatar-presence-indicator-position-end: 5%;--ngs-avatar-presence-indicator-online-bg: var(--ngs-color-success);--ngs-avatar-presence-indicator-offline-bg: var(--ngs-color-on-surface-variant);--ngs-avatar-presence-indicator-away-bg: var(--ngs-color-warning);--ngs-avatar-presence-indicator-outline: var(--ngs-color-surface) solid 2px;--ngs-avatar-inner-border: inset 0 0 1px var(--ngs-color-outline-variant);--ngs-avatar-outlined-border-color: var(--ngs-color-outline);--ngs-avatar-border-color: transparent;--ngs-avatar-border-width: 1px;display:inline-flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none;flex:none;text-transform:uppercase;position:relative;font-weight:var(--ngs-avatar-font-weight)}:host:not([class*=text-]){color:var(--ngs-avatar-color)}:host:not([class*=rounded]){border-radius:var(--ngs-avatar-border-radius)}:host:not([class*=w-]):not([class*=size-]){width:var(--ngs-avatar-size)}:host:not([class*=h-]):not([class*=size-]){height:var(--ngs-avatar-size)}:host:not([class*=bg-]):not(.has-loaded-image){background:var(--ngs-avatar-bg)}:host.is-solid{--ngs-avatar-bg: var(--ngs-color-primary);--ngs-avatar-color: var(--ngs-color-on-primary)}:host.is-tonal{--ngs-avatar-bg: var(--ngs-color-surface-container-highest);--ngs-avatar-color: var(--ngs-color-on-surface)}:host.is-outlined{--ngs-avatar-bg: transparent;--ngs-avatar-color: var(--ngs-color-on-surface);box-shadow:inset 0 0 0 var(--ngs-avatar-border-width) var(--ngs-avatar-outlined-border-color)}:host.is-plain{--ngs-avatar-bg: transparent;--ngs-avatar-color: var(--ngs-color-on-surface)}:host .text{z-index:0;width:100%;height:100%}:host .generated-avatar{position:absolute;inset:0;z-index:0;width:100%;height:100%;overflow:hidden;border-radius:inherit}:host.has-loaded-image .text{display:none}:host.is-clickable{cursor:pointer}:host.is-hidden{display:none}:host.is-clickable:active{scale:.97}:host .image{display:inline;object-fit:cover;position:absolute;width:100%;height:100%;border-radius:inherit;z-index:1}:host .presence-indicator{position:absolute;z-index:1;outline:var(--ngs-avatar-presence-indicator-outline);border-radius:6.1875rem;width:var(--ngs-avatar-presence-indicator-size);height:var(--ngs-avatar-presence-indicator-size);top:var(--ngs-avatar-presence-indicator-position-top);inset-inline-end:var(--ngs-avatar-presence-indicator-position-end)}:host .presence-indicator.is-online{background:var(--ngs-avatar-presence-indicator-online-bg)}:host .presence-indicator.is-offline{background:var(--ngs-avatar-presence-indicator-offline-bg)}:host .presence-indicator.is-away{background:var(--ngs-avatar-presence-indicator-away-bg)}:host ::ng-deep .ngs-icon{display:flex;align-items:center;justify-content:center}:host.has-automatic-color{--ngs-avatar-border-color: var(--ngs-avatar-border-color-auto, transparent)}:host.has-generated-avatar{--ngs-avatar-bg: transparent}:host.has-generated-avatar:not([class*=shadow-]){box-shadow:var(--ngs-avatar-inner-border)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
513
+ }]
514
+ }],
515
+ propDecorators: {
516
+ image: [{
517
+ type: i0.Input,
518
+ args: [{
519
+ isSignal: true,
520
+ alias: "image",
521
+ required: false
522
+ }]
523
+ }],
524
+ variant: [{
525
+ type: i0.Input,
526
+ args: [{
527
+ isSignal: true,
528
+ alias: "variant",
529
+ required: false
530
+ }]
531
+ }],
532
+ clickable: [{
533
+ type: i0.Input,
534
+ args: [{
535
+ isSignal: true,
536
+ alias: "clickable",
537
+ required: false
538
+ }]
539
+ }],
540
+ label: [{
541
+ type: i0.Input,
542
+ args: [{
543
+ isSignal: true,
544
+ alias: "label",
545
+ required: false
546
+ }]
547
+ }],
548
+ key: [{
549
+ type: i0.Input,
550
+ args: [{
551
+ isSignal: true,
552
+ alias: "key",
553
+ required: false
554
+ }]
555
+ }],
556
+ appearance: [{
557
+ type: i0.Input,
558
+ args: [{
559
+ isSignal: true,
560
+ alias: "appearance",
561
+ required: false
562
+ }]
563
+ }],
564
+ backgroundColors: [{
565
+ type: i0.Input,
566
+ args: [{
567
+ isSignal: true,
568
+ alias: "backgroundColors",
569
+ required: false
570
+ }]
571
+ }],
572
+ foregroundColors: [{
573
+ type: i0.Input,
574
+ args: [{
575
+ isSignal: true,
576
+ alias: "foregroundColors",
577
+ required: false
578
+ }]
579
+ }],
580
+ alt: [{
581
+ type: i0.Input,
582
+ args: [{
583
+ isSignal: true,
584
+ alias: "alt",
585
+ required: false
586
+ }]
587
+ }],
588
+ automaticColor: [{
589
+ type: i0.Input,
590
+ args: [{
591
+ isSignal: true,
592
+ alias: "automaticColor",
593
+ required: false
594
+ }]
595
+ }],
596
+ presenceIndicator: [{
597
+ type: i0.Input,
598
+ args: [{
599
+ isSignal: true,
600
+ alias: "presenceIndicator",
601
+ required: false
602
+ }]
603
+ }]
604
+ }
605
+ });
606
+ var AvatarGroup = class AvatarGroup {
607
+ static ɵfac = i0.ɵɵngDeclareFactory({
608
+ minVersion: "12.0.0",
609
+ version: "22.3.0",
610
+ ngImport: i0,
611
+ type: AvatarGroup,
612
+ deps: [],
613
+ target: i0.ɵɵFactoryTarget.Component
614
+ });
615
+ static ɵcmp = i0.ɵɵngDeclareComponent({
616
+ minVersion: "14.0.0",
617
+ version: "22.3.0",
618
+ type: AvatarGroup,
619
+ isStandalone: true,
620
+ selector: "ngs-avatar-group",
621
+ host: { classAttribute: "ngs-avatar-group" },
622
+ exportAs: ["ngsAvatarGroup"],
623
+ ngImport: i0,
624
+ template: "<ng-content/>\n",
625
+ styles: [":host{--ngs-avatar-group-item-offset: calc(var(--spacing, .25rem) * 4);--ngs-avatar-group-item-border: 2px solid white;display:flex;flex:none;position:relative;align-items:center}:host ::ng-deep *+*{margin-left:calc(var(--ngs-avatar-group-item-offset) * -1)}:host ::ng-deep .ngs-avatar,:host ::ng-deep .ngs-avatar-total,:host ::ng-deep .ngs-avatar-more{border:var(--ngs-avatar-group-item-border);z-index:0}:host ::ng-deep .ngs-avatar:hover,:host ::ng-deep .ngs-avatar-total:hover,:host ::ng-deep .ngs-avatar-more:hover{z-index:1}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
626
+ changeDetection: i0.ChangeDetectionStrategy.Eager
627
+ });
628
+ };
629
+ i0.ɵɵngDeclareClassMetadata({
630
+ minVersion: "12.0.0",
631
+ version: "22.3.0",
632
+ ngImport: i0,
633
+ type: AvatarGroup,
634
+ decorators: [{
635
+ type: Component,
636
+ args: [{
637
+ selector: "ngs-avatar-group",
638
+ exportAs: "ngsAvatarGroup",
639
+ changeDetection: ChangeDetectionStrategy.Eager,
640
+ host: { "class": "ngs-avatar-group" },
641
+ template: "<ng-content/>\n",
642
+ styles: [":host{--ngs-avatar-group-item-offset: calc(var(--spacing, .25rem) * 4);--ngs-avatar-group-item-border: 2px solid white;display:flex;flex:none;position:relative;align-items:center}:host ::ng-deep *+*{margin-left:calc(var(--ngs-avatar-group-item-offset) * -1)}:host ::ng-deep .ngs-avatar,:host ::ng-deep .ngs-avatar-total,:host ::ng-deep .ngs-avatar-more{border:var(--ngs-avatar-group-item-border);z-index:0}:host ::ng-deep .ngs-avatar:hover,:host ::ng-deep .ngs-avatar-total:hover,:host ::ng-deep .ngs-avatar-more:hover{z-index:1}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
643
+ }]
644
+ }]
645
+ });
646
+ var AvatarMore = class AvatarMore {
647
+ static ɵfac = i0.ɵɵngDeclareFactory({
648
+ minVersion: "12.0.0",
649
+ version: "22.3.0",
650
+ ngImport: i0,
651
+ type: AvatarMore,
652
+ deps: [],
653
+ target: i0.ɵɵFactoryTarget.Component
654
+ });
655
+ static ɵcmp = i0.ɵɵngDeclareComponent({
656
+ minVersion: "14.0.0",
657
+ version: "22.3.0",
658
+ type: AvatarMore,
659
+ isStandalone: true,
660
+ selector: "ngs-avatar-more,[ngs-avatar-more]",
661
+ host: { classAttribute: "ngs-avatar-more" },
662
+ exportAs: ["ngsAvatarMore"],
663
+ ngImport: i0,
664
+ template: "<ng-content/>\n",
665
+ styles: [":host{--ngs-avatar-font-weight: 500;--ngs-avatar-size: calc(var(--spacing, .25rem) * 10);--ngs-avatar-border-radius: calc(infinity * 1px);--ngs-avatar-bg: var(--ngs-color-success);--ngs-avatar-color: white;--ngs-avatar-inner-border: inset 0 0 2px var(--ngs-color-border);--ngs-avatar-total-font-size: var(--ngs-font-size-xs);--ngs-avatar-total-font-weight: 500;--ngs-avatar-total-color: white;--ngs-avatar-total-bg: var(--ngs-color-neutral-700);--ngs-avatar-total-hover-bg: var(--ngs-color-neutral-600);background:var(--ngs-avatar-total-bg);font-size:var(--ngs-avatar-total-font-size);font-weight:var(--ngs-avatar-total-font-weight);color:var(--ngs-avatar-total-color);border-radius:var(--ngs-avatar-border-radius);flex:none;display:flex;align-items:center;justify-content:center}:host:hover{background:var(--ngs-avatar-total-hover-bg)}:host:not([class*=w-]):not([class*=size-]){width:var(--ngs-avatar-size)}:host:not([class*=h-]):not([class*=size-]){height:var(--ngs-avatar-size)}:host-context(html.dark){--ngs-avatar-group-item-border: .125rem solid var(--ngs-color-neutral-950);--ngs-avatar-presence-indicator-outline: var(--ngs-color-neutral-950) solid 2px}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
666
+ changeDetection: i0.ChangeDetectionStrategy.Eager
667
+ });
668
+ };
669
+ i0.ɵɵngDeclareClassMetadata({
670
+ minVersion: "12.0.0",
671
+ version: "22.3.0",
672
+ ngImport: i0,
673
+ type: AvatarMore,
674
+ decorators: [{
675
+ type: Component,
676
+ args: [{
677
+ selector: "ngs-avatar-more,[ngs-avatar-more]",
678
+ exportAs: "ngsAvatarMore",
679
+ imports: [],
680
+ changeDetection: ChangeDetectionStrategy.Eager,
681
+ host: { "class": "ngs-avatar-more" },
682
+ template: "<ng-content/>\n",
683
+ styles: [":host{--ngs-avatar-font-weight: 500;--ngs-avatar-size: calc(var(--spacing, .25rem) * 10);--ngs-avatar-border-radius: calc(infinity * 1px);--ngs-avatar-bg: var(--ngs-color-success);--ngs-avatar-color: white;--ngs-avatar-inner-border: inset 0 0 2px var(--ngs-color-border);--ngs-avatar-total-font-size: var(--ngs-font-size-xs);--ngs-avatar-total-font-weight: 500;--ngs-avatar-total-color: white;--ngs-avatar-total-bg: var(--ngs-color-neutral-700);--ngs-avatar-total-hover-bg: var(--ngs-color-neutral-600);background:var(--ngs-avatar-total-bg);font-size:var(--ngs-avatar-total-font-size);font-weight:var(--ngs-avatar-total-font-weight);color:var(--ngs-avatar-total-color);border-radius:var(--ngs-avatar-border-radius);flex:none;display:flex;align-items:center;justify-content:center}:host:hover{background:var(--ngs-avatar-total-hover-bg)}:host:not([class*=w-]):not([class*=size-]){width:var(--ngs-avatar-size)}:host:not([class*=h-]):not([class*=size-]){height:var(--ngs-avatar-size)}:host-context(html.dark){--ngs-avatar-group-item-border: .125rem solid var(--ngs-color-neutral-950);--ngs-avatar-presence-indicator-outline: var(--ngs-color-neutral-950) solid 2px}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
684
+ }]
685
+ }]
686
+ });
687
+ var AvatarTotal = class AvatarTotal {
688
+ static ɵfac = i0.ɵɵngDeclareFactory({
689
+ minVersion: "12.0.0",
690
+ version: "22.3.0",
691
+ ngImport: i0,
692
+ type: AvatarTotal,
693
+ deps: [],
694
+ target: i0.ɵɵFactoryTarget.Component
695
+ });
696
+ static ɵcmp = i0.ɵɵngDeclareComponent({
697
+ minVersion: "14.0.0",
698
+ version: "22.3.0",
699
+ type: AvatarTotal,
700
+ isStandalone: true,
701
+ selector: "ngs-avatar-total,[ngs-avatar-total]",
702
+ host: { classAttribute: "ngs-avatar-total" },
703
+ exportAs: ["ngsAvatarTotal"],
704
+ ngImport: i0,
705
+ template: "<ng-content />\n",
706
+ styles: [":host{--ngs-avatar-font-weight: 500;--ngs-avatar-size: calc(var(--spacing, .25rem) * 10);--ngs-avatar-border-radius: calc(infinity * 1px);--ngs-avatar-bg: var(--ngs-color-success);--ngs-avatar-color: white;--ngs-avatar-inner-border: inset 0 0 2px var(--ngs-color-border);--ngs-avatar-total-font-size: var(--ngs-font-size-xs);--ngs-avatar-total-font-weight: 500;--ngs-avatar-total-color: white;--ngs-avatar-total-bg: var(--ngs-color-neutral-700);--ngs-avatar-total-hover-bg: var(--ngs-color-neutral-600);background:var(--ngs-avatar-total-bg);font-size:var(--ngs-avatar-total-font-size);font-weight:var(--ngs-avatar-total-font-weight);color:var(--ngs-avatar-total-color);border-radius:var(--ngs-avatar-border-radius);flex:none;display:flex;align-items:center;justify-content:center}:host:hover{background:var(--ngs-avatar-total-hover-bg)}:host:not([class*=w-]):not([class*=size-]){width:var(--ngs-avatar-size)}:host:not([class*=h-]):not([class*=size-]){height:var(--ngs-avatar-size)}:host-context(html.dark){--ngs-avatar-group-item-border: .125rem solid var(--ngs-color-neutral-950);--ngs-avatar-presence-indicator-outline: var(--ngs-color-neutral-950) solid 2px}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
707
+ changeDetection: i0.ChangeDetectionStrategy.Eager
708
+ });
709
+ };
710
+ i0.ɵɵngDeclareClassMetadata({
711
+ minVersion: "12.0.0",
712
+ version: "22.3.0",
713
+ ngImport: i0,
714
+ type: AvatarTotal,
715
+ decorators: [{
716
+ type: Component,
717
+ args: [{
718
+ selector: "ngs-avatar-total,[ngs-avatar-total]",
719
+ exportAs: "ngsAvatarTotal",
720
+ changeDetection: ChangeDetectionStrategy.Eager,
721
+ host: { "class": "ngs-avatar-total" },
722
+ template: "<ng-content />\n",
723
+ styles: [":host{--ngs-avatar-font-weight: 500;--ngs-avatar-size: calc(var(--spacing, .25rem) * 10);--ngs-avatar-border-radius: calc(infinity * 1px);--ngs-avatar-bg: var(--ngs-color-success);--ngs-avatar-color: white;--ngs-avatar-inner-border: inset 0 0 2px var(--ngs-color-border);--ngs-avatar-total-font-size: var(--ngs-font-size-xs);--ngs-avatar-total-font-weight: 500;--ngs-avatar-total-color: white;--ngs-avatar-total-bg: var(--ngs-color-neutral-700);--ngs-avatar-total-hover-bg: var(--ngs-color-neutral-600);background:var(--ngs-avatar-total-bg);font-size:var(--ngs-avatar-total-font-size);font-weight:var(--ngs-avatar-total-font-weight);color:var(--ngs-avatar-total-color);border-radius:var(--ngs-avatar-border-radius);flex:none;display:flex;align-items:center;justify-content:center}:host:hover{background:var(--ngs-avatar-total-hover-bg)}:host:not([class*=w-]):not([class*=size-]){width:var(--ngs-avatar-size)}:host:not([class*=h-]):not([class*=size-]){height:var(--ngs-avatar-size)}:host-context(html.dark){--ngs-avatar-group-item-border: .125rem solid var(--ngs-color-neutral-950);--ngs-avatar-presence-indicator-outline: var(--ngs-color-neutral-950) solid 2px}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
724
+ }]
725
+ }]
726
+ });
495
727
  export { AVATAR_ACCESSOR, AVATAR_CONFIG, Avatar, AvatarGroup, AvatarMore, AvatarTotal, provideAvatar };
496
- //# sourceMappingURL=ngstarter-ui-components-avatar.mjs.map
728
+
729
+ //# sourceMappingURL=ngstarter-ui-components-avatar.mjs.map