@aiandralves/ai-ui 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1202) hide show
  1. package/README.md +0 -0
  2. package/aiandralves-ai-ui.d.ts +5 -0
  3. package/aiandrameira-ai-ui.d.ts +5 -0
  4. package/esm2022/aiandralves-ai-ui.js +5 -0
  5. package/esm2022/aiandralves-ai-ui.js.map +1 -0
  6. package/esm2022/aiandrameira-ai-ui.js +5 -0
  7. package/esm2022/aiandrameira-ai-ui.js.map +1 -0
  8. package/esm2022/index.js +4 -0
  9. package/esm2022/index.js.map +1 -0
  10. package/esm2022/lib/components/accordion/accordion.js +83 -0
  11. package/esm2022/lib/components/accordion/accordion.js.map +1 -0
  12. package/esm2022/lib/components/accordion/accordion.service.js +29 -0
  13. package/esm2022/lib/components/accordion/accordion.service.js.map +1 -0
  14. package/esm2022/lib/components/accordion/accordion.variants.js +32 -0
  15. package/esm2022/lib/components/accordion/accordion.variants.js.map +1 -0
  16. package/esm2022/lib/components/accordion/demo/accordion.js +16 -0
  17. package/esm2022/lib/components/accordion/demo/accordion.js.map +1 -0
  18. package/esm2022/lib/components/accordion/demo/default.js +63 -0
  19. package/esm2022/lib/components/accordion/demo/default.js.map +1 -0
  20. package/esm2022/lib/components/accordion/demo/single.js +63 -0
  21. package/esm2022/lib/components/accordion/demo/single.js.map +1 -0
  22. package/esm2022/lib/components/accordion/index.js +3 -0
  23. package/esm2022/lib/components/accordion/index.js.map +1 -0
  24. package/esm2022/lib/components/alert/alert.js +25 -0
  25. package/esm2022/lib/components/alert/alert.js.map +1 -0
  26. package/esm2022/lib/components/alert/alert.variants.js +23 -0
  27. package/esm2022/lib/components/alert/alert.variants.js.map +1 -0
  28. package/esm2022/lib/components/alert/demo/accent.js +29 -0
  29. package/esm2022/lib/components/alert/demo/accent.js.map +1 -0
  30. package/esm2022/lib/components/alert/demo/alert.js +42 -0
  31. package/esm2022/lib/components/alert/demo/alert.js.map +1 -0
  32. package/esm2022/lib/components/alert/demo/destructive.js +29 -0
  33. package/esm2022/lib/components/alert/demo/destructive.js.map +1 -0
  34. package/esm2022/lib/components/alert/demo/icon.js +29 -0
  35. package/esm2022/lib/components/alert/demo/icon.js.map +1 -0
  36. package/esm2022/lib/components/alert/demo/info.js +29 -0
  37. package/esm2022/lib/components/alert/demo/info.js.map +1 -0
  38. package/esm2022/lib/components/alert/demo/primary.js +38 -0
  39. package/esm2022/lib/components/alert/demo/primary.js.map +1 -0
  40. package/esm2022/lib/components/alert/demo/success.js +29 -0
  41. package/esm2022/lib/components/alert/demo/success.js.map +1 -0
  42. package/esm2022/lib/components/alert/demo/warning.js +29 -0
  43. package/esm2022/lib/components/alert/demo/warning.js.map +1 -0
  44. package/esm2022/lib/components/alert/index.js +3 -0
  45. package/esm2022/lib/components/alert/index.js.map +1 -0
  46. package/esm2022/lib/components/alert-dialog/alert-dialog.config.js +20 -0
  47. package/esm2022/lib/components/alert-dialog/alert-dialog.config.js.map +1 -0
  48. package/esm2022/lib/components/alert-dialog/alert-dialog.js +68 -0
  49. package/esm2022/lib/components/alert-dialog/alert-dialog.js.map +1 -0
  50. package/esm2022/lib/components/alert-dialog/alert-dialog.ref.js +93 -0
  51. package/esm2022/lib/components/alert-dialog/alert-dialog.ref.js.map +1 -0
  52. package/esm2022/lib/components/alert-dialog/alert-dialog.service.js +88 -0
  53. package/esm2022/lib/components/alert-dialog/alert-dialog.service.js.map +1 -0
  54. package/esm2022/lib/components/alert-dialog/alert-dialog.variants.js +3 -0
  55. package/esm2022/lib/components/alert-dialog/alert-dialog.variants.js.map +1 -0
  56. package/esm2022/lib/components/alert-dialog/demo/alert-dialog.js +12 -0
  57. package/esm2022/lib/components/alert-dialog/demo/alert-dialog.js.map +1 -0
  58. package/esm2022/lib/components/alert-dialog/demo/default.js +34 -0
  59. package/esm2022/lib/components/alert-dialog/demo/default.js.map +1 -0
  60. package/esm2022/lib/components/alert-dialog/index.js +6 -0
  61. package/esm2022/lib/components/alert-dialog/index.js.map +1 -0
  62. package/esm2022/lib/components/avatar/avatar-group.js +25 -0
  63. package/esm2022/lib/components/avatar/avatar-group.js.map +1 -0
  64. package/esm2022/lib/components/avatar/avatar.js +52 -0
  65. package/esm2022/lib/components/avatar/avatar.js.map +1 -0
  66. package/esm2022/lib/components/avatar/avatar.variants.js +44 -0
  67. package/esm2022/lib/components/avatar/avatar.variants.js.map +1 -0
  68. package/esm2022/lib/components/avatar/demo/avatar.js +27 -0
  69. package/esm2022/lib/components/avatar/demo/avatar.js.map +1 -0
  70. package/esm2022/lib/components/avatar/demo/default.js +38 -0
  71. package/esm2022/lib/components/avatar/demo/default.js.map +1 -0
  72. package/esm2022/lib/components/avatar/demo/shape.js +25 -0
  73. package/esm2022/lib/components/avatar/demo/shape.js.map +1 -0
  74. package/esm2022/lib/components/avatar/demo/size.js +33 -0
  75. package/esm2022/lib/components/avatar/demo/size.js.map +1 -0
  76. package/esm2022/lib/components/avatar/demo/status.js +29 -0
  77. package/esm2022/lib/components/avatar/demo/status.js.map +1 -0
  78. package/esm2022/lib/components/avatar/index.js +4 -0
  79. package/esm2022/lib/components/avatar/index.js.map +1 -0
  80. package/esm2022/lib/components/badge/badge.js +57 -0
  81. package/esm2022/lib/components/badge/badge.js.map +1 -0
  82. package/esm2022/lib/components/badge/badge.variants.js +117 -0
  83. package/esm2022/lib/components/badge/badge.variants.js.map +1 -0
  84. package/esm2022/lib/components/badge/demo/badge.js +37 -0
  85. package/esm2022/lib/components/badge/demo/badge.js.map +1 -0
  86. package/esm2022/lib/components/badge/demo/close.js +28 -0
  87. package/esm2022/lib/components/badge/demo/close.js.map +1 -0
  88. package/esm2022/lib/components/badge/demo/disabled.js +23 -0
  89. package/esm2022/lib/components/badge/demo/disabled.js.map +1 -0
  90. package/esm2022/lib/components/badge/demo/fill.js +59 -0
  91. package/esm2022/lib/components/badge/demo/fill.js.map +1 -0
  92. package/esm2022/lib/components/badge/demo/icon.js +25 -0
  93. package/esm2022/lib/components/badge/demo/icon.js.map +1 -0
  94. package/esm2022/lib/components/badge/demo/shape.js +25 -0
  95. package/esm2022/lib/components/badge/demo/shape.js.map +1 -0
  96. package/esm2022/lib/components/badge/demo/variant.js +37 -0
  97. package/esm2022/lib/components/badge/demo/variant.js.map +1 -0
  98. package/esm2022/lib/components/badge/index.js +3 -0
  99. package/esm2022/lib/components/badge/index.js.map +1 -0
  100. package/esm2022/lib/components/breadcrumb/breadcrumb-content.js +30 -0
  101. package/esm2022/lib/components/breadcrumb/breadcrumb-content.js.map +1 -0
  102. package/esm2022/lib/components/breadcrumb/breadcrumb-item.js +31 -0
  103. package/esm2022/lib/components/breadcrumb/breadcrumb-item.js.map +1 -0
  104. package/esm2022/lib/components/breadcrumb/breadcrumb-link.js +33 -0
  105. package/esm2022/lib/components/breadcrumb/breadcrumb-link.js.map +1 -0
  106. package/esm2022/lib/components/breadcrumb/breadcrumb-list.js +31 -0
  107. package/esm2022/lib/components/breadcrumb/breadcrumb-list.js.map +1 -0
  108. package/esm2022/lib/components/breadcrumb/breadcrumb-page.js +30 -0
  109. package/esm2022/lib/components/breadcrumb/breadcrumb-page.js.map +1 -0
  110. package/esm2022/lib/components/breadcrumb/breadcrumb-separator.js +37 -0
  111. package/esm2022/lib/components/breadcrumb/breadcrumb-separator.js.map +1 -0
  112. package/esm2022/lib/components/breadcrumb/breadcrumb.config.js +1 -0
  113. package/esm2022/lib/components/breadcrumb/breadcrumb.config.js.map +1 -0
  114. package/esm2022/lib/components/breadcrumb/breadcrumb.directive.js +21 -0
  115. package/esm2022/lib/components/breadcrumb/breadcrumb.directive.js.map +1 -0
  116. package/esm2022/lib/components/breadcrumb/breadcrumb.imports.js +8 -0
  117. package/esm2022/lib/components/breadcrumb/breadcrumb.imports.js.map +1 -0
  118. package/esm2022/lib/components/breadcrumb/breadcrumb.js +28 -0
  119. package/esm2022/lib/components/breadcrumb/breadcrumb.js.map +1 -0
  120. package/esm2022/lib/components/breadcrumb/breadcrumb.service.js +65 -0
  121. package/esm2022/lib/components/breadcrumb/breadcrumb.service.js.map +1 -0
  122. package/esm2022/lib/components/breadcrumb/breadcrumb.variants.js +88 -0
  123. package/esm2022/lib/components/breadcrumb/breadcrumb.variants.js.map +1 -0
  124. package/esm2022/lib/components/breadcrumb/demo/breadcrumb.js +37 -0
  125. package/esm2022/lib/components/breadcrumb/demo/breadcrumb.js.map +1 -0
  126. package/esm2022/lib/components/breadcrumb/demo/content.js +53 -0
  127. package/esm2022/lib/components/breadcrumb/demo/content.js.map +1 -0
  128. package/esm2022/lib/components/breadcrumb/demo/custom-separator.js +62 -0
  129. package/esm2022/lib/components/breadcrumb/demo/custom-separator.js.map +1 -0
  130. package/esm2022/lib/components/breadcrumb/demo/default.js +60 -0
  131. package/esm2022/lib/components/breadcrumb/demo/default.js.map +1 -0
  132. package/esm2022/lib/components/breadcrumb/demo/directive.js +50 -0
  133. package/esm2022/lib/components/breadcrumb/demo/directive.js.map +1 -0
  134. package/esm2022/lib/components/breadcrumb/demo/icon.js +72 -0
  135. package/esm2022/lib/components/breadcrumb/demo/icon.js.map +1 -0
  136. package/esm2022/lib/components/breadcrumb/demo/router-link.js +53 -0
  137. package/esm2022/lib/components/breadcrumb/demo/router-link.js.map +1 -0
  138. package/esm2022/lib/components/breadcrumb/index.js +5 -0
  139. package/esm2022/lib/components/breadcrumb/index.js.map +1 -0
  140. package/esm2022/lib/components/button/button.js +64 -0
  141. package/esm2022/lib/components/button/button.js.map +1 -0
  142. package/esm2022/lib/components/button/button.variants.js +102 -0
  143. package/esm2022/lib/components/button/button.variants.js.map +1 -0
  144. package/esm2022/lib/components/button/demo/button.js +47 -0
  145. package/esm2022/lib/components/button/demo/button.js.map +1 -0
  146. package/esm2022/lib/components/button/demo/disabled.js +23 -0
  147. package/esm2022/lib/components/button/demo/disabled.js.map +1 -0
  148. package/esm2022/lib/components/button/demo/fill.js +47 -0
  149. package/esm2022/lib/components/button/demo/fill.js.map +1 -0
  150. package/esm2022/lib/components/button/demo/full.js +23 -0
  151. package/esm2022/lib/components/button/demo/full.js.map +1 -0
  152. package/esm2022/lib/components/button/demo/icon.js +23 -0
  153. package/esm2022/lib/components/button/demo/icon.js.map +1 -0
  154. package/esm2022/lib/components/button/demo/loading.js +23 -0
  155. package/esm2022/lib/components/button/demo/loading.js.map +1 -0
  156. package/esm2022/lib/components/button/demo/shape.js +25 -0
  157. package/esm2022/lib/components/button/demo/shape.js.map +1 -0
  158. package/esm2022/lib/components/button/demo/size.js +29 -0
  159. package/esm2022/lib/components/button/demo/size.js.map +1 -0
  160. package/esm2022/lib/components/button/demo/variant.js +35 -0
  161. package/esm2022/lib/components/button/demo/variant.js.map +1 -0
  162. package/esm2022/lib/components/button/index.js +3 -0
  163. package/esm2022/lib/components/button/index.js.map +1 -0
  164. package/esm2022/lib/components/button-toggle/button-toggle.js +102 -0
  165. package/esm2022/lib/components/button-toggle/button-toggle.js.map +1 -0
  166. package/esm2022/lib/components/button-toggle/button-toggle.variants.js +36 -0
  167. package/esm2022/lib/components/button-toggle/button-toggle.variants.js.map +1 -0
  168. package/esm2022/lib/components/button-toggle/demo/button-toggle.js +22 -0
  169. package/esm2022/lib/components/button-toggle/demo/button-toggle.js.map +1 -0
  170. package/esm2022/lib/components/button-toggle/demo/default.js +36 -0
  171. package/esm2022/lib/components/button-toggle/demo/default.js.map +1 -0
  172. package/esm2022/lib/components/button-toggle/demo/disabled.js +28 -0
  173. package/esm2022/lib/components/button-toggle/demo/disabled.js.map +1 -0
  174. package/esm2022/lib/components/button-toggle/demo/size.js +50 -0
  175. package/esm2022/lib/components/button-toggle/demo/size.js.map +1 -0
  176. package/esm2022/lib/components/button-toggle/index.js +3 -0
  177. package/esm2022/lib/components/button-toggle/index.js.map +1 -0
  178. package/esm2022/lib/components/card/card.js +26 -0
  179. package/esm2022/lib/components/card/card.js.map +1 -0
  180. package/esm2022/lib/components/card/card.variants.js +15 -0
  181. package/esm2022/lib/components/card/card.variants.js.map +1 -0
  182. package/esm2022/lib/components/card/demo/card.js +17 -0
  183. package/esm2022/lib/components/card/demo/card.js.map +1 -0
  184. package/esm2022/lib/components/card/demo/default.js +30 -0
  185. package/esm2022/lib/components/card/demo/default.js.map +1 -0
  186. package/esm2022/lib/components/card/demo/disabled.js +23 -0
  187. package/esm2022/lib/components/card/demo/disabled.js.map +1 -0
  188. package/esm2022/lib/components/card/index.js +3 -0
  189. package/esm2022/lib/components/card/index.js.map +1 -0
  190. package/esm2022/lib/components/carousel/carousel.js +98 -0
  191. package/esm2022/lib/components/carousel/carousel.js.map +1 -0
  192. package/esm2022/lib/components/carousel/carousel.service.js +137 -0
  193. package/esm2022/lib/components/carousel/carousel.service.js.map +1 -0
  194. package/esm2022/lib/components/carousel/carousel.variants.js +62 -0
  195. package/esm2022/lib/components/carousel/carousel.variants.js.map +1 -0
  196. package/esm2022/lib/components/carousel/demo/autoplay.js +44 -0
  197. package/esm2022/lib/components/carousel/demo/autoplay.js.map +1 -0
  198. package/esm2022/lib/components/carousel/demo/carousel.js +21 -0
  199. package/esm2022/lib/components/carousel/demo/carousel.js.map +1 -0
  200. package/esm2022/lib/components/carousel/demo/default.js +46 -0
  201. package/esm2022/lib/components/carousel/demo/default.js.map +1 -0
  202. package/esm2022/lib/components/carousel/demo/loop.js +44 -0
  203. package/esm2022/lib/components/carousel/demo/loop.js.map +1 -0
  204. package/esm2022/lib/components/carousel/index.js +3 -0
  205. package/esm2022/lib/components/carousel/index.js.map +1 -0
  206. package/esm2022/lib/components/command/command-empty.js +42 -0
  207. package/esm2022/lib/components/command/command-empty.js.map +1 -0
  208. package/esm2022/lib/components/command/command-input.js +137 -0
  209. package/esm2022/lib/components/command/command-input.js.map +1 -0
  210. package/esm2022/lib/components/command/command-item-group.js +72 -0
  211. package/esm2022/lib/components/command/command-item-group.js.map +1 -0
  212. package/esm2022/lib/components/command/command-item.js +122 -0
  213. package/esm2022/lib/components/command/command-item.js.map +1 -0
  214. package/esm2022/lib/components/command/command-list.js +29 -0
  215. package/esm2022/lib/components/command/command-list.js.map +1 -0
  216. package/esm2022/lib/components/command/command-separator.js +39 -0
  217. package/esm2022/lib/components/command/command-separator.js.map +1 -0
  218. package/esm2022/lib/components/command/command.config.js +3 -0
  219. package/esm2022/lib/components/command/command.config.js.map +1 -0
  220. package/esm2022/lib/components/command/command.imports.js +9 -0
  221. package/esm2022/lib/components/command/command.imports.js.map +1 -0
  222. package/esm2022/lib/components/command/command.js +184 -0
  223. package/esm2022/lib/components/command/command.js.map +1 -0
  224. package/esm2022/lib/components/command/command.variants.js +50 -0
  225. package/esm2022/lib/components/command/command.variants.js.map +1 -0
  226. package/esm2022/lib/components/command/demo/command.js +12 -0
  227. package/esm2022/lib/components/command/demo/command.js.map +1 -0
  228. package/esm2022/lib/components/command/demo/default.js +124 -0
  229. package/esm2022/lib/components/command/demo/default.js.map +1 -0
  230. package/esm2022/lib/components/command/index.js +10 -0
  231. package/esm2022/lib/components/command/index.js.map +1 -0
  232. package/esm2022/lib/components/date-picker/date-picker-overlay.service.js +63 -0
  233. package/esm2022/lib/components/date-picker/date-picker-overlay.service.js.map +1 -0
  234. package/esm2022/lib/components/date-picker/date-picker.js +113 -0
  235. package/esm2022/lib/components/date-picker/date-picker.js.map +1 -0
  236. package/esm2022/lib/components/date-picker/date-picker.util.js +71 -0
  237. package/esm2022/lib/components/date-picker/date-picker.util.js.map +1 -0
  238. package/esm2022/lib/components/date-picker/date-picker.variants.js +17 -0
  239. package/esm2022/lib/components/date-picker/date-picker.variants.js.map +1 -0
  240. package/esm2022/lib/components/date-picker/demo/date-picker.js +21 -0
  241. package/esm2022/lib/components/date-picker/demo/date-picker.js.map +1 -0
  242. package/esm2022/lib/components/date-picker/demo/default.js +30 -0
  243. package/esm2022/lib/components/date-picker/demo/default.js.map +1 -0
  244. package/esm2022/lib/components/date-picker/demo/disabled.js +23 -0
  245. package/esm2022/lib/components/date-picker/demo/disabled.js.map +1 -0
  246. package/esm2022/lib/components/date-picker/demo/range.js +30 -0
  247. package/esm2022/lib/components/date-picker/demo/range.js.map +1 -0
  248. package/esm2022/lib/components/date-picker/index.js +3 -0
  249. package/esm2022/lib/components/date-picker/index.js.map +1 -0
  250. package/esm2022/lib/components/dialog/demo/default.js +108 -0
  251. package/esm2022/lib/components/dialog/demo/default.js.map +1 -0
  252. package/esm2022/lib/components/dialog/demo/dialog.js +12 -0
  253. package/esm2022/lib/components/dialog/demo/dialog.js.map +1 -0
  254. package/esm2022/lib/components/dialog/dialog-ref.js +85 -0
  255. package/esm2022/lib/components/dialog/dialog-ref.js.map +1 -0
  256. package/esm2022/lib/components/dialog/dialog.config.js +22 -0
  257. package/esm2022/lib/components/dialog/dialog.config.js.map +1 -0
  258. package/esm2022/lib/components/dialog/dialog.js +51 -0
  259. package/esm2022/lib/components/dialog/dialog.js.map +1 -0
  260. package/esm2022/lib/components/dialog/dialog.module.js +20 -0
  261. package/esm2022/lib/components/dialog/dialog.module.js.map +1 -0
  262. package/esm2022/lib/components/dialog/dialog.service.js +76 -0
  263. package/esm2022/lib/components/dialog/dialog.service.js.map +1 -0
  264. package/esm2022/lib/components/dialog/dialog.variants.js +3 -0
  265. package/esm2022/lib/components/dialog/dialog.variants.js.map +1 -0
  266. package/esm2022/lib/components/dialog/index.js +6 -0
  267. package/esm2022/lib/components/dialog/index.js.map +1 -0
  268. package/esm2022/lib/components/empty/demo/advanced.js +63 -0
  269. package/esm2022/lib/components/empty/demo/advanced.js.map +1 -0
  270. package/esm2022/lib/components/empty/demo/custom-image.js +44 -0
  271. package/esm2022/lib/components/empty/demo/custom-image.js.map +1 -0
  272. package/esm2022/lib/components/empty/demo/default.js +61 -0
  273. package/esm2022/lib/components/empty/demo/default.js.map +1 -0
  274. package/esm2022/lib/components/empty/demo/empty.js +22 -0
  275. package/esm2022/lib/components/empty/demo/empty.js.map +1 -0
  276. package/esm2022/lib/components/empty/empty.js +30 -0
  277. package/esm2022/lib/components/empty/empty.js.map +1 -0
  278. package/esm2022/lib/components/empty/empty.variants.js +23 -0
  279. package/esm2022/lib/components/empty/empty.variants.js.map +1 -0
  280. package/esm2022/lib/components/empty/index.js +3 -0
  281. package/esm2022/lib/components/empty/index.js.map +1 -0
  282. package/esm2022/lib/components/float-button/demo/float-button.js +37 -0
  283. package/esm2022/lib/components/float-button/demo/float-button.js.map +1 -0
  284. package/esm2022/lib/components/float-button/demo/float-group.js +44 -0
  285. package/esm2022/lib/components/float-button/demo/float-group.js.map +1 -0
  286. package/esm2022/lib/components/float-button/demo/float-top.js +23 -0
  287. package/esm2022/lib/components/float-button/demo/float-top.js.map +1 -0
  288. package/esm2022/lib/components/float-button/demo/position.js +29 -0
  289. package/esm2022/lib/components/float-button/demo/position.js.map +1 -0
  290. package/esm2022/lib/components/float-button/demo/shape.js +25 -0
  291. package/esm2022/lib/components/float-button/demo/shape.js.map +1 -0
  292. package/esm2022/lib/components/float-button/demo/size.js +25 -0
  293. package/esm2022/lib/components/float-button/demo/size.js.map +1 -0
  294. package/esm2022/lib/components/float-button/demo/variant.js +27 -0
  295. package/esm2022/lib/components/float-button/demo/variant.js.map +1 -0
  296. package/esm2022/lib/components/float-button/float-button-group.js +99 -0
  297. package/esm2022/lib/components/float-button/float-button-group.js.map +1 -0
  298. package/esm2022/lib/components/float-button/float-button-top.js +70 -0
  299. package/esm2022/lib/components/float-button/float-button-top.js.map +1 -0
  300. package/esm2022/lib/components/float-button/float-button.js +59 -0
  301. package/esm2022/lib/components/float-button/float-button.js.map +1 -0
  302. package/esm2022/lib/components/float-button/float-button.variants.js +24 -0
  303. package/esm2022/lib/components/float-button/float-button.variants.js.map +1 -0
  304. package/esm2022/lib/components/float-button/index.js +5 -0
  305. package/esm2022/lib/components/float-button/index.js.map +1 -0
  306. package/esm2022/lib/components/form-field/autocomplete/autocomplete-config.js +36 -0
  307. package/esm2022/lib/components/form-field/autocomplete/autocomplete-config.js.map +1 -0
  308. package/esm2022/lib/components/form-field/autocomplete/autocomplete.js +234 -0
  309. package/esm2022/lib/components/form-field/autocomplete/autocomplete.js.map +1 -0
  310. package/esm2022/lib/components/form-field/autocomplete/autocomplete.variants.js +25 -0
  311. package/esm2022/lib/components/form-field/autocomplete/autocomplete.variants.js.map +1 -0
  312. package/esm2022/lib/components/form-field/autocomplete/demo/autocomplete.js +21 -0
  313. package/esm2022/lib/components/form-field/autocomplete/demo/autocomplete.js.map +1 -0
  314. package/esm2022/lib/components/form-field/autocomplete/demo/default.js +41 -0
  315. package/esm2022/lib/components/form-field/autocomplete/demo/default.js.map +1 -0
  316. package/esm2022/lib/components/form-field/autocomplete/demo/events.js +63 -0
  317. package/esm2022/lib/components/form-field/autocomplete/demo/events.js.map +1 -0
  318. package/esm2022/lib/components/form-field/autocomplete/demo/validation.js +84 -0
  319. package/esm2022/lib/components/form-field/autocomplete/demo/validation.js.map +1 -0
  320. package/esm2022/lib/components/form-field/autocomplete/index.js +4 -0
  321. package/esm2022/lib/components/form-field/autocomplete/index.js.map +1 -0
  322. package/esm2022/lib/components/form-field/autocomplete/services/autocomplete-overlay.service.js +65 -0
  323. package/esm2022/lib/components/form-field/autocomplete/services/autocomplete-overlay.service.js.map +1 -0
  324. package/esm2022/lib/components/form-field/autocomplete/services/index.js +2 -0
  325. package/esm2022/lib/components/form-field/autocomplete/services/index.js.map +1 -0
  326. package/esm2022/lib/components/form-field/checkbox/checkbox.js +59 -0
  327. package/esm2022/lib/components/form-field/checkbox/checkbox.js.map +1 -0
  328. package/esm2022/lib/components/form-field/checkbox/checkbox.variants.js +39 -0
  329. package/esm2022/lib/components/form-field/checkbox/checkbox.variants.js.map +1 -0
  330. package/esm2022/lib/components/form-field/checkbox/demo/checkbox.js +37 -0
  331. package/esm2022/lib/components/form-field/checkbox/demo/checkbox.js.map +1 -0
  332. package/esm2022/lib/components/form-field/checkbox/demo/default.js +27 -0
  333. package/esm2022/lib/components/form-field/checkbox/demo/default.js.map +1 -0
  334. package/esm2022/lib/components/form-field/checkbox/demo/destructive.js +27 -0
  335. package/esm2022/lib/components/form-field/checkbox/demo/destructive.js.map +1 -0
  336. package/esm2022/lib/components/form-field/checkbox/demo/disabled.js +28 -0
  337. package/esm2022/lib/components/form-field/checkbox/demo/disabled.js.map +1 -0
  338. package/esm2022/lib/components/form-field/checkbox/demo/shape.js +25 -0
  339. package/esm2022/lib/components/form-field/checkbox/demo/shape.js.map +1 -0
  340. package/esm2022/lib/components/form-field/checkbox/demo/size.js +25 -0
  341. package/esm2022/lib/components/form-field/checkbox/demo/size.js.map +1 -0
  342. package/esm2022/lib/components/form-field/checkbox/demo/validation.js +75 -0
  343. package/esm2022/lib/components/form-field/checkbox/demo/validation.js.map +1 -0
  344. package/esm2022/lib/components/form-field/checkbox/index.js +3 -0
  345. package/esm2022/lib/components/form-field/checkbox/index.js.map +1 -0
  346. package/esm2022/lib/components/form-field/datetime/datetime.js +59 -0
  347. package/esm2022/lib/components/form-field/datetime/datetime.js.map +1 -0
  348. package/esm2022/lib/components/form-field/datetime/datetime.variants.js +30 -0
  349. package/esm2022/lib/components/form-field/datetime/datetime.variants.js.map +1 -0
  350. package/esm2022/lib/components/form-field/datetime/demo/datetime.js +21 -0
  351. package/esm2022/lib/components/form-field/datetime/demo/datetime.js.map +1 -0
  352. package/esm2022/lib/components/form-field/datetime/demo/default.js +37 -0
  353. package/esm2022/lib/components/form-field/datetime/demo/default.js.map +1 -0
  354. package/esm2022/lib/components/form-field/datetime/demo/disabled.js +25 -0
  355. package/esm2022/lib/components/form-field/datetime/demo/disabled.js.map +1 -0
  356. package/esm2022/lib/components/form-field/datetime/demo/validation.js +69 -0
  357. package/esm2022/lib/components/form-field/datetime/demo/validation.js.map +1 -0
  358. package/esm2022/lib/components/form-field/datetime/index.js +3 -0
  359. package/esm2022/lib/components/form-field/datetime/index.js.map +1 -0
  360. package/esm2022/lib/components/form-field/index.js +10 -0
  361. package/esm2022/lib/components/form-field/index.js.map +1 -0
  362. package/esm2022/lib/components/form-field/input/currency-mask.service.js +40 -0
  363. package/esm2022/lib/components/form-field/input/currency-mask.service.js.map +1 -0
  364. package/esm2022/lib/components/form-field/input/demo/default.js +26 -0
  365. package/esm2022/lib/components/form-field/input/demo/default.js.map +1 -0
  366. package/esm2022/lib/components/form-field/input/demo/disabled.js +28 -0
  367. package/esm2022/lib/components/form-field/input/demo/disabled.js.map +1 -0
  368. package/esm2022/lib/components/form-field/input/demo/icon.js +29 -0
  369. package/esm2022/lib/components/form-field/input/demo/icon.js.map +1 -0
  370. package/esm2022/lib/components/form-field/input/demo/input.js +47 -0
  371. package/esm2022/lib/components/form-field/input/demo/input.js.map +1 -0
  372. package/esm2022/lib/components/form-field/input/demo/mask.js +48 -0
  373. package/esm2022/lib/components/form-field/input/demo/mask.js.map +1 -0
  374. package/esm2022/lib/components/form-field/input/demo/normalize.js +69 -0
  375. package/esm2022/lib/components/form-field/input/demo/normalize.js.map +1 -0
  376. package/esm2022/lib/components/form-field/input/demo/password.js +29 -0
  377. package/esm2022/lib/components/form-field/input/demo/password.js.map +1 -0
  378. package/esm2022/lib/components/form-field/input/demo/validation.js +113 -0
  379. package/esm2022/lib/components/form-field/input/demo/validation.js.map +1 -0
  380. package/esm2022/lib/components/form-field/input/demo/variant.js +34 -0
  381. package/esm2022/lib/components/form-field/input/demo/variant.js.map +1 -0
  382. package/esm2022/lib/components/form-field/input/index.js +4 -0
  383. package/esm2022/lib/components/form-field/input/index.js.map +1 -0
  384. package/esm2022/lib/components/form-field/input/input.js +102 -0
  385. package/esm2022/lib/components/form-field/input/input.js.map +1 -0
  386. package/esm2022/lib/components/form-field/input/input.variants.js +38 -0
  387. package/esm2022/lib/components/form-field/input/input.variants.js.map +1 -0
  388. package/esm2022/lib/components/form-field/input/interfaces/feedback.interface.js +26 -0
  389. package/esm2022/lib/components/form-field/input/interfaces/feedback.interface.js.map +1 -0
  390. package/esm2022/lib/components/form-field/input/interfaces/index.js +4 -0
  391. package/esm2022/lib/components/form-field/input/interfaces/index.js.map +1 -0
  392. package/esm2022/lib/components/form-field/input/interfaces/mask-config.interface.js +1 -0
  393. package/esm2022/lib/components/form-field/input/interfaces/mask-config.interface.js.map +1 -0
  394. package/esm2022/lib/components/form-field/input/interfaces/password-strength.js +39 -0
  395. package/esm2022/lib/components/form-field/input/interfaces/password-strength.js.map +1 -0
  396. package/esm2022/lib/components/form-field/radio/demo/default.js +32 -0
  397. package/esm2022/lib/components/form-field/radio/demo/default.js.map +1 -0
  398. package/esm2022/lib/components/form-field/radio/demo/disabled.js +32 -0
  399. package/esm2022/lib/components/form-field/radio/demo/disabled.js.map +1 -0
  400. package/esm2022/lib/components/form-field/radio/demo/radio.js +26 -0
  401. package/esm2022/lib/components/form-field/radio/demo/radio.js.map +1 -0
  402. package/esm2022/lib/components/form-field/radio/demo/size.js +30 -0
  403. package/esm2022/lib/components/form-field/radio/demo/size.js.map +1 -0
  404. package/esm2022/lib/components/form-field/radio/demo/validation.js +90 -0
  405. package/esm2022/lib/components/form-field/radio/demo/validation.js.map +1 -0
  406. package/esm2022/lib/components/form-field/radio/index.js +5 -0
  407. package/esm2022/lib/components/form-field/radio/index.js.map +1 -0
  408. package/esm2022/lib/components/form-field/radio/radio-group.js +52 -0
  409. package/esm2022/lib/components/form-field/radio/radio-group.js.map +1 -0
  410. package/esm2022/lib/components/form-field/radio/radio.imports.js +4 -0
  411. package/esm2022/lib/components/form-field/radio/radio.imports.js.map +1 -0
  412. package/esm2022/lib/components/form-field/radio/radio.js +83 -0
  413. package/esm2022/lib/components/form-field/radio/radio.js.map +1 -0
  414. package/esm2022/lib/components/form-field/radio/radio.variants.js +30 -0
  415. package/esm2022/lib/components/form-field/radio/radio.variants.js.map +1 -0
  416. package/esm2022/lib/components/form-field/segmented/demo/default.js +39 -0
  417. package/esm2022/lib/components/form-field/segmented/demo/default.js.map +1 -0
  418. package/esm2022/lib/components/form-field/segmented/demo/disabled.js +49 -0
  419. package/esm2022/lib/components/form-field/segmented/demo/disabled.js.map +1 -0
  420. package/esm2022/lib/components/form-field/segmented/demo/segmented.js +21 -0
  421. package/esm2022/lib/components/form-field/segmented/demo/segmented.js.map +1 -0
  422. package/esm2022/lib/components/form-field/segmented/demo/size.js +55 -0
  423. package/esm2022/lib/components/form-field/segmented/demo/size.js.map +1 -0
  424. package/esm2022/lib/components/form-field/segmented/index.js +4 -0
  425. package/esm2022/lib/components/form-field/segmented/index.js.map +1 -0
  426. package/esm2022/lib/components/form-field/segmented/segmented.interface.js +1 -0
  427. package/esm2022/lib/components/form-field/segmented/segmented.interface.js.map +1 -0
  428. package/esm2022/lib/components/form-field/segmented/segmented.js +56 -0
  429. package/esm2022/lib/components/form-field/segmented/segmented.js.map +1 -0
  430. package/esm2022/lib/components/form-field/segmented/segmented.variants.js +16 -0
  431. package/esm2022/lib/components/form-field/segmented/segmented.variants.js.map +1 -0
  432. package/esm2022/lib/components/form-field/select/demo/default.js +47 -0
  433. package/esm2022/lib/components/form-field/select/demo/default.js.map +1 -0
  434. package/esm2022/lib/components/form-field/select/demo/multiple.js +57 -0
  435. package/esm2022/lib/components/form-field/select/demo/multiple.js.map +1 -0
  436. package/esm2022/lib/components/form-field/select/demo/select.js +17 -0
  437. package/esm2022/lib/components/form-field/select/demo/select.js.map +1 -0
  438. package/esm2022/lib/components/form-field/select/index.js +5 -0
  439. package/esm2022/lib/components/form-field/select/index.js.map +1 -0
  440. package/esm2022/lib/components/form-field/select/select-item.js +78 -0
  441. package/esm2022/lib/components/form-field/select/select-item.js.map +1 -0
  442. package/esm2022/lib/components/form-field/select/select.facade.js +70 -0
  443. package/esm2022/lib/components/form-field/select/select.facade.js.map +1 -0
  444. package/esm2022/lib/components/form-field/select/select.imports.js +4 -0
  445. package/esm2022/lib/components/form-field/select/select.imports.js.map +1 -0
  446. package/esm2022/lib/components/form-field/select/select.js +315 -0
  447. package/esm2022/lib/components/form-field/select/select.js.map +1 -0
  448. package/esm2022/lib/components/form-field/select/select.variants.js +57 -0
  449. package/esm2022/lib/components/form-field/select/select.variants.js.map +1 -0
  450. package/esm2022/lib/components/form-field/select/services/index.js +6 -0
  451. package/esm2022/lib/components/form-field/select/services/index.js.map +1 -0
  452. package/esm2022/lib/components/form-field/select/services/select-dom.service.js +43 -0
  453. package/esm2022/lib/components/form-field/select/services/select-dom.service.js.map +1 -0
  454. package/esm2022/lib/components/form-field/select/services/select-keyword.service.js +54 -0
  455. package/esm2022/lib/components/form-field/select/services/select-keyword.service.js.map +1 -0
  456. package/esm2022/lib/components/form-field/select/services/select-labels.service.js +43 -0
  457. package/esm2022/lib/components/form-field/select/services/select-labels.service.js.map +1 -0
  458. package/esm2022/lib/components/form-field/select/services/select-overlay.service.js +89 -0
  459. package/esm2022/lib/components/form-field/select/services/select-overlay.service.js.map +1 -0
  460. package/esm2022/lib/components/form-field/select/services/select.store.js +30 -0
  461. package/esm2022/lib/components/form-field/select/services/select.store.js.map +1 -0
  462. package/esm2022/lib/components/form-field/switch/demo/default.js +27 -0
  463. package/esm2022/lib/components/form-field/switch/demo/default.js.map +1 -0
  464. package/esm2022/lib/components/form-field/switch/demo/disabled.js +25 -0
  465. package/esm2022/lib/components/form-field/switch/demo/disabled.js.map +1 -0
  466. package/esm2022/lib/components/form-field/switch/demo/size.js +27 -0
  467. package/esm2022/lib/components/form-field/switch/demo/size.js.map +1 -0
  468. package/esm2022/lib/components/form-field/switch/demo/switch.js +21 -0
  469. package/esm2022/lib/components/form-field/switch/demo/switch.js.map +1 -0
  470. package/esm2022/lib/components/form-field/switch/index.js +3 -0
  471. package/esm2022/lib/components/form-field/switch/index.js.map +1 -0
  472. package/esm2022/lib/components/form-field/switch/switch.js +34 -0
  473. package/esm2022/lib/components/form-field/switch/switch.js.map +1 -0
  474. package/esm2022/lib/components/form-field/switch/switch.variants.js +44 -0
  475. package/esm2022/lib/components/form-field/switch/switch.variants.js.map +1 -0
  476. package/esm2022/lib/components/form-field/textarea/demo/default.js +26 -0
  477. package/esm2022/lib/components/form-field/textarea/demo/default.js.map +1 -0
  478. package/esm2022/lib/components/form-field/textarea/demo/disabled.js +28 -0
  479. package/esm2022/lib/components/form-field/textarea/demo/disabled.js.map +1 -0
  480. package/esm2022/lib/components/form-field/textarea/demo/resize.js +34 -0
  481. package/esm2022/lib/components/form-field/textarea/demo/resize.js.map +1 -0
  482. package/esm2022/lib/components/form-field/textarea/demo/textarea.js +32 -0
  483. package/esm2022/lib/components/form-field/textarea/demo/textarea.js.map +1 -0
  484. package/esm2022/lib/components/form-field/textarea/demo/validation.js +53 -0
  485. package/esm2022/lib/components/form-field/textarea/demo/validation.js.map +1 -0
  486. package/esm2022/lib/components/form-field/textarea/demo/variant.js +34 -0
  487. package/esm2022/lib/components/form-field/textarea/demo/variant.js.map +1 -0
  488. package/esm2022/lib/components/form-field/textarea/index.js +3 -0
  489. package/esm2022/lib/components/form-field/textarea/index.js.map +1 -0
  490. package/esm2022/lib/components/form-field/textarea/textarea.js +59 -0
  491. package/esm2022/lib/components/form-field/textarea/textarea.js.map +1 -0
  492. package/esm2022/lib/components/form-field/textarea/textarea.variants.js +45 -0
  493. package/esm2022/lib/components/form-field/textarea/textarea.variants.js.map +1 -0
  494. package/esm2022/lib/components/icon/demo/icon.js +22 -0
  495. package/esm2022/lib/components/icon/demo/icon.js.map +1 -0
  496. package/esm2022/lib/components/icon/demo/searchable.js +188 -0
  497. package/esm2022/lib/components/icon/demo/searchable.js.map +1 -0
  498. package/esm2022/lib/components/icon/demo/size.js +31 -0
  499. package/esm2022/lib/components/icon/demo/size.js.map +1 -0
  500. package/esm2022/lib/components/icon/demo/type.js +27 -0
  501. package/esm2022/lib/components/icon/demo/type.js.map +1 -0
  502. package/esm2022/lib/components/icon/icon-categories.js +745 -0
  503. package/esm2022/lib/components/icon/icon-categories.js.map +1 -0
  504. package/esm2022/lib/components/icon/icon.component.js +39 -0
  505. package/esm2022/lib/components/icon/icon.component.js.map +1 -0
  506. package/esm2022/lib/components/icon/icon.variants.js +21 -0
  507. package/esm2022/lib/components/icon/icon.variants.js.map +1 -0
  508. package/esm2022/lib/components/icon/icons.js +1310 -0
  509. package/esm2022/lib/components/icon/icons.js.map +1 -0
  510. package/esm2022/lib/components/icon/index.js +4 -0
  511. package/esm2022/lib/components/icon/index.js.map +1 -0
  512. package/esm2022/lib/components/index.js +31 -0
  513. package/esm2022/lib/components/index.js.map +1 -0
  514. package/esm2022/lib/components/loader/demo/loader.js +17 -0
  515. package/esm2022/lib/components/loader/demo/loader.js.map +1 -0
  516. package/esm2022/lib/components/loader/demo/size.js +45 -0
  517. package/esm2022/lib/components/loader/demo/size.js.map +1 -0
  518. package/esm2022/lib/components/loader/demo/type.js +69 -0
  519. package/esm2022/lib/components/loader/demo/type.js.map +1 -0
  520. package/esm2022/lib/components/loader/index.js +4 -0
  521. package/esm2022/lib/components/loader/index.js.map +1 -0
  522. package/esm2022/lib/components/loader/loader-progess.js +82 -0
  523. package/esm2022/lib/components/loader/loader-progess.js.map +1 -0
  524. package/esm2022/lib/components/loader/loader.js +30 -0
  525. package/esm2022/lib/components/loader/loader.js.map +1 -0
  526. package/esm2022/lib/components/loader/loader.service.js +24 -0
  527. package/esm2022/lib/components/loader/loader.service.js.map +1 -0
  528. package/esm2022/lib/components/loader/loader.variants.js +25 -0
  529. package/esm2022/lib/components/loader/loader.variants.js.map +1 -0
  530. package/esm2022/lib/components/markdown/demo/editor.js +35 -0
  531. package/esm2022/lib/components/markdown/demo/editor.js.map +1 -0
  532. package/esm2022/lib/components/markdown/demo/markdown.js +17 -0
  533. package/esm2022/lib/components/markdown/demo/markdown.js.map +1 -0
  534. package/esm2022/lib/components/markdown/demo/viewer.js +35 -0
  535. package/esm2022/lib/components/markdown/demo/viewer.js.map +1 -0
  536. package/esm2022/lib/components/markdown/icon.helper.js +245 -0
  537. package/esm2022/lib/components/markdown/icon.helper.js.map +1 -0
  538. package/esm2022/lib/components/markdown/index.js +3 -0
  539. package/esm2022/lib/components/markdown/index.js.map +1 -0
  540. package/esm2022/lib/components/markdown/language-icons.js +11 -0
  541. package/esm2022/lib/components/markdown/language-icons.js.map +1 -0
  542. package/esm2022/lib/components/markdown/markdown.js +210 -0
  543. package/esm2022/lib/components/markdown/markdown.js.map +1 -0
  544. package/esm2022/lib/components/markdown/markdown.service.js +121 -0
  545. package/esm2022/lib/components/markdown/markdown.service.js.map +1 -0
  546. package/esm2022/lib/components/pagination/demo/custom.js +93 -0
  547. package/esm2022/lib/components/pagination/demo/custom.js.map +1 -0
  548. package/esm2022/lib/components/pagination/demo/default.js +18 -0
  549. package/esm2022/lib/components/pagination/demo/default.js.map +1 -0
  550. package/esm2022/lib/components/pagination/demo/info.js +47 -0
  551. package/esm2022/lib/components/pagination/demo/info.js.map +1 -0
  552. package/esm2022/lib/components/pagination/demo/intl.js +49 -0
  553. package/esm2022/lib/components/pagination/demo/intl.js.map +1 -0
  554. package/esm2022/lib/components/pagination/demo/pagination.js +27 -0
  555. package/esm2022/lib/components/pagination/demo/pagination.js.map +1 -0
  556. package/esm2022/lib/components/pagination/index.js +5 -0
  557. package/esm2022/lib/components/pagination/index.js.map +1 -0
  558. package/esm2022/lib/components/pagination/pagination-button.js +35 -0
  559. package/esm2022/lib/components/pagination/pagination-button.js.map +1 -0
  560. package/esm2022/lib/components/pagination/pagination-content.js +25 -0
  561. package/esm2022/lib/components/pagination/pagination-content.js.map +1 -0
  562. package/esm2022/lib/components/pagination/pagination-ellipsis.js +27 -0
  563. package/esm2022/lib/components/pagination/pagination-ellipsis.js.map +1 -0
  564. package/esm2022/lib/components/pagination/pagination-intl.js +21 -0
  565. package/esm2022/lib/components/pagination/pagination-intl.js.map +1 -0
  566. package/esm2022/lib/components/pagination/pagination-item.js +20 -0
  567. package/esm2022/lib/components/pagination/pagination-item.js.map +1 -0
  568. package/esm2022/lib/components/pagination/pagination-next.js +40 -0
  569. package/esm2022/lib/components/pagination/pagination-next.js.map +1 -0
  570. package/esm2022/lib/components/pagination/pagination-prev.js +40 -0
  571. package/esm2022/lib/components/pagination/pagination-prev.js.map +1 -0
  572. package/esm2022/lib/components/pagination/pagination.imports.js +9 -0
  573. package/esm2022/lib/components/pagination/pagination.imports.js.map +1 -0
  574. package/esm2022/lib/components/pagination/pagination.js +210 -0
  575. package/esm2022/lib/components/pagination/pagination.js.map +1 -0
  576. package/esm2022/lib/components/pagination/pagination.variants.js +7 -0
  577. package/esm2022/lib/components/pagination/pagination.variants.js.map +1 -0
  578. package/esm2022/lib/components/progress-bar/demo/indeterminate.js +25 -0
  579. package/esm2022/lib/components/progress-bar/demo/indeterminate.js.map +1 -0
  580. package/esm2022/lib/components/progress-bar/demo/progress-bar.js +15 -0
  581. package/esm2022/lib/components/progress-bar/demo/progress-bar.js.map +1 -0
  582. package/esm2022/lib/components/progress-bar/demo/shape.js +28 -0
  583. package/esm2022/lib/components/progress-bar/demo/shape.js.map +1 -0
  584. package/esm2022/lib/components/progress-bar/demo/size.js +28 -0
  585. package/esm2022/lib/components/progress-bar/demo/size.js.map +1 -0
  586. package/esm2022/lib/components/progress-bar/demo/variant.js +26 -0
  587. package/esm2022/lib/components/progress-bar/demo/variant.js.map +1 -0
  588. package/esm2022/lib/components/progress-bar/index.js +4 -0
  589. package/esm2022/lib/components/progress-bar/index.js.map +1 -0
  590. package/esm2022/lib/components/progress-bar/progress-bar.js +133 -0
  591. package/esm2022/lib/components/progress-bar/progress-bar.js.map +1 -0
  592. package/esm2022/lib/components/progress-bar/progress-bar.variants.js +42 -0
  593. package/esm2022/lib/components/progress-bar/progress-bar.variants.js.map +1 -0
  594. package/esm2022/lib/components/separator/demo/orientation.js +45 -0
  595. package/esm2022/lib/components/separator/demo/orientation.js.map +1 -0
  596. package/esm2022/lib/components/separator/demo/separator.js +12 -0
  597. package/esm2022/lib/components/separator/demo/separator.js.map +1 -0
  598. package/esm2022/lib/components/separator/index.js +3 -0
  599. package/esm2022/lib/components/separator/index.js.map +1 -0
  600. package/esm2022/lib/components/separator/separator.js +25 -0
  601. package/esm2022/lib/components/separator/separator.js.map +1 -0
  602. package/esm2022/lib/components/separator/separator.variants.js +13 -0
  603. package/esm2022/lib/components/separator/separator.variants.js.map +1 -0
  604. package/esm2022/lib/components/skeleton/demo/card.js +47 -0
  605. package/esm2022/lib/components/skeleton/demo/card.js.map +1 -0
  606. package/esm2022/lib/components/skeleton/demo/chart.js +42 -0
  607. package/esm2022/lib/components/skeleton/demo/chart.js.map +1 -0
  608. package/esm2022/lib/components/skeleton/demo/default.js +31 -0
  609. package/esm2022/lib/components/skeleton/demo/default.js.map +1 -0
  610. package/esm2022/lib/components/skeleton/demo/skeleton.js +12 -0
  611. package/esm2022/lib/components/skeleton/demo/skeleton.js.map +1 -0
  612. package/esm2022/lib/components/skeleton/index.js +3 -0
  613. package/esm2022/lib/components/skeleton/index.js.map +1 -0
  614. package/esm2022/lib/components/skeleton/skeleton.js +32 -0
  615. package/esm2022/lib/components/skeleton/skeleton.js.map +1 -0
  616. package/esm2022/lib/components/skeleton/skeleton.variants.js +6 -0
  617. package/esm2022/lib/components/skeleton/skeleton.variants.js.map +1 -0
  618. package/esm2022/lib/components/stepper/demo/default.js +86 -0
  619. package/esm2022/lib/components/stepper/demo/default.js.map +1 -0
  620. package/esm2022/lib/components/stepper/demo/orientation.js +86 -0
  621. package/esm2022/lib/components/stepper/demo/orientation.js.map +1 -0
  622. package/esm2022/lib/components/stepper/demo/stepper.js +21 -0
  623. package/esm2022/lib/components/stepper/demo/stepper.js.map +1 -0
  624. package/esm2022/lib/components/stepper/demo/validation.js +107 -0
  625. package/esm2022/lib/components/stepper/demo/validation.js.map +1 -0
  626. package/esm2022/lib/components/stepper/index.js +3 -0
  627. package/esm2022/lib/components/stepper/index.js.map +1 -0
  628. package/esm2022/lib/components/stepper/stepper.js +93 -0
  629. package/esm2022/lib/components/stepper/stepper.js.map +1 -0
  630. package/esm2022/lib/components/stepper/stepper.service.js +67 -0
  631. package/esm2022/lib/components/stepper/stepper.service.js.map +1 -0
  632. package/esm2022/lib/components/stepper/stepper.variants.js +64 -0
  633. package/esm2022/lib/components/stepper/stepper.variants.js.map +1 -0
  634. package/esm2022/lib/components/table/cell-template.directive.js +18 -0
  635. package/esm2022/lib/components/table/cell-template.directive.js.map +1 -0
  636. package/esm2022/lib/components/table/demo/border.js +30 -0
  637. package/esm2022/lib/components/table/demo/border.js.map +1 -0
  638. package/esm2022/lib/components/table/demo/default.js +48 -0
  639. package/esm2022/lib/components/table/demo/default.js.map +1 -0
  640. package/esm2022/lib/components/table/demo/pagination.js +69 -0
  641. package/esm2022/lib/components/table/demo/pagination.js.map +1 -0
  642. package/esm2022/lib/components/table/demo/selected.js +34 -0
  643. package/esm2022/lib/components/table/demo/selected.js.map +1 -0
  644. package/esm2022/lib/components/table/demo/size.js +55 -0
  645. package/esm2022/lib/components/table/demo/size.js.map +1 -0
  646. package/esm2022/lib/components/table/demo/sort.js +59 -0
  647. package/esm2022/lib/components/table/demo/sort.js.map +1 -0
  648. package/esm2022/lib/components/table/demo/table.js +37 -0
  649. package/esm2022/lib/components/table/demo/table.js.map +1 -0
  650. package/esm2022/lib/components/table/demo/user.js +25 -0
  651. package/esm2022/lib/components/table/demo/user.js.map +1 -0
  652. package/esm2022/lib/components/table/index.js +5 -0
  653. package/esm2022/lib/components/table/index.js.map +1 -0
  654. package/esm2022/lib/components/table/table.config.js +1 -0
  655. package/esm2022/lib/components/table/table.config.js.map +1 -0
  656. package/esm2022/lib/components/table/table.js +121 -0
  657. package/esm2022/lib/components/table/table.js.map +1 -0
  658. package/esm2022/lib/components/table/table.variants.js +86 -0
  659. package/esm2022/lib/components/table/table.variants.js.map +1 -0
  660. package/esm2022/lib/components/tabs/demo/align.js +55 -0
  661. package/esm2022/lib/components/tabs/demo/align.js.map +1 -0
  662. package/esm2022/lib/components/tabs/demo/arrows.js +45 -0
  663. package/esm2022/lib/components/tabs/demo/arrows.js.map +1 -0
  664. package/esm2022/lib/components/tabs/demo/default.js +27 -0
  665. package/esm2022/lib/components/tabs/demo/default.js.map +1 -0
  666. package/esm2022/lib/components/tabs/demo/position.js +65 -0
  667. package/esm2022/lib/components/tabs/demo/position.js.map +1 -0
  668. package/esm2022/lib/components/tabs/demo/tabs.js +15 -0
  669. package/esm2022/lib/components/tabs/demo/tabs.js.map +1 -0
  670. package/esm2022/lib/components/tabs/index.js +3 -0
  671. package/esm2022/lib/components/tabs/index.js.map +1 -0
  672. package/esm2022/lib/components/tabs/tabs.js +195 -0
  673. package/esm2022/lib/components/tabs/tabs.js.map +1 -0
  674. package/esm2022/lib/components/tabs/tabs.variants.js +58 -0
  675. package/esm2022/lib/components/tabs/tabs.variants.js.map +1 -0
  676. package/esm2022/lib/components/toast/demo/default.js +32 -0
  677. package/esm2022/lib/components/toast/demo/default.js.map +1 -0
  678. package/esm2022/lib/components/toast/demo/position.js +63 -0
  679. package/esm2022/lib/components/toast/demo/position.js.map +1 -0
  680. package/esm2022/lib/components/toast/demo/toast.js +22 -0
  681. package/esm2022/lib/components/toast/demo/toast.js.map +1 -0
  682. package/esm2022/lib/components/toast/demo/type.js +48 -0
  683. package/esm2022/lib/components/toast/demo/type.js.map +1 -0
  684. package/esm2022/lib/components/toast/index.js +4 -0
  685. package/esm2022/lib/components/toast/index.js.map +1 -0
  686. package/esm2022/lib/components/toast/toast-content.js +15 -0
  687. package/esm2022/lib/components/toast/toast-content.js.map +1 -0
  688. package/esm2022/lib/components/toast/toast.config.js +1 -0
  689. package/esm2022/lib/components/toast/toast.config.js.map +1 -0
  690. package/esm2022/lib/components/toast/toast.js +56 -0
  691. package/esm2022/lib/components/toast/toast.js.map +1 -0
  692. package/esm2022/lib/components/toast/toast.pipe.js +52 -0
  693. package/esm2022/lib/components/toast/toast.pipe.js.map +1 -0
  694. package/esm2022/lib/components/toast/toast.service.js +60 -0
  695. package/esm2022/lib/components/toast/toast.service.js.map +1 -0
  696. package/esm2022/lib/components/toast/toast.variants.js +17 -0
  697. package/esm2022/lib/components/toast/toast.variants.js.map +1 -0
  698. package/esm2022/lib/components/tooltip/demo/click.js +26 -0
  699. package/esm2022/lib/components/tooltip/demo/click.js.map +1 -0
  700. package/esm2022/lib/components/tooltip/demo/events.js +37 -0
  701. package/esm2022/lib/components/tooltip/demo/events.js.map +1 -0
  702. package/esm2022/lib/components/tooltip/demo/hover.js +26 -0
  703. package/esm2022/lib/components/tooltip/demo/hover.js.map +1 -0
  704. package/esm2022/lib/components/tooltip/demo/position.js +40 -0
  705. package/esm2022/lib/components/tooltip/demo/position.js.map +1 -0
  706. package/esm2022/lib/components/tooltip/demo/tooltip.js +27 -0
  707. package/esm2022/lib/components/tooltip/demo/tooltip.js.map +1 -0
  708. package/esm2022/lib/components/tooltip/index.js +5 -0
  709. package/esm2022/lib/components/tooltip/index.js.map +1 -0
  710. package/esm2022/lib/components/tooltip/tooltip.config.js +40 -0
  711. package/esm2022/lib/components/tooltip/tooltip.config.js.map +1 -0
  712. package/esm2022/lib/components/tooltip/tooltip.directive.js +163 -0
  713. package/esm2022/lib/components/tooltip/tooltip.directive.js.map +1 -0
  714. package/esm2022/lib/components/tooltip/tooltip.imports.js +20 -0
  715. package/esm2022/lib/components/tooltip/tooltip.imports.js.map +1 -0
  716. package/esm2022/lib/components/tooltip/tooltip.js +32 -0
  717. package/esm2022/lib/components/tooltip/tooltip.js.map +1 -0
  718. package/esm2022/lib/components/tooltip/tooltip.variants.js +13 -0
  719. package/esm2022/lib/components/tooltip/tooltip.variants.js.map +1 -0
  720. package/esm2022/lib/components/tree/demo/default.js +52 -0
  721. package/esm2022/lib/components/tree/demo/default.js.map +1 -0
  722. package/esm2022/lib/components/tree/demo/selection.js +56 -0
  723. package/esm2022/lib/components/tree/demo/selection.js.map +1 -0
  724. package/esm2022/lib/components/tree/demo/tree.js +10 -0
  725. package/esm2022/lib/components/tree/demo/tree.js.map +1 -0
  726. package/esm2022/lib/components/tree/index.js +4 -0
  727. package/esm2022/lib/components/tree/index.js.map +1 -0
  728. package/esm2022/lib/components/tree/tree.interface.js +1 -0
  729. package/esm2022/lib/components/tree/tree.interface.js.map +1 -0
  730. package/esm2022/lib/components/tree/tree.js +138 -0
  731. package/esm2022/lib/components/tree/tree.js.map +1 -0
  732. package/esm2022/lib/components/tree/tree.variants.js +17 -0
  733. package/esm2022/lib/components/tree/tree.variants.js.map +1 -0
  734. package/esm2022/lib/components/upload/demo/default.js +42 -0
  735. package/esm2022/lib/components/upload/demo/default.js.map +1 -0
  736. package/esm2022/lib/components/upload/demo/dropzone.js +42 -0
  737. package/esm2022/lib/components/upload/demo/dropzone.js.map +1 -0
  738. package/esm2022/lib/components/upload/demo/multiple.js +42 -0
  739. package/esm2022/lib/components/upload/demo/multiple.js.map +1 -0
  740. package/esm2022/lib/components/upload/demo/selected.js +53 -0
  741. package/esm2022/lib/components/upload/demo/selected.js.map +1 -0
  742. package/esm2022/lib/components/upload/demo/upload.js +15 -0
  743. package/esm2022/lib/components/upload/demo/upload.js.map +1 -0
  744. package/esm2022/lib/components/upload/index.js +5 -0
  745. package/esm2022/lib/components/upload/index.js.map +1 -0
  746. package/esm2022/lib/components/upload/upload.interface.js +1 -0
  747. package/esm2022/lib/components/upload/upload.interface.js.map +1 -0
  748. package/esm2022/lib/components/upload/upload.js +227 -0
  749. package/esm2022/lib/components/upload/upload.js.map +1 -0
  750. package/esm2022/lib/components/upload/upload.service.js +36 -0
  751. package/esm2022/lib/components/upload/upload.service.js.map +1 -0
  752. package/esm2022/lib/components/upload/upload.variants.js +29 -0
  753. package/esm2022/lib/components/upload/upload.variants.js.map +1 -0
  754. package/esm2022/lib/core/directives/generate-id.directive.js +29 -0
  755. package/esm2022/lib/core/directives/generate-id.directive.js.map +1 -0
  756. package/esm2022/lib/core/directives/index.js +4 -0
  757. package/esm2022/lib/core/directives/index.js.map +1 -0
  758. package/esm2022/lib/core/directives/normalize/index.js +4 -0
  759. package/esm2022/lib/core/directives/normalize/index.js.map +1 -0
  760. package/esm2022/lib/core/directives/normalize/normalize.config.js +7 -0
  761. package/esm2022/lib/core/directives/normalize/normalize.config.js.map +1 -0
  762. package/esm2022/lib/core/directives/normalize/normalize.directive.js +37 -0
  763. package/esm2022/lib/core/directives/normalize/normalize.directive.js.map +1 -0
  764. package/esm2022/lib/core/directives/normalize/strategies/alfa.strategy.js +14 -0
  765. package/esm2022/lib/core/directives/normalize/strategies/alfa.strategy.js.map +1 -0
  766. package/esm2022/lib/core/directives/normalize/strategies/alfanum.strategy.js +14 -0
  767. package/esm2022/lib/core/directives/normalize/strategies/alfanum.strategy.js.map +1 -0
  768. package/esm2022/lib/core/directives/normalize/strategies/index.js +11 -0
  769. package/esm2022/lib/core/directives/normalize/strategies/index.js.map +1 -0
  770. package/esm2022/lib/core/directives/normalize/strategies/normalize.strategy.js +1 -0
  771. package/esm2022/lib/core/directives/normalize/strategies/normalize.strategy.js.map +1 -0
  772. package/esm2022/lib/core/directives/normalize/strategies/numeric.strategy.js +6 -0
  773. package/esm2022/lib/core/directives/normalize/strategies/numeric.strategy.js.map +1 -0
  774. package/esm2022/lib/core/directives/normalize/strategies/uppercase.strategy.js +6 -0
  775. package/esm2022/lib/core/directives/normalize/strategies/uppercase.strategy.js.map +1 -0
  776. package/esm2022/lib/core/directives/string-template-ref.directive.js +69 -0
  777. package/esm2022/lib/core/directives/string-template-ref.directive.js.map +1 -0
  778. package/esm2022/lib/core/helpers/index.js +2 -0
  779. package/esm2022/lib/core/helpers/index.js.map +1 -0
  780. package/esm2022/lib/core/helpers/merge.helper.js +10 -0
  781. package/esm2022/lib/core/helpers/merge.helper.js.map +1 -0
  782. package/esm2022/lib/core/index.js +6 -0
  783. package/esm2022/lib/core/index.js.map +1 -0
  784. package/esm2022/lib/core/interfaces/control-value.interface.js +1 -0
  785. package/esm2022/lib/core/interfaces/control-value.interface.js.map +1 -0
  786. package/esm2022/lib/core/interfaces/index.js +2 -0
  787. package/esm2022/lib/core/interfaces/index.js.map +1 -0
  788. package/esm2022/lib/core/template/index.js +2 -0
  789. package/esm2022/lib/core/template/index.js.map +1 -0
  790. package/esm2022/lib/core/template/print/print.js +25 -0
  791. package/esm2022/lib/core/template/print/print.js.map +1 -0
  792. package/esm2022/lib/core/template/print/print.pipe.js +18 -0
  793. package/esm2022/lib/core/template/print/print.pipe.js.map +1 -0
  794. package/esm2022/lib/core/utils/clipboard.util.js +66 -0
  795. package/esm2022/lib/core/utils/clipboard.util.js.map +1 -0
  796. package/esm2022/lib/core/utils/index.js +2 -0
  797. package/esm2022/lib/core/utils/index.js.map +1 -0
  798. package/esm2022/lib/infra/index.js +2 -0
  799. package/esm2022/lib/infra/index.js.map +1 -0
  800. package/esm2022/lib/infra/stores/index.js +2 -0
  801. package/esm2022/lib/infra/stores/index.js.map +1 -0
  802. package/esm2022/lib/infra/stores/theme.store.js +39 -0
  803. package/esm2022/lib/infra/stores/theme.store.js.map +1 -0
  804. package/index.d.ts +3 -0
  805. package/lib/components/accordion/accordion.d.ts +31 -0
  806. package/lib/components/accordion/accordion.service.d.ts +15 -0
  807. package/lib/components/accordion/accordion.variants.d.ts +10 -0
  808. package/lib/components/accordion/demo/accordion.d.ts +8 -0
  809. package/lib/components/accordion/demo/default.d.ts +5 -0
  810. package/lib/components/accordion/demo/single.d.ts +5 -0
  811. package/lib/components/accordion/index.d.ts +2 -0
  812. package/lib/components/alert/alert.d.ts +13 -0
  813. package/lib/components/alert/alert.variants.d.ts +6 -0
  814. package/lib/components/alert/demo/accent.d.ts +7 -0
  815. package/lib/components/alert/demo/alert.d.ts +9 -0
  816. package/lib/components/alert/demo/destructive.d.ts +7 -0
  817. package/lib/components/alert/demo/icon.d.ts +7 -0
  818. package/lib/components/alert/demo/info.d.ts +7 -0
  819. package/lib/components/alert/demo/primary.d.ts +7 -0
  820. package/lib/components/alert/demo/success.d.ts +7 -0
  821. package/lib/components/alert/demo/warning.d.ts +7 -0
  822. package/lib/components/alert/index.d.ts +2 -0
  823. package/lib/components/alert-dialog/alert-dialog.config.d.ts +27 -0
  824. package/lib/components/alert-dialog/alert-dialog.d.ts +26 -0
  825. package/lib/components/alert-dialog/alert-dialog.ref.d.ts +18 -0
  826. package/lib/components/alert-dialog/alert-dialog.service.d.ts +20 -0
  827. package/lib/components/alert-dialog/alert-dialog.variants.d.ts +3 -0
  828. package/lib/components/alert-dialog/demo/alert-dialog.d.ts +9 -0
  829. package/lib/components/alert-dialog/demo/default.d.ts +7 -0
  830. package/lib/components/alert-dialog/index.d.ts +5 -0
  831. package/lib/components/avatar/avatar-group.d.ts +9 -0
  832. package/lib/components/avatar/avatar.d.ts +23 -0
  833. package/lib/components/avatar/avatar.variants.d.ts +14 -0
  834. package/lib/components/avatar/demo/avatar.d.ts +9 -0
  835. package/lib/components/avatar/demo/default.d.ts +5 -0
  836. package/lib/components/avatar/demo/shape.d.ts +5 -0
  837. package/lib/components/avatar/demo/size.d.ts +5 -0
  838. package/lib/components/avatar/demo/status.d.ts +5 -0
  839. package/lib/components/avatar/index.d.ts +3 -0
  840. package/lib/components/badge/badge.d.ts +15 -0
  841. package/lib/components/badge/badge.variants.d.ts +8 -0
  842. package/lib/components/badge/demo/badge.d.ts +9 -0
  843. package/lib/components/badge/demo/close.d.ts +8 -0
  844. package/lib/components/badge/demo/disabled.d.ts +5 -0
  845. package/lib/components/badge/demo/fill.d.ts +5 -0
  846. package/lib/components/badge/demo/icon.d.ts +5 -0
  847. package/lib/components/badge/demo/shape.d.ts +5 -0
  848. package/lib/components/badge/demo/variant.d.ts +5 -0
  849. package/lib/components/badge/index.d.ts +2 -0
  850. package/lib/components/breadcrumb/breadcrumb-content.d.ts +8 -0
  851. package/lib/components/breadcrumb/breadcrumb-item.d.ts +9 -0
  852. package/lib/components/breadcrumb/breadcrumb-link.d.ts +9 -0
  853. package/lib/components/breadcrumb/breadcrumb-list.d.ts +9 -0
  854. package/lib/components/breadcrumb/breadcrumb-page.d.ts +8 -0
  855. package/lib/components/breadcrumb/breadcrumb-separator.d.ts +10 -0
  856. package/lib/components/breadcrumb/breadcrumb.config.d.ts +6 -0
  857. package/lib/components/breadcrumb/breadcrumb.d.ts +12 -0
  858. package/lib/components/breadcrumb/breadcrumb.directive.d.ts +9 -0
  859. package/lib/components/breadcrumb/breadcrumb.imports.d.ts +7 -0
  860. package/lib/components/breadcrumb/breadcrumb.service.d.ts +17 -0
  861. package/lib/components/breadcrumb/breadcrumb.variants.d.ts +27 -0
  862. package/lib/components/breadcrumb/demo/breadcrumb.d.ts +9 -0
  863. package/lib/components/breadcrumb/demo/content.d.ts +5 -0
  864. package/lib/components/breadcrumb/demo/custom-separator.d.ts +5 -0
  865. package/lib/components/breadcrumb/demo/default.d.ts +5 -0
  866. package/lib/components/breadcrumb/demo/directive.d.ts +5 -0
  867. package/lib/components/breadcrumb/demo/icon.d.ts +5 -0
  868. package/lib/components/breadcrumb/demo/router-link.d.ts +5 -0
  869. package/lib/components/breadcrumb/index.d.ts +4 -0
  870. package/lib/components/button/button.d.ts +17 -0
  871. package/lib/components/button/button.variants.d.ts +11 -0
  872. package/lib/components/button/demo/button.d.ts +9 -0
  873. package/lib/components/button/demo/disabled.d.ts +5 -0
  874. package/lib/components/button/demo/fill.d.ts +5 -0
  875. package/lib/components/button/demo/full.d.ts +5 -0
  876. package/lib/components/button/demo/icon.d.ts +5 -0
  877. package/lib/components/button/demo/loading.d.ts +5 -0
  878. package/lib/components/button/demo/shape.d.ts +5 -0
  879. package/lib/components/button/demo/size.d.ts +5 -0
  880. package/lib/components/button/demo/variant.d.ts +5 -0
  881. package/lib/components/button/index.d.ts +2 -0
  882. package/lib/components/button-toggle/button-toggle.d.ts +36 -0
  883. package/lib/components/button-toggle/button-toggle.variants.d.ts +11 -0
  884. package/lib/components/button-toggle/demo/button-toggle.d.ts +9 -0
  885. package/lib/components/button-toggle/demo/default.d.ts +9 -0
  886. package/lib/components/button-toggle/demo/disabled.d.ts +7 -0
  887. package/lib/components/button-toggle/demo/size.d.ts +7 -0
  888. package/lib/components/button-toggle/index.d.ts +2 -0
  889. package/lib/components/card/card.d.ts +17 -0
  890. package/lib/components/card/card.variants.d.ts +9 -0
  891. package/lib/components/card/demo/card.d.ts +9 -0
  892. package/lib/components/card/demo/default.d.ts +5 -0
  893. package/lib/components/card/demo/disabled.d.ts +5 -0
  894. package/lib/components/card/index.d.ts +2 -0
  895. package/lib/components/carousel/carousel.d.ts +41 -0
  896. package/lib/components/carousel/carousel.service.d.ts +29 -0
  897. package/lib/components/carousel/carousel.variants.d.ts +18 -0
  898. package/lib/components/carousel/demo/autoplay.d.ts +11 -0
  899. package/lib/components/carousel/demo/carousel.d.ts +8 -0
  900. package/lib/components/carousel/demo/default.d.ts +9 -0
  901. package/lib/components/carousel/demo/loop.d.ts +9 -0
  902. package/lib/components/carousel/index.d.ts +2 -0
  903. package/lib/components/command/command-empty.d.ts +12 -0
  904. package/lib/components/command/command-input.d.ts +28 -0
  905. package/lib/components/command/command-item-group.d.ts +20 -0
  906. package/lib/components/command/command-item.d.ts +29 -0
  907. package/lib/components/command/command-list.d.ts +8 -0
  908. package/lib/components/command/command-separator.d.ts +10 -0
  909. package/lib/components/command/command.config.d.ts +27 -0
  910. package/lib/components/command/command.d.ts +40 -0
  911. package/lib/components/command/command.imports.d.ts +8 -0
  912. package/lib/components/command/command.variants.d.ts +15 -0
  913. package/lib/components/command/demo/command.d.ts +9 -0
  914. package/lib/components/command/demo/default.d.ts +12 -0
  915. package/lib/components/command/index.d.ts +9 -0
  916. package/lib/components/date-picker/date-picker-overlay.service.d.ts +15 -0
  917. package/lib/components/date-picker/date-picker.d.ts +37 -0
  918. package/lib/components/date-picker/date-picker.util.d.ts +18 -0
  919. package/lib/components/date-picker/date-picker.variants.d.ts +7 -0
  920. package/lib/components/date-picker/demo/date-picker.d.ts +8 -0
  921. package/lib/components/date-picker/demo/default.d.ts +6 -0
  922. package/lib/components/date-picker/demo/disabled.d.ts +5 -0
  923. package/lib/components/date-picker/demo/range.d.ts +6 -0
  924. package/lib/components/date-picker/index.d.ts +2 -0
  925. package/lib/components/dialog/demo/default.d.ts +32 -0
  926. package/lib/components/dialog/demo/dialog.d.ts +9 -0
  927. package/lib/components/dialog/dialog-ref.d.ts +16 -0
  928. package/lib/components/dialog/dialog.config.d.ts +23 -0
  929. package/lib/components/dialog/dialog.d.ts +22 -0
  930. package/lib/components/dialog/dialog.module.d.ts +10 -0
  931. package/lib/components/dialog/dialog.service.d.ts +16 -0
  932. package/lib/components/dialog/dialog.variants.d.ts +3 -0
  933. package/lib/components/dialog/index.d.ts +4 -0
  934. package/lib/components/empty/demo/advanced.d.ts +5 -0
  935. package/lib/components/empty/demo/custom-image.d.ts +5 -0
  936. package/lib/components/empty/demo/default.d.ts +5 -0
  937. package/lib/components/empty/demo/empty.d.ts +9 -0
  938. package/lib/components/empty/empty.d.ts +19 -0
  939. package/lib/components/empty/empty.variants.d.ts +7 -0
  940. package/lib/components/empty/index.d.ts +2 -0
  941. package/lib/components/float-button/demo/float-button.d.ts +9 -0
  942. package/lib/components/float-button/demo/float-group.d.ts +5 -0
  943. package/lib/components/float-button/demo/float-top.d.ts +5 -0
  944. package/lib/components/float-button/demo/position.d.ts +5 -0
  945. package/lib/components/float-button/demo/shape.d.ts +5 -0
  946. package/lib/components/float-button/demo/size.d.ts +5 -0
  947. package/lib/components/float-button/demo/variant.d.ts +5 -0
  948. package/lib/components/float-button/float-button-group.d.ts +26 -0
  949. package/lib/components/float-button/float-button-top.d.ts +22 -0
  950. package/lib/components/float-button/float-button.d.ts +17 -0
  951. package/lib/components/float-button/float-button.variants.d.ts +7 -0
  952. package/lib/components/float-button/index.d.ts +4 -0
  953. package/lib/components/form-field/autocomplete/autocomplete-config.d.ts +19 -0
  954. package/lib/components/form-field/autocomplete/autocomplete.d.ts +54 -0
  955. package/lib/components/form-field/autocomplete/autocomplete.variants.d.ts +12 -0
  956. package/lib/components/form-field/autocomplete/demo/autocomplete.d.ts +8 -0
  957. package/lib/components/form-field/autocomplete/demo/default.d.ts +19 -0
  958. package/lib/components/form-field/autocomplete/demo/events.d.ts +21 -0
  959. package/lib/components/form-field/autocomplete/demo/validation.d.ts +21 -0
  960. package/lib/components/form-field/autocomplete/index.d.ts +3 -0
  961. package/lib/components/form-field/autocomplete/services/autocomplete-overlay.service.d.ts +15 -0
  962. package/lib/components/form-field/autocomplete/services/index.d.ts +1 -0
  963. package/lib/components/form-field/checkbox/checkbox.d.ts +32 -0
  964. package/lib/components/form-field/checkbox/checkbox.variants.d.ts +12 -0
  965. package/lib/components/form-field/checkbox/demo/checkbox.d.ts +9 -0
  966. package/lib/components/form-field/checkbox/demo/default.d.ts +6 -0
  967. package/lib/components/form-field/checkbox/demo/destructive.d.ts +6 -0
  968. package/lib/components/form-field/checkbox/demo/disabled.d.ts +7 -0
  969. package/lib/components/form-field/checkbox/demo/shape.d.ts +5 -0
  970. package/lib/components/form-field/checkbox/demo/size.d.ts +5 -0
  971. package/lib/components/form-field/checkbox/demo/validation.d.ts +14 -0
  972. package/lib/components/form-field/checkbox/index.d.ts +2 -0
  973. package/lib/components/form-field/datetime/datetime.d.ts +32 -0
  974. package/lib/components/form-field/datetime/datetime.variants.d.ts +10 -0
  975. package/lib/components/form-field/datetime/demo/datetime.d.ts +8 -0
  976. package/lib/components/form-field/datetime/demo/default.d.ts +17 -0
  977. package/lib/components/form-field/datetime/demo/disabled.d.ts +5 -0
  978. package/lib/components/form-field/datetime/demo/validation.d.ts +13 -0
  979. package/lib/components/form-field/datetime/index.d.ts +2 -0
  980. package/lib/components/form-field/index.d.ts +9 -0
  981. package/lib/components/form-field/input/currency-mask.service.d.ts +8 -0
  982. package/lib/components/form-field/input/demo/default.d.ts +11 -0
  983. package/lib/components/form-field/input/demo/disabled.d.ts +11 -0
  984. package/lib/components/form-field/input/demo/icon.d.ts +12 -0
  985. package/lib/components/form-field/input/demo/input.d.ts +29 -0
  986. package/lib/components/form-field/input/demo/mask.d.ts +19 -0
  987. package/lib/components/form-field/input/demo/normalize.d.ts +15 -0
  988. package/lib/components/form-field/input/demo/password.d.ts +11 -0
  989. package/lib/components/form-field/input/demo/validation.d.ts +18 -0
  990. package/lib/components/form-field/input/demo/variant.d.ts +15 -0
  991. package/lib/components/form-field/input/index.d.ts +3 -0
  992. package/lib/components/form-field/input/input.d.ts +56 -0
  993. package/lib/components/form-field/input/input.variants.d.ts +13 -0
  994. package/lib/components/form-field/input/interfaces/feedback.interface.d.ts +21 -0
  995. package/lib/components/form-field/input/interfaces/index.d.ts +3 -0
  996. package/lib/components/form-field/input/interfaces/mask-config.interface.d.ts +10 -0
  997. package/lib/components/form-field/input/interfaces/password-strength.d.ts +16 -0
  998. package/lib/components/form-field/radio/demo/default.d.ts +11 -0
  999. package/lib/components/form-field/radio/demo/disabled.d.ts +11 -0
  1000. package/lib/components/form-field/radio/demo/radio.d.ts +12 -0
  1001. package/lib/components/form-field/radio/demo/size.d.ts +11 -0
  1002. package/lib/components/form-field/radio/demo/validation.d.ts +14 -0
  1003. package/lib/components/form-field/radio/index.d.ts +4 -0
  1004. package/lib/components/form-field/radio/radio-group.d.ts +21 -0
  1005. package/lib/components/form-field/radio/radio.d.ts +20 -0
  1006. package/lib/components/form-field/radio/radio.imports.d.ts +3 -0
  1007. package/lib/components/form-field/radio/radio.variants.d.ts +9 -0
  1008. package/lib/components/form-field/segmented/demo/default.d.ts +13 -0
  1009. package/lib/components/form-field/segmented/demo/disabled.d.ts +8 -0
  1010. package/lib/components/form-field/segmented/demo/segmented.d.ts +8 -0
  1011. package/lib/components/form-field/segmented/demo/size.d.ts +7 -0
  1012. package/lib/components/form-field/segmented/index.d.ts +3 -0
  1013. package/lib/components/form-field/segmented/segmented.d.ts +27 -0
  1014. package/lib/components/form-field/segmented/segmented.interface.d.ts +7 -0
  1015. package/lib/components/form-field/segmented/segmented.variants.d.ts +6 -0
  1016. package/lib/components/form-field/select/demo/default.d.ts +6 -0
  1017. package/lib/components/form-field/select/demo/multiple.d.ts +6 -0
  1018. package/lib/components/form-field/select/demo/select.d.ts +13 -0
  1019. package/lib/components/form-field/select/index.d.ts +4 -0
  1020. package/lib/components/form-field/select/select-item.d.ts +29 -0
  1021. package/lib/components/form-field/select/select.d.ts +62 -0
  1022. package/lib/components/form-field/select/select.facade.d.ts +25 -0
  1023. package/lib/components/form-field/select/select.imports.d.ts +3 -0
  1024. package/lib/components/form-field/select/select.variants.d.ts +16 -0
  1025. package/lib/components/form-field/select/services/index.d.ts +5 -0
  1026. package/lib/components/form-field/select/services/select-dom.service.d.ts +10 -0
  1027. package/lib/components/form-field/select/services/select-keyword.service.d.ts +17 -0
  1028. package/lib/components/form-field/select/services/select-labels.service.d.ts +17 -0
  1029. package/lib/components/form-field/select/services/select-overlay.service.d.ts +19 -0
  1030. package/lib/components/form-field/select/services/select.store.d.ts +14 -0
  1031. package/lib/components/form-field/switch/demo/default.d.ts +5 -0
  1032. package/lib/components/form-field/switch/demo/disabled.d.ts +5 -0
  1033. package/lib/components/form-field/switch/demo/size.d.ts +5 -0
  1034. package/lib/components/form-field/switch/demo/switch.d.ts +8 -0
  1035. package/lib/components/form-field/switch/index.d.ts +2 -0
  1036. package/lib/components/form-field/switch/switch.d.ts +21 -0
  1037. package/lib/components/form-field/switch/switch.variants.d.ts +12 -0
  1038. package/lib/components/form-field/textarea/demo/default.d.ts +11 -0
  1039. package/lib/components/form-field/textarea/demo/disabled.d.ts +11 -0
  1040. package/lib/components/form-field/textarea/demo/resize.d.ts +15 -0
  1041. package/lib/components/form-field/textarea/demo/textarea.d.ts +21 -0
  1042. package/lib/components/form-field/textarea/demo/validation.d.ts +13 -0
  1043. package/lib/components/form-field/textarea/demo/variant.d.ts +15 -0
  1044. package/lib/components/form-field/textarea/index.d.ts +2 -0
  1045. package/lib/components/form-field/textarea/textarea.d.ts +37 -0
  1046. package/lib/components/form-field/textarea/textarea.variants.d.ts +14 -0
  1047. package/lib/components/icon/demo/icon.d.ts +9 -0
  1048. package/lib/components/icon/demo/searchable.d.ts +18 -0
  1049. package/lib/components/icon/demo/size.d.ts +5 -0
  1050. package/lib/components/icon/demo/type.d.ts +5 -0
  1051. package/lib/components/icon/icon-categories.d.ts +3 -0
  1052. package/lib/components/icon/icon.component.d.ts +13 -0
  1053. package/lib/components/icon/icon.variants.d.ts +6 -0
  1054. package/lib/components/icon/icons.d.ts +1116 -0
  1055. package/lib/components/icon/index.d.ts +3 -0
  1056. package/lib/components/index.d.ts +30 -0
  1057. package/lib/components/loader/demo/loader.d.ts +9 -0
  1058. package/lib/components/loader/demo/size.d.ts +5 -0
  1059. package/lib/components/loader/demo/type.d.ts +9 -0
  1060. package/lib/components/loader/index.d.ts +3 -0
  1061. package/lib/components/loader/loader-progess.d.ts +13 -0
  1062. package/lib/components/loader/loader.d.ts +19 -0
  1063. package/lib/components/loader/loader.service.d.ts +10 -0
  1064. package/lib/components/loader/loader.variants.d.ts +7 -0
  1065. package/lib/components/markdown/demo/editor.d.ts +8 -0
  1066. package/lib/components/markdown/demo/markdown.d.ts +13 -0
  1067. package/lib/components/markdown/demo/viewer.d.ts +8 -0
  1068. package/lib/components/markdown/icon.helper.d.ts +79 -0
  1069. package/lib/components/markdown/index.d.ts +2 -0
  1070. package/lib/components/markdown/language-icons.d.ts +3 -0
  1071. package/lib/components/markdown/markdown.d.ts +45 -0
  1072. package/lib/components/markdown/markdown.service.d.ts +11 -0
  1073. package/lib/components/pagination/demo/custom.d.ts +11 -0
  1074. package/lib/components/pagination/demo/default.d.ts +6 -0
  1075. package/lib/components/pagination/demo/info.d.ts +9 -0
  1076. package/lib/components/pagination/demo/intl.d.ts +9 -0
  1077. package/lib/components/pagination/demo/pagination.d.ts +21 -0
  1078. package/lib/components/pagination/index.d.ts +4 -0
  1079. package/lib/components/pagination/pagination-button.d.ts +11 -0
  1080. package/lib/components/pagination/pagination-content.d.ts +8 -0
  1081. package/lib/components/pagination/pagination-ellipsis.d.ts +8 -0
  1082. package/lib/components/pagination/pagination-intl.d.ts +20 -0
  1083. package/lib/components/pagination/pagination-item.d.ts +5 -0
  1084. package/lib/components/pagination/pagination-next.d.ts +11 -0
  1085. package/lib/components/pagination/pagination-prev.d.ts +11 -0
  1086. package/lib/components/pagination/pagination.d.ts +30 -0
  1087. package/lib/components/pagination/pagination.imports.d.ts +8 -0
  1088. package/lib/components/pagination/pagination.variants.d.ts +11 -0
  1089. package/lib/components/progress-bar/demo/indeterminate.d.ts +5 -0
  1090. package/lib/components/progress-bar/demo/progress-bar.d.ts +12 -0
  1091. package/lib/components/progress-bar/demo/shape.d.ts +6 -0
  1092. package/lib/components/progress-bar/demo/size.d.ts +6 -0
  1093. package/lib/components/progress-bar/demo/variant.d.ts +6 -0
  1094. package/lib/components/progress-bar/index.d.ts +3 -0
  1095. package/lib/components/progress-bar/progress-bar.d.ts +31 -0
  1096. package/lib/components/progress-bar/progress-bar.variants.d.ts +17 -0
  1097. package/lib/components/separator/demo/orientation.d.ts +5 -0
  1098. package/lib/components/separator/demo/separator.d.ts +9 -0
  1099. package/lib/components/separator/index.d.ts +2 -0
  1100. package/lib/components/separator/separator.d.ts +9 -0
  1101. package/lib/components/separator/separator.variants.d.ts +5 -0
  1102. package/lib/components/skeleton/demo/card.d.ts +5 -0
  1103. package/lib/components/skeleton/demo/chart.d.ts +5 -0
  1104. package/lib/components/skeleton/demo/default.d.ts +5 -0
  1105. package/lib/components/skeleton/demo/skeleton.d.ts +8 -0
  1106. package/lib/components/skeleton/index.d.ts +2 -0
  1107. package/lib/components/skeleton/skeleton.d.ts +8 -0
  1108. package/lib/components/skeleton/skeleton.variants.d.ts +3 -0
  1109. package/lib/components/stepper/demo/default.d.ts +5 -0
  1110. package/lib/components/stepper/demo/orientation.d.ts +5 -0
  1111. package/lib/components/stepper/demo/stepper.d.ts +8 -0
  1112. package/lib/components/stepper/demo/validation.d.ts +12 -0
  1113. package/lib/components/stepper/index.d.ts +2 -0
  1114. package/lib/components/stepper/stepper.d.ts +39 -0
  1115. package/lib/components/stepper/stepper.service.d.ts +22 -0
  1116. package/lib/components/stepper/stepper.variants.d.ts +19 -0
  1117. package/lib/components/table/cell-template.directive.d.ts +8 -0
  1118. package/lib/components/table/demo/border.d.ts +10 -0
  1119. package/lib/components/table/demo/default.d.ts +12 -0
  1120. package/lib/components/table/demo/pagination.d.ts +16 -0
  1121. package/lib/components/table/demo/selected.d.ts +12 -0
  1122. package/lib/components/table/demo/size.d.ts +10 -0
  1123. package/lib/components/table/demo/sort.d.ts +11 -0
  1124. package/lib/components/table/demo/table.d.ts +17 -0
  1125. package/lib/components/table/demo/user.d.ts +15 -0
  1126. package/lib/components/table/index.d.ts +4 -0
  1127. package/lib/components/table/table.config.d.ts +29 -0
  1128. package/lib/components/table/table.d.ts +45 -0
  1129. package/lib/components/table/table.variants.d.ts +21 -0
  1130. package/lib/components/tabs/demo/align.d.ts +8 -0
  1131. package/lib/components/tabs/demo/arrows.d.ts +10 -0
  1132. package/lib/components/tabs/demo/default.d.ts +5 -0
  1133. package/lib/components/tabs/demo/position.d.ts +9 -0
  1134. package/lib/components/tabs/demo/tabs.d.ts +12 -0
  1135. package/lib/components/tabs/index.d.ts +2 -0
  1136. package/lib/components/tabs/tabs.d.ts +45 -0
  1137. package/lib/components/tabs/tabs.variants.d.ts +18 -0
  1138. package/lib/components/toast/demo/default.d.ts +7 -0
  1139. package/lib/components/toast/demo/position.d.ts +12 -0
  1140. package/lib/components/toast/demo/toast.d.ts +17 -0
  1141. package/lib/components/toast/demo/type.d.ts +11 -0
  1142. package/lib/components/toast/index.d.ts +3 -0
  1143. package/lib/components/toast/toast-content.d.ts +8 -0
  1144. package/lib/components/toast/toast.config.d.ts +12 -0
  1145. package/lib/components/toast/toast.d.ts +11 -0
  1146. package/lib/components/toast/toast.pipe.d.ts +16 -0
  1147. package/lib/components/toast/toast.service.d.ts +17 -0
  1148. package/lib/components/toast/toast.variants.d.ts +5 -0
  1149. package/lib/components/tooltip/demo/click.d.ts +5 -0
  1150. package/lib/components/tooltip/demo/events.d.ts +8 -0
  1151. package/lib/components/tooltip/demo/hover.d.ts +5 -0
  1152. package/lib/components/tooltip/demo/position.d.ts +5 -0
  1153. package/lib/components/tooltip/demo/tooltip.d.ts +9 -0
  1154. package/lib/components/tooltip/index.d.ts +4 -0
  1155. package/lib/components/tooltip/tooltip.config.d.ts +12 -0
  1156. package/lib/components/tooltip/tooltip.d.ts +16 -0
  1157. package/lib/components/tooltip/tooltip.directive.d.ts +28 -0
  1158. package/lib/components/tooltip/tooltip.imports.d.ts +13 -0
  1159. package/lib/components/tooltip/tooltip.variants.d.ts +7 -0
  1160. package/lib/components/tree/demo/default.d.ts +7 -0
  1161. package/lib/components/tree/demo/selection.d.ts +9 -0
  1162. package/lib/components/tree/demo/tree.d.ts +8 -0
  1163. package/lib/components/tree/index.d.ts +3 -0
  1164. package/lib/components/tree/tree.d.ts +29 -0
  1165. package/lib/components/tree/tree.interface.d.ts +9 -0
  1166. package/lib/components/tree/tree.variants.d.ts +7 -0
  1167. package/lib/components/upload/demo/default.d.ts +11 -0
  1168. package/lib/components/upload/demo/dropzone.d.ts +11 -0
  1169. package/lib/components/upload/demo/multiple.d.ts +11 -0
  1170. package/lib/components/upload/demo/selected.d.ts +12 -0
  1171. package/lib/components/upload/demo/upload.d.ts +21 -0
  1172. package/lib/components/upload/index.d.ts +4 -0
  1173. package/lib/components/upload/upload.d.ts +32 -0
  1174. package/lib/components/upload/upload.interface.d.ts +8 -0
  1175. package/lib/components/upload/upload.service.d.ts +8 -0
  1176. package/lib/components/upload/upload.variants.d.ts +10 -0
  1177. package/lib/core/directives/generate-id.directive.d.ts +8 -0
  1178. package/lib/core/directives/index.d.ts +3 -0
  1179. package/lib/core/directives/normalize/index.d.ts +3 -0
  1180. package/lib/core/directives/normalize/normalize.config.d.ts +7 -0
  1181. package/lib/core/directives/normalize/normalize.directive.d.ts +13 -0
  1182. package/lib/core/directives/normalize/strategies/alfa.strategy.d.ts +5 -0
  1183. package/lib/core/directives/normalize/strategies/alfanum.strategy.d.ts +5 -0
  1184. package/lib/core/directives/normalize/strategies/index.d.ts +11 -0
  1185. package/lib/core/directives/normalize/strategies/normalize.strategy.d.ts +4 -0
  1186. package/lib/core/directives/normalize/strategies/numeric.strategy.d.ts +4 -0
  1187. package/lib/core/directives/normalize/strategies/uppercase.strategy.d.ts +4 -0
  1188. package/lib/core/directives/string-template-ref.directive.d.ts +19 -0
  1189. package/lib/core/helpers/index.d.ts +1 -0
  1190. package/lib/core/helpers/merge.helper.d.ts +4 -0
  1191. package/lib/core/index.d.ts +5 -0
  1192. package/lib/core/interfaces/control-value.interface.d.ts +2 -0
  1193. package/lib/core/interfaces/index.d.ts +1 -0
  1194. package/lib/core/template/index.d.ts +1 -0
  1195. package/lib/core/template/print/print.d.ts +6 -0
  1196. package/lib/core/template/print/print.pipe.d.ts +7 -0
  1197. package/lib/core/utils/clipboard.util.d.ts +14 -0
  1198. package/lib/core/utils/index.d.ts +1 -0
  1199. package/lib/infra/index.d.ts +1 -0
  1200. package/lib/infra/stores/index.d.ts +1 -0
  1201. package/lib/infra/stores/theme.store.d.ts +12 -0
  1202. package/package.json +58 -0
