@dropi/ui 0.1.20 → 0.1.22

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 (533) hide show
  1. package/dist/cjs/dropi-accordion-item.cjs.entry.js +54 -0
  2. package/dist/cjs/dropi-accordion.cjs.entry.js +5 -39
  3. package/dist/cjs/dropi-alert-legacy.cjs.entry.js +39 -0
  4. package/dist/cjs/dropi-alert-modal.cjs.entry.js +80 -24
  5. package/dist/cjs/dropi-alert.cjs.entry.js +20 -14
  6. package/dist/cjs/dropi-avatars.cjs.entry.js +3 -3
  7. package/dist/cjs/dropi-badge-legacy.cjs.entry.js +30 -0
  8. package/dist/cjs/dropi-badge.cjs.entry.js +4 -4
  9. package/dist/cjs/dropi-banner-external.cjs.entry.js +25 -9
  10. package/dist/cjs/dropi-breadcrumb.cjs.entry.js +2 -2
  11. package/dist/cjs/dropi-button.cjs.entry.js +11 -7
  12. package/dist/cjs/dropi-card-checkbox.cjs.entry.js +17 -14
  13. package/dist/cjs/dropi-card-product.cjs.entry.js +42 -23
  14. package/dist/cjs/dropi-card-section.cjs.entry.js +17 -17
  15. package/dist/cjs/dropi-carousel.cjs.entry.js +112 -42
  16. package/dist/cjs/dropi-checkbox-selection-list.cjs.entry.js +17 -15
  17. package/dist/cjs/dropi-checkbox.cjs.entry.js +6 -6
  18. package/dist/cjs/dropi-chips.cjs.entry.js +8 -8
  19. package/dist/cjs/dropi-city-selector.cjs.entry.js +28 -9
  20. package/dist/cjs/dropi-color-picker.cjs.entry.js +300 -50
  21. package/dist/cjs/dropi-country-flags.cjs.entry.js +4 -4
  22. package/dist/cjs/dropi-country-selector.cjs.entry.js +50 -17
  23. package/dist/cjs/dropi-date-picker-range.cjs.entry.js +8 -8
  24. package/dist/cjs/dropi-date-picker.cjs.entry.js +53 -35
  25. package/dist/cjs/dropi-drawer.cjs.entry.js +38 -9
  26. package/dist/cjs/dropi-dropdown.cjs.entry.js +23 -16
  27. package/dist/cjs/dropi-empty-state.cjs.entry.js +15 -18
  28. package/dist/cjs/dropi-favorite-button.cjs.entry.js +5 -5
  29. package/dist/cjs/dropi-file-upload-progress-bar.cjs.entry.js +57 -32
  30. package/dist/cjs/dropi-file-upload.cjs.entry.js +210 -57
  31. package/dist/cjs/dropi-icon.cjs.entry.js +21 -4
  32. package/dist/cjs/dropi-ilustration-icon.cjs.entry.js +3 -3
  33. package/dist/cjs/dropi-image-miniature.cjs.entry.js +2 -2
  34. package/dist/cjs/dropi-image-overlay.cjs.entry.js +4 -3
  35. package/dist/cjs/dropi-input_3.cjs.entry.js +392 -0
  36. package/dist/cjs/dropi-languages-selector.cjs.entry.js +10 -6
  37. package/dist/cjs/dropi-logo.cjs.entry.js +12 -2
  38. package/dist/cjs/dropi-lottie-loader.cjs.entry.js +5 -5
  39. package/dist/cjs/dropi-media-player.cjs.entry.js +131 -41
  40. package/dist/cjs/dropi-modal.cjs.entry.js +46 -20
  41. package/dist/cjs/dropi-navbar.cjs.entry.js +14 -12
  42. package/dist/cjs/dropi-otp-send-code.cjs.entry.js +13 -13
  43. package/dist/cjs/dropi-phone-input.cjs.entry.js +163 -50
  44. package/dist/cjs/dropi-radio-button.cjs.entry.js +7 -7
  45. package/dist/cjs/dropi-radio-selection-list.cjs.entry.js +17 -13
  46. package/dist/cjs/dropi-read-more.cjs.entry.js +8 -4
  47. package/dist/cjs/dropi-search.cjs.entry.js +52 -38
  48. package/dist/cjs/dropi-select.cjs.entry.js +102 -55
  49. package/dist/cjs/dropi-sidebar.cjs.entry.js +61 -50
  50. package/dist/cjs/dropi-simple-stepper.cjs.entry.js +8 -6
  51. package/dist/cjs/dropi-skeleton.cjs.entry.js +16 -6
  52. package/dist/cjs/dropi-steps.cjs.entry.js +6 -4
  53. package/dist/cjs/dropi-switch.cjs.entry.js +5 -5
  54. package/dist/cjs/dropi-table.cjs.entry.js +212 -37
  55. package/dist/cjs/dropi-tabs.cjs.entry.js +13 -11
  56. package/dist/cjs/dropi-tag-type-product.cjs.entry.js +3 -3
  57. package/dist/cjs/dropi-text-area.cjs.entry.js +45 -14
  58. package/dist/cjs/dropi-time-line.cjs.entry.js +3 -3
  59. package/dist/cjs/dropi-toast.cjs.entry.js +7 -6
  60. package/dist/cjs/dropi-tooltip-v2.cjs.entry.js +131 -0
  61. package/dist/cjs/dropi-tooltip.cjs.entry.js +5 -26
  62. package/dist/cjs/dropi-ui.cjs.js +2 -2
  63. package/dist/cjs/dropi-vertical-steps.cjs.entry.js +6 -6
  64. package/dist/cjs/dropi-youtube-lazy-video.cjs.entry.js +3 -3
  65. package/dist/cjs/{index-DcOH2ZjX.js → index-C8kwDvpf.js} +1044 -14
  66. package/dist/cjs/loader.cjs.js +2 -2
  67. package/dist/collection/collection-manifest.json +7 -3
  68. package/dist/collection/components/dropi-accordion/dropi-accordion-item.css +45 -0
  69. package/dist/collection/components/dropi-accordion/dropi-accordion-item.js +172 -0
  70. package/dist/collection/components/dropi-accordion/dropi-accordion.css +3 -3
  71. package/dist/collection/components/dropi-accordion/dropi-accordion.js +7 -129
  72. package/dist/collection/components/dropi-alert/dropi-alert.css +5 -11
  73. package/dist/collection/components/dropi-alert/dropi-alert.js +86 -20
  74. package/dist/collection/components/dropi-alert-legacy/dropi-alert-legacy.css +31 -0
  75. package/dist/collection/components/dropi-alert-legacy/dropi-alert-legacy.js +128 -0
  76. package/dist/collection/components/dropi-alert-modal/dropi-alert-modal.css +55 -23
  77. package/dist/collection/components/dropi-alert-modal/dropi-alert-modal.js +180 -50
  78. package/dist/collection/components/dropi-avatars/dropi-avatars.js +3 -3
  79. package/dist/collection/components/dropi-badge/dropi-badge.css +1 -1
  80. package/dist/collection/components/dropi-badge/dropi-badge.js +3 -4
  81. package/dist/collection/components/dropi-badge-legacy/dropi-badge-legacy.css +17 -0
  82. package/dist/collection/components/dropi-badge-legacy/dropi-badge-legacy.js +119 -0
  83. package/dist/collection/components/dropi-banner-external/dropi-banner-external.js +88 -13
  84. package/dist/collection/components/dropi-breadcrumb/dropi-breadcrumb.js +1 -1
  85. package/dist/collection/components/dropi-button/dropi-button.css +17 -17
  86. package/dist/collection/components/dropi-button/dropi-button.js +31 -7
  87. package/dist/collection/components/dropi-card-checkbox/dropi-card-checkbox.css +3 -1
  88. package/dist/collection/components/dropi-card-checkbox/dropi-card-checkbox.js +30 -27
  89. package/dist/collection/components/dropi-card-product/dropi-card-product.css +179 -102
  90. package/dist/collection/components/dropi-card-product/dropi-card-product.js +112 -79
  91. package/dist/collection/components/dropi-card-section/dropi-card-section.css +2 -2
  92. package/dist/collection/components/dropi-card-section/dropi-card-section.js +25 -25
  93. package/dist/collection/components/dropi-carousel/dropi-carousel.css +114 -69
  94. package/dist/collection/components/dropi-carousel/dropi-carousel.js +202 -100
  95. package/dist/collection/components/dropi-checkbox/dropi-checkbox.js +6 -6
  96. package/dist/collection/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.js +42 -20
  97. package/dist/collection/components/dropi-chips/dropi-chips.js +15 -15
  98. package/dist/collection/components/dropi-city-selector/dropi-city-selector.css +112 -50
  99. package/dist/collection/components/dropi-city-selector/dropi-city-selector.js +38 -9
  100. package/dist/collection/components/dropi-color-picker/dropi-color-picker.css +169 -142
  101. package/dist/collection/components/dropi-color-picker/dropi-color-picker.js +317 -159
  102. package/dist/collection/components/dropi-country-flags/dropi-country-flags.js +5 -5
  103. package/dist/collection/components/dropi-country-selector/dropi-country-selector.css +72 -25
  104. package/dist/collection/components/dropi-country-selector/dropi-country-selector.js +124 -22
  105. package/dist/collection/components/dropi-date-picker/dropi-date-picker.css +104 -39
  106. package/dist/collection/components/dropi-date-picker/dropi-date-picker.js +131 -49
  107. package/dist/collection/components/dropi-date-picker-range/dropi-date-picker-range.css +8 -8
  108. package/dist/collection/components/dropi-date-picker-range/dropi-date-picker-range.js +8 -8
  109. package/dist/collection/components/dropi-drawer/dropi-drawer.css +38 -16
  110. package/dist/collection/components/dropi-drawer/dropi-drawer.js +107 -18
  111. package/dist/collection/components/dropi-dropdown/dropi-dropdown.css +1 -1
  112. package/dist/collection/components/dropi-dropdown/dropi-dropdown.js +52 -27
  113. package/dist/collection/components/dropi-empty-state/dropi-empty-state.js +37 -54
  114. package/dist/collection/components/dropi-favorite-button/dropi-favorite-button.js +5 -5
  115. package/dist/collection/components/dropi-file-upload/dropi-file-upload.css +431 -33
  116. package/dist/collection/components/dropi-file-upload/dropi-file-upload.js +364 -104
  117. package/dist/collection/components/dropi-file-upload-progress-bar/dropi-file-upload-progress-bar.css +82 -78
  118. package/dist/collection/components/dropi-file-upload-progress-bar/dropi-file-upload-progress-bar.js +129 -69
  119. package/dist/collection/components/dropi-icon/dropi-icon.css +5 -0
  120. package/dist/collection/components/dropi-icon/dropi-icon.js +19 -2
  121. package/dist/collection/components/dropi-ilustration-icon/dropi-ilustration-icon.css +3 -3
  122. package/dist/collection/components/dropi-ilustration-icon/dropi-ilustration-icon.js +1 -1
  123. package/dist/collection/components/dropi-image-miniature/dropi-image-miniature.js +1 -1
  124. package/dist/collection/components/dropi-image-overlay/dropi-image-overlay.css +6 -2
  125. package/dist/collection/components/dropi-image-overlay/dropi-image-overlay.js +5 -4
  126. package/dist/collection/components/dropi-input/dropi-input.css +1 -1
  127. package/dist/collection/components/dropi-input/dropi-input.js +155 -82
  128. package/dist/collection/components/dropi-languages-selector/dropi-languages-selector.css +1 -1
  129. package/dist/collection/components/dropi-languages-selector/dropi-languages-selector.js +9 -5
  130. package/dist/collection/components/dropi-logo/dropi-logo.js +12 -1
  131. package/dist/collection/components/dropi-lottie-loader/dropi-lottie-loader.css +8 -2
  132. package/dist/collection/components/dropi-lottie-loader/dropi-lottie-loader.js +6 -6
  133. package/dist/collection/components/dropi-media-player/dropi-media-player.css +263 -70
  134. package/dist/collection/components/dropi-media-player/dropi-media-player.js +161 -61
  135. package/dist/collection/components/dropi-modal/dropi-modal.css +14 -4
  136. package/dist/collection/components/dropi-modal/dropi-modal.js +312 -26
  137. package/dist/collection/components/dropi-navbar/dropi-navbar.css +7 -7
  138. package/dist/collection/components/dropi-navbar/dropi-navbar.js +42 -26
  139. package/dist/collection/components/dropi-otp-send-code/dropi-otp-send-code.css +2 -2
  140. package/dist/collection/components/dropi-otp-send-code/dropi-otp-send-code.js +13 -13
  141. package/dist/collection/components/dropi-paginator/dropi-paginator.css +2 -2
  142. package/dist/collection/components/dropi-paginator/dropi-paginator.js +51 -99
  143. package/dist/collection/components/dropi-phone-input/dropi-phone-input.css +158 -101
  144. package/dist/collection/components/dropi-phone-input/dropi-phone-input.js +256 -86
  145. package/dist/collection/components/dropi-radio-button/dropi-radio-button.js +13 -20
  146. package/dist/collection/components/dropi-radio-selection-list/dropi-radio-selection-list.css +3 -3
  147. package/dist/collection/components/dropi-radio-selection-list/dropi-radio-selection-list.js +69 -19
  148. package/dist/collection/components/dropi-read-more/dropi-read-more.css +5 -8
  149. package/dist/collection/components/dropi-read-more/dropi-read-more.js +46 -2
  150. package/dist/collection/components/dropi-search/dropi-search.css +2 -2
  151. package/dist/collection/components/dropi-search/dropi-search.js +194 -60
  152. package/dist/collection/components/dropi-select/dropi-select.css +7 -7
  153. package/dist/collection/components/dropi-select/dropi-select.js +170 -84
  154. package/dist/collection/components/dropi-sidebar/dropi-sidebar.css +51 -92
  155. package/dist/collection/components/dropi-sidebar/dropi-sidebar.js +86 -176
  156. package/dist/collection/components/dropi-simple-stepper/dropi-simple-stepper.css +2 -2
  157. package/dist/collection/components/dropi-simple-stepper/dropi-simple-stepper.js +29 -7
  158. package/dist/collection/components/dropi-skeleton/dropi-skeleton.js +40 -10
  159. package/dist/collection/components/dropi-steps/dropi-steps.css +3 -3
  160. package/dist/collection/components/dropi-steps/dropi-steps.js +31 -3
  161. package/dist/collection/components/dropi-switch/dropi-switch.js +5 -5
  162. package/dist/collection/components/dropi-table/dropi-table.css +505 -45
  163. package/dist/collection/components/dropi-table/dropi-table.js +690 -50
  164. package/dist/collection/components/dropi-tabs/dropi-tabs.css +10 -5
  165. package/dist/collection/components/dropi-tabs/dropi-tabs.js +35 -13
  166. package/dist/collection/components/dropi-tag/dropi-tag.js +5 -5
  167. package/dist/collection/components/dropi-tag-type-product/dropi-tag-type-product.css +4 -4
  168. package/dist/collection/components/dropi-tag-type-product/dropi-tag-type-product.js +1 -1
  169. package/dist/collection/components/dropi-text-area/dropi-text-area.css +4 -1
  170. package/dist/collection/components/dropi-text-area/dropi-text-area.js +87 -32
  171. package/dist/collection/components/dropi-time-line/dropi-time-line.css +2 -2
  172. package/dist/collection/components/dropi-time-line/dropi-time-line.js +1 -1
  173. package/dist/collection/components/dropi-toast/dropi-toast.css +2 -2
  174. package/dist/collection/components/dropi-toast/dropi-toast.js +6 -5
  175. package/dist/collection/components/dropi-tooltip/dropi-tooltip.css +28 -63
  176. package/dist/collection/components/dropi-tooltip/dropi-tooltip.js +11 -88
  177. package/dist/collection/components/dropi-tooltip-v2/dropi-tooltip.css +67 -0
  178. package/dist/collection/components/dropi-tooltip-v2/dropi-tooltip.js +468 -0
  179. package/dist/collection/components/dropi-vertical-steps/dropi-vertical-steps.css +3 -3
  180. package/dist/collection/components/dropi-vertical-steps/dropi-vertical-steps.js +5 -5
  181. package/dist/collection/components/dropi-youtube-lazy-video/dropi-youtube-lazy-video.css +1 -1
  182. package/dist/collection/components/dropi-youtube-lazy-video/dropi-youtube-lazy-video.js +1 -1
  183. package/dist/components/dropi-accordion-item.d.ts +11 -0
  184. package/dist/components/dropi-accordion-item.js +1 -0
  185. package/dist/components/dropi-accordion.js +1 -1
  186. package/dist/components/dropi-alert-legacy.d.ts +11 -0
  187. package/dist/components/dropi-alert-legacy.js +1 -0
  188. package/dist/components/dropi-alert-modal.js +1 -1
  189. package/dist/components/dropi-alert.js +1 -1
  190. package/dist/components/dropi-avatars.js +1 -1
  191. package/dist/components/dropi-badge-legacy.d.ts +11 -0
  192. package/dist/components/dropi-badge-legacy.js +1 -0
  193. package/dist/components/dropi-badge.js +1 -1
  194. package/dist/components/dropi-banner-external.js +1 -1
  195. package/dist/components/dropi-breadcrumb.js +1 -1
  196. package/dist/components/dropi-button.js +1 -1
  197. package/dist/components/dropi-card-checkbox.js +1 -1
  198. package/dist/components/dropi-card-product.js +1 -1
  199. package/dist/components/dropi-card-section.js +1 -1
  200. package/dist/components/dropi-carousel.js +1 -1
  201. package/dist/components/dropi-checkbox-selection-list.js +1 -1
  202. package/dist/components/dropi-checkbox.js +1 -1
  203. package/dist/components/dropi-chips.js +1 -1
  204. package/dist/components/dropi-city-selector.js +1 -1
  205. package/dist/components/dropi-color-picker.js +1 -1
  206. package/dist/components/dropi-country-flags.js +1 -1
  207. package/dist/components/dropi-country-selector.js +1 -1
  208. package/dist/components/dropi-date-picker-range.js +1 -1
  209. package/dist/components/dropi-date-picker.js +1 -1
  210. package/dist/components/dropi-drawer.js +1 -1
  211. package/dist/components/dropi-dropdown.js +1 -1
  212. package/dist/components/dropi-empty-state.js +1 -1
  213. package/dist/components/dropi-favorite-button.js +1 -1
  214. package/dist/components/dropi-file-upload-progress-bar.js +1 -1
  215. package/dist/components/dropi-file-upload.js +1 -1
  216. package/dist/components/dropi-icon.js +1 -1
  217. package/dist/components/dropi-ilustration-icon.js +1 -1
  218. package/dist/components/dropi-image-miniature.js +1 -1
  219. package/dist/components/dropi-image-overlay.js +1 -1
  220. package/dist/components/dropi-input.js +1 -1
  221. package/dist/components/dropi-languages-selector.js +1 -1
  222. package/dist/components/dropi-logo.js +1 -1
  223. package/dist/components/dropi-lottie-loader.js +1 -1
  224. package/dist/components/dropi-media-player.js +1 -1
  225. package/dist/components/dropi-modal.js +1 -1
  226. package/dist/components/dropi-navbar.js +1 -1
  227. package/dist/components/dropi-otp-send-code.js +1 -1
  228. package/dist/components/dropi-paginator.js +1 -1
  229. package/dist/components/dropi-phone-input.js +1 -1
  230. package/dist/components/dropi-radio-button.js +1 -1
  231. package/dist/components/dropi-radio-selection-list.js +1 -1
  232. package/dist/components/dropi-read-more.js +1 -1
  233. package/dist/components/dropi-search.js +1 -1
  234. package/dist/components/dropi-select.js +1 -1
  235. package/dist/components/dropi-sidebar.js +1 -1
  236. package/dist/components/dropi-simple-stepper.js +1 -1
  237. package/dist/components/dropi-skeleton.js +1 -1
  238. package/dist/components/dropi-steps.js +1 -1
  239. package/dist/components/dropi-switch.js +1 -1
  240. package/dist/components/dropi-table.js +1 -1
  241. package/dist/components/dropi-tabs.js +1 -1
  242. package/dist/components/dropi-tag-type-product.js +1 -1
  243. package/dist/components/dropi-tag.js +1 -1
  244. package/dist/components/dropi-text-area.js +1 -1
  245. package/dist/components/dropi-time-line.js +1 -1
  246. package/dist/components/dropi-toast.js +1 -1
  247. package/dist/components/dropi-tooltip-v2.d.ts +11 -0
  248. package/dist/components/dropi-tooltip-v2.js +1 -0
  249. package/dist/components/dropi-tooltip.js +1 -1
  250. package/dist/components/dropi-vertical-steps.js +1 -1
  251. package/dist/components/dropi-youtube-lazy-video.js +1 -1
  252. package/dist/components/index.js +1 -1
  253. package/dist/components/p-B9R8Apw7.js +1 -0
  254. package/dist/components/p-B_Ace02i.js +1 -0
  255. package/dist/components/p-BrjO_JXp.js +1 -0
  256. package/dist/components/p-BwhxWL4p.js +1 -0
  257. package/dist/components/p-Bz2jXX3R.js +1 -0
  258. package/dist/components/p-CV4X3Gm4.js +1 -0
  259. package/dist/components/p-CV_oz45O.js +1 -0
  260. package/dist/components/p-D-vQQQNz.js +1 -0
  261. package/dist/components/p-D13d88W3.js +1 -0
  262. package/dist/components/p-DGUfr98Z.js +1 -0
  263. package/dist/components/p-a-hGQrJd.js +1 -0
  264. package/dist/components/p-o5gyrbbD.js +1 -0
  265. package/dist/dropi-ui/dropi-ui.css +1 -1
  266. package/dist/dropi-ui/dropi-ui.esm.js +1 -1
  267. package/dist/dropi-ui/p-00e5a2de.entry.js +1 -0
  268. package/dist/dropi-ui/p-0188e07a.entry.js +1 -0
  269. package/dist/dropi-ui/p-02710049.entry.js +1 -0
  270. package/dist/dropi-ui/p-17c56074.entry.js +1 -0
  271. package/dist/dropi-ui/p-18adf694.entry.js +1 -0
  272. package/dist/dropi-ui/p-1a3619c3.entry.js +1 -0
  273. package/dist/dropi-ui/p-1d3d6a32.entry.js +1 -0
  274. package/dist/dropi-ui/p-25640777.entry.js +1 -0
  275. package/dist/dropi-ui/p-2674d901.entry.js +1 -0
  276. package/dist/dropi-ui/p-2af538b9.entry.js +1 -0
  277. package/dist/dropi-ui/p-3013f3b8.entry.js +1 -0
  278. package/dist/dropi-ui/p-3321ca70.entry.js +1 -0
  279. package/dist/dropi-ui/p-33d242ec.entry.js +1 -0
  280. package/dist/dropi-ui/p-39af6478.entry.js +1 -0
  281. package/dist/dropi-ui/p-3e36c8b8.entry.js +1 -0
  282. package/dist/dropi-ui/p-3ebc9b7b.entry.js +1 -0
  283. package/dist/dropi-ui/p-446a481d.entry.js +1 -0
  284. package/dist/dropi-ui/p-50a5e548.entry.js +1 -0
  285. package/dist/dropi-ui/p-50e0d44f.entry.js +1 -0
  286. package/dist/dropi-ui/p-53a7a37d.entry.js +1 -0
  287. package/dist/dropi-ui/p-5c0bd7c2.entry.js +1 -0
  288. package/dist/dropi-ui/p-5cee6721.entry.js +1 -0
  289. package/dist/dropi-ui/p-5fb33ae4.entry.js +1 -0
  290. package/dist/dropi-ui/p-665ef7ba.entry.js +1 -0
  291. package/dist/dropi-ui/p-66b80371.entry.js +1 -0
  292. package/dist/dropi-ui/p-7bfc1c27.entry.js +1 -0
  293. package/dist/dropi-ui/p-7c0d2edf.entry.js +1 -0
  294. package/dist/dropi-ui/p-7eb27836.entry.js +1 -0
  295. package/dist/dropi-ui/p-85444414.entry.js +1 -0
  296. package/dist/dropi-ui/p-86283e99.entry.js +1 -0
  297. package/dist/dropi-ui/p-8bf5d8ee.entry.js +1 -0
  298. package/dist/dropi-ui/p-9032ba00.entry.js +1 -0
  299. package/dist/dropi-ui/p-9212f544.entry.js +1 -0
  300. package/dist/dropi-ui/p-92291873.entry.js +1 -0
  301. package/dist/dropi-ui/p-955e52f8.entry.js +1 -0
  302. package/dist/dropi-ui/p-976a15e3.entry.js +1 -0
  303. package/dist/dropi-ui/p-9b037086.entry.js +1 -0
  304. package/dist/dropi-ui/p-9e0129cc.entry.js +1 -0
  305. package/dist/dropi-ui/{p-c9ebd31b.entry.js → p-9ffec3f7.entry.js} +1 -1
  306. package/dist/dropi-ui/p-D5SAM1O2.js +2 -0
  307. package/dist/dropi-ui/p-a1c93e55.entry.js +1 -0
  308. package/dist/dropi-ui/p-a232c6a7.entry.js +1 -0
  309. package/dist/dropi-ui/p-a3c4d677.entry.js +1 -0
  310. package/dist/dropi-ui/p-a457e8ca.entry.js +1 -0
  311. package/dist/dropi-ui/p-a4e1df5e.entry.js +1 -0
  312. package/dist/dropi-ui/p-a822a23e.entry.js +1 -0
  313. package/dist/dropi-ui/p-a8f24270.entry.js +1 -0
  314. package/dist/dropi-ui/p-ae35d538.entry.js +1 -0
  315. package/dist/dropi-ui/p-af8e2157.entry.js +1 -0
  316. package/dist/dropi-ui/p-b2623a5c.entry.js +1 -0
  317. package/dist/dropi-ui/p-b3d3c72e.entry.js +1 -0
  318. package/dist/dropi-ui/p-c3614c4a.entry.js +1 -0
  319. package/dist/dropi-ui/p-cbf5367e.entry.js +1 -0
  320. package/dist/dropi-ui/p-cc527d91.entry.js +1 -0
  321. package/dist/dropi-ui/p-cdde481b.entry.js +1 -0
  322. package/dist/dropi-ui/p-d42d4ef7.entry.js +1 -0
  323. package/dist/dropi-ui/{p-b41c8a6c.entry.js → p-db38bf16.entry.js} +1 -1
  324. package/dist/dropi-ui/p-dd5d8b1b.entry.js +1 -0
  325. package/dist/dropi-ui/p-e3ad21f8.entry.js +1 -0
  326. package/dist/dropi-ui/p-e6e766ed.entry.js +1 -0
  327. package/dist/dropi-ui/p-ec263862.entry.js +1 -0
  328. package/dist/dropi-ui/p-efc2fc35.entry.js +1 -0
  329. package/dist/dropi-ui/p-f41cd9b5.entry.js +1 -0
  330. package/dist/dropi-ui/p-fa3d0267.entry.js +1 -0
  331. package/dist/esm/dropi-accordion-item.entry.js +52 -0
  332. package/dist/esm/dropi-accordion.entry.js +5 -39
  333. package/dist/esm/dropi-alert-legacy.entry.js +37 -0
  334. package/dist/esm/dropi-alert-modal.entry.js +80 -24
  335. package/dist/esm/dropi-alert.entry.js +20 -14
  336. package/dist/esm/dropi-avatars.entry.js +3 -3
  337. package/dist/esm/dropi-badge-legacy.entry.js +28 -0
  338. package/dist/esm/dropi-badge.entry.js +4 -4
  339. package/dist/esm/dropi-banner-external.entry.js +25 -9
  340. package/dist/esm/dropi-breadcrumb.entry.js +2 -2
  341. package/dist/esm/dropi-button.entry.js +11 -7
  342. package/dist/esm/dropi-card-checkbox.entry.js +17 -14
  343. package/dist/esm/dropi-card-product.entry.js +42 -23
  344. package/dist/esm/dropi-card-section.entry.js +17 -17
  345. package/dist/esm/dropi-carousel.entry.js +112 -42
  346. package/dist/esm/dropi-checkbox-selection-list.entry.js +17 -15
  347. package/dist/esm/dropi-checkbox.entry.js +6 -6
  348. package/dist/esm/dropi-chips.entry.js +8 -8
  349. package/dist/esm/dropi-city-selector.entry.js +28 -9
  350. package/dist/esm/dropi-color-picker.entry.js +300 -50
  351. package/dist/esm/dropi-country-flags.entry.js +4 -4
  352. package/dist/esm/dropi-country-selector.entry.js +50 -17
  353. package/dist/esm/dropi-date-picker-range.entry.js +8 -8
  354. package/dist/esm/dropi-date-picker.entry.js +53 -35
  355. package/dist/esm/dropi-drawer.entry.js +38 -9
  356. package/dist/esm/dropi-dropdown.entry.js +23 -16
  357. package/dist/esm/dropi-empty-state.entry.js +15 -18
  358. package/dist/esm/dropi-favorite-button.entry.js +5 -5
  359. package/dist/esm/dropi-file-upload-progress-bar.entry.js +57 -32
  360. package/dist/esm/dropi-file-upload.entry.js +210 -57
  361. package/dist/esm/dropi-icon.entry.js +21 -4
  362. package/dist/esm/dropi-ilustration-icon.entry.js +3 -3
  363. package/dist/esm/dropi-image-miniature.entry.js +2 -2
  364. package/dist/esm/dropi-image-overlay.entry.js +4 -3
  365. package/dist/esm/dropi-input_3.entry.js +388 -0
  366. package/dist/esm/dropi-languages-selector.entry.js +10 -6
  367. package/dist/esm/dropi-logo.entry.js +12 -2
  368. package/dist/esm/dropi-lottie-loader.entry.js +5 -5
  369. package/dist/esm/dropi-media-player.entry.js +131 -41
  370. package/dist/esm/dropi-modal.entry.js +46 -20
  371. package/dist/esm/dropi-navbar.entry.js +14 -12
  372. package/dist/esm/dropi-otp-send-code.entry.js +13 -13
  373. package/dist/esm/dropi-phone-input.entry.js +163 -50
  374. package/dist/esm/dropi-radio-button.entry.js +7 -7
  375. package/dist/esm/dropi-radio-selection-list.entry.js +17 -13
  376. package/dist/esm/dropi-read-more.entry.js +8 -4
  377. package/dist/esm/dropi-search.entry.js +52 -38
  378. package/dist/esm/dropi-select.entry.js +102 -55
  379. package/dist/esm/dropi-sidebar.entry.js +61 -50
  380. package/dist/esm/dropi-simple-stepper.entry.js +8 -6
  381. package/dist/esm/dropi-skeleton.entry.js +16 -6
  382. package/dist/esm/dropi-steps.entry.js +6 -4
  383. package/dist/esm/dropi-switch.entry.js +5 -5
  384. package/dist/esm/dropi-table.entry.js +212 -37
  385. package/dist/esm/dropi-tabs.entry.js +13 -11
  386. package/dist/esm/dropi-tag-type-product.entry.js +3 -3
  387. package/dist/esm/dropi-text-area.entry.js +45 -14
  388. package/dist/esm/dropi-time-line.entry.js +3 -3
  389. package/dist/esm/dropi-toast.entry.js +7 -6
  390. package/dist/esm/dropi-tooltip-v2.entry.js +129 -0
  391. package/dist/esm/dropi-tooltip.entry.js +5 -26
  392. package/dist/esm/dropi-ui.js +3 -3
  393. package/dist/esm/dropi-vertical-steps.entry.js +6 -6
  394. package/dist/esm/dropi-youtube-lazy-video.entry.js +3 -3
  395. package/dist/esm/{index-Tbza12Gt.js → index-D5SAM1O2.js} +1044 -15
  396. package/dist/esm/loader.js +3 -3
  397. package/dist/types/components/dropi-accordion/dropi-accordion-item.d.ts +24 -0
  398. package/dist/types/components/dropi-accordion/dropi-accordion.d.ts +3 -23
  399. package/dist/types/components/dropi-alert/dropi-alert.d.ts +9 -3
  400. package/dist/types/components/dropi-alert-legacy/dropi-alert-legacy.d.ts +18 -0
  401. package/dist/types/components/dropi-alert-modal/dropi-alert-modal.d.ts +26 -8
  402. package/dist/types/components/dropi-badge-legacy/dropi-badge-legacy.d.ts +15 -0
  403. package/dist/types/components/dropi-banner-external/dropi-banner-external.d.ts +11 -3
  404. package/dist/types/components/dropi-button/dropi-button.d.ts +4 -2
  405. package/dist/types/components/dropi-card-checkbox/dropi-card-checkbox.d.ts +8 -7
  406. package/dist/types/components/dropi-card-product/dropi-card-product.d.ts +19 -15
  407. package/dist/types/components/dropi-card-section/dropi-card-section.d.ts +5 -5
  408. package/dist/types/components/dropi-carousel/dropi-carousel.d.ts +31 -27
  409. package/dist/types/components/dropi-checkbox/dropi-checkbox.d.ts +1 -1
  410. package/dist/types/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.d.ts +7 -5
  411. package/dist/types/components/dropi-chips/dropi-chips.d.ts +4 -4
  412. package/dist/types/components/dropi-city-selector/dropi-city-selector.d.ts +3 -1
  413. package/dist/types/components/dropi-color-picker/dropi-color-picker.d.ts +51 -26
  414. package/dist/types/components/dropi-country-flags/dropi-country-flags.d.ts +1 -1
  415. package/dist/types/components/dropi-country-selector/dropi-country-selector.d.ts +16 -5
  416. package/dist/types/components/dropi-date-picker/dropi-date-picker.d.ts +16 -8
  417. package/dist/types/components/dropi-date-picker-range/dropi-date-picker-range.d.ts +2 -2
  418. package/dist/types/components/dropi-drawer/dropi-drawer.d.ts +12 -6
  419. package/dist/types/components/dropi-dropdown/dropi-dropdown.d.ts +12 -6
  420. package/dist/types/components/dropi-empty-state/dropi-empty-state.d.ts +12 -14
  421. package/dist/types/components/dropi-favorite-button/dropi-favorite-button.d.ts +1 -1
  422. package/dist/types/components/dropi-file-upload/dropi-file-upload.d.ts +65 -26
  423. package/dist/types/components/dropi-file-upload-progress-bar/dropi-file-upload-progress-bar.d.ts +24 -16
  424. package/dist/types/components/dropi-icon/dropi-icon.d.ts +3 -1
  425. package/dist/types/components/dropi-image-overlay/dropi-image-overlay.d.ts +1 -1
  426. package/dist/types/components/dropi-input/dropi-input.d.ts +27 -17
  427. package/dist/types/components/dropi-languages-selector/dropi-languages-selector.d.ts +1 -1
  428. package/dist/types/components/dropi-logo/dropi-logo.d.ts +2 -0
  429. package/dist/types/components/dropi-lottie-loader/dropi-lottie-loader.d.ts +1 -1
  430. package/dist/types/components/dropi-media-player/dropi-media-player.d.ts +26 -19
  431. package/dist/types/components/dropi-modal/dropi-modal.d.ts +24 -5
  432. package/dist/types/components/dropi-navbar/dropi-navbar.d.ts +7 -5
  433. package/dist/types/components/dropi-otp-send-code/dropi-otp-send-code.d.ts +1 -1
  434. package/dist/types/components/dropi-paginator/dropi-paginator.d.ts +10 -20
  435. package/dist/types/components/dropi-phone-input/dropi-phone-input.d.ts +35 -20
  436. package/dist/types/components/dropi-radio-button/dropi-radio-button.d.ts +2 -2
  437. package/dist/types/components/dropi-radio-selection-list/dropi-radio-selection-list.d.ts +11 -4
  438. package/dist/types/components/dropi-read-more/dropi-read-more.d.ts +4 -0
  439. package/dist/types/components/dropi-search/dropi-search.d.ts +24 -12
  440. package/dist/types/components/dropi-select/dropi-select.d.ts +26 -15
  441. package/dist/types/components/dropi-sidebar/dropi-sidebar.d.ts +32 -26
  442. package/dist/types/components/dropi-simple-stepper/dropi-simple-stepper.d.ts +2 -0
  443. package/dist/types/components/dropi-skeleton/dropi-skeleton.d.ts +4 -1
  444. package/dist/types/components/dropi-steps/dropi-steps.d.ts +3 -0
  445. package/dist/types/components/dropi-switch/dropi-switch.d.ts +1 -1
  446. package/dist/types/components/dropi-table/dropi-table.d.ts +90 -14
  447. package/dist/types/components/dropi-tabs/dropi-tabs.d.ts +5 -3
  448. package/dist/types/components/dropi-text-area/dropi-text-area.d.ts +27 -6
  449. package/dist/types/components/dropi-tooltip/dropi-tooltip.d.ts +3 -17
  450. package/dist/types/components/dropi-tooltip-v2/dropi-tooltip.d.ts +59 -0
  451. package/dist/types/components/dropi-vertical-steps/dropi-vertical-steps.d.ts +1 -1
  452. package/dist/types/components.d.ts +2182 -1180
  453. package/dist/types/index.d.ts +1 -0
  454. package/hydrate/index.d.ts +287 -0
  455. package/hydrate/index.js +30455 -0
  456. package/hydrate/index.mjs +30445 -0
  457. package/hydrate/package.json +12 -0
  458. package/package.json +33 -5
  459. package/readme.md +97 -18
  460. package/scripts/setup.js +310 -29
  461. package/skills/install-dropi-ui/skill.md +15 -10
  462. package/dist/cjs/dropi-input.cjs.entry.js +0 -210
  463. package/dist/cjs/dropi-paginator.cjs.entry.js +0 -91
  464. package/dist/cjs/dropi-tag.cjs.entry.js +0 -68
  465. package/dist/components/p-BY_J-4Sm.js +0 -1
  466. package/dist/components/p-CYCV-5qV.js +0 -1
  467. package/dist/components/p-D0ZJcRZn.js +0 -1
  468. package/dist/components/p-DUPOnSiL.js +0 -1
  469. package/dist/components/p-DUX_WvqW.js +0 -1
  470. package/dist/components/p-wO1yy0Zr.js +0 -1
  471. package/dist/dropi-ui/p-053ebb91.entry.js +0 -1
  472. package/dist/dropi-ui/p-0acd32e6.entry.js +0 -1
  473. package/dist/dropi-ui/p-0e88a543.entry.js +0 -1
  474. package/dist/dropi-ui/p-0f2f5f75.entry.js +0 -1
  475. package/dist/dropi-ui/p-131d87ac.entry.js +0 -1
  476. package/dist/dropi-ui/p-1af4719d.entry.js +0 -1
  477. package/dist/dropi-ui/p-1e8f6d4a.entry.js +0 -1
  478. package/dist/dropi-ui/p-22132b1a.entry.js +0 -1
  479. package/dist/dropi-ui/p-2c1aaf6f.entry.js +0 -1
  480. package/dist/dropi-ui/p-2e9b87a9.entry.js +0 -1
  481. package/dist/dropi-ui/p-3414a414.entry.js +0 -1
  482. package/dist/dropi-ui/p-34ad54a1.entry.js +0 -1
  483. package/dist/dropi-ui/p-3531378b.entry.js +0 -1
  484. package/dist/dropi-ui/p-3983a7aa.entry.js +0 -1
  485. package/dist/dropi-ui/p-40e91337.entry.js +0 -1
  486. package/dist/dropi-ui/p-4a8646e5.entry.js +0 -1
  487. package/dist/dropi-ui/p-4be64bf0.entry.js +0 -1
  488. package/dist/dropi-ui/p-4ec17510.entry.js +0 -1
  489. package/dist/dropi-ui/p-5023eef0.entry.js +0 -1
  490. package/dist/dropi-ui/p-51a97b1a.entry.js +0 -1
  491. package/dist/dropi-ui/p-52796d84.entry.js +0 -1
  492. package/dist/dropi-ui/p-53a5bd7b.entry.js +0 -1
  493. package/dist/dropi-ui/p-5425f941.entry.js +0 -1
  494. package/dist/dropi-ui/p-58d0bf7a.entry.js +0 -1
  495. package/dist/dropi-ui/p-59d3bd9b.entry.js +0 -1
  496. package/dist/dropi-ui/p-5e957631.entry.js +0 -1
  497. package/dist/dropi-ui/p-64cbf4ea.entry.js +0 -1
  498. package/dist/dropi-ui/p-68080534.entry.js +0 -1
  499. package/dist/dropi-ui/p-6da6b97e.entry.js +0 -1
  500. package/dist/dropi-ui/p-6df57f25.entry.js +0 -1
  501. package/dist/dropi-ui/p-7c916570.entry.js +0 -1
  502. package/dist/dropi-ui/p-7e95462a.entry.js +0 -1
  503. package/dist/dropi-ui/p-80089042.entry.js +0 -1
  504. package/dist/dropi-ui/p-8768bb11.entry.js +0 -1
  505. package/dist/dropi-ui/p-896f2900.entry.js +0 -1
  506. package/dist/dropi-ui/p-89ac1ff2.entry.js +0 -1
  507. package/dist/dropi-ui/p-8ce79c69.entry.js +0 -1
  508. package/dist/dropi-ui/p-8e809670.entry.js +0 -1
  509. package/dist/dropi-ui/p-93b207b7.entry.js +0 -1
  510. package/dist/dropi-ui/p-983f72ad.entry.js +0 -1
  511. package/dist/dropi-ui/p-98babb78.entry.js +0 -1
  512. package/dist/dropi-ui/p-9fc53d50.entry.js +0 -1
  513. package/dist/dropi-ui/p-Tbza12Gt.js +0 -2
  514. package/dist/dropi-ui/p-a20705fe.entry.js +0 -1
  515. package/dist/dropi-ui/p-a72da98f.entry.js +0 -1
  516. package/dist/dropi-ui/p-a876d57c.entry.js +0 -1
  517. package/dist/dropi-ui/p-b1b0f938.entry.js +0 -1
  518. package/dist/dropi-ui/p-b2e176b1.entry.js +0 -1
  519. package/dist/dropi-ui/p-b890fd5b.entry.js +0 -1
  520. package/dist/dropi-ui/p-bf5a53ef.entry.js +0 -1
  521. package/dist/dropi-ui/p-c0677661.entry.js +0 -1
  522. package/dist/dropi-ui/p-c2562a1c.entry.js +0 -1
  523. package/dist/dropi-ui/p-c2b5d0fb.entry.js +0 -1
  524. package/dist/dropi-ui/p-c4d4396b.entry.js +0 -1
  525. package/dist/dropi-ui/p-cecfb68e.entry.js +0 -1
  526. package/dist/dropi-ui/p-d0b47e2e.entry.js +0 -1
  527. package/dist/dropi-ui/p-dcefef51.entry.js +0 -1
  528. package/dist/dropi-ui/p-e4b7e15f.entry.js +0 -1
  529. package/dist/dropi-ui/p-e7f4ed25.entry.js +0 -1
  530. package/dist/dropi-ui/p-f1d69b15.entry.js +0 -1
  531. package/dist/esm/dropi-input.entry.js +0 -208
  532. package/dist/esm/dropi-paginator.entry.js +0 -89
  533. package/dist/esm/dropi-tag.entry.js +0 -66
