@caribeng/ui 22.1.1 → 22.4.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 (305) hide show
  1. package/README.md +134 -12
  2. package/fesm2022/caribeng-ui-accordion.mjs +4 -4
  3. package/fesm2022/caribeng-ui-anchor.mjs +169 -0
  4. package/fesm2022/caribeng-ui-autocomplete.mjs +10 -8
  5. package/fesm2022/caribeng-ui-avatar.mjs +2 -2
  6. package/fesm2022/caribeng-ui-avatargroup.mjs +9 -3
  7. package/fesm2022/caribeng-ui-badge.mjs +8 -2
  8. package/fesm2022/caribeng-ui-blockui.mjs +12 -4
  9. package/fesm2022/caribeng-ui-breadcrumb.mjs +17 -7
  10. package/fesm2022/caribeng-ui-button.mjs +22 -2
  11. package/fesm2022/caribeng-ui-caribe-alert.mjs +5 -2
  12. package/fesm2022/caribeng-ui-caribe-animation-lottie.mjs +6 -3
  13. package/fesm2022/caribeng-ui-caribe-button-group.mjs +6 -3
  14. package/fesm2022/caribeng-ui-caribe-calendar.mjs +11 -6
  15. package/fesm2022/caribeng-ui-caribe-card-content.mjs +6 -3
  16. package/fesm2022/caribeng-ui-caribe-card-move.mjs +29 -7
  17. package/fesm2022/caribeng-ui-caribe-card-select.mjs +56 -14
  18. package/fesm2022/caribeng-ui-caribe-circle-loading.mjs +10 -7
  19. package/fesm2022/caribeng-ui-caribe-coachmark.mjs +42 -19
  20. package/fesm2022/caribeng-ui-caribe-data-table.mjs +15 -9
  21. package/fesm2022/caribeng-ui-caribe-dots-indicator.mjs +38 -5
  22. package/fesm2022/caribeng-ui-caribe-expansion-panel.mjs +16 -5
  23. package/fesm2022/caribeng-ui-caribe-fab-menu.mjs +56 -7
  24. package/fesm2022/caribeng-ui-caribe-file-download.mjs +68 -27
  25. package/fesm2022/caribeng-ui-caribe-file-select.mjs +22 -17
  26. package/fesm2022/caribeng-ui-caribe-float-menu.mjs +6 -3
  27. package/fesm2022/caribeng-ui-caribe-footer.mjs +8 -4
  28. package/fesm2022/caribeng-ui-caribe-header.mjs +6 -3
  29. package/fesm2022/caribeng-ui-caribe-icon-button.mjs +6 -3
  30. package/fesm2022/caribeng-ui-caribe-illustration.mjs +6 -3
  31. package/fesm2022/caribeng-ui-caribe-inline-alert.mjs +5 -2
  32. package/fesm2022/caribeng-ui-caribe-input-search.mjs +14 -10
  33. package/fesm2022/caribeng-ui-caribe-input-select.mjs +12 -10
  34. package/fesm2022/caribeng-ui-caribe-input-token.mjs +61 -11
  35. package/fesm2022/caribeng-ui-caribe-link.mjs +7 -2
  36. package/fesm2022/caribeng-ui-caribe-loader.mjs +8 -5
  37. package/fesm2022/caribeng-ui-caribe-modal.mjs +32 -16
  38. package/fesm2022/caribeng-ui-caribe-off-canvas.mjs +26 -12
  39. package/fesm2022/caribeng-ui-caribe-onboarding.mjs +44 -19
  40. package/fesm2022/caribeng-ui-caribe-pictogram.mjs +6 -3
  41. package/fesm2022/caribeng-ui-caribe-pop-over.mjs +34 -10
  42. package/fesm2022/caribeng-ui-caribe-preloader.mjs +9 -6
  43. package/fesm2022/caribeng-ui-caribe-progress-bar.mjs +5 -2
  44. package/fesm2022/caribeng-ui-caribe-shortcut.mjs +8 -3
  45. package/fesm2022/caribeng-ui-caribe-step-indicator.mjs +12 -5
  46. package/fesm2022/caribeng-ui-caribe-stroke.mjs +6 -3
  47. package/fesm2022/caribeng-ui-caribe-switch.mjs +5 -3
  48. package/fesm2022/caribeng-ui-caribe-tag-button.mjs +1 -1
  49. package/fesm2022/caribeng-ui-caribe-tracker.mjs +5 -2
  50. package/fesm2022/caribeng-ui-caribe-transaction-status.mjs +1 -1
  51. package/fesm2022/caribeng-ui-caribe-voucher.mjs +11 -8
  52. package/fesm2022/caribeng-ui-carousel.mjs +49 -14
  53. package/fesm2022/caribeng-ui-cascadeselect.mjs +22 -8
  54. package/fesm2022/caribeng-ui-chart.mjs +2601 -303
  55. package/fesm2022/caribeng-ui-chat.mjs +1303 -0
  56. package/fesm2022/caribeng-ui-chip.mjs +9 -4
  57. package/fesm2022/caribeng-ui-chips.mjs +9 -5
  58. package/fesm2022/caribeng-ui-code-block.mjs +332 -0
  59. package/fesm2022/caribeng-ui-colorpicker.mjs +107 -11
  60. package/fesm2022/caribeng-ui-command-palette.mjs +476 -0
  61. package/fesm2022/caribeng-ui-confirmdialog.mjs +140 -10
  62. package/fesm2022/caribeng-ui-confirmpopup.mjs +209 -9
  63. package/fesm2022/caribeng-ui-contextmenu.mjs +13 -6
  64. package/fesm2022/caribeng-ui-copy-button.mjs +230 -0
  65. package/fesm2022/caribeng-ui-dataview.mjs +214 -6
  66. package/fesm2022/caribeng-ui-datepicker.mjs +1630 -393
  67. package/fesm2022/caribeng-ui-descriptions.mjs +124 -0
  68. package/fesm2022/caribeng-ui-dialog.mjs +10 -7
  69. package/fesm2022/caribeng-ui-dock.mjs +58 -15
  70. package/fesm2022/caribeng-ui-drawer.mjs +17 -9
  71. package/fesm2022/caribeng-ui-dynamicdialog.mjs +210 -6
  72. package/fesm2022/caribeng-ui-editor.mjs +4413 -243
  73. package/fesm2022/caribeng-ui-empty.mjs +80 -0
  74. package/fesm2022/caribeng-ui-fieldset.mjs +2 -2
  75. package/fesm2022/caribeng-ui-file-card.mjs +136 -19
  76. package/fesm2022/caribeng-ui-fileupload.mjs +96 -19
  77. package/fesm2022/caribeng-ui-floatlabel.mjs +4 -2
  78. package/fesm2022/caribeng-ui-folder-card.mjs +132 -15
  79. package/fesm2022/caribeng-ui-galleria.mjs +76 -45
  80. package/fesm2022/caribeng-ui-image.mjs +52 -29
  81. package/fesm2022/caribeng-ui-inlinemessage.mjs +2 -2
  82. package/fesm2022/caribeng-ui-inplace.mjs +22 -6
  83. package/fesm2022/caribeng-ui-input-number.mjs +9 -7
  84. package/fesm2022/caribeng-ui-inputgroup.mjs +2 -2
  85. package/fesm2022/caribeng-ui-inputmask.mjs +22 -13
  86. package/fesm2022/caribeng-ui-inputotp.mjs +12 -6
  87. package/fesm2022/caribeng-ui-kanban.mjs +4612 -0
  88. package/fesm2022/caribeng-ui-kbd.mjs +122 -0
  89. package/fesm2022/caribeng-ui-keyfilter.mjs +72 -0
  90. package/fesm2022/caribeng-ui-listbox.mjs +13 -11
  91. package/fesm2022/caribeng-ui-megamenu.mjs +228 -32
  92. package/fesm2022/caribeng-ui-mentions.mjs +495 -0
  93. package/fesm2022/caribeng-ui-menu.mjs +18 -8
  94. package/fesm2022/caribeng-ui-menubar.mjs +17 -8
  95. package/fesm2022/caribeng-ui-message.mjs +13 -7
  96. package/fesm2022/caribeng-ui-metergroup.mjs +29 -11
  97. package/fesm2022/caribeng-ui-multiselect.mjs +399 -97
  98. package/fesm2022/caribeng-ui-orderlist.mjs +230 -11
  99. package/fesm2022/caribeng-ui-organizationchart.mjs +16 -15
  100. package/fesm2022/caribeng-ui-paginator.mjs +18 -15
  101. package/fesm2022/caribeng-ui-panel.mjs +11 -8
  102. package/fesm2022/caribeng-ui-panelmenu.mjs +14 -8
  103. package/fesm2022/caribeng-ui-password.mjs +8 -6
  104. package/fesm2022/caribeng-ui-pdfviewer.mjs +1553 -0
  105. package/fesm2022/caribeng-ui-phone-input.mjs +688 -0
  106. package/fesm2022/caribeng-ui-picklist.mjs +251 -14
  107. package/fesm2022/caribeng-ui-pricing.mjs +272 -75
  108. package/fesm2022/caribeng-ui-qrcode.mjs +564 -0
  109. package/fesm2022/caribeng-ui-rating.mjs +7 -3
  110. package/fesm2022/caribeng-ui-repeater.mjs +223 -0
  111. package/fesm2022/caribeng-ui-result.mjs +91 -0
  112. package/fesm2022/caribeng-ui-ripple.mjs +2 -0
  113. package/fesm2022/caribeng-ui-scrollpanel.mjs +6 -3
  114. package/fesm2022/caribeng-ui-scrolltop.mjs +9 -4
  115. package/fesm2022/caribeng-ui-select.mjs +379 -87
  116. package/fesm2022/caribeng-ui-selectbutton.mjs +2 -2
  117. package/fesm2022/caribeng-ui-sidebar.mjs +573 -0
  118. package/fesm2022/caribeng-ui-slider.mjs +171 -75
  119. package/fesm2022/caribeng-ui-speeddial.mjs +7 -4
  120. package/fesm2022/caribeng-ui-spinner.mjs +5 -2
  121. package/fesm2022/caribeng-ui-splitbutton.mjs +163 -0
  122. package/fesm2022/caribeng-ui-splitter.mjs +5 -2
  123. package/fesm2022/caribeng-ui-statistic.mjs +183 -0
  124. package/fesm2022/caribeng-ui-stepper.mjs +17 -7
  125. package/fesm2022/caribeng-ui-steps.mjs +6 -3
  126. package/fesm2022/caribeng-ui-table.mjs +716 -84
  127. package/fesm2022/caribeng-ui-tabmenu.mjs +13 -6
  128. package/fesm2022/caribeng-ui-tag.mjs +2 -2
  129. package/fesm2022/caribeng-ui-terminal.mjs +45 -9
  130. package/fesm2022/caribeng-ui-themetoggle.mjs +82 -0
  131. package/fesm2022/caribeng-ui-tieredmenu.mjs +113 -20
  132. package/fesm2022/caribeng-ui-timeline.mjs +175 -6
  133. package/fesm2022/caribeng-ui-toast.mjs +7 -4
  134. package/fesm2022/caribeng-ui-togglebutton.mjs +8 -6
  135. package/fesm2022/caribeng-ui-toolbar.mjs +6 -3
  136. package/fesm2022/caribeng-ui-tree.mjs +302 -6
  137. package/fesm2022/caribeng-ui-treeselect.mjs +26 -10
  138. package/fesm2022/caribeng-ui-treetable.mjs +269 -6
  139. package/fesm2022/caribeng-ui-virtualscroller.mjs +123 -10
  140. package/fesm2022/caribeng-ui.mjs +1216 -6
  141. package/package.json +93 -3
  142. package/schematics/collection.json +15 -0
  143. package/schematics/migrate-from-primeng/core-icons.json +1 -0
  144. package/schematics/migrate-from-primeng/icons.js +269 -0
  145. package/schematics/migrate-from-primeng/index.js +290 -0
  146. package/schematics/migrate-from-primeng/mappings/button.js +93 -0
  147. package/schematics/migrate-from-primeng/mappings/card.js +33 -0
  148. package/schematics/migrate-from-primeng/mappings/checkbox.js +44 -0
  149. package/schematics/migrate-from-primeng/mappings/confirm.js +221 -0
  150. package/schematics/migrate-from-primeng/mappings/datepicker.js +121 -0
  151. package/schematics/migrate-from-primeng/mappings/dialog.js +84 -0
  152. package/schematics/migrate-from-primeng/mappings/index.js +88 -0
  153. package/schematics/migrate-from-primeng/mappings/inputnumber.js +62 -0
  154. package/schematics/migrate-from-primeng/mappings/inputtext.js +60 -0
  155. package/schematics/migrate-from-primeng/mappings/menu.js +468 -0
  156. package/schematics/migrate-from-primeng/mappings/multiselect.js +49 -0
  157. package/schematics/migrate-from-primeng/mappings/radiobutton.js +22 -0
  158. package/schematics/migrate-from-primeng/mappings/rules.js +206 -0
  159. package/schematics/migrate-from-primeng/mappings/select.js +97 -0
  160. package/schematics/migrate-from-primeng/mappings/service-calls.js +100 -0
  161. package/schematics/migrate-from-primeng/mappings/table.js +613 -0
  162. package/schematics/migrate-from-primeng/mappings/tabs.js +225 -0
  163. package/schematics/migrate-from-primeng/mappings/tag.js +29 -0
  164. package/schematics/migrate-from-primeng/mappings/textarea.js +44 -0
  165. package/schematics/migrate-from-primeng/mappings/toast.js +173 -0
  166. package/schematics/migrate-from-primeng/mappings/toggleswitch.js +37 -0
  167. package/schematics/migrate-from-primeng/mappings/tooltip.js +44 -0
  168. package/schematics/migrate-from-primeng/mappings/types.js +10 -0
  169. package/schematics/migrate-from-primeng/report.js +79 -0
  170. package/schematics/migrate-from-primeng/schema.js +2 -0
  171. package/schematics/migrate-from-primeng/schema.json +34 -0
  172. package/schematics/migrate-from-primeng/template.js +387 -0
  173. package/schematics/migrate-from-primeng/todo.js +5 -0
  174. package/schematics/migrate-from-primeng/typescript.js +442 -0
  175. package/schematics/migrate-from-primeng/workspace.js +117 -0
  176. package/schematics/ng-add/index.js +140 -0
  177. package/schematics/ng-add/schema.js +2 -0
  178. package/schematics/ng-add/schema.json +66 -0
  179. package/types/caribeng-ui-anchor.d.ts +50 -0
  180. package/types/caribeng-ui-autocomplete.d.ts +4 -2
  181. package/types/caribeng-ui-avatargroup.d.ts +3 -1
  182. package/types/caribeng-ui-badge.d.ts +3 -1
  183. package/types/caribeng-ui-blockui.d.ts +9 -4
  184. package/types/caribeng-ui-breadcrumb.d.ts +11 -0
  185. package/types/caribeng-ui-button.d.ts +9 -1
  186. package/types/caribeng-ui-caribe-alert.d.ts +3 -0
  187. package/types/caribeng-ui-caribe-animation-lottie.d.ts +4 -1
  188. package/types/caribeng-ui-caribe-button-group.d.ts +4 -1
  189. package/types/caribeng-ui-caribe-calendar.d.ts +5 -1
  190. package/types/caribeng-ui-caribe-card-content.d.ts +4 -1
  191. package/types/caribeng-ui-caribe-card-move.d.ts +13 -13
  192. package/types/caribeng-ui-caribe-card-select.d.ts +10 -1
  193. package/types/caribeng-ui-caribe-circle-loading.d.ts +4 -1
  194. package/types/caribeng-ui-caribe-coachmark.d.ts +6 -0
  195. package/types/caribeng-ui-caribe-data-table.d.ts +7 -2
  196. package/types/caribeng-ui-caribe-dots-indicator.d.ts +9 -0
  197. package/types/caribeng-ui-caribe-expansion-panel.d.ts +7 -10
  198. package/types/caribeng-ui-caribe-fab-menu.d.ts +10 -1
  199. package/types/caribeng-ui-caribe-file-download.d.ts +8 -10
  200. package/types/caribeng-ui-caribe-file-select.d.ts +7 -1
  201. package/types/caribeng-ui-caribe-float-menu.d.ts +4 -1
  202. package/types/caribeng-ui-caribe-header.d.ts +3 -0
  203. package/types/caribeng-ui-caribe-icon-button.d.ts +4 -1
  204. package/types/caribeng-ui-caribe-illustration.d.ts +4 -1
  205. package/types/caribeng-ui-caribe-inline-alert.d.ts +3 -0
  206. package/types/caribeng-ui-caribe-input-search.d.ts +4 -2
  207. package/types/caribeng-ui-caribe-input-select.d.ts +4 -2
  208. package/types/caribeng-ui-caribe-input-token.d.ts +16 -1
  209. package/types/caribeng-ui-caribe-link.d.ts +3 -0
  210. package/types/caribeng-ui-caribe-loader.d.ts +4 -1
  211. package/types/caribeng-ui-caribe-modal.d.ts +7 -10
  212. package/types/caribeng-ui-caribe-off-canvas.d.ts +6 -1
  213. package/types/caribeng-ui-caribe-onboarding.d.ts +6 -0
  214. package/types/caribeng-ui-caribe-pictogram.d.ts +4 -1
  215. package/types/caribeng-ui-caribe-pop-over.d.ts +7 -10
  216. package/types/caribeng-ui-caribe-preloader.d.ts +4 -1
  217. package/types/caribeng-ui-caribe-progress-bar.d.ts +3 -0
  218. package/types/caribeng-ui-caribe-shortcut.d.ts +3 -1
  219. package/types/caribeng-ui-caribe-step-indicator.d.ts +6 -0
  220. package/types/caribeng-ui-caribe-stroke.d.ts +4 -1
  221. package/types/caribeng-ui-caribe-switch.d.ts +3 -1
  222. package/types/caribeng-ui-caribe-tracker.d.ts +3 -0
  223. package/types/caribeng-ui-caribe-voucher.d.ts +5 -2
  224. package/types/caribeng-ui-carousel.d.ts +10 -1
  225. package/types/caribeng-ui-cascadeselect.d.ts +7 -2
  226. package/types/caribeng-ui-chart.d.ts +471 -44
  227. package/types/caribeng-ui-chat.d.ts +299 -0
  228. package/types/caribeng-ui-chip.d.ts +6 -0
  229. package/types/caribeng-ui-chips.d.ts +6 -2
  230. package/types/caribeng-ui-code-block.d.ts +65 -0
  231. package/types/caribeng-ui-colorpicker.d.ts +8 -2
  232. package/types/caribeng-ui-command-palette.d.ts +133 -0
  233. package/types/caribeng-ui-confirmdialog.d.ts +57 -6
  234. package/types/caribeng-ui-confirmpopup.d.ts +74 -5
  235. package/types/caribeng-ui-contextmenu.d.ts +11 -1
  236. package/types/caribeng-ui-copy-button.d.ts +90 -0
  237. package/types/caribeng-ui-dataview.d.ts +65 -5
  238. package/types/caribeng-ui-datepicker.d.ts +186 -21
  239. package/types/caribeng-ui-descriptions.d.ts +63 -0
  240. package/types/caribeng-ui-dialog.d.ts +4 -1
  241. package/types/caribeng-ui-dock.d.ts +17 -2
  242. package/types/caribeng-ui-drawer.d.ts +7 -2
  243. package/types/caribeng-ui-dynamicdialog.d.ts +93 -3
  244. package/types/caribeng-ui-editor.d.ts +486 -13
  245. package/types/caribeng-ui-empty.d.ts +34 -0
  246. package/types/caribeng-ui-file-card.d.ts +28 -3
  247. package/types/caribeng-ui-fileupload.d.ts +27 -4
  248. package/types/caribeng-ui-folder-card.d.ts +31 -6
  249. package/types/caribeng-ui-galleria.d.ts +9 -0
  250. package/types/caribeng-ui-image.d.ts +10 -0
  251. package/types/caribeng-ui-inplace.d.ts +8 -0
  252. package/types/caribeng-ui-input-number.d.ts +3 -1
  253. package/types/caribeng-ui-inputmask.d.ts +8 -1
  254. package/types/caribeng-ui-inputotp.d.ts +7 -2
  255. package/types/caribeng-ui-kanban.d.ts +783 -0
  256. package/types/caribeng-ui-kbd.d.ts +36 -0
  257. package/types/caribeng-ui-keyfilter.d.ts +30 -0
  258. package/types/caribeng-ui-listbox.d.ts +5 -3
  259. package/types/caribeng-ui-megamenu.d.ts +37 -2
  260. package/types/caribeng-ui-mentions.d.ts +127 -0
  261. package/types/caribeng-ui-menu.d.ts +14 -2
  262. package/types/caribeng-ui-menubar.d.ts +12 -1
  263. package/types/caribeng-ui-message.d.ts +5 -0
  264. package/types/caribeng-ui-metergroup.d.ts +9 -1
  265. package/types/caribeng-ui-multiselect.d.ts +71 -10
  266. package/types/caribeng-ui-orderlist.d.ts +58 -6
  267. package/types/caribeng-ui-organizationchart.d.ts +7 -1
  268. package/types/caribeng-ui-paginator.d.ts +3 -0
  269. package/types/caribeng-ui-panel.d.ts +3 -0
  270. package/types/caribeng-ui-panelmenu.d.ts +11 -1
  271. package/types/caribeng-ui-password.d.ts +4 -2
  272. package/types/caribeng-ui-pdfviewer.d.ts +258 -0
  273. package/types/caribeng-ui-phone-input.d.ts +168 -0
  274. package/types/caribeng-ui-picklist.d.ts +67 -7
  275. package/types/caribeng-ui-pricing.d.ts +49 -9
  276. package/types/caribeng-ui-qrcode.d.ts +88 -0
  277. package/types/caribeng-ui-rating.d.ts +6 -2
  278. package/types/caribeng-ui-repeater.d.ts +79 -0
  279. package/types/caribeng-ui-result.d.ts +35 -0
  280. package/types/caribeng-ui-scrollpanel.d.ts +4 -1
  281. package/types/caribeng-ui-scrolltop.d.ts +4 -1
  282. package/types/caribeng-ui-select.d.ts +73 -9
  283. package/types/caribeng-ui-sidebar.d.ts +167 -0
  284. package/types/caribeng-ui-slider.d.ts +63 -10
  285. package/types/caribeng-ui-speeddial.d.ts +5 -2
  286. package/types/caribeng-ui-spinner.d.ts +3 -0
  287. package/types/caribeng-ui-splitbutton.d.ts +49 -0
  288. package/types/caribeng-ui-splitter.d.ts +3 -0
  289. package/types/caribeng-ui-statistic.d.ts +65 -0
  290. package/types/caribeng-ui-stepper.d.ts +5 -0
  291. package/types/caribeng-ui-steps.d.ts +4 -1
  292. package/types/caribeng-ui-table.d.ts +185 -17
  293. package/types/caribeng-ui-tabmenu.d.ts +11 -1
  294. package/types/caribeng-ui-terminal.d.ts +10 -0
  295. package/types/caribeng-ui-themetoggle.d.ts +32 -0
  296. package/types/caribeng-ui-tieredmenu.d.ts +22 -3
  297. package/types/caribeng-ui-timeline.d.ts +63 -4
  298. package/types/caribeng-ui-toast.d.ts +3 -0
  299. package/types/caribeng-ui-togglebutton.d.ts +5 -3
  300. package/types/caribeng-ui-toolbar.d.ts +7 -4
  301. package/types/caribeng-ui-tree.d.ts +76 -4
  302. package/types/caribeng-ui-treeselect.d.ts +10 -2
  303. package/types/caribeng-ui-treetable.d.ts +68 -4
  304. package/types/caribeng-ui-virtualscroller.d.ts +45 -5
  305. package/types/caribeng-ui.d.ts +775 -12