@@ -0,0 +1,184 @@
1
+ import { ChangeDetectionStrategy, Component, computed, contentChild, contentChildren, forwardRef, input, output, signal, ViewEncapsulation } from "@angular/core";
2
+ import { FormsModule, NG_VALUE_ACCESSOR } from "@angular/forms";
3
+ import { mergeClasses, noopFn } from "../../core";
4
+ import { AiCommandInput } from "./command-input";
5
+ import { AiCommandItem } from "./command-item";
6
+ import { commandVariants } from "./command.variants";
7
+ import * as i0 from "@angular/core";
8
+ export class AiCommand {
9
+ cmdInputComponent = contentChild(AiCommandInput, ...(ngDevMode ? [{ debugName: "cmdInputComponent" }] : []));
10
+ cmdItemComponents = contentChildren(AiCommandItem, { ...(ngDevMode ? { debugName: "cmdItemComponents" } : {}), descendants: true });
11
+ #registeredItems = signal([], ...(ngDevMode ? [{ debugName: "#registeredItems" }] : []));
12
+ size = input("default", ...(ngDevMode ? [{ debugName: "size" }] : []));
13
+ class = input("", ...(ngDevMode ? [{ debugName: "class" }] : []));
14
+ _change = () => noopFn;
15
+ _touched = () => noopFn;
16
+ searchTerm = signal("", ...(ngDevMode ? [{ debugName: "searchTerm" }] : []));
17
+ selectedIndex = signal(-1, ...(ngDevMode ? [{ debugName: "selectedIndex" }] : []));
18
+ #itemUpdateTrigger = signal(0, ...(ngDevMode ? [{ debugName: "#itemUpdateTrigger" }] : []));
19
+ changeCommand = output();
20
+ selectedCommand = output();
21
+ itemComponents = computed(() => (this.cmdItemComponents().length ? this.cmdItemComponents() : this.#registeredItems()), ...(ngDevMode ? [{ debugName: "itemComponents" }] : []));
22
+ classes = computed(() => mergeClasses(commandVariants({ size: this.size() }), this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : []));
23
+ filteredItems = computed(() => {
24
+ const searchTerm = this.searchTerm();
25
+ this.#itemUpdateTrigger();
26
+ if (!this.itemComponents())
27
+ return [];
28
+ const lowerSearchTerm = searchTerm.toLowerCase().trim();
29
+ if (!lowerSearchTerm)
30
+ return this.itemComponents();
31
+ return this.itemComponents().filter(item => item.label().toLowerCase().includes(lowerSearchTerm) || (item.command()?.toLowerCase() ?? "").includes(lowerSearchTerm));
32
+ }, ...(ngDevMode ? [{ debugName: "filteredItems" }] : []));
33
+ statusMessage = computed(() => {
34
+ const searchTerm = this.searchTerm().trim();
35
+ const filteredCount = this.filteredItems().length;
36
+ if (!searchTerm)
37
+ return searchTerm;
38
+ if (!filteredCount)
39
+ return `No results found for "${searchTerm}"`;
40
+ return `${filteredCount} result${filteredCount === 1 ? "" : "s"} found for "${searchTerm}"`;
41
+ }, ...(ngDevMode ? [{ debugName: "statusMessage" }] : []));
42
+ constructor() {
43
+ this._triggerItemsUpdate();
44
+ }
45
+ register(item) {
46
+ this.#registeredItems.update(items => [...items, item]);
47
+ }
48
+ unregister(item) {
49
+ this.#registeredItems.update(items => items.filter(i => i !== item));
50
+ }
51
+ writeValue(_value) {
52
+ // Implementation here
53
+ }
54
+ registerOnChange(fn) {
55
+ this._change = fn;
56
+ }
57
+ registerOnTouched(fn) {
58
+ this._touched = fn;
59
+ }
60
+ setDisabledState(_isDisabled) {
61
+ // Implementation here
62
+ }
63
+ onSearch(searchTerm) {
64
+ this.searchTerm.set(searchTerm);
65
+ this.selectedIndex.set(-1);
66
+ this._updateSelectedItem();
67
+ }
68
+ selectItem(item) {
69
+ const commandItem = {
70
+ value: item.value(),
71
+ label: item.label(),
72
+ disabled: item.disabled(),
73
+ command: item.command(),
74
+ shortcut: item.shortcut(),
75
+ icon: item.icon(),
76
+ };
77
+ this._change(item.value());
78
+ this.changeCommand.emit(commandItem);
79
+ this.selectedCommand.emit(commandItem);
80
+ }
81
+ onKeyDown(event) {
82
+ const filteredItems = this.filteredItems();
83
+ if (filteredItems.length === 0)
84
+ return;
85
+ const { key } = event;
86
+ const index = this.selectedIndex();
87
+ switch (key) {
88
+ case "ArrowDown": {
89
+ const nextIndex = index < filteredItems.length - 1 ? index + 1 : 0;
90
+ this.selectedIndex.set(nextIndex);
91
+ this._updateSelectedItem();
92
+ break;
93
+ }
94
+ case "ArrowUp": {
95
+ const prevIndex = index > 0 ? index - 1 : filteredItems.length - 1;
96
+ this.selectedIndex.set(prevIndex);
97
+ this._updateSelectedItem();
98
+ break;
99
+ }
100
+ case "Enter":
101
+ if (index >= 0 && index < filteredItems.length) {
102
+ const selectedItem = filteredItems[index];
103
+ if (!selectedItem.disabled()) {
104
+ this.selectItem(selectedItem);
105
+ }
106
+ }
107
+ break;
108
+ case "Escape":
109
+ this.selectedIndex.set(-1);
110
+ this._updateSelectedItem();
111
+ break;
112
+ }
113
+ }
114
+ refreshItems() {
115
+ this._triggerItemsUpdate();
116
+ }
117
+ focus() {
118
+ this.cmdInputComponent()?.focus();
119
+ }
120
+ _updateSelectedItem() {
121
+ const filteredItems = this.filteredItems();
122
+ const index = this.selectedIndex();
123
+ for (const option of filteredItems) {
124
+ option.setSelected(false);
125
+ }
126
+ if (index >= 0 && index < filteredItems.length) {
127
+ const selected = filteredItems[index];
128
+ selected.setSelected(true);
129
+ selected.focus();
130
+ }
131
+ }
132
+ _triggerItemsUpdate() {
133
+ this.#itemUpdateTrigger.update(value => value + 1);
134
+ }
135
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: AiCommand, deps: [], target: i0.ɵɵFactoryTarget.Component });
136
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.1.1", type: AiCommand, isStandalone: true, selector: "ai-command", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { changeCommand: "changeCommand", selectedCommand: "selectedCommand" }, host: { attributes: { "role": "combobox", "aria-haspopup": "listbox" }, listeners: { "keydown.{arrowdown,arrowup,enter,escape}.prevent": "onKeyDown($event)" }, properties: { "attr.aria-expanded": "true" } }, providers: [
137
+ {
138
+ provide: NG_VALUE_ACCESSOR,
139
+ useExisting: forwardRef(() => AiCommand),
140
+ multi: true,
141
+ },
142
+ ], queries: [{ propertyName: "cmdInputComponent", first: true, predicate: AiCommandInput, descendants: true, isSignal: true }, { propertyName: "cmdItemComponents", predicate: AiCommandItem, descendants: true, isSignal: true }], exportAs: ["aiCommand"], ngImport: i0, template: `
143
+ <div [class]="classes()">
144
+ <div id="command-instructions" class="sr-only">Use arrow keys to navigate, Enter to select, Escape to clear selection.</div>
145
+ <div id="command-status" class="sr-only" aria-live="polite" aria-atomic="true">
146
+ {{ statusMessage() }}
147
+ </div>
148
+ <ng-content />
149
+ </div>
150
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
151
+ }
152
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: AiCommand, decorators: [{
153
+ type: Component,
154
+ args: [{
155
+ selector: "ai-command",
156
+ exportAs: "aiCommand",
157
+ imports: [FormsModule],
158
+ encapsulation: ViewEncapsulation.None,
159
+ changeDetection: ChangeDetectionStrategy.OnPush,
160
+ template: `
161
+ <div [class]="classes()">
162
+ <div id="command-instructions" class="sr-only">Use arrow keys to navigate, Enter to select, Escape to clear selection.</div>
163
+ <div id="command-status" class="sr-only" aria-live="polite" aria-atomic="true">
164
+ {{ statusMessage() }}
165
+ </div>
166
+ <ng-content />
167
+ </div>
168
+ `,
169
+ providers: [
170
+ {
171
+ provide: NG_VALUE_ACCESSOR,
172
+ useExisting: forwardRef(() => AiCommand),
173
+ multi: true,
174
+ },
175
+ ],
176
+ host: {
177
+ role: "combobox",
178
+ "aria-haspopup": "listbox",
179
+ "[attr.aria-expanded]": "true",
180
+ "(keydown.{arrowdown,arrowup,enter,escape}.prevent)": "onKeyDown($event)",
181
+ },
182
+ }]
183
+ }], ctorParameters: () => [], propDecorators: { cmdInputComponent: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AiCommandInput), { isSignal: true }] }], cmdItemComponents: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => AiCommandItem), { ...{ descendants: true }, isSignal: true }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], changeCommand: [{ type: i0.Output, args: ["changeCommand"] }], selectedCommand: [{ type: i0.Output, args: ["selectedCommand"] }] } });
184
+ //# sourceMappingURL=command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command.js","sourceRoot":"","sources":["../../../../../../../libs/ai-ui/src/lib/components/command/command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClK,OAAO,EAAwB,WAAW,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEtF,OAAO,EAAY,YAAY,EAAE,MAAM,EAAW,MAAM,YAAY,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,OAAO,EAAuB,eAAe,EAAE,MAAM,oBAAoB,CAAC;;AA+B1E,MAAM,OAAO,SAAS;IACD,iBAAiB,GAAG,YAAY,CAA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AU;wBAChB,eAAe,EAAE,SAAS;wBAC1B,sBAAsB,EAAE,MAAM;wBAC9B,oDAAoD,EAAE,mBAAmB;qBAC5E;iBACJ;gIAEqD,cAAc,sGACX,aAAa,QAAE,EAAE,WAAW,EAAE,IAAI,EAAE","sourcesContent":["import { ChangeDetectionStrategy, Component, computed, contentChild, contentChildren, forwardRef, input, output, signal, ViewEncapsulation } from \"@angular/core\";\r\nimport { ControlValueAccessor, FormsModule, NG_VALUE_ACCESSOR } from \"@angular/forms\";\r\nimport { ClassValue } from \"clsx\";\r\nimport { ChangeFn, mergeClasses, noopFn, TouchFn } from \"../../core\";\r\nimport { AiCommandInput } from \"./command-input\";\r\nimport { AiCommandItem } from \"./command-item\";\r\nimport { AiCommandItemConfig, AiCommandRepository } from \"./command.config\";\r\nimport { CommandSizeVariants, commandVariants } from \"./command.variants\";\r\n\r\n@Component({\r\n selector: \"ai-command\",\r\n exportAs: \"aiCommand\",\r\n imports: [FormsModule],\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n template: `\r\n <div [class]=\"classes()\">\r\n <div id=\"command-instructions\" class=\"sr-only\">Use arrow keys to navigate, Enter to select, Escape to clear selection.</div>\r\n <div id=\"command-status\" class=\"sr-only\" aria-live=\"polite\" aria-atomic=\"true\">\r\n {{ statusMessage() }}\r\n </div>\r\n <ng-content />\r\n </div>\r\n `,\r\n providers: [\r\n {\r\n provide: NG_VALUE_ACCESSOR,\r\n useExisting: forwardRef(() => AiCommand),\r\n multi: true,\r\n },\r\n ],\r\n host: {\r\n role: \"combobox\",\r\n \"aria-haspopup\": \"listbox\",\r\n \"[attr.aria-expanded]\": \"true\",\r\n \"(keydown.{arrowdown,arrowup,enter,escape}.prevent)\": \"onKeyDown($event)\",\r\n },\r\n})\r\nexport class AiCommand implements ControlValueAccessor, AiCommandRepository {\r\n private readonly cmdInputComponent = contentChild(AiCommandInput);\r\n private readonly cmdItemComponents = contentChildren(AiCommandItem, { descendants: true });\r\n readonly #registeredItems = signal<AiCommandItem[]>([]);\r\n\r\n readonly size = input<CommandSizeVariants>(\"default\");\r\n readonly class = input<ClassValue>(\"\");\r\n\r\n protected _change: ChangeFn<string> = () => noopFn;\r\n protected _touched: TouchFn = () => noopFn;\r\n\r\n readonly searchTerm = signal<string>(\"\");\r\n readonly selectedIndex = signal<number>(-1);\r\n #itemUpdateTrigger = signal<number>(0);\r\n\r\n readonly changeCommand = output<AiCommandItemConfig>();\r\n readonly selectedCommand = output<AiCommandItemConfig>();\r\n\r\n protected readonly itemComponents = computed(() => (this.cmdItemComponents().length ? this.cmdItemComponents() : this.#registeredItems()));\r\n\r\n protected readonly classes = computed(() => mergeClasses(commandVariants({ size: this.size() }), this.class()));\r\n\r\n readonly filteredItems = computed(() => {\r\n const searchTerm = this.searchTerm();\r\n this.#itemUpdateTrigger();\r\n\r\n if (!this.itemComponents()) return [];\r\n\r\n const lowerSearchTerm = searchTerm.toLowerCase().trim();\r\n if (!lowerSearchTerm) return this.itemComponents();\r\n\r\n return this.itemComponents().filter(item => item.label().toLowerCase().includes(lowerSearchTerm) || (item.command()?.toLowerCase() ?? \"\").includes(lowerSearchTerm));\r\n });\r\n\r\n protected readonly statusMessage = computed(() => {\r\n const searchTerm = this.searchTerm().trim();\r\n const filteredCount = this.filteredItems().length;\r\n\r\n if (!searchTerm) return searchTerm;\r\n if (!filteredCount) return `No results found for \"${searchTerm}\"`;\r\n\r\n return `${filteredCount} result${filteredCount === 1 ? \"\" : \"s\"} found for \"${searchTerm}\"`;\r\n });\r\n\r\n constructor() {\r\n this._triggerItemsUpdate();\r\n }\r\n\r\n register(item: AiCommandItem) {\r\n this.#registeredItems.update(items => [...items, item]);\r\n }\r\n\r\n unregister(item: AiCommandItem) {\r\n this.#registeredItems.update(items => items.filter(i => i !== item));\r\n }\r\n\r\n writeValue(_value: string | null) {\r\n // Implementation here\r\n }\r\n\r\n registerOnChange(fn: (value: string) => void): void {\r\n this._change = fn;\r\n }\r\n\r\n registerOnTouched(fn: () => void): void {\r\n this._touched = fn;\r\n }\r\n\r\n setDisabledState(_isDisabled: boolean): void {\r\n // Implementation here\r\n }\r\n\r\n onSearch(searchTerm: string) {\r\n this.searchTerm.set(searchTerm);\r\n this.selectedIndex.set(-1);\r\n this._updateSelectedItem();\r\n }\r\n\r\n selectItem(item: AiCommandItem) {\r\n const commandItem: AiCommandItemConfig = {\r\n value: item.value(),\r\n label: item.label(),\r\n disabled: item.disabled(),\r\n command: item.command(),\r\n shortcut: item.shortcut(),\r\n icon: item.icon(),\r\n };\r\n\r\n this._change(item.value() as string);\r\n this.changeCommand.emit(commandItem);\r\n this.selectedCommand.emit(commandItem);\r\n }\r\n\r\n onKeyDown(event: Event) {\r\n const filteredItems = this.filteredItems();\r\n if (filteredItems.length === 0) return;\r\n\r\n const { key } = event as KeyboardEvent;\r\n const index = this.selectedIndex();\r\n\r\n switch (key) {\r\n case \"ArrowDown\": {\r\n const nextIndex = index < filteredItems.length - 1 ? index + 1 : 0;\r\n this.selectedIndex.set(nextIndex);\r\n this._updateSelectedItem();\r\n break;\r\n }\r\n\r\n case \"ArrowUp\": {\r\n const prevIndex = index > 0 ? index - 1 : filteredItems.length - 1;\r\n this.selectedIndex.set(prevIndex);\r\n this._updateSelectedItem();\r\n break;\r\n }\r\n\r\n case \"Enter\":\r\n if (index >= 0 && index < filteredItems.length) {\r\n const selectedItem = filteredItems[index];\r\n if (!selectedItem.disabled()) {\r\n this.selectItem(selectedItem);\r\n }\r\n }\r\n break;\r\n\r\n case \"Escape\":\r\n this.selectedIndex.set(-1);\r\n this._updateSelectedItem();\r\n break;\r\n }\r\n }\r\n\r\n refreshItems() {\r\n this._triggerItemsUpdate();\r\n }\r\n\r\n focus() {\r\n this.cmdInputComponent()?.focus();\r\n }\r\n\r\n private _updateSelectedItem() {\r\n const filteredItems = this.filteredItems();\r\n const index = this.selectedIndex();\r\n\r\n for (const option of filteredItems) {\r\n option.setSelected(false);\r\n }\r\n\r\n if (index >= 0 && index < filteredItems.length) {\r\n const selected = filteredItems[index];\r\n selected.setSelected(true);\r\n selected.focus();\r\n }\r\n }\r\n\r\n private _triggerItemsUpdate(): void {\r\n this.#itemUpdateTrigger.update(value => value + 1);\r\n }\r\n}\r\n"]}
@@ -0,0 +1,50 @@
1
+ import { cva } from "class-variance-authority";
2
+ export const commandVariants = cva("flex h-full w-full flex-col overflow-hidden shadow-md border border-border rounded-md bg-background text-background-foreground", {
3
+ variants: {
4
+ size: {
5
+ sm: "min-h-64",
6
+ default: "min-h-80",
7
+ lg: "min-h-96",
8
+ xl: "min-h-120",
9
+ },
10
+ },
11
+ defaultVariants: {
12
+ size: "default",
13
+ },
14
+ });
15
+ export const commandInputVariants = cva("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50", {
16
+ variants: {},
17
+ defaultVariants: {},
18
+ });
19
+ export const commandListVariants = cva("max-h-75 overflow-y-auto overflow-x-hidden p-1", {
20
+ variants: {},
21
+ defaultVariants: {},
22
+ });
23
+ export const commandGroupVariants = cva("overflow-hidden text-foreground", {
24
+ variants: {},
25
+ defaultVariants: {},
26
+ });
27
+ export const commandGroupHeadingVariants = cva("px-2 py-1.5 text-xs font-semibold font-title text-muted-foreground", {
28
+ variants: {},
29
+ defaultVariants: {},
30
+ });
31
+ export const commandItemVariants = cva("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none hover:bg-default hover:text-default-foreground aria-selected:bg-default aria-selected:text-default-foreground data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50", {
32
+ variants: {
33
+ variant: {
34
+ default: "",
35
+ destructive: "aria-selected:bg-destructive aria-selected:text-destructive-foreground hover:bg-destructive hover:text-destructive-foreground",
36
+ },
37
+ },
38
+ defaultVariants: {
39
+ variant: "default",
40
+ },
41
+ });
42
+ export const commandSeparatorVariants = cva("-mx-1 my-1 h-px bg-border", {
43
+ variants: {},
44
+ defaultVariants: {},
45
+ });
46
+ export const commandShortcutVariants = cva("ml-auto text-xs tracking-widest text-muted-foreground", {
47
+ variants: {},
48
+ defaultVariants: {},
49
+ });
50
+ //# sourceMappingURL=command.variants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command.variants.js","sourceRoot":"","sources":["../../../../../../../libs/ai-ui/src/lib/components/command/command.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAC;AAElE,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAC,gIAAgI,EAAE;IACjK,QAAQ,EAAE;QACN,IAAI,EAAE;YACF,EAAE,EAAE,UAAU;YACd,OAAO,EAAE,UAAU;YACnB,EAAE,EAAE,UAAU;YACd,EAAE,EAAE,WAAW;SAClB;KACJ;IACD,eAAe,EAAE;QACb,IAAI,EAAE,SAAS;KAClB;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CACnC,wJAAwJ,EACxJ;IACI,QAAQ,EAAE,EAAE;IACZ,eAAe,EAAE,EAAE;CACtB,CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CAAC,gDAAgD,EAAE;IACrF,QAAQ,EAAE,EAAE;IACZ,eAAe,EAAE,EAAE;CACtB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CAAC,iCAAiC,EAAE;IACvE,QAAQ,EAAE,EAAE;IACZ,eAAe,EAAE,EAAE;CACtB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,2BAA2B,GAAG,GAAG,CAAC,oEAAoE,EAAE;IACjH,QAAQ,EAAE,EAAE;IACZ,eAAe,EAAE,EAAE;CACtB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CAClC,0RAA0R,EAC1R;IACI,QAAQ,EAAE;QACN,OAAO,EAAE;YACL,OAAO,EAAE,EAAE;YACX,WAAW,EAAE,+HAA+H;SAC/I;KACJ;IACD,eAAe,EAAE;QACb,OAAO,EAAE,SAAS;KACrB;CACJ,CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,CAAC,2BAA2B,EAAE;IACrE,QAAQ,EAAE,EAAE;IACZ,eAAe,EAAE,EAAE;CACtB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,CAAC,uDAAuD,EAAE;IAChG,QAAQ,EAAE,EAAE;IACZ,eAAe,EAAE,EAAE;CACtB,CAAC,CAAC","sourcesContent":["import { cva, type VariantProps } from \"class-variance-authority\";\r\n\r\nexport const commandVariants = cva(\"flex h-full w-full flex-col overflow-hidden shadow-md border border-border rounded-md bg-background text-background-foreground\", {\r\n variants: {\r\n size: {\r\n sm: \"min-h-64\",\r\n default: \"min-h-80\",\r\n lg: \"min-h-96\",\r\n xl: \"min-h-120\",\r\n },\r\n },\r\n defaultVariants: {\r\n size: \"default\",\r\n },\r\n});\r\n\r\nexport const commandInputVariants = cva(\r\n \"flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50\",\r\n {\r\n variants: {},\r\n defaultVariants: {},\r\n },\r\n);\r\n\r\nexport const commandListVariants = cva(\"max-h-75 overflow-y-auto overflow-x-hidden p-1\", {\r\n variants: {},\r\n defaultVariants: {},\r\n});\r\n\r\nexport const commandGroupVariants = cva(\"overflow-hidden text-foreground\", {\r\n variants: {},\r\n defaultVariants: {},\r\n});\r\n\r\nexport const commandGroupHeadingVariants = cva(\"px-2 py-1.5 text-xs font-semibold font-title text-muted-foreground\", {\r\n variants: {},\r\n defaultVariants: {},\r\n});\r\n\r\nexport const commandItemVariants = cva(\r\n \"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none hover:bg-default hover:text-default-foreground aria-selected:bg-default aria-selected:text-default-foreground data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50\",\r\n {\r\n variants: {\r\n variant: {\r\n default: \"\",\r\n destructive: \"aria-selected:bg-destructive aria-selected:text-destructive-foreground hover:bg-destructive hover:text-destructive-foreground\",\r\n },\r\n },\r\n defaultVariants: {\r\n variant: \"default\",\r\n },\r\n },\r\n);\r\n\r\nexport const commandSeparatorVariants = cva(\"-mx-1 my-1 h-px bg-border\", {\r\n variants: {},\r\n defaultVariants: {},\r\n});\r\n\r\nexport const commandShortcutVariants = cva(\"ml-auto text-xs tracking-widest text-muted-foreground\", {\r\n variants: {},\r\n defaultVariants: {},\r\n});\r\n\r\nexport type CommandSizeVariants = NonNullable<VariantProps<typeof commandVariants>[\"size\"]>;\r\nexport type CommandItemVariants = NonNullable<VariantProps<typeof commandItemVariants>[\"variant\"]>;\r\n"]}
@@ -0,0 +1,12 @@
1
+ import { DemoCommandDefaultComponent } from "./default";
2
+ export const COMMAND = {
3
+ componentName: "command",
4
+ componentType: "command",
5
+ examples: [
6
+ {
7
+ name: "default",
8
+ component: DemoCommandDefaultComponent,
9
+ },
10
+ ],
11
+ };
12
+ //# sourceMappingURL=command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command.js","sourceRoot":"","sources":["../../../../../../../../libs/ai-ui/src/lib/components/command/demo/command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,WAAW,CAAC;AAExD,MAAM,CAAC,MAAM,OAAO,GAAG;IACnB,aAAa,EAAE,SAAS;IACxB,aAAa,EAAE,SAAS;IACxB,QAAQ,EAAE;QACN;YACI,IAAI,EAAE,SAAS;YACf,SAAS,EAAE,2BAA2B;SACzC;KACJ;CACJ,CAAC","sourcesContent":["import { DemoCommandDefaultComponent } from \"./default\";\r\n\r\nexport const COMMAND = {\r\n componentName: \"command\",\r\n componentType: \"command\",\r\n examples: [\r\n {\r\n name: \"default\",\r\n component: DemoCommandDefaultComponent,\r\n },\r\n ],\r\n};\r\n"]}
@@ -0,0 +1,124 @@
1
+ import { Component } from "@angular/core";
2
+ import { AiCommandImports } from "../command.imports";
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "../command";
5
+ import * as i2 from "../command-input";
6
+ import * as i3 from "../command-list";
7
+ import * as i4 from "../command-item";
8
+ import * as i5 from "../command-item-group";
9
+ import * as i6 from "../command-separator";
10
+ import * as i7 from "../command-empty";
11
+ export class DemoCommandDefaultComponent {
12
+ commandActions = {
13
+ "new-project": () => this._showAlert("Creating new project..."),
14
+ "open-file": () => this._showAlert("Opening file dialog..."),
15
+ "save-all": () => this._showAlert("Saving all files..."),
16
+ dashboard: () => this._showAlert("Navigating to Dashboard..."),
17
+ projects: () => this._showAlert("Navigating to Projects..."),
18
+ terminal: () => this._showAlert("Opening terminal..."),
19
+ theme: () => this._showAlert("Toggling theme..."),
20
+ };
21
+ keyMap = {
22
+ n: { value: "new-project", label: "Create new project" },
23
+ o: { value: "open-file", label: "Open file" },
24
+ s: { value: "save-all", label: "Save all" },
25
+ "1": { value: "dashboard", label: "Go to Dashboard" },
26
+ "2": { value: "projects", label: "Go to Projects" },
27
+ t: { value: "terminal", label: "Open terminal" },
28
+ d: { value: "theme", label: "Toggle theme" },
29
+ };
30
+ handleCommand(item) {
31
+ const action = `Executed "${item.label}" (value: ${item.value})`;
32
+ console.log(action);
33
+ (this.commandActions[item.value] ?? (() => this._showAlert(`Action: ${item.label}`)))();
34
+ }
35
+ handleKeydown(event) {
36
+ if (event.metaKey || event.ctrlKey) {
37
+ const key = event.key.toLowerCase();
38
+ if (this.keyMap[key]) {
39
+ event.preventDefault();
40
+ this._executeCommand(this.keyMap[key].value, this.keyMap[key].label);
41
+ }
42
+ }
43
+ }
44
+ _executeCommand(value, label) {
45
+ this.handleCommand({ value, label });
46
+ }
47
+ _showAlert(message, warning = false) {
48
+ if (warning) {
49
+ console.warn(message);
50
+ }
51
+ else {
52
+ console.log(message);
53
+ }
54
+ }
55
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: DemoCommandDefaultComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
56
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.1", type: DemoCommandDefaultComponent, isStandalone: true, selector: "ng-component", host: { listeners: { "window:keydown": "handleKeydown($event)" } }, ngImport: i0, template: `
57
+ <ai-command class="md:min-w-125" (selectedCommand)="handleCommand($event)">
58
+ <ai-command-input placeholder="Search actions, files, and more..." />
59
+
60
+ <ai-command-list>
61
+ <ai-command-empty />
62
+
63
+ <ai-command-item-group label="Quick Actions">
64
+ <ai-command-item label="Create new project" value="new-project" icon="folder" shortcut="⌘N" />
65
+ <ai-command-item label="Open file" value="open-file" icon="folder-open" shortcut="⌘O" />
66
+ <ai-command-item label="Save all" value="save-all" icon="save-2" shortcut="⌘S" />
67
+ </ai-command-item-group>
68
+
69
+ <ai-command-separator />
70
+
71
+ <ai-command-item-group label="Navigation">
72
+ <ai-command-item label="Go to Dashboard" value="dashboard" icon="dashboard" shortcut="⌘1" />
73
+ <ai-command-item label="Go to Projects" value="projects" icon="folder" shortcut="⌘2" />
74
+ </ai-command-item-group>
75
+
76
+ <ai-command-separator />
77
+
78
+ <ai-command-item-group label="Tools">
79
+ <ai-command-item label="Open terminal" value="terminal" icon="terminal" shortcut="⌘T" />
80
+ <ai-command-item label="Toggle theme" value="theme" icon="moon" shortcut="⌘D" />
81
+ </ai-command-item-group>
82
+ </ai-command-list>
83
+ </ai-command>
84
+ `, isInline: true, dependencies: [{ kind: "component", type: i1.AiCommand, selector: "ai-command", inputs: ["size", "class"], outputs: ["changeCommand", "selectedCommand"], exportAs: ["aiCommand"] }, { kind: "component", type: i2.AiCommandInput, selector: "ai-command-input", inputs: ["placeholder", "class"], outputs: ["changeValue"], exportAs: ["aiCommandInput"] }, { kind: "component", type: i3.AiCommandList, selector: "ai-command-list", inputs: ["class"], exportAs: ["aiCommandList"] }, { kind: "component", type: i4.AiCommandItem, selector: "ai-command-item", inputs: ["value", "label", "command", "icon", "shortcut", "disabled", "variant", "class", "parentCommand", "commandItemGroup"], exportAs: ["aiCommandItem"] }, { kind: "component", type: i5.AiCommandItemGroup, selector: "ai-command-item-group", inputs: ["label", "class"], exportAs: ["aiCommandItemGroup"] }, { kind: "component", type: i6.AiCommandSeparator, selector: "ai-command-separator", inputs: ["class"], exportAs: ["aiCommandSeparator"] }, { kind: "component", type: i7.AiCommandEmpty, selector: "ai-command-empty", inputs: ["icon", "title", "description", "class"], exportAs: ["aiCommandEmpty"] }] });
85
+ }
86
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: DemoCommandDefaultComponent, decorators: [{
87
+ type: Component,
88
+ args: [{
89
+ imports: [AiCommandImports],
90
+ template: `
91
+ <ai-command class="md:min-w-125" (selectedCommand)="handleCommand($event)">
92
+ <ai-command-input placeholder="Search actions, files, and more..." />
93
+
94
+ <ai-command-list>
95
+ <ai-command-empty />
96
+
97
+ <ai-command-item-group label="Quick Actions">
98
+ <ai-command-item label="Create new project" value="new-project" icon="folder" shortcut="⌘N" />
99
+ <ai-command-item label="Open file" value="open-file" icon="folder-open" shortcut="⌘O" />
100
+ <ai-command-item label="Save all" value="save-all" icon="save-2" shortcut="⌘S" />
101
+ </ai-command-item-group>
102
+
103
+ <ai-command-separator />
104
+
105
+ <ai-command-item-group label="Navigation">
106
+ <ai-command-item label="Go to Dashboard" value="dashboard" icon="dashboard" shortcut="⌘1" />
107
+ <ai-command-item label="Go to Projects" value="projects" icon="folder" shortcut="⌘2" />
108
+ </ai-command-item-group>
109
+
110
+ <ai-command-separator />
111
+
112
+ <ai-command-item-group label="Tools">
113
+ <ai-command-item label="Open terminal" value="terminal" icon="terminal" shortcut="⌘T" />
114
+ <ai-command-item label="Toggle theme" value="theme" icon="moon" shortcut="⌘D" />
115
+ </ai-command-item-group>
116
+ </ai-command-list>
117
+ </ai-command>
118
+ `,
119
+ host: {
120
+ "(window:keydown)": "handleKeydown($event)",
121
+ },
122
+ }]
123
+ }] });
124
+ //# sourceMappingURL=default.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default.js","sourceRoot":"","sources":["../../../../../../../../libs/ai-ui/src/lib/components/command/demo/default.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;;;;;;;;;AAqCtD,MAAM,OAAO,2BAA2B;IACnB,cAAc,GAA+B;QAC1D,aAAa,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,yBAAyB,CAAC;QAC/D,WAAW,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,wBAAwB,CAAC;QAC5D,UAAU,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,qBAAqB,CAAC;QACxD,SAAS,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,4BAA4B,CAAC;QAC9D,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,2BAA2B,CAAC;QAC5D,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,qBAAqB,CAAC;QACtD,KAAK,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC;KACpD,CAAC;IAEe,MAAM,GAAqD;QACxE,CAAC,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,oBAAoB,EAAE;QACxD,CAAC,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;QAC7C,CAAC,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;QAC3C,GAAG,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,iBAAiB,EAAE;QACrD,GAAG,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,gBAAgB,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C,GAAG,CAAC,OAAO,CAAC,CAAC;QACzB,CAAC;IACL,CAAC;uGA/CQ,2BAA2B;2FAA3B,2BAA2B,4IAjC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA4BT;;2FAKQ,2BAA2B;kBAnCvC,SAAS;mBAAC;oBACP,OAAO,EAAE,CAAC,gBAAgB,CAAC;oBAC3B,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA4BT;oBACD,IAAI,EAAE;wBACF,kBAAkB,EAAE,uBAAuB;qBAC9C;iBACJ","sourcesContent":["import { Component } from \"@angular/core\";\r\nimport { AiCommandItemConfig } from \"../command.config\";\r\nimport { AiCommandImports } from \"../command.imports\";\r\n\r\n@Component({\r\n imports: [AiCommandImports],\r\n template: `\r\n <ai-command class=\"md:min-w-125\" (selectedCommand)=\"handleCommand($event)\">\r\n <ai-command-input placeholder=\"Search actions, files, and more...\" />\r\n\r\n <ai-command-list>\r\n <ai-command-empty />\r\n\r\n <ai-command-item-group label=\"Quick Actions\">\r\n <ai-command-item label=\"Create new project\" value=\"new-project\" icon=\"folder\" shortcut=\"⌘N\" />\r\n <ai-command-item label=\"Open file\" value=\"open-file\" icon=\"folder-open\" shortcut=\"⌘O\" />\r\n <ai-command-item label=\"Save all\" value=\"save-all\" icon=\"save-2\" shortcut=\"⌘S\" />\r\n </ai-command-item-group>\r\n\r\n <ai-command-separator />\r\n\r\n <ai-command-item-group label=\"Navigation\">\r\n <ai-command-item label=\"Go to Dashboard\" value=\"dashboard\" icon=\"dashboard\" shortcut=\"⌘1\" />\r\n <ai-command-item label=\"Go to Projects\" value=\"projects\" icon=\"folder\" shortcut=\"⌘2\" />\r\n </ai-command-item-group>\r\n\r\n <ai-command-separator />\r\n\r\n <ai-command-item-group label=\"Tools\">\r\n <ai-command-item label=\"Open terminal\" value=\"terminal\" icon=\"terminal\" shortcut=\"⌘T\" />\r\n <ai-command-item label=\"Toggle theme\" value=\"theme\" icon=\"moon\" shortcut=\"⌘D\" />\r\n </ai-command-item-group>\r\n </ai-command-list>\r\n </ai-command>\r\n `,\r\n host: {\r\n \"(window:keydown)\": \"handleKeydown($event)\",\r\n },\r\n})\r\nexport class DemoCommandDefaultComponent {\r\n private readonly commandActions: Record<string, () => void> = {\r\n \"new-project\": () => this._showAlert(\"Creating new project...\"),\r\n \"open-file\": () => this._showAlert(\"Opening file dialog...\"),\r\n \"save-all\": () => this._showAlert(\"Saving all files...\"),\r\n dashboard: () => this._showAlert(\"Navigating to Dashboard...\"),\r\n projects: () => this._showAlert(\"Navigating to Projects...\"),\r\n terminal: () => this._showAlert(\"Opening terminal...\"),\r\n theme: () => this._showAlert(\"Toggling theme...\"),\r\n };\r\n\r\n private readonly keyMap: Record<string, { value: string; label: string }> = {\r\n n: { value: \"new-project\", label: \"Create new project\" },\r\n o: { value: \"open-file\", label: \"Open file\" },\r\n s: { value: \"save-all\", label: \"Save all\" },\r\n \"1\": { value: \"dashboard\", label: \"Go to Dashboard\" },\r\n \"2\": { value: \"projects\", label: \"Go to Projects\" },\r\n t: { value: \"terminal\", label: \"Open terminal\" },\r\n d: { value: \"theme\", label: \"Toggle theme\" },\r\n };\r\n\r\n handleCommand(item: AiCommandItemConfig) {\r\n const action = `Executed \"${item.label}\" (value: ${item.value})`;\r\n console.log(action);\r\n (this.commandActions[item.value as keyof typeof this.commandActions] ?? (() => this._showAlert(`Action: ${item.label}`)))();\r\n }\r\n\r\n handleKeydown(event: KeyboardEvent) {\r\n if (event.metaKey || event.ctrlKey) {\r\n const key = event.key.toLowerCase();\r\n if (this.keyMap[key]) {\r\n event.preventDefault();\r\n this._executeCommand(this.keyMap[key].value, this.keyMap[key].label);\r\n }\r\n }\r\n }\r\n\r\n private _executeCommand(value: string, label: string) {\r\n this.handleCommand({ value, label } as AiCommandItemConfig);\r\n }\r\n\r\n private _showAlert(message: string, warning = false) {\r\n if (warning) {\r\n console.warn(message);\r\n } else {\r\n console.log(message);\r\n }\r\n }\r\n}\r\n"]}
@@ -0,0 +1,10 @@
1
+ export * from "./command";
2
+ export * from "./command-empty";
3
+ export * from "./command-input";
4
+ export * from "./command-item";
5
+ export * from "./command-item-group";
6
+ export * from "./command-list";
7
+ export * from "./command-separator";
8
+ export * from "./command.imports";
9
+ export * from "./demo/command";
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/ai-ui/src/lib/components/command/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC","sourcesContent":["export * from \"./command\";\r\nexport * from \"./command-empty\";\r\nexport * from \"./command-input\";\r\nexport * from \"./command-item\";\r\nexport * from \"./command-item-group\";\r\nexport * from \"./command-list\";\r\nexport * from \"./command-separator\";\r\nexport * from \"./command.imports\";\r\nexport * from \"./demo/command\";\r\n"]}
@@ -0,0 +1,63 @@
1
+ import { Overlay, OverlayPositionBuilder } from "@angular/cdk/overlay";
2
+ import { TemplatePortal } from "@angular/cdk/portal";
3
+ import { isPlatformBrowser } from "@angular/common";
4
+ import { inject, Injectable, PLATFORM_ID } from "@angular/core";
5
+ import { EMPTY } from "rxjs";
6
+ import * as i0 from "@angular/core";
7
+ export class AiDatePickerOverlayService {
8
+ #overlay = inject(Overlay);
9
+ #overlayPositionBuilder = inject(OverlayPositionBuilder);
10
+ #platformId = inject(PLATFORM_ID);
11
+ #overlayRef;
12
+ #portal;
13
+ create(origin) {
14
+ if (this.#overlayRef)
15
+ return this.#overlayRef;
16
+ if (!isPlatformBrowser(this.#platformId))
17
+ return;
18
+ const positionStrategy = this.#overlayPositionBuilder
19
+ .flexibleConnectedTo(origin)
20
+ .withPositions([
21
+ { originX: "start", originY: "bottom", overlayX: "start", overlayY: "top", offsetY: 4 },
22
+ { originX: "start", originY: "top", overlayX: "start", overlayY: "bottom", offsetY: -4 },
23
+ ])
24
+ .withPush(false);
25
+ this.#overlayRef = this.#overlay.create({
26
+ positionStrategy,
27
+ hasBackdrop: false,
28
+ scrollStrategy: this.#overlay.scrollStrategies.reposition(),
29
+ });
30
+ return this.#overlayRef;
31
+ }
32
+ attach(template, viewContainerRef) {
33
+ if (!this.#overlayRef)
34
+ return;
35
+ if (this.#overlayRef.hasAttached()) {
36
+ this.#overlayRef.detach();
37
+ }
38
+ this.#portal = new TemplatePortal(template, viewContainerRef);
39
+ this.#overlayRef.attach(this.#portal);
40
+ }
41
+ detach() {
42
+ if (this.#overlayRef?.hasAttached()) {
43
+ this.#overlayRef.detach();
44
+ }
45
+ }
46
+ hasAttached() {
47
+ return !!this.#overlayRef?.hasAttached();
48
+ }
49
+ destroy() {
50
+ this.#overlayRef?.dispose();
51
+ this.#overlayRef = undefined;
52
+ this.#portal = undefined;
53
+ }
54
+ outsidePointerEvents() {
55
+ return this.#overlayRef?.outsidePointerEvents() ?? EMPTY;
56
+ }
57
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: AiDatePickerOverlayService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
58
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: AiDatePickerOverlayService });
59
+ }
60
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: AiDatePickerOverlayService, decorators: [{
61
+ type: Injectable
62
+ }] });
63
+ //# sourceMappingURL=date-picker-overlay.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-picker-overlay.service.js","sourceRoot":"","sources":["../../../../../../../libs/ai-ui/src/lib/components/date-picker/date-picker-overlay.service.ts"],"names":[],"mappings":"AAAA,OA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AQ,CAAC,gBAAgB,CAAC,UAAU,EAAE;SAC9D,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC,WAAW,CAAC;IAC5B,CAAC;IAED,MAAM,CAAC,QAA2B,EAAE,gBAAkC;QAClE,IAAI,CAAC,IAAI,CAAC,WAAW;YAAE,OAAO;QAC9B,IAAI,IAAI,CAAC,WAAW,CAAC,WAAW,EAAE,EAAE,CAAC;YACjC,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC;QAC9B,CAAC;QACD,IAAI,CAAC,OAAO,GAAG,IAAI,cAAc,CAAC,QAAQ,EAAE,gBAAgB,CAAC,CAAC;QAC9D,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1C,CAAC;IAED,MAAM;QACF,IAAI,IAAI,CAAC,WAAW,EAAE,WAAW,EAAE,EAAE,CAAC;YAClC,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC;QAC9B,CAAC;IACL,CAAC;IAED,WAAW;QACP,OAAO,CAAC,CAAC,IAAI,CAAC,WAAW,EAAE,WAAW,EAAE,CAAC;IAC7C,CAAC;IAED,OAAO;QACH,IAAI,CAAC,WAAW,EAAE,OAAO,EAAE,CAAC;QAC5B,IAAI,CAAC,WAAW,GAAG,SAAS,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC;IAC7B,CAAC;IAED,oBAAoB;QAChB,OAAO,IAAI,CAAC,WAAW,EAAE,oBAAoB,EAAE,IAAI,KAAK,CAAC;IAC7D,CAAC;uGAxDQ,0BAA0B;2GAA1B,0BAA0B;;2FAA1B,0BAA0B;kBADtC,UAAU","sourcesContent":["import { Overlay, OverlayPositionBuilder, type OverlayRef } from \"@angular/cdk/overlay\";\r\nimport { TemplatePortal } from \"@angular/cdk/portal\";\r\nimport { isPlatformBrowser } from \"@angular/common\";\r\nimport { ElementRef, inject, Injectable, PLATFORM_ID, TemplateRef, ViewContainerRef } from \"@angular/core\";\r\nimport { EMPTY, type Observable } from \"rxjs\";\r\n\r\n@Injectable()\r\nexport class AiDatePickerOverlayService {\r\n readonly #overlay = inject(Overlay);\r\n readonly #overlayPositionBuilder = inject(OverlayPositionBuilder);\r\n readonly #platformId = inject(PLATFORM_ID);\r\n\r\n #overlayRef?: OverlayRef;\r\n #portal?: TemplatePortal;\r\n\r\n create(origin: ElementRef<HTMLElement>): OverlayRef | undefined {\r\n if (this.#overlayRef) return this.#overlayRef;\r\n if (!isPlatformBrowser(this.#platformId)) return;\r\n\r\n const positionStrategy = this.#overlayPositionBuilder\r\n .flexibleConnectedTo(origin)\r\n .withPositions([\r\n { originX: \"start\", originY: \"bottom\", overlayX: \"start\", overlayY: \"top\", offsetY: 4 },\r\n { originX: \"start\", originY: \"top\", overlayX: \"start\", overlayY: \"bottom\", offsetY: -4 },\r\n ])\r\n .withPush(false);\r\n\r\n this.#overlayRef = this.#overlay.create({\r\n positionStrategy,\r\n hasBackdrop: false,\r\n scrollStrategy: this.#overlay.scrollStrategies.reposition(),\r\n });\r\n\r\n return this.#overlayRef;\r\n }\r\n\r\n attach(template: TemplateRef<void>, viewContainerRef: ViewContainerRef) {\r\n if (!this.#overlayRef) return;\r\n if (this.#overlayRef.hasAttached()) {\r\n this.#overlayRef.detach();\r\n }\r\n this.#portal = new TemplatePortal(template, viewContainerRef);\r\n this.#overlayRef.attach(this.#portal);\r\n }\r\n\r\n detach() {\r\n if (this.#overlayRef?.hasAttached()) {\r\n this.#overlayRef.detach();\r\n }\r\n }\r\n\r\n hasAttached(): boolean {\r\n return !!this.#overlayRef?.hasAttached();\r\n }\r\n\r\n destroy() {\r\n this.#overlayRef?.dispose();\r\n this.#overlayRef = undefined;\r\n this.#portal = undefined;\r\n }\r\n\r\n outsidePointerEvents(): Observable<MouseEvent | TouchEvent> {\r\n return this.#overlayRef?.outsidePointerEvents() ?? EMPTY;\r\n }\r\n}\r\n"]}