@@ -1,33 +1,93 @@
1
1
  import { h } from "@stencil/core";
2
2
  /**
3
3
  * @component dropi-table
4
- * Data table with sortable columns, row selection, and empty state.
5
- * Pass columns and rows as JSON strings or arrays.
4
+ * Data table with sortable columns, row selection, search, column selector and pagination.
6
5
  */
7
6
  export class DropiTable {
8
- /** Column definitions (array or JSON string) */
7
+ /** Column definitions */
9
8
  columns = [];
10
- /** Row data (array or JSON string) */
9
+ /** Row data */
11
10
  rows = [];
12
- /** Enable row selection (checkboxes) */
13
- selectable = false;
11
+ /** Show checkbox column */
12
+ showCheckbox = false;
14
13
  /** Show loading skeleton */
15
14
  loading = false;
16
- /** Text shown when no rows */
15
+ /** Empty state message */
17
16
  emptyMessage = 'No hay datos disponibles';
18
- /** Stripe alternate rows */
19
- striped = false;
17
+ /** Table title */
18
+ title = '';
19
+ /** Show search input */
20
+ showSearch = false;
21
+ /** Show column selector button */
22
+ showColumnSelector = false;
23
+ /** Show paginator */
24
+ showPaginator = false;
25
+ /** Page sizes options */
26
+ pageSizes = [5, 10, 25, 50];
27
+ /** Current page (1-based) */
28
+ currentPage = 1;
29
+ /** Total pages */
30
+ totalPages = 1;
31
+ /** Show row actions (3-dot menu or inline icons) */
32
+ rowActions = [];
33
+ // ── Angular-parity props ─────────────────────────────────────
34
+ /**
35
+ * Column definitions — matches Angular `headers: DropiTableColumn[]`.
36
+ * Alias of `columns`; when provided, takes precedence.
37
+ */
38
+ headers = [];
39
+ /**
40
+ * Row data — matches Angular `data: DropiTableRow[]`.
41
+ * Alias of `rows`; when provided, takes precedence.
42
+ */
43
+ data = [];
44
+ /** Pre-selected row ids (matches Angular `selectedRowIds`) */
45
+ selectedRowIds = null;
46
+ /** Child / expanded rows data (matches Angular `childData`) */
47
+ childData = [];
48
+ /** Visible child rows (matches Angular `visibleRowsChildrens`) */
49
+ visibleRowsChildrens = [];
50
+ /** Table-level configuration object (matches Angular `dropiTableConfiguration`) */
51
+ dropiTableConfiguration = null;
52
+ /** Backend pagination / filter params (matches Angular `dropiTableBackendParams`) */
53
+ dropiTableBackendParams = null;
54
+ /** Use cursor-based pagination instead of offset (matches Angular `isCursorPagination`) */
55
+ isCursorPagination = false;
20
56
  parsedColumns = [];
21
57
  parsedRows = [];
58
+ parsedPageSizes = [5, 10, 25, 50];
59
+ parsedRowActions = [];
22
60
  sortKey = '';
23
61
  sortDir = null;
62
+ sortAsc = true;
24
63
  selectedKeys = new Set();
25
- /** Emitted when sort changes. e.detail = { key, dir } */
64
+ searchTerm = '';
65
+ pageSize = 5;
66
+ showColumnMenu = false;
67
+ hiddenColumns = new Set();
68
+ openActionRow = -1;
26
69
  dropiSort;
27
- /** Emitted when selection changes. e.detail = selected row indices */
28
70
  dropiSelection;
29
- /** Emitted when a row is clicked. e.detail = { row, index } */
30
71
  dropiRowClick;
72
+ dropiSearch;
73
+ dropiPageChange;
74
+ dropiPageSizeChange;
75
+ dropiAction;
76
+ // ── Angular-parity events ────────────────────────────────────
77
+ /** Matches Angular `rowsSelected` */
78
+ rowsSelected;
79
+ /** Matches Angular `actionClicked` */
80
+ actionClicked;
81
+ /** Matches Angular `onPageChange` */
82
+ onPageChange;
83
+ /** Matches Angular `onSizeChange` */
84
+ onSizeChange;
85
+ /** Matches Angular `onSortChange` */
86
+ onSortChange;
87
+ /** Matches Angular `onSearchChange` */
88
+ onSearchChange;
89
+ /** Matches Angular `expandChildren` */
90
+ expandChildren;
31
91
  columnsChanged(val) {
32
92
  this.parsedColumns = typeof val === 'string' ? JSON.parse(val) : (val || []);
33
93
  }
@@ -35,16 +95,58 @@ export class DropiTable {
35
95
  this.parsedRows = typeof val === 'string' ? JSON.parse(val) : (val || []);
36
96
  this.selectedKeys = new Set();
37
97
  }
98
+ pageSizesChanged(val) {
99
+ this.parsedPageSizes = typeof val === 'string' ? JSON.parse(val) : (val || [5, 10, 25, 50]);
100
+ this.pageSize = this.parsedPageSizes[0] ?? 5;
101
+ }
102
+ rowActionsChanged(val) {
103
+ this.parsedRowActions = typeof val === 'string' ? JSON.parse(val) : (val || []);
104
+ }
105
+ headersChanged(val) {
106
+ // `headers` is an alias for `columns`
107
+ const parsed = typeof val === 'string' ? JSON.parse(val) : (val || []);
108
+ if (parsed.length > 0)
109
+ this.parsedColumns = parsed;
110
+ }
111
+ dataChanged(val) {
112
+ // `data` is an alias for `rows`
113
+ const parsed = typeof val === 'string' ? JSON.parse(val) : (val || []);
114
+ if (parsed.length > 0) {
115
+ this.parsedRows = parsed;
116
+ this.selectedKeys = new Set();
117
+ }
118
+ }
38
119
  componentWillLoad() {
39
- this.columnsChanged(this.columns);
40
- this.rowsChanged(this.rows);
120
+ // SSR hydration guard: if no data props provided, preserve server-rendered DOM
121
+ if (this.data == null && this.rows == null && this.headers == null && this.columns == null)
122
+ return;
123
+ // headers/data take precedence over columns/rows when provided
124
+ const headersSrc = (Array.isArray(this.headers) ? this.headers : []).length
125
+ ? this.headers : this.columns;
126
+ const dataSrc = (Array.isArray(this.data) ? this.data : []).length
127
+ ? this.data : this.rows;
128
+ this.columnsChanged(headersSrc);
129
+ this.rowsChanged(dataSrc);
130
+ this.pageSizesChanged(this.pageSizes);
131
+ this.rowActionsChanged(this.rowActions);
132
+ }
133
+ get visibleColumns() {
134
+ const hidden = this.hiddenColumns ?? new Set();
135
+ return (this.parsedColumns ?? []).filter(c => !hidden.has(c.key));
136
+ }
137
+ get filteredRows() {
138
+ if (!this.searchTerm)
139
+ return this.parsedRows;
140
+ const q = this.searchTerm.toLowerCase();
141
+ return this.parsedRows.filter(row => Object.values(row).some(v => String(v ?? '').toLowerCase().includes(q)));
41
142
  }
42
143
  get sortedRows() {
144
+ const rows = this.filteredRows;
43
145
  if (!this.sortKey || !this.sortDir)
44
- return this.parsedRows;
146
+ return rows;
45
147
  const key = this.sortKey;
46
148
  const dir = this.sortDir === 'asc' ? 1 : -1;
47
- return [...this.parsedRows].sort((a, b) => {
149
+ return [...rows].sort((a, b) => {
48
150
  const av = a[key] ?? '';
49
151
  const bv = b[key] ?? '';
50
152
  if (av < bv)
@@ -54,19 +156,28 @@ export class DropiTable {
54
156
  return 0;
55
157
  });
56
158
  }
159
+ get pagedRows() {
160
+ if (!this.showPaginator)
161
+ return this.sortedRows;
162
+ const start = (this.currentPage - 1) * this.pageSize;
163
+ return this.sortedRows.slice(start, start + this.pageSize);
164
+ }
57
165
  handleSort(col) {
58
166
  if (!col.sortable)
59
167
  return;
60
168
  if (this.sortKey === col.key) {
61
169
  this.sortDir = this.sortDir === 'asc' ? 'desc' : this.sortDir === 'desc' ? null : 'asc';
170
+ this.sortAsc = this.sortDir !== 'desc';
62
171
  if (this.sortDir === null)
63
172
  this.sortKey = '';
64
173
  }
65
174
  else {
66
175
  this.sortKey = col.key;
67
176
  this.sortDir = 'asc';
177
+ this.sortAsc = true;
68
178
  }
69
179
  this.dropiSort.emit({ key: this.sortKey, dir: this.sortDir });
180
+ this.onSortChange.emit({ key: this.sortKey, dir: this.sortDir });
70
181
  }
71
182
  toggleRow(idx) {
72
183
  const next = new Set(this.selectedKeys);
@@ -75,34 +186,74 @@ export class DropiTable {
75
186
  else
76
187
  next.add(idx);
77
188
  this.selectedKeys = next;
78
- this.dropiSelection.emit(Array.from(next));
189
+ const selected = Array.from(next);
190
+ this.dropiSelection.emit(selected);
191
+ this.rowsSelected.emit(selected.map(i => this.pagedRows[i]));
79
192
  }
80
193
  toggleAll(checked) {
81
- this.selectedKeys = checked
82
- ? new Set(this.sortedRows.map((_, i) => i))
83
- : new Set();
84
- this.dropiSelection.emit(Array.from(this.selectedKeys));
194
+ this.selectedKeys = checked ? new Set(this.pagedRows.map((_, i) => i)) : new Set();
195
+ const selected = Array.from(this.selectedKeys);
196
+ this.dropiSelection.emit(selected);
197
+ this.rowsSelected.emit(selected.map(i => this.pagedRows[i]));
85
198
  }
86
- sortIcon(col) {
87
- if (!col.sortable)
88
- return null;
89
- if (this.sortKey !== col.key) {
90
- return h("dropi-icon", { name: "Sort", width: "12px", height: "12px", color: "Gray-Gray-300" });
199
+ renderCellValue(value) {
200
+ if (value === null || value === undefined)
201
+ return '—';
202
+ if (typeof value === 'object' && value.type) {
203
+ switch (value.type) {
204
+ case 'tag':
205
+ return h("dropi-tag", { type: "secondary", state: value.typeTag, text: value.value });
206
+ case 'date':
207
+ return (h("div", { class: "date-label" }, h("span", null, new Date(value.value).toLocaleDateString('es-CO')), !value.hideTime && h("span", null, new Date(value.value).toLocaleTimeString('es-CO', { hour: '2-digit', minute: '2-digit' }))));
208
+ case 'country':
209
+ return (h("div", { class: "flag-container" }, value.flag && h("dropi-country-flags", { width: "24", height: "24", country: value.flag, style: { display: 'inline-flex' } }), h("span", null, value.value)));
210
+ case 'textIcon':
211
+ return (h("div", { class: "text-icon-label" }, h("dropi-icon", { name: value.icon, width: "24px", height: "24px", color: value.iconColor || 'Gray-Gray-500' }), value.value && h("span", null, value.value)));
212
+ case 'status':
213
+ return (h("div", { class: "status-label" }, h("div", { class: "status-dot" }, h("div", { class: `dot dot-${(value.status || '').toLowerCase()}` }), h("span", { class: "status-text" }, value.status)), value.value && h("span", { class: "status-description" }, value.value)));
214
+ case 'image':
215
+ return (h("div", { class: "image-label" }, h("div", { class: "img-container" }, h("img", { src: value.imageUrl, alt: value.value })), h("span", null, value.value)));
216
+ case 'textWrap':
217
+ return h("div", { class: "text-wrap-label", style: { maxWidth: value.maxWidth || '220px' } }, value.value);
218
+ default:
219
+ return h("span", { class: "table-labels" }, String(value.value ?? '—'));
220
+ }
91
221
  }
92
- return this.sortDir === 'asc'
93
- ? h("dropi-icon", { name: "Arrow-Up-2", width: "12px", height: "12px", color: "Primary-Primary-500" })
94
- : h("dropi-icon", { name: "Arrow-Down-2", width: "12px", height: "12px", color: "Primary-Primary-500" });
222
+ return h("span", { class: "table-labels" }, String(value));
95
223
  }
96
224
  render() {
97
- const rows = this.sortedRows;
225
+ // SSR hydration: if parsedRows not yet initialized, preserve server-rendered shadow DOM
226
+ if (this.parsedRows === undefined)
227
+ return null;
228
+ const rows = this.pagedRows;
98
229
  const allSelected = rows.length > 0 && this.selectedKeys.size === rows.length;
99
- return (h("div", { key: '3e06da209d1f71b8a4a250f4bcd8a8213f34781d', class: "table-wrap" }, h("table", { key: '20056c30e2652f2a405eeb00954dd7b9c9b5924b', class: { 'table': true, 'table--striped': this.striped } }, h("thead", { key: '1a1ea1914f81d1ef8814f202de4d60308801dc1d' }, h("tr", { key: '22447d7fef0cf22c27c6249570c454d44b0865d3' }, this.selectable && (h("th", { key: 'd51aa876d97e01840a5adc34a5ec53f30fc2cac6', class: "table__th table__th--check" }, h("dropi-checkbox", { key: '192639cf8599dc5f3b095092a403509050e43efa', checked: allSelected, onDropiChange: (e) => this.toggleAll(e.detail) }))), this.parsedColumns.map(col => (h("th", { class: {
100
- 'table__th': true,
101
- 'table__th--sortable': !!col.sortable,
102
- }, style: { width: col.width, textAlign: col.align || 'left' }, onClick: () => this.handleSort(col) }, h("span", { class: "table__th-inner" }, col.label, this.sortIcon(col))))))), h("tbody", { key: '93f65647369b59f913b381f541a18a215e8e0e9a' }, this.loading ? (Array.from({ length: 5 }).map(() => (h("tr", { class: "table__tr--skeleton" }, this.selectable && h("td", { class: "table__td" }, h("div", { class: "skeleton skeleton--sm" })), this.parsedColumns.map(() => (h("td", { class: "table__td" }, h("div", { class: "skeleton" })))))))) : rows.length === 0 ? (h("tr", null, h("td", { class: "table__td table__td--empty", colSpan: this.parsedColumns.length + (this.selectable ? 1 : 0) }, h("dropi-icon", { name: "Document", width: "24px", height: "24px", color: "Gray-Gray-300" }), h("p", null, this.emptyMessage)))) : (rows.map((row, i) => (h("tr", { class: {
103
- 'table__tr': true,
104
- 'table__tr--selected': this.selectedKeys.has(i),
105
- }, onClick: () => this.dropiRowClick.emit({ row, index: i }) }, this.selectable && (h("td", { class: "table__td table__td--check", onClick: (e) => e.stopPropagation() }, h("dropi-checkbox", { checked: this.selectedKeys.has(i), onDropiChange: () => this.toggleRow(i) }))), this.parsedColumns.map(col => (h("td", { class: "table__td", style: { textAlign: col.align || 'left' } }, row[col.key] ?? '—')))))))))));
230
+ const hasActions = this.parsedRowActions.length > 0;
231
+ const cols = this.visibleColumns;
232
+ return (h("div", { class: "table-container" }, (this.showSearch || this.showColumnSelector || this.title) && (h("div", { class: "search-container" }, this.title && h("h3", { class: "table-title" }, this.title), h("div", { class: `search-actions${this.showSearch ? '' : ' only-filter'}` }, this.showSearch && (h("dropi-input", { placeholder: "Buscar", value: this.searchTerm, onOnInput: (e) => {
233
+ this.searchTerm = e.detail;
234
+ this.dropiSearch.emit(e.detail);
235
+ this.onSearchChange.emit(e.detail);
236
+ } })), this.showColumnSelector && (h("div", { class: "table-tools" }, h("div", { class: "column-selector-container" }, h("button", { class: "column-selector-btn", onClick: () => this.showColumnMenu = !this.showColumnMenu }, h("dropi-icon", { name: "list-table", width: "20px", height: "20px", color: "Gray-Gray-500" })), this.showColumnMenu && (h("div", { class: "column-selector-menu" }, this.parsedColumns.map(col => (h("div", { class: "column-selector-option", onClick: () => {
237
+ const next = new Set(this.hiddenColumns);
238
+ if (next.has(col.key))
239
+ next.delete(col.key);
240
+ else
241
+ next.add(col.key);
242
+ this.hiddenColumns = next;
243
+ } }, h("dropi-checkbox", { checked: !this.hiddenColumns.has(col.key) }), h("span", null, col.label)))), h("div", { class: "column-selector-footer" }, h("div", { class: "column-selector-all", onClick: () => {
244
+ this.hiddenColumns = this.hiddenColumns.size === 0
245
+ ? new Set(this.parsedColumns.map(c => c.key))
246
+ : new Set();
247
+ } }, h("dropi-checkbox", { checked: this.hiddenColumns.size === 0 }), h("span", null, "Mostrar / Ocultar todo"))))))))))), h("div", { class: `table-wrapper${hasActions ? ' has-sticky-actions' : ''}` }, h("table", { class: `custom-table${this.showCheckbox ? ' has-checkbox' : ''}` }, h("thead", null, h("tr", null, this.showCheckbox && (h("th", { class: "checkbox-header" }, h("dropi-checkbox", { checked: allSelected, onOnChange: (e) => this.toggleAll(e.detail) }))), cols.map(col => (h("th", { class: { sortable: !!col.sortable, 'low-opacity': !!col.disabledColumn, 'highlight-column': !!col.highlightColumn }, style: { textAlign: col.align || 'center', minWidth: col.minWidth, maxWidth: col.maxWidth }, onClick: () => this.handleSort(col) }, h("div", { class: `headers-container${col.align === 'left' ? ' align-left' : col.align === 'right' ? ' align-right' : ''}` }, h("div", { class: `headers${col.align === 'left' ? ' align-left' : col.align === 'right' ? ' align-right' : ''}` }, h("span", null, col.label), col.sortable && (h("div", { class: "order-icons" }, h("dropi-icon", { name: "Caret-up", width: "12px", height: "12px", color: this.sortAsc ? 'Gray-Gray-500' : 'Gray-Gray-200' }), h("dropi-icon", { name: "Caret-down", width: "12px", height: "12px", color: !this.sortAsc ? 'Gray-Gray-500' : 'Gray-Gray-200' })))))))), hasActions && h("th", { class: "actions-header actions" }, "Acciones"))), h("tbody", null, this.loading ? (Array.from({ length: 5 }).map(() => (h("tr", { class: "table-row" }, this.showCheckbox && h("td", null, h("div", { class: "skeleton skeleton--sm" })), cols.map(() => h("td", null, h("div", { class: "skeleton" }))), hasActions && h("td", null))))) : rows.length === 0 ? (h("tr", null, h("td", { colSpan: cols.length + (this.showCheckbox ? 1 : 0) + (hasActions ? 1 : 0) }, h("div", { class: "empty-table" }, h("div", { class: "empty-message-container" }, this.emptyMessage))))) : (rows.map((row, i) => (h("tr", { class: "table-row", onClick: () => this.dropiRowClick.emit({ row, index: i }) }, this.showCheckbox && (h("td", { onClick: (e) => e.stopPropagation() }, h("dropi-checkbox", { checked: this.selectedKeys.has(i), onOnChange: () => this.toggleRow(i) }))), cols.map(col => (h("td", { class: { 'low-opacity': !!col.disabledColumn, 'highlight-column': !!col.highlightColumn }, style: { minWidth: col.minWidth, maxWidth: col.maxWidth, overflow: col.maxWidth ? 'hidden' : undefined } }, h("div", { class: "cell-content", style: { textAlign: col.align || 'center' } }, this.renderCellValue(row[col.key]))))), hasActions && (h("td", { class: "action-button actions", onClick: (e) => e.stopPropagation() }, this.parsedRowActions.length > 3 ? (h("div", { style: { display: "flex", justifyContent: "center", width: "100%" } }, h("dropi-icon", { class: "action-icon", name: "Menu-dots-vertical", width: "24px", height: "24px", color: "Gray-Gray-500", onClick: () => this.openActionRow = this.openActionRow === i ? -1 : i }), this.openActionRow === i && (h("div", { class: "actions-menu" }, this.parsedRowActions.map(action => (h("div", { class: "action-item", onClick: () => { this.openActionRow = -1; this.dropiAction.emit({ row, action }); this.actionClicked.emit({ row, action }); } }, h("dropi-icon", { name: action.icon, width: "20px", height: "20px", color: action.iconColor || 'Gray-Gray-500' }), action.label))))))) : (h("div", { class: "short-actions" }, this.parsedRowActions.map(action => (h("dropi-icon", { class: "action-icon", name: action.icon, width: "24px", height: "24px", color: action.iconColor || 'Gray-Gray-500', onClick: () => { this.dropiAction.emit({ row, action }); this.actionClicked.emit({ row, action }); } })))))))))))))), this.showPaginator && (h("div", { class: "pagination" }, h("div", { class: "page-size-selector" }, h("label", null, "Mostrar"), h("select", { onChange: (e) => {
248
+ this.pageSize = Number(e.target.value);
249
+ this.currentPage = 1;
250
+ this.dropiPageSizeChange.emit(this.pageSize);
251
+ this.onSizeChange.emit(this.pageSize);
252
+ } }, this.parsedPageSizes.map(s => (h("option", { value: s, selected: this.pageSize === s }, s))))), h("dropi-paginator", { totalPages: this.totalPages, currentPage: this.currentPage, onPageChange: (e) => {
253
+ this.currentPage = e.detail;
254
+ this.dropiPageChange.emit(e.detail);
255
+ this.onPageChange.emit(e.detail);
256
+ } })))));
106
257
  }
107
258
  static get is() { return "dropi-table"; }
108
259
  static get encapsulation() { return "shadow"; }
@@ -136,7 +287,7 @@ export class DropiTable {
136
287
  "optional": false,
137
288
  "docs": {
138
289
  "tags": [],
139
- "text": "Column definitions (array or JSON string)"
290
+ "text": "Column definitions"
140
291
  },
141
292
  "getter": false,
142
293
  "setter": false,
@@ -162,7 +313,7 @@ export class DropiTable {
162
313
  "optional": false,
163
314
  "docs": {
164
315
  "tags": [],
165
- "text": "Row data (array or JSON string)"
316
+ "text": "Row data"
166
317
  },
167
318
  "getter": false,
168
319
  "setter": false,
@@ -170,7 +321,7 @@ export class DropiTable {
170
321
  "attribute": "rows",
171
322
  "defaultValue": "[]"
172
323
  },
173
- "selectable": {
324
+ "showCheckbox": {
174
325
  "type": "boolean",
175
326
  "mutable": false,
176
327
  "complexType": {
@@ -182,12 +333,12 @@ export class DropiTable {
182
333
  "optional": false,
183
334
  "docs": {
184
335
  "tags": [],
185
- "text": "Enable row selection (checkboxes)"
336
+ "text": "Show checkbox column"
186
337
  },
187
338
  "getter": false,
188
339
  "setter": false,
189
340
  "reflect": false,
190
- "attribute": "selectable",
341
+ "attribute": "show-checkbox",
191
342
  "defaultValue": "false"
192
343
  },
193
344
  "loading": {
@@ -222,7 +373,7 @@ export class DropiTable {
222
373
  "optional": false,
223
374
  "docs": {
224
375
  "tags": [],
225
- "text": "Text shown when no rows"
376
+ "text": "Empty state message"
226
377
  },
227
378
  "getter": false,
228
379
  "setter": false,
@@ -230,7 +381,305 @@ export class DropiTable {
230
381
  "attribute": "empty-message",
231
382
  "defaultValue": "'No hay datos disponibles'"
232
383
  },
233
- "striped": {
384
+ "title": {
385
+ "type": "string",
386
+ "mutable": false,
387
+ "complexType": {
388
+ "original": "string",
389
+ "resolved": "string",
390
+ "references": {}
391
+ },
392
+ "required": false,
393
+ "optional": false,
394
+ "docs": {
395
+ "tags": [],
396
+ "text": "Table title"
397
+ },
398
+ "getter": false,
399
+ "setter": false,
400
+ "reflect": false,
401
+ "attribute": "title",
402
+ "defaultValue": "''"
403
+ },
404
+ "showSearch": {
405
+ "type": "boolean",
406
+ "mutable": false,
407
+ "complexType": {
408
+ "original": "boolean",
409
+ "resolved": "boolean",
410
+ "references": {}
411
+ },
412
+ "required": false,
413
+ "optional": false,
414
+ "docs": {
415
+ "tags": [],
416
+ "text": "Show search input"
417
+ },
418
+ "getter": false,
419
+ "setter": false,
420
+ "reflect": false,
421
+ "attribute": "show-search",
422
+ "defaultValue": "false"
423
+ },
424
+ "showColumnSelector": {
425
+ "type": "boolean",
426
+ "mutable": false,
427
+ "complexType": {
428
+ "original": "boolean",
429
+ "resolved": "boolean",
430
+ "references": {}
431
+ },
432
+ "required": false,
433
+ "optional": false,
434
+ "docs": {
435
+ "tags": [],
436
+ "text": "Show column selector button"
437
+ },
438
+ "getter": false,
439
+ "setter": false,
440
+ "reflect": false,
441
+ "attribute": "show-column-selector",
442
+ "defaultValue": "false"
443
+ },
444
+ "showPaginator": {
445
+ "type": "boolean",
446
+ "mutable": false,
447
+ "complexType": {
448
+ "original": "boolean",
449
+ "resolved": "boolean",
450
+ "references": {}
451
+ },
452
+ "required": false,
453
+ "optional": false,
454
+ "docs": {
455
+ "tags": [],
456
+ "text": "Show paginator"
457
+ },
458
+ "getter": false,
459
+ "setter": false,
460
+ "reflect": false,
461
+ "attribute": "show-paginator",
462
+ "defaultValue": "false"
463
+ },
464
+ "pageSizes": {
465
+ "type": "string",
466
+ "mutable": false,
467
+ "complexType": {
468
+ "original": "number[] | string",
469
+ "resolved": "number[] | string",
470
+ "references": {}
471
+ },
472
+ "required": false,
473
+ "optional": false,
474
+ "docs": {
475
+ "tags": [],
476
+ "text": "Page sizes options"
477
+ },
478
+ "getter": false,
479
+ "setter": false,
480
+ "reflect": false,
481
+ "attribute": "page-sizes",
482
+ "defaultValue": "[5, 10, 25, 50]"
483
+ },
484
+ "currentPage": {
485
+ "type": "number",
486
+ "mutable": true,
487
+ "complexType": {
488
+ "original": "number",
489
+ "resolved": "number",
490
+ "references": {}
491
+ },
492
+ "required": false,
493
+ "optional": false,
494
+ "docs": {
495
+ "tags": [],
496
+ "text": "Current page (1-based)"
497
+ },
498
+ "getter": false,
499
+ "setter": false,
500
+ "reflect": false,
501
+ "attribute": "current-page",
502
+ "defaultValue": "1"
503
+ },
504
+ "totalPages": {
505
+ "type": "number",
506
+ "mutable": false,
507
+ "complexType": {
508
+ "original": "number",
509
+ "resolved": "number",
510
+ "references": {}
511
+ },
512
+ "required": false,
513
+ "optional": false,
514
+ "docs": {
515
+ "tags": [],
516
+ "text": "Total pages"
517
+ },
518
+ "getter": false,
519
+ "setter": false,
520
+ "reflect": false,
521
+ "attribute": "total-pages",
522
+ "defaultValue": "1"
523
+ },
524
+ "rowActions": {
525
+ "type": "string",
526
+ "mutable": false,
527
+ "complexType": {
528
+ "original": "any[] | string",
529
+ "resolved": "any[] | string",
530
+ "references": {}
531
+ },
532
+ "required": false,
533
+ "optional": false,
534
+ "docs": {
535
+ "tags": [],
536
+ "text": "Show row actions (3-dot menu or inline icons)"
537
+ },
538
+ "getter": false,
539
+ "setter": false,
540
+ "reflect": false,
541
+ "attribute": "row-actions",
542
+ "defaultValue": "[]"
543
+ },
544
+ "headers": {
545
+ "type": "string",
546
+ "mutable": false,
547
+ "complexType": {
548
+ "original": "any[] | string",
549
+ "resolved": "any[] | string",
550
+ "references": {}
551
+ },
552
+ "required": false,
553
+ "optional": false,
554
+ "docs": {
555
+ "tags": [],
556
+ "text": "Column definitions \u2014 matches Angular `headers: DropiTableColumn[]`.\nAlias of `columns`; when provided, takes precedence."
557
+ },
558
+ "getter": false,
559
+ "setter": false,
560
+ "reflect": false,
561
+ "attribute": "headers",
562
+ "defaultValue": "[]"
563
+ },
564
+ "data": {
565
+ "type": "string",
566
+ "mutable": false,
567
+ "complexType": {
568
+ "original": "any[] | string",
569
+ "resolved": "any[] | string",
570
+ "references": {}
571
+ },
572
+ "required": false,
573
+ "optional": false,
574
+ "docs": {
575
+ "tags": [],
576
+ "text": "Row data \u2014 matches Angular `data: DropiTableRow[]`.\nAlias of `rows`; when provided, takes precedence."
577
+ },
578
+ "getter": false,
579
+ "setter": false,
580
+ "reflect": false,
581
+ "attribute": "data",
582
+ "defaultValue": "[]"
583
+ },
584
+ "selectedRowIds": {
585
+ "type": "unknown",
586
+ "mutable": false,
587
+ "complexType": {
588
+ "original": "any[] | null",
589
+ "resolved": "any[]",
590
+ "references": {}
591
+ },
592
+ "required": false,
593
+ "optional": false,
594
+ "docs": {
595
+ "tags": [],
596
+ "text": "Pre-selected row ids (matches Angular `selectedRowIds`)"
597
+ },
598
+ "getter": false,
599
+ "setter": false,
600
+ "defaultValue": "null"
601
+ },
602
+ "childData": {
603
+ "type": "string",
604
+ "mutable": false,
605
+ "complexType": {
606
+ "original": "any[] | string",
607
+ "resolved": "any[] | string",
608
+ "references": {}
609
+ },
610
+ "required": false,
611
+ "optional": false,
612
+ "docs": {
613
+ "tags": [],
614
+ "text": "Child / expanded rows data (matches Angular `childData`)"
615
+ },
616
+ "getter": false,
617
+ "setter": false,
618
+ "reflect": false,
619
+ "attribute": "child-data",
620
+ "defaultValue": "[]"
621
+ },
622
+ "visibleRowsChildrens": {
623
+ "type": "string",
624
+ "mutable": false,
625
+ "complexType": {
626
+ "original": "any[] | string",
627
+ "resolved": "any[] | string",
628
+ "references": {}
629
+ },
630
+ "required": false,
631
+ "optional": false,
632
+ "docs": {
633
+ "tags": [],
634
+ "text": "Visible child rows (matches Angular `visibleRowsChildrens`)"
635
+ },
636
+ "getter": false,
637
+ "setter": false,
638
+ "reflect": false,
639
+ "attribute": "visible-rows-childrens",
640
+ "defaultValue": "[]"
641
+ },
642
+ "dropiTableConfiguration": {
643
+ "type": "any",
644
+ "mutable": false,
645
+ "complexType": {
646
+ "original": "any",
647
+ "resolved": "any",
648
+ "references": {}
649
+ },
650
+ "required": false,
651
+ "optional": false,
652
+ "docs": {
653
+ "tags": [],
654
+ "text": "Table-level configuration object (matches Angular `dropiTableConfiguration`)"
655
+ },
656
+ "getter": false,
657
+ "setter": false,
658
+ "reflect": false,
659
+ "attribute": "dropi-table-configuration",
660
+ "defaultValue": "null"
661
+ },
662
+ "dropiTableBackendParams": {
663
+ "type": "any",
664
+ "mutable": false,
665
+ "complexType": {
666
+ "original": "any",
667
+ "resolved": "any",
668
+ "references": {}
669
+ },
670
+ "required": false,
671
+ "optional": false,
672
+ "docs": {
673
+ "tags": [],
674
+ "text": "Backend pagination / filter params (matches Angular `dropiTableBackendParams`)"
675
+ },
676
+ "getter": false,
677
+ "setter": false,
678
+ "reflect": false,
679
+ "attribute": "dropi-table-backend-params",
680
+ "defaultValue": "null"
681
+ },
682
+ "isCursorPagination": {
234
683
  "type": "boolean",
235
684
  "mutable": false,
236
685
  "complexType": {
@@ -242,12 +691,12 @@ export class DropiTable {
242
691
  "optional": false,
243
692
  "docs": {
244
693
  "tags": [],
245
- "text": "Stripe alternate rows"
694
+ "text": "Use cursor-based pagination instead of offset (matches Angular `isCursorPagination`)"
246
695
  },
247
696
  "getter": false,
248
697
  "setter": false,
249
698
  "reflect": false,
250
- "attribute": "striped",
699
+ "attribute": "is-cursor-pagination",
251
700
  "defaultValue": "false"
252
701
  }
253
702
  };
@@ -256,9 +705,17 @@ export class DropiTable {
256
705
  return {
257
706
  "parsedColumns": {},
258
707
  "parsedRows": {},
708
+ "parsedPageSizes": {},
709
+ "parsedRowActions": {},
259
710
  "sortKey": {},
260
711
  "sortDir": {},
261
- "selectedKeys": {}
712
+ "sortAsc": {},
713
+ "selectedKeys": {},
714
+ "searchTerm": {},
715
+ "pageSize": {},
716
+ "showColumnMenu": {},
717
+ "hiddenColumns": {},
718
+ "openActionRow": {}
262
719
  };
263
720
  }
264
721
  static get events() {
@@ -270,7 +727,7 @@ export class DropiTable {
270
727
  "composed": true,
271
728
  "docs": {
272
729
  "tags": [],
273
- "text": "Emitted when sort changes. e.detail = { key, dir }"
730
+ "text": ""
274
731
  },
275
732
  "complexType": {
276
733
  "original": "{ key: string; dir: SortDir }",
@@ -291,7 +748,7 @@ export class DropiTable {
291
748
  "composed": true,
292
749
  "docs": {
293
750
  "tags": [],
294
- "text": "Emitted when selection changes. e.detail = selected row indices"
751
+ "text": ""
295
752
  },
296
753
  "complexType": {
297
754
  "original": "number[]",
@@ -306,7 +763,7 @@ export class DropiTable {
306
763
  "composed": true,
307
764
  "docs": {
308
765
  "tags": [],
309
- "text": "Emitted when a row is clicked. e.detail = { row, index }"
766
+ "text": ""
310
767
  },
311
768
  "complexType": {
312
769
  "original": "{ row: TableRow; index: number }",
@@ -319,6 +776,177 @@ export class DropiTable {
319
776
  }
320
777
  }
321
778
  }
779
+ }, {
780
+ "method": "dropiSearch",
781
+ "name": "dropiSearch",
782
+ "bubbles": true,
783
+ "cancelable": true,
784
+ "composed": true,
785
+ "docs": {
786
+ "tags": [],
787
+ "text": ""
788
+ },
789
+ "complexType": {
790
+ "original": "string",
791
+ "resolved": "string",
792
+ "references": {}
793
+ }
794
+ }, {
795
+ "method": "dropiPageChange",
796
+ "name": "dropiPageChange",
797
+ "bubbles": true,
798
+ "cancelable": true,
799
+ "composed": true,
800
+ "docs": {
801
+ "tags": [],
802
+ "text": ""
803
+ },
804
+ "complexType": {
805
+ "original": "number",
806
+ "resolved": "number",
807
+ "references": {}
808
+ }
809
+ }, {
810
+ "method": "dropiPageSizeChange",
811
+ "name": "dropiPageSizeChange",
812
+ "bubbles": true,
813
+ "cancelable": true,
814
+ "composed": true,
815
+ "docs": {
816
+ "tags": [],
817
+ "text": ""
818
+ },
819
+ "complexType": {
820
+ "original": "number",
821
+ "resolved": "number",
822
+ "references": {}
823
+ }
824
+ }, {
825
+ "method": "dropiAction",
826
+ "name": "dropiAction",
827
+ "bubbles": true,
828
+ "cancelable": true,
829
+ "composed": true,
830
+ "docs": {
831
+ "tags": [],
832
+ "text": ""
833
+ },
834
+ "complexType": {
835
+ "original": "{ row: TableRow; action: any }",
836
+ "resolved": "{ row: TableRow; action: any; }",
837
+ "references": {
838
+ "TableRow": {
839
+ "location": "local",
840
+ "path": "/Users/mac-ti/Documents/dropi/dropi-ui/src/components/dropi-table/dropi-table.tsx",
841
+ "id": "src/components/dropi-table/dropi-table.tsx::TableRow"
842
+ }
843
+ }
844
+ }
845
+ }, {
846
+ "method": "rowsSelected",
847
+ "name": "rowsSelected",
848
+ "bubbles": true,
849
+ "cancelable": true,
850
+ "composed": true,
851
+ "docs": {
852
+ "tags": [],
853
+ "text": "Matches Angular `rowsSelected`"
854
+ },
855
+ "complexType": {
856
+ "original": "any[]",
857
+ "resolved": "any[]",
858
+ "references": {}
859
+ }
860
+ }, {
861
+ "method": "actionClicked",
862
+ "name": "actionClicked",
863
+ "bubbles": true,
864
+ "cancelable": true,
865
+ "composed": true,
866
+ "docs": {
867
+ "tags": [],
868
+ "text": "Matches Angular `actionClicked`"
869
+ },
870
+ "complexType": {
871
+ "original": "{ row: any; action: any }",
872
+ "resolved": "{ row: any; action: any; }",
873
+ "references": {}
874
+ }
875
+ }, {
876
+ "method": "onPageChange",
877
+ "name": "onPageChange",
878
+ "bubbles": true,
879
+ "cancelable": true,
880
+ "composed": true,
881
+ "docs": {
882
+ "tags": [],
883
+ "text": "Matches Angular `onPageChange`"
884
+ },
885
+ "complexType": {
886
+ "original": "number",
887
+ "resolved": "number",
888
+ "references": {}
889
+ }
890
+ }, {
891
+ "method": "onSizeChange",
892
+ "name": "onSizeChange",
893
+ "bubbles": true,
894
+ "cancelable": true,
895
+ "composed": true,
896
+ "docs": {
897
+ "tags": [],
898
+ "text": "Matches Angular `onSizeChange`"
899
+ },
900
+ "complexType": {
901
+ "original": "number",
902
+ "resolved": "number",
903
+ "references": {}
904
+ }
905
+ }, {
906
+ "method": "onSortChange",
907
+ "name": "onSortChange",
908
+ "bubbles": true,
909
+ "cancelable": true,
910
+ "composed": true,
911
+ "docs": {
912
+ "tags": [],
913
+ "text": "Matches Angular `onSortChange`"
914
+ },
915
+ "complexType": {
916
+ "original": "any",
917
+ "resolved": "any",
918
+ "references": {}
919
+ }
920
+ }, {
921
+ "method": "onSearchChange",
922
+ "name": "onSearchChange",
923
+ "bubbles": true,
924
+ "cancelable": true,
925
+ "composed": true,
926
+ "docs": {
927
+ "tags": [],
928
+ "text": "Matches Angular `onSearchChange`"
929
+ },
930
+ "complexType": {
931
+ "original": "string",
932
+ "resolved": "string",
933
+ "references": {}
934
+ }
935
+ }, {
936
+ "method": "expandChildren",
937
+ "name": "expandChildren",
938
+ "bubbles": true,
939
+ "cancelable": true,
940
+ "composed": true,
941
+ "docs": {
942
+ "tags": [],
943
+ "text": "Matches Angular `expandChildren`"
944
+ },
945
+ "complexType": {
946
+ "original": "{ row: any }",
947
+ "resolved": "{ row: any; }",
948
+ "references": {}
949
+ }
322
950
  }];
323
951
  }
324
952
  static get watchers() {
@@ -328,6 +956,18 @@ export class DropiTable {
328
956
  }, {
329
957
  "propName": "rows",
330
958
  "methodName": "rowsChanged"
959
+ }, {
960
+ "propName": "pageSizes",
961
+ "methodName": "pageSizesChanged"
962
+ }, {
963
+ "propName": "rowActions",
964
+ "methodName": "rowActionsChanged"
965
+ }, {
966
+ "propName": "headers",
967
+ "methodName": "headersChanged"
968
+ }, {
969
+ "propName": "data",
970
+ "methodName": "dataChanged"
331
971
  }];
332
972
  }
333
973
  }