@caribeng/ui 22.1.1 → 22.2.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 (253) hide show
  1. package/README.md +48 -8
  2. package/fesm2022/caribeng-ui-accordion.mjs +2 -2
  3. package/fesm2022/caribeng-ui-anchor.mjs +169 -0
  4. package/fesm2022/caribeng-ui-autocomplete.mjs +10 -8
  5. package/fesm2022/caribeng-ui-avatargroup.mjs +9 -3
  6. package/fesm2022/caribeng-ui-blockui.mjs +12 -4
  7. package/fesm2022/caribeng-ui-breadcrumb.mjs +5 -2
  8. package/fesm2022/caribeng-ui-button.mjs +22 -2
  9. package/fesm2022/caribeng-ui-caribe-alert.mjs +5 -2
  10. package/fesm2022/caribeng-ui-caribe-animation-lottie.mjs +6 -3
  11. package/fesm2022/caribeng-ui-caribe-button-group.mjs +6 -3
  12. package/fesm2022/caribeng-ui-caribe-calendar.mjs +11 -6
  13. package/fesm2022/caribeng-ui-caribe-card-content.mjs +6 -3
  14. package/fesm2022/caribeng-ui-caribe-card-move.mjs +29 -7
  15. package/fesm2022/caribeng-ui-caribe-card-select.mjs +56 -14
  16. package/fesm2022/caribeng-ui-caribe-circle-loading.mjs +10 -7
  17. package/fesm2022/caribeng-ui-caribe-coachmark.mjs +42 -19
  18. package/fesm2022/caribeng-ui-caribe-data-table.mjs +15 -9
  19. package/fesm2022/caribeng-ui-caribe-dots-indicator.mjs +38 -5
  20. package/fesm2022/caribeng-ui-caribe-expansion-panel.mjs +16 -5
  21. package/fesm2022/caribeng-ui-caribe-fab-menu.mjs +56 -7
  22. package/fesm2022/caribeng-ui-caribe-file-download.mjs +68 -27
  23. package/fesm2022/caribeng-ui-caribe-file-select.mjs +22 -17
  24. package/fesm2022/caribeng-ui-caribe-float-menu.mjs +6 -3
  25. package/fesm2022/caribeng-ui-caribe-footer.mjs +8 -4
  26. package/fesm2022/caribeng-ui-caribe-header.mjs +6 -3
  27. package/fesm2022/caribeng-ui-caribe-icon-button.mjs +6 -3
  28. package/fesm2022/caribeng-ui-caribe-illustration.mjs +6 -3
  29. package/fesm2022/caribeng-ui-caribe-inline-alert.mjs +5 -2
  30. package/fesm2022/caribeng-ui-caribe-input-search.mjs +14 -10
  31. package/fesm2022/caribeng-ui-caribe-input-select.mjs +12 -10
  32. package/fesm2022/caribeng-ui-caribe-input-token.mjs +61 -11
  33. package/fesm2022/caribeng-ui-caribe-link.mjs +7 -2
  34. package/fesm2022/caribeng-ui-caribe-loader.mjs +8 -5
  35. package/fesm2022/caribeng-ui-caribe-modal.mjs +32 -16
  36. package/fesm2022/caribeng-ui-caribe-off-canvas.mjs +26 -12
  37. package/fesm2022/caribeng-ui-caribe-onboarding.mjs +44 -19
  38. package/fesm2022/caribeng-ui-caribe-pictogram.mjs +6 -3
  39. package/fesm2022/caribeng-ui-caribe-pop-over.mjs +34 -10
  40. package/fesm2022/caribeng-ui-caribe-preloader.mjs +9 -6
  41. package/fesm2022/caribeng-ui-caribe-progress-bar.mjs +5 -2
  42. package/fesm2022/caribeng-ui-caribe-shortcut.mjs +8 -3
  43. package/fesm2022/caribeng-ui-caribe-step-indicator.mjs +12 -5
  44. package/fesm2022/caribeng-ui-caribe-stroke.mjs +6 -3
  45. package/fesm2022/caribeng-ui-caribe-switch.mjs +5 -3
  46. package/fesm2022/caribeng-ui-caribe-tag-button.mjs +1 -1
  47. package/fesm2022/caribeng-ui-caribe-tracker.mjs +5 -2
  48. package/fesm2022/caribeng-ui-caribe-transaction-status.mjs +1 -1
  49. package/fesm2022/caribeng-ui-caribe-voucher.mjs +11 -8
  50. package/fesm2022/caribeng-ui-carousel.mjs +49 -14
  51. package/fesm2022/caribeng-ui-cascadeselect.mjs +22 -8
  52. package/fesm2022/caribeng-ui-chart.mjs +2598 -303
  53. package/fesm2022/caribeng-ui-chip.mjs +9 -4
  54. package/fesm2022/caribeng-ui-chips.mjs +9 -5
  55. package/fesm2022/caribeng-ui-colorpicker.mjs +9 -7
  56. package/fesm2022/caribeng-ui-confirmdialog.mjs +74 -9
  57. package/fesm2022/caribeng-ui-confirmpopup.mjs +134 -9
  58. package/fesm2022/caribeng-ui-contextmenu.mjs +6 -3
  59. package/fesm2022/caribeng-ui-dataview.mjs +211 -6
  60. package/fesm2022/caribeng-ui-datepicker.mjs +1630 -393
  61. package/fesm2022/caribeng-ui-descriptions.mjs +124 -0
  62. package/fesm2022/caribeng-ui-dialog.mjs +10 -7
  63. package/fesm2022/caribeng-ui-dock.mjs +6 -3
  64. package/fesm2022/caribeng-ui-drawer.mjs +10 -7
  65. package/fesm2022/caribeng-ui-dynamicdialog.mjs +210 -6
  66. package/fesm2022/caribeng-ui-editor.mjs +4392 -243
  67. package/fesm2022/caribeng-ui-empty.mjs +80 -0
  68. package/fesm2022/caribeng-ui-file-card.mjs +2 -2
  69. package/fesm2022/caribeng-ui-fileupload.mjs +96 -19
  70. package/fesm2022/caribeng-ui-floatlabel.mjs +4 -2
  71. package/fesm2022/caribeng-ui-folder-card.mjs +10 -3
  72. package/fesm2022/caribeng-ui-galleria.mjs +76 -45
  73. package/fesm2022/caribeng-ui-image.mjs +52 -29
  74. package/fesm2022/caribeng-ui-inplace.mjs +22 -6
  75. package/fesm2022/caribeng-ui-input-number.mjs +9 -7
  76. package/fesm2022/caribeng-ui-inputgroup.mjs +2 -2
  77. package/fesm2022/caribeng-ui-inputmask.mjs +14 -11
  78. package/fesm2022/caribeng-ui-inputotp.mjs +12 -6
  79. package/fesm2022/caribeng-ui-keyfilter.mjs +72 -0
  80. package/fesm2022/caribeng-ui-listbox.mjs +13 -11
  81. package/fesm2022/caribeng-ui-megamenu.mjs +222 -30
  82. package/fesm2022/caribeng-ui-menu.mjs +11 -5
  83. package/fesm2022/caribeng-ui-menubar.mjs +10 -5
  84. package/fesm2022/caribeng-ui-message.mjs +7 -4
  85. package/fesm2022/caribeng-ui-metergroup.mjs +29 -11
  86. package/fesm2022/caribeng-ui-multiselect.mjs +399 -97
  87. package/fesm2022/caribeng-ui-orderlist.mjs +230 -11
  88. package/fesm2022/caribeng-ui-organizationchart.mjs +12 -7
  89. package/fesm2022/caribeng-ui-paginator.mjs +18 -15
  90. package/fesm2022/caribeng-ui-panel.mjs +5 -2
  91. package/fesm2022/caribeng-ui-panelmenu.mjs +6 -3
  92. package/fesm2022/caribeng-ui-password.mjs +8 -6
  93. package/fesm2022/caribeng-ui-pdfviewer.mjs +1553 -0
  94. package/fesm2022/caribeng-ui-picklist.mjs +251 -14
  95. package/fesm2022/caribeng-ui-pricing.mjs +17 -14
  96. package/fesm2022/caribeng-ui-rating.mjs +7 -3
  97. package/fesm2022/caribeng-ui-repeater.mjs +223 -0
  98. package/fesm2022/caribeng-ui-result.mjs +91 -0
  99. package/fesm2022/caribeng-ui-scrollpanel.mjs +6 -3
  100. package/fesm2022/caribeng-ui-scrolltop.mjs +6 -3
  101. package/fesm2022/caribeng-ui-select.mjs +379 -87
  102. package/fesm2022/caribeng-ui-selectbutton.mjs +2 -2
  103. package/fesm2022/caribeng-ui-slider.mjs +171 -75
  104. package/fesm2022/caribeng-ui-speeddial.mjs +7 -4
  105. package/fesm2022/caribeng-ui-spinner.mjs +5 -2
  106. package/fesm2022/caribeng-ui-splitbutton.mjs +163 -0
  107. package/fesm2022/caribeng-ui-splitter.mjs +5 -2
  108. package/fesm2022/caribeng-ui-statistic.mjs +183 -0
  109. package/fesm2022/caribeng-ui-stepper.mjs +8 -5
  110. package/fesm2022/caribeng-ui-steps.mjs +6 -3
  111. package/fesm2022/caribeng-ui-table.mjs +708 -82
  112. package/fesm2022/caribeng-ui-tabmenu.mjs +6 -3
  113. package/fesm2022/caribeng-ui-tag.mjs +2 -2
  114. package/fesm2022/caribeng-ui-terminal.mjs +45 -9
  115. package/fesm2022/caribeng-ui-themetoggle.mjs +82 -0
  116. package/fesm2022/caribeng-ui-tieredmenu.mjs +9 -6
  117. package/fesm2022/caribeng-ui-timeline.mjs +175 -6
  118. package/fesm2022/caribeng-ui-toast.mjs +7 -4
  119. package/fesm2022/caribeng-ui-togglebutton.mjs +8 -6
  120. package/fesm2022/caribeng-ui-toolbar.mjs +6 -3
  121. package/fesm2022/caribeng-ui-tree.mjs +302 -6
  122. package/fesm2022/caribeng-ui-treeselect.mjs +26 -10
  123. package/fesm2022/caribeng-ui-treetable.mjs +269 -6
  124. package/fesm2022/caribeng-ui-virtualscroller.mjs +123 -10
  125. package/fesm2022/caribeng-ui.mjs +829 -6
  126. package/package.json +53 -3
  127. package/schematics/collection.json +10 -0
  128. package/schematics/ng-add/index.js +125 -0
  129. package/schematics/ng-add/schema.js +2 -0
  130. package/schematics/ng-add/schema.json +66 -0
  131. package/styles/caribeng.css +380 -0
  132. package/styles/scss/_mixins.scss +46 -0
  133. package/styles/scss/_overlay.scss +15 -0
  134. package/styles/scss/_tokens.scss +267 -0
  135. package/styles/scss/_utilities.scss +73 -0
  136. package/styles/scss/_variables.scss +33 -0
  137. package/styles/scss/index.scss +16 -0
  138. package/types/caribeng-ui-anchor.d.ts +50 -0
  139. package/types/caribeng-ui-autocomplete.d.ts +4 -2
  140. package/types/caribeng-ui-avatargroup.d.ts +3 -1
  141. package/types/caribeng-ui-blockui.d.ts +9 -4
  142. package/types/caribeng-ui-breadcrumb.d.ts +3 -0
  143. package/types/caribeng-ui-button.d.ts +9 -1
  144. package/types/caribeng-ui-caribe-alert.d.ts +3 -0
  145. package/types/caribeng-ui-caribe-animation-lottie.d.ts +4 -1
  146. package/types/caribeng-ui-caribe-button-group.d.ts +4 -1
  147. package/types/caribeng-ui-caribe-calendar.d.ts +5 -1
  148. package/types/caribeng-ui-caribe-card-content.d.ts +4 -1
  149. package/types/caribeng-ui-caribe-card-move.d.ts +13 -13
  150. package/types/caribeng-ui-caribe-card-select.d.ts +10 -1
  151. package/types/caribeng-ui-caribe-circle-loading.d.ts +4 -1
  152. package/types/caribeng-ui-caribe-coachmark.d.ts +6 -0
  153. package/types/caribeng-ui-caribe-data-table.d.ts +7 -2
  154. package/types/caribeng-ui-caribe-dots-indicator.d.ts +9 -0
  155. package/types/caribeng-ui-caribe-expansion-panel.d.ts +7 -10
  156. package/types/caribeng-ui-caribe-fab-menu.d.ts +10 -1
  157. package/types/caribeng-ui-caribe-file-download.d.ts +8 -10
  158. package/types/caribeng-ui-caribe-file-select.d.ts +7 -1
  159. package/types/caribeng-ui-caribe-float-menu.d.ts +4 -1
  160. package/types/caribeng-ui-caribe-header.d.ts +3 -0
  161. package/types/caribeng-ui-caribe-icon-button.d.ts +4 -1
  162. package/types/caribeng-ui-caribe-illustration.d.ts +4 -1
  163. package/types/caribeng-ui-caribe-inline-alert.d.ts +3 -0
  164. package/types/caribeng-ui-caribe-input-search.d.ts +4 -2
  165. package/types/caribeng-ui-caribe-input-select.d.ts +4 -2
  166. package/types/caribeng-ui-caribe-input-token.d.ts +16 -1
  167. package/types/caribeng-ui-caribe-link.d.ts +3 -0
  168. package/types/caribeng-ui-caribe-loader.d.ts +4 -1
  169. package/types/caribeng-ui-caribe-modal.d.ts +7 -10
  170. package/types/caribeng-ui-caribe-off-canvas.d.ts +6 -1
  171. package/types/caribeng-ui-caribe-onboarding.d.ts +6 -0
  172. package/types/caribeng-ui-caribe-pictogram.d.ts +4 -1
  173. package/types/caribeng-ui-caribe-pop-over.d.ts +7 -10
  174. package/types/caribeng-ui-caribe-preloader.d.ts +4 -1
  175. package/types/caribeng-ui-caribe-progress-bar.d.ts +3 -0
  176. package/types/caribeng-ui-caribe-shortcut.d.ts +3 -1
  177. package/types/caribeng-ui-caribe-step-indicator.d.ts +6 -0
  178. package/types/caribeng-ui-caribe-stroke.d.ts +4 -1
  179. package/types/caribeng-ui-caribe-switch.d.ts +3 -1
  180. package/types/caribeng-ui-caribe-tracker.d.ts +3 -0
  181. package/types/caribeng-ui-caribe-voucher.d.ts +5 -2
  182. package/types/caribeng-ui-carousel.d.ts +10 -1
  183. package/types/caribeng-ui-cascadeselect.d.ts +7 -2
  184. package/types/caribeng-ui-chart.d.ts +469 -44
  185. package/types/caribeng-ui-chip.d.ts +6 -0
  186. package/types/caribeng-ui-chips.d.ts +6 -2
  187. package/types/caribeng-ui-colorpicker.d.ts +3 -1
  188. package/types/caribeng-ui-confirmdialog.d.ts +25 -6
  189. package/types/caribeng-ui-confirmpopup.d.ts +37 -5
  190. package/types/caribeng-ui-contextmenu.d.ts +4 -1
  191. package/types/caribeng-ui-dataview.d.ts +63 -5
  192. package/types/caribeng-ui-datepicker.d.ts +186 -21
  193. package/types/caribeng-ui-descriptions.d.ts +63 -0
  194. package/types/caribeng-ui-dialog.d.ts +4 -1
  195. package/types/caribeng-ui-dock.d.ts +4 -1
  196. package/types/caribeng-ui-drawer.d.ts +4 -1
  197. package/types/caribeng-ui-dynamicdialog.d.ts +93 -3
  198. package/types/caribeng-ui-editor.d.ts +486 -13
  199. package/types/caribeng-ui-empty.d.ts +34 -0
  200. package/types/caribeng-ui-file-card.d.ts +1 -1
  201. package/types/caribeng-ui-fileupload.d.ts +27 -4
  202. package/types/caribeng-ui-folder-card.d.ts +4 -1
  203. package/types/caribeng-ui-galleria.d.ts +9 -0
  204. package/types/caribeng-ui-image.d.ts +10 -0
  205. package/types/caribeng-ui-inplace.d.ts +8 -0
  206. package/types/caribeng-ui-input-number.d.ts +3 -1
  207. package/types/caribeng-ui-inputmask.d.ts +5 -0
  208. package/types/caribeng-ui-inputotp.d.ts +7 -2
  209. package/types/caribeng-ui-keyfilter.d.ts +30 -0
  210. package/types/caribeng-ui-listbox.d.ts +5 -3
  211. package/types/caribeng-ui-megamenu.d.ts +26 -2
  212. package/types/caribeng-ui-menu.d.ts +7 -2
  213. package/types/caribeng-ui-menubar.d.ts +5 -1
  214. package/types/caribeng-ui-message.d.ts +3 -0
  215. package/types/caribeng-ui-metergroup.d.ts +9 -1
  216. package/types/caribeng-ui-multiselect.d.ts +71 -10
  217. package/types/caribeng-ui-orderlist.d.ts +58 -6
  218. package/types/caribeng-ui-organizationchart.d.ts +7 -1
  219. package/types/caribeng-ui-paginator.d.ts +3 -0
  220. package/types/caribeng-ui-panel.d.ts +3 -0
  221. package/types/caribeng-ui-panelmenu.d.ts +4 -1
  222. package/types/caribeng-ui-password.d.ts +4 -2
  223. package/types/caribeng-ui-pdfviewer.d.ts +258 -0
  224. package/types/caribeng-ui-picklist.d.ts +67 -7
  225. package/types/caribeng-ui-pricing.d.ts +8 -5
  226. package/types/caribeng-ui-rating.d.ts +6 -2
  227. package/types/caribeng-ui-repeater.d.ts +79 -0
  228. package/types/caribeng-ui-result.d.ts +35 -0
  229. package/types/caribeng-ui-scrollpanel.d.ts +4 -1
  230. package/types/caribeng-ui-scrolltop.d.ts +4 -1
  231. package/types/caribeng-ui-select.d.ts +73 -9
  232. package/types/caribeng-ui-slider.d.ts +63 -10
  233. package/types/caribeng-ui-speeddial.d.ts +5 -2
  234. package/types/caribeng-ui-spinner.d.ts +3 -0
  235. package/types/caribeng-ui-splitbutton.d.ts +49 -0
  236. package/types/caribeng-ui-splitter.d.ts +3 -0
  237. package/types/caribeng-ui-statistic.d.ts +65 -0
  238. package/types/caribeng-ui-stepper.d.ts +3 -0
  239. package/types/caribeng-ui-steps.d.ts +4 -1
  240. package/types/caribeng-ui-table.d.ts +184 -16
  241. package/types/caribeng-ui-tabmenu.d.ts +4 -1
  242. package/types/caribeng-ui-terminal.d.ts +10 -0
  243. package/types/caribeng-ui-themetoggle.d.ts +32 -0
  244. package/types/caribeng-ui-tieredmenu.d.ts +5 -2
  245. package/types/caribeng-ui-timeline.d.ts +63 -4
  246. package/types/caribeng-ui-toast.d.ts +3 -0
  247. package/types/caribeng-ui-togglebutton.d.ts +5 -3
  248. package/types/caribeng-ui-toolbar.d.ts +7 -4
  249. package/types/caribeng-ui-tree.d.ts +76 -4
  250. package/types/caribeng-ui-treeselect.d.ts +10 -2
  251. package/types/caribeng-ui-treetable.d.ts +68 -4
  252. package/types/caribeng-ui-virtualscroller.d.ts +45 -5
  253. package/types/caribeng-ui.d.ts +501 -12
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@caribeng/ui",
3
- "version": "22.1.1",
4
- "description": "CaribeNG — sistema de diseño y librería de componentes para Angular 22+ (standalone, signals, OnPush, zoneless). 142 entry points tree-shakeables, accesibles (WCAG 2.2 AA) y tematizables.",
3
+ "version": "22.2.0",
4
+ "description": "CaribeNG — sistema de diseño y librería de componentes para Angular 22+ (standalone, signals, OnPush, zoneless). 152 entry points tree-shakeables, accesibles (WCAG 2.2 AA) y tematizables.",
5
5
  "keywords": [
6
6
  "angular",
7
7
  "ui library",
@@ -23,6 +23,10 @@
23
23
  "url": "https://github.com/caribeng/ui/issues"
24
24
  },