@@ -0,0 +1,140 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CARIBENG_STYLES = void 0;
4
+ exports.ngAdd = ngAdd;
5
+ exports.providerConfig = providerConfig;
6
+ exports.projectSourceRoot = projectSourceRoot;
7
+ exports.addStyles = addStyles;
8
+ exports.containsText = containsText;
9
+ const schematics_1 = require("@angular-devkit/schematics");
10
+ const utility_1 = require("@schematics/angular/utility");
11
+ /** Hoja de estilos de CaribeNG (export `./styles.css` del paquete). */
12
+ exports.CARIBENG_STYLES = '@caribeng/ui/styles.css';
13
+ /** Otras formas de referirse a la misma hoja (si ya está, no se duplica). */
14
+ const STYLE_ALIASES = [
15
+ exports.CARIBENG_STYLES,
16
+ '@caribeng/ui/styles/caribeng.css',
17
+ 'node_modules/@caribeng/ui/styles/caribeng.css',
18
+ './node_modules/@caribeng/ui/styles/caribeng.css',
19
+ ];
20
+ /** Targets de angular.json que llevan la lista de estilos globales. */
21
+ const STYLE_TARGETS = ['build', 'test'];
22
+ /**
23
+ * `ng add @caribeng/ui`: registra `provideCaribeNG()` con el idioma, tema y
24
+ * paleta elegidos, y añade la hoja de estilos a `angular.json`. Es idempotente:
25
+ * ejecutarlo dos veces no duplica el proveedor ni los estilos.
26
+ */
27
+ function ngAdd(options) {
28
+ return async (tree, context) => {
29
+ const project = await resolveProject(tree, options.project);
30
+ const sourceRoot = await projectSourceRoot(tree, project);
31
+ const hasProvider = containsText(tree, sourceRoot, 'provideCaribeNG(');
32
+ if (hasProvider) {
33
+ context.logger.info('ℹ provideCaribeNG() ya está configurado: no se modifica.');
34
+ }
35
+ return (0, schematics_1.chain)([
36
+ options.styles === false ? (0, schematics_1.noop)() : addStyles(project),
37
+ hasProvider
38
+ ? (0, schematics_1.noop)()
39
+ : (0, utility_1.addRootProvider)(project, ({ code, external }) => code `${external('provideCaribeNG', '@caribeng/ui')}(${providerConfig(options)})`),
40
+ logNextSteps(options),
41
+ ]);
42
+ };
43
+ }
44
+ /** Configuración de `provideCaribeNG()` con las opciones elegidas. */
45
+ function providerConfig(options) {
46
+ return `{ locale: '${options.locale ?? 'es'}', theme: '${options.theme ?? 'light'}', preset: '${options.preset ?? 'emerald'}' }`;
47
+ }
48
+ /** Proyecto indicado o, si no se indica, la aplicación del workspace (la primera si hay varias). */
49
+ async function resolveProject(tree, name) {
50
+ const workspace = await (0, utility_1.readWorkspace)(tree);
51
+ if (name) {
52
+ if (!workspace.projects.has(name))
53
+ throw new schematics_1.SchematicsException(`No existe el proyecto "${name}" en angular.json.`);
54
+ return name;
55
+ }
56
+ const apps = [...workspace.projects.entries()].filter(([, p]) => p.extensions['projectType'] === 'application');
57
+ if (!apps.length)
58
+ throw new schematics_1.SchematicsException('No hay ninguna aplicación en angular.json. Indica una con --project.');
59
+ return apps[0][0];
60
+ }
61
+ async function projectSourceRoot(tree, name) {
62
+ const project = (await (0, utility_1.readWorkspace)(tree)).projects.get(name);
63
+ return project.sourceRoot ?? `${project.root ? project.root + '/' : ''}src`;
64
+ }
65
+ /** Añade la hoja de estilos al principio de `styles` (los estilos propios de la app la pueden sobrescribir). */
66
+ function addStyles(projectName) {
67
+ return (0, utility_1.updateWorkspace)((workspace) => {
68
+ const project = workspace.projects.get(projectName);
69
+ if (!project)
70
+ return;
71
+ for (const targetName of STYLE_TARGETS) {
72
+ const target = project.targets.get(targetName);
73
+ if (!target)
74
+ continue;
75
+ target.options ??= {};
76
+ const styles = Array.isArray(target.options['styles']) ? [...target.options['styles']] : [];
77
+ const present = styles.some((entry) => STYLE_ALIASES.includes(styleInput(entry)));
78
+ if (!present)
79
+ target.options['styles'] = [exports.CARIBENG_STYLES, ...styles];
80
+ }
81
+ });
82
+ }
83
+ /** `styles` admite cadenas u objetos `{ input, bundleName, inject }`. */
84
+ function styleInput(entry) {
85
+ if (typeof entry === 'string')
86
+ return entry;
87
+ if (entry && typeof entry === 'object' && typeof entry.input === 'string') {
88
+ return entry.input;
89
+ }
90
+ return '';
91
+ }
92
+ /** Busca un texto en los `.ts` del proyecto (para no registrar el proveedor dos veces). */
93
+ function containsText(tree, root, text) {
94
+ let found = false;
95
+ tree.getDir(root).visit((path) => {
96
+ if (found || !path.endsWith('.ts') || path.endsWith('.spec.ts'))
97
+ return;
98
+ found = tree.readText(path).includes(text);
99
+ });
100
+ return found;
101
+ }
102
+ function logNextSteps(options) {
103
+ return (tree, context) => {
104
+ const es = options.locale !== 'en';
105
+ const lines = es
106
+ ? [
107
+ '',
108
+ '✔ CaribeNG está listo.',
109
+ '',
110
+ ' Importa los componentes desde su entry point, por ejemplo:',
111
+ " import { CbButton } from '@caribeng/ui/button';",
112
+ '',
113
+ ' Documentación y catálogo: https://github.com/caribeng/ui#readme',
114
+ '',
115
+ ]
116
+ : [
117
+ '',
118
+ '✔ CaribeNG is ready.',
119
+ '',
120
+ ' Import components from their entry point, for example:',
121
+ " import { CbButton } from '@caribeng/ui/button';",
122
+ '',
123
+ ' Docs and catalog: https://github.com/caribeng/ui#readme',
124
+ '',
125
+ ];
126
+ lines.forEach((line) => context.logger.info(line));
127
+ if (usesPrimeng(tree)) {
128
+ context.logger.warn(es
129
+ ? '⚠ Este proyecto usa PrimeNG. Para migrar sus componentes a CaribeNG ejecuta:\n ng generate @caribeng/ui:migrate-from-primeng'
130
+ : '⚠ This project uses PrimeNG. To migrate its components to CaribeNG run:\n ng generate @caribeng/ui:migrate-from-primeng');
131
+ }
132
+ };
133
+ }
134
+ /** `primeng` aparece en las dependencias del package.json raíz. */
135
+ function usesPrimeng(tree) {
136
+ if (!tree.exists('/package.json'))
137
+ return false;
138
+ const pkg = JSON.parse(tree.readText('/package.json'));
139
+ return Boolean(pkg['dependencies']?.['primeng'] ?? pkg['devDependencies']?.['primeng']);
140
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,66 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "$id": "caribeng-ng-add",
4
+ "title": "CaribeNG ng-add",
5
+ "type": "object",
6
+ "properties": {
7
+ "project": {
8
+ "type": "string",
9
+ "description": "Proyecto (aplicación) donde configurar CaribeNG. Por defecto, la única aplicación del workspace.",
10
+ "$default": { "$source": "projectName" }
11
+ },
12
+ "locale": {
13
+ "type": "string",
14
+ "description": "Idioma de los textos de interfaz de los componentes.",
15
+ "enum": ["es", "en"],
16
+ "default": "es",
17
+ "x-prompt": {
18
+ "message": "Idioma de los componentes / Component language:",
19
+ "type": "list",
20
+ "items": [
21
+ { "value": "es", "label": "Español" },
22
+ { "value": "en", "label": "English" }
23
+ ]
24
+ }
25
+ },
26
+ "theme": {
27
+ "type": "string",
28
+ "description": "Tema inicial: claro, oscuro o el del sistema operativo.",
29
+ "enum": ["light", "dark", "system"],
30
+ "default": "light",
31
+ "x-prompt": {
32
+ "message": "Tema / Theme:",
33
+ "type": "list",
34
+ "items": [
35
+ { "value": "light", "label": "Claro / Light" },
36
+ { "value": "dark", "label": "Oscuro / Dark" },
37
+ { "value": "system", "label": "El del sistema / System" }
38
+ ]
39
+ }
40
+ },
41
+ "preset": {
42
+ "type": "string",
43
+ "description": "Paleta de color primaria.",
44
+ "enum": ["emerald", "ocean", "coral", "amber", "violet", "rose"],
45
+ "default": "emerald",
46
+ "x-prompt": {
47
+ "message": "Color primario / Primary color:",
48
+ "type": "list",
49
+ "items": [
50
+ { "value": "emerald", "label": "Emerald (verde)" },
51
+ { "value": "ocean", "label": "Ocean (azul)" },
52
+ { "value": "coral", "label": "Coral" },
53
+ { "value": "amber", "label": "Amber (ámbar)" },
54
+ { "value": "violet", "label": "Violet (violeta)" },
55
+ { "value": "rose", "label": "Rose (rosa)" }
56
+ ]
57
+ }
58
+ },
59
+ "styles": {
60
+ "type": "boolean",
61
+ "description": "Añade @caribeng/ui/styles.css a los estilos del proyecto en angular.json.",
62
+ "default": true
63
+ }
64
+ },
65
+ "required": []
66
+ }
@@ -0,0 +1,50 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import * as _caribeng_ui from '@caribeng/ui';
3
+
4
+ /** Enlace del índice: `href` apunta al id de la sección (`#seccion`). */
5
+ interface CbAnchorLink {
6
+ label: string;
7
+ href: string;
8
+ children?: CbAnchorLink[];
9
+ }
10
+ /**
11
+ * Anchor de CaribeNG: índice de la página ("En esta página") que resalta la
12
+ * sección visible (`aria-current="location"`) y, al hacer clic, desplaza hasta
13
+ * ella teniendo en cuenta una cabecera fija (`offset`) y le pasa el foco.
14
+ *
15
+ * @example
16
+ * ```html
17
+ * <cb-anchor [offset]="64" [links]="[
18
+ * { label: 'Resumen', href: '#resumen' },
19
+ * { label: 'Movimientos', href: '#movimientos', children: [{ label: 'Pendientes', href: '#pendientes' }] },
20
+ * ]" />
21
+ * ```
22
+ */
23
+ declare class CbAnchor {
24
+ /** Textos de interfaz en el idioma activo (`provideCaribeNG({ locale })`). */
25
+ protected readonly t: _angular_core.Signal<_caribeng_ui.CbTranslation>;
26
+ private readonly document;
27
+ readonly links: _angular_core.InputSignal<readonly CbAnchorLink[]>;
28
+ /** Alto (px) de la cabecera fija que tapa la parte superior de la página. */
29
+ readonly offset: _angular_core.InputSignal<number>;
30
+ /** Nombre de la navegación. Por defecto, "En esta página" del idioma activo. */
31
+ readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
32
+ /** Se emite al cambiar la sección visible (su `href`). */
33
+ readonly activeChange: _angular_core.OutputEmitterRef<string | null>;
34
+ protected readonly active: _angular_core.WritableSignal<string | null>;
35
+ private frame;
36
+ constructor();
37
+ private readonly onScroll;
38
+ /** Sección activa: la última cuyo inicio ya pasó la línea de la cabecera fija. */
39
+ update(): void;
40
+ /** Desplaza hasta la sección, deja el foco en ella y actualiza la URL. */
41
+ protected go(event: MouseEvent, link: CbAnchorLink): void;
42
+ private flatHrefs;
43
+ private target;
44
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CbAnchor, never>;
45
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CbAnchor, "cb-anchor", never, { "links": { "alias": "links"; "required": false; "isSignal": true; }; "offset": { "alias": "offset"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "activeChange": "activeChange"; }, never, never, true, never>;
46
+ }
47
+
48
+ export { CbAnchor };
49
+ export type { CbAnchorLink };
50
+ //# sourceMappingURL=caribeng-ui-anchor.d.ts.map
@@ -1,6 +1,6 @@
1
+ import * as _angular_core from '@angular/core';
1
2
  import * as _caribeng_ui from '@caribeng/ui';
2
3
  import { CbSize, CbRequiredIndicator } from '@caribeng/ui';
3
- import * as _angular_core from '@angular/core';
4
4
  import { ControlValueAccessor } from '@angular/forms';
5
5
  import { ConnectedPosition } from '@angular/cdk/overlay';
6
6
 
@@ -20,6 +20,8 @@ import { ConnectedPosition } from '@angular/cdk/overlay';
20
20
  * ```
21
21
  */
22
22
  declare class CbAutocomplete implements ControlValueAccessor {
23
+ /** Textos de interfaz en el idioma activo (`provideCaribeNG({ locale })`). */
24
+ protected readonly t: _angular_core.Signal<_caribeng_ui.CbTranslation>;
23
25
  /** Valor seleccionado (two-way opcional fuera de Angular Forms). */
24
26
  readonly value: _angular_core.ModelSignal<unknown>;
25
27
  /** Sugerencias a mostrar (las provee y filtra el consumidor). */
@@ -36,7 +38,7 @@ declare class CbAutocomplete implements ControlValueAccessor {
36
38
  readonly forceSelection: _angular_core.InputSignalWithTransform<boolean, unknown>;
37
39
  /** Muestra un botón para desplegar todas las sugerencias. */
38
40
  readonly dropdown: _angular_core.InputSignalWithTransform<boolean, unknown>;
39
- readonly emptyMessage: _angular_core.InputSignal<string>;
41
+ readonly emptyMessage: _angular_core.InputSignal<string | undefined>;
40
42
  readonly label: _angular_core.InputSignal<string>;
41
43
  readonly hint: _angular_core.InputSignal<string>;
42
44
  readonly error: _angular_core.InputSignal<string>;
@@ -4,8 +4,10 @@ import * as i0 from '@angular/core';
4
4
  * AvatarGroup de CaribeNG: agrupa varios `<cb-avatar>` con superposición visual.
5
5
  */
6
6
  declare class CbAvatarGroup {
7
+ /** Nombre accesible del grupo (p. ej. "Participantes"). */
8
+ readonly ariaLabel: i0.InputSignal<string | undefined>;
7
9
  static ɵfac: i0.ɵɵFactoryDeclaration<CbAvatarGroup, never>;
8
- static ɵcmp: i0.ɵɵComponentDeclaration<CbAvatarGroup, "cb-avatar-group", never, {}, {}, never, ["*"], true, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<CbAvatarGroup, "cb-avatar-group", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
9
11
  }
10
12
 
11
13
  export { CbAvatarGroup };
@@ -19,8 +19,10 @@ declare class CbBadge {
19
19
  readonly size: _angular_core.InputSignal<CbSize>;
20
20
  /** Muestra solo un punto (sin texto). */
21
21
  readonly dot: _angular_core.InputSignalWithTransform<boolean, unknown>;
22
+ /** Nombre accesible que sustituye al valor (p. ej. "3 mensajes sin leer"). Sin él, un `dot` es decorativo. */
23
+ readonly ariaLabel: _angular_core.InputSignal<string>;
22
24
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CbBadge, never>;
23
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CbBadge, "cb-badge", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "severity": { "alias": "severity"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "dot": { "alias": "dot"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
25
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CbBadge, "cb-badge", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "severity": { "alias": "severity"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "dot": { "alias": "dot"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
24
26
  }
25
27
 
26
28
  export { CbBadge };
@@ -1,13 +1,18 @@
1
- import * as i0 from '@angular/core';
1
+ import * as _angular_core from '@angular/core';
2
+ import * as _caribeng_ui from '@caribeng/ui';
2
3
 
3
4
  /**
4
5
  * BlockUI de CaribeNG: bloquea la interacción sobre el contenido proyectado
5
6
  * mostrando una máscara semitransparente con indicador opcional (`aria-busy`).
6
7
  */
7
8
  declare class CbBlockUi {
8
- readonly blocked: i0.InputSignal<boolean>;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<CbBlockUi, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<CbBlockUi, "cb-block-ui", never, { "blocked": { "alias": "blocked"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
9
+ /** Textos de interfaz en el idioma activo (`provideCaribeNG({ locale })`). */
10
+ protected readonly t: _angular_core.Signal<_caribeng_ui.CbTranslation>;
11
+ readonly blocked: _angular_core.InputSignal<boolean>;
12
+ /** Texto que anuncia el lector de pantalla al bloquear. Por defecto, "Cargando" del idioma activo. */
13
+ readonly message: _angular_core.InputSignal<string | undefined>;
14
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CbBlockUi, never>;
15
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CbBlockUi, "cb-block-ui", never, { "blocked": { "alias": "blocked"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
11
16
  }
12
17
 
13
18
  export { CbBlockUi };
@@ -1,4 +1,6 @@
1
1
  import * as _angular_core from '@angular/core';
2
+ import * as _caribeng_ui from '@caribeng/ui';
3
+ import { CbMenuCommandEvent } from '@caribeng/ui';
2
4
 
3
5
  interface CbBreadcrumbItem {
4
6
  label: string;
@@ -6,6 +8,10 @@ interface CbBreadcrumbItem {
6
8
  url?: string;
7
9
  /** Icono (nombre del set de @caribeng/ui/icon) antes del texto. */
8
10
  icon?: string;
11
+ /** Acción al elegir el item (además del evento de selección), como `command` en PrimeNG. */
12
+ command?: (event: CbMenuCommandEvent<CbBreadcrumbItem>) => void;
13
+ /** `false` oculta el item. */
14
+ visible?: boolean;
9
15
  }
10
16
  /**
11
17
  * Breadcrumb de CaribeNG: rastro de navegación jerárquica.
@@ -20,11 +26,16 @@ interface CbBreadcrumbItem {
20
26
  * ```
21
27
  */
22
28
  declare class CbBreadcrumb {
29
+ /** Textos de interfaz en el idioma activo (`provideCaribeNG({ locale })`). */
30
+ protected readonly t: _angular_core.Signal<_caribeng_ui.CbTranslation>;
23
31
  readonly items: _angular_core.InputSignal<readonly CbBreadcrumbItem[]>;
32
+ /** Items sin los de `visible: false`. */
33
+ protected readonly visibleItems: _angular_core.Signal<CbBreadcrumbItem[]>;
24
34
  /** Icono separador entre elementos. */
25
35
  readonly separator: _angular_core.InputSignal<string>;
26
36
  /** Se emite al hacer clic en un elemento con enlace. */
27
37
  readonly itemClick: _angular_core.OutputEmitterRef<CbBreadcrumbItem>;
38
+ protected select(item: CbBreadcrumbItem, event: MouseEvent): void;
28
39
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CbBreadcrumb, never>;
29
40
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<CbBreadcrumb, "cb-breadcrumb", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "separator": { "alias": "separator"; "required": false; "isSignal": true; }; }, { "itemClick": "itemClick"; }, never, never, true, never>;
30
41
  }