25
25
  "sideEffects": false,
26
+ "schematics": "./schematics/collection.json",
27
+ "ng-add": {
28
+ "save": "dependencies"
29
+ },
26
30
  "publishConfig": {
27
31
  "access": "public"
28
32
  },
@@ -30,7 +34,13 @@
30
34
  "@angular/common": "^22.0.0",
31
35
  "@angular/core": "^22.0.0",
32
36
  "@angular/forms": "^22.0.0",
33
- "@angular/platform-browser": "^22.0.0"
37
+ "@angular/platform-browser": "^22.0.0",
38
+ "pdfjs-dist": "^6.4.0"
39
+ },
40
+ "peerDependenciesMeta": {
41
+ "pdfjs-dist": {
42
+ "optional": true
43
+ }
34
44
  },
35
45
  "dependencies": {
36
46
  "@angular/cdk": "^22.0.0",
@@ -50,6 +60,10 @@
50
60
  "types": "./types/caribeng-ui-accordion.d.ts",
51
61
  "default": "./fesm2022/caribeng-ui-accordion.mjs"
52
62
  },
63
+ "./anchor": {
64
+ "types": "./types/caribeng-ui-anchor.d.ts",
65
+ "default": "./fesm2022/caribeng-ui-anchor.mjs"
66
+ },
53
67
  "./animateonscroll": {
54
68
  "types": "./types/caribeng-ui-animateonscroll.d.ts",
55
69
  "default": "./fesm2022/caribeng-ui-animateonscroll.mjs"
@@ -318,6 +332,10 @@
318
332
  "types": "./types/caribeng-ui-datepicker.d.ts",
319
333
  "default": "./fesm2022/caribeng-ui-datepicker.mjs"
320
334
  },
335
+ "./descriptions": {
336
+ "types": "./types/caribeng-ui-descriptions.d.ts",
337
+ "default": "./fesm2022/caribeng-ui-descriptions.mjs"
338
+ },
321
339
  "./dialog": {
322
340
  "types": "./types/caribeng-ui-dialog.d.ts",
323
341
  "default": "./fesm2022/caribeng-ui-dialog.mjs"
@@ -342,6 +360,10 @@
342
360
  "types": "./types/caribeng-ui-editor.d.ts",
343
361
  "default": "./fesm2022/caribeng-ui-editor.mjs"
344
362
  },
363
+ "./empty": {
364
+ "types": "./types/caribeng-ui-empty.d.ts",
365
+ "default": "./fesm2022/caribeng-ui-empty.mjs"
366
+ },
345
367
  "./fieldset": {
346
368
  "types": "./types/caribeng-ui-fieldset.d.ts",
347
369
  "default": "./fesm2022/caribeng-ui-fieldset.mjs"
@@ -414,6 +436,10 @@
414
436
  "types": "./types/caribeng-ui-inputotp.d.ts",
415
437
  "default": "./fesm2022/caribeng-ui-inputotp.mjs"
416
438
  },
439
+ "./keyfilter": {
440
+ "types": "./types/caribeng-ui-keyfilter.d.ts",
441
+ "default": "./fesm2022/caribeng-ui-keyfilter.mjs"
442
+ },
417
443
  "./knob": {
418
444
  "types": "./types/caribeng-ui-knob.d.ts",
419
445
  "default": "./fesm2022/caribeng-ui-knob.mjs"
@@ -470,6 +496,10 @@
470
496
  "types": "./types/caribeng-ui-password.d.ts",
471
497
  "default": "./fesm2022/caribeng-ui-password.mjs"
472
498
  },