@@ -31,10 +31,18 @@ declare class CbButton {
31
31
  readonly fullWidth: _angular_core.InputSignalWithTransform<boolean, unknown>;
32
32
  /** Tipo nativo del botón. */
33
33
  readonly type: _angular_core.InputSignal<CbButtonType>;
34
+ /** Nombre accesible (imprescindible en botones de solo icono). */
35
+ readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
36
+ /** Tipo de elemento que abre (`menu`, `dialog`, `listbox`…). */
37
+ readonly ariaHaspopup: _angular_core.InputSignal<string | undefined>;
38
+ /** Si lo que abre está desplegado. */
39
+ readonly ariaExpanded: _angular_core.InputSignal<boolean | undefined>;
40
+ /** Id del elemento que controla. */
41
+ readonly ariaControls: _angular_core.InputSignal<string | undefined>;
34
42
  private static readonly CHROMATIC;
35
43
  protected readonly variantClasses: _angular_core.Signal<string[]>;
36
44
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CbButton, never>;
37
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CbButton, "cb-button", never, { "severity": { "alias": "severity"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "fullWidth": { "alias": "fullWidth"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
45
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CbButton, "cb-button", never, { "severity": { "alias": "severity"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "fullWidth": { "alias": "fullWidth"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaHaspopup": { "alias": "ariaHaspopup"; "required": false; "isSignal": true; }; "ariaExpanded": { "alias": "ariaExpanded"; "required": false; "isSignal": true; }; "ariaControls": { "alias": "ariaControls"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
38
46
  }
39
47
 
40
48
  export { CbButton };
@@ -1,4 +1,5 @@
1
1
  import * as _angular_core from '@angular/core';
2
+ import * as _caribeng_ui from '@caribeng/ui';
2
3
 
3
4
  /**
4
5
  * Alert de Caribe Design: banner de notificación con severidad, título,
@@ -10,6 +11,8 @@ import * as _angular_core from '@angular/core';
10
11
  * ```
11
12
  */
12
13
  declare class CbAlert {
14
+ /** Textos de interfaz en el idioma activo (`provideCaribeNG({ locale })`). */
15
+ protected readonly t: _angular_core.Signal<_caribeng_ui.CbTranslation>;
13
16
  readonly title: _angular_core.InputSignal<string>;
14
17
  readonly severity: _angular_core.InputSignal<"success" | "warning" | "error" | "info">;
15
18
  readonly closable: _angular_core.InputSignal<boolean>;
@@ -1,4 +1,5 @@
1
1
  import * as _angular_core from '@angular/core';
2
+ import * as _caribeng_ui from '@caribeng/ui';
2
3
 
3
4
  /**
4
5
  * Animation-lottie de Caribe Design: contenedor de animación (placeholder
@@ -10,11 +11,13 @@ import * as _angular_core from '@angular/core';
10
11
  * ```
11
12
  */
12
13
  declare class CbAnimationLottie {
14
+ /** Textos de interfaz en el idioma activo (`provideCaribeNG({ locale })`). */
15
+ protected readonly t: _angular_core.Signal<_caribeng_ui.CbTranslation>;
13
16
  readonly src: _angular_core.InputSignal<string>;
14
17
  readonly autoplay: _angular_core.InputSignal<boolean>;
15
18
  readonly loop: _angular_core.InputSignal<boolean>;
16
19
  readonly size: _angular_core.InputSignal<string>;
17
- readonly ariaLabel: _angular_core.InputSignal<string>;
20
+ readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
18
21
  readonly playing: _angular_core.WritableSignal<boolean>;
19
22
  play(): void;
20
23
  pause(): void;
@@ -1,4 +1,5 @@
1
1
  import * as _angular_core from '@angular/core';
2
+ import * as _caribeng_ui from '@caribeng/ui';
2
3
 
3
4
  /**
4
5
  * Button-group de Caribe Design: contenedor que agrupa acciones relacionadas
@@ -12,10 +13,12 @@ import * as _angular_core from '@angular/core';
12
13
  * ```
13
14
  */
14
15
  declare class CbButtonGroup {
16
+ /** Textos de interfaz en el idioma activo (`provideCaribeNG({ locale })`). */
17
+ protected readonly t: _angular_core.Signal<_caribeng_ui.CbTranslation>;
15
18
  /** Dirección del grupo. */
16
19
  readonly orientation: _angular_core.InputSignal<"horizontal" | "vertical">;
17
20
  /** Etiqueta accesible del grupo. */
18
- readonly ariaLabel: _angular_core.InputSignal<string>;
21
+ readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
19
22
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CbButtonGroup, never>;
20
23
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<CbButtonGroup, "cb-button-group", never, { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
21
24
  }
@@ -1,3 +1,4 @@
1
+ import * as _caribeng_ui from '@caribeng/ui';
1
2
  import * as _angular_core from '@angular/core';
2
3
 
3
4
  /**
@@ -12,7 +13,10 @@ declare class CbCalendar {
12
13
  readonly monthLabel: _angular_core.InputSignal<string>;
13
14
  readonly totalDays: _angular_core.InputSignal<number>;
14
15
  readonly selectedDay: _angular_core.ModelSignal<number>;
15
- protected readonly weekdays: string[];
16
+ /** Textos de interfaz en el idioma activo (`provideCaribeNG({ locale })`). */
17
+ protected readonly t: _angular_core.Signal<_caribeng_ui.CbTranslation>;
18
+ /** Iniciales de lunes a domingo en el idioma activo. */
19
+ protected readonly weekdays: _angular_core.Signal<string[]>;
16
20
  protected readonly days: _angular_core.Signal<number[]>;
17
21
  selectDay(day: number): void;
18
22
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CbCalendar, never>;
@@ -1,4 +1,5 @@
1
1
  import * as _angular_core from '@angular/core';
2
+ import * as _caribeng_ui from '@caribeng/ui';
2
3
 
3
4
  /**
4
5
  * Card-content de Caribe Design: tarjeta de contenido con título, subtítulo,
@@ -10,9 +11,11 @@ import * as _angular_core from '@angular/core';
10
11
  * ```
11
12
  */
12
13
  declare class CbCardContent {
14
+ /** Textos de interfaz en el idioma activo (`provideCaribeNG({ locale })`). */
15
+ protected readonly t: _angular_core.Signal<_caribeng_ui.CbTranslation>;
13
16
  readonly title: _angular_core.InputSignal<string>;
14
17
  readonly subtitle: _angular_core.InputSignal<string>;
15
- readonly actionLabel: _angular_core.InputSignal<string>;
18
+ readonly actionLabel: _angular_core.InputSignal<string | undefined>;
16
19
  readonly action: _angular_core.OutputEmitterRef<void>;
17
20
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CbCardContent, never>;
18
21
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<CbCardContent, "cb-card-content", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "actionLabel": { "alias": "actionLabel"; "required": false; "isSignal": true; }; }, { "action": "action"; }, never, ["*"], true, never>;
@@ -1,19 +1,19 @@
1
- import * as i0 from '@angular/core';
1
+ import * as _angular_core from '@angular/core';
2
+ import * as _caribeng_ui from '@caribeng/ui';
2
3
 
3
- /**
4
- * Card-move de Caribe Design: lista de elementos reordenables mediante botones
5
- * de subir/bajar.
6
- *
7
- * @example
8
- * ```html
9
- * <cb-card-move [(items)]="opciones" />
10
- * ```
11
- */
12
4
  declare class CbCardMove {
13
- readonly items: i0.ModelSignal<readonly string[]>;
5
+ /** Textos de interfaz en el idioma activo (`provideCaribeNG({ locale })`). */
6
+ protected readonly t: _angular_core.Signal<_caribeng_ui.CbTranslation>;
7
+ readonly items: _angular_core.ModelSignal<readonly string[]>;
8
+ /** Prefijo de ids: cada botón se describe con la etiqueta de su elemento. */
9
+ protected readonly uid: string;
10
+ private readonly host;
11
+ private readonly injector;
14
12
  protected move(index: number, delta: number): void;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<CbCardMove, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<CbCardMove, "cb-card-move", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; }, { "items": "itemsChange"; }, never, never, true, never>;
13
+ /** El foco sigue al elemento movido; si su botón queda deshabilitado (extremo), pasa al otro. */
14
+ private followItem;
15
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CbCardMove, never>;
16
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CbCardMove, "cb-card-move", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; }, { "items": "itemsChange"; }, never, never, true, never>;
17
17
  }
18
18
 
19
19
  export { CbCardMove };
@@ -1,4 +1,5 @@
1
1
  import * as _angular_core from '@angular/core';
2
+ import * as _caribeng_ui from '@caribeng/ui';
2
3
 
3
4
  /**
4
5
  * Card-select de Caribe Design: tarjeta con buscador y lista de opciones
@@ -10,11 +11,19 @@ import * as _angular_core from '@angular/core';
10
11
  * ```
11
12
  */
12
13
  declare class CbCardSelect {
14
+ /** Textos de interfaz en el idioma activo (`provideCaribeNG({ locale })`). */
15
+ protected readonly t: _angular_core.Signal<_caribeng_ui.CbTranslation>;
13
16
  readonly items: _angular_core.InputSignal<readonly string[]>;
14
- readonly label: _angular_core.InputSignal<string>;
17
+ readonly label: _angular_core.InputSignal<string | undefined>;
15
18
  readonly selected: _angular_core.ModelSignal<string | null>;
16
19
  readonly selectionChange: _angular_core.OutputEmitterRef<string>;
17
20
  protected readonly query: _angular_core.ModelSignal<string>;
21
+ private readonly host;
22
+ /** Opción que entra en el orden de tabulación: la elegida o, si no está visible, la primera. */
23
+ protected readonly tabbable: _angular_core.Signal<number>;
24
+ protected choose(item: string): void;
25
+ /** Patrón *listbox*: flechas (circular), Inicio y Fin mueven el foco; Enter / Espacio eligen (botón nativo). */
26
+ protected onListKeydown(event: KeyboardEvent): void;
18
27
  protected readonly filtered: _angular_core.Signal<string[]>;
19
28
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CbCardSelect, never>;
20
29
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<CbCardSelect, "cb-card-select", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "query": { "alias": "query"; "required": false; "isSignal": true; }; }, { "selected": "selectedChange"; "selectionChange": "selectionChange"; "query": "queryChange"; }, never, never, true, never>;
@@ -1,4 +1,5 @@
1
1
  import * as _angular_core from '@angular/core';
2
+ import * as _caribeng_ui from '@caribeng/ui';
2
3
 
3
4
  /**
4
5
  * Circle-loading de Caribe Design: progreso circular determinado o
@@ -11,10 +12,12 @@ import * as _angular_core from '@angular/core';
11
12
  * ```
12
13
  */
13
14
  declare class CbCircleLoading {
15
+ /** Textos de interfaz en el idioma activo (`provideCaribeNG({ locale })`). */
16
+ protected readonly t: _angular_core.Signal<_caribeng_ui.CbTranslation>;
14
17
  readonly progress: _angular_core.InputSignal<number>;
15
18
  readonly size: _angular_core.InputSignal<number>;
16
19
  readonly indeterminate: _angular_core.InputSignal<boolean>;
17
- readonly label: _angular_core.InputSignal<string>;
20
+ readonly label: _angular_core.InputSignal<string | undefined>;
18
21
  protected readonly circumference: number;
19
22
  protected readonly dashOffset: _angular_core.Signal<number>;
20
23
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CbCircleLoading, never>;
@@ -1,4 +1,6 @@
1
1
  import * as _angular_core from '@angular/core';
2
+ import * as _caribeng_ui from '@caribeng/ui';
3
+ import { cbFormat } from '@caribeng/ui';
2
4
 
3
5
  /**
4
6
  * Coachmark de Caribe Design: tarjeta de ayuda guiada paso a paso para resaltar
@@ -10,6 +12,10 @@ import * as _angular_core from '@angular/core';
10
12
  * ```
11
13
  */
12
14
  declare class CbCoachmark {
15
+ /** Textos de interfaz en el idioma activo (`provideCaribeNG({ locale })`). */
16
+ protected readonly t: _angular_core.Signal<_caribeng_ui.CbTranslation>;
17
+ /** Rellena `{0}`, `{1}`… de un texto traducido. */
18
+ protected readonly fmt: typeof cbFormat;
13
19
  readonly steps: _angular_core.InputSignal<readonly string[]>;
14
20
  readonly visible: _angular_core.ModelSignal<boolean>;
15
21
  readonly index: _angular_core.ModelSignal<number>;
@@ -1,4 +1,5 @@
1
1
  import * as _angular_core from '@angular/core';
2
+ import * as _caribeng_ui from '@caribeng/ui';
2
3
 
3
4
  /**
4
5
  * Data-table de Caribe Design: tabla simple de columnas y filas con mensaje de
@@ -10,11 +11,15 @@ import * as _angular_core from '@angular/core';
10
11
  * ```
11
12
  */
12
13
  declare class CbDataTable {
14
+ /** Textos de interfaz en el idioma activo (`provideCaribeNG({ locale })`). */
15
+ protected readonly t: _angular_core.Signal<_caribeng_ui.CbTranslation>;
13
16
  readonly columns: _angular_core.InputSignal<readonly string[]>;
14
17
  readonly rows: _angular_core.InputSignal<readonly Record<string, unknown>[]>;
15
- readonly emptyMessage: _angular_core.InputSignal<string>;
18
+ readonly emptyMessage: _angular_core.InputSignal<string | undefined>;
19
+ /** Nombre accesible de la tabla (p. ej. "Movimientos del mes"). */
20
+ readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
16
21
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CbDataTable, never>;
17
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CbDataTable, "cb-data-table", never, { "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
22
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CbDataTable, "cb-data-table", never, { "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
18
23
  }
19
24
 
20
25
  export { CbDataTable };