499
+ "./pdfviewer": {
500
+ "types": "./types/caribeng-ui-pdfviewer.d.ts",
501
+ "default": "./fesm2022/caribeng-ui-pdfviewer.mjs"
502
+ },
473
503
  "./picklist": {
474
504
  "types": "./types/caribeng-ui-picklist.d.ts",
475
505
  "default": "./fesm2022/caribeng-ui-picklist.mjs"
@@ -494,6 +524,14 @@
494
524
  "types": "./types/caribeng-ui-rating.d.ts",
495
525
  "default": "./fesm2022/caribeng-ui-rating.mjs"
496
526
  },
527
+ "./repeater": {
528
+ "types": "./types/caribeng-ui-repeater.d.ts",
529
+ "default": "./fesm2022/caribeng-ui-repeater.mjs"
530
+ },
531
+ "./result": {
532
+ "types": "./types/caribeng-ui-result.d.ts",
533
+ "default": "./fesm2022/caribeng-ui-result.mjs"
534
+ },
497
535
  "./ripple": {
498
536
  "types": "./types/caribeng-ui-ripple.d.ts",
499
537
  "default": "./fesm2022/caribeng-ui-ripple.mjs"
@@ -530,10 +568,18 @@
530
568
  "types": "./types/caribeng-ui-spinner.d.ts",
531
569
  "default": "./fesm2022/caribeng-ui-spinner.mjs"
532
570
  },
571
+ "./splitbutton": {
572
+ "types": "./types/caribeng-ui-splitbutton.d.ts",
573
+ "default": "./fesm2022/caribeng-ui-splitbutton.mjs"
574
+ },
533
575
  "./splitter": {
534
576
  "types": "./types/caribeng-ui-splitter.d.ts",
535
577
  "default": "./fesm2022/caribeng-ui-splitter.mjs"
536
578
  },
579
+ "./statistic": {
580
+ "types": "./types/caribeng-ui-statistic.d.ts",
581
+ "default": "./fesm2022/caribeng-ui-statistic.mjs"
582
+ },
537
583
  "./stepper": {
538
584
  "types": "./types/caribeng-ui-stepper.d.ts",
539
585
  "default": "./fesm2022/caribeng-ui-stepper.mjs"
@@ -570,6 +616,10 @@
570
616
  "types": "./types/caribeng-ui-textarea.d.ts",
571
617
  "default": "./fesm2022/caribeng-ui-textarea.mjs"
572
618
  },
619
+ "./themetoggle": {
620
+ "types": "./types/caribeng-ui-themetoggle.d.ts",
621
+ "default": "./fesm2022/caribeng-ui-themetoggle.mjs"
622
+ },
573
623
  "./tieredmenu": {
574
624
  "types": "./types/caribeng-ui-tieredmenu.d.ts",
575
625
  "default": "./fesm2022/caribeng-ui-tieredmenu.mjs"
@@ -0,0 +1,10 @@
1
+ {
2
+ "$schema": "../../../node_modules/@angular-devkit/schematics/collection-schema.json",
3
+ "schematics": {
4
+ "ng-add": {
5
+ "description": "Configura CaribeNG en el proyecto: provideCaribeNG() y la hoja de estilos.",
6
+ "factory": "./ng-add/index#ngAdd",
7
+ "schema": "./ng-add/schema.json"
8
+ }
9
+ }
10
+ }
@@ -0,0 +1,125 @@
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
+ const schematics_1 = require("@angular-devkit/schematics");
7
+ const utility_1 = require("@schematics/angular/utility");
8
+ /** Hoja de estilos de CaribeNG (export `./styles.css` del paquete). */
9
+ exports.CARIBENG_STYLES = '@caribeng/ui/styles.css';
10
+ /** Otras formas de referirse a la misma hoja (si ya está, no se duplica). */
11
+ const STYLE_ALIASES = [
12
+ exports.CARIBENG_STYLES,
13
+ '@caribeng/ui/styles/caribeng.css',
14
+ 'node_modules/@caribeng/ui/styles/caribeng.css',
15
+ './node_modules/@caribeng/ui/styles/caribeng.css',
16
+ ];
17
+ /** Targets de angular.json que llevan la lista de estilos globales. */
18
+ const STYLE_TARGETS = ['build', 'test'];
19
+ /**
20
+ * `ng add @caribeng/ui`: registra `provideCaribeNG()` con el idioma, tema y
21
+ * paleta elegidos, y añade la hoja de estilos a `angular.json`. Es idempotente:
22
+ * ejecutarlo dos veces no duplica el proveedor ni los estilos.
23
+ */
24
+ function ngAdd(options) {
25
+ return async (tree, context) => {
26
+ const project = await resolveProject(tree, options.project);
27
+ const sourceRoot = await projectSourceRoot(tree, project);
28
+ const hasProvider = containsText(tree, sourceRoot, 'provideCaribeNG(');
29
+ if (hasProvider) {
30
+ context.logger.info('ℹ provideCaribeNG() ya está configurado: no se modifica.');
31
+ }
32
+ return (0, schematics_1.chain)([
33
+ options.styles === false ? (0, schematics_1.noop)() : addStyles(project),
34
+ hasProvider
35
+ ? (0, schematics_1.noop)()
36
+ : (0, utility_1.addRootProvider)(project, ({ code, external }) => code `${external('provideCaribeNG', '@caribeng/ui')}(${providerConfig(options)})`),
37
+ logNextSteps(options),
38
+ ]);
39
+ };
40
+ }
41
+ /** Configuración de `provideCaribeNG()` con las opciones elegidas. */
42
+ function providerConfig(options) {
43
+ return `{ locale: '${options.locale ?? 'es'}', theme: '${options.theme ?? 'light'}', preset: '${options.preset ?? 'emerald'}' }`;
44
+ }
45
+ /** Proyecto indicado o, si no se indica, la aplicación del workspace (la primera si hay varias). */
46
+ async function resolveProject(tree, name) {
47
+ const workspace = await (0, utility_1.readWorkspace)(tree);
48
+ if (name) {
49
+ if (!workspace.projects.has(name))
50
+ throw new schematics_1.SchematicsException(`No existe el proyecto "${name}" en angular.json.`);
51
+ return name;
52
+ }
53
+ const apps = [...workspace.projects.entries()].filter(([, p]) => p.extensions['projectType'] === 'application');
54
+ if (!apps.length)
55
+ throw new schematics_1.SchematicsException('No hay ninguna aplicación en angular.json. Indica una con --project.');
56
+ return apps[0][0];
57
+ }
58
+ async function projectSourceRoot(tree, name) {
59
+ const project = (await (0, utility_1.readWorkspace)(tree)).projects.get(name);
60
+ return project.sourceRoot ?? `${project.root ? project.root + '/' : ''}src`;
61
+ }
62
+ /** Añade la hoja de estilos al principio de `styles` (los estilos propios de la app la pueden sobrescribir). */
63
+ function addStyles(projectName) {
64
+ return (0, utility_1.updateWorkspace)((workspace) => {
65
+ const project = workspace.projects.get(projectName);
66
+ if (!project)
67
+ return;
68
+ for (const targetName of STYLE_TARGETS) {
69
+ const target = project.targets.get(targetName);
70
+ if (!target)
71
+ continue;
72
+ target.options ??= {};
73
+ const styles = Array.isArray(target.options['styles']) ? [...target.options['styles']] : [];
74
+ const present = styles.some((entry) => STYLE_ALIASES.includes(styleInput(entry)));
75
+ if (!present)
76
+ target.options['styles'] = [exports.CARIBENG_STYLES, ...styles];
77
+ }
78
+ });
79
+ }
80
+ /** `styles` admite cadenas u objetos `{ input, bundleName, inject }`. */
81
+ function styleInput(entry) {
82
+ if (typeof entry === 'string')
83
+ return entry;
84
+ if (entry && typeof entry === 'object' && typeof entry.input === 'string') {
85
+ return entry.input;
86
+ }
87
+ return '';
88
+ }
89
+ /** Busca un texto en los `.ts` del proyecto (para no registrar el proveedor dos veces). */
90
+ function containsText(tree, root, text) {
91
+ let found = false;
92
+ tree.getDir(root).visit((path) => {
93
+ if (found || !path.endsWith('.ts') || path.endsWith('.spec.ts'))
94
+ return;
95
+ found = tree.readText(path).includes(text);
96
+ });
97
+ return found;
98
+ }
99
+ function logNextSteps(options) {
100
+ return (_tree, context) => {
101
+ const es = options.locale !== 'en';
102
+ const lines = es
103
+ ? [
104
+ '',
105
+ '✔ CaribeNG está listo.',
106
+ '',
107
+ ' Importa los componentes desde su entry point, por ejemplo:',
108
+ " import { CbButton } from '@caribeng/ui/button';",
109
+ '',
110
+ ' Documentación y catálogo: https://github.com/caribeng/ui#readme',
111
+ '',
112
+ ]
113
+ : [
114
+ '',
115
+ '✔ CaribeNG is ready.',
116
+ '',
117
+ ' Import components from their entry point, for example:',
118
+ " import { CbButton } from '@caribeng/ui/button';",
119
+ '',
120
+ ' Docs and catalog: https://github.com/caribeng/ui#readme',
121
+ '',
122
+ ];
123
+ lines.forEach((line) => context.logger.info(line));
124
+ };
125
+ }
@@ -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
+ }