@actabldesign/bellhop-core 0.0.3 → 0.0.6

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 (1505) hide show
  1. package/README.md +1 -1
  2. package/dist/bellhop-core/bellhop-core.esm.js +2 -0
  3. package/dist/bellhop-core/bellhop-core.esm.js.map +1 -0
  4. package/dist/bellhop-core/bh-accordion-item.entry.esm.js.map +1 -0
  5. package/dist/bellhop-core/bh-button.bh-loader-spinner.entry.esm.js.map +1 -0
  6. package/dist/bellhop-core/bh-checkbox.bh-radio-button.entry.esm.js.map +1 -0
  7. package/dist/bellhop-core/bh-data-grid.entry.esm.js.map +1 -0
  8. package/dist/bellhop-core/bh-date-picker-content.entry.esm.js.map +1 -0
  9. package/dist/bellhop-core/bh-date-picker.entry.esm.js.map +1 -0
  10. package/dist/bellhop-core/bh-dropdown.bh-logo-box.bh-nav-item.entry.esm.js.map +1 -0
  11. package/dist/bellhop-core/bh-empty-state.bh-pagination.bh-skeleton-loader.entry.esm.js.map +1 -0
  12. package/dist/bellhop-core/bh-input-text.bh-picker-menu.entry.esm.js.map +1 -0
  13. package/dist/bellhop-core/index.esm.js +2 -0
  14. package/dist/bellhop-core/index.esm.js.map +1 -0
  15. package/dist/bellhop-core/p-03e93cd8.entry.js +2 -0
  16. package/dist/bellhop-core/p-0438e0a9.entry.js +2 -0
  17. package/dist/bellhop-core/p-086e8c86.entry.js +2 -0
  18. package/dist/bellhop-core/p-09f3464e.entry.js +2 -0
  19. package/dist/bellhop-core/p-10967cab.entry.js +2 -0
  20. package/dist/bellhop-core/p-10967cab.entry.js.map +1 -0
  21. package/dist/bellhop-core/p-20d680ce.entry.js +2 -0
  22. package/dist/bellhop-core/p-2310cb6e.entry.js +13 -0
  23. package/dist/bellhop-core/p-2310cb6e.entry.js.map +1 -0
  24. package/dist/bellhop-core/p-239c7e6b.entry.js +2 -0
  25. package/dist/bellhop-core/p-23b74b40.entry.js +2 -0
  26. package/dist/bellhop-core/p-2c796978.entry.js +2 -0
  27. package/dist/bellhop-core/p-356a2ed7.entry.js +2 -0
  28. package/dist/bellhop-core/p-363dce47.entry.js +2 -0
  29. package/dist/bellhop-core/p-3719852a.entry.js +2 -0
  30. package/dist/bellhop-core/p-44241bad.entry.js +2 -0
  31. package/dist/bellhop-core/p-496fca9b.entry.js +2 -0
  32. package/dist/bellhop-core/p-496fca9b.entry.js.map +1 -0
  33. package/dist/bellhop-core/p-4a14cbb5.entry.js +2 -0
  34. package/dist/bellhop-core/p-52e877e0.entry.js +2 -0
  35. package/dist/bellhop-core/p-56b857f5.entry.js +2 -0
  36. package/dist/bellhop-core/p-5760ce66.entry.js +2 -0
  37. package/dist/bellhop-core/p-57ac382d.entry.js +2 -0
  38. package/dist/bellhop-core/p-58879213.entry.js +2 -0
  39. package/dist/bellhop-core/p-5ab50add.entry.js +2 -0
  40. package/dist/bellhop-core/p-6433b0a7.entry.js +2 -0
  41. package/dist/bellhop-core/p-67452ed0.entry.js +2 -0
  42. package/dist/bellhop-core/p-686dea4a.entry.js +2 -0
  43. package/dist/bellhop-core/p-69f85850.entry.js +2 -0
  44. package/dist/bellhop-core/p-70ee270c.entry.js +2 -0
  45. package/dist/bellhop-core/p-859f45da.entry.js +2 -0
  46. package/dist/bellhop-core/p-860be0be.entry.js +2 -0
  47. package/dist/bellhop-core/p-870fc023.entry.js +2 -0
  48. package/dist/bellhop-core/p-87fb26a0.entry.js +2 -0
  49. package/dist/bellhop-core/p-8981025c.entry.js +2 -0
  50. package/dist/bellhop-core/p-8981025c.entry.js.map +1 -0
  51. package/dist/bellhop-core/p-90b9047d.entry.js +2 -0
  52. package/dist/bellhop-core/p-94d2d599.entry.js +2 -0
  53. package/dist/bellhop-core/p-9a585c1a.entry.js +2 -0
  54. package/dist/bellhop-core/p-CIj6YHfo.js +2 -0
  55. package/dist/bellhop-core/p-CIj6YHfo.js.map +1 -0
  56. package/dist/bellhop-core/p-DXAL-jSE.js +3 -0
  57. package/dist/bellhop-core/p-DXAL-jSE.js.map +1 -0
  58. package/dist/bellhop-core/p-DshiN5nT.js +2 -0
  59. package/dist/bellhop-core/p-DshiN5nT.js.map +1 -0
  60. package/dist/bellhop-core/p-I9CPXdBF.js +2 -0
  61. package/dist/bellhop-core/p-I9CPXdBF.js.map +1 -0
  62. package/dist/bellhop-core/p-ab2b037c.entry.js +2 -0
  63. package/dist/bellhop-core/p-ab9c5351.entry.js +2 -0
  64. package/dist/bellhop-core/p-abe24947.entry.js +2 -0
  65. package/dist/bellhop-core/p-adcd2e15.entry.js +2 -0
  66. package/dist/bellhop-core/p-afd0e309.entry.js +2 -0
  67. package/dist/bellhop-core/p-b1cb34e9.entry.js +2 -0
  68. package/dist/bellhop-core/p-b546cd23.entry.js +2 -0
  69. package/dist/bellhop-core/p-b546cd23.entry.js.map +1 -0
  70. package/dist/bellhop-core/p-b7801d25.entry.js +2 -0
  71. package/dist/bellhop-core/p-b7801d25.entry.js.map +1 -0
  72. package/dist/bellhop-core/p-c8fb7f34.entry.js +2 -0
  73. package/dist/bellhop-core/p-c8fb7f34.entry.js.map +1 -0
  74. package/dist/bellhop-core/p-cdd593fb.entry.js +2 -0
  75. package/dist/bellhop-core/p-d4bfd30d.entry.js +2 -0
  76. package/dist/bellhop-core/p-dcaa20e2.entry.js +2 -0
  77. package/dist/bellhop-core/p-dd43d560.entry.js +2 -0
  78. package/dist/bellhop-core/p-e190ac50.entry.js +2 -0
  79. package/dist/bellhop-core/p-e86780b6.entry.js +2 -0
  80. package/dist/bellhop-core/p-e99bc91a.entry.js +2 -0
  81. package/dist/bellhop-core/p-e9ed7c17.entry.js +2 -0
  82. package/dist/bellhop-core/p-ef47dcd1.entry.js +2 -0
  83. package/dist/bellhop-core/p-f5468da0.entry.js +2 -0
  84. package/dist/bellhop-core/p-f5468da0.entry.js.map +1 -0
  85. package/dist/bellhop-core/p-f6e1b47c.entry.js +2 -0
  86. package/dist/bellhop-core/p-f7c7416d.entry.js +2 -0
  87. package/dist/cjs/bellhop-core.cjs.js +25 -0
  88. package/dist/cjs/bellhop-core.cjs.js.map +1 -0
  89. package/dist/cjs/bh-accordion-item.cjs.entry.js +82 -0
  90. package/dist/cjs/bh-accordion-item.entry.cjs.js.map +1 -0
  91. package/dist/cjs/bh-accordion.cjs.entry.js +119 -0
  92. package/dist/cjs/bh-appbar.cjs.entry.js +83 -0
  93. package/dist/cjs/bh-autocomplete-menu_2.cjs.entry.js +177 -0
  94. package/dist/cjs/bh-avatar-add.cjs.entry.js +75 -0
  95. package/dist/cjs/bh-avatar-stacked.cjs.entry.js +94 -0
  96. package/dist/cjs/bh-avatar.cjs.entry.js +93 -0
  97. package/dist/cjs/bh-badge-dot_2.cjs.entry.js +134 -0
  98. package/dist/cjs/bh-badge.cjs.entry.js +71 -0
  99. package/dist/cjs/bh-bar-chart.cjs.entry.js +164 -0
  100. package/dist/cjs/bh-button-CKYE8jYL.js +117 -0
  101. package/dist/cjs/bh-button-CKYE8jYL.js.map +1 -0
  102. package/dist/cjs/bh-button-icon.cjs.entry.js +74 -0
  103. package/dist/cjs/bh-button.bh-loader-spinner.entry.cjs.js.map +1 -0
  104. package/dist/cjs/bh-button_2.cjs.entry.js +47 -0
  105. package/dist/cjs/bh-card-footer.cjs.entry.js +30 -0
  106. package/dist/cjs/bh-card-header.cjs.entry.js +74 -0
  107. package/dist/cjs/bh-card.cjs.entry.js +48 -0
  108. package/dist/cjs/bh-chart-tooltip.cjs.entry.js +57 -0
  109. package/dist/cjs/bh-checkbox-group-item.cjs.entry.js +142 -0
  110. package/dist/cjs/bh-checkbox-group.cjs.entry.js +100 -0
  111. package/dist/cjs/bh-checkbox.bh-radio-button.entry.cjs.js.map +1 -0
  112. package/dist/cjs/bh-checkbox_2.cjs.entry.js +267 -0
  113. package/dist/cjs/bh-container-footer.cjs.entry.js +38 -0
  114. package/dist/cjs/bh-container.cjs.entry.js +26 -0
  115. package/dist/cjs/bh-data-grid.cjs.entry.js +4230 -0
  116. package/dist/cjs/bh-data-grid.entry.cjs.js.map +1 -0
  117. package/dist/cjs/bh-date-picker-content.cjs.entry.js +370 -0
  118. package/dist/cjs/bh-date-picker-content.entry.cjs.js.map +1 -0
  119. package/dist/cjs/bh-date-picker.cjs.entry.js +173 -0
  120. package/dist/cjs/bh-date-picker.entry.cjs.js.map +1 -0
  121. package/dist/cjs/bh-date-range-picker-content.cjs.entry.js +151 -0
  122. package/dist/cjs/bh-date-range-picker.cjs.entry.js +167 -0
  123. package/dist/cjs/bh-dropdown-menu.cjs.entry.js +114 -0
  124. package/dist/cjs/bh-dropdown.bh-logo-box.bh-nav-item.entry.cjs.js.map +1 -0
  125. package/dist/cjs/bh-dropdown_3.cjs.entry.js +1887 -0
  126. package/dist/cjs/bh-empty-state.bh-pagination.bh-skeleton-loader.entry.cjs.js.map +1 -0
  127. package/dist/cjs/bh-empty-state_3.cjs.entry.js +115 -0
  128. package/dist/cjs/bh-featured-icon.cjs.entry.js +41 -0
  129. package/dist/cjs/bh-illustrations.cjs.entry.js +65 -0
  130. package/dist/cjs/bh-input-autocomplete.cjs.entry.js +342 -0
  131. package/dist/cjs/bh-input-number.cjs.entry.js +307 -0
  132. package/dist/cjs/bh-input-password.cjs.entry.js +182 -0
  133. package/dist/cjs/bh-input-text.bh-picker-menu.entry.cjs.js.map +1 -0
  134. package/dist/cjs/bh-input-text_2.cjs.entry.js +347 -0
  135. package/dist/cjs/bh-input-verification.cjs.entry.js +203 -0
  136. package/dist/cjs/bh-label-DRC8k-B9.js +110 -0
  137. package/dist/cjs/bh-label-DRC8k-B9.js.map +1 -0
  138. package/dist/cjs/bh-label_2.cjs.entry.js +48 -0
  139. package/dist/cjs/bh-modal-actions.cjs.entry.js +66 -0
  140. package/dist/cjs/bh-modal-header.cjs.entry.js +76 -0
  141. package/dist/cjs/bh-modal.cjs.entry.js +56 -0
  142. package/dist/cjs/bh-month-picker-content.cjs.entry.js +189 -0
  143. package/dist/cjs/bh-month-picker.cjs.entry.js +152 -0
  144. package/dist/cjs/bh-notification.cjs.entry.js +128 -0
  145. package/dist/cjs/bh-page-navigation-child.cjs.entry.js +48 -0
  146. package/dist/cjs/bh-page-navigation-multi-level_2.cjs.entry.js +146 -0
  147. package/dist/cjs/bh-page-navigation.cjs.entry.js +72 -0
  148. package/dist/cjs/bh-pagination-BJ1azyCc.js +152 -0
  149. package/dist/cjs/bh-pagination-BJ1azyCc.js.map +1 -0
  150. package/dist/cjs/bh-pie-chart.cjs.entry.js +157 -0
  151. package/dist/cjs/bh-popover.cjs.entry.js +100 -0
  152. package/dist/cjs/bh-product-switcher.cjs.entry.js +102 -0
  153. package/dist/cjs/bh-property-switcher.cjs.entry.js +231 -0
  154. package/dist/cjs/bh-sidebar.cjs.entry.js +110 -0
  155. package/dist/cjs/bh-tab-item.cjs.entry.js +54 -0
  156. package/dist/cjs/bh-tabs.cjs.entry.js +52 -0
  157. package/dist/cjs/bh-textarea.cjs.entry.js +161 -0
  158. package/dist/cjs/bh-toggle.cjs.entry.js +141 -0
  159. package/dist/cjs/bh-trend-chart.cjs.entry.js +121 -0
  160. package/dist/cjs/index-BVJ_Kket.js +1959 -0
  161. package/dist/cjs/index-BVJ_Kket.js.map +1 -0
  162. package/dist/cjs/index.cjs.js +34 -0
  163. package/dist/cjs/index.cjs.js.map +1 -0
  164. package/dist/cjs/loader.cjs.js +13 -0
  165. package/dist/collection/collection-manifest.json +78 -0
  166. package/dist/collection/components/bh-accordion/bh-accordion.js +227 -0
  167. package/dist/collection/components/bh-accordion-item/bh-accordion-item.css +119 -0
  168. package/dist/collection/components/bh-accordion-item/bh-accordion-item.js +207 -0
  169. package/dist/collection/components/bh-appbar/bh-appbar.js +270 -0
  170. package/dist/collection/components/bh-autocomplete-menu/bh-autocomplete-menu.js +301 -0
  171. package/dist/collection/components/bh-avatar/bh-avatar.js +266 -0
  172. package/dist/collection/components/bh-avatar-add/bh-avatar-add.js +194 -0
  173. package/dist/collection/components/bh-avatar-stacked/bh-avatar-stacked.js +211 -0
  174. package/dist/collection/components/bh-badge/bh-badge.js +250 -0
  175. package/dist/collection/components/bh-badge-dot/bh-badge-dot.js +113 -0
  176. package/dist/collection/components/bh-bar-chart/bh-bar-chart.css +363 -0
  177. package/dist/collection/components/bh-bar-chart/bh-bar-chart.js +316 -0
  178. package/dist/collection/components/bh-breadcrumbs/bh-breadcrumbs.js +231 -0
  179. package/dist/collection/components/bh-button/bh-button.js +350 -0
  180. package/dist/collection/components/bh-button-icon/bh-button-icon.js +259 -0
  181. package/dist/collection/components/bh-card/bh-card.js +139 -0
  182. package/dist/collection/components/bh-card-footer/bh-card-footer.js +81 -0
  183. package/dist/collection/components/bh-card-header/bh-card-header.js +348 -0
  184. package/dist/collection/components/bh-chart-tooltip/bh-chart-tooltip.css +301 -0
  185. package/dist/collection/components/bh-chart-tooltip/bh-chart-tooltip.js +226 -0
  186. package/dist/collection/components/bh-checkbox/bh-checkbox.js +383 -0
  187. package/dist/collection/components/bh-checkbox/bh-checkbox.js.map +1 -0
  188. package/dist/collection/components/bh-checkbox-group/bh-checkbox-group.js +218 -0
  189. package/dist/collection/components/bh-checkbox-group-item/bh-checkbox-group-item.js +402 -0
  190. package/dist/collection/components/bh-container/bh-container.js +51 -0
  191. package/dist/collection/components/bh-container-footer/bh-container-footer.js +106 -0
  192. package/dist/collection/components/bh-data-grid/bh-data-grid.css +610 -0
  193. package/dist/collection/components/bh-data-grid/bh-data-grid.js +1933 -0
  194. package/dist/collection/components/bh-data-grid/bh-data-grid.js.map +1 -0
  195. package/dist/collection/components/bh-data-grid/bh-data-grid.types.js +2 -0
  196. package/dist/collection/components/bh-data-grid/bh-data-grid.types.js.map +1 -0
  197. package/dist/collection/components/bh-date-picker/bh-date-picker.css +251 -0
  198. package/dist/collection/components/bh-date-picker/bh-date-picker.js +485 -0
  199. package/dist/collection/components/bh-date-picker-content/bh-date-picker-content.css +541 -0
  200. package/dist/collection/components/bh-date-picker-content/bh-date-picker-content.js +711 -0
  201. package/dist/collection/components/bh-date-range-picker/bh-date-range-picker.css +247 -0
  202. package/dist/collection/components/bh-date-range-picker/bh-date-range-picker.js +528 -0
  203. package/dist/collection/components/bh-date-range-picker-content/bh-date-range-picker-content.css +275 -0
  204. package/dist/collection/components/bh-date-range-picker-content/bh-date-range-picker-content.js +338 -0
  205. package/dist/collection/components/bh-dropdown/bh-dropdown.css +51 -0
  206. package/dist/collection/components/bh-dropdown/bh-dropdown.js +569 -0
  207. package/dist/collection/components/bh-dropdown/bh-dropdown.js.map +1 -0
  208. package/dist/collection/components/bh-dropdown-menu/bh-dropdown-menu.js +262 -0
  209. package/dist/collection/components/bh-empty-state/bh-empty-state.js +306 -0
  210. package/dist/collection/components/bh-featured-icon/bh-featured-icon.js +144 -0
  211. package/dist/collection/components/bh-illustrations/bh-illustrations.css +328 -0
  212. package/dist/collection/components/bh-illustrations/bh-illustrations.js +174 -0
  213. package/dist/collection/components/bh-input-autocomplete/bh-input-autocomplete.css +301 -0
  214. package/dist/collection/components/bh-input-autocomplete/bh-input-autocomplete.js +872 -0
  215. package/dist/collection/components/bh-input-number/bh-input-number.js +818 -0
  216. package/dist/collection/components/bh-input-password/bh-input-password.js +581 -0
  217. package/dist/collection/components/bh-input-text/bh-input-text.js +696 -0
  218. package/dist/collection/components/bh-input-verification/bh-input-verification.js +523 -0
  219. package/dist/collection/components/bh-label/bh-label.js +302 -0
  220. package/dist/collection/components/bh-loader-spinner/bh-loader-spinner.css +153 -0
  221. package/dist/collection/components/bh-loader-spinner/bh-loader-spinner.js +182 -0
  222. package/dist/collection/components/bh-logo-box/bh-logo-box.js +229 -0
  223. package/dist/collection/components/bh-logo-box/bh-logo-box.js.map +1 -0
  224. package/dist/collection/components/bh-modal/bh-modal.js +144 -0
  225. package/dist/collection/components/bh-modal-actions/bh-modal-actions.js +208 -0
  226. package/dist/collection/components/bh-modal-header/bh-modal-header.js +275 -0
  227. package/dist/collection/components/bh-month-picker/bh-month-picker.css +251 -0
  228. package/dist/collection/components/bh-month-picker/bh-month-picker.js +444 -0
  229. package/dist/collection/components/bh-month-picker-content/bh-month-picker-content.css +406 -0
  230. package/dist/collection/components/bh-month-picker-content/bh-month-picker-content.js +437 -0
  231. package/dist/collection/components/bh-notification/bh-notification.js +324 -0
  232. package/dist/collection/components/bh-page-navigation/bh-page-navigation.css +253 -0
  233. package/dist/collection/components/bh-page-navigation/bh-page-navigation.js +146 -0
  234. package/dist/collection/components/bh-page-navigation-child/bh-page-navigation-child.css +281 -0
  235. package/dist/collection/components/bh-page-navigation-child/bh-page-navigation-child.js +148 -0
  236. package/dist/collection/components/bh-page-navigation-multi-level/bh-page-navigation-multi-level.css +372 -0
  237. package/dist/collection/components/bh-page-navigation-multi-level/bh-page-navigation-multi-level.js +268 -0
  238. package/dist/collection/components/bh-page-navigation-single-level/bh-page-navigation-single-level.js +126 -0
  239. package/dist/collection/components/bh-pagination/bh-pagination.css +244 -0
  240. package/dist/collection/components/bh-pagination/bh-pagination.js +448 -0
  241. package/dist/collection/components/bh-pagination/bh-pagination.js.map +1 -0
  242. package/dist/collection/components/bh-picker-menu/bh-picker-menu.css +284 -0
  243. package/dist/collection/components/bh-pie-chart/bh-pie-chart.css +292 -0
  244. package/dist/collection/components/bh-pie-chart/bh-pie-chart.js +280 -0
  245. package/dist/collection/components/bh-popover/bh-popover.js +326 -0
  246. package/dist/collection/components/bh-product-switcher/bh-product-switcher.js +226 -0
  247. package/dist/collection/components/bh-property-switcher/bh-property-switcher.js +360 -0
  248. package/dist/collection/components/bh-radio-button/bh-radio-button.js +292 -0
  249. package/dist/collection/components/bh-sidebar/bh-nav-item.js +157 -0
  250. package/dist/collection/components/bh-sidebar/bh-sidebar.js +344 -0
  251. package/dist/collection/components/bh-skeleton-loader/bh-skeleton-loader.js +99 -0
  252. package/dist/collection/components/bh-tab-item/bh-tab-item.js +158 -0
  253. package/dist/collection/components/bh-tabs/bh-tabs.js +178 -0
  254. package/dist/collection/components/bh-tag/bh-tag.js +238 -0
  255. package/dist/collection/components/bh-textarea/bh-textarea.js +569 -0
  256. package/dist/collection/components/bh-toggle/bh-toggle.js +369 -0
  257. package/dist/collection/components/bh-tooltip/bh-tooltip.js +162 -0
  258. package/dist/collection/components/bh-trend-chart/bh-trend-chart.css +299 -0
  259. package/dist/collection/components/bh-trend-chart/bh-trend-chart.js +256 -0
  260. package/dist/collection/index.js +24 -0
  261. package/dist/collection/index.js.map +1 -0
  262. package/dist/components/bh-accordion-item.js +111 -0
  263. package/dist/components/bh-accordion-item.js.map +1 -0
  264. package/dist/components/bh-accordion.js +147 -0
  265. package/dist/components/bh-appbar.js +128 -0
  266. package/dist/components/bh-autocomplete-menu.js +9 -0
  267. package/dist/components/bh-avatar-add.js +9 -0
  268. package/dist/components/bh-avatar-stacked.js +141 -0
  269. package/dist/components/bh-avatar.js +9 -0
  270. package/dist/components/bh-badge-dot.js +9 -0
  271. package/dist/components/bh-badge.js +9 -0
  272. package/dist/components/bh-bar-chart.js +205 -0
  273. package/dist/components/bh-breadcrumbs.js +9 -0
  274. package/dist/components/bh-button-icon.js +9 -0
  275. package/dist/components/bh-button.js +9 -0
  276. package/dist/components/bh-card-footer.js +9 -0
  277. package/dist/components/bh-card-header.js +9 -0
  278. package/dist/components/bh-card.js +9 -0
  279. package/dist/components/bh-chart-tooltip.js +9 -0
  280. package/dist/components/bh-checkbox-group-item.js +9 -0
  281. package/dist/components/bh-checkbox-group.js +9 -0
  282. package/dist/components/bh-checkbox.js +9 -0
  283. package/dist/components/bh-container-footer.js +74 -0
  284. package/dist/components/bh-container.js +49 -0
  285. package/dist/components/bh-data-grid.js +9 -0
  286. package/dist/components/bh-date-picker-content.js +9 -0
  287. package/dist/components/bh-date-picker.js +267 -0
  288. package/dist/components/bh-date-picker.js.map +1 -0
  289. package/dist/components/bh-date-range-picker-content.js +9 -0
  290. package/dist/components/bh-date-range-picker.js +269 -0
  291. package/dist/components/bh-dropdown-menu.js +9 -0
  292. package/dist/components/bh-dropdown.js +9 -0
  293. package/dist/components/bh-empty-state.js +9 -0
  294. package/dist/components/bh-featured-icon.js +9 -0
  295. package/dist/components/bh-illustrations.js +92 -0
  296. package/dist/components/bh-input-autocomplete.js +433 -0
  297. package/dist/components/bh-input-number.js +370 -0
  298. package/dist/components/bh-input-password.js +229 -0
  299. package/dist/components/bh-input-text.js +9 -0
  300. package/dist/components/bh-input-verification.js +255 -0
  301. package/dist/components/bh-label.js +9 -0
  302. package/dist/components/bh-loader-spinner.js +9 -0
  303. package/dist/components/bh-logo-box.js +9 -0
  304. package/dist/components/bh-modal-actions.js +105 -0
  305. package/dist/components/bh-modal-header.js +119 -0
  306. package/dist/components/bh-modal.js +9 -0
  307. package/dist/components/bh-month-picker-content.js +9 -0
  308. package/dist/components/bh-month-picker.js +233 -0
  309. package/dist/components/bh-nav-item.js +9 -0
  310. package/dist/components/bh-notification.js +175 -0
  311. package/dist/components/bh-page-navigation-child.js +9 -0
  312. package/dist/components/bh-page-navigation-multi-level.js +9 -0
  313. package/dist/components/bh-page-navigation-single-level.js +9 -0
  314. package/dist/components/bh-page-navigation.js +129 -0
  315. package/dist/components/bh-pagination.d.ts +11 -0
  316. package/dist/components/bh-pagination.js +9 -0
  317. package/dist/components/bh-pagination.js.map +1 -0
  318. package/dist/components/bh-picker-menu.js +9 -0
  319. package/dist/components/bh-pie-chart.js +194 -0
  320. package/dist/components/bh-popover.js +131 -0
  321. package/dist/components/bh-product-switcher.js +9 -0
  322. package/dist/components/bh-property-switcher.js +261 -0
  323. package/dist/components/bh-radio-button.js +9 -0
  324. package/dist/components/bh-sidebar.js +195 -0
  325. package/dist/components/bh-skeleton-loader.js +9 -0
  326. package/dist/components/bh-skeleton-loader.js.map +1 -0
  327. package/dist/components/bh-tab-item.js +80 -0
  328. package/dist/components/bh-tabs.js +78 -0
  329. package/dist/components/bh-tag.js +9 -0
  330. package/dist/components/bh-textarea.js +207 -0
  331. package/dist/components/bh-toggle.js +9 -0
  332. package/dist/components/bh-tooltip.js +9 -0
  333. package/dist/components/bh-trend-chart.js +149 -0
  334. package/dist/components/index.js +17 -0
  335. package/dist/components/index.js.map +1 -0
  336. package/dist/components/p-3wrr5uYj.js +84 -0
  337. package/dist/components/p-3wrr5uYj.js.map +1 -0
  338. package/dist/components/p-B-oXID22.js +214 -0
  339. package/dist/components/p-B-oXID22.js.map +1 -0
  340. package/dist/components/p-B7e9Vn80.js +123 -0
  341. package/dist/components/p-B7e9Vn80.js.map +1 -0
  342. package/dist/components/p-BAKX4y5m.js +158 -0
  343. package/dist/components/p-BAKX4y5m.js.map +1 -0
  344. package/dist/components/p-BE4kximA.js +78 -0
  345. package/dist/components/p-BE4kximA.js.map +1 -0
  346. package/dist/components/p-BM_aWCWB.js +92 -0
  347. package/dist/components/p-BM_aWCWB.js.map +1 -0
  348. package/dist/components/p-BsB67vNb.js +100 -0
  349. package/dist/components/p-BsB67vNb.js.map +1 -0
  350. package/dist/components/p-BsgViq32.js +189 -0
  351. package/dist/components/p-BsgViq32.js.map +1 -0
  352. package/dist/components/p-BuUjUqUh.js +224 -0
  353. package/dist/components/p-BuUjUqUh.js.map +1 -0
  354. package/dist/components/p-C24VI6pZ.js +71 -0
  355. package/dist/components/p-C24VI6pZ.js.map +1 -0
  356. package/dist/components/p-CA0LmFbe.js +70 -0
  357. package/dist/components/p-CA0LmFbe.js.map +1 -0
  358. package/dist/components/p-CECXxls6.js +213 -0
  359. package/dist/components/p-CECXxls6.js.map +1 -0
  360. package/dist/components/p-CGw-G2Wz.js +123 -0
  361. package/dist/components/p-CGw-G2Wz.js.map +1 -0
  362. package/dist/components/p-CHuAmqhM.js +64 -0
  363. package/dist/components/p-CHuAmqhM.js.map +1 -0
  364. package/dist/components/p-CKiB8Aa8.js +97 -0
  365. package/dist/components/p-CKiB8Aa8.js.map +1 -0
  366. package/dist/components/p-CNifJXgc.js +153 -0
  367. package/dist/components/p-CNifJXgc.js.map +1 -0
  368. package/dist/components/p-CcPNBnbg.js +124 -0
  369. package/dist/components/p-CcPNBnbg.js.map +1 -0
  370. package/dist/components/p-CnQh9uSW.js +434 -0
  371. package/dist/components/p-CnQh9uSW.js.map +1 -0
  372. package/dist/components/p-CoJrxiH7.js +183 -0
  373. package/dist/components/p-CoJrxiH7.js.map +1 -0
  374. package/dist/components/p-CrB92GYh.js +241 -0
  375. package/dist/components/p-CrB92GYh.js.map +1 -0
  376. package/dist/components/p-CycIV1i_.js +51 -0
  377. package/dist/components/p-CycIV1i_.js.map +1 -0
  378. package/dist/components/p-CzM_4nyA.js +142 -0
  379. package/dist/components/p-CzM_4nyA.js.map +1 -0
  380. package/dist/components/p-DBL4ByGk.js +125 -0
  381. package/dist/components/p-DBL4ByGk.js.map +1 -0
  382. package/dist/components/p-DErr7PhS.js +78 -0
  383. package/dist/components/p-DErr7PhS.js.map +1 -0
  384. package/dist/components/p-DK1vwbmm.js +166 -0
  385. package/dist/components/p-DK1vwbmm.js.map +1 -0
  386. package/dist/components/p-DLHC5fHk.js +1474 -0
  387. package/dist/components/p-DLHC5fHk.js.map +1 -0
  388. package/dist/components/p-DLql1qMx.js +106 -0
  389. package/dist/components/p-DLql1qMx.js.map +1 -0
  390. package/dist/components/p-DXXn0saP.js +148 -0
  391. package/dist/components/p-DXXn0saP.js.map +1 -0
  392. package/dist/components/p-D_matRYZ.js +118 -0
  393. package/dist/components/p-D_matRYZ.js.map +1 -0
  394. package/dist/components/p-DcXhS_xz.js +204 -0
  395. package/dist/components/p-DcXhS_xz.js.map +1 -0
  396. package/dist/components/p-DgAfq9r9.js +56 -0
  397. package/dist/components/p-DgAfq9r9.js.map +1 -0
  398. package/dist/components/p-DjsErN85.js +72 -0
  399. package/dist/components/p-DjsErN85.js.map +1 -0
  400. package/dist/components/p-Djti9xFF.js +1797 -0
  401. package/dist/components/p-Djti9xFF.js.map +1 -0
  402. package/dist/components/p-DoORMw6u.js +67 -0
  403. package/dist/components/p-DoORMw6u.js.map +1 -0
  404. package/dist/components/p-DpK6k515.js +4357 -0
  405. package/dist/components/p-DpK6k515.js.map +1 -0
  406. package/dist/components/p-FVbfBpwz.js +132 -0
  407. package/dist/components/p-FVbfBpwz.js.map +1 -0
  408. package/dist/components/p-G4wC-s5k.js +58 -0
  409. package/dist/components/p-G4wC-s5k.js.map +1 -0
  410. package/dist/components/p-QjxdVLPX.js +149 -0
  411. package/dist/components/p-QjxdVLPX.js.map +1 -0
  412. package/dist/components/p-UG_h-ztP.js +70 -0
  413. package/dist/components/p-UG_h-ztP.js.map +1 -0
  414. package/dist/components/p-l5G-q5dj.js +137 -0
  415. package/dist/components/p-l5G-q5dj.js.map +1 -0
  416. package/dist/components/p-qS3vvZaC.js +154 -0
  417. package/dist/components/p-qS3vvZaC.js.map +1 -0
  418. package/dist/esm/bellhop-core.js +21 -0
  419. package/dist/esm/bellhop-core.js.map +1 -0
  420. package/dist/esm/bh-accordion-item.entry.js +80 -0
  421. package/dist/esm/bh-accordion-item.entry.js.map +1 -0
  422. package/dist/esm/bh-accordion.entry.js +117 -0
  423. package/dist/esm/bh-appbar.entry.js +81 -0
  424. package/dist/esm/bh-autocomplete-menu_2.entry.js +174 -0
  425. package/dist/esm/bh-avatar-add.entry.js +73 -0
  426. package/dist/esm/bh-avatar-stacked.entry.js +92 -0
  427. package/dist/esm/bh-avatar.entry.js +91 -0
  428. package/dist/esm/bh-badge-dot_2.entry.js +131 -0
  429. package/dist/esm/bh-badge.entry.js +69 -0
  430. package/dist/esm/bh-bar-chart.entry.js +162 -0
  431. package/dist/esm/bh-button-icon.entry.js +72 -0
  432. package/dist/esm/bh-button-n5gkWRSP.js +115 -0
  433. package/dist/esm/bh-button-n5gkWRSP.js.map +1 -0
  434. package/dist/esm/bh-button.bh-loader-spinner.entry.js.map +1 -0
  435. package/dist/esm/bh-button_2.entry.js +44 -0
  436. package/dist/esm/bh-card-footer.entry.js +28 -0
  437. package/dist/esm/bh-card-header.entry.js +72 -0
  438. package/dist/esm/bh-card.entry.js +46 -0
  439. package/dist/esm/bh-chart-tooltip.entry.js +55 -0
  440. package/dist/esm/bh-checkbox-group-item.entry.js +140 -0
  441. package/dist/esm/bh-checkbox-group.entry.js +98 -0
  442. package/dist/esm/bh-checkbox.bh-radio-button.entry.js.map +1 -0
  443. package/dist/esm/bh-checkbox_2.entry.js +264 -0
  444. package/dist/esm/bh-container-footer.entry.js +36 -0
  445. package/dist/esm/bh-container.entry.js +24 -0
  446. package/dist/esm/bh-data-grid.entry.js +4228 -0
  447. package/dist/esm/bh-data-grid.entry.js.map +1 -0
  448. package/dist/esm/bh-date-picker-content.entry.js +368 -0
  449. package/dist/esm/bh-date-picker-content.entry.js.map +1 -0
  450. package/dist/esm/bh-date-picker.entry.js +171 -0
  451. package/dist/esm/bh-date-picker.entry.js.map +1 -0
  452. package/dist/esm/bh-date-range-picker-content.entry.js +149 -0
  453. package/dist/esm/bh-date-range-picker.entry.js +165 -0
  454. package/dist/esm/bh-dropdown-menu.entry.js +112 -0
  455. package/dist/esm/bh-dropdown.bh-logo-box.bh-nav-item.entry.js.map +1 -0
  456. package/dist/esm/bh-dropdown_3.entry.js +1883 -0
  457. package/dist/esm/bh-empty-state.bh-pagination.bh-skeleton-loader.entry.js.map +1 -0
  458. package/dist/esm/bh-empty-state_3.entry.js +111 -0
  459. package/dist/esm/bh-featured-icon.entry.js +39 -0
  460. package/dist/esm/bh-illustrations.entry.js +63 -0
  461. package/dist/esm/bh-input-autocomplete.entry.js +340 -0
  462. package/dist/esm/bh-input-number.entry.js +305 -0
  463. package/dist/esm/bh-input-password.entry.js +180 -0
  464. package/dist/esm/bh-input-text.bh-picker-menu.entry.js.map +1 -0
  465. package/dist/esm/bh-input-text_2.entry.js +344 -0
  466. package/dist/esm/bh-input-verification.entry.js +201 -0
  467. package/dist/esm/bh-label-fV57YpXm.js +108 -0
  468. package/dist/esm/bh-label-fV57YpXm.js.map +1 -0
  469. package/dist/esm/bh-label_2.entry.js +45 -0
  470. package/dist/esm/bh-modal-actions.entry.js +64 -0
  471. package/dist/esm/bh-modal-header.entry.js +74 -0
  472. package/dist/esm/bh-modal.entry.js +54 -0
  473. package/dist/esm/bh-month-picker-content.entry.js +187 -0
  474. package/dist/esm/bh-month-picker.entry.js +150 -0
  475. package/dist/esm/bh-notification.entry.js +126 -0
  476. package/dist/esm/bh-page-navigation-child.entry.js +46 -0
  477. package/dist/esm/bh-page-navigation-multi-level_2.entry.js +143 -0
  478. package/dist/esm/bh-page-navigation.entry.js +70 -0
  479. package/dist/esm/bh-pagination-BtbbslVs.js +150 -0
  480. package/dist/esm/bh-pagination-BtbbslVs.js.map +1 -0
  481. package/dist/esm/bh-pie-chart.entry.js +155 -0
  482. package/dist/esm/bh-popover.entry.js +98 -0
  483. package/dist/esm/bh-product-switcher.entry.js +100 -0
  484. package/dist/esm/bh-property-switcher.entry.js +229 -0
  485. package/dist/esm/bh-sidebar.entry.js +108 -0
  486. package/dist/esm/bh-tab-item.entry.js +52 -0
  487. package/dist/esm/bh-tabs.entry.js +50 -0
  488. package/dist/esm/bh-textarea.entry.js +159 -0
  489. package/dist/esm/bh-toggle.entry.js +139 -0
  490. package/dist/esm/bh-trend-chart.entry.js +119 -0
  491. package/dist/esm/index-DXAL-jSE.js +1929 -0
  492. package/dist/esm/index-DXAL-jSE.js.map +1 -0
  493. package/dist/esm/index.js +16 -0
  494. package/dist/esm/index.js.map +1 -0
  495. package/dist/esm/loader.js +11 -0
  496. package/dist/types/components/bh-checkbox/bh-checkbox.d.ts +46 -0
  497. package/dist/types/components/bh-data-grid/bh-data-grid.d.ts +155 -0
  498. package/dist/types/components/bh-data-grid/bh-data-grid.types.d.ts +93 -0
  499. package/dist/types/components/bh-dropdown/bh-dropdown.d.ts +89 -0
  500. package/dist/types/components/bh-logo-box/bh-logo-box.d.ts +36 -0
  501. package/dist/types/components/bh-pagination/bh-pagination.d.ts +80 -0
  502. package/dist/types/components.d.ts +7496 -0
  503. package/dist/types/index.d.ts +13 -0
  504. package/llms.txt +41649 -0
  505. package/package.json +63 -16
  506. package/react.d.ts +253 -0
  507. package/bellhop-core/bellhop-core.esm.js +0 -2
  508. package/bellhop-core/bellhop-core.esm.js.map +0 -1
  509. package/bellhop-core/bh-accordion-item.entry.esm.js.map +0 -1
  510. package/bellhop-core/bh-button.bh-loader-spinner.entry.esm.js.map +0 -1
  511. package/bellhop-core/bh-checkbox.entry.esm.js.map +0 -1
  512. package/bellhop-core/bh-data-grid.entry.esm.js.map +0 -1
  513. package/bellhop-core/bh-date-picker-content.bh-picker-menu.entry.esm.js.map +0 -1
  514. package/bellhop-core/bh-date-picker.bh-empty-state.entry.esm.js.map +0 -1
  515. package/bellhop-core/bh-dropdown.bh-logo-box.bh-nav-item.entry.esm.js.map +0 -1
  516. package/bellhop-core/bh-input-text.entry.esm.js.map +0 -1
  517. package/bellhop-core/bh-radio-button.entry.esm.js.map +0 -1
  518. package/bellhop-core/bh-skeleton-loader.entry.esm.js.map +0 -1
  519. package/bellhop-core/index.esm.js +0 -2
  520. package/bellhop-core/index.esm.js.map +0 -1
  521. package/bellhop-core/p-051a25aa.entry.js +0 -2
  522. package/bellhop-core/p-0579ce8d.entry.js +0 -2
  523. package/bellhop-core/p-05c13d72.entry.js +0 -2
  524. package/bellhop-core/p-0e013732.entry.js +0 -2
  525. package/bellhop-core/p-1960c2d0.entry.js +0 -2
  526. package/bellhop-core/p-2735c901.entry.js +0 -2
  527. package/bellhop-core/p-2735c901.entry.js.map +0 -1
  528. package/bellhop-core/p-2c80bc07.entry.js +0 -2
  529. package/bellhop-core/p-2cc0c4cf.entry.js +0 -2
  530. package/bellhop-core/p-3038cc1a.entry.js +0 -2
  531. package/bellhop-core/p-324cad08.entry.js +0 -2
  532. package/bellhop-core/p-324cad08.entry.js.map +0 -1
  533. package/bellhop-core/p-3bf098fd.entry.js +0 -2
  534. package/bellhop-core/p-3c739eea.entry.js +0 -2
  535. package/bellhop-core/p-4c71a0b6.entry.js +0 -2
  536. package/bellhop-core/p-5a220f12.entry.js +0 -2
  537. package/bellhop-core/p-5d844699.entry.js +0 -2
  538. package/bellhop-core/p-5e8d2fc0.entry.js +0 -2
  539. package/bellhop-core/p-71391701.entry.js +0 -2
  540. package/bellhop-core/p-7e67af77.entry.js +0 -2
  541. package/bellhop-core/p-7e908d03.entry.js +0 -2
  542. package/bellhop-core/p-7e908d03.entry.js.map +0 -1
  543. package/bellhop-core/p-8053e945.entry.js +0 -2
  544. package/bellhop-core/p-852564d6.entry.js +0 -2
  545. package/bellhop-core/p-86bbff38.entry.js +0 -2
  546. package/bellhop-core/p-87d1ed92.entry.js +0 -2
  547. package/bellhop-core/p-94156013.entry.js +0 -2
  548. package/bellhop-core/p-954b9c38.entry.js +0 -2
  549. package/bellhop-core/p-9693180e.entry.js +0 -2
  550. package/bellhop-core/p-98a336f7.entry.js +0 -2
  551. package/bellhop-core/p-98cc729f.entry.js +0 -2
  552. package/bellhop-core/p-9e7e64dc.entry.js +0 -2
  553. package/bellhop-core/p-9fe1fd2e.entry.js +0 -2
  554. package/bellhop-core/p-DANVSPII.js +0 -2
  555. package/bellhop-core/p-DANVSPII.js.map +0 -1
  556. package/bellhop-core/p-DKeuA-TM.js +0 -2
  557. package/bellhop-core/p-DKeuA-TM.js.map +0 -1
  558. package/bellhop-core/p-DtVghh5W.js +0 -3
  559. package/bellhop-core/p-DtVghh5W.js.map +0 -1
  560. package/bellhop-core/p-a901ae33.entry.js +0 -2
  561. package/bellhop-core/p-a901ae33.entry.js.map +0 -1
  562. package/bellhop-core/p-abd6ade0.entry.js +0 -2
  563. package/bellhop-core/p-abd6ade0.entry.js.map +0 -1
  564. package/bellhop-core/p-abf68de4.entry.js +0 -2
  565. package/bellhop-core/p-ad15a4b9.entry.js +0 -2
  566. package/bellhop-core/p-b1affa8d.entry.js +0 -2
  567. package/bellhop-core/p-b1affa8d.entry.js.map +0 -1
  568. package/bellhop-core/p-b4104ae5.entry.js +0 -2
  569. package/bellhop-core/p-c194883a.entry.js +0 -2
  570. package/bellhop-core/p-c48ca590.entry.js +0 -2
  571. package/bellhop-core/p-c82e73aa.entry.js +0 -2
  572. package/bellhop-core/p-d14192df.entry.js +0 -2
  573. package/bellhop-core/p-d5fb8d0f.entry.js +0 -2
  574. package/bellhop-core/p-d9106838.entry.js +0 -2
  575. package/bellhop-core/p-d941cdba.entry.js +0 -2
  576. package/bellhop-core/p-d94b296e.entry.js +0 -2
  577. package/bellhop-core/p-df2728a1.entry.js +0 -2
  578. package/bellhop-core/p-df45027c.entry.js +0 -2
  579. package/bellhop-core/p-df45027c.entry.js.map +0 -1
  580. package/bellhop-core/p-dfe0574c.entry.js +0 -2
  581. package/bellhop-core/p-e3c5d1e3.entry.js +0 -2
  582. package/bellhop-core/p-e3d79592.entry.js +0 -2
  583. package/bellhop-core/p-e44539e9.entry.js +0 -2
  584. package/bellhop-core/p-e5b9a3de.entry.js +0 -2
  585. package/bellhop-core/p-e8e0739d.entry.js +0 -2
  586. package/bellhop-core/p-ebb2492c.entry.js +0 -2
  587. package/bellhop-core/p-ec894e11.entry.js +0 -2
  588. package/bellhop-core/p-f0cfc744.entry.js +0 -2
  589. package/bellhop-core/p-f0cfc744.entry.js.map +0 -1
  590. package/bellhop-core/p-f261bdae.entry.js +0 -2
  591. package/bellhop-core/p-f261bdae.entry.js.map +0 -1
  592. package/bellhop-core/p-f4c4c70d.entry.js +0 -2
  593. package/cjs/bellhop-core.cjs.js +0 -25
  594. package/cjs/bellhop-core.cjs.js.map +0 -1
  595. package/cjs/bh-accordion-item.cjs.entry.js +0 -82
  596. package/cjs/bh-accordion-item.entry.cjs.js.map +0 -1
  597. package/cjs/bh-accordion.cjs.entry.js +0 -119
  598. package/cjs/bh-appbar.cjs.entry.js +0 -83
  599. package/cjs/bh-autocomplete-menu_2.cjs.entry.js +0 -177
  600. package/cjs/bh-avatar-add.cjs.entry.js +0 -75
  601. package/cjs/bh-avatar-stacked.cjs.entry.js +0 -94
  602. package/cjs/bh-avatar.cjs.entry.js +0 -93
  603. package/cjs/bh-badge-dot_2.cjs.entry.js +0 -134
  604. package/cjs/bh-badge.cjs.entry.js +0 -71
  605. package/cjs/bh-bar-chart.cjs.entry.js +0 -164
  606. package/cjs/bh-button-BKVcf-nK.js +0 -117
  607. package/cjs/bh-button-BKVcf-nK.js.map +0 -1
  608. package/cjs/bh-button-icon.cjs.entry.js +0 -74
  609. package/cjs/bh-button.bh-loader-spinner.entry.cjs.js.map +0 -1
  610. package/cjs/bh-button_2.cjs.entry.js +0 -47
  611. package/cjs/bh-card-footer.cjs.entry.js +0 -30
  612. package/cjs/bh-card-header.cjs.entry.js +0 -74
  613. package/cjs/bh-card.cjs.entry.js +0 -48
  614. package/cjs/bh-chart-tooltip.cjs.entry.js +0 -57
  615. package/cjs/bh-checkbox-group-item.cjs.entry.js +0 -142
  616. package/cjs/bh-checkbox-group.cjs.entry.js +0 -100
  617. package/cjs/bh-checkbox.cjs.entry.js +0 -144
  618. package/cjs/bh-checkbox.entry.cjs.js.map +0 -1
  619. package/cjs/bh-container-footer.cjs.entry.js +0 -38
  620. package/cjs/bh-container.cjs.entry.js +0 -26
  621. package/cjs/bh-data-grid.cjs.entry.js +0 -812
  622. package/cjs/bh-data-grid.entry.cjs.js.map +0 -1
  623. package/cjs/bh-date-picker-content.bh-picker-menu.entry.cjs.js.map +0 -1
  624. package/cjs/bh-date-picker-content_2.cjs.entry.js +0 -525
  625. package/cjs/bh-date-picker.bh-empty-state.entry.cjs.js.map +0 -1
  626. package/cjs/bh-date-picker_2.cjs.entry.js +0 -252
  627. package/cjs/bh-date-range-picker-content.cjs.entry.js +0 -151
  628. package/cjs/bh-date-range-picker.cjs.entry.js +0 -167
  629. package/cjs/bh-dropdown-menu.cjs.entry.js +0 -114
  630. package/cjs/bh-dropdown.bh-logo-box.bh-nav-item.entry.cjs.js.map +0 -1
  631. package/cjs/bh-dropdown_3.cjs.entry.js +0 -307
  632. package/cjs/bh-featured-icon.cjs.entry.js +0 -41
  633. package/cjs/bh-illustrations.cjs.entry.js +0 -65
  634. package/cjs/bh-input-autocomplete.cjs.entry.js +0 -342
  635. package/cjs/bh-input-number.cjs.entry.js +0 -307
  636. package/cjs/bh-input-password.cjs.entry.js +0 -182
  637. package/cjs/bh-input-text.cjs.entry.js +0 -192
  638. package/cjs/bh-input-text.entry.cjs.js.map +0 -1
  639. package/cjs/bh-input-verification.cjs.entry.js +0 -203
  640. package/cjs/bh-label-DBqucnaO.js +0 -110
  641. package/cjs/bh-label-DBqucnaO.js.map +0 -1
  642. package/cjs/bh-label_2.cjs.entry.js +0 -48
  643. package/cjs/bh-modal-actions.cjs.entry.js +0 -66
  644. package/cjs/bh-modal-header.cjs.entry.js +0 -76
  645. package/cjs/bh-modal.cjs.entry.js +0 -56
  646. package/cjs/bh-month-picker-content.cjs.entry.js +0 -189
  647. package/cjs/bh-month-picker.cjs.entry.js +0 -152
  648. package/cjs/bh-notification.cjs.entry.js +0 -128
  649. package/cjs/bh-page-navigation-child.cjs.entry.js +0 -48
  650. package/cjs/bh-page-navigation-multi-level_2.cjs.entry.js +0 -146
  651. package/cjs/bh-page-navigation.cjs.entry.js +0 -72
  652. package/cjs/bh-pie-chart.cjs.entry.js +0 -157
  653. package/cjs/bh-popover.cjs.entry.js +0 -100
  654. package/cjs/bh-product-switcher.cjs.entry.js +0 -102
  655. package/cjs/bh-property-switcher.cjs.entry.js +0 -231
  656. package/cjs/bh-radio-button.cjs.entry.js +0 -124
  657. package/cjs/bh-radio-button.entry.cjs.js.map +0 -1
  658. package/cjs/bh-sidebar.cjs.entry.js +0 -110
  659. package/cjs/bh-skeleton-loader.cjs.entry.js +0 -34
  660. package/cjs/bh-skeleton-loader.entry.cjs.js.map +0 -1
  661. package/cjs/bh-tab-item.cjs.entry.js +0 -54
  662. package/cjs/bh-tabs.cjs.entry.js +0 -52
  663. package/cjs/bh-textarea.cjs.entry.js +0 -161
  664. package/cjs/bh-toggle.cjs.entry.js +0 -141
  665. package/cjs/bh-trend-chart.cjs.entry.js +0 -121
  666. package/cjs/index-tZqSQc8E.js +0 -1951
  667. package/cjs/index-tZqSQc8E.js.map +0 -1
  668. package/cjs/index.cjs.js +0 -32
  669. package/cjs/index.cjs.js.map +0 -1
  670. package/cjs/loader.cjs.js +0 -13
  671. package/collection/collection-manifest.json +0 -77
  672. package/collection/components/bh-accordion/bh-accordion.js +0 -227
  673. package/collection/components/bh-accordion-item/bh-accordion-item.css +0 -119
  674. package/collection/components/bh-accordion-item/bh-accordion-item.js +0 -207
  675. package/collection/components/bh-appbar/bh-appbar.js +0 -270
  676. package/collection/components/bh-autocomplete-menu/bh-autocomplete-menu.js +0 -301
  677. package/collection/components/bh-avatar/bh-avatar.js +0 -266
  678. package/collection/components/bh-avatar-add/bh-avatar-add.js +0 -194
  679. package/collection/components/bh-avatar-stacked/bh-avatar-stacked.js +0 -211
  680. package/collection/components/bh-badge/bh-badge.js +0 -250
  681. package/collection/components/bh-badge-dot/bh-badge-dot.js +0 -113
  682. package/collection/components/bh-bar-chart/bh-bar-chart.css +0 -363
  683. package/collection/components/bh-bar-chart/bh-bar-chart.js +0 -316
  684. package/collection/components/bh-breadcrumbs/bh-breadcrumbs.js +0 -231
  685. package/collection/components/bh-button/bh-button.js +0 -350
  686. package/collection/components/bh-button-icon/bh-button-icon.js +0 -259
  687. package/collection/components/bh-card/bh-card.js +0 -139
  688. package/collection/components/bh-card-footer/bh-card-footer.js +0 -81
  689. package/collection/components/bh-card-header/bh-card-header.js +0 -348
  690. package/collection/components/bh-chart-tooltip/bh-chart-tooltip.css +0 -301
  691. package/collection/components/bh-chart-tooltip/bh-chart-tooltip.js +0 -226
  692. package/collection/components/bh-checkbox/bh-checkbox.js +0 -378
  693. package/collection/components/bh-checkbox/bh-checkbox.js.map +0 -1
  694. package/collection/components/bh-checkbox-group/bh-checkbox-group.js +0 -218
  695. package/collection/components/bh-checkbox-group-item/bh-checkbox-group-item.js +0 -402
  696. package/collection/components/bh-container/bh-container.js +0 -51
  697. package/collection/components/bh-container-footer/bh-container-footer.js +0 -106
  698. package/collection/components/bh-data-grid/bh-data-grid.css +0 -602
  699. package/collection/components/bh-data-grid/bh-data-grid.js +0 -1488
  700. package/collection/components/bh-data-grid/bh-data-grid.js.map +0 -1
  701. package/collection/components/bh-date-picker/bh-date-picker.css +0 -251
  702. package/collection/components/bh-date-picker/bh-date-picker.js +0 -485
  703. package/collection/components/bh-date-picker-content/bh-date-picker-content.css +0 -541
  704. package/collection/components/bh-date-picker-content/bh-date-picker-content.js +0 -711
  705. package/collection/components/bh-date-range-picker/bh-date-range-picker.css +0 -247
  706. package/collection/components/bh-date-range-picker/bh-date-range-picker.js +0 -528
  707. package/collection/components/bh-date-range-picker-content/bh-date-range-picker-content.css +0 -275
  708. package/collection/components/bh-date-range-picker-content/bh-date-range-picker-content.js +0 -338
  709. package/collection/components/bh-dropdown/bh-dropdown.css +0 -64
  710. package/collection/components/bh-dropdown/bh-dropdown.js +0 -512
  711. package/collection/components/bh-dropdown/bh-dropdown.js.map +0 -1
  712. package/collection/components/bh-dropdown-menu/bh-dropdown-menu.js +0 -262
  713. package/collection/components/bh-empty-state/bh-empty-state.js +0 -306
  714. package/collection/components/bh-featured-icon/bh-featured-icon.js +0 -144
  715. package/collection/components/bh-illustrations/bh-illustrations.css +0 -328
  716. package/collection/components/bh-illustrations/bh-illustrations.js +0 -174
  717. package/collection/components/bh-input-autocomplete/bh-input-autocomplete.css +0 -301
  718. package/collection/components/bh-input-autocomplete/bh-input-autocomplete.js +0 -872
  719. package/collection/components/bh-input-number/bh-input-number.js +0 -818
  720. package/collection/components/bh-input-password/bh-input-password.js +0 -581
  721. package/collection/components/bh-input-text/bh-input-text.js +0 -696
  722. package/collection/components/bh-input-verification/bh-input-verification.js +0 -523
  723. package/collection/components/bh-label/bh-label.js +0 -302
  724. package/collection/components/bh-loader-spinner/bh-loader-spinner.css +0 -153
  725. package/collection/components/bh-loader-spinner/bh-loader-spinner.js +0 -182
  726. package/collection/components/bh-logo-box/bh-logo-box.js +0 -184
  727. package/collection/components/bh-logo-box/bh-logo-box.js.map +0 -1
  728. package/collection/components/bh-modal/bh-modal.js +0 -144
  729. package/collection/components/bh-modal-actions/bh-modal-actions.js +0 -208
  730. package/collection/components/bh-modal-header/bh-modal-header.js +0 -275
  731. package/collection/components/bh-month-picker/bh-month-picker.css +0 -251
  732. package/collection/components/bh-month-picker/bh-month-picker.js +0 -444
  733. package/collection/components/bh-month-picker-content/bh-month-picker-content.css +0 -406
  734. package/collection/components/bh-month-picker-content/bh-month-picker-content.js +0 -437
  735. package/collection/components/bh-notification/bh-notification.js +0 -324
  736. package/collection/components/bh-page-navigation/bh-page-navigation.css +0 -253
  737. package/collection/components/bh-page-navigation/bh-page-navigation.js +0 -146
  738. package/collection/components/bh-page-navigation-child/bh-page-navigation-child.css +0 -281
  739. package/collection/components/bh-page-navigation-child/bh-page-navigation-child.js +0 -148
  740. package/collection/components/bh-page-navigation-multi-level/bh-page-navigation-multi-level.css +0 -372
  741. package/collection/components/bh-page-navigation-multi-level/bh-page-navigation-multi-level.js +0 -268
  742. package/collection/components/bh-page-navigation-single-level/bh-page-navigation-single-level.js +0 -126
  743. package/collection/components/bh-picker-menu/bh-picker-menu.css +0 -284
  744. package/collection/components/bh-pie-chart/bh-pie-chart.css +0 -292
  745. package/collection/components/bh-pie-chart/bh-pie-chart.js +0 -280
  746. package/collection/components/bh-popover/bh-popover.js +0 -326
  747. package/collection/components/bh-product-switcher/bh-product-switcher.js +0 -226
  748. package/collection/components/bh-property-switcher/bh-property-switcher.js +0 -360
  749. package/collection/components/bh-radio-button/bh-radio-button.js +0 -292
  750. package/collection/components/bh-sidebar/bh-nav-item.js +0 -157
  751. package/collection/components/bh-sidebar/bh-sidebar.js +0 -344
  752. package/collection/components/bh-skeleton-loader/bh-skeleton-loader.js +0 -99
  753. package/collection/components/bh-tab-item/bh-tab-item.js +0 -158
  754. package/collection/components/bh-tabs/bh-tabs.js +0 -178
  755. package/collection/components/bh-tag/bh-tag.js +0 -238
  756. package/collection/components/bh-textarea/bh-textarea.js +0 -569
  757. package/collection/components/bh-toggle/bh-toggle.js +0 -369
  758. package/collection/components/bh-tooltip/bh-tooltip.js +0 -162
  759. package/collection/components/bh-trend-chart/bh-trend-chart.css +0 -299
  760. package/collection/components/bh-trend-chart/bh-trend-chart.js +0 -256
  761. package/collection/index.js +0 -22
  762. package/collection/index.js.map +0 -1
  763. package/components/bh-accordion-item.js +0 -111
  764. package/components/bh-accordion-item.js.map +0 -1
  765. package/components/bh-accordion.js +0 -147
  766. package/components/bh-appbar.js +0 -128
  767. package/components/bh-autocomplete-menu.js +0 -9
  768. package/components/bh-avatar-add.js +0 -9
  769. package/components/bh-avatar-stacked.js +0 -141
  770. package/components/bh-avatar.js +0 -9
  771. package/components/bh-badge-dot.js +0 -9
  772. package/components/bh-badge.js +0 -9
  773. package/components/bh-bar-chart.js +0 -205
  774. package/components/bh-breadcrumbs.js +0 -9
  775. package/components/bh-button-icon.js +0 -9
  776. package/components/bh-button.js +0 -9
  777. package/components/bh-card-footer.js +0 -9
  778. package/components/bh-card-header.js +0 -9
  779. package/components/bh-card.js +0 -9
  780. package/components/bh-chart-tooltip.js +0 -9
  781. package/components/bh-checkbox-group-item.js +0 -9
  782. package/components/bh-checkbox-group.js +0 -9
  783. package/components/bh-checkbox.js +0 -9
  784. package/components/bh-container-footer.js +0 -74
  785. package/components/bh-container.js +0 -49
  786. package/components/bh-data-grid.js +0 -9
  787. package/components/bh-date-picker-content.js +0 -9
  788. package/components/bh-date-picker.js +0 -9
  789. package/components/bh-date-picker.js.map +0 -1
  790. package/components/bh-date-range-picker-content.js +0 -9
  791. package/components/bh-date-range-picker.js +0 -269
  792. package/components/bh-dropdown-menu.js +0 -9
  793. package/components/bh-dropdown.js +0 -9
  794. package/components/bh-empty-state.js +0 -9
  795. package/components/bh-featured-icon.js +0 -9
  796. package/components/bh-illustrations.js +0 -92
  797. package/components/bh-input-autocomplete.js +0 -433
  798. package/components/bh-input-number.js +0 -370
  799. package/components/bh-input-password.js +0 -229
  800. package/components/bh-input-text.js +0 -9
  801. package/components/bh-input-verification.js +0 -255
  802. package/components/bh-label.js +0 -9
  803. package/components/bh-loader-spinner.js +0 -9
  804. package/components/bh-logo-box.js +0 -9
  805. package/components/bh-modal-actions.js +0 -105
  806. package/components/bh-modal-header.js +0 -119
  807. package/components/bh-modal.js +0 -9
  808. package/components/bh-month-picker-content.js +0 -9
  809. package/components/bh-month-picker.js +0 -233
  810. package/components/bh-nav-item.js +0 -9
  811. package/components/bh-notification.js +0 -175
  812. package/components/bh-page-navigation-child.js +0 -9
  813. package/components/bh-page-navigation-multi-level.js +0 -9
  814. package/components/bh-page-navigation-single-level.js +0 -9
  815. package/components/bh-page-navigation.js +0 -129
  816. package/components/bh-picker-menu.js +0 -9
  817. package/components/bh-pie-chart.js +0 -194
  818. package/components/bh-popover.js +0 -131
  819. package/components/bh-product-switcher.js +0 -9
  820. package/components/bh-property-switcher.js +0 -261
  821. package/components/bh-radio-button.js +0 -9
  822. package/components/bh-sidebar.js +0 -195
  823. package/components/bh-skeleton-loader.js +0 -59
  824. package/components/bh-skeleton-loader.js.map +0 -1
  825. package/components/bh-tab-item.js +0 -80
  826. package/components/bh-tabs.js +0 -78
  827. package/components/bh-tag.js +0 -9
  828. package/components/bh-textarea.js +0 -207
  829. package/components/bh-toggle.js +0 -9
  830. package/components/bh-tooltip.js +0 -9
  831. package/components/bh-trend-chart.js +0 -149
  832. package/components/index.js +0 -16
  833. package/components/index.js.map +0 -1
  834. package/components/p-54wXxbeh.js +0 -213
  835. package/components/p-54wXxbeh.js.map +0 -1
  836. package/components/p-9a7sQzad.js +0 -1463
  837. package/components/p-9a7sQzad.js.map +0 -1
  838. package/components/p-B3doeS-4.js +0 -158
  839. package/components/p-B3doeS-4.js.map +0 -1
  840. package/components/p-B4TBDBoW.js +0 -71
  841. package/components/p-B4TBDBoW.js.map +0 -1
  842. package/components/p-BBenNW93.js +0 -184
  843. package/components/p-BBenNW93.js.map +0 -1
  844. package/components/p-BLRNfy0t.js +0 -84
  845. package/components/p-BLRNfy0t.js.map +0 -1
  846. package/components/p-BYhYSIIs.js +0 -941
  847. package/components/p-BYhYSIIs.js.map +0 -1
  848. package/components/p-Bbo_Dwmk.js +0 -70
  849. package/components/p-Bbo_Dwmk.js.map +0 -1
  850. package/components/p-BdcGkck5.js +0 -72
  851. package/components/p-BdcGkck5.js.map +0 -1
  852. package/components/p-Bk8GbEQp.js +0 -132
  853. package/components/p-Bk8GbEQp.js.map +0 -1
  854. package/components/p-CDPKBnfQ.js +0 -92
  855. package/components/p-CDPKBnfQ.js.map +0 -1
  856. package/components/p-CDgBIIbC.js +0 -224
  857. package/components/p-CDgBIIbC.js.map +0 -1
  858. package/components/p-CErNA5c8.js +0 -204
  859. package/components/p-CErNA5c8.js.map +0 -1
  860. package/components/p-CQBqn1IO.js +0 -67
  861. package/components/p-CQBqn1IO.js.map +0 -1
  862. package/components/p-CTjPiCcp.js +0 -51
  863. package/components/p-CTjPiCcp.js.map +0 -1
  864. package/components/p-CciWcvHP.js +0 -123
  865. package/components/p-CciWcvHP.js.map +0 -1
  866. package/components/p-CiQqgc-m.js +0 -434
  867. package/components/p-CiQqgc-m.js.map +0 -1
  868. package/components/p-CsRNKalM.js +0 -166
  869. package/components/p-CsRNKalM.js.map +0 -1
  870. package/components/p-CuVsQ9St.js +0 -123
  871. package/components/p-CuVsQ9St.js.map +0 -1
  872. package/components/p-D3OkBDd3.js +0 -100
  873. package/components/p-D3OkBDd3.js.map +0 -1
  874. package/components/p-D6cM-mvE.js +0 -64
  875. package/components/p-D6cM-mvE.js.map +0 -1
  876. package/components/p-D6kh9oF2.js +0 -70
  877. package/components/p-D6kh9oF2.js.map +0 -1
  878. package/components/p-DHSWIF-h.js +0 -214
  879. package/components/p-DHSWIF-h.js.map +0 -1
  880. package/components/p-DNhCX5eS.js +0 -153
  881. package/components/p-DNhCX5eS.js.map +0 -1
  882. package/components/p-DRGkYX1u.js +0 -78
  883. package/components/p-DRGkYX1u.js.map +0 -1
  884. package/components/p-DRJW4zBc.js +0 -58
  885. package/components/p-DRJW4zBc.js.map +0 -1
  886. package/components/p-DTgHvmlL.js +0 -149
  887. package/components/p-DTgHvmlL.js.map +0 -1
  888. package/components/p-DVhHZCku.js +0 -220
  889. package/components/p-DVhHZCku.js.map +0 -1
  890. package/components/p-DWpdUpK5.js +0 -264
  891. package/components/p-DWpdUpK5.js.map +0 -1
  892. package/components/p-D_DKZMpk.js +0 -78
  893. package/components/p-D_DKZMpk.js.map +0 -1
  894. package/components/p-Dbl0HXBJ.js +0 -241
  895. package/components/p-Dbl0HXBJ.js.map +0 -1
  896. package/components/p-DecYIvq4.js +0 -124
  897. package/components/p-DecYIvq4.js.map +0 -1
  898. package/components/p-DfXkVfrE.js +0 -129
  899. package/components/p-DfXkVfrE.js.map +0 -1
  900. package/components/p-HEcFS8Jc.js +0 -125
  901. package/components/p-HEcFS8Jc.js.map +0 -1
  902. package/components/p-MIbEYjCv.js +0 -142
  903. package/components/p-MIbEYjCv.js.map +0 -1
  904. package/components/p-NXL0pYS_.js +0 -97
  905. package/components/p-NXL0pYS_.js.map +0 -1
  906. package/components/p-X9MH3dtg.js +0 -154
  907. package/components/p-X9MH3dtg.js.map +0 -1
  908. package/components/p-YJm8-pxX.js +0 -118
  909. package/components/p-YJm8-pxX.js.map +0 -1
  910. package/components/p-ghuDbZwh.js +0 -148
  911. package/components/p-ghuDbZwh.js.map +0 -1
  912. package/components/p-p8W0xKpn.js +0 -106
  913. package/components/p-p8W0xKpn.js.map +0 -1
  914. package/esm/bellhop-core.js +0 -21
  915. package/esm/bellhop-core.js.map +0 -1
  916. package/esm/bh-accordion-item.entry.js +0 -80
  917. package/esm/bh-accordion-item.entry.js.map +0 -1
  918. package/esm/bh-accordion.entry.js +0 -117
  919. package/esm/bh-appbar.entry.js +0 -81
  920. package/esm/bh-autocomplete-menu_2.entry.js +0 -174
  921. package/esm/bh-avatar-add.entry.js +0 -73
  922. package/esm/bh-avatar-stacked.entry.js +0 -92
  923. package/esm/bh-avatar.entry.js +0 -91
  924. package/esm/bh-badge-dot_2.entry.js +0 -131
  925. package/esm/bh-badge.entry.js +0 -69
  926. package/esm/bh-bar-chart.entry.js +0 -162
  927. package/esm/bh-button-CBZGiLVh.js +0 -115
  928. package/esm/bh-button-CBZGiLVh.js.map +0 -1
  929. package/esm/bh-button-icon.entry.js +0 -72
  930. package/esm/bh-button.bh-loader-spinner.entry.js.map +0 -1
  931. package/esm/bh-button_2.entry.js +0 -44
  932. package/esm/bh-card-footer.entry.js +0 -28
  933. package/esm/bh-card-header.entry.js +0 -72
  934. package/esm/bh-card.entry.js +0 -46
  935. package/esm/bh-chart-tooltip.entry.js +0 -55
  936. package/esm/bh-checkbox-group-item.entry.js +0 -140
  937. package/esm/bh-checkbox-group.entry.js +0 -98
  938. package/esm/bh-checkbox.entry.js +0 -142
  939. package/esm/bh-checkbox.entry.js.map +0 -1
  940. package/esm/bh-container-footer.entry.js +0 -36
  941. package/esm/bh-container.entry.js +0 -24
  942. package/esm/bh-data-grid.entry.js +0 -810
  943. package/esm/bh-data-grid.entry.js.map +0 -1
  944. package/esm/bh-date-picker-content.bh-picker-menu.entry.js.map +0 -1
  945. package/esm/bh-date-picker-content_2.entry.js +0 -522
  946. package/esm/bh-date-picker.bh-empty-state.entry.js.map +0 -1
  947. package/esm/bh-date-picker_2.entry.js +0 -249
  948. package/esm/bh-date-range-picker-content.entry.js +0 -149
  949. package/esm/bh-date-range-picker.entry.js +0 -165
  950. package/esm/bh-dropdown-menu.entry.js +0 -112
  951. package/esm/bh-dropdown.bh-logo-box.bh-nav-item.entry.js.map +0 -1
  952. package/esm/bh-dropdown_3.entry.js +0 -303
  953. package/esm/bh-featured-icon.entry.js +0 -39
  954. package/esm/bh-illustrations.entry.js +0 -63
  955. package/esm/bh-input-autocomplete.entry.js +0 -340
  956. package/esm/bh-input-number.entry.js +0 -305
  957. package/esm/bh-input-password.entry.js +0 -180
  958. package/esm/bh-input-text.entry.js +0 -190
  959. package/esm/bh-input-text.entry.js.map +0 -1
  960. package/esm/bh-input-verification.entry.js +0 -201
  961. package/esm/bh-label-DqsVrCg_.js +0 -108
  962. package/esm/bh-label-DqsVrCg_.js.map +0 -1
  963. package/esm/bh-label_2.entry.js +0 -45
  964. package/esm/bh-modal-actions.entry.js +0 -64
  965. package/esm/bh-modal-header.entry.js +0 -74
  966. package/esm/bh-modal.entry.js +0 -54
  967. package/esm/bh-month-picker-content.entry.js +0 -187
  968. package/esm/bh-month-picker.entry.js +0 -150
  969. package/esm/bh-notification.entry.js +0 -126
  970. package/esm/bh-page-navigation-child.entry.js +0 -46
  971. package/esm/bh-page-navigation-multi-level_2.entry.js +0 -143
  972. package/esm/bh-page-navigation.entry.js +0 -70
  973. package/esm/bh-pie-chart.entry.js +0 -155
  974. package/esm/bh-popover.entry.js +0 -98
  975. package/esm/bh-product-switcher.entry.js +0 -100
  976. package/esm/bh-property-switcher.entry.js +0 -229
  977. package/esm/bh-radio-button.entry.js +0 -122
  978. package/esm/bh-radio-button.entry.js.map +0 -1
  979. package/esm/bh-sidebar.entry.js +0 -108
  980. package/esm/bh-skeleton-loader.entry.js +0 -32
  981. package/esm/bh-skeleton-loader.entry.js.map +0 -1
  982. package/esm/bh-tab-item.entry.js +0 -52
  983. package/esm/bh-tabs.entry.js +0 -50
  984. package/esm/bh-textarea.entry.js +0 -159
  985. package/esm/bh-toggle.entry.js +0 -139
  986. package/esm/bh-trend-chart.entry.js +0 -119
  987. package/esm/index-DtVghh5W.js +0 -1922
  988. package/esm/index-DtVghh5W.js.map +0 -1
  989. package/esm/index.js +0 -15
  990. package/esm/index.js.map +0 -1
  991. package/esm/loader.js +0 -11
  992. package/types/components/bh-checkbox/bh-checkbox.d.ts +0 -45
  993. package/types/components/bh-data-grid/bh-data-grid.d.ts +0 -235
  994. package/types/components/bh-dropdown/bh-dropdown.d.ts +0 -78
  995. package/types/components/bh-logo-box/bh-logo-box.d.ts +0 -28
  996. package/types/components.d.ts +0 -7199
  997. package/types/index.d.ts +0 -12
  998. /package/{bellhop-core → dist/bellhop-core}/bellhop-core.css +0 -0
  999. /package/{bellhop-core → dist/bellhop-core}/bh-accordion.entry.esm.js.map +0 -0
  1000. /package/{bellhop-core → dist/bellhop-core}/bh-appbar.entry.esm.js.map +0 -0
  1001. /package/{bellhop-core → dist/bellhop-core}/bh-autocomplete-menu.bh-tag.entry.esm.js.map +0 -0
  1002. /package/{bellhop-core → dist/bellhop-core}/bh-avatar-add.entry.esm.js.map +0 -0
  1003. /package/{bellhop-core → dist/bellhop-core}/bh-avatar-stacked.entry.esm.js.map +0 -0
  1004. /package/{bellhop-core → dist/bellhop-core}/bh-avatar.entry.esm.js.map +0 -0
  1005. /package/{bellhop-core → dist/bellhop-core}/bh-badge-dot.bh-breadcrumbs.entry.esm.js.map +0 -0
  1006. /package/{bellhop-core → dist/bellhop-core}/bh-badge.entry.esm.js.map +0 -0
  1007. /package/{bellhop-core → dist/bellhop-core}/bh-bar-chart.entry.esm.js.map +0 -0
  1008. /package/{bellhop-core → dist/bellhop-core}/bh-button-icon.entry.esm.js.map +0 -0
  1009. /package/{bellhop-core → dist/bellhop-core}/bh-card-footer.entry.esm.js.map +0 -0
  1010. /package/{bellhop-core → dist/bellhop-core}/bh-card-header.entry.esm.js.map +0 -0
  1011. /package/{bellhop-core → dist/bellhop-core}/bh-card.entry.esm.js.map +0 -0
  1012. /package/{bellhop-core → dist/bellhop-core}/bh-chart-tooltip.entry.esm.js.map +0 -0
  1013. /package/{bellhop-core → dist/bellhop-core}/bh-checkbox-group-item.entry.esm.js.map +0 -0
  1014. /package/{bellhop-core → dist/bellhop-core}/bh-checkbox-group.entry.esm.js.map +0 -0
  1015. /package/{bellhop-core → dist/bellhop-core}/bh-container-footer.entry.esm.js.map +0 -0
  1016. /package/{bellhop-core → dist/bellhop-core}/bh-container.entry.esm.js.map +0 -0
  1017. /package/{bellhop-core → dist/bellhop-core}/bh-date-range-picker-content.entry.esm.js.map +0 -0
  1018. /package/{bellhop-core → dist/bellhop-core}/bh-date-range-picker.entry.esm.js.map +0 -0
  1019. /package/{bellhop-core → dist/bellhop-core}/bh-dropdown-menu.entry.esm.js.map +0 -0
  1020. /package/{bellhop-core → dist/bellhop-core}/bh-featured-icon.entry.esm.js.map +0 -0
  1021. /package/{bellhop-core → dist/bellhop-core}/bh-illustrations.entry.esm.js.map +0 -0
  1022. /package/{bellhop-core → dist/bellhop-core}/bh-input-autocomplete.entry.esm.js.map +0 -0
  1023. /package/{bellhop-core → dist/bellhop-core}/bh-input-number.entry.esm.js.map +0 -0
  1024. /package/{bellhop-core → dist/bellhop-core}/bh-input-password.entry.esm.js.map +0 -0
  1025. /package/{bellhop-core → dist/bellhop-core}/bh-input-verification.entry.esm.js.map +0 -0
  1026. /package/{bellhop-core → dist/bellhop-core}/bh-label.bh-tooltip.entry.esm.js.map +0 -0
  1027. /package/{bellhop-core → dist/bellhop-core}/bh-modal-actions.entry.esm.js.map +0 -0
  1028. /package/{bellhop-core → dist/bellhop-core}/bh-modal-header.entry.esm.js.map +0 -0
  1029. /package/{bellhop-core → dist/bellhop-core}/bh-modal.entry.esm.js.map +0 -0
  1030. /package/{bellhop-core → dist/bellhop-core}/bh-month-picker-content.entry.esm.js.map +0 -0
  1031. /package/{bellhop-core → dist/bellhop-core}/bh-month-picker.entry.esm.js.map +0 -0
  1032. /package/{bellhop-core → dist/bellhop-core}/bh-notification.entry.esm.js.map +0 -0
  1033. /package/{bellhop-core → dist/bellhop-core}/bh-page-navigation-child.entry.esm.js.map +0 -0
  1034. /package/{bellhop-core → dist/bellhop-core}/bh-page-navigation-multi-level.bh-page-navigation-single-level.entry.esm.js.map +0 -0
  1035. /package/{bellhop-core → dist/bellhop-core}/bh-page-navigation.entry.esm.js.map +0 -0
  1036. /package/{bellhop-core → dist/bellhop-core}/bh-pie-chart.entry.esm.js.map +0 -0
  1037. /package/{bellhop-core → dist/bellhop-core}/bh-popover.entry.esm.js.map +0 -0
  1038. /package/{bellhop-core → dist/bellhop-core}/bh-product-switcher.entry.esm.js.map +0 -0
  1039. /package/{bellhop-core → dist/bellhop-core}/bh-property-switcher.entry.esm.js.map +0 -0
  1040. /package/{bellhop-core → dist/bellhop-core}/bh-sidebar.entry.esm.js.map +0 -0
  1041. /package/{bellhop-core → dist/bellhop-core}/bh-tab-item.entry.esm.js.map +0 -0
  1042. /package/{bellhop-core → dist/bellhop-core}/bh-tabs.entry.esm.js.map +0 -0
  1043. /package/{bellhop-core → dist/bellhop-core}/bh-textarea.entry.esm.js.map +0 -0
  1044. /package/{bellhop-core → dist/bellhop-core}/bh-toggle.entry.esm.js.map +0 -0
  1045. /package/{bellhop-core → dist/bellhop-core}/bh-trend-chart.entry.esm.js.map +0 -0
  1046. /package/{bellhop-core → dist/bellhop-core}/loader.esm.js.map +0 -0
  1047. /package/{bellhop-core/p-c48ca590.entry.js.map → dist/bellhop-core/p-03e93cd8.entry.js.map} +0 -0
  1048. /package/{bellhop-core/p-86bbff38.entry.js.map → dist/bellhop-core/p-0438e0a9.entry.js.map} +0 -0
  1049. /package/{bellhop-core/p-b4104ae5.entry.js.map → dist/bellhop-core/p-086e8c86.entry.js.map} +0 -0
  1050. /package/{bellhop-core/p-852564d6.entry.js.map → dist/bellhop-core/p-09f3464e.entry.js.map} +0 -0
  1051. /package/{bellhop-core/p-3c739eea.entry.js.map → dist/bellhop-core/p-20d680ce.entry.js.map} +0 -0
  1052. /package/{bellhop-core/p-d5fb8d0f.entry.js.map → dist/bellhop-core/p-239c7e6b.entry.js.map} +0 -0
  1053. /package/{bellhop-core/p-abf68de4.entry.js.map → dist/bellhop-core/p-23b74b40.entry.js.map} +0 -0
  1054. /package/{bellhop-core/p-e44539e9.entry.js.map → dist/bellhop-core/p-2c796978.entry.js.map} +0 -0
  1055. /package/{bellhop-core/p-98cc729f.entry.js.map → dist/bellhop-core/p-356a2ed7.entry.js.map} +0 -0
  1056. /package/{bellhop-core/p-9e7e64dc.entry.js.map → dist/bellhop-core/p-363dce47.entry.js.map} +0 -0
  1057. /package/{bellhop-core/p-9fe1fd2e.entry.js.map → dist/bellhop-core/p-3719852a.entry.js.map} +0 -0
  1058. /package/{bellhop-core/p-05c13d72.entry.js.map → dist/bellhop-core/p-44241bad.entry.js.map} +0 -0
  1059. /package/{bellhop-core/p-c194883a.entry.js.map → dist/bellhop-core/p-4a14cbb5.entry.js.map} +0 -0
  1060. /package/{bellhop-core/p-df2728a1.entry.js.map → dist/bellhop-core/p-52e877e0.entry.js.map} +0 -0
  1061. /package/{bellhop-core/p-98a336f7.entry.js.map → dist/bellhop-core/p-56b857f5.entry.js.map} +0 -0
  1062. /package/{bellhop-core/p-8053e945.entry.js.map → dist/bellhop-core/p-5760ce66.entry.js.map} +0 -0
  1063. /package/{bellhop-core/p-e5b9a3de.entry.js.map → dist/bellhop-core/p-57ac382d.entry.js.map} +0 -0
  1064. /package/{bellhop-core/p-dfe0574c.entry.js.map → dist/bellhop-core/p-58879213.entry.js.map} +0 -0
  1065. /package/{bellhop-core/p-d9106838.entry.js.map → dist/bellhop-core/p-5ab50add.entry.js.map} +0 -0
  1066. /package/{bellhop-core/p-ebb2492c.entry.js.map → dist/bellhop-core/p-6433b0a7.entry.js.map} +0 -0
  1067. /package/{bellhop-core/p-5d844699.entry.js.map → dist/bellhop-core/p-67452ed0.entry.js.map} +0 -0
  1068. /package/{bellhop-core/p-e3c5d1e3.entry.js.map → dist/bellhop-core/p-686dea4a.entry.js.map} +0 -0
  1069. /package/{bellhop-core/p-e3d79592.entry.js.map → dist/bellhop-core/p-69f85850.entry.js.map} +0 -0
  1070. /package/{bellhop-core/p-5e8d2fc0.entry.js.map → dist/bellhop-core/p-70ee270c.entry.js.map} +0 -0
  1071. /package/{bellhop-core/p-2c80bc07.entry.js.map → dist/bellhop-core/p-859f45da.entry.js.map} +0 -0
  1072. /package/{bellhop-core/p-0e013732.entry.js.map → dist/bellhop-core/p-860be0be.entry.js.map} +0 -0
  1073. /package/{bellhop-core/p-d941cdba.entry.js.map → dist/bellhop-core/p-870fc023.entry.js.map} +0 -0
  1074. /package/{bellhop-core/p-1960c2d0.entry.js.map → dist/bellhop-core/p-87fb26a0.entry.js.map} +0 -0
  1075. /package/{bellhop-core/p-9693180e.entry.js.map → dist/bellhop-core/p-90b9047d.entry.js.map} +0 -0
  1076. /package/{bellhop-core/p-3bf098fd.entry.js.map → dist/bellhop-core/p-94d2d599.entry.js.map} +0 -0
  1077. /package/{bellhop-core/p-d14192df.entry.js.map → dist/bellhop-core/p-9a585c1a.entry.js.map} +0 -0
  1078. /package/{bellhop-core → dist/bellhop-core}/p-CPgx0iFq.js +0 -0
  1079. /package/{bellhop-core → dist/bellhop-core}/p-CPgx0iFq.js.map +0 -0
  1080. /package/{bellhop-core/p-87d1ed92.entry.js.map → dist/bellhop-core/p-ab2b037c.entry.js.map} +0 -0
  1081. /package/{bellhop-core/p-051a25aa.entry.js.map → dist/bellhop-core/p-ab9c5351.entry.js.map} +0 -0
  1082. /package/{bellhop-core/p-5a220f12.entry.js.map → dist/bellhop-core/p-abe24947.entry.js.map} +0 -0
  1083. /package/{bellhop-core/p-c82e73aa.entry.js.map → dist/bellhop-core/p-adcd2e15.entry.js.map} +0 -0
  1084. /package/{bellhop-core/p-e8e0739d.entry.js.map → dist/bellhop-core/p-afd0e309.entry.js.map} +0 -0
  1085. /package/{bellhop-core/p-ad15a4b9.entry.js.map → dist/bellhop-core/p-b1cb34e9.entry.js.map} +0 -0
  1086. /package/{bellhop-core/p-3038cc1a.entry.js.map → dist/bellhop-core/p-cdd593fb.entry.js.map} +0 -0
  1087. /package/{bellhop-core/p-94156013.entry.js.map → dist/bellhop-core/p-d4bfd30d.entry.js.map} +0 -0
  1088. /package/{bellhop-core/p-954b9c38.entry.js.map → dist/bellhop-core/p-dcaa20e2.entry.js.map} +0 -0
  1089. /package/{bellhop-core/p-ec894e11.entry.js.map → dist/bellhop-core/p-dd43d560.entry.js.map} +0 -0
  1090. /package/{bellhop-core/p-4c71a0b6.entry.js.map → dist/bellhop-core/p-e190ac50.entry.js.map} +0 -0
  1091. /package/{bellhop-core/p-f4c4c70d.entry.js.map → dist/bellhop-core/p-e86780b6.entry.js.map} +0 -0
  1092. /package/{bellhop-core/p-71391701.entry.js.map → dist/bellhop-core/p-e99bc91a.entry.js.map} +0 -0
  1093. /package/{bellhop-core/p-0579ce8d.entry.js.map → dist/bellhop-core/p-e9ed7c17.entry.js.map} +0 -0
  1094. /package/{bellhop-core/p-d94b296e.entry.js.map → dist/bellhop-core/p-ef47dcd1.entry.js.map} +0 -0
  1095. /package/{bellhop-core/p-2cc0c4cf.entry.js.map → dist/bellhop-core/p-f6e1b47c.entry.js.map} +0 -0
  1096. /package/{bellhop-core/p-7e67af77.entry.js.map → dist/bellhop-core/p-f7c7416d.entry.js.map} +0 -0
  1097. /package/{cjs → dist/cjs}/bh-accordion.entry.cjs.js.map +0 -0
  1098. /package/{cjs → dist/cjs}/bh-appbar.entry.cjs.js.map +0 -0
  1099. /package/{cjs → dist/cjs}/bh-autocomplete-menu.bh-tag.entry.cjs.js.map +0 -0
  1100. /package/{cjs → dist/cjs}/bh-avatar-add.entry.cjs.js.map +0 -0
  1101. /package/{cjs → dist/cjs}/bh-avatar-stacked.entry.cjs.js.map +0 -0
  1102. /package/{cjs → dist/cjs}/bh-avatar.entry.cjs.js.map +0 -0
  1103. /package/{cjs → dist/cjs}/bh-badge-dot.bh-breadcrumbs.entry.cjs.js.map +0 -0
  1104. /package/{cjs → dist/cjs}/bh-badge.entry.cjs.js.map +0 -0
  1105. /package/{cjs → dist/cjs}/bh-bar-chart.entry.cjs.js.map +0 -0
  1106. /package/{cjs → dist/cjs}/bh-button-icon.entry.cjs.js.map +0 -0
  1107. /package/{cjs → dist/cjs}/bh-card-footer.entry.cjs.js.map +0 -0
  1108. /package/{cjs → dist/cjs}/bh-card-header.entry.cjs.js.map +0 -0
  1109. /package/{cjs → dist/cjs}/bh-card.entry.cjs.js.map +0 -0
  1110. /package/{cjs → dist/cjs}/bh-chart-tooltip.entry.cjs.js.map +0 -0
  1111. /package/{cjs → dist/cjs}/bh-checkbox-group-item.entry.cjs.js.map +0 -0
  1112. /package/{cjs → dist/cjs}/bh-checkbox-group.entry.cjs.js.map +0 -0
  1113. /package/{cjs → dist/cjs}/bh-container-footer.entry.cjs.js.map +0 -0
  1114. /package/{cjs → dist/cjs}/bh-container.entry.cjs.js.map +0 -0
  1115. /package/{cjs → dist/cjs}/bh-date-range-picker-content.entry.cjs.js.map +0 -0
  1116. /package/{cjs → dist/cjs}/bh-date-range-picker.entry.cjs.js.map +0 -0
  1117. /package/{cjs → dist/cjs}/bh-dropdown-menu.entry.cjs.js.map +0 -0
  1118. /package/{cjs → dist/cjs}/bh-featured-icon.entry.cjs.js.map +0 -0
  1119. /package/{cjs → dist/cjs}/bh-illustrations.entry.cjs.js.map +0 -0
  1120. /package/{cjs → dist/cjs}/bh-input-autocomplete.entry.cjs.js.map +0 -0
  1121. /package/{cjs → dist/cjs}/bh-input-number.entry.cjs.js.map +0 -0
  1122. /package/{cjs → dist/cjs}/bh-input-password.entry.cjs.js.map +0 -0
  1123. /package/{cjs → dist/cjs}/bh-input-verification.entry.cjs.js.map +0 -0
  1124. /package/{cjs → dist/cjs}/bh-label.bh-tooltip.entry.cjs.js.map +0 -0
  1125. /package/{cjs → dist/cjs}/bh-modal-actions.entry.cjs.js.map +0 -0
  1126. /package/{cjs → dist/cjs}/bh-modal-header.entry.cjs.js.map +0 -0
  1127. /package/{cjs → dist/cjs}/bh-modal.entry.cjs.js.map +0 -0
  1128. /package/{cjs → dist/cjs}/bh-month-picker-content.entry.cjs.js.map +0 -0
  1129. /package/{cjs → dist/cjs}/bh-month-picker.entry.cjs.js.map +0 -0
  1130. /package/{cjs → dist/cjs}/bh-notification.entry.cjs.js.map +0 -0
  1131. /package/{cjs → dist/cjs}/bh-page-navigation-child.entry.cjs.js.map +0 -0
  1132. /package/{cjs → dist/cjs}/bh-page-navigation-multi-level.bh-page-navigation-single-level.entry.cjs.js.map +0 -0
  1133. /package/{cjs → dist/cjs}/bh-page-navigation.entry.cjs.js.map +0 -0
  1134. /package/{cjs → dist/cjs}/bh-pie-chart.entry.cjs.js.map +0 -0
  1135. /package/{cjs → dist/cjs}/bh-popover.entry.cjs.js.map +0 -0
  1136. /package/{cjs → dist/cjs}/bh-product-switcher.entry.cjs.js.map +0 -0
  1137. /package/{cjs → dist/cjs}/bh-property-switcher.entry.cjs.js.map +0 -0
  1138. /package/{cjs → dist/cjs}/bh-sidebar.entry.cjs.js.map +0 -0
  1139. /package/{cjs → dist/cjs}/bh-tab-item.entry.cjs.js.map +0 -0
  1140. /package/{cjs → dist/cjs}/bh-tabs.entry.cjs.js.map +0 -0
  1141. /package/{cjs → dist/cjs}/bh-textarea.entry.cjs.js.map +0 -0
  1142. /package/{cjs → dist/cjs}/bh-toggle.entry.cjs.js.map +0 -0
  1143. /package/{cjs → dist/cjs}/bh-trend-chart.entry.cjs.js.map +0 -0
  1144. /package/{cjs → dist/cjs}/form-9mbajZ3y.js +0 -0
  1145. /package/{cjs → dist/cjs}/form-9mbajZ3y.js.map +0 -0
  1146. /package/{cjs → dist/cjs}/loader.cjs.js.map +0 -0
  1147. /package/{collection → dist/collection}/components/bh-accordion/bh-accordion.css +0 -0
  1148. /package/{collection → dist/collection}/components/bh-accordion/bh-accordion.js.map +0 -0
  1149. /package/{collection → dist/collection}/components/bh-accordion-item/bh-accordion-item.js.map +0 -0
  1150. /package/{collection → dist/collection}/components/bh-appbar/bh-appbar.css +0 -0
  1151. /package/{collection → dist/collection}/components/bh-appbar/bh-appbar.js.map +0 -0
  1152. /package/{collection → dist/collection}/components/bh-autocomplete-menu/bh-autocomplete-menu.css +0 -0
  1153. /package/{collection → dist/collection}/components/bh-autocomplete-menu/bh-autocomplete-menu.js.map +0 -0
  1154. /package/{collection → dist/collection}/components/bh-avatar/bh-avatar.css +0 -0
  1155. /package/{collection → dist/collection}/components/bh-avatar/bh-avatar.js.map +0 -0
  1156. /package/{collection → dist/collection}/components/bh-avatar-add/bh-avatar-add.css +0 -0
  1157. /package/{collection → dist/collection}/components/bh-avatar-add/bh-avatar-add.js.map +0 -0
  1158. /package/{collection → dist/collection}/components/bh-avatar-stacked/bh-avatar-stacked.css +0 -0
  1159. /package/{collection → dist/collection}/components/bh-avatar-stacked/bh-avatar-stacked.js.map +0 -0
  1160. /package/{collection → dist/collection}/components/bh-badge/bh-badge.css +0 -0
  1161. /package/{collection → dist/collection}/components/bh-badge/bh-badge.js.map +0 -0
  1162. /package/{collection → dist/collection}/components/bh-badge-dot/bh-badge-dot.css +0 -0
  1163. /package/{collection → dist/collection}/components/bh-badge-dot/bh-badge-dot.js.map +0 -0
  1164. /package/{collection → dist/collection}/components/bh-bar-chart/bh-bar-chart.js.map +0 -0
  1165. /package/{collection → dist/collection}/components/bh-breadcrumbs/bh-breadcrumbs.css +0 -0
  1166. /package/{collection → dist/collection}/components/bh-breadcrumbs/bh-breadcrumbs.js.map +0 -0
  1167. /package/{collection → dist/collection}/components/bh-button/bh-button.css +0 -0
  1168. /package/{collection → dist/collection}/components/bh-button/bh-button.js.map +0 -0
  1169. /package/{collection → dist/collection}/components/bh-button-icon/bh-button-icon.css +0 -0
  1170. /package/{collection → dist/collection}/components/bh-button-icon/bh-button-icon.js.map +0 -0
  1171. /package/{collection → dist/collection}/components/bh-card/bh-card.css +0 -0
  1172. /package/{collection → dist/collection}/components/bh-card/bh-card.js.map +0 -0
  1173. /package/{collection → dist/collection}/components/bh-card-footer/bh-card-footer.css +0 -0
  1174. /package/{collection → dist/collection}/components/bh-card-footer/bh-card-footer.js.map +0 -0
  1175. /package/{collection → dist/collection}/components/bh-card-header/bh-card-header.css +0 -0
  1176. /package/{collection → dist/collection}/components/bh-card-header/bh-card-header.js.map +0 -0
  1177. /package/{collection → dist/collection}/components/bh-chart-tooltip/bh-chart-tooltip.js.map +0 -0
  1178. /package/{collection → dist/collection}/components/bh-checkbox/bh-checkbox.css +0 -0
  1179. /package/{collection → dist/collection}/components/bh-checkbox-group/bh-checkbox-group.css +0 -0
  1180. /package/{collection → dist/collection}/components/bh-checkbox-group/bh-checkbox-group.js.map +0 -0
  1181. /package/{collection → dist/collection}/components/bh-checkbox-group-item/bh-checkbox-group-item.css +0 -0
  1182. /package/{collection → dist/collection}/components/bh-checkbox-group-item/bh-checkbox-group-item.js.map +0 -0
  1183. /package/{collection → dist/collection}/components/bh-container/bh-container.css +0 -0
  1184. /package/{collection → dist/collection}/components/bh-container/bh-container.js.map +0 -0
  1185. /package/{collection → dist/collection}/components/bh-container-footer/bh-container-footer.css +0 -0
  1186. /package/{collection → dist/collection}/components/bh-container-footer/bh-container-footer.js.map +0 -0
  1187. /package/{collection → dist/collection}/components/bh-date-picker/bh-date-picker.js.map +0 -0
  1188. /package/{collection → dist/collection}/components/bh-date-picker-content/bh-date-picker-content.js.map +0 -0
  1189. /package/{collection → dist/collection}/components/bh-date-range-picker/bh-date-range-picker.js.map +0 -0
  1190. /package/{collection → dist/collection}/components/bh-date-range-picker-content/bh-date-range-picker-content.js.map +0 -0
  1191. /package/{collection → dist/collection}/components/bh-dropdown-menu/bh-dropdown-menu.css +0 -0
  1192. /package/{collection → dist/collection}/components/bh-dropdown-menu/bh-dropdown-menu.js.map +0 -0
  1193. /package/{collection → dist/collection}/components/bh-empty-state/bh-empty-state.css +0 -0
  1194. /package/{collection → dist/collection}/components/bh-empty-state/bh-empty-state.js.map +0 -0
  1195. /package/{collection → dist/collection}/components/bh-featured-icon/bh-featured-icon.css +0 -0
  1196. /package/{collection → dist/collection}/components/bh-featured-icon/bh-featured-icon.js.map +0 -0
  1197. /package/{collection → dist/collection}/components/bh-illustrations/bh-illustrations.js.map +0 -0
  1198. /package/{collection → dist/collection}/components/bh-input-autocomplete/bh-input-autocomplete.js.map +0 -0
  1199. /package/{collection → dist/collection}/components/bh-input-number/bh-input-number.css +0 -0
  1200. /package/{collection → dist/collection}/components/bh-input-number/bh-input-number.js.map +0 -0
  1201. /package/{collection → dist/collection}/components/bh-input-password/bh-input-password.css +0 -0
  1202. /package/{collection → dist/collection}/components/bh-input-password/bh-input-password.js.map +0 -0
  1203. /package/{collection → dist/collection}/components/bh-input-text/bh-input-text.css +0 -0
  1204. /package/{collection → dist/collection}/components/bh-input-text/bh-input-text.js.map +0 -0
  1205. /package/{collection → dist/collection}/components/bh-input-verification/bh-input-verification.css +0 -0
  1206. /package/{collection → dist/collection}/components/bh-input-verification/bh-input-verification.js.map +0 -0
  1207. /package/{collection → dist/collection}/components/bh-label/bh-label.css +0 -0
  1208. /package/{collection → dist/collection}/components/bh-label/bh-label.js.map +0 -0
  1209. /package/{collection → dist/collection}/components/bh-loader-spinner/bh-loader-spinner.js.map +0 -0
  1210. /package/{collection → dist/collection}/components/bh-logo-box/bh-logo-box.css +0 -0
  1211. /package/{collection → dist/collection}/components/bh-modal/bh-modal.css +0 -0
  1212. /package/{collection → dist/collection}/components/bh-modal/bh-modal.js.map +0 -0
  1213. /package/{collection → dist/collection}/components/bh-modal-actions/bh-modal-actions.css +0 -0
  1214. /package/{collection → dist/collection}/components/bh-modal-actions/bh-modal-actions.js.map +0 -0
  1215. /package/{collection → dist/collection}/components/bh-modal-header/bh-modal-header.css +0 -0
  1216. /package/{collection → dist/collection}/components/bh-modal-header/bh-modal-header.js.map +0 -0
  1217. /package/{collection → dist/collection}/components/bh-month-picker/bh-month-picker.js.map +0 -0
  1218. /package/{collection → dist/collection}/components/bh-month-picker-content/bh-month-picker-content.js.map +0 -0
  1219. /package/{collection → dist/collection}/components/bh-notification/bh-notification.css +0 -0
  1220. /package/{collection → dist/collection}/components/bh-notification/bh-notification.js.map +0 -0
  1221. /package/{collection → dist/collection}/components/bh-page-navigation/bh-page-navigation.js.map +0 -0
  1222. /package/{collection → dist/collection}/components/bh-page-navigation-child/bh-page-navigation-child.js.map +0 -0
  1223. /package/{collection → dist/collection}/components/bh-page-navigation-multi-level/bh-page-navigation-multi-level.js.map +0 -0
  1224. /package/{collection → dist/collection}/components/bh-page-navigation-single-level/bh-page-navigation-single-level.css +0 -0
  1225. /package/{collection → dist/collection}/components/bh-page-navigation-single-level/bh-page-navigation-single-level.js.map +0 -0
  1226. /package/{collection → dist/collection}/components/bh-picker-menu/bh-picker-menu.js +0 -0
  1227. /package/{collection → dist/collection}/components/bh-picker-menu/bh-picker-menu.js.map +0 -0
  1228. /package/{collection → dist/collection}/components/bh-pie-chart/bh-pie-chart.js.map +0 -0
  1229. /package/{collection → dist/collection}/components/bh-popover/bh-popover.css +0 -0
  1230. /package/{collection → dist/collection}/components/bh-popover/bh-popover.js.map +0 -0
  1231. /package/{collection → dist/collection}/components/bh-product-switcher/bh-product-switcher.css +0 -0
  1232. /package/{collection → dist/collection}/components/bh-product-switcher/bh-product-switcher.js.map +0 -0
  1233. /package/{collection → dist/collection}/components/bh-property-switcher/bh-property-switcher.css +0 -0
  1234. /package/{collection → dist/collection}/components/bh-property-switcher/bh-property-switcher.js.map +0 -0
  1235. /package/{collection → dist/collection}/components/bh-radio-button/bh-radio-button.css +0 -0
  1236. /package/{collection → dist/collection}/components/bh-radio-button/bh-radio-button.js.map +0 -0
  1237. /package/{collection → dist/collection}/components/bh-sidebar/bh-nav-item.css +0 -0
  1238. /package/{collection → dist/collection}/components/bh-sidebar/bh-nav-item.js.map +0 -0
  1239. /package/{collection → dist/collection}/components/bh-sidebar/bh-sidebar.css +0 -0
  1240. /package/{collection → dist/collection}/components/bh-sidebar/bh-sidebar.js.map +0 -0
  1241. /package/{collection → dist/collection}/components/bh-skeleton-loader/bh-skeleton-loader.css +0 -0
  1242. /package/{collection → dist/collection}/components/bh-skeleton-loader/bh-skeleton-loader.js.map +0 -0
  1243. /package/{collection → dist/collection}/components/bh-tab-item/bh-tab-item.css +0 -0
  1244. /package/{collection → dist/collection}/components/bh-tab-item/bh-tab-item.js.map +0 -0
  1245. /package/{collection → dist/collection}/components/bh-tabs/bh-tabs.css +0 -0
  1246. /package/{collection → dist/collection}/components/bh-tabs/bh-tabs.js.map +0 -0
  1247. /package/{collection → dist/collection}/components/bh-tag/bh-tag.css +0 -0
  1248. /package/{collection → dist/collection}/components/bh-tag/bh-tag.js.map +0 -0
  1249. /package/{collection → dist/collection}/components/bh-textarea/bh-textarea.css +0 -0
  1250. /package/{collection → dist/collection}/components/bh-textarea/bh-textarea.js.map +0 -0
  1251. /package/{collection → dist/collection}/components/bh-toggle/bh-toggle.css +0 -0
  1252. /package/{collection → dist/collection}/components/bh-toggle/bh-toggle.js.map +0 -0
  1253. /package/{collection → dist/collection}/components/bh-tooltip/bh-tooltip.css +0 -0
  1254. /package/{collection → dist/collection}/components/bh-tooltip/bh-tooltip.js.map +0 -0
  1255. /package/{collection → dist/collection}/components/bh-trend-chart/bh-trend-chart.js.map +0 -0
  1256. /package/{collection → dist/collection}/utils/form.js +0 -0
  1257. /package/{collection → dist/collection}/utils/form.js.map +0 -0
  1258. /package/{components → dist/components}/bh-accordion-item.d.ts +0 -0
  1259. /package/{components → dist/components}/bh-accordion.d.ts +0 -0
  1260. /package/{components → dist/components}/bh-accordion.js.map +0 -0
  1261. /package/{components → dist/components}/bh-appbar.d.ts +0 -0
  1262. /package/{components → dist/components}/bh-appbar.js.map +0 -0
  1263. /package/{components → dist/components}/bh-autocomplete-menu.d.ts +0 -0
  1264. /package/{components → dist/components}/bh-autocomplete-menu.js.map +0 -0
  1265. /package/{components → dist/components}/bh-avatar-add.d.ts +0 -0
  1266. /package/{components → dist/components}/bh-avatar-add.js.map +0 -0
  1267. /package/{components → dist/components}/bh-avatar-stacked.d.ts +0 -0
  1268. /package/{components → dist/components}/bh-avatar-stacked.js.map +0 -0
  1269. /package/{components → dist/components}/bh-avatar.d.ts +0 -0
  1270. /package/{components → dist/components}/bh-avatar.js.map +0 -0
  1271. /package/{components → dist/components}/bh-badge-dot.d.ts +0 -0
  1272. /package/{components → dist/components}/bh-badge-dot.js.map +0 -0
  1273. /package/{components → dist/components}/bh-badge.d.ts +0 -0
  1274. /package/{components → dist/components}/bh-badge.js.map +0 -0
  1275. /package/{components → dist/components}/bh-bar-chart.d.ts +0 -0
  1276. /package/{components → dist/components}/bh-bar-chart.js.map +0 -0
  1277. /package/{components → dist/components}/bh-breadcrumbs.d.ts +0 -0
  1278. /package/{components → dist/components}/bh-breadcrumbs.js.map +0 -0
  1279. /package/{components → dist/components}/bh-button-icon.d.ts +0 -0
  1280. /package/{components → dist/components}/bh-button-icon.js.map +0 -0
  1281. /package/{components → dist/components}/bh-button.d.ts +0 -0
  1282. /package/{components → dist/components}/bh-button.js.map +0 -0
  1283. /package/{components → dist/components}/bh-card-footer.d.ts +0 -0
  1284. /package/{components → dist/components}/bh-card-footer.js.map +0 -0
  1285. /package/{components → dist/components}/bh-card-header.d.ts +0 -0
  1286. /package/{components → dist/components}/bh-card-header.js.map +0 -0
  1287. /package/{components → dist/components}/bh-card.d.ts +0 -0
  1288. /package/{components → dist/components}/bh-card.js.map +0 -0
  1289. /package/{components → dist/components}/bh-chart-tooltip.d.ts +0 -0
  1290. /package/{components → dist/components}/bh-chart-tooltip.js.map +0 -0
  1291. /package/{components → dist/components}/bh-checkbox-group-item.d.ts +0 -0
  1292. /package/{components → dist/components}/bh-checkbox-group-item.js.map +0 -0
  1293. /package/{components → dist/components}/bh-checkbox-group.d.ts +0 -0
  1294. /package/{components → dist/components}/bh-checkbox-group.js.map +0 -0
  1295. /package/{components → dist/components}/bh-checkbox.d.ts +0 -0
  1296. /package/{components → dist/components}/bh-checkbox.js.map +0 -0
  1297. /package/{components → dist/components}/bh-container-footer.d.ts +0 -0
  1298. /package/{components → dist/components}/bh-container-footer.js.map +0 -0
  1299. /package/{components → dist/components}/bh-container.d.ts +0 -0
  1300. /package/{components → dist/components}/bh-container.js.map +0 -0
  1301. /package/{components → dist/components}/bh-data-grid.d.ts +0 -0
  1302. /package/{components → dist/components}/bh-data-grid.js.map +0 -0
  1303. /package/{components → dist/components}/bh-date-picker-content.d.ts +0 -0
  1304. /package/{components → dist/components}/bh-date-picker-content.js.map +0 -0
  1305. /package/{components → dist/components}/bh-date-picker.d.ts +0 -0
  1306. /package/{components → dist/components}/bh-date-range-picker-content.d.ts +0 -0
  1307. /package/{components → dist/components}/bh-date-range-picker-content.js.map +0 -0
  1308. /package/{components → dist/components}/bh-date-range-picker.d.ts +0 -0
  1309. /package/{components → dist/components}/bh-date-range-picker.js.map +0 -0
  1310. /package/{components → dist/components}/bh-dropdown-menu.d.ts +0 -0
  1311. /package/{components → dist/components}/bh-dropdown-menu.js.map +0 -0
  1312. /package/{components → dist/components}/bh-dropdown.d.ts +0 -0
  1313. /package/{components → dist/components}/bh-dropdown.js.map +0 -0
  1314. /package/{components → dist/components}/bh-empty-state.d.ts +0 -0
  1315. /package/{components → dist/components}/bh-empty-state.js.map +0 -0
  1316. /package/{components → dist/components}/bh-featured-icon.d.ts +0 -0
  1317. /package/{components → dist/components}/bh-featured-icon.js.map +0 -0
  1318. /package/{components → dist/components}/bh-illustrations.d.ts +0 -0
  1319. /package/{components → dist/components}/bh-illustrations.js.map +0 -0
  1320. /package/{components → dist/components}/bh-input-autocomplete.d.ts +0 -0
  1321. /package/{components → dist/components}/bh-input-autocomplete.js.map +0 -0
  1322. /package/{components → dist/components}/bh-input-number.d.ts +0 -0
  1323. /package/{components → dist/components}/bh-input-number.js.map +0 -0
  1324. /package/{components → dist/components}/bh-input-password.d.ts +0 -0
  1325. /package/{components → dist/components}/bh-input-password.js.map +0 -0
  1326. /package/{components → dist/components}/bh-input-text.d.ts +0 -0
  1327. /package/{components → dist/components}/bh-input-text.js.map +0 -0
  1328. /package/{components → dist/components}/bh-input-verification.d.ts +0 -0
  1329. /package/{components → dist/components}/bh-input-verification.js.map +0 -0
  1330. /package/{components → dist/components}/bh-label.d.ts +0 -0
  1331. /package/{components → dist/components}/bh-label.js.map +0 -0
  1332. /package/{components → dist/components}/bh-loader-spinner.d.ts +0 -0
  1333. /package/{components → dist/components}/bh-loader-spinner.js.map +0 -0
  1334. /package/{components → dist/components}/bh-logo-box.d.ts +0 -0
  1335. /package/{components → dist/components}/bh-logo-box.js.map +0 -0
  1336. /package/{components → dist/components}/bh-modal-actions.d.ts +0 -0
  1337. /package/{components → dist/components}/bh-modal-actions.js.map +0 -0
  1338. /package/{components → dist/components}/bh-modal-header.d.ts +0 -0
  1339. /package/{components → dist/components}/bh-modal-header.js.map +0 -0
  1340. /package/{components → dist/components}/bh-modal.d.ts +0 -0
  1341. /package/{components → dist/components}/bh-modal.js.map +0 -0
  1342. /package/{components → dist/components}/bh-month-picker-content.d.ts +0 -0
  1343. /package/{components → dist/components}/bh-month-picker-content.js.map +0 -0
  1344. /package/{components → dist/components}/bh-month-picker.d.ts +0 -0
  1345. /package/{components → dist/components}/bh-month-picker.js.map +0 -0
  1346. /package/{components → dist/components}/bh-nav-item.d.ts +0 -0
  1347. /package/{components → dist/components}/bh-nav-item.js.map +0 -0
  1348. /package/{components → dist/components}/bh-notification.d.ts +0 -0
  1349. /package/{components → dist/components}/bh-notification.js.map +0 -0
  1350. /package/{components → dist/components}/bh-page-navigation-child.d.ts +0 -0
  1351. /package/{components → dist/components}/bh-page-navigation-child.js.map +0 -0
  1352. /package/{components → dist/components}/bh-page-navigation-multi-level.d.ts +0 -0
  1353. /package/{components → dist/components}/bh-page-navigation-multi-level.js.map +0 -0
  1354. /package/{components → dist/components}/bh-page-navigation-single-level.d.ts +0 -0
  1355. /package/{components → dist/components}/bh-page-navigation-single-level.js.map +0 -0
  1356. /package/{components → dist/components}/bh-page-navigation.d.ts +0 -0
  1357. /package/{components → dist/components}/bh-page-navigation.js.map +0 -0
  1358. /package/{components → dist/components}/bh-picker-menu.d.ts +0 -0
  1359. /package/{components → dist/components}/bh-picker-menu.js.map +0 -0
  1360. /package/{components → dist/components}/bh-pie-chart.d.ts +0 -0
  1361. /package/{components → dist/components}/bh-pie-chart.js.map +0 -0
  1362. /package/{components → dist/components}/bh-popover.d.ts +0 -0
  1363. /package/{components → dist/components}/bh-popover.js.map +0 -0
  1364. /package/{components → dist/components}/bh-product-switcher.d.ts +0 -0
  1365. /package/{components → dist/components}/bh-product-switcher.js.map +0 -0
  1366. /package/{components → dist/components}/bh-property-switcher.d.ts +0 -0
  1367. /package/{components → dist/components}/bh-property-switcher.js.map +0 -0
  1368. /package/{components → dist/components}/bh-radio-button.d.ts +0 -0
  1369. /package/{components → dist/components}/bh-radio-button.js.map +0 -0
  1370. /package/{components → dist/components}/bh-sidebar.d.ts +0 -0
  1371. /package/{components → dist/components}/bh-sidebar.js.map +0 -0
  1372. /package/{components → dist/components}/bh-skeleton-loader.d.ts +0 -0
  1373. /package/{components → dist/components}/bh-tab-item.d.ts +0 -0
  1374. /package/{components → dist/components}/bh-tab-item.js.map +0 -0
  1375. /package/{components → dist/components}/bh-tabs.d.ts +0 -0
  1376. /package/{components → dist/components}/bh-tabs.js.map +0 -0
  1377. /package/{components → dist/components}/bh-tag.d.ts +0 -0
  1378. /package/{components → dist/components}/bh-tag.js.map +0 -0
  1379. /package/{components → dist/components}/bh-textarea.d.ts +0 -0
  1380. /package/{components → dist/components}/bh-textarea.js.map +0 -0
  1381. /package/{components → dist/components}/bh-toggle.d.ts +0 -0
  1382. /package/{components → dist/components}/bh-toggle.js.map +0 -0
  1383. /package/{components → dist/components}/bh-tooltip.d.ts +0 -0
  1384. /package/{components → dist/components}/bh-tooltip.js.map +0 -0
  1385. /package/{components → dist/components}/bh-trend-chart.d.ts +0 -0
  1386. /package/{components → dist/components}/bh-trend-chart.js.map +0 -0
  1387. /package/{components → dist/components}/index.d.ts +0 -0
  1388. /package/{components → dist/components}/p-2KjdCYlS.js +0 -0
  1389. /package/{components → dist/components}/p-2KjdCYlS.js.map +0 -0
  1390. /package/{esm → dist/esm}/bh-accordion.entry.js.map +0 -0
  1391. /package/{esm → dist/esm}/bh-appbar.entry.js.map +0 -0
  1392. /package/{esm → dist/esm}/bh-autocomplete-menu.bh-tag.entry.js.map +0 -0
  1393. /package/{esm → dist/esm}/bh-avatar-add.entry.js.map +0 -0
  1394. /package/{esm → dist/esm}/bh-avatar-stacked.entry.js.map +0 -0
  1395. /package/{esm → dist/esm}/bh-avatar.entry.js.map +0 -0
  1396. /package/{esm → dist/esm}/bh-badge-dot.bh-breadcrumbs.entry.js.map +0 -0
  1397. /package/{esm → dist/esm}/bh-badge.entry.js.map +0 -0
  1398. /package/{esm → dist/esm}/bh-bar-chart.entry.js.map +0 -0
  1399. /package/{esm → dist/esm}/bh-button-icon.entry.js.map +0 -0
  1400. /package/{esm → dist/esm}/bh-card-footer.entry.js.map +0 -0
  1401. /package/{esm → dist/esm}/bh-card-header.entry.js.map +0 -0
  1402. /package/{esm → dist/esm}/bh-card.entry.js.map +0 -0
  1403. /package/{esm → dist/esm}/bh-chart-tooltip.entry.js.map +0 -0
  1404. /package/{esm → dist/esm}/bh-checkbox-group-item.entry.js.map +0 -0
  1405. /package/{esm → dist/esm}/bh-checkbox-group.entry.js.map +0 -0
  1406. /package/{esm → dist/esm}/bh-container-footer.entry.js.map +0 -0
  1407. /package/{esm → dist/esm}/bh-container.entry.js.map +0 -0
  1408. /package/{esm → dist/esm}/bh-date-range-picker-content.entry.js.map +0 -0
  1409. /package/{esm → dist/esm}/bh-date-range-picker.entry.js.map +0 -0
  1410. /package/{esm → dist/esm}/bh-dropdown-menu.entry.js.map +0 -0
  1411. /package/{esm → dist/esm}/bh-featured-icon.entry.js.map +0 -0
  1412. /package/{esm → dist/esm}/bh-illustrations.entry.js.map +0 -0
  1413. /package/{esm → dist/esm}/bh-input-autocomplete.entry.js.map +0 -0
  1414. /package/{esm → dist/esm}/bh-input-number.entry.js.map +0 -0
  1415. /package/{esm → dist/esm}/bh-input-password.entry.js.map +0 -0
  1416. /package/{esm → dist/esm}/bh-input-verification.entry.js.map +0 -0
  1417. /package/{esm → dist/esm}/bh-label.bh-tooltip.entry.js.map +0 -0
  1418. /package/{esm → dist/esm}/bh-modal-actions.entry.js.map +0 -0
  1419. /package/{esm → dist/esm}/bh-modal-header.entry.js.map +0 -0
  1420. /package/{esm → dist/esm}/bh-modal.entry.js.map +0 -0
  1421. /package/{esm → dist/esm}/bh-month-picker-content.entry.js.map +0 -0
  1422. /package/{esm → dist/esm}/bh-month-picker.entry.js.map +0 -0
  1423. /package/{esm → dist/esm}/bh-notification.entry.js.map +0 -0
  1424. /package/{esm → dist/esm}/bh-page-navigation-child.entry.js.map +0 -0
  1425. /package/{esm → dist/esm}/bh-page-navigation-multi-level.bh-page-navigation-single-level.entry.js.map +0 -0
  1426. /package/{esm → dist/esm}/bh-page-navigation.entry.js.map +0 -0
  1427. /package/{esm → dist/esm}/bh-pie-chart.entry.js.map +0 -0
  1428. /package/{esm → dist/esm}/bh-popover.entry.js.map +0 -0
  1429. /package/{esm → dist/esm}/bh-product-switcher.entry.js.map +0 -0
  1430. /package/{esm → dist/esm}/bh-property-switcher.entry.js.map +0 -0
  1431. /package/{esm → dist/esm}/bh-sidebar.entry.js.map +0 -0
  1432. /package/{esm → dist/esm}/bh-tab-item.entry.js.map +0 -0
  1433. /package/{esm → dist/esm}/bh-tabs.entry.js.map +0 -0
  1434. /package/{esm → dist/esm}/bh-textarea.entry.js.map +0 -0
  1435. /package/{esm → dist/esm}/bh-toggle.entry.js.map +0 -0
  1436. /package/{esm → dist/esm}/bh-trend-chart.entry.js.map +0 -0
  1437. /package/{esm → dist/esm}/form-CPgx0iFq.js +0 -0
  1438. /package/{esm → dist/esm}/form-CPgx0iFq.js.map +0 -0
  1439. /package/{esm → dist/esm}/loader.js.map +0 -0
  1440. /package/{index.cjs.js → dist/index.cjs.js} +0 -0
  1441. /package/{index.js → dist/index.js} +0 -0
  1442. /package/{types → dist/types}/components/bh-accordion/bh-accordion.d.ts +0 -0
  1443. /package/{types → dist/types}/components/bh-accordion-item/bh-accordion-item.d.ts +0 -0
  1444. /package/{types → dist/types}/components/bh-appbar/bh-appbar.d.ts +0 -0
  1445. /package/{types → dist/types}/components/bh-autocomplete-menu/bh-autocomplete-menu.d.ts +0 -0
  1446. /package/{types → dist/types}/components/bh-avatar/bh-avatar.d.ts +0 -0
  1447. /package/{types → dist/types}/components/bh-avatar-add/bh-avatar-add.d.ts +0 -0
  1448. /package/{types → dist/types}/components/bh-avatar-stacked/bh-avatar-stacked.d.ts +0 -0
  1449. /package/{types → dist/types}/components/bh-badge/bh-badge.d.ts +0 -0
  1450. /package/{types → dist/types}/components/bh-badge-dot/bh-badge-dot.d.ts +0 -0
  1451. /package/{types → dist/types}/components/bh-bar-chart/bh-bar-chart.d.ts +0 -0
  1452. /package/{types → dist/types}/components/bh-breadcrumbs/bh-breadcrumbs.d.ts +0 -0
  1453. /package/{types → dist/types}/components/bh-button/bh-button.d.ts +0 -0
  1454. /package/{types → dist/types}/components/bh-button-icon/bh-button-icon.d.ts +0 -0
  1455. /package/{types → dist/types}/components/bh-card/bh-card.d.ts +0 -0
  1456. /package/{types → dist/types}/components/bh-card-footer/bh-card-footer.d.ts +0 -0
  1457. /package/{types → dist/types}/components/bh-card-header/bh-card-header.d.ts +0 -0
  1458. /package/{types → dist/types}/components/bh-chart-tooltip/bh-chart-tooltip.d.ts +0 -0
  1459. /package/{types → dist/types}/components/bh-checkbox-group/bh-checkbox-group.d.ts +0 -0
  1460. /package/{types → dist/types}/components/bh-checkbox-group-item/bh-checkbox-group-item.d.ts +0 -0
  1461. /package/{types → dist/types}/components/bh-container/bh-container.d.ts +0 -0
  1462. /package/{types → dist/types}/components/bh-container-footer/bh-container-footer.d.ts +0 -0
  1463. /package/{types → dist/types}/components/bh-date-picker/bh-date-picker.d.ts +0 -0
  1464. /package/{types → dist/types}/components/bh-date-picker-content/bh-date-picker-content.d.ts +0 -0
  1465. /package/{types → dist/types}/components/bh-date-range-picker/bh-date-range-picker.d.ts +0 -0
  1466. /package/{types → dist/types}/components/bh-date-range-picker-content/bh-date-range-picker-content.d.ts +0 -0
  1467. /package/{types → dist/types}/components/bh-dropdown-menu/bh-dropdown-menu.d.ts +0 -0
  1468. /package/{types → dist/types}/components/bh-empty-state/bh-empty-state.d.ts +0 -0
  1469. /package/{types → dist/types}/components/bh-featured-icon/bh-featured-icon.d.ts +0 -0
  1470. /package/{types → dist/types}/components/bh-illustrations/bh-illustrations.d.ts +0 -0
  1471. /package/{types → dist/types}/components/bh-input-autocomplete/bh-input-autocomplete.d.ts +0 -0
  1472. /package/{types → dist/types}/components/bh-input-number/bh-input-number.d.ts +0 -0
  1473. /package/{types → dist/types}/components/bh-input-password/bh-input-password.d.ts +0 -0
  1474. /package/{types → dist/types}/components/bh-input-text/bh-input-text.d.ts +0 -0
  1475. /package/{types → dist/types}/components/bh-input-verification/bh-input-verification.d.ts +0 -0
  1476. /package/{types → dist/types}/components/bh-label/bh-label.d.ts +0 -0
  1477. /package/{types → dist/types}/components/bh-loader-spinner/bh-loader-spinner.d.ts +0 -0
  1478. /package/{types → dist/types}/components/bh-modal/bh-modal.d.ts +0 -0
  1479. /package/{types → dist/types}/components/bh-modal-actions/bh-modal-actions.d.ts +0 -0
  1480. /package/{types → dist/types}/components/bh-modal-header/bh-modal-header.d.ts +0 -0
  1481. /package/{types → dist/types}/components/bh-month-picker/bh-month-picker.d.ts +0 -0
  1482. /package/{types → dist/types}/components/bh-month-picker-content/bh-month-picker-content.d.ts +0 -0
  1483. /package/{types → dist/types}/components/bh-notification/bh-notification.d.ts +0 -0
  1484. /package/{types → dist/types}/components/bh-page-navigation/bh-page-navigation.d.ts +0 -0
  1485. /package/{types → dist/types}/components/bh-page-navigation-child/bh-page-navigation-child.d.ts +0 -0
  1486. /package/{types → dist/types}/components/bh-page-navigation-multi-level/bh-page-navigation-multi-level.d.ts +0 -0
  1487. /package/{types → dist/types}/components/bh-page-navigation-single-level/bh-page-navigation-single-level.d.ts +0 -0
  1488. /package/{types → dist/types}/components/bh-picker-menu/bh-picker-menu.d.ts +0 -0
  1489. /package/{types → dist/types}/components/bh-pie-chart/bh-pie-chart.d.ts +0 -0
  1490. /package/{types → dist/types}/components/bh-popover/bh-popover.d.ts +0 -0
  1491. /package/{types → dist/types}/components/bh-product-switcher/bh-product-switcher.d.ts +0 -0
  1492. /package/{types → dist/types}/components/bh-property-switcher/bh-property-switcher.d.ts +0 -0
  1493. /package/{types → dist/types}/components/bh-radio-button/bh-radio-button.d.ts +0 -0
  1494. /package/{types → dist/types}/components/bh-sidebar/bh-nav-item.d.ts +0 -0
  1495. /package/{types → dist/types}/components/bh-sidebar/bh-sidebar.d.ts +0 -0
  1496. /package/{types → dist/types}/components/bh-skeleton-loader/bh-skeleton-loader.d.ts +0 -0
  1497. /package/{types → dist/types}/components/bh-tab-item/bh-tab-item.d.ts +0 -0
  1498. /package/{types → dist/types}/components/bh-tabs/bh-tabs.d.ts +0 -0
  1499. /package/{types → dist/types}/components/bh-tag/bh-tag.d.ts +0 -0
  1500. /package/{types → dist/types}/components/bh-textarea/bh-textarea.d.ts +0 -0
  1501. /package/{types → dist/types}/components/bh-toggle/bh-toggle.d.ts +0 -0
  1502. /package/{types → dist/types}/components/bh-tooltip/bh-tooltip.d.ts +0 -0
  1503. /package/{types → dist/types}/components/bh-trend-chart/bh-trend-chart.d.ts +0 -0
  1504. /package/{types → dist/types}/stencil-public-runtime.d.ts +0 -0
  1505. /package/{types → dist/types}/utils/form.d.ts +0 -0
@@ -0,0 +1,4230 @@
1
+ 'use strict';
2
+
3
+ var index = require('./index-BVJ_Kket.js');
4
+
5
+ /**
6
+ * table-core
7
+ *
8
+ * Copyright (c) TanStack
9
+ *
10
+ * This source code is licensed under the MIT license found in the
11
+ * LICENSE.md file in the root directory of this source tree.
12
+ *
13
+ * @license MIT
14
+ */
15
+ // type Person = {
16
+ // firstName: string
17
+ // lastName: string
18
+ // age: number
19
+ // visits: number
20
+ // status: string
21
+ // progress: number
22
+ // createdAt: Date
23
+ // nested: {
24
+ // foo: [
25
+ // {
26
+ // bar: 'bar'
27
+ // }
28
+ // ]
29
+ // bar: { subBar: boolean }[]
30
+ // baz: {
31
+ // foo: 'foo'
32
+ // bar: {
33
+ // baz: 'baz'
34
+ // }
35
+ // }
36
+ // }
37
+ // }
38
+
39
+
40
+ // Is this type a tuple?
41
+
42
+ // If this type is a tuple, what indices are allowed?
43
+
44
+ ///
45
+
46
+ function functionalUpdate(updater, input) {
47
+ return typeof updater === 'function' ? updater(input) : updater;
48
+ }
49
+ function makeStateUpdater(key, instance) {
50
+ return updater => {
51
+ instance.setState(old => {
52
+ return {
53
+ ...old,
54
+ [key]: functionalUpdate(updater, old[key])
55
+ };
56
+ });
57
+ };
58
+ }
59
+ function isFunction(d) {
60
+ return d instanceof Function;
61
+ }
62
+ function isNumberArray(d) {
63
+ return Array.isArray(d) && d.every(val => typeof val === 'number');
64
+ }
65
+ function flattenBy(arr, getChildren) {
66
+ const flat = [];
67
+ const recurse = subArr => {
68
+ subArr.forEach(item => {
69
+ flat.push(item);
70
+ const children = getChildren(item);
71
+ if (children != null && children.length) {
72
+ recurse(children);
73
+ }
74
+ });
75
+ };
76
+ recurse(arr);
77
+ return flat;
78
+ }
79
+ function memo(getDeps, fn, opts) {
80
+ let deps = [];
81
+ let result;
82
+ return depArgs => {
83
+ let depTime;
84
+ if (opts.key && opts.debug) depTime = Date.now();
85
+ const newDeps = getDeps(depArgs);
86
+ const depsChanged = newDeps.length !== deps.length || newDeps.some((dep, index) => deps[index] !== dep);
87
+ if (!depsChanged) {
88
+ return result;
89
+ }
90
+ deps = newDeps;
91
+ let resultTime;
92
+ if (opts.key && opts.debug) resultTime = Date.now();
93
+ result = fn(...newDeps);
94
+ opts == null || opts.onChange == null || opts.onChange(result);
95
+ if (opts.key && opts.debug) {
96
+ if (opts != null && opts.debug()) {
97
+ const depEndTime = Math.round((Date.now() - depTime) * 100) / 100;
98
+ const resultEndTime = Math.round((Date.now() - resultTime) * 100) / 100;
99
+ const resultFpsPercentage = resultEndTime / 16;
100
+ const pad = (str, num) => {
101
+ str = String(str);
102
+ while (str.length < num) {
103
+ str = ' ' + str;
104
+ }
105
+ return str;
106
+ };
107
+ console.info(`%c⏱ ${pad(resultEndTime, 5)} /${pad(depEndTime, 5)} ms`, `
108
+ font-size: .6rem;
109
+ font-weight: bold;
110
+ color: hsl(${Math.max(0, Math.min(120 - 120 * resultFpsPercentage, 120))}deg 100% 31%);`, opts == null ? void 0 : opts.key);
111
+ }
112
+ }
113
+ return result;
114
+ };
115
+ }
116
+ function getMemoOptions(tableOptions, debugLevel, key, onChange) {
117
+ return {
118
+ debug: () => {
119
+ var _tableOptions$debugAl;
120
+ return (_tableOptions$debugAl = tableOptions == null ? void 0 : tableOptions.debugAll) != null ? _tableOptions$debugAl : tableOptions[debugLevel];
121
+ },
122
+ key: "production" === 'development',
123
+ onChange
124
+ };
125
+ }
126
+
127
+ function createCell(table, row, column, columnId) {
128
+ const getRenderValue = () => {
129
+ var _cell$getValue;
130
+ return (_cell$getValue = cell.getValue()) != null ? _cell$getValue : table.options.renderFallbackValue;
131
+ };
132
+ const cell = {
133
+ id: `${row.id}_${column.id}`,
134
+ row,
135
+ column,
136
+ getValue: () => row.getValue(columnId),
137
+ renderValue: getRenderValue,
138
+ getContext: memo(() => [table, column, row, cell], (table, column, row, cell) => ({
139
+ table,
140
+ column,
141
+ row,
142
+ cell: cell,
143
+ getValue: cell.getValue,
144
+ renderValue: cell.renderValue
145
+ }), getMemoOptions(table.options, 'debugCells'))
146
+ };
147
+ table._features.forEach(feature => {
148
+ feature.createCell == null || feature.createCell(cell, column, row, table);
149
+ }, {});
150
+ return cell;
151
+ }
152
+
153
+ function createColumn(table, columnDef, depth, parent) {
154
+ var _ref, _resolvedColumnDef$id;
155
+ const defaultColumn = table._getDefaultColumnDef();
156
+ const resolvedColumnDef = {
157
+ ...defaultColumn,
158
+ ...columnDef
159
+ };
160
+ const accessorKey = resolvedColumnDef.accessorKey;
161
+ let id = (_ref = (_resolvedColumnDef$id = resolvedColumnDef.id) != null ? _resolvedColumnDef$id : accessorKey ? typeof String.prototype.replaceAll === 'function' ? accessorKey.replaceAll('.', '_') : accessorKey.replace(/\./g, '_') : undefined) != null ? _ref : typeof resolvedColumnDef.header === 'string' ? resolvedColumnDef.header : undefined;
162
+ let accessorFn;
163
+ if (resolvedColumnDef.accessorFn) {
164
+ accessorFn = resolvedColumnDef.accessorFn;
165
+ } else if (accessorKey) {
166
+ // Support deep accessor keys
167
+ if (accessorKey.includes('.')) {
168
+ accessorFn = originalRow => {
169
+ let result = originalRow;
170
+ for (const key of accessorKey.split('.')) {
171
+ var _result;
172
+ result = (_result = result) == null ? void 0 : _result[key];
173
+ }
174
+ return result;
175
+ };
176
+ } else {
177
+ accessorFn = originalRow => originalRow[resolvedColumnDef.accessorKey];
178
+ }
179
+ }
180
+ if (!id) {
181
+ throw new Error();
182
+ }
183
+ let column = {
184
+ id: `${String(id)}`,
185
+ accessorFn,
186
+ parent: parent,
187
+ depth,
188
+ columnDef: resolvedColumnDef,
189
+ columns: [],
190
+ getFlatColumns: memo(() => [true], () => {
191
+ var _column$columns;
192
+ return [column, ...((_column$columns = column.columns) == null ? void 0 : _column$columns.flatMap(d => d.getFlatColumns()))];
193
+ }, getMemoOptions(table.options, 'debugColumns')),
194
+ getLeafColumns: memo(() => [table._getOrderColumnsFn()], orderColumns => {
195
+ var _column$columns2;
196
+ if ((_column$columns2 = column.columns) != null && _column$columns2.length) {
197
+ let leafColumns = column.columns.flatMap(column => column.getLeafColumns());
198
+ return orderColumns(leafColumns);
199
+ }
200
+ return [column];
201
+ }, getMemoOptions(table.options, 'debugColumns'))
202
+ };
203
+ for (const feature of table._features) {
204
+ feature.createColumn == null || feature.createColumn(column, table);
205
+ }
206
+
207
+ // Yes, we have to convert table to unknown, because we know more than the compiler here.
208
+ return column;
209
+ }
210
+
211
+ const debug = 'debugHeaders';
212
+ //
213
+
214
+ function createHeader(table, column, options) {
215
+ var _options$id;
216
+ const id = (_options$id = options.id) != null ? _options$id : column.id;
217
+ let header = {
218
+ id,
219
+ column,
220
+ index: options.index,
221
+ isPlaceholder: !!options.isPlaceholder,
222
+ placeholderId: options.placeholderId,
223
+ depth: options.depth,
224
+ subHeaders: [],
225
+ colSpan: 0,
226
+ rowSpan: 0,
227
+ headerGroup: null,
228
+ getLeafHeaders: () => {
229
+ const leafHeaders = [];
230
+ const recurseHeader = h => {
231
+ if (h.subHeaders && h.subHeaders.length) {
232
+ h.subHeaders.map(recurseHeader);
233
+ }
234
+ leafHeaders.push(h);
235
+ };
236
+ recurseHeader(header);
237
+ return leafHeaders;
238
+ },
239
+ getContext: () => ({
240
+ table,
241
+ header: header,
242
+ column
243
+ })
244
+ };
245
+ table._features.forEach(feature => {
246
+ feature.createHeader == null || feature.createHeader(header, table);
247
+ });
248
+ return header;
249
+ }
250
+ const Headers = {
251
+ createTable: table => {
252
+ // Header Groups
253
+
254
+ table.getHeaderGroups = memo(() => [table.getAllColumns(), table.getVisibleLeafColumns(), table.getState().columnPinning.left, table.getState().columnPinning.right], (allColumns, leafColumns, left, right) => {
255
+ var _left$map$filter, _right$map$filter;
256
+ const leftColumns = (_left$map$filter = left == null ? void 0 : left.map(columnId => leafColumns.find(d => d.id === columnId)).filter(Boolean)) != null ? _left$map$filter : [];
257
+ const rightColumns = (_right$map$filter = right == null ? void 0 : right.map(columnId => leafColumns.find(d => d.id === columnId)).filter(Boolean)) != null ? _right$map$filter : [];
258
+ const centerColumns = leafColumns.filter(column => !(left != null && left.includes(column.id)) && !(right != null && right.includes(column.id)));
259
+ const headerGroups = buildHeaderGroups(allColumns, [...leftColumns, ...centerColumns, ...rightColumns], table);
260
+ return headerGroups;
261
+ }, getMemoOptions(table.options, debug));
262
+ table.getCenterHeaderGroups = memo(() => [table.getAllColumns(), table.getVisibleLeafColumns(), table.getState().columnPinning.left, table.getState().columnPinning.right], (allColumns, leafColumns, left, right) => {
263
+ leafColumns = leafColumns.filter(column => !(left != null && left.includes(column.id)) && !(right != null && right.includes(column.id)));
264
+ return buildHeaderGroups(allColumns, leafColumns, table, 'center');
265
+ }, getMemoOptions(table.options, debug));
266
+ table.getLeftHeaderGroups = memo(() => [table.getAllColumns(), table.getVisibleLeafColumns(), table.getState().columnPinning.left], (allColumns, leafColumns, left) => {
267
+ var _left$map$filter2;
268
+ const orderedLeafColumns = (_left$map$filter2 = left == null ? void 0 : left.map(columnId => leafColumns.find(d => d.id === columnId)).filter(Boolean)) != null ? _left$map$filter2 : [];
269
+ return buildHeaderGroups(allColumns, orderedLeafColumns, table, 'left');
270
+ }, getMemoOptions(table.options, debug));
271
+ table.getRightHeaderGroups = memo(() => [table.getAllColumns(), table.getVisibleLeafColumns(), table.getState().columnPinning.right], (allColumns, leafColumns, right) => {
272
+ var _right$map$filter2;
273
+ const orderedLeafColumns = (_right$map$filter2 = right == null ? void 0 : right.map(columnId => leafColumns.find(d => d.id === columnId)).filter(Boolean)) != null ? _right$map$filter2 : [];
274
+ return buildHeaderGroups(allColumns, orderedLeafColumns, table, 'right');
275
+ }, getMemoOptions(table.options, debug));
276
+
277
+ // Footer Groups
278
+
279
+ table.getFooterGroups = memo(() => [table.getHeaderGroups()], headerGroups => {
280
+ return [...headerGroups].reverse();
281
+ }, getMemoOptions(table.options, debug));
282
+ table.getLeftFooterGroups = memo(() => [table.getLeftHeaderGroups()], headerGroups => {
283
+ return [...headerGroups].reverse();
284
+ }, getMemoOptions(table.options, debug));
285
+ table.getCenterFooterGroups = memo(() => [table.getCenterHeaderGroups()], headerGroups => {
286
+ return [...headerGroups].reverse();
287
+ }, getMemoOptions(table.options, debug));
288
+ table.getRightFooterGroups = memo(() => [table.getRightHeaderGroups()], headerGroups => {
289
+ return [...headerGroups].reverse();
290
+ }, getMemoOptions(table.options, debug));
291
+
292
+ // Flat Headers
293
+
294
+ table.getFlatHeaders = memo(() => [table.getHeaderGroups()], headerGroups => {
295
+ return headerGroups.map(headerGroup => {
296
+ return headerGroup.headers;
297
+ }).flat();
298
+ }, getMemoOptions(table.options, debug));
299
+ table.getLeftFlatHeaders = memo(() => [table.getLeftHeaderGroups()], left => {
300
+ return left.map(headerGroup => {
301
+ return headerGroup.headers;
302
+ }).flat();
303
+ }, getMemoOptions(table.options, debug));
304
+ table.getCenterFlatHeaders = memo(() => [table.getCenterHeaderGroups()], left => {
305
+ return left.map(headerGroup => {
306
+ return headerGroup.headers;
307
+ }).flat();
308
+ }, getMemoOptions(table.options, debug));
309
+ table.getRightFlatHeaders = memo(() => [table.getRightHeaderGroups()], left => {
310
+ return left.map(headerGroup => {
311
+ return headerGroup.headers;
312
+ }).flat();
313
+ }, getMemoOptions(table.options, debug));
314
+
315
+ // Leaf Headers
316
+
317
+ table.getCenterLeafHeaders = memo(() => [table.getCenterFlatHeaders()], flatHeaders => {
318
+ return flatHeaders.filter(header => {
319
+ var _header$subHeaders;
320
+ return !((_header$subHeaders = header.subHeaders) != null && _header$subHeaders.length);
321
+ });
322
+ }, getMemoOptions(table.options, debug));
323
+ table.getLeftLeafHeaders = memo(() => [table.getLeftFlatHeaders()], flatHeaders => {
324
+ return flatHeaders.filter(header => {
325
+ var _header$subHeaders2;
326
+ return !((_header$subHeaders2 = header.subHeaders) != null && _header$subHeaders2.length);
327
+ });
328
+ }, getMemoOptions(table.options, debug));
329
+ table.getRightLeafHeaders = memo(() => [table.getRightFlatHeaders()], flatHeaders => {
330
+ return flatHeaders.filter(header => {
331
+ var _header$subHeaders3;
332
+ return !((_header$subHeaders3 = header.subHeaders) != null && _header$subHeaders3.length);
333
+ });
334
+ }, getMemoOptions(table.options, debug));
335
+ table.getLeafHeaders = memo(() => [table.getLeftHeaderGroups(), table.getCenterHeaderGroups(), table.getRightHeaderGroups()], (left, center, right) => {
336
+ var _left$0$headers, _left$, _center$0$headers, _center$, _right$0$headers, _right$;
337
+ return [...((_left$0$headers = (_left$ = left[0]) == null ? void 0 : _left$.headers) != null ? _left$0$headers : []), ...((_center$0$headers = (_center$ = center[0]) == null ? void 0 : _center$.headers) != null ? _center$0$headers : []), ...((_right$0$headers = (_right$ = right[0]) == null ? void 0 : _right$.headers) != null ? _right$0$headers : [])].map(header => {
338
+ return header.getLeafHeaders();
339
+ }).flat();
340
+ }, getMemoOptions(table.options, debug));
341
+ }
342
+ };
343
+ function buildHeaderGroups(allColumns, columnsToGroup, table, headerFamily) {
344
+ var _headerGroups$0$heade, _headerGroups$;
345
+ // Find the max depth of the columns:
346
+ // build the leaf column row
347
+ // build each buffer row going up
348
+ // placeholder for non-existent level
349
+ // real column for existing level
350
+
351
+ let maxDepth = 0;
352
+ const findMaxDepth = function (columns, depth) {
353
+ if (depth === void 0) {
354
+ depth = 1;
355
+ }
356
+ maxDepth = Math.max(maxDepth, depth);
357
+ columns.filter(column => column.getIsVisible()).forEach(column => {
358
+ var _column$columns;
359
+ if ((_column$columns = column.columns) != null && _column$columns.length) {
360
+ findMaxDepth(column.columns, depth + 1);
361
+ }
362
+ }, 0);
363
+ };
364
+ findMaxDepth(allColumns);
365
+ let headerGroups = [];
366
+ const createHeaderGroup = (headersToGroup, depth) => {
367
+ // The header group we are creating
368
+ const headerGroup = {
369
+ depth,
370
+ id: [headerFamily, `${depth}`].filter(Boolean).join('_'),
371
+ headers: []
372
+ };
373
+
374
+ // The parent columns we're going to scan next
375
+ const pendingParentHeaders = [];
376
+
377
+ // Scan each column for parents
378
+ headersToGroup.forEach(headerToGroup => {
379
+ // What is the latest (last) parent column?
380
+
381
+ const latestPendingParentHeader = [...pendingParentHeaders].reverse()[0];
382
+ const isLeafHeader = headerToGroup.column.depth === headerGroup.depth;
383
+ let column;
384
+ let isPlaceholder = false;
385
+ if (isLeafHeader && headerToGroup.column.parent) {
386
+ // The parent header is new
387
+ column = headerToGroup.column.parent;
388
+ } else {
389
+ // The parent header is repeated
390
+ column = headerToGroup.column;
391
+ isPlaceholder = true;
392
+ }
393
+ if (latestPendingParentHeader && (latestPendingParentHeader == null ? void 0 : latestPendingParentHeader.column) === column) {
394
+ // This column is repeated. Add it as a sub header to the next batch
395
+ latestPendingParentHeader.subHeaders.push(headerToGroup);
396
+ } else {
397
+ // This is a new header. Let's create it
398
+ const header = createHeader(table, column, {
399
+ id: [headerFamily, depth, column.id, headerToGroup == null ? void 0 : headerToGroup.id].filter(Boolean).join('_'),
400
+ isPlaceholder,
401
+ placeholderId: isPlaceholder ? `${pendingParentHeaders.filter(d => d.column === column).length}` : undefined,
402
+ depth,
403
+ index: pendingParentHeaders.length
404
+ });
405
+
406
+ // Add the headerToGroup as a subHeader of the new header
407
+ header.subHeaders.push(headerToGroup);
408
+ // Add the new header to the pendingParentHeaders to get grouped
409
+ // in the next batch
410
+ pendingParentHeaders.push(header);
411
+ }
412
+ headerGroup.headers.push(headerToGroup);
413
+ headerToGroup.headerGroup = headerGroup;
414
+ });
415
+ headerGroups.push(headerGroup);
416
+ if (depth > 0) {
417
+ createHeaderGroup(pendingParentHeaders, depth - 1);
418
+ }
419
+ };
420
+ const bottomHeaders = columnsToGroup.map((column, index) => createHeader(table, column, {
421
+ depth: maxDepth,
422
+ index
423
+ }));
424
+ createHeaderGroup(bottomHeaders, maxDepth - 1);
425
+ headerGroups.reverse();
426
+
427
+ // headerGroups = headerGroups.filter(headerGroup => {
428
+ // return !headerGroup.headers.every(header => header.isPlaceholder)
429
+ // })
430
+
431
+ const recurseHeadersForSpans = headers => {
432
+ const filteredHeaders = headers.filter(header => header.column.getIsVisible());
433
+ return filteredHeaders.map(header => {
434
+ let colSpan = 0;
435
+ let rowSpan = 0;
436
+ let childRowSpans = [0];
437
+ if (header.subHeaders && header.subHeaders.length) {
438
+ childRowSpans = [];
439
+ recurseHeadersForSpans(header.subHeaders).forEach(_ref => {
440
+ let {
441
+ colSpan: childColSpan,
442
+ rowSpan: childRowSpan
443
+ } = _ref;
444
+ colSpan += childColSpan;
445
+ childRowSpans.push(childRowSpan);
446
+ });
447
+ } else {
448
+ colSpan = 1;
449
+ }
450
+ const minChildRowSpan = Math.min(...childRowSpans);
451
+ rowSpan = rowSpan + minChildRowSpan;
452
+ header.colSpan = colSpan;
453
+ header.rowSpan = rowSpan;
454
+ return {
455
+ colSpan,
456
+ rowSpan
457
+ };
458
+ });
459
+ };
460
+ recurseHeadersForSpans((_headerGroups$0$heade = (_headerGroups$ = headerGroups[0]) == null ? void 0 : _headerGroups$.headers) != null ? _headerGroups$0$heade : []);
461
+ return headerGroups;
462
+ }
463
+
464
+ const createRow = (table, id, original, rowIndex, depth, subRows, parentId) => {
465
+ let row = {
466
+ id,
467
+ index: rowIndex,
468
+ original,
469
+ depth,
470
+ parentId,
471
+ _valuesCache: {},
472
+ _uniqueValuesCache: {},
473
+ getValue: columnId => {
474
+ if (row._valuesCache.hasOwnProperty(columnId)) {
475
+ return row._valuesCache[columnId];
476
+ }
477
+ const column = table.getColumn(columnId);
478
+ if (!(column != null && column.accessorFn)) {
479
+ return undefined;
480
+ }
481
+ row._valuesCache[columnId] = column.accessorFn(row.original, rowIndex);
482
+ return row._valuesCache[columnId];
483
+ },
484
+ getUniqueValues: columnId => {
485
+ if (row._uniqueValuesCache.hasOwnProperty(columnId)) {
486
+ return row._uniqueValuesCache[columnId];
487
+ }
488
+ const column = table.getColumn(columnId);
489
+ if (!(column != null && column.accessorFn)) {
490
+ return undefined;
491
+ }
492
+ if (!column.columnDef.getUniqueValues) {
493
+ row._uniqueValuesCache[columnId] = [row.getValue(columnId)];
494
+ return row._uniqueValuesCache[columnId];
495
+ }
496
+ row._uniqueValuesCache[columnId] = column.columnDef.getUniqueValues(row.original, rowIndex);
497
+ return row._uniqueValuesCache[columnId];
498
+ },
499
+ renderValue: columnId => {
500
+ var _row$getValue;
501
+ return (_row$getValue = row.getValue(columnId)) != null ? _row$getValue : table.options.renderFallbackValue;
502
+ },
503
+ subRows: subRows != null ? subRows : [],
504
+ getLeafRows: () => flattenBy(row.subRows, d => d.subRows),
505
+ getParentRow: () => row.parentId ? table.getRow(row.parentId, true) : undefined,
506
+ getParentRows: () => {
507
+ let parentRows = [];
508
+ let currentRow = row;
509
+ while (true) {
510
+ const parentRow = currentRow.getParentRow();
511
+ if (!parentRow) break;
512
+ parentRows.push(parentRow);
513
+ currentRow = parentRow;
514
+ }
515
+ return parentRows.reverse();
516
+ },
517
+ getAllCells: memo(() => [table.getAllLeafColumns()], leafColumns => {
518
+ return leafColumns.map(column => {
519
+ return createCell(table, row, column, column.id);
520
+ });
521
+ }, getMemoOptions(table.options, 'debugRows')),
522
+ _getAllCellsByColumnId: memo(() => [row.getAllCells()], allCells => {
523
+ return allCells.reduce((acc, cell) => {
524
+ acc[cell.column.id] = cell;
525
+ return acc;
526
+ }, {});
527
+ }, getMemoOptions(table.options, 'debugRows'))
528
+ };
529
+ for (let i = 0; i < table._features.length; i++) {
530
+ const feature = table._features[i];
531
+ feature == null || feature.createRow == null || feature.createRow(row, table);
532
+ }
533
+ return row;
534
+ };
535
+
536
+ //
537
+
538
+ const ColumnFaceting = {
539
+ createColumn: (column, table) => {
540
+ column._getFacetedRowModel = table.options.getFacetedRowModel && table.options.getFacetedRowModel(table, column.id);
541
+ column.getFacetedRowModel = () => {
542
+ if (!column._getFacetedRowModel) {
543
+ return table.getPreFilteredRowModel();
544
+ }
545
+ return column._getFacetedRowModel();
546
+ };
547
+ column._getFacetedUniqueValues = table.options.getFacetedUniqueValues && table.options.getFacetedUniqueValues(table, column.id);
548
+ column.getFacetedUniqueValues = () => {
549
+ if (!column._getFacetedUniqueValues) {
550
+ return new Map();
551
+ }
552
+ return column._getFacetedUniqueValues();
553
+ };
554
+ column._getFacetedMinMaxValues = table.options.getFacetedMinMaxValues && table.options.getFacetedMinMaxValues(table, column.id);
555
+ column.getFacetedMinMaxValues = () => {
556
+ if (!column._getFacetedMinMaxValues) {
557
+ return undefined;
558
+ }
559
+ return column._getFacetedMinMaxValues();
560
+ };
561
+ }
562
+ };
563
+
564
+ const includesString = (row, columnId, filterValue) => {
565
+ var _filterValue$toString, _row$getValue;
566
+ const search = filterValue == null || (_filterValue$toString = filterValue.toString()) == null ? void 0 : _filterValue$toString.toLowerCase();
567
+ return Boolean((_row$getValue = row.getValue(columnId)) == null || (_row$getValue = _row$getValue.toString()) == null || (_row$getValue = _row$getValue.toLowerCase()) == null ? void 0 : _row$getValue.includes(search));
568
+ };
569
+ includesString.autoRemove = val => testFalsey(val);
570
+ const includesStringSensitive = (row, columnId, filterValue) => {
571
+ var _row$getValue2;
572
+ return Boolean((_row$getValue2 = row.getValue(columnId)) == null || (_row$getValue2 = _row$getValue2.toString()) == null ? void 0 : _row$getValue2.includes(filterValue));
573
+ };
574
+ includesStringSensitive.autoRemove = val => testFalsey(val);
575
+ const equalsString = (row, columnId, filterValue) => {
576
+ var _row$getValue3;
577
+ return ((_row$getValue3 = row.getValue(columnId)) == null || (_row$getValue3 = _row$getValue3.toString()) == null ? void 0 : _row$getValue3.toLowerCase()) === (filterValue == null ? void 0 : filterValue.toLowerCase());
578
+ };
579
+ equalsString.autoRemove = val => testFalsey(val);
580
+ const arrIncludes = (row, columnId, filterValue) => {
581
+ var _row$getValue4;
582
+ return (_row$getValue4 = row.getValue(columnId)) == null ? void 0 : _row$getValue4.includes(filterValue);
583
+ };
584
+ arrIncludes.autoRemove = val => testFalsey(val);
585
+ const arrIncludesAll = (row, columnId, filterValue) => {
586
+ return !filterValue.some(val => {
587
+ var _row$getValue5;
588
+ return !((_row$getValue5 = row.getValue(columnId)) != null && _row$getValue5.includes(val));
589
+ });
590
+ };
591
+ arrIncludesAll.autoRemove = val => testFalsey(val) || !(val != null && val.length);
592
+ const arrIncludesSome = (row, columnId, filterValue) => {
593
+ return filterValue.some(val => {
594
+ var _row$getValue6;
595
+ return (_row$getValue6 = row.getValue(columnId)) == null ? void 0 : _row$getValue6.includes(val);
596
+ });
597
+ };
598
+ arrIncludesSome.autoRemove = val => testFalsey(val) || !(val != null && val.length);
599
+ const equals = (row, columnId, filterValue) => {
600
+ return row.getValue(columnId) === filterValue;
601
+ };
602
+ equals.autoRemove = val => testFalsey(val);
603
+ const weakEquals = (row, columnId, filterValue) => {
604
+ return row.getValue(columnId) == filterValue;
605
+ };
606
+ weakEquals.autoRemove = val => testFalsey(val);
607
+ const inNumberRange = (row, columnId, filterValue) => {
608
+ let [min, max] = filterValue;
609
+ const rowValue = row.getValue(columnId);
610
+ return rowValue >= min && rowValue <= max;
611
+ };
612
+ inNumberRange.resolveFilterValue = val => {
613
+ let [unsafeMin, unsafeMax] = val;
614
+ let parsedMin = typeof unsafeMin !== 'number' ? parseFloat(unsafeMin) : unsafeMin;
615
+ let parsedMax = typeof unsafeMax !== 'number' ? parseFloat(unsafeMax) : unsafeMax;
616
+ let min = unsafeMin === null || Number.isNaN(parsedMin) ? -Infinity : parsedMin;
617
+ let max = unsafeMax === null || Number.isNaN(parsedMax) ? Infinity : parsedMax;
618
+ if (min > max) {
619
+ const temp = min;
620
+ min = max;
621
+ max = temp;
622
+ }
623
+ return [min, max];
624
+ };
625
+ inNumberRange.autoRemove = val => testFalsey(val) || testFalsey(val[0]) && testFalsey(val[1]);
626
+
627
+ // Export
628
+
629
+ const filterFns = {
630
+ includesString,
631
+ includesStringSensitive,
632
+ equalsString,
633
+ arrIncludes,
634
+ arrIncludesAll,
635
+ arrIncludesSome,
636
+ equals,
637
+ weakEquals,
638
+ inNumberRange
639
+ };
640
+ // Utils
641
+
642
+ function testFalsey(val) {
643
+ return val === undefined || val === null || val === '';
644
+ }
645
+
646
+ //
647
+
648
+ const ColumnFiltering = {
649
+ getDefaultColumnDef: () => {
650
+ return {
651
+ filterFn: 'auto'
652
+ };
653
+ },
654
+ getInitialState: state => {
655
+ return {
656
+ columnFilters: [],
657
+ ...state
658
+ };
659
+ },
660
+ getDefaultOptions: table => {
661
+ return {
662
+ onColumnFiltersChange: makeStateUpdater('columnFilters', table),
663
+ filterFromLeafRows: false,
664
+ maxLeafRowFilterDepth: 100
665
+ };
666
+ },
667
+ createColumn: (column, table) => {
668
+ column.getAutoFilterFn = () => {
669
+ const firstRow = table.getCoreRowModel().flatRows[0];
670
+ const value = firstRow == null ? void 0 : firstRow.getValue(column.id);
671
+ if (typeof value === 'string') {
672
+ return filterFns.includesString;
673
+ }
674
+ if (typeof value === 'number') {
675
+ return filterFns.inNumberRange;
676
+ }
677
+ if (typeof value === 'boolean') {
678
+ return filterFns.equals;
679
+ }
680
+ if (value !== null && typeof value === 'object') {
681
+ return filterFns.equals;
682
+ }
683
+ if (Array.isArray(value)) {
684
+ return filterFns.arrIncludes;
685
+ }
686
+ return filterFns.weakEquals;
687
+ };
688
+ column.getFilterFn = () => {
689
+ var _table$options$filter, _table$options$filter2;
690
+ return isFunction(column.columnDef.filterFn) ? column.columnDef.filterFn : column.columnDef.filterFn === 'auto' ? column.getAutoFilterFn() : // @ts-ignore
691
+ (_table$options$filter = (_table$options$filter2 = table.options.filterFns) == null ? void 0 : _table$options$filter2[column.columnDef.filterFn]) != null ? _table$options$filter : filterFns[column.columnDef.filterFn];
692
+ };
693
+ column.getCanFilter = () => {
694
+ var _column$columnDef$ena, _table$options$enable, _table$options$enable2;
695
+ return ((_column$columnDef$ena = column.columnDef.enableColumnFilter) != null ? _column$columnDef$ena : true) && ((_table$options$enable = table.options.enableColumnFilters) != null ? _table$options$enable : true) && ((_table$options$enable2 = table.options.enableFilters) != null ? _table$options$enable2 : true) && !!column.accessorFn;
696
+ };
697
+ column.getIsFiltered = () => column.getFilterIndex() > -1;
698
+ column.getFilterValue = () => {
699
+ var _table$getState$colum;
700
+ return (_table$getState$colum = table.getState().columnFilters) == null || (_table$getState$colum = _table$getState$colum.find(d => d.id === column.id)) == null ? void 0 : _table$getState$colum.value;
701
+ };
702
+ column.getFilterIndex = () => {
703
+ var _table$getState$colum2, _table$getState$colum3;
704
+ return (_table$getState$colum2 = (_table$getState$colum3 = table.getState().columnFilters) == null ? void 0 : _table$getState$colum3.findIndex(d => d.id === column.id)) != null ? _table$getState$colum2 : -1;
705
+ };
706
+ column.setFilterValue = value => {
707
+ table.setColumnFilters(old => {
708
+ const filterFn = column.getFilterFn();
709
+ const previousFilter = old == null ? void 0 : old.find(d => d.id === column.id);
710
+ const newFilter = functionalUpdate(value, previousFilter ? previousFilter.value : undefined);
711
+
712
+ //
713
+ if (shouldAutoRemoveFilter(filterFn, newFilter, column)) {
714
+ var _old$filter;
715
+ return (_old$filter = old == null ? void 0 : old.filter(d => d.id !== column.id)) != null ? _old$filter : [];
716
+ }
717
+ const newFilterObj = {
718
+ id: column.id,
719
+ value: newFilter
720
+ };
721
+ if (previousFilter) {
722
+ var _old$map;
723
+ return (_old$map = old == null ? void 0 : old.map(d => {
724
+ if (d.id === column.id) {
725
+ return newFilterObj;
726
+ }
727
+ return d;
728
+ })) != null ? _old$map : [];
729
+ }
730
+ if (old != null && old.length) {
731
+ return [...old, newFilterObj];
732
+ }
733
+ return [newFilterObj];
734
+ });
735
+ };
736
+ },
737
+ createRow: (row, _table) => {
738
+ row.columnFilters = {};
739
+ row.columnFiltersMeta = {};
740
+ },
741
+ createTable: table => {
742
+ table.setColumnFilters = updater => {
743
+ const leafColumns = table.getAllLeafColumns();
744
+ const updateFn = old => {
745
+ var _functionalUpdate;
746
+ return (_functionalUpdate = functionalUpdate(updater, old)) == null ? void 0 : _functionalUpdate.filter(filter => {
747
+ const column = leafColumns.find(d => d.id === filter.id);
748
+ if (column) {
749
+ const filterFn = column.getFilterFn();
750
+ if (shouldAutoRemoveFilter(filterFn, filter.value, column)) {
751
+ return false;
752
+ }
753
+ }
754
+ return true;
755
+ });
756
+ };
757
+ table.options.onColumnFiltersChange == null || table.options.onColumnFiltersChange(updateFn);
758
+ };
759
+ table.resetColumnFilters = defaultState => {
760
+ var _table$initialState$c, _table$initialState;
761
+ table.setColumnFilters(defaultState ? [] : (_table$initialState$c = (_table$initialState = table.initialState) == null ? void 0 : _table$initialState.columnFilters) != null ? _table$initialState$c : []);
762
+ };
763
+ table.getPreFilteredRowModel = () => table.getCoreRowModel();
764
+ table.getFilteredRowModel = () => {
765
+ if (!table._getFilteredRowModel && table.options.getFilteredRowModel) {
766
+ table._getFilteredRowModel = table.options.getFilteredRowModel(table);
767
+ }
768
+ if (table.options.manualFiltering || !table._getFilteredRowModel) {
769
+ return table.getPreFilteredRowModel();
770
+ }
771
+ return table._getFilteredRowModel();
772
+ };
773
+ }
774
+ };
775
+ function shouldAutoRemoveFilter(filterFn, value, column) {
776
+ return (filterFn && filterFn.autoRemove ? filterFn.autoRemove(value, column) : false) || typeof value === 'undefined' || typeof value === 'string' && !value;
777
+ }
778
+
779
+ const sum = (columnId, _leafRows, childRows) => {
780
+ // It's faster to just add the aggregations together instead of
781
+ // process leaf nodes individually
782
+ return childRows.reduce((sum, next) => {
783
+ const nextValue = next.getValue(columnId);
784
+ return sum + (typeof nextValue === 'number' ? nextValue : 0);
785
+ }, 0);
786
+ };
787
+ const min = (columnId, _leafRows, childRows) => {
788
+ let min;
789
+ childRows.forEach(row => {
790
+ const value = row.getValue(columnId);
791
+ if (value != null && (min > value || min === undefined && value >= value)) {
792
+ min = value;
793
+ }
794
+ });
795
+ return min;
796
+ };
797
+ const max = (columnId, _leafRows, childRows) => {
798
+ let max;
799
+ childRows.forEach(row => {
800
+ const value = row.getValue(columnId);
801
+ if (value != null && (max < value || max === undefined && value >= value)) {
802
+ max = value;
803
+ }
804
+ });
805
+ return max;
806
+ };
807
+ const extent = (columnId, _leafRows, childRows) => {
808
+ let min;
809
+ let max;
810
+ childRows.forEach(row => {
811
+ const value = row.getValue(columnId);
812
+ if (value != null) {
813
+ if (min === undefined) {
814
+ if (value >= value) min = max = value;
815
+ } else {
816
+ if (min > value) min = value;
817
+ if (max < value) max = value;
818
+ }
819
+ }
820
+ });
821
+ return [min, max];
822
+ };
823
+ const mean = (columnId, leafRows) => {
824
+ let count = 0;
825
+ let sum = 0;
826
+ leafRows.forEach(row => {
827
+ let value = row.getValue(columnId);
828
+ if (value != null && (value = +value) >= value) {
829
+ ++count, sum += value;
830
+ }
831
+ });
832
+ if (count) return sum / count;
833
+ return;
834
+ };
835
+ const median = (columnId, leafRows) => {
836
+ if (!leafRows.length) {
837
+ return;
838
+ }
839
+ const values = leafRows.map(row => row.getValue(columnId));
840
+ if (!isNumberArray(values)) {
841
+ return;
842
+ }
843
+ if (values.length === 1) {
844
+ return values[0];
845
+ }
846
+ const mid = Math.floor(values.length / 2);
847
+ const nums = values.sort((a, b) => a - b);
848
+ return values.length % 2 !== 0 ? nums[mid] : (nums[mid - 1] + nums[mid]) / 2;
849
+ };
850
+ const unique = (columnId, leafRows) => {
851
+ return Array.from(new Set(leafRows.map(d => d.getValue(columnId))).values());
852
+ };
853
+ const uniqueCount = (columnId, leafRows) => {
854
+ return new Set(leafRows.map(d => d.getValue(columnId))).size;
855
+ };
856
+ const count = (_columnId, leafRows) => {
857
+ return leafRows.length;
858
+ };
859
+ const aggregationFns = {
860
+ sum,
861
+ min,
862
+ max,
863
+ extent,
864
+ mean,
865
+ median,
866
+ unique,
867
+ uniqueCount,
868
+ count
869
+ };
870
+
871
+ //
872
+
873
+ const ColumnGrouping = {
874
+ getDefaultColumnDef: () => {
875
+ return {
876
+ aggregatedCell: props => {
877
+ var _toString, _props$getValue;
878
+ return (_toString = (_props$getValue = props.getValue()) == null || _props$getValue.toString == null ? void 0 : _props$getValue.toString()) != null ? _toString : null;
879
+ },
880
+ aggregationFn: 'auto'
881
+ };
882
+ },
883
+ getInitialState: state => {
884
+ return {
885
+ grouping: [],
886
+ ...state
887
+ };
888
+ },
889
+ getDefaultOptions: table => {
890
+ return {
891
+ onGroupingChange: makeStateUpdater('grouping', table),
892
+ groupedColumnMode: 'reorder'
893
+ };
894
+ },
895
+ createColumn: (column, table) => {
896
+ column.toggleGrouping = () => {
897
+ table.setGrouping(old => {
898
+ // Find any existing grouping for this column
899
+ if (old != null && old.includes(column.id)) {
900
+ return old.filter(d => d !== column.id);
901
+ }
902
+ return [...(old != null ? old : []), column.id];
903
+ });
904
+ };
905
+ column.getCanGroup = () => {
906
+ var _column$columnDef$ena, _table$options$enable;
907
+ return ((_column$columnDef$ena = column.columnDef.enableGrouping) != null ? _column$columnDef$ena : true) && ((_table$options$enable = table.options.enableGrouping) != null ? _table$options$enable : true) && (!!column.accessorFn || !!column.columnDef.getGroupingValue);
908
+ };
909
+ column.getIsGrouped = () => {
910
+ var _table$getState$group;
911
+ return (_table$getState$group = table.getState().grouping) == null ? void 0 : _table$getState$group.includes(column.id);
912
+ };
913
+ column.getGroupedIndex = () => {
914
+ var _table$getState$group2;
915
+ return (_table$getState$group2 = table.getState().grouping) == null ? void 0 : _table$getState$group2.indexOf(column.id);
916
+ };
917
+ column.getToggleGroupingHandler = () => {
918
+ const canGroup = column.getCanGroup();
919
+ return () => {
920
+ if (!canGroup) return;
921
+ column.toggleGrouping();
922
+ };
923
+ };
924
+ column.getAutoAggregationFn = () => {
925
+ const firstRow = table.getCoreRowModel().flatRows[0];
926
+ const value = firstRow == null ? void 0 : firstRow.getValue(column.id);
927
+ if (typeof value === 'number') {
928
+ return aggregationFns.sum;
929
+ }
930
+ if (Object.prototype.toString.call(value) === '[object Date]') {
931
+ return aggregationFns.extent;
932
+ }
933
+ };
934
+ column.getAggregationFn = () => {
935
+ var _table$options$aggreg, _table$options$aggreg2;
936
+ if (!column) {
937
+ throw new Error();
938
+ }
939
+ return isFunction(column.columnDef.aggregationFn) ? column.columnDef.aggregationFn : column.columnDef.aggregationFn === 'auto' ? column.getAutoAggregationFn() : (_table$options$aggreg = (_table$options$aggreg2 = table.options.aggregationFns) == null ? void 0 : _table$options$aggreg2[column.columnDef.aggregationFn]) != null ? _table$options$aggreg : aggregationFns[column.columnDef.aggregationFn];
940
+ };
941
+ },
942
+ createTable: table => {
943
+ table.setGrouping = updater => table.options.onGroupingChange == null ? void 0 : table.options.onGroupingChange(updater);
944
+ table.resetGrouping = defaultState => {
945
+ var _table$initialState$g, _table$initialState;
946
+ table.setGrouping(defaultState ? [] : (_table$initialState$g = (_table$initialState = table.initialState) == null ? void 0 : _table$initialState.grouping) != null ? _table$initialState$g : []);
947
+ };
948
+ table.getPreGroupedRowModel = () => table.getFilteredRowModel();
949
+ table.getGroupedRowModel = () => {
950
+ if (!table._getGroupedRowModel && table.options.getGroupedRowModel) {
951
+ table._getGroupedRowModel = table.options.getGroupedRowModel(table);
952
+ }
953
+ if (table.options.manualGrouping || !table._getGroupedRowModel) {
954
+ return table.getPreGroupedRowModel();
955
+ }
956
+ return table._getGroupedRowModel();
957
+ };
958
+ },
959
+ createRow: (row, table) => {
960
+ row.getIsGrouped = () => !!row.groupingColumnId;
961
+ row.getGroupingValue = columnId => {
962
+ if (row._groupingValuesCache.hasOwnProperty(columnId)) {
963
+ return row._groupingValuesCache[columnId];
964
+ }
965
+ const column = table.getColumn(columnId);
966
+ if (!(column != null && column.columnDef.getGroupingValue)) {
967
+ return row.getValue(columnId);
968
+ }
969
+ row._groupingValuesCache[columnId] = column.columnDef.getGroupingValue(row.original);
970
+ return row._groupingValuesCache[columnId];
971
+ };
972
+ row._groupingValuesCache = {};
973
+ },
974
+ createCell: (cell, column, row, table) => {
975
+ cell.getIsGrouped = () => column.getIsGrouped() && column.id === row.groupingColumnId;
976
+ cell.getIsPlaceholder = () => !cell.getIsGrouped() && column.getIsGrouped();
977
+ cell.getIsAggregated = () => {
978
+ var _row$subRows;
979
+ return !cell.getIsGrouped() && !cell.getIsPlaceholder() && !!((_row$subRows = row.subRows) != null && _row$subRows.length);
980
+ };
981
+ }
982
+ };
983
+ function orderColumns(leafColumns, grouping, groupedColumnMode) {
984
+ if (!(grouping != null && grouping.length) || !groupedColumnMode) {
985
+ return leafColumns;
986
+ }
987
+ const nonGroupingColumns = leafColumns.filter(col => !grouping.includes(col.id));
988
+ if (groupedColumnMode === 'remove') {
989
+ return nonGroupingColumns;
990
+ }
991
+ const groupingColumns = grouping.map(g => leafColumns.find(col => col.id === g)).filter(Boolean);
992
+ return [...groupingColumns, ...nonGroupingColumns];
993
+ }
994
+
995
+ //
996
+
997
+ const ColumnOrdering = {
998
+ getInitialState: state => {
999
+ return {
1000
+ columnOrder: [],
1001
+ ...state
1002
+ };
1003
+ },
1004
+ getDefaultOptions: table => {
1005
+ return {
1006
+ onColumnOrderChange: makeStateUpdater('columnOrder', table)
1007
+ };
1008
+ },
1009
+ createColumn: (column, table) => {
1010
+ column.getIndex = memo(position => [_getVisibleLeafColumns(table, position)], columns => columns.findIndex(d => d.id === column.id), getMemoOptions(table.options, 'debugColumns'));
1011
+ column.getIsFirstColumn = position => {
1012
+ var _columns$;
1013
+ const columns = _getVisibleLeafColumns(table, position);
1014
+ return ((_columns$ = columns[0]) == null ? void 0 : _columns$.id) === column.id;
1015
+ };
1016
+ column.getIsLastColumn = position => {
1017
+ var _columns;
1018
+ const columns = _getVisibleLeafColumns(table, position);
1019
+ return ((_columns = columns[columns.length - 1]) == null ? void 0 : _columns.id) === column.id;
1020
+ };
1021
+ },
1022
+ createTable: table => {
1023
+ table.setColumnOrder = updater => table.options.onColumnOrderChange == null ? void 0 : table.options.onColumnOrderChange(updater);
1024
+ table.resetColumnOrder = defaultState => {
1025
+ var _table$initialState$c;
1026
+ table.setColumnOrder(defaultState ? [] : (_table$initialState$c = table.initialState.columnOrder) != null ? _table$initialState$c : []);
1027
+ };
1028
+ table._getOrderColumnsFn = memo(() => [table.getState().columnOrder, table.getState().grouping, table.options.groupedColumnMode], (columnOrder, grouping, groupedColumnMode) => columns => {
1029
+ // Sort grouped columns to the start of the column list
1030
+ // before the headers are built
1031
+ let orderedColumns = [];
1032
+
1033
+ // If there is no order, return the normal columns
1034
+ if (!(columnOrder != null && columnOrder.length)) {
1035
+ orderedColumns = columns;
1036
+ } else {
1037
+ const columnOrderCopy = [...columnOrder];
1038
+
1039
+ // If there is an order, make a copy of the columns
1040
+ const columnsCopy = [...columns];
1041
+
1042
+ // And make a new ordered array of the columns
1043
+
1044
+ // Loop over the columns and place them in order into the new array
1045
+ while (columnsCopy.length && columnOrderCopy.length) {
1046
+ const targetColumnId = columnOrderCopy.shift();
1047
+ const foundIndex = columnsCopy.findIndex(d => d.id === targetColumnId);
1048
+ if (foundIndex > -1) {
1049
+ orderedColumns.push(columnsCopy.splice(foundIndex, 1)[0]);
1050
+ }
1051
+ }
1052
+
1053
+ // If there are any columns left, add them to the end
1054
+ orderedColumns = [...orderedColumns, ...columnsCopy];
1055
+ }
1056
+ return orderColumns(orderedColumns, grouping, groupedColumnMode);
1057
+ }, getMemoOptions(table.options, 'debugTable'));
1058
+ }
1059
+ };
1060
+
1061
+ //
1062
+
1063
+ const getDefaultColumnPinningState = () => ({
1064
+ left: [],
1065
+ right: []
1066
+ });
1067
+ const ColumnPinning = {
1068
+ getInitialState: state => {
1069
+ return {
1070
+ columnPinning: getDefaultColumnPinningState(),
1071
+ ...state
1072
+ };
1073
+ },
1074
+ getDefaultOptions: table => {
1075
+ return {
1076
+ onColumnPinningChange: makeStateUpdater('columnPinning', table)
1077
+ };
1078
+ },
1079
+ createColumn: (column, table) => {
1080
+ column.pin = position => {
1081
+ const columnIds = column.getLeafColumns().map(d => d.id).filter(Boolean);
1082
+ table.setColumnPinning(old => {
1083
+ var _old$left3, _old$right3;
1084
+ if (position === 'right') {
1085
+ var _old$left, _old$right;
1086
+ return {
1087
+ left: ((_old$left = old == null ? void 0 : old.left) != null ? _old$left : []).filter(d => !(columnIds != null && columnIds.includes(d))),
1088
+ right: [...((_old$right = old == null ? void 0 : old.right) != null ? _old$right : []).filter(d => !(columnIds != null && columnIds.includes(d))), ...columnIds]
1089
+ };
1090
+ }
1091
+ if (position === 'left') {
1092
+ var _old$left2, _old$right2;
1093
+ return {
1094
+ left: [...((_old$left2 = old == null ? void 0 : old.left) != null ? _old$left2 : []).filter(d => !(columnIds != null && columnIds.includes(d))), ...columnIds],
1095
+ right: ((_old$right2 = old == null ? void 0 : old.right) != null ? _old$right2 : []).filter(d => !(columnIds != null && columnIds.includes(d)))
1096
+ };
1097
+ }
1098
+ return {
1099
+ left: ((_old$left3 = old == null ? void 0 : old.left) != null ? _old$left3 : []).filter(d => !(columnIds != null && columnIds.includes(d))),
1100
+ right: ((_old$right3 = old == null ? void 0 : old.right) != null ? _old$right3 : []).filter(d => !(columnIds != null && columnIds.includes(d)))
1101
+ };
1102
+ });
1103
+ };
1104
+ column.getCanPin = () => {
1105
+ const leafColumns = column.getLeafColumns();
1106
+ return leafColumns.some(d => {
1107
+ var _d$columnDef$enablePi, _ref, _table$options$enable;
1108
+ return ((_d$columnDef$enablePi = d.columnDef.enablePinning) != null ? _d$columnDef$enablePi : true) && ((_ref = (_table$options$enable = table.options.enableColumnPinning) != null ? _table$options$enable : table.options.enablePinning) != null ? _ref : true);
1109
+ });
1110
+ };
1111
+ column.getIsPinned = () => {
1112
+ const leafColumnIds = column.getLeafColumns().map(d => d.id);
1113
+ const {
1114
+ left,
1115
+ right
1116
+ } = table.getState().columnPinning;
1117
+ const isLeft = leafColumnIds.some(d => left == null ? void 0 : left.includes(d));
1118
+ const isRight = leafColumnIds.some(d => right == null ? void 0 : right.includes(d));
1119
+ return isLeft ? 'left' : isRight ? 'right' : false;
1120
+ };
1121
+ column.getPinnedIndex = () => {
1122
+ var _table$getState$colum, _table$getState$colum2;
1123
+ const position = column.getIsPinned();
1124
+ return position ? (_table$getState$colum = (_table$getState$colum2 = table.getState().columnPinning) == null || (_table$getState$colum2 = _table$getState$colum2[position]) == null ? void 0 : _table$getState$colum2.indexOf(column.id)) != null ? _table$getState$colum : -1 : 0;
1125
+ };
1126
+ },
1127
+ createRow: (row, table) => {
1128
+ row.getCenterVisibleCells = memo(() => [row._getAllVisibleCells(), table.getState().columnPinning.left, table.getState().columnPinning.right], (allCells, left, right) => {
1129
+ const leftAndRight = [...(left != null ? left : []), ...(right != null ? right : [])];
1130
+ return allCells.filter(d => !leftAndRight.includes(d.column.id));
1131
+ }, getMemoOptions(table.options, 'debugRows'));
1132
+ row.getLeftVisibleCells = memo(() => [row._getAllVisibleCells(), table.getState().columnPinning.left], (allCells, left) => {
1133
+ const cells = (left != null ? left : []).map(columnId => allCells.find(cell => cell.column.id === columnId)).filter(Boolean).map(d => ({
1134
+ ...d,
1135
+ position: 'left'
1136
+ }));
1137
+ return cells;
1138
+ }, getMemoOptions(table.options, 'debugRows'));
1139
+ row.getRightVisibleCells = memo(() => [row._getAllVisibleCells(), table.getState().columnPinning.right], (allCells, right) => {
1140
+ const cells = (right != null ? right : []).map(columnId => allCells.find(cell => cell.column.id === columnId)).filter(Boolean).map(d => ({
1141
+ ...d,
1142
+ position: 'right'
1143
+ }));
1144
+ return cells;
1145
+ }, getMemoOptions(table.options, 'debugRows'));
1146
+ },
1147
+ createTable: table => {
1148
+ table.setColumnPinning = updater => table.options.onColumnPinningChange == null ? void 0 : table.options.onColumnPinningChange(updater);
1149
+ table.resetColumnPinning = defaultState => {
1150
+ var _table$initialState$c, _table$initialState;
1151
+ return table.setColumnPinning(defaultState ? getDefaultColumnPinningState() : (_table$initialState$c = (_table$initialState = table.initialState) == null ? void 0 : _table$initialState.columnPinning) != null ? _table$initialState$c : getDefaultColumnPinningState());
1152
+ };
1153
+ table.getIsSomeColumnsPinned = position => {
1154
+ var _pinningState$positio;
1155
+ const pinningState = table.getState().columnPinning;
1156
+ if (!position) {
1157
+ var _pinningState$left, _pinningState$right;
1158
+ return Boolean(((_pinningState$left = pinningState.left) == null ? void 0 : _pinningState$left.length) || ((_pinningState$right = pinningState.right) == null ? void 0 : _pinningState$right.length));
1159
+ }
1160
+ return Boolean((_pinningState$positio = pinningState[position]) == null ? void 0 : _pinningState$positio.length);
1161
+ };
1162
+ table.getLeftLeafColumns = memo(() => [table.getAllLeafColumns(), table.getState().columnPinning.left], (allColumns, left) => {
1163
+ return (left != null ? left : []).map(columnId => allColumns.find(column => column.id === columnId)).filter(Boolean);
1164
+ }, getMemoOptions(table.options, 'debugColumns'));
1165
+ table.getRightLeafColumns = memo(() => [table.getAllLeafColumns(), table.getState().columnPinning.right], (allColumns, right) => {
1166
+ return (right != null ? right : []).map(columnId => allColumns.find(column => column.id === columnId)).filter(Boolean);
1167
+ }, getMemoOptions(table.options, 'debugColumns'));
1168
+ table.getCenterLeafColumns = memo(() => [table.getAllLeafColumns(), table.getState().columnPinning.left, table.getState().columnPinning.right], (allColumns, left, right) => {
1169
+ const leftAndRight = [...(left != null ? left : []), ...(right != null ? right : [])];
1170
+ return allColumns.filter(d => !leftAndRight.includes(d.id));
1171
+ }, getMemoOptions(table.options, 'debugColumns'));
1172
+ }
1173
+ };
1174
+
1175
+ function safelyAccessDocument(_document) {
1176
+ return _document || (typeof document !== 'undefined' ? document : null);
1177
+ }
1178
+
1179
+ //
1180
+
1181
+ //
1182
+
1183
+ const defaultColumnSizing = {
1184
+ size: 150,
1185
+ minSize: 20,
1186
+ maxSize: Number.MAX_SAFE_INTEGER
1187
+ };
1188
+ const getDefaultColumnSizingInfoState = () => ({
1189
+ startOffset: null,
1190
+ startSize: null,
1191
+ deltaOffset: null,
1192
+ deltaPercentage: null,
1193
+ isResizingColumn: false,
1194
+ columnSizingStart: []
1195
+ });
1196
+ const ColumnSizing = {
1197
+ getDefaultColumnDef: () => {
1198
+ return defaultColumnSizing;
1199
+ },
1200
+ getInitialState: state => {
1201
+ return {
1202
+ columnSizing: {},
1203
+ columnSizingInfo: getDefaultColumnSizingInfoState(),
1204
+ ...state
1205
+ };
1206
+ },
1207
+ getDefaultOptions: table => {
1208
+ return {
1209
+ columnResizeMode: 'onEnd',
1210
+ columnResizeDirection: 'ltr',
1211
+ onColumnSizingChange: makeStateUpdater('columnSizing', table),
1212
+ onColumnSizingInfoChange: makeStateUpdater('columnSizingInfo', table)
1213
+ };
1214
+ },
1215
+ createColumn: (column, table) => {
1216
+ column.getSize = () => {
1217
+ var _column$columnDef$min, _ref, _column$columnDef$max;
1218
+ const columnSize = table.getState().columnSizing[column.id];
1219
+ return Math.min(Math.max((_column$columnDef$min = column.columnDef.minSize) != null ? _column$columnDef$min : defaultColumnSizing.minSize, (_ref = columnSize != null ? columnSize : column.columnDef.size) != null ? _ref : defaultColumnSizing.size), (_column$columnDef$max = column.columnDef.maxSize) != null ? _column$columnDef$max : defaultColumnSizing.maxSize);
1220
+ };
1221
+ column.getStart = memo(position => [position, _getVisibleLeafColumns(table, position), table.getState().columnSizing], (position, columns) => columns.slice(0, column.getIndex(position)).reduce((sum, column) => sum + column.getSize(), 0), getMemoOptions(table.options, 'debugColumns'));
1222
+ column.getAfter = memo(position => [position, _getVisibleLeafColumns(table, position), table.getState().columnSizing], (position, columns) => columns.slice(column.getIndex(position) + 1).reduce((sum, column) => sum + column.getSize(), 0), getMemoOptions(table.options, 'debugColumns'));
1223
+ column.resetSize = () => {
1224
+ table.setColumnSizing(_ref2 => {
1225
+ let {
1226
+ [column.id]: _,
1227
+ ...rest
1228
+ } = _ref2;
1229
+ return rest;
1230
+ });
1231
+ };
1232
+ column.getCanResize = () => {
1233
+ var _column$columnDef$ena, _table$options$enable;
1234
+ return ((_column$columnDef$ena = column.columnDef.enableResizing) != null ? _column$columnDef$ena : true) && ((_table$options$enable = table.options.enableColumnResizing) != null ? _table$options$enable : true);
1235
+ };
1236
+ column.getIsResizing = () => {
1237
+ return table.getState().columnSizingInfo.isResizingColumn === column.id;
1238
+ };
1239
+ },
1240
+ createHeader: (header, table) => {
1241
+ header.getSize = () => {
1242
+ let sum = 0;
1243
+ const recurse = header => {
1244
+ if (header.subHeaders.length) {
1245
+ header.subHeaders.forEach(recurse);
1246
+ } else {
1247
+ var _header$column$getSiz;
1248
+ sum += (_header$column$getSiz = header.column.getSize()) != null ? _header$column$getSiz : 0;
1249
+ }
1250
+ };
1251
+ recurse(header);
1252
+ return sum;
1253
+ };
1254
+ header.getStart = () => {
1255
+ if (header.index > 0) {
1256
+ const prevSiblingHeader = header.headerGroup.headers[header.index - 1];
1257
+ return prevSiblingHeader.getStart() + prevSiblingHeader.getSize();
1258
+ }
1259
+ return 0;
1260
+ };
1261
+ header.getResizeHandler = _contextDocument => {
1262
+ const column = table.getColumn(header.column.id);
1263
+ const canResize = column == null ? void 0 : column.getCanResize();
1264
+ return e => {
1265
+ if (!column || !canResize) {
1266
+ return;
1267
+ }
1268
+ e.persist == null || e.persist();
1269
+ if (isTouchStartEvent(e)) {
1270
+ // lets not respond to multiple touches (e.g. 2 or 3 fingers)
1271
+ if (e.touches && e.touches.length > 1) {
1272
+ return;
1273
+ }
1274
+ }
1275
+ const startSize = header.getSize();
1276
+ const columnSizingStart = header ? header.getLeafHeaders().map(d => [d.column.id, d.column.getSize()]) : [[column.id, column.getSize()]];
1277
+ const clientX = isTouchStartEvent(e) ? Math.round(e.touches[0].clientX) : e.clientX;
1278
+ const newColumnSizing = {};
1279
+ const updateOffset = (eventType, clientXPos) => {
1280
+ if (typeof clientXPos !== 'number') {
1281
+ return;
1282
+ }
1283
+ table.setColumnSizingInfo(old => {
1284
+ var _old$startOffset, _old$startSize;
1285
+ const deltaDirection = table.options.columnResizeDirection === 'rtl' ? -1 : 1;
1286
+ const deltaOffset = (clientXPos - ((_old$startOffset = old == null ? void 0 : old.startOffset) != null ? _old$startOffset : 0)) * deltaDirection;
1287
+ const deltaPercentage = Math.max(deltaOffset / ((_old$startSize = old == null ? void 0 : old.startSize) != null ? _old$startSize : 0), -0.999999);
1288
+ old.columnSizingStart.forEach(_ref3 => {
1289
+ let [columnId, headerSize] = _ref3;
1290
+ newColumnSizing[columnId] = Math.round(Math.max(headerSize + headerSize * deltaPercentage, 0) * 100) / 100;
1291
+ });
1292
+ return {
1293
+ ...old,
1294
+ deltaOffset,
1295
+ deltaPercentage
1296
+ };
1297
+ });
1298
+ if (table.options.columnResizeMode === 'onChange' || eventType === 'end') {
1299
+ table.setColumnSizing(old => ({
1300
+ ...old,
1301
+ ...newColumnSizing
1302
+ }));
1303
+ }
1304
+ };
1305
+ const onMove = clientXPos => updateOffset('move', clientXPos);
1306
+ const onEnd = clientXPos => {
1307
+ updateOffset('end', clientXPos);
1308
+ table.setColumnSizingInfo(old => ({
1309
+ ...old,
1310
+ isResizingColumn: false,
1311
+ startOffset: null,
1312
+ startSize: null,
1313
+ deltaOffset: null,
1314
+ deltaPercentage: null,
1315
+ columnSizingStart: []
1316
+ }));
1317
+ };
1318
+ const contextDocument = safelyAccessDocument(_contextDocument);
1319
+ const mouseEvents = {
1320
+ moveHandler: e => onMove(e.clientX),
1321
+ upHandler: e => {
1322
+ contextDocument == null || contextDocument.removeEventListener('mousemove', mouseEvents.moveHandler);
1323
+ contextDocument == null || contextDocument.removeEventListener('mouseup', mouseEvents.upHandler);
1324
+ onEnd(e.clientX);
1325
+ }
1326
+ };
1327
+ const touchEvents = {
1328
+ moveHandler: e => {
1329
+ if (e.cancelable) {
1330
+ e.preventDefault();
1331
+ e.stopPropagation();
1332
+ }
1333
+ onMove(e.touches[0].clientX);
1334
+ return false;
1335
+ },
1336
+ upHandler: e => {
1337
+ var _e$touches$;
1338
+ contextDocument == null || contextDocument.removeEventListener('touchmove', touchEvents.moveHandler);
1339
+ contextDocument == null || contextDocument.removeEventListener('touchend', touchEvents.upHandler);
1340
+ if (e.cancelable) {
1341
+ e.preventDefault();
1342
+ e.stopPropagation();
1343
+ }
1344
+ onEnd((_e$touches$ = e.touches[0]) == null ? void 0 : _e$touches$.clientX);
1345
+ }
1346
+ };
1347
+ const passiveIfSupported = passiveEventSupported() ? {
1348
+ passive: false
1349
+ } : false;
1350
+ if (isTouchStartEvent(e)) {
1351
+ contextDocument == null || contextDocument.addEventListener('touchmove', touchEvents.moveHandler, passiveIfSupported);
1352
+ contextDocument == null || contextDocument.addEventListener('touchend', touchEvents.upHandler, passiveIfSupported);
1353
+ } else {
1354
+ contextDocument == null || contextDocument.addEventListener('mousemove', mouseEvents.moveHandler, passiveIfSupported);
1355
+ contextDocument == null || contextDocument.addEventListener('mouseup', mouseEvents.upHandler, passiveIfSupported);
1356
+ }
1357
+ table.setColumnSizingInfo(old => ({
1358
+ ...old,
1359
+ startOffset: clientX,
1360
+ startSize,
1361
+ deltaOffset: 0,
1362
+ deltaPercentage: 0,
1363
+ columnSizingStart,
1364
+ isResizingColumn: column.id
1365
+ }));
1366
+ };
1367
+ };
1368
+ },
1369
+ createTable: table => {
1370
+ table.setColumnSizing = updater => table.options.onColumnSizingChange == null ? void 0 : table.options.onColumnSizingChange(updater);
1371
+ table.setColumnSizingInfo = updater => table.options.onColumnSizingInfoChange == null ? void 0 : table.options.onColumnSizingInfoChange(updater);
1372
+ table.resetColumnSizing = defaultState => {
1373
+ var _table$initialState$c;
1374
+ table.setColumnSizing(defaultState ? {} : (_table$initialState$c = table.initialState.columnSizing) != null ? _table$initialState$c : {});
1375
+ };
1376
+ table.resetHeaderSizeInfo = defaultState => {
1377
+ var _table$initialState$c2;
1378
+ table.setColumnSizingInfo(defaultState ? getDefaultColumnSizingInfoState() : (_table$initialState$c2 = table.initialState.columnSizingInfo) != null ? _table$initialState$c2 : getDefaultColumnSizingInfoState());
1379
+ };
1380
+ table.getTotalSize = () => {
1381
+ var _table$getHeaderGroup, _table$getHeaderGroup2;
1382
+ return (_table$getHeaderGroup = (_table$getHeaderGroup2 = table.getHeaderGroups()[0]) == null ? void 0 : _table$getHeaderGroup2.headers.reduce((sum, header) => {
1383
+ return sum + header.getSize();
1384
+ }, 0)) != null ? _table$getHeaderGroup : 0;
1385
+ };
1386
+ table.getLeftTotalSize = () => {
1387
+ var _table$getLeftHeaderG, _table$getLeftHeaderG2;
1388
+ return (_table$getLeftHeaderG = (_table$getLeftHeaderG2 = table.getLeftHeaderGroups()[0]) == null ? void 0 : _table$getLeftHeaderG2.headers.reduce((sum, header) => {
1389
+ return sum + header.getSize();
1390
+ }, 0)) != null ? _table$getLeftHeaderG : 0;
1391
+ };
1392
+ table.getCenterTotalSize = () => {
1393
+ var _table$getCenterHeade, _table$getCenterHeade2;
1394
+ return (_table$getCenterHeade = (_table$getCenterHeade2 = table.getCenterHeaderGroups()[0]) == null ? void 0 : _table$getCenterHeade2.headers.reduce((sum, header) => {
1395
+ return sum + header.getSize();
1396
+ }, 0)) != null ? _table$getCenterHeade : 0;
1397
+ };
1398
+ table.getRightTotalSize = () => {
1399
+ var _table$getRightHeader, _table$getRightHeader2;
1400
+ return (_table$getRightHeader = (_table$getRightHeader2 = table.getRightHeaderGroups()[0]) == null ? void 0 : _table$getRightHeader2.headers.reduce((sum, header) => {
1401
+ return sum + header.getSize();
1402
+ }, 0)) != null ? _table$getRightHeader : 0;
1403
+ };
1404
+ }
1405
+ };
1406
+ let passiveSupported = null;
1407
+ function passiveEventSupported() {
1408
+ if (typeof passiveSupported === 'boolean') return passiveSupported;
1409
+ let supported = false;
1410
+ try {
1411
+ const options = {
1412
+ get passive() {
1413
+ supported = true;
1414
+ return false;
1415
+ }
1416
+ };
1417
+ const noop = () => {};
1418
+ window.addEventListener('test', noop, options);
1419
+ window.removeEventListener('test', noop);
1420
+ } catch (err) {
1421
+ supported = false;
1422
+ }
1423
+ passiveSupported = supported;
1424
+ return passiveSupported;
1425
+ }
1426
+ function isTouchStartEvent(e) {
1427
+ return e.type === 'touchstart';
1428
+ }
1429
+
1430
+ //
1431
+
1432
+ const ColumnVisibility = {
1433
+ getInitialState: state => {
1434
+ return {
1435
+ columnVisibility: {},
1436
+ ...state
1437
+ };
1438
+ },
1439
+ getDefaultOptions: table => {
1440
+ return {
1441
+ onColumnVisibilityChange: makeStateUpdater('columnVisibility', table)
1442
+ };
1443
+ },
1444
+ createColumn: (column, table) => {
1445
+ column.toggleVisibility = value => {
1446
+ if (column.getCanHide()) {
1447
+ table.setColumnVisibility(old => ({
1448
+ ...old,
1449
+ [column.id]: value != null ? value : !column.getIsVisible()
1450
+ }));
1451
+ }
1452
+ };
1453
+ column.getIsVisible = () => {
1454
+ var _ref, _table$getState$colum;
1455
+ const childColumns = column.columns;
1456
+ return (_ref = childColumns.length ? childColumns.some(c => c.getIsVisible()) : (_table$getState$colum = table.getState().columnVisibility) == null ? void 0 : _table$getState$colum[column.id]) != null ? _ref : true;
1457
+ };
1458
+ column.getCanHide = () => {
1459
+ var _column$columnDef$ena, _table$options$enable;
1460
+ return ((_column$columnDef$ena = column.columnDef.enableHiding) != null ? _column$columnDef$ena : true) && ((_table$options$enable = table.options.enableHiding) != null ? _table$options$enable : true);
1461
+ };
1462
+ column.getToggleVisibilityHandler = () => {
1463
+ return e => {
1464
+ column.toggleVisibility == null || column.toggleVisibility(e.target.checked);
1465
+ };
1466
+ };
1467
+ },
1468
+ createRow: (row, table) => {
1469
+ row._getAllVisibleCells = memo(() => [row.getAllCells(), table.getState().columnVisibility], cells => {
1470
+ return cells.filter(cell => cell.column.getIsVisible());
1471
+ }, getMemoOptions(table.options, 'debugRows'));
1472
+ row.getVisibleCells = memo(() => [row.getLeftVisibleCells(), row.getCenterVisibleCells(), row.getRightVisibleCells()], (left, center, right) => [...left, ...center, ...right], getMemoOptions(table.options, 'debugRows'));
1473
+ },
1474
+ createTable: table => {
1475
+ const makeVisibleColumnsMethod = (key, getColumns) => {
1476
+ return memo(() => [getColumns(), getColumns().filter(d => d.getIsVisible()).map(d => d.id).join('_')], columns => {
1477
+ return columns.filter(d => d.getIsVisible == null ? void 0 : d.getIsVisible());
1478
+ }, getMemoOptions(table.options, 'debugColumns'));
1479
+ };
1480
+ table.getVisibleFlatColumns = makeVisibleColumnsMethod('getVisibleFlatColumns', () => table.getAllFlatColumns());
1481
+ table.getVisibleLeafColumns = makeVisibleColumnsMethod('getVisibleLeafColumns', () => table.getAllLeafColumns());
1482
+ table.getLeftVisibleLeafColumns = makeVisibleColumnsMethod('getLeftVisibleLeafColumns', () => table.getLeftLeafColumns());
1483
+ table.getRightVisibleLeafColumns = makeVisibleColumnsMethod('getRightVisibleLeafColumns', () => table.getRightLeafColumns());
1484
+ table.getCenterVisibleLeafColumns = makeVisibleColumnsMethod('getCenterVisibleLeafColumns', () => table.getCenterLeafColumns());
1485
+ table.setColumnVisibility = updater => table.options.onColumnVisibilityChange == null ? void 0 : table.options.onColumnVisibilityChange(updater);
1486
+ table.resetColumnVisibility = defaultState => {
1487
+ var _table$initialState$c;
1488
+ table.setColumnVisibility(defaultState ? {} : (_table$initialState$c = table.initialState.columnVisibility) != null ? _table$initialState$c : {});
1489
+ };
1490
+ table.toggleAllColumnsVisible = value => {
1491
+ var _value;
1492
+ value = (_value = value) != null ? _value : !table.getIsAllColumnsVisible();
1493
+ table.setColumnVisibility(table.getAllLeafColumns().reduce((obj, column) => ({
1494
+ ...obj,
1495
+ [column.id]: !value ? !(column.getCanHide != null && column.getCanHide()) : value
1496
+ }), {}));
1497
+ };
1498
+ table.getIsAllColumnsVisible = () => !table.getAllLeafColumns().some(column => !(column.getIsVisible != null && column.getIsVisible()));
1499
+ table.getIsSomeColumnsVisible = () => table.getAllLeafColumns().some(column => column.getIsVisible == null ? void 0 : column.getIsVisible());
1500
+ table.getToggleAllColumnsVisibilityHandler = () => {
1501
+ return e => {
1502
+ var _target;
1503
+ table.toggleAllColumnsVisible((_target = e.target) == null ? void 0 : _target.checked);
1504
+ };
1505
+ };
1506
+ }
1507
+ };
1508
+ function _getVisibleLeafColumns(table, position) {
1509
+ return !position ? table.getVisibleLeafColumns() : position === 'center' ? table.getCenterVisibleLeafColumns() : position === 'left' ? table.getLeftVisibleLeafColumns() : table.getRightVisibleLeafColumns();
1510
+ }
1511
+
1512
+ //
1513
+
1514
+ const GlobalFaceting = {
1515
+ createTable: table => {
1516
+ table._getGlobalFacetedRowModel = table.options.getFacetedRowModel && table.options.getFacetedRowModel(table, '__global__');
1517
+ table.getGlobalFacetedRowModel = () => {
1518
+ if (table.options.manualFiltering || !table._getGlobalFacetedRowModel) {
1519
+ return table.getPreFilteredRowModel();
1520
+ }
1521
+ return table._getGlobalFacetedRowModel();
1522
+ };
1523
+ table._getGlobalFacetedUniqueValues = table.options.getFacetedUniqueValues && table.options.getFacetedUniqueValues(table, '__global__');
1524
+ table.getGlobalFacetedUniqueValues = () => {
1525
+ if (!table._getGlobalFacetedUniqueValues) {
1526
+ return new Map();
1527
+ }
1528
+ return table._getGlobalFacetedUniqueValues();
1529
+ };
1530
+ table._getGlobalFacetedMinMaxValues = table.options.getFacetedMinMaxValues && table.options.getFacetedMinMaxValues(table, '__global__');
1531
+ table.getGlobalFacetedMinMaxValues = () => {
1532
+ if (!table._getGlobalFacetedMinMaxValues) {
1533
+ return;
1534
+ }
1535
+ return table._getGlobalFacetedMinMaxValues();
1536
+ };
1537
+ }
1538
+ };
1539
+
1540
+ //
1541
+
1542
+ const GlobalFiltering = {
1543
+ getInitialState: state => {
1544
+ return {
1545
+ globalFilter: undefined,
1546
+ ...state
1547
+ };
1548
+ },
1549
+ getDefaultOptions: table => {
1550
+ return {
1551
+ onGlobalFilterChange: makeStateUpdater('globalFilter', table),
1552
+ globalFilterFn: 'auto',
1553
+ getColumnCanGlobalFilter: column => {
1554
+ var _table$getCoreRowMode;
1555
+ const value = (_table$getCoreRowMode = table.getCoreRowModel().flatRows[0]) == null || (_table$getCoreRowMode = _table$getCoreRowMode._getAllCellsByColumnId()[column.id]) == null ? void 0 : _table$getCoreRowMode.getValue();
1556
+ return typeof value === 'string' || typeof value === 'number';
1557
+ }
1558
+ };
1559
+ },
1560
+ createColumn: (column, table) => {
1561
+ column.getCanGlobalFilter = () => {
1562
+ var _column$columnDef$ena, _table$options$enable, _table$options$enable2, _table$options$getCol;
1563
+ return ((_column$columnDef$ena = column.columnDef.enableGlobalFilter) != null ? _column$columnDef$ena : true) && ((_table$options$enable = table.options.enableGlobalFilter) != null ? _table$options$enable : true) && ((_table$options$enable2 = table.options.enableFilters) != null ? _table$options$enable2 : true) && ((_table$options$getCol = table.options.getColumnCanGlobalFilter == null ? void 0 : table.options.getColumnCanGlobalFilter(column)) != null ? _table$options$getCol : true) && !!column.accessorFn;
1564
+ };
1565
+ },
1566
+ createTable: table => {
1567
+ table.getGlobalAutoFilterFn = () => {
1568
+ return filterFns.includesString;
1569
+ };
1570
+ table.getGlobalFilterFn = () => {
1571
+ var _table$options$filter, _table$options$filter2;
1572
+ const {
1573
+ globalFilterFn: globalFilterFn
1574
+ } = table.options;
1575
+ return isFunction(globalFilterFn) ? globalFilterFn : globalFilterFn === 'auto' ? table.getGlobalAutoFilterFn() : (_table$options$filter = (_table$options$filter2 = table.options.filterFns) == null ? void 0 : _table$options$filter2[globalFilterFn]) != null ? _table$options$filter : filterFns[globalFilterFn];
1576
+ };
1577
+ table.setGlobalFilter = updater => {
1578
+ table.options.onGlobalFilterChange == null || table.options.onGlobalFilterChange(updater);
1579
+ };
1580
+ table.resetGlobalFilter = defaultState => {
1581
+ table.setGlobalFilter(defaultState ? undefined : table.initialState.globalFilter);
1582
+ };
1583
+ }
1584
+ };
1585
+
1586
+ //
1587
+
1588
+ const RowExpanding = {
1589
+ getInitialState: state => {
1590
+ return {
1591
+ expanded: {},
1592
+ ...state
1593
+ };
1594
+ },
1595
+ getDefaultOptions: table => {
1596
+ return {
1597
+ onExpandedChange: makeStateUpdater('expanded', table),
1598
+ paginateExpandedRows: true
1599
+ };
1600
+ },
1601
+ createTable: table => {
1602
+ let registered = false;
1603
+ let queued = false;
1604
+ table._autoResetExpanded = () => {
1605
+ var _ref, _table$options$autoRe;
1606
+ if (!registered) {
1607
+ table._queue(() => {
1608
+ registered = true;
1609
+ });
1610
+ return;
1611
+ }
1612
+ if ((_ref = (_table$options$autoRe = table.options.autoResetAll) != null ? _table$options$autoRe : table.options.autoResetExpanded) != null ? _ref : !table.options.manualExpanding) {
1613
+ if (queued) return;
1614
+ queued = true;
1615
+ table._queue(() => {
1616
+ table.resetExpanded();
1617
+ queued = false;
1618
+ });
1619
+ }
1620
+ };
1621
+ table.setExpanded = updater => table.options.onExpandedChange == null ? void 0 : table.options.onExpandedChange(updater);
1622
+ table.toggleAllRowsExpanded = expanded => {
1623
+ if (expanded != null ? expanded : !table.getIsAllRowsExpanded()) {
1624
+ table.setExpanded(true);
1625
+ } else {
1626
+ table.setExpanded({});
1627
+ }
1628
+ };
1629
+ table.resetExpanded = defaultState => {
1630
+ var _table$initialState$e, _table$initialState;
1631
+ table.setExpanded(defaultState ? {} : (_table$initialState$e = (_table$initialState = table.initialState) == null ? void 0 : _table$initialState.expanded) != null ? _table$initialState$e : {});
1632
+ };
1633
+ table.getCanSomeRowsExpand = () => {
1634
+ return table.getPrePaginationRowModel().flatRows.some(row => row.getCanExpand());
1635
+ };
1636
+ table.getToggleAllRowsExpandedHandler = () => {
1637
+ return e => {
1638
+ e.persist == null || e.persist();
1639
+ table.toggleAllRowsExpanded();
1640
+ };
1641
+ };
1642
+ table.getIsSomeRowsExpanded = () => {
1643
+ const expanded = table.getState().expanded;
1644
+ return expanded === true || Object.values(expanded).some(Boolean);
1645
+ };
1646
+ table.getIsAllRowsExpanded = () => {
1647
+ const expanded = table.getState().expanded;
1648
+
1649
+ // If expanded is true, save some cycles and return true
1650
+ if (typeof expanded === 'boolean') {
1651
+ return expanded === true;
1652
+ }
1653
+ if (!Object.keys(expanded).length) {
1654
+ return false;
1655
+ }
1656
+
1657
+ // If any row is not expanded, return false
1658
+ if (table.getRowModel().flatRows.some(row => !row.getIsExpanded())) {
1659
+ return false;
1660
+ }
1661
+
1662
+ // They must all be expanded :shrug:
1663
+ return true;
1664
+ };
1665
+ table.getExpandedDepth = () => {
1666
+ let maxDepth = 0;
1667
+ const rowIds = table.getState().expanded === true ? Object.keys(table.getRowModel().rowsById) : Object.keys(table.getState().expanded);
1668
+ rowIds.forEach(id => {
1669
+ const splitId = id.split('.');
1670
+ maxDepth = Math.max(maxDepth, splitId.length);
1671
+ });
1672
+ return maxDepth;
1673
+ };
1674
+ table.getPreExpandedRowModel = () => table.getSortedRowModel();
1675
+ table.getExpandedRowModel = () => {
1676
+ if (!table._getExpandedRowModel && table.options.getExpandedRowModel) {
1677
+ table._getExpandedRowModel = table.options.getExpandedRowModel(table);
1678
+ }
1679
+ if (table.options.manualExpanding || !table._getExpandedRowModel) {
1680
+ return table.getPreExpandedRowModel();
1681
+ }
1682
+ return table._getExpandedRowModel();
1683
+ };
1684
+ },
1685
+ createRow: (row, table) => {
1686
+ row.toggleExpanded = expanded => {
1687
+ table.setExpanded(old => {
1688
+ var _expanded;
1689
+ const exists = old === true ? true : !!(old != null && old[row.id]);
1690
+ let oldExpanded = {};
1691
+ if (old === true) {
1692
+ Object.keys(table.getRowModel().rowsById).forEach(rowId => {
1693
+ oldExpanded[rowId] = true;
1694
+ });
1695
+ } else {
1696
+ oldExpanded = old;
1697
+ }
1698
+ expanded = (_expanded = expanded) != null ? _expanded : !exists;
1699
+ if (!exists && expanded) {
1700
+ return {
1701
+ ...oldExpanded,
1702
+ [row.id]: true
1703
+ };
1704
+ }
1705
+ if (exists && !expanded) {
1706
+ const {
1707
+ [row.id]: _,
1708
+ ...rest
1709
+ } = oldExpanded;
1710
+ return rest;
1711
+ }
1712
+ return old;
1713
+ });
1714
+ };
1715
+ row.getIsExpanded = () => {
1716
+ var _table$options$getIsR;
1717
+ const expanded = table.getState().expanded;
1718
+ return !!((_table$options$getIsR = table.options.getIsRowExpanded == null ? void 0 : table.options.getIsRowExpanded(row)) != null ? _table$options$getIsR : expanded === true || (expanded == null ? void 0 : expanded[row.id]));
1719
+ };
1720
+ row.getCanExpand = () => {
1721
+ var _table$options$getRow, _table$options$enable, _row$subRows;
1722
+ return (_table$options$getRow = table.options.getRowCanExpand == null ? void 0 : table.options.getRowCanExpand(row)) != null ? _table$options$getRow : ((_table$options$enable = table.options.enableExpanding) != null ? _table$options$enable : true) && !!((_row$subRows = row.subRows) != null && _row$subRows.length);
1723
+ };
1724
+ row.getIsAllParentsExpanded = () => {
1725
+ let isFullyExpanded = true;
1726
+ let currentRow = row;
1727
+ while (isFullyExpanded && currentRow.parentId) {
1728
+ currentRow = table.getRow(currentRow.parentId, true);
1729
+ isFullyExpanded = currentRow.getIsExpanded();
1730
+ }
1731
+ return isFullyExpanded;
1732
+ };
1733
+ row.getToggleExpandedHandler = () => {
1734
+ const canExpand = row.getCanExpand();
1735
+ return () => {
1736
+ if (!canExpand) return;
1737
+ row.toggleExpanded();
1738
+ };
1739
+ };
1740
+ }
1741
+ };
1742
+
1743
+ //
1744
+
1745
+ const defaultPageIndex = 0;
1746
+ const defaultPageSize = 10;
1747
+ const getDefaultPaginationState = () => ({
1748
+ pageIndex: defaultPageIndex,
1749
+ pageSize: defaultPageSize
1750
+ });
1751
+ const RowPagination = {
1752
+ getInitialState: state => {
1753
+ return {
1754
+ ...state,
1755
+ pagination: {
1756
+ ...getDefaultPaginationState(),
1757
+ ...(state == null ? void 0 : state.pagination)
1758
+ }
1759
+ };
1760
+ },
1761
+ getDefaultOptions: table => {
1762
+ return {
1763
+ onPaginationChange: makeStateUpdater('pagination', table)
1764
+ };
1765
+ },
1766
+ createTable: table => {
1767
+ let registered = false;
1768
+ let queued = false;
1769
+ table._autoResetPageIndex = () => {
1770
+ var _ref, _table$options$autoRe;
1771
+ if (!registered) {
1772
+ table._queue(() => {
1773
+ registered = true;
1774
+ });
1775
+ return;
1776
+ }
1777
+ if ((_ref = (_table$options$autoRe = table.options.autoResetAll) != null ? _table$options$autoRe : table.options.autoResetPageIndex) != null ? _ref : !table.options.manualPagination) {
1778
+ if (queued) return;
1779
+ queued = true;
1780
+ table._queue(() => {
1781
+ table.resetPageIndex();
1782
+ queued = false;
1783
+ });
1784
+ }
1785
+ };
1786
+ table.setPagination = updater => {
1787
+ const safeUpdater = old => {
1788
+ let newState = functionalUpdate(updater, old);
1789
+ return newState;
1790
+ };
1791
+ return table.options.onPaginationChange == null ? void 0 : table.options.onPaginationChange(safeUpdater);
1792
+ };
1793
+ table.resetPagination = defaultState => {
1794
+ var _table$initialState$p;
1795
+ table.setPagination(defaultState ? getDefaultPaginationState() : (_table$initialState$p = table.initialState.pagination) != null ? _table$initialState$p : getDefaultPaginationState());
1796
+ };
1797
+ table.setPageIndex = updater => {
1798
+ table.setPagination(old => {
1799
+ let pageIndex = functionalUpdate(updater, old.pageIndex);
1800
+ const maxPageIndex = typeof table.options.pageCount === 'undefined' || table.options.pageCount === -1 ? Number.MAX_SAFE_INTEGER : table.options.pageCount - 1;
1801
+ pageIndex = Math.max(0, Math.min(pageIndex, maxPageIndex));
1802
+ return {
1803
+ ...old,
1804
+ pageIndex
1805
+ };
1806
+ });
1807
+ };
1808
+ table.resetPageIndex = defaultState => {
1809
+ var _table$initialState$p2, _table$initialState;
1810
+ table.setPageIndex(defaultState ? defaultPageIndex : (_table$initialState$p2 = (_table$initialState = table.initialState) == null || (_table$initialState = _table$initialState.pagination) == null ? void 0 : _table$initialState.pageIndex) != null ? _table$initialState$p2 : defaultPageIndex);
1811
+ };
1812
+ table.resetPageSize = defaultState => {
1813
+ var _table$initialState$p3, _table$initialState2;
1814
+ table.setPageSize(defaultState ? defaultPageSize : (_table$initialState$p3 = (_table$initialState2 = table.initialState) == null || (_table$initialState2 = _table$initialState2.pagination) == null ? void 0 : _table$initialState2.pageSize) != null ? _table$initialState$p3 : defaultPageSize);
1815
+ };
1816
+ table.setPageSize = updater => {
1817
+ table.setPagination(old => {
1818
+ const pageSize = Math.max(1, functionalUpdate(updater, old.pageSize));
1819
+ const topRowIndex = old.pageSize * old.pageIndex;
1820
+ const pageIndex = Math.floor(topRowIndex / pageSize);
1821
+ return {
1822
+ ...old,
1823
+ pageIndex,
1824
+ pageSize
1825
+ };
1826
+ });
1827
+ };
1828
+ //deprecated
1829
+ table.setPageCount = updater => table.setPagination(old => {
1830
+ var _table$options$pageCo;
1831
+ let newPageCount = functionalUpdate(updater, (_table$options$pageCo = table.options.pageCount) != null ? _table$options$pageCo : -1);
1832
+ if (typeof newPageCount === 'number') {
1833
+ newPageCount = Math.max(-1, newPageCount);
1834
+ }
1835
+ return {
1836
+ ...old,
1837
+ pageCount: newPageCount
1838
+ };
1839
+ });
1840
+ table.getPageOptions = memo(() => [table.getPageCount()], pageCount => {
1841
+ let pageOptions = [];
1842
+ if (pageCount && pageCount > 0) {
1843
+ pageOptions = [...new Array(pageCount)].fill(null).map((_, i) => i);
1844
+ }
1845
+ return pageOptions;
1846
+ }, getMemoOptions(table.options, 'debugTable'));
1847
+ table.getCanPreviousPage = () => table.getState().pagination.pageIndex > 0;
1848
+ table.getCanNextPage = () => {
1849
+ const {
1850
+ pageIndex
1851
+ } = table.getState().pagination;
1852
+ const pageCount = table.getPageCount();
1853
+ if (pageCount === -1) {
1854
+ return true;
1855
+ }
1856
+ if (pageCount === 0) {
1857
+ return false;
1858
+ }
1859
+ return pageIndex < pageCount - 1;
1860
+ };
1861
+ table.previousPage = () => {
1862
+ return table.setPageIndex(old => old - 1);
1863
+ };
1864
+ table.nextPage = () => {
1865
+ return table.setPageIndex(old => {
1866
+ return old + 1;
1867
+ });
1868
+ };
1869
+ table.firstPage = () => {
1870
+ return table.setPageIndex(0);
1871
+ };
1872
+ table.lastPage = () => {
1873
+ return table.setPageIndex(table.getPageCount() - 1);
1874
+ };
1875
+ table.getPrePaginationRowModel = () => table.getExpandedRowModel();
1876
+ table.getPaginationRowModel = () => {
1877
+ if (!table._getPaginationRowModel && table.options.getPaginationRowModel) {
1878
+ table._getPaginationRowModel = table.options.getPaginationRowModel(table);
1879
+ }
1880
+ if (table.options.manualPagination || !table._getPaginationRowModel) {
1881
+ return table.getPrePaginationRowModel();
1882
+ }
1883
+ return table._getPaginationRowModel();
1884
+ };
1885
+ table.getPageCount = () => {
1886
+ var _table$options$pageCo2;
1887
+ return (_table$options$pageCo2 = table.options.pageCount) != null ? _table$options$pageCo2 : Math.ceil(table.getRowCount() / table.getState().pagination.pageSize);
1888
+ };
1889
+ table.getRowCount = () => {
1890
+ var _table$options$rowCou;
1891
+ return (_table$options$rowCou = table.options.rowCount) != null ? _table$options$rowCou : table.getPrePaginationRowModel().rows.length;
1892
+ };
1893
+ }
1894
+ };
1895
+
1896
+ //
1897
+
1898
+ const getDefaultRowPinningState = () => ({
1899
+ top: [],
1900
+ bottom: []
1901
+ });
1902
+ const RowPinning = {
1903
+ getInitialState: state => {
1904
+ return {
1905
+ rowPinning: getDefaultRowPinningState(),
1906
+ ...state
1907
+ };
1908
+ },
1909
+ getDefaultOptions: table => {
1910
+ return {
1911
+ onRowPinningChange: makeStateUpdater('rowPinning', table)
1912
+ };
1913
+ },
1914
+ createRow: (row, table) => {
1915
+ row.pin = (position, includeLeafRows, includeParentRows) => {
1916
+ const leafRowIds = includeLeafRows ? row.getLeafRows().map(_ref => {
1917
+ let {
1918
+ id
1919
+ } = _ref;
1920
+ return id;
1921
+ }) : [];
1922
+ const parentRowIds = includeParentRows ? row.getParentRows().map(_ref2 => {
1923
+ let {
1924
+ id
1925
+ } = _ref2;
1926
+ return id;
1927
+ }) : [];
1928
+ const rowIds = new Set([...parentRowIds, row.id, ...leafRowIds]);
1929
+ table.setRowPinning(old => {
1930
+ var _old$top3, _old$bottom3;
1931
+ if (position === 'bottom') {
1932
+ var _old$top, _old$bottom;
1933
+ return {
1934
+ top: ((_old$top = old == null ? void 0 : old.top) != null ? _old$top : []).filter(d => !(rowIds != null && rowIds.has(d))),
1935
+ bottom: [...((_old$bottom = old == null ? void 0 : old.bottom) != null ? _old$bottom : []).filter(d => !(rowIds != null && rowIds.has(d))), ...Array.from(rowIds)]
1936
+ };
1937
+ }
1938
+ if (position === 'top') {
1939
+ var _old$top2, _old$bottom2;
1940
+ return {
1941
+ top: [...((_old$top2 = old == null ? void 0 : old.top) != null ? _old$top2 : []).filter(d => !(rowIds != null && rowIds.has(d))), ...Array.from(rowIds)],
1942
+ bottom: ((_old$bottom2 = old == null ? void 0 : old.bottom) != null ? _old$bottom2 : []).filter(d => !(rowIds != null && rowIds.has(d)))
1943
+ };
1944
+ }
1945
+ return {
1946
+ top: ((_old$top3 = old == null ? void 0 : old.top) != null ? _old$top3 : []).filter(d => !(rowIds != null && rowIds.has(d))),
1947
+ bottom: ((_old$bottom3 = old == null ? void 0 : old.bottom) != null ? _old$bottom3 : []).filter(d => !(rowIds != null && rowIds.has(d)))
1948
+ };
1949
+ });
1950
+ };
1951
+ row.getCanPin = () => {
1952
+ var _ref3;
1953
+ const {
1954
+ enableRowPinning,
1955
+ enablePinning
1956
+ } = table.options;
1957
+ if (typeof enableRowPinning === 'function') {
1958
+ return enableRowPinning(row);
1959
+ }
1960
+ return (_ref3 = enableRowPinning != null ? enableRowPinning : enablePinning) != null ? _ref3 : true;
1961
+ };
1962
+ row.getIsPinned = () => {
1963
+ const rowIds = [row.id];
1964
+ const {
1965
+ top,
1966
+ bottom
1967
+ } = table.getState().rowPinning;
1968
+ const isTop = rowIds.some(d => top == null ? void 0 : top.includes(d));
1969
+ const isBottom = rowIds.some(d => bottom == null ? void 0 : bottom.includes(d));
1970
+ return isTop ? 'top' : isBottom ? 'bottom' : false;
1971
+ };
1972
+ row.getPinnedIndex = () => {
1973
+ var _ref4, _visiblePinnedRowIds$;
1974
+ const position = row.getIsPinned();
1975
+ if (!position) return -1;
1976
+ const visiblePinnedRowIds = (_ref4 = position === 'top' ? table.getTopRows() : table.getBottomRows()) == null ? void 0 : _ref4.map(_ref5 => {
1977
+ let {
1978
+ id
1979
+ } = _ref5;
1980
+ return id;
1981
+ });
1982
+ return (_visiblePinnedRowIds$ = visiblePinnedRowIds == null ? void 0 : visiblePinnedRowIds.indexOf(row.id)) != null ? _visiblePinnedRowIds$ : -1;
1983
+ };
1984
+ },
1985
+ createTable: table => {
1986
+ table.setRowPinning = updater => table.options.onRowPinningChange == null ? void 0 : table.options.onRowPinningChange(updater);
1987
+ table.resetRowPinning = defaultState => {
1988
+ var _table$initialState$r, _table$initialState;
1989
+ return table.setRowPinning(defaultState ? getDefaultRowPinningState() : (_table$initialState$r = (_table$initialState = table.initialState) == null ? void 0 : _table$initialState.rowPinning) != null ? _table$initialState$r : getDefaultRowPinningState());
1990
+ };
1991
+ table.getIsSomeRowsPinned = position => {
1992
+ var _pinningState$positio;
1993
+ const pinningState = table.getState().rowPinning;
1994
+ if (!position) {
1995
+ var _pinningState$top, _pinningState$bottom;
1996
+ return Boolean(((_pinningState$top = pinningState.top) == null ? void 0 : _pinningState$top.length) || ((_pinningState$bottom = pinningState.bottom) == null ? void 0 : _pinningState$bottom.length));
1997
+ }
1998
+ return Boolean((_pinningState$positio = pinningState[position]) == null ? void 0 : _pinningState$positio.length);
1999
+ };
2000
+ table._getPinnedRows = (visibleRows, pinnedRowIds, position) => {
2001
+ var _table$options$keepPi;
2002
+ const rows = ((_table$options$keepPi = table.options.keepPinnedRows) != null ? _table$options$keepPi : true) ?
2003
+ //get all rows that are pinned even if they would not be otherwise visible
2004
+ //account for expanded parent rows, but not pagination or filtering
2005
+ (pinnedRowIds != null ? pinnedRowIds : []).map(rowId => {
2006
+ const row = table.getRow(rowId, true);
2007
+ return row.getIsAllParentsExpanded() ? row : null;
2008
+ }) :
2009
+ //else get only visible rows that are pinned
2010
+ (pinnedRowIds != null ? pinnedRowIds : []).map(rowId => visibleRows.find(row => row.id === rowId));
2011
+ return rows.filter(Boolean).map(d => ({
2012
+ ...d,
2013
+ position
2014
+ }));
2015
+ };
2016
+ table.getTopRows = memo(() => [table.getRowModel().rows, table.getState().rowPinning.top], (allRows, topPinnedRowIds) => table._getPinnedRows(allRows, topPinnedRowIds, 'top'), getMemoOptions(table.options, 'debugRows'));
2017
+ table.getBottomRows = memo(() => [table.getRowModel().rows, table.getState().rowPinning.bottom], (allRows, bottomPinnedRowIds) => table._getPinnedRows(allRows, bottomPinnedRowIds, 'bottom'), getMemoOptions(table.options, 'debugRows'));
2018
+ table.getCenterRows = memo(() => [table.getRowModel().rows, table.getState().rowPinning.top, table.getState().rowPinning.bottom], (allRows, top, bottom) => {
2019
+ const topAndBottom = new Set([...(top != null ? top : []), ...(bottom != null ? bottom : [])]);
2020
+ return allRows.filter(d => !topAndBottom.has(d.id));
2021
+ }, getMemoOptions(table.options, 'debugRows'));
2022
+ }
2023
+ };
2024
+
2025
+ //
2026
+
2027
+ const RowSelection = {
2028
+ getInitialState: state => {
2029
+ return {
2030
+ rowSelection: {},
2031
+ ...state
2032
+ };
2033
+ },
2034
+ getDefaultOptions: table => {
2035
+ return {
2036
+ onRowSelectionChange: makeStateUpdater('rowSelection', table),
2037
+ enableRowSelection: true,
2038
+ enableMultiRowSelection: true,
2039
+ enableSubRowSelection: true
2040
+ // enableGroupingRowSelection: false,
2041
+ // isAdditiveSelectEvent: (e: unknown) => !!e.metaKey,
2042
+ // isInclusiveSelectEvent: (e: unknown) => !!e.shiftKey,
2043
+ };
2044
+ },
2045
+ createTable: table => {
2046
+ table.setRowSelection = updater => table.options.onRowSelectionChange == null ? void 0 : table.options.onRowSelectionChange(updater);
2047
+ table.resetRowSelection = defaultState => {
2048
+ var _table$initialState$r;
2049
+ return table.setRowSelection(defaultState ? {} : (_table$initialState$r = table.initialState.rowSelection) != null ? _table$initialState$r : {});
2050
+ };
2051
+ table.toggleAllRowsSelected = value => {
2052
+ table.setRowSelection(old => {
2053
+ value = typeof value !== 'undefined' ? value : !table.getIsAllRowsSelected();
2054
+ const rowSelection = {
2055
+ ...old
2056
+ };
2057
+ const preGroupedFlatRows = table.getPreGroupedRowModel().flatRows;
2058
+
2059
+ // We don't use `mutateRowIsSelected` here for performance reasons.
2060
+ // All of the rows are flat already, so it wouldn't be worth it
2061
+ if (value) {
2062
+ preGroupedFlatRows.forEach(row => {
2063
+ if (!row.getCanSelect()) {
2064
+ return;
2065
+ }
2066
+ rowSelection[row.id] = true;
2067
+ });
2068
+ } else {
2069
+ preGroupedFlatRows.forEach(row => {
2070
+ delete rowSelection[row.id];
2071
+ });
2072
+ }
2073
+ return rowSelection;
2074
+ });
2075
+ };
2076
+ table.toggleAllPageRowsSelected = value => table.setRowSelection(old => {
2077
+ const resolvedValue = typeof value !== 'undefined' ? value : !table.getIsAllPageRowsSelected();
2078
+ const rowSelection = {
2079
+ ...old
2080
+ };
2081
+ table.getRowModel().rows.forEach(row => {
2082
+ mutateRowIsSelected(rowSelection, row.id, resolvedValue, true, table);
2083
+ });
2084
+ return rowSelection;
2085
+ });
2086
+
2087
+ // addRowSelectionRange: rowId => {
2088
+ // const {
2089
+ // rows,
2090
+ // rowsById,
2091
+ // options: { selectGroupingRows, selectSubRows },
2092
+ // } = table
2093
+
2094
+ // const findSelectedRow = (rows: Row[]) => {
2095
+ // let found
2096
+ // rows.find(d => {
2097
+ // if (d.getIsSelected()) {
2098
+ // found = d
2099
+ // return true
2100
+ // }
2101
+ // const subFound = findSelectedRow(d.subRows || [])
2102
+ // if (subFound) {
2103
+ // found = subFound
2104
+ // return true
2105
+ // }
2106
+ // return false
2107
+ // })
2108
+ // return found
2109
+ // }
2110
+
2111
+ // const firstRow = findSelectedRow(rows) || rows[0]
2112
+ // const lastRow = rowsById[rowId]
2113
+
2114
+ // let include = false
2115
+ // const selectedRowIds = {}
2116
+
2117
+ // const addRow = (row: Row) => {
2118
+ // mutateRowIsSelected(selectedRowIds, row.id, true, {
2119
+ // rowsById,
2120
+ // selectGroupingRows: selectGroupingRows!,
2121
+ // selectSubRows: selectSubRows!,
2122
+ // })
2123
+ // }
2124
+
2125
+ // table.rows.forEach(row => {
2126
+ // const isFirstRow = row.id === firstRow.id
2127
+ // const isLastRow = row.id === lastRow.id
2128
+
2129
+ // if (isFirstRow || isLastRow) {
2130
+ // if (!include) {
2131
+ // include = true
2132
+ // } else if (include) {
2133
+ // addRow(row)
2134
+ // include = false
2135
+ // }
2136
+ // }
2137
+
2138
+ // if (include) {
2139
+ // addRow(row)
2140
+ // }
2141
+ // })
2142
+
2143
+ // table.setRowSelection(selectedRowIds)
2144
+ // },
2145
+ table.getPreSelectedRowModel = () => table.getCoreRowModel();
2146
+ table.getSelectedRowModel = memo(() => [table.getState().rowSelection, table.getCoreRowModel()], (rowSelection, rowModel) => {
2147
+ if (!Object.keys(rowSelection).length) {
2148
+ return {
2149
+ rows: [],
2150
+ flatRows: [],
2151
+ rowsById: {}
2152
+ };
2153
+ }
2154
+ return selectRowsFn(table, rowModel);
2155
+ }, getMemoOptions(table.options, 'debugTable'));
2156
+ table.getFilteredSelectedRowModel = memo(() => [table.getState().rowSelection, table.getFilteredRowModel()], (rowSelection, rowModel) => {
2157
+ if (!Object.keys(rowSelection).length) {
2158
+ return {
2159
+ rows: [],
2160
+ flatRows: [],
2161
+ rowsById: {}
2162
+ };
2163
+ }
2164
+ return selectRowsFn(table, rowModel);
2165
+ }, getMemoOptions(table.options, 'debugTable'));
2166
+ table.getGroupedSelectedRowModel = memo(() => [table.getState().rowSelection, table.getSortedRowModel()], (rowSelection, rowModel) => {
2167
+ if (!Object.keys(rowSelection).length) {
2168
+ return {
2169
+ rows: [],
2170
+ flatRows: [],
2171
+ rowsById: {}
2172
+ };
2173
+ }
2174
+ return selectRowsFn(table, rowModel);
2175
+ }, getMemoOptions(table.options, 'debugTable'));
2176
+
2177
+ ///
2178
+
2179
+ // getGroupingRowCanSelect: rowId => {
2180
+ // const row = table.getRow(rowId)
2181
+
2182
+ // if (!row) {
2183
+ // throw new Error()
2184
+ // }
2185
+
2186
+ // if (typeof table.options.enableGroupingRowSelection === 'function') {
2187
+ // return table.options.enableGroupingRowSelection(row)
2188
+ // }
2189
+
2190
+ // return table.options.enableGroupingRowSelection ?? false
2191
+ // },
2192
+
2193
+ table.getIsAllRowsSelected = () => {
2194
+ const preGroupedFlatRows = table.getFilteredRowModel().flatRows;
2195
+ const {
2196
+ rowSelection
2197
+ } = table.getState();
2198
+ let isAllRowsSelected = Boolean(preGroupedFlatRows.length && Object.keys(rowSelection).length);
2199
+ if (isAllRowsSelected) {
2200
+ if (preGroupedFlatRows.some(row => row.getCanSelect() && !rowSelection[row.id])) {
2201
+ isAllRowsSelected = false;
2202
+ }
2203
+ }
2204
+ return isAllRowsSelected;
2205
+ };
2206
+ table.getIsAllPageRowsSelected = () => {
2207
+ const paginationFlatRows = table.getPaginationRowModel().flatRows.filter(row => row.getCanSelect());
2208
+ const {
2209
+ rowSelection
2210
+ } = table.getState();
2211
+ let isAllPageRowsSelected = !!paginationFlatRows.length;
2212
+ if (isAllPageRowsSelected && paginationFlatRows.some(row => !rowSelection[row.id])) {
2213
+ isAllPageRowsSelected = false;
2214
+ }
2215
+ return isAllPageRowsSelected;
2216
+ };
2217
+ table.getIsSomeRowsSelected = () => {
2218
+ var _table$getState$rowSe;
2219
+ const totalSelected = Object.keys((_table$getState$rowSe = table.getState().rowSelection) != null ? _table$getState$rowSe : {}).length;
2220
+ return totalSelected > 0 && totalSelected < table.getFilteredRowModel().flatRows.length;
2221
+ };
2222
+ table.getIsSomePageRowsSelected = () => {
2223
+ const paginationFlatRows = table.getPaginationRowModel().flatRows;
2224
+ return table.getIsAllPageRowsSelected() ? false : paginationFlatRows.filter(row => row.getCanSelect()).some(d => d.getIsSelected() || d.getIsSomeSelected());
2225
+ };
2226
+ table.getToggleAllRowsSelectedHandler = () => {
2227
+ return e => {
2228
+ table.toggleAllRowsSelected(e.target.checked);
2229
+ };
2230
+ };
2231
+ table.getToggleAllPageRowsSelectedHandler = () => {
2232
+ return e => {
2233
+ table.toggleAllPageRowsSelected(e.target.checked);
2234
+ };
2235
+ };
2236
+ },
2237
+ createRow: (row, table) => {
2238
+ row.toggleSelected = (value, opts) => {
2239
+ const isSelected = row.getIsSelected();
2240
+ table.setRowSelection(old => {
2241
+ var _opts$selectChildren;
2242
+ value = typeof value !== 'undefined' ? value : !isSelected;
2243
+ if (row.getCanSelect() && isSelected === value) {
2244
+ return old;
2245
+ }
2246
+ const selectedRowIds = {
2247
+ ...old
2248
+ };
2249
+ mutateRowIsSelected(selectedRowIds, row.id, value, (_opts$selectChildren = opts == null ? void 0 : opts.selectChildren) != null ? _opts$selectChildren : true, table);
2250
+ return selectedRowIds;
2251
+ });
2252
+ };
2253
+ row.getIsSelected = () => {
2254
+ const {
2255
+ rowSelection
2256
+ } = table.getState();
2257
+ return isRowSelected(row, rowSelection);
2258
+ };
2259
+ row.getIsSomeSelected = () => {
2260
+ const {
2261
+ rowSelection
2262
+ } = table.getState();
2263
+ return isSubRowSelected(row, rowSelection) === 'some';
2264
+ };
2265
+ row.getIsAllSubRowsSelected = () => {
2266
+ const {
2267
+ rowSelection
2268
+ } = table.getState();
2269
+ return isSubRowSelected(row, rowSelection) === 'all';
2270
+ };
2271
+ row.getCanSelect = () => {
2272
+ var _table$options$enable;
2273
+ if (typeof table.options.enableRowSelection === 'function') {
2274
+ return table.options.enableRowSelection(row);
2275
+ }
2276
+ return (_table$options$enable = table.options.enableRowSelection) != null ? _table$options$enable : true;
2277
+ };
2278
+ row.getCanSelectSubRows = () => {
2279
+ var _table$options$enable2;
2280
+ if (typeof table.options.enableSubRowSelection === 'function') {
2281
+ return table.options.enableSubRowSelection(row);
2282
+ }
2283
+ return (_table$options$enable2 = table.options.enableSubRowSelection) != null ? _table$options$enable2 : true;
2284
+ };
2285
+ row.getCanMultiSelect = () => {
2286
+ var _table$options$enable3;
2287
+ if (typeof table.options.enableMultiRowSelection === 'function') {
2288
+ return table.options.enableMultiRowSelection(row);
2289
+ }
2290
+ return (_table$options$enable3 = table.options.enableMultiRowSelection) != null ? _table$options$enable3 : true;
2291
+ };
2292
+ row.getToggleSelectedHandler = () => {
2293
+ const canSelect = row.getCanSelect();
2294
+ return e => {
2295
+ var _target;
2296
+ if (!canSelect) return;
2297
+ row.toggleSelected((_target = e.target) == null ? void 0 : _target.checked);
2298
+ };
2299
+ };
2300
+ }
2301
+ };
2302
+ const mutateRowIsSelected = (selectedRowIds, id, value, includeChildren, table) => {
2303
+ var _row$subRows;
2304
+ const row = table.getRow(id, true);
2305
+
2306
+ // const isGrouped = row.getIsGrouped()
2307
+
2308
+ // if ( // TODO: enforce grouping row selection rules
2309
+ // !isGrouped ||
2310
+ // (isGrouped && table.options.enableGroupingRowSelection)
2311
+ // ) {
2312
+ if (value) {
2313
+ if (!row.getCanMultiSelect()) {
2314
+ Object.keys(selectedRowIds).forEach(key => delete selectedRowIds[key]);
2315
+ }
2316
+ if (row.getCanSelect()) {
2317
+ selectedRowIds[id] = true;
2318
+ }
2319
+ } else {
2320
+ delete selectedRowIds[id];
2321
+ }
2322
+ // }
2323
+
2324
+ if (includeChildren && (_row$subRows = row.subRows) != null && _row$subRows.length && row.getCanSelectSubRows()) {
2325
+ row.subRows.forEach(row => mutateRowIsSelected(selectedRowIds, row.id, value, includeChildren, table));
2326
+ }
2327
+ };
2328
+ function selectRowsFn(table, rowModel) {
2329
+ const rowSelection = table.getState().rowSelection;
2330
+ const newSelectedFlatRows = [];
2331
+ const newSelectedRowsById = {};
2332
+
2333
+ // Filters top level and nested rows
2334
+ const recurseRows = function (rows, depth) {
2335
+ return rows.map(row => {
2336
+ var _row$subRows2;
2337
+ const isSelected = isRowSelected(row, rowSelection);
2338
+ if (isSelected) {
2339
+ newSelectedFlatRows.push(row);
2340
+ newSelectedRowsById[row.id] = row;
2341
+ }
2342
+ if ((_row$subRows2 = row.subRows) != null && _row$subRows2.length) {
2343
+ row = {
2344
+ ...row,
2345
+ subRows: recurseRows(row.subRows)
2346
+ };
2347
+ }
2348
+ if (isSelected) {
2349
+ return row;
2350
+ }
2351
+ }).filter(Boolean);
2352
+ };
2353
+ return {
2354
+ rows: recurseRows(rowModel.rows),
2355
+ flatRows: newSelectedFlatRows,
2356
+ rowsById: newSelectedRowsById
2357
+ };
2358
+ }
2359
+ function isRowSelected(row, selection) {
2360
+ var _selection$row$id;
2361
+ return (_selection$row$id = selection[row.id]) != null ? _selection$row$id : false;
2362
+ }
2363
+ function isSubRowSelected(row, selection, table) {
2364
+ var _row$subRows3;
2365
+ if (!((_row$subRows3 = row.subRows) != null && _row$subRows3.length)) return false;
2366
+ let allChildrenSelected = true;
2367
+ let someSelected = false;
2368
+ row.subRows.forEach(subRow => {
2369
+ // Bail out early if we know both of these
2370
+ if (someSelected && !allChildrenSelected) {
2371
+ return;
2372
+ }
2373
+ if (subRow.getCanSelect()) {
2374
+ if (isRowSelected(subRow, selection)) {
2375
+ someSelected = true;
2376
+ } else {
2377
+ allChildrenSelected = false;
2378
+ }
2379
+ }
2380
+
2381
+ // Check row selection of nested subrows
2382
+ if (subRow.subRows && subRow.subRows.length) {
2383
+ const subRowChildrenSelected = isSubRowSelected(subRow, selection);
2384
+ if (subRowChildrenSelected === 'all') {
2385
+ someSelected = true;
2386
+ } else if (subRowChildrenSelected === 'some') {
2387
+ someSelected = true;
2388
+ allChildrenSelected = false;
2389
+ } else {
2390
+ allChildrenSelected = false;
2391
+ }
2392
+ }
2393
+ });
2394
+ return allChildrenSelected ? 'all' : someSelected ? 'some' : false;
2395
+ }
2396
+
2397
+ const reSplitAlphaNumeric = /([0-9]+)/gm;
2398
+ const alphanumeric = (rowA, rowB, columnId) => {
2399
+ return compareAlphanumeric(toString(rowA.getValue(columnId)).toLowerCase(), toString(rowB.getValue(columnId)).toLowerCase());
2400
+ };
2401
+ const alphanumericCaseSensitive = (rowA, rowB, columnId) => {
2402
+ return compareAlphanumeric(toString(rowA.getValue(columnId)), toString(rowB.getValue(columnId)));
2403
+ };
2404
+
2405
+ // The text filter is more basic (less numeric support)
2406
+ // but is much faster
2407
+ const text = (rowA, rowB, columnId) => {
2408
+ return compareBasic(toString(rowA.getValue(columnId)).toLowerCase(), toString(rowB.getValue(columnId)).toLowerCase());
2409
+ };
2410
+
2411
+ // The text filter is more basic (less numeric support)
2412
+ // but is much faster
2413
+ const textCaseSensitive = (rowA, rowB, columnId) => {
2414
+ return compareBasic(toString(rowA.getValue(columnId)), toString(rowB.getValue(columnId)));
2415
+ };
2416
+ const datetime = (rowA, rowB, columnId) => {
2417
+ const a = rowA.getValue(columnId);
2418
+ const b = rowB.getValue(columnId);
2419
+
2420
+ // Can handle nullish values
2421
+ // Use > and < because == (and ===) doesn't work with
2422
+ // Date objects (would require calling getTime()).
2423
+ return a > b ? 1 : a < b ? -1 : 0;
2424
+ };
2425
+ const basic = (rowA, rowB, columnId) => {
2426
+ return compareBasic(rowA.getValue(columnId), rowB.getValue(columnId));
2427
+ };
2428
+
2429
+ // Utils
2430
+
2431
+ function compareBasic(a, b) {
2432
+ return a === b ? 0 : a > b ? 1 : -1;
2433
+ }
2434
+ function toString(a) {
2435
+ if (typeof a === 'number') {
2436
+ if (isNaN(a) || a === Infinity || a === -Infinity) {
2437
+ return '';
2438
+ }
2439
+ return String(a);
2440
+ }
2441
+ if (typeof a === 'string') {
2442
+ return a;
2443
+ }
2444
+ return '';
2445
+ }
2446
+
2447
+ // Mixed sorting is slow, but very inclusive of many edge cases.
2448
+ // It handles numbers, mixed alphanumeric combinations, and even
2449
+ // null, undefined, and Infinity
2450
+ function compareAlphanumeric(aStr, bStr) {
2451
+ // Split on number groups, but keep the delimiter
2452
+ // Then remove falsey split values
2453
+ const a = aStr.split(reSplitAlphaNumeric).filter(Boolean);
2454
+ const b = bStr.split(reSplitAlphaNumeric).filter(Boolean);
2455
+
2456
+ // While
2457
+ while (a.length && b.length) {
2458
+ const aa = a.shift();
2459
+ const bb = b.shift();
2460
+ const an = parseInt(aa, 10);
2461
+ const bn = parseInt(bb, 10);
2462
+ const combo = [an, bn].sort();
2463
+
2464
+ // Both are string
2465
+ if (isNaN(combo[0])) {
2466
+ if (aa > bb) {
2467
+ return 1;
2468
+ }
2469
+ if (bb > aa) {
2470
+ return -1;
2471
+ }
2472
+ continue;
2473
+ }
2474
+
2475
+ // One is a string, one is a number
2476
+ if (isNaN(combo[1])) {
2477
+ return isNaN(an) ? -1 : 1;
2478
+ }
2479
+
2480
+ // Both are numbers
2481
+ if (an > bn) {
2482
+ return 1;
2483
+ }
2484
+ if (bn > an) {
2485
+ return -1;
2486
+ }
2487
+ }
2488
+ return a.length - b.length;
2489
+ }
2490
+
2491
+ // Exports
2492
+
2493
+ const sortingFns = {
2494
+ alphanumeric,
2495
+ alphanumericCaseSensitive,
2496
+ text,
2497
+ textCaseSensitive,
2498
+ datetime,
2499
+ basic
2500
+ };
2501
+
2502
+ //
2503
+
2504
+ const RowSorting = {
2505
+ getInitialState: state => {
2506
+ return {
2507
+ sorting: [],
2508
+ ...state
2509
+ };
2510
+ },
2511
+ getDefaultColumnDef: () => {
2512
+ return {
2513
+ sortingFn: 'auto',
2514
+ sortUndefined: 1
2515
+ };
2516
+ },
2517
+ getDefaultOptions: table => {
2518
+ return {
2519
+ onSortingChange: makeStateUpdater('sorting', table),
2520
+ isMultiSortEvent: e => {
2521
+ return e.shiftKey;
2522
+ }
2523
+ };
2524
+ },
2525
+ createColumn: (column, table) => {
2526
+ column.getAutoSortingFn = () => {
2527
+ const firstRows = table.getFilteredRowModel().flatRows.slice(10);
2528
+ let isString = false;
2529
+ for (const row of firstRows) {
2530
+ const value = row == null ? void 0 : row.getValue(column.id);
2531
+ if (Object.prototype.toString.call(value) === '[object Date]') {
2532
+ return sortingFns.datetime;
2533
+ }
2534
+ if (typeof value === 'string') {
2535
+ isString = true;
2536
+ if (value.split(reSplitAlphaNumeric).length > 1) {
2537
+ return sortingFns.alphanumeric;
2538
+ }
2539
+ }
2540
+ }
2541
+ if (isString) {
2542
+ return sortingFns.text;
2543
+ }
2544
+ return sortingFns.basic;
2545
+ };
2546
+ column.getAutoSortDir = () => {
2547
+ const firstRow = table.getFilteredRowModel().flatRows[0];
2548
+ const value = firstRow == null ? void 0 : firstRow.getValue(column.id);
2549
+ if (typeof value === 'string') {
2550
+ return 'asc';
2551
+ }
2552
+ return 'desc';
2553
+ };
2554
+ column.getSortingFn = () => {
2555
+ var _table$options$sortin, _table$options$sortin2;
2556
+ if (!column) {
2557
+ throw new Error();
2558
+ }
2559
+ return isFunction(column.columnDef.sortingFn) ? column.columnDef.sortingFn : column.columnDef.sortingFn === 'auto' ? column.getAutoSortingFn() : (_table$options$sortin = (_table$options$sortin2 = table.options.sortingFns) == null ? void 0 : _table$options$sortin2[column.columnDef.sortingFn]) != null ? _table$options$sortin : sortingFns[column.columnDef.sortingFn];
2560
+ };
2561
+ column.toggleSorting = (desc, multi) => {
2562
+ // if (column.columns.length) {
2563
+ // column.columns.forEach((c, i) => {
2564
+ // if (c.id) {
2565
+ // table.toggleColumnSorting(c.id, undefined, multi || !!i)
2566
+ // }
2567
+ // })
2568
+ // return
2569
+ // }
2570
+
2571
+ // this needs to be outside of table.setSorting to be in sync with rerender
2572
+ const nextSortingOrder = column.getNextSortingOrder();
2573
+ const hasManualValue = typeof desc !== 'undefined' && desc !== null;
2574
+ table.setSorting(old => {
2575
+ // Find any existing sorting for this column
2576
+ const existingSorting = old == null ? void 0 : old.find(d => d.id === column.id);
2577
+ const existingIndex = old == null ? void 0 : old.findIndex(d => d.id === column.id);
2578
+ let newSorting = [];
2579
+
2580
+ // What should we do with this sort action?
2581
+ let sortAction;
2582
+ let nextDesc = hasManualValue ? desc : nextSortingOrder === 'desc';
2583
+
2584
+ // Multi-mode
2585
+ if (old != null && old.length && column.getCanMultiSort() && multi) {
2586
+ if (existingSorting) {
2587
+ sortAction = 'toggle';
2588
+ } else {
2589
+ sortAction = 'add';
2590
+ }
2591
+ } else {
2592
+ // Normal mode
2593
+ if (old != null && old.length && existingIndex !== old.length - 1) {
2594
+ sortAction = 'replace';
2595
+ } else if (existingSorting) {
2596
+ sortAction = 'toggle';
2597
+ } else {
2598
+ sortAction = 'replace';
2599
+ }
2600
+ }
2601
+
2602
+ // Handle toggle states that will remove the sorting
2603
+ if (sortAction === 'toggle') {
2604
+ // If we are "actually" toggling (not a manual set value), should we remove the sorting?
2605
+ if (!hasManualValue) {
2606
+ // Is our intention to remove?
2607
+ if (!nextSortingOrder) {
2608
+ sortAction = 'remove';
2609
+ }
2610
+ }
2611
+ }
2612
+ if (sortAction === 'add') {
2613
+ var _table$options$maxMul;
2614
+ newSorting = [...old, {
2615
+ id: column.id,
2616
+ desc: nextDesc
2617
+ }];
2618
+ // Take latest n columns
2619
+ newSorting.splice(0, newSorting.length - ((_table$options$maxMul = table.options.maxMultiSortColCount) != null ? _table$options$maxMul : Number.MAX_SAFE_INTEGER));
2620
+ } else if (sortAction === 'toggle') {
2621
+ // This flips (or sets) the
2622
+ newSorting = old.map(d => {
2623
+ if (d.id === column.id) {
2624
+ return {
2625
+ ...d,
2626
+ desc: nextDesc
2627
+ };
2628
+ }
2629
+ return d;
2630
+ });
2631
+ } else if (sortAction === 'remove') {
2632
+ newSorting = old.filter(d => d.id !== column.id);
2633
+ } else {
2634
+ newSorting = [{
2635
+ id: column.id,
2636
+ desc: nextDesc
2637
+ }];
2638
+ }
2639
+ return newSorting;
2640
+ });
2641
+ };
2642
+ column.getFirstSortDir = () => {
2643
+ var _ref, _column$columnDef$sor;
2644
+ const sortDescFirst = (_ref = (_column$columnDef$sor = column.columnDef.sortDescFirst) != null ? _column$columnDef$sor : table.options.sortDescFirst) != null ? _ref : column.getAutoSortDir() === 'desc';
2645
+ return sortDescFirst ? 'desc' : 'asc';
2646
+ };
2647
+ column.getNextSortingOrder = multi => {
2648
+ var _table$options$enable, _table$options$enable2;
2649
+ const firstSortDirection = column.getFirstSortDir();
2650
+ const isSorted = column.getIsSorted();
2651
+ if (!isSorted) {
2652
+ return firstSortDirection;
2653
+ }
2654
+ if (isSorted !== firstSortDirection && ((_table$options$enable = table.options.enableSortingRemoval) != null ? _table$options$enable : true) && (
2655
+ // If enableSortRemove, enable in general
2656
+ multi ? (_table$options$enable2 = table.options.enableMultiRemove) != null ? _table$options$enable2 : true : true) // If multi, don't allow if enableMultiRemove))
2657
+ ) {
2658
+ return false;
2659
+ }
2660
+ return isSorted === 'desc' ? 'asc' : 'desc';
2661
+ };
2662
+ column.getCanSort = () => {
2663
+ var _column$columnDef$ena, _table$options$enable3;
2664
+ return ((_column$columnDef$ena = column.columnDef.enableSorting) != null ? _column$columnDef$ena : true) && ((_table$options$enable3 = table.options.enableSorting) != null ? _table$options$enable3 : true) && !!column.accessorFn;
2665
+ };
2666
+ column.getCanMultiSort = () => {
2667
+ var _ref2, _column$columnDef$ena2;
2668
+ return (_ref2 = (_column$columnDef$ena2 = column.columnDef.enableMultiSort) != null ? _column$columnDef$ena2 : table.options.enableMultiSort) != null ? _ref2 : !!column.accessorFn;
2669
+ };
2670
+ column.getIsSorted = () => {
2671
+ var _table$getState$sorti;
2672
+ const columnSort = (_table$getState$sorti = table.getState().sorting) == null ? void 0 : _table$getState$sorti.find(d => d.id === column.id);
2673
+ return !columnSort ? false : columnSort.desc ? 'desc' : 'asc';
2674
+ };
2675
+ column.getSortIndex = () => {
2676
+ var _table$getState$sorti2, _table$getState$sorti3;
2677
+ return (_table$getState$sorti2 = (_table$getState$sorti3 = table.getState().sorting) == null ? void 0 : _table$getState$sorti3.findIndex(d => d.id === column.id)) != null ? _table$getState$sorti2 : -1;
2678
+ };
2679
+ column.clearSorting = () => {
2680
+ //clear sorting for just 1 column
2681
+ table.setSorting(old => old != null && old.length ? old.filter(d => d.id !== column.id) : []);
2682
+ };
2683
+ column.getToggleSortingHandler = () => {
2684
+ const canSort = column.getCanSort();
2685
+ return e => {
2686
+ if (!canSort) return;
2687
+ e.persist == null || e.persist();
2688
+ column.toggleSorting == null || column.toggleSorting(undefined, column.getCanMultiSort() ? table.options.isMultiSortEvent == null ? void 0 : table.options.isMultiSortEvent(e) : false);
2689
+ };
2690
+ };
2691
+ },
2692
+ createTable: table => {
2693
+ table.setSorting = updater => table.options.onSortingChange == null ? void 0 : table.options.onSortingChange(updater);
2694
+ table.resetSorting = defaultState => {
2695
+ var _table$initialState$s, _table$initialState;
2696
+ table.setSorting(defaultState ? [] : (_table$initialState$s = (_table$initialState = table.initialState) == null ? void 0 : _table$initialState.sorting) != null ? _table$initialState$s : []);
2697
+ };
2698
+ table.getPreSortedRowModel = () => table.getGroupedRowModel();
2699
+ table.getSortedRowModel = () => {
2700
+ if (!table._getSortedRowModel && table.options.getSortedRowModel) {
2701
+ table._getSortedRowModel = table.options.getSortedRowModel(table);
2702
+ }
2703
+ if (table.options.manualSorting || !table._getSortedRowModel) {
2704
+ return table.getPreSortedRowModel();
2705
+ }
2706
+ return table._getSortedRowModel();
2707
+ };
2708
+ }
2709
+ };
2710
+
2711
+ const builtInFeatures = [Headers, ColumnVisibility, ColumnOrdering, ColumnPinning, ColumnFaceting, ColumnFiltering, GlobalFaceting,
2712
+ //depends on ColumnFaceting
2713
+ GlobalFiltering,
2714
+ //depends on ColumnFiltering
2715
+ RowSorting, ColumnGrouping,
2716
+ //depends on RowSorting
2717
+ RowExpanding, RowPagination, RowPinning, RowSelection, ColumnSizing];
2718
+
2719
+ //
2720
+
2721
+ function createTable(options) {
2722
+ var _options$_features, _options$initialState;
2723
+ const _features = [...builtInFeatures, ...((_options$_features = options._features) != null ? _options$_features : [])];
2724
+ let table = {
2725
+ _features
2726
+ };
2727
+ const defaultOptions = table._features.reduce((obj, feature) => {
2728
+ return Object.assign(obj, feature.getDefaultOptions == null ? void 0 : feature.getDefaultOptions(table));
2729
+ }, {});
2730
+ const mergeOptions = options => {
2731
+ if (table.options.mergeOptions) {
2732
+ return table.options.mergeOptions(defaultOptions, options);
2733
+ }
2734
+ return {
2735
+ ...defaultOptions,
2736
+ ...options
2737
+ };
2738
+ };
2739
+ const coreInitialState = {};
2740
+ let initialState = {
2741
+ ...coreInitialState,
2742
+ ...((_options$initialState = options.initialState) != null ? _options$initialState : {})
2743
+ };
2744
+ table._features.forEach(feature => {
2745
+ var _feature$getInitialSt;
2746
+ initialState = (_feature$getInitialSt = feature.getInitialState == null ? void 0 : feature.getInitialState(initialState)) != null ? _feature$getInitialSt : initialState;
2747
+ });
2748
+ const queued = [];
2749
+ let queuedTimeout = false;
2750
+ const coreInstance = {
2751
+ _features,
2752
+ options: {
2753
+ ...defaultOptions,
2754
+ ...options
2755
+ },
2756
+ initialState,
2757
+ _queue: cb => {
2758
+ queued.push(cb);
2759
+ if (!queuedTimeout) {
2760
+ queuedTimeout = true;
2761
+
2762
+ // Schedule a microtask to run the queued callbacks after
2763
+ // the current call stack (render, etc) has finished.
2764
+ Promise.resolve().then(() => {
2765
+ while (queued.length) {
2766
+ queued.shift()();
2767
+ }
2768
+ queuedTimeout = false;
2769
+ }).catch(error => setTimeout(() => {
2770
+ throw error;
2771
+ }));
2772
+ }
2773
+ },
2774
+ reset: () => {
2775
+ table.setState(table.initialState);
2776
+ },
2777
+ setOptions: updater => {
2778
+ const newOptions = functionalUpdate(updater, table.options);
2779
+ table.options = mergeOptions(newOptions);
2780
+ },
2781
+ getState: () => {
2782
+ return table.options.state;
2783
+ },
2784
+ setState: updater => {
2785
+ table.options.onStateChange == null || table.options.onStateChange(updater);
2786
+ },
2787
+ _getRowId: (row, index, parent) => {
2788
+ var _table$options$getRow;
2789
+ return (_table$options$getRow = table.options.getRowId == null ? void 0 : table.options.getRowId(row, index, parent)) != null ? _table$options$getRow : `${parent ? [parent.id, index].join('.') : index}`;
2790
+ },
2791
+ getCoreRowModel: () => {
2792
+ if (!table._getCoreRowModel) {
2793
+ table._getCoreRowModel = table.options.getCoreRowModel(table);
2794
+ }
2795
+ return table._getCoreRowModel();
2796
+ },
2797
+ // The final calls start at the bottom of the model,
2798
+ // expanded rows, which then work their way up
2799
+
2800
+ getRowModel: () => {
2801
+ return table.getPaginationRowModel();
2802
+ },
2803
+ //in next version, we should just pass in the row model as the optional 2nd arg
2804
+ getRow: (id, searchAll) => {
2805
+ let row = (searchAll ? table.getPrePaginationRowModel() : table.getRowModel()).rowsById[id];
2806
+ if (!row) {
2807
+ row = table.getCoreRowModel().rowsById[id];
2808
+ if (!row) {
2809
+ throw new Error();
2810
+ }
2811
+ }
2812
+ return row;
2813
+ },
2814
+ _getDefaultColumnDef: memo(() => [table.options.defaultColumn], defaultColumn => {
2815
+ var _defaultColumn;
2816
+ defaultColumn = (_defaultColumn = defaultColumn) != null ? _defaultColumn : {};
2817
+ return {
2818
+ header: props => {
2819
+ const resolvedColumnDef = props.header.column.columnDef;
2820
+ if (resolvedColumnDef.accessorKey) {
2821
+ return resolvedColumnDef.accessorKey;
2822
+ }
2823
+ if (resolvedColumnDef.accessorFn) {
2824
+ return resolvedColumnDef.id;
2825
+ }
2826
+ return null;
2827
+ },
2828
+ // footer: props => props.header.column.id,
2829
+ cell: props => {
2830
+ var _props$renderValue$to, _props$renderValue;
2831
+ return (_props$renderValue$to = (_props$renderValue = props.renderValue()) == null || _props$renderValue.toString == null ? void 0 : _props$renderValue.toString()) != null ? _props$renderValue$to : null;
2832
+ },
2833
+ ...table._features.reduce((obj, feature) => {
2834
+ return Object.assign(obj, feature.getDefaultColumnDef == null ? void 0 : feature.getDefaultColumnDef());
2835
+ }, {}),
2836
+ ...defaultColumn
2837
+ };
2838
+ }, getMemoOptions(options, 'debugColumns')),
2839
+ _getColumnDefs: () => table.options.columns,
2840
+ getAllColumns: memo(() => [table._getColumnDefs()], columnDefs => {
2841
+ const recurseColumns = function (columnDefs, parent, depth) {
2842
+ if (depth === void 0) {
2843
+ depth = 0;
2844
+ }
2845
+ return columnDefs.map(columnDef => {
2846
+ const column = createColumn(table, columnDef, depth, parent);
2847
+ const groupingColumnDef = columnDef;
2848
+ column.columns = groupingColumnDef.columns ? recurseColumns(groupingColumnDef.columns, column, depth + 1) : [];
2849
+ return column;
2850
+ });
2851
+ };
2852
+ return recurseColumns(columnDefs);
2853
+ }, getMemoOptions(options, 'debugColumns')),
2854
+ getAllFlatColumns: memo(() => [table.getAllColumns()], allColumns => {
2855
+ return allColumns.flatMap(column => {
2856
+ return column.getFlatColumns();
2857
+ });
2858
+ }, getMemoOptions(options, 'debugColumns')),
2859
+ _getAllFlatColumnsById: memo(() => [table.getAllFlatColumns()], flatColumns => {
2860
+ return flatColumns.reduce((acc, column) => {
2861
+ acc[column.id] = column;
2862
+ return acc;
2863
+ }, {});
2864
+ }, getMemoOptions(options, 'debugColumns')),
2865
+ getAllLeafColumns: memo(() => [table.getAllColumns(), table._getOrderColumnsFn()], (allColumns, orderColumns) => {
2866
+ let leafColumns = allColumns.flatMap(column => column.getLeafColumns());
2867
+ return orderColumns(leafColumns);
2868
+ }, getMemoOptions(options, 'debugColumns')),
2869
+ getColumn: columnId => {
2870
+ const column = table._getAllFlatColumnsById()[columnId];
2871
+ return column;
2872
+ }
2873
+ };
2874
+ Object.assign(table, coreInstance);
2875
+ for (let index = 0; index < table._features.length; index++) {
2876
+ const feature = table._features[index];
2877
+ feature == null || feature.createTable == null || feature.createTable(table);
2878
+ }
2879
+ return table;
2880
+ }
2881
+
2882
+ function getCoreRowModel() {
2883
+ return table => memo(() => [table.options.data], data => {
2884
+ const rowModel = {
2885
+ rows: [],
2886
+ flatRows: [],
2887
+ rowsById: {}
2888
+ };
2889
+ const accessRows = function (originalRows, depth, parentRow) {
2890
+ if (depth === void 0) {
2891
+ depth = 0;
2892
+ }
2893
+ const rows = [];
2894
+ for (let i = 0; i < originalRows.length; i++) {
2895
+ // This could be an expensive check at scale, so we should move it somewhere else, but where?
2896
+ // if (!id) {
2897
+ // if ("production" !== 'production') {
2898
+ // throw new Error(`getRowId expected an ID, but got ${id}`)
2899
+ // }
2900
+ // }
2901
+
2902
+ // Make the row
2903
+ const row = createRow(table, table._getRowId(originalRows[i], i, parentRow), originalRows[i], i, depth, undefined, parentRow == null ? void 0 : parentRow.id);
2904
+
2905
+ // Keep track of every row in a flat array
2906
+ rowModel.flatRows.push(row);
2907
+ // Also keep track of every row by its ID
2908
+ rowModel.rowsById[row.id] = row;
2909
+ // Push table row into parent
2910
+ rows.push(row);
2911
+
2912
+ // Get the original subrows
2913
+ if (table.options.getSubRows) {
2914
+ var _row$originalSubRows;
2915
+ row.originalSubRows = table.options.getSubRows(originalRows[i], i);
2916
+
2917
+ // Then recursively access them
2918
+ if ((_row$originalSubRows = row.originalSubRows) != null && _row$originalSubRows.length) {
2919
+ row.subRows = accessRows(row.originalSubRows, depth + 1, row);
2920
+ }
2921
+ }
2922
+ }
2923
+ return rows;
2924
+ };
2925
+ rowModel.rows = accessRows(data);
2926
+ return rowModel;
2927
+ }, getMemoOptions(table.options, 'debugTable', 'getRowModel', () => table._autoResetPageIndex()));
2928
+ }
2929
+
2930
+ function getExpandedRowModel() {
2931
+ return table => memo(() => [table.getState().expanded, table.getPreExpandedRowModel(), table.options.paginateExpandedRows], (expanded, rowModel, paginateExpandedRows) => {
2932
+ if (!rowModel.rows.length || expanded !== true && !Object.keys(expanded != null ? expanded : {}).length) {
2933
+ return rowModel;
2934
+ }
2935
+ if (!paginateExpandedRows) {
2936
+ // Only expand rows at this point if they are being paginated
2937
+ return rowModel;
2938
+ }
2939
+ return expandRows(rowModel);
2940
+ }, getMemoOptions(table.options, 'debugTable'));
2941
+ }
2942
+ function expandRows(rowModel) {
2943
+ const expandedRows = [];
2944
+ const handleRow = row => {
2945
+ var _row$subRows;
2946
+ expandedRows.push(row);
2947
+ if ((_row$subRows = row.subRows) != null && _row$subRows.length && row.getIsExpanded()) {
2948
+ row.subRows.forEach(handleRow);
2949
+ }
2950
+ };
2951
+ rowModel.rows.forEach(handleRow);
2952
+ return {
2953
+ rows: expandedRows,
2954
+ flatRows: rowModel.flatRows,
2955
+ rowsById: rowModel.rowsById
2956
+ };
2957
+ }
2958
+
2959
+ function filterRows(rows, filterRowImpl, table) {
2960
+ if (table.options.filterFromLeafRows) {
2961
+ return filterRowModelFromLeafs(rows, filterRowImpl, table);
2962
+ }
2963
+ return filterRowModelFromRoot(rows, filterRowImpl, table);
2964
+ }
2965
+ function filterRowModelFromLeafs(rowsToFilter, filterRow, table) {
2966
+ var _table$options$maxLea;
2967
+ const newFilteredFlatRows = [];
2968
+ const newFilteredRowsById = {};
2969
+ const maxDepth = (_table$options$maxLea = table.options.maxLeafRowFilterDepth) != null ? _table$options$maxLea : 100;
2970
+ const recurseFilterRows = function (rowsToFilter, depth) {
2971
+ if (depth === void 0) {
2972
+ depth = 0;
2973
+ }
2974
+ const rows = [];
2975
+
2976
+ // Filter from children up first
2977
+ for (let i = 0; i < rowsToFilter.length; i++) {
2978
+ var _row$subRows;
2979
+ let row = rowsToFilter[i];
2980
+ const newRow = createRow(table, row.id, row.original, row.index, row.depth, undefined, row.parentId);
2981
+ newRow.columnFilters = row.columnFilters;
2982
+ if ((_row$subRows = row.subRows) != null && _row$subRows.length && depth < maxDepth) {
2983
+ newRow.subRows = recurseFilterRows(row.subRows, depth + 1);
2984
+ row = newRow;
2985
+ if (filterRow(row) && !newRow.subRows.length) {
2986
+ rows.push(row);
2987
+ newFilteredRowsById[row.id] = row;
2988
+ newFilteredFlatRows.push(row);
2989
+ continue;
2990
+ }
2991
+ if (filterRow(row) || newRow.subRows.length) {
2992
+ rows.push(row);
2993
+ newFilteredRowsById[row.id] = row;
2994
+ newFilteredFlatRows.push(row);
2995
+ continue;
2996
+ }
2997
+ } else {
2998
+ row = newRow;
2999
+ if (filterRow(row)) {
3000
+ rows.push(row);
3001
+ newFilteredRowsById[row.id] = row;
3002
+ newFilteredFlatRows.push(row);
3003
+ }
3004
+ }
3005
+ }
3006
+ return rows;
3007
+ };
3008
+ return {
3009
+ rows: recurseFilterRows(rowsToFilter),
3010
+ flatRows: newFilteredFlatRows,
3011
+ rowsById: newFilteredRowsById
3012
+ };
3013
+ }
3014
+ function filterRowModelFromRoot(rowsToFilter, filterRow, table) {
3015
+ var _table$options$maxLea2;
3016
+ const newFilteredFlatRows = [];
3017
+ const newFilteredRowsById = {};
3018
+ const maxDepth = (_table$options$maxLea2 = table.options.maxLeafRowFilterDepth) != null ? _table$options$maxLea2 : 100;
3019
+
3020
+ // Filters top level and nested rows
3021
+ const recurseFilterRows = function (rowsToFilter, depth) {
3022
+ if (depth === void 0) {
3023
+ depth = 0;
3024
+ }
3025
+ // Filter from parents downward first
3026
+
3027
+ const rows = [];
3028
+
3029
+ // Apply the filter to any subRows
3030
+ for (let i = 0; i < rowsToFilter.length; i++) {
3031
+ let row = rowsToFilter[i];
3032
+ const pass = filterRow(row);
3033
+ if (pass) {
3034
+ var _row$subRows2;
3035
+ if ((_row$subRows2 = row.subRows) != null && _row$subRows2.length && depth < maxDepth) {
3036
+ const newRow = createRow(table, row.id, row.original, row.index, row.depth, undefined, row.parentId);
3037
+ newRow.subRows = recurseFilterRows(row.subRows, depth + 1);
3038
+ row = newRow;
3039
+ }
3040
+ rows.push(row);
3041
+ newFilteredFlatRows.push(row);
3042
+ newFilteredRowsById[row.id] = row;
3043
+ }
3044
+ }
3045
+ return rows;
3046
+ };
3047
+ return {
3048
+ rows: recurseFilterRows(rowsToFilter),
3049
+ flatRows: newFilteredFlatRows,
3050
+ rowsById: newFilteredRowsById
3051
+ };
3052
+ }
3053
+
3054
+ function getFilteredRowModel() {
3055
+ return table => memo(() => [table.getPreFilteredRowModel(), table.getState().columnFilters, table.getState().globalFilter], (rowModel, columnFilters, globalFilter) => {
3056
+ if (!rowModel.rows.length || !(columnFilters != null && columnFilters.length) && !globalFilter) {
3057
+ for (let i = 0; i < rowModel.flatRows.length; i++) {
3058
+ rowModel.flatRows[i].columnFilters = {};
3059
+ rowModel.flatRows[i].columnFiltersMeta = {};
3060
+ }
3061
+ return rowModel;
3062
+ }
3063
+ const resolvedColumnFilters = [];
3064
+ const resolvedGlobalFilters = [];
3065
+ (columnFilters != null ? columnFilters : []).forEach(d => {
3066
+ var _filterFn$resolveFilt;
3067
+ const column = table.getColumn(d.id);
3068
+ if (!column) {
3069
+ return;
3070
+ }
3071
+ const filterFn = column.getFilterFn();
3072
+ if (!filterFn) {
3073
+ return;
3074
+ }
3075
+ resolvedColumnFilters.push({
3076
+ id: d.id,
3077
+ filterFn,
3078
+ resolvedValue: (_filterFn$resolveFilt = filterFn.resolveFilterValue == null ? void 0 : filterFn.resolveFilterValue(d.value)) != null ? _filterFn$resolveFilt : d.value
3079
+ });
3080
+ });
3081
+ const filterableIds = (columnFilters != null ? columnFilters : []).map(d => d.id);
3082
+ const globalFilterFn = table.getGlobalFilterFn();
3083
+ const globallyFilterableColumns = table.getAllLeafColumns().filter(column => column.getCanGlobalFilter());
3084
+ if (globalFilter && globalFilterFn && globallyFilterableColumns.length) {
3085
+ filterableIds.push('__global__');
3086
+ globallyFilterableColumns.forEach(column => {
3087
+ var _globalFilterFn$resol;
3088
+ resolvedGlobalFilters.push({
3089
+ id: column.id,
3090
+ filterFn: globalFilterFn,
3091
+ resolvedValue: (_globalFilterFn$resol = globalFilterFn.resolveFilterValue == null ? void 0 : globalFilterFn.resolveFilterValue(globalFilter)) != null ? _globalFilterFn$resol : globalFilter
3092
+ });
3093
+ });
3094
+ }
3095
+ let currentColumnFilter;
3096
+ let currentGlobalFilter;
3097
+
3098
+ // Flag the prefiltered row model with each filter state
3099
+ for (let j = 0; j < rowModel.flatRows.length; j++) {
3100
+ const row = rowModel.flatRows[j];
3101
+ row.columnFilters = {};
3102
+ if (resolvedColumnFilters.length) {
3103
+ for (let i = 0; i < resolvedColumnFilters.length; i++) {
3104
+ currentColumnFilter = resolvedColumnFilters[i];
3105
+ const id = currentColumnFilter.id;
3106
+
3107
+ // Tag the row with the column filter state
3108
+ row.columnFilters[id] = currentColumnFilter.filterFn(row, id, currentColumnFilter.resolvedValue, filterMeta => {
3109
+ row.columnFiltersMeta[id] = filterMeta;
3110
+ });
3111
+ }
3112
+ }
3113
+ if (resolvedGlobalFilters.length) {
3114
+ for (let i = 0; i < resolvedGlobalFilters.length; i++) {
3115
+ currentGlobalFilter = resolvedGlobalFilters[i];
3116
+ const id = currentGlobalFilter.id;
3117
+ // Tag the row with the first truthy global filter state
3118
+ if (currentGlobalFilter.filterFn(row, id, currentGlobalFilter.resolvedValue, filterMeta => {
3119
+ row.columnFiltersMeta[id] = filterMeta;
3120
+ })) {
3121
+ row.columnFilters.__global__ = true;
3122
+ break;
3123
+ }
3124
+ }
3125
+ if (row.columnFilters.__global__ !== true) {
3126
+ row.columnFilters.__global__ = false;
3127
+ }
3128
+ }
3129
+ }
3130
+ const filterRowsImpl = row => {
3131
+ // Horizontally filter rows through each column
3132
+ for (let i = 0; i < filterableIds.length; i++) {
3133
+ if (row.columnFilters[filterableIds[i]] === false) {
3134
+ return false;
3135
+ }
3136
+ }
3137
+ return true;
3138
+ };
3139
+
3140
+ // Filter final rows using all of the active filters
3141
+ return filterRows(rowModel.rows, filterRowsImpl, table);
3142
+ }, getMemoOptions(table.options, 'debugTable', 'getFilteredRowModel', () => table._autoResetPageIndex()));
3143
+ }
3144
+
3145
+ function getGroupedRowModel() {
3146
+ return table => memo(() => [table.getState().grouping, table.getPreGroupedRowModel()], (grouping, rowModel) => {
3147
+ if (!rowModel.rows.length || !grouping.length) {
3148
+ rowModel.rows.forEach(row => {
3149
+ row.depth = 0;
3150
+ row.parentId = undefined;
3151
+ });
3152
+ return rowModel;
3153
+ }
3154
+
3155
+ // Filter the grouping list down to columns that exist
3156
+ const existingGrouping = grouping.filter(columnId => table.getColumn(columnId));
3157
+ const groupedFlatRows = [];
3158
+ const groupedRowsById = {};
3159
+ // const onlyGroupedFlatRows: Row[] = [];
3160
+ // const onlyGroupedRowsById: Record<RowId, Row> = {};
3161
+ // const nonGroupedFlatRows: Row[] = [];
3162
+ // const nonGroupedRowsById: Record<RowId, Row> = {};
3163
+
3164
+ // Recursively group the data
3165
+ const groupUpRecursively = function (rows, depth, parentId) {
3166
+ if (depth === void 0) {
3167
+ depth = 0;
3168
+ }
3169
+ // Grouping depth has been been met
3170
+ // Stop grouping and simply rewrite thd depth and row relationships
3171
+ if (depth >= existingGrouping.length) {
3172
+ return rows.map(row => {
3173
+ row.depth = depth;
3174
+ groupedFlatRows.push(row);
3175
+ groupedRowsById[row.id] = row;
3176
+ if (row.subRows) {
3177
+ row.subRows = groupUpRecursively(row.subRows, depth + 1, row.id);
3178
+ }
3179
+ return row;
3180
+ });
3181
+ }
3182
+ const columnId = existingGrouping[depth];
3183
+
3184
+ // Group the rows together for this level
3185
+ const rowGroupsMap = groupBy(rows, columnId);
3186
+
3187
+ // Perform aggregations for each group
3188
+ const aggregatedGroupedRows = Array.from(rowGroupsMap.entries()).map((_ref, index) => {
3189
+ let [groupingValue, groupedRows] = _ref;
3190
+ let id = `${columnId}:${groupingValue}`;
3191
+ id = parentId ? `${parentId}>${id}` : id;
3192
+
3193
+ // First, Recurse to group sub rows before aggregation
3194
+ const subRows = groupUpRecursively(groupedRows, depth + 1, id);
3195
+ subRows.forEach(subRow => {
3196
+ subRow.parentId = id;
3197
+ });
3198
+
3199
+ // Flatten the leaf rows of the rows in this group
3200
+ const leafRows = depth ? flattenBy(groupedRows, row => row.subRows) : groupedRows;
3201
+ const row = createRow(table, id, leafRows[0].original, index, depth, undefined, parentId);
3202
+ Object.assign(row, {
3203
+ groupingColumnId: columnId,
3204
+ groupingValue,
3205
+ subRows,
3206
+ leafRows,
3207
+ getValue: columnId => {
3208
+ // Don't aggregate columns that are in the grouping
3209
+ if (existingGrouping.includes(columnId)) {
3210
+ if (row._valuesCache.hasOwnProperty(columnId)) {
3211
+ return row._valuesCache[columnId];
3212
+ }
3213
+ if (groupedRows[0]) {
3214
+ var _groupedRows$0$getVal;
3215
+ row._valuesCache[columnId] = (_groupedRows$0$getVal = groupedRows[0].getValue(columnId)) != null ? _groupedRows$0$getVal : undefined;
3216
+ }
3217
+ return row._valuesCache[columnId];
3218
+ }
3219
+ if (row._groupingValuesCache.hasOwnProperty(columnId)) {
3220
+ return row._groupingValuesCache[columnId];
3221
+ }
3222
+
3223
+ // Aggregate the values
3224
+ const column = table.getColumn(columnId);
3225
+ const aggregateFn = column == null ? void 0 : column.getAggregationFn();
3226
+ if (aggregateFn) {
3227
+ row._groupingValuesCache[columnId] = aggregateFn(columnId, leafRows, groupedRows);
3228
+ return row._groupingValuesCache[columnId];
3229
+ }
3230
+ }
3231
+ });
3232
+ subRows.forEach(subRow => {
3233
+ groupedFlatRows.push(subRow);
3234
+ groupedRowsById[subRow.id] = subRow;
3235
+ // if (subRow.getIsGrouped?.()) {
3236
+ // onlyGroupedFlatRows.push(subRow);
3237
+ // onlyGroupedRowsById[subRow.id] = subRow;
3238
+ // } else {
3239
+ // nonGroupedFlatRows.push(subRow);
3240
+ // nonGroupedRowsById[subRow.id] = subRow;
3241
+ // }
3242
+ });
3243
+ return row;
3244
+ });
3245
+ return aggregatedGroupedRows;
3246
+ };
3247
+ const groupedRows = groupUpRecursively(rowModel.rows, 0);
3248
+ groupedRows.forEach(subRow => {
3249
+ groupedFlatRows.push(subRow);
3250
+ groupedRowsById[subRow.id] = subRow;
3251
+ // if (subRow.getIsGrouped?.()) {
3252
+ // onlyGroupedFlatRows.push(subRow);
3253
+ // onlyGroupedRowsById[subRow.id] = subRow;
3254
+ // } else {
3255
+ // nonGroupedFlatRows.push(subRow);
3256
+ // nonGroupedRowsById[subRow.id] = subRow;
3257
+ // }
3258
+ });
3259
+ return {
3260
+ rows: groupedRows,
3261
+ flatRows: groupedFlatRows,
3262
+ rowsById: groupedRowsById
3263
+ };
3264
+ }, getMemoOptions(table.options, 'debugTable', 'getGroupedRowModel', () => {
3265
+ table._queue(() => {
3266
+ table._autoResetExpanded();
3267
+ table._autoResetPageIndex();
3268
+ });
3269
+ }));
3270
+ }
3271
+ function groupBy(rows, columnId) {
3272
+ const groupMap = new Map();
3273
+ return rows.reduce((map, row) => {
3274
+ const resKey = `${row.getGroupingValue(columnId)}`;
3275
+ const previous = map.get(resKey);
3276
+ if (!previous) {
3277
+ map.set(resKey, [row]);
3278
+ } else {
3279
+ previous.push(row);
3280
+ }
3281
+ return map;
3282
+ }, groupMap);
3283
+ }
3284
+
3285
+ function getPaginationRowModel(opts) {
3286
+ return table => memo(() => [table.getState().pagination, table.getPrePaginationRowModel(), table.options.paginateExpandedRows ? undefined : table.getState().expanded], (pagination, rowModel) => {
3287
+ if (!rowModel.rows.length) {
3288
+ return rowModel;
3289
+ }
3290
+ const {
3291
+ pageSize,
3292
+ pageIndex
3293
+ } = pagination;
3294
+ let {
3295
+ rows,
3296
+ flatRows,
3297
+ rowsById
3298
+ } = rowModel;
3299
+ const pageStart = pageSize * pageIndex;
3300
+ const pageEnd = pageStart + pageSize;
3301
+ rows = rows.slice(pageStart, pageEnd);
3302
+ let paginatedRowModel;
3303
+ if (!table.options.paginateExpandedRows) {
3304
+ paginatedRowModel = expandRows({
3305
+ rows,
3306
+ flatRows,
3307
+ rowsById
3308
+ });
3309
+ } else {
3310
+ paginatedRowModel = {
3311
+ rows,
3312
+ flatRows,
3313
+ rowsById
3314
+ };
3315
+ }
3316
+ paginatedRowModel.flatRows = [];
3317
+ const handleRow = row => {
3318
+ paginatedRowModel.flatRows.push(row);
3319
+ if (row.subRows.length) {
3320
+ row.subRows.forEach(handleRow);
3321
+ }
3322
+ };
3323
+ paginatedRowModel.rows.forEach(handleRow);
3324
+ return paginatedRowModel;
3325
+ }, getMemoOptions(table.options, 'debugTable'));
3326
+ }
3327
+
3328
+ function getSortedRowModel() {
3329
+ return table => memo(() => [table.getState().sorting, table.getPreSortedRowModel()], (sorting, rowModel) => {
3330
+ if (!rowModel.rows.length || !(sorting != null && sorting.length)) {
3331
+ return rowModel;
3332
+ }
3333
+ const sortingState = table.getState().sorting;
3334
+ const sortedFlatRows = [];
3335
+
3336
+ // Filter out sortings that correspond to non existing columns
3337
+ const availableSorting = sortingState.filter(sort => {
3338
+ var _table$getColumn;
3339
+ return (_table$getColumn = table.getColumn(sort.id)) == null ? void 0 : _table$getColumn.getCanSort();
3340
+ });
3341
+ const columnInfoById = {};
3342
+ availableSorting.forEach(sortEntry => {
3343
+ const column = table.getColumn(sortEntry.id);
3344
+ if (!column) return;
3345
+ columnInfoById[sortEntry.id] = {
3346
+ sortUndefined: column.columnDef.sortUndefined,
3347
+ invertSorting: column.columnDef.invertSorting,
3348
+ sortingFn: column.getSortingFn()
3349
+ };
3350
+ });
3351
+ const sortData = rows => {
3352
+ // This will also perform a stable sorting using the row index
3353
+ // if needed.
3354
+ const sortedData = rows.map(row => ({
3355
+ ...row
3356
+ }));
3357
+ sortedData.sort((rowA, rowB) => {
3358
+ for (let i = 0; i < availableSorting.length; i += 1) {
3359
+ var _sortEntry$desc;
3360
+ const sortEntry = availableSorting[i];
3361
+ const columnInfo = columnInfoById[sortEntry.id];
3362
+ const sortUndefined = columnInfo.sortUndefined;
3363
+ const isDesc = (_sortEntry$desc = sortEntry == null ? void 0 : sortEntry.desc) != null ? _sortEntry$desc : false;
3364
+ let sortInt = 0;
3365
+
3366
+ // All sorting ints should always return in ascending order
3367
+ if (sortUndefined) {
3368
+ const aValue = rowA.getValue(sortEntry.id);
3369
+ const bValue = rowB.getValue(sortEntry.id);
3370
+ const aUndefined = aValue === undefined;
3371
+ const bUndefined = bValue === undefined;
3372
+ if (aUndefined || bUndefined) {
3373
+ if (sortUndefined === 'first') return aUndefined ? -1 : 1;
3374
+ if (sortUndefined === 'last') return aUndefined ? 1 : -1;
3375
+ sortInt = aUndefined && bUndefined ? 0 : aUndefined ? sortUndefined : -sortUndefined;
3376
+ }
3377
+ }
3378
+ if (sortInt === 0) {
3379
+ sortInt = columnInfo.sortingFn(rowA, rowB, sortEntry.id);
3380
+ }
3381
+
3382
+ // If sorting is non-zero, take care of desc and inversion
3383
+ if (sortInt !== 0) {
3384
+ if (isDesc) {
3385
+ sortInt *= -1;
3386
+ }
3387
+ if (columnInfo.invertSorting) {
3388
+ sortInt *= -1;
3389
+ }
3390
+ return sortInt;
3391
+ }
3392
+ }
3393
+ return rowA.index - rowB.index;
3394
+ });
3395
+
3396
+ // If there are sub-rows, sort them
3397
+ sortedData.forEach(row => {
3398
+ var _row$subRows;
3399
+ sortedFlatRows.push(row);
3400
+ if ((_row$subRows = row.subRows) != null && _row$subRows.length) {
3401
+ row.subRows = sortData(row.subRows);
3402
+ }
3403
+ });
3404
+ return sortedData;
3405
+ };
3406
+ return {
3407
+ rows: sortData(rowModel.rows),
3408
+ flatRows: sortedFlatRows,
3409
+ rowsById: rowModel.rowsById
3410
+ };
3411
+ }, getMemoOptions(table.options, 'debugTable', 'getSortedRowModel', () => table._autoResetPageIndex()));
3412
+ }
3413
+
3414
+ const bhDataGridCss = ":host{display:block;font-family:var(--font-family-body, 'Inter', sans-serif)}.data-grid{display:flex;flex-direction:column;background-color:var(--color-white, #fff);border:1px solid var(--color-neutral-200, #e2e4eb);border-radius:var(--radius-lg, 8px);overflow:hidden}.data-grid-container{position:relative;overflow:auto}.data-grid-table{display:table;width:100%;border-collapse:collapse}.data-grid-compact .data-grid-header-cell,.data-grid-compact .data-grid-cell,.data-grid-compact .data-grid-filter-cell{padding:var(--sp-1-5, 6px) var(--sp-2, 8px);font-size:0.75rem}.data-grid-compact .data-grid-row{height:32px}.data-grid-default .data-grid-header-cell,.data-grid-default .data-grid-cell,.data-grid-default .data-grid-filter-cell{padding:var(--sp-2, 8px) var(--sp-3, 12px);font-size:0.875rem}.data-grid-default .data-grid-row{height:44px}.data-grid-relaxed .data-grid-header-cell,.data-grid-relaxed .data-grid-cell,.data-grid-relaxed .data-grid-filter-cell{padding:var(--sp-3, 12px) var(--sp-4, 16px);font-size:0.875rem}.data-grid-relaxed .data-grid-row{height:56px}.data-grid-bordered .data-grid-cell,.data-grid-bordered .data-grid-header-cell,.data-grid-bordered .data-grid-filter-cell{border:1px solid var(--color-neutral-200, #e2e4eb)}.data-grid-bordered .data-grid-header-cell{border-bottom-width:2px}.data-grid-striped .data-grid-row-striped{background-color:var(--color-neutral-50, #fafafc)}.data-grid-caption{padding:var(--sp-3, 12px) var(--sp-4, 16px);font-size:0.875rem;font-weight:500;color:var(--color-neutral-700, #4d5266)}.data-grid-caption-top{border-bottom:1px solid var(--color-neutral-200, #e2e4eb)}.data-grid-caption-bottom{border-top:1px solid var(--color-neutral-200, #e2e4eb)}.data-grid-global-filter{display:flex;align-items:center;gap:var(--sp-2, 8px);padding:var(--sp-3, 12px) var(--sp-4, 16px);border-bottom:1px solid var(--color-neutral-200, #e2e4eb)}.data-grid-search-icon{font-size:20px;color:var(--color-neutral-400, #939ab4)}.data-grid-global-filter-input{flex:1;padding:var(--sp-2, 8px) var(--sp-3, 12px);border:1px solid var(--color-neutral-300, #c0c4d4);border-radius:var(--radius-md, 6px);font-size:0.875rem;color:var(--color-neutral-900, #141624);background-color:var(--color-white, #fff);transition:border-color 0.15s ease, box-shadow 0.15s ease}.data-grid-global-filter-input:focus{outline:none;border-color:var(--color-brand-500, #6366f1);box-shadow:0 0 0 3px var(--color-brand-100, #e0e1fc)}.data-grid-global-filter-input::placeholder{color:var(--color-neutral-400, #939ab4)}.data-grid-header{display:table-header-group;background-color:var(--color-neutral-50, #fafafc)}.data-grid-header-sticky{position:sticky;top:0;z-index:10}.data-grid-header-row{display:table-row}.data-grid-header-cell{display:table-cell;vertical-align:middle;text-align:left;font-weight:600;color:var(--color-neutral-700, #4d5266);border-bottom:1px solid var(--color-neutral-200, #e2e4eb);white-space:nowrap;user-select:none}.data-grid-header-cell-sortable{cursor:pointer;transition:background-color 0.15s ease}.data-grid-header-cell-sortable:hover{background-color:var(--color-neutral-100, #f0f1f5)}.data-grid-header-cell-sorted{color:var(--color-brand-600, #4f46e5)}.data-grid-header-text{display:inline-flex;align-items:center;gap:var(--sp-1, 4px)}.data-grid-sort-icon{font-size:16px;color:var(--color-brand-600, #4f46e5)}.data-grid-filter-row{display:table-row;background-color:var(--color-neutral-25, #fcfcfe)}.data-grid-filter-cell{display:table-cell;vertical-align:middle;border-bottom:1px solid var(--color-neutral-200, #e2e4eb)}.data-grid-filter-input{width:100%;padding:var(--sp-1-5, 6px) var(--sp-2, 8px);border:1px solid var(--color-neutral-300, #c0c4d4);border-radius:var(--radius-sm, 4px);font-size:0.75rem;color:var(--color-neutral-900, #141624);background-color:var(--color-white, #fff);transition:border-color 0.15s ease}.data-grid-filter-input:focus{outline:none;border-color:var(--color-brand-500, #6366f1)}.data-grid-filter-input::placeholder{color:var(--color-neutral-400, #939ab4)}.data-grid-body{display:table-row-group}.data-grid-row{display:table-row;transition:background-color 0.1s ease}.data-grid-row-hover,.data-grid-row:hover{background-color:var(--color-neutral-50, #fafafc)}.data-grid-row-selected{background-color:var(--color-brand-50, #eef2ff) !important}.data-grid-row-selected:hover{background-color:var(--color-brand-100, #e0e7ff) !important}.data-grid-row-clickable{cursor:pointer}.data-grid-row-editing{background-color:var(--color-warning-50, #fffbeb) !important}.data-grid-cell{display:table-cell;vertical-align:middle;color:var(--color-neutral-900, #141624);border-bottom:1px solid var(--color-neutral-100, #f0f1f5)}.data-grid-cell-align-left{text-align:left}.data-grid-cell-align-center{text-align:center}.data-grid-cell-align-right{text-align:right}.data-grid-cell-type-number{font-variant-numeric:tabular-nums}.data-grid-cell-editable{cursor:cell}.data-grid-cell-editable:hover{background-color:var(--color-brand-25, #f5f8ff)}.data-grid-cell-editing{padding:var(--sp-1, 4px) !important}.data-grid-cell-error{position:relative}.data-grid-cell-error-text{position:absolute;bottom:2px;left:4px;font-size:0.625rem;color:var(--color-error-600, #dc2626)}.data-grid-cell-select{width:40px;min-width:40px;max-width:40px;text-align:center}.data-grid-cell-expand{width:40px;min-width:40px;max-width:40px;text-align:center}.data-grid-cell-actions{width:80px;min-width:80px;max-width:80px;text-align:center}.data-grid-expand-btn{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:none;border-radius:var(--radius-md, 6px);background-color:transparent;color:var(--color-neutral-500, #6b7280);cursor:pointer;transition:background-color 0.15s ease, color 0.15s ease}.data-grid-expand-btn:hover{background-color:var(--color-neutral-100, #f0f1f5);color:var(--color-neutral-700, #4d5266)}.data-grid-expand-btn .material-symbols-outlined{font-size:20px;transition:transform 0.15s ease}.data-grid-row-expanded .data-grid-expand-btn .material-symbols-outlined{transform:rotate(90deg)}.data-grid-row-expansion{display:table-row;background-color:var(--color-neutral-50, #fafafc)}.data-grid-row-expansion>*{display:table-cell;padding:var(--sp-4, 16px);border-bottom:1px solid var(--color-neutral-200, #e2e4eb)}.data-grid-row-group{background-color:var(--color-neutral-100, #f0f1f5);cursor:pointer}.data-grid-row-group:hover{background-color:var(--color-neutral-200, #e2e4eb)}.data-grid-cell-group-label{display:flex;align-items:center;gap:var(--sp-2, 8px);font-weight:500}.data-grid-group-toggle{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:none;background:transparent;color:var(--color-neutral-600, #5c627a);cursor:pointer}.data-grid-group-toggle .material-symbols-outlined{font-size:20px;transition:transform 0.15s ease}.data-grid-row-group-expanded .data-grid-group-toggle .material-symbols-outlined{transform:rotate(90deg)}.data-grid-group-label{display:inline-flex;align-items:center;gap:var(--sp-1, 4px)}.data-grid-group-column{color:var(--color-neutral-500, #6b7280)}.data-grid-group-value{color:var(--color-neutral-900, #141624);font-weight:600}.data-grid-group-count{color:var(--color-neutral-400, #939ab4);font-size:0.75rem;font-weight:400}.data-grid-edit-input{width:100%;padding:var(--sp-1-5, 6px) var(--sp-2, 8px);border:1px solid var(--color-brand-400, #818cf8);border-radius:var(--radius-sm, 4px);font-size:inherit;color:var(--color-neutral-900, #141624);background-color:var(--color-white, #fff);box-shadow:0 0 0 3px var(--color-brand-100, #e0e1fc)}.data-grid-edit-input:focus{outline:none;border-color:var(--color-brand-500, #6366f1)}.data-grid-edit-actions{display:flex;align-items:center;justify-content:center;gap:var(--sp-1, 4px)}.data-grid-action-btn{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:none;border-radius:var(--radius-md, 6px);background-color:transparent;color:var(--color-neutral-600, #5c627a);cursor:pointer;transition:background-color 0.15s ease, color 0.15s ease}.data-grid-action-btn:hover{background-color:var(--color-neutral-100, #f0f1f5);color:var(--color-neutral-900, #141624)}.data-grid-action-btn .material-symbols-outlined{font-size:18px}.data-grid-empty{display:flex;align-items:center;justify-content:center;padding:var(--sp-12, 48px) var(--sp-4, 16px)}.data-grid-loading{position:relative}.data-grid-loading-overlay{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;background-color:rgba(255, 255, 255, 0.8);z-index:20}.data-grid-skeleton .data-grid-cell{padding:var(--sp-2, 8px) var(--sp-3, 12px)}.data-grid-row-skeleton{animation:skeleton-pulse 1.5s ease-in-out infinite}@keyframes skeleton-pulse{0%,100%{opacity:1}50%{opacity:0.5}}.material-symbols-outlined{font-family:'Material Symbols Outlined';font-weight:normal;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;font-feature-settings:'liga';font-variation-settings:'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24}@media (max-width: 640px){.data-grid-global-filter{padding:var(--sp-2, 8px)}.data-grid-header-cell,.data-grid-cell,.data-grid-filter-cell{padding:var(--sp-2, 8px) !important;font-size:0.75rem !important}.data-grid-cell-select,.data-grid-cell-expand{width:32px;min-width:32px;max-width:32px}.data-grid-cell-actions{width:60px;min-width:60px;max-width:60px}}";
3415
+
3416
+ const BhDataGrid = class {
3417
+ constructor(hostRef) {
3418
+ index.registerInstance(this, hostRef);
3419
+ this.bhSortChange = index.createEvent(this, "bhSortChange");
3420
+ this.bhFilterChange = index.createEvent(this, "bhFilterChange");
3421
+ this.bhSelectionChange = index.createEvent(this, "bhSelectionChange");
3422
+ this.bhPageChange = index.createEvent(this, "bhPageChange");
3423
+ this.bhRowClick = index.createEvent(this, "bhRowClick");
3424
+ this.bhCellClick = index.createEvent(this, "bhCellClick");
3425
+ this.bhExpandChange = index.createEvent(this, "bhExpandChange");
3426
+ this.bhGroupToggle = index.createEvent(this, "bhGroupToggle");
3427
+ this.bhEditStart = index.createEvent(this, "bhEditStart");
3428
+ this.bhEditCancel = index.createEvent(this, "bhEditCancel");
3429
+ this.bhEditSave = index.createEvent(this, "bhEditSave");
3430
+ this.bhCellChange = index.createEvent(this, "bhCellChange");
3431
+ this.bhValidationError = index.createEvent(this, "bhValidationError");
3432
+ }
3433
+ get el() { return index.getElement(this); }
3434
+ // ===========================================================================
3435
+ // Props - Data
3436
+ // ===========================================================================
3437
+ /** Array of data objects to display */
3438
+ data = [];
3439
+ /** Column definitions (TanStack ColumnDef format) */
3440
+ columns = [];
3441
+ /** Function to get unique row ID */
3442
+ getRowId;
3443
+ /** Function to get sub-rows for expansion */
3444
+ getSubRows;
3445
+ // ===========================================================================
3446
+ // Props - Display
3447
+ // ===========================================================================
3448
+ /** Size variant */
3449
+ size = 'default';
3450
+ /** Show striped rows */
3451
+ striped = false;
3452
+ /** Show borders */
3453
+ bordered = false;
3454
+ /** Sticky header */
3455
+ stickyHeader = false;
3456
+ /** Max height for scrollable container (enables sticky header) */
3457
+ maxHeight;
3458
+ /** Caption text */
3459
+ caption;
3460
+ /** Caption position */
3461
+ captionPosition = 'top';
3462
+ /** Empty state title */
3463
+ emptyTitle = 'No data';
3464
+ /** Empty state description */
3465
+ emptyDescription = 'There are no records to display.';
3466
+ // ===========================================================================
3467
+ // Props - Loading
3468
+ // ===========================================================================
3469
+ /** Loading state */
3470
+ loading = false;
3471
+ /** Loading type */
3472
+ loadingType = 'spinner';
3473
+ /** Number of skeleton rows to show */
3474
+ skeletonRowCount = 5;
3475
+ // ===========================================================================
3476
+ // Props - Sorting
3477
+ // ===========================================================================
3478
+ /** Enable sorting */
3479
+ enableSorting = true;
3480
+ /** Enable multi-column sorting */
3481
+ enableMultiSort = false;
3482
+ /** Initial/controlled sort state */
3483
+ sortState = [];
3484
+ // ===========================================================================
3485
+ // Props - Filtering
3486
+ // ===========================================================================
3487
+ /** Enable column filtering */
3488
+ enableFiltering = false;
3489
+ /** Enable global filter (search) */
3490
+ enableGlobalFilter = false;
3491
+ /** Show filter row below header */
3492
+ showFilterRow = false;
3493
+ /** Global filter placeholder text */
3494
+ globalFilterPlaceholder = 'Search...';
3495
+ /** Initial/controlled filter state */
3496
+ filterState = [];
3497
+ /** Initial/controlled global filter */
3498
+ globalFilter = '';
3499
+ // ===========================================================================
3500
+ // Props - Selection
3501
+ // ===========================================================================
3502
+ /** Selection mode */
3503
+ selectionMode = 'none';
3504
+ /** Initial/controlled selected row IDs */
3505
+ selectedRowIds = [];
3506
+ // ===========================================================================
3507
+ // Props - Pagination
3508
+ // ===========================================================================
3509
+ /** Enable pagination */
3510
+ enablePagination = false;
3511
+ /** Current page (1-indexed) */
3512
+ page = 1;
3513
+ /** Page size */
3514
+ pageSize = 10;
3515
+ /** Page size options */
3516
+ pageSizeOptions = [10, 25, 50, 100];
3517
+ // ===========================================================================
3518
+ // Props - Expansion
3519
+ // ===========================================================================
3520
+ /** Enable row expansion */
3521
+ enableExpansion = false;
3522
+ /** Initial/controlled expanded row IDs */
3523
+ expandedRowIds = [];
3524
+ // ===========================================================================
3525
+ // Props - Grouping
3526
+ // ===========================================================================
3527
+ /** Enable grouping */
3528
+ enableGrouping = false;
3529
+ /** Column IDs to group by */
3530
+ groupBy = [];
3531
+ // ===========================================================================
3532
+ // Props - Editing
3533
+ // ===========================================================================
3534
+ /** Enable editing */
3535
+ enableEditing = false;
3536
+ /** Edit mode */
3537
+ editMode = 'cell';
3538
+ /** Show edit action buttons */
3539
+ showEditActions = true;
3540
+ // ===========================================================================
3541
+ // Internal State
3542
+ // ===========================================================================
3543
+ tableState = {};
3544
+ editingRowId = null;
3545
+ editingColumnId = null;
3546
+ editingValues = {};
3547
+ validationErrors = {};
3548
+ hoveredRowId = null;
3549
+ table = null;
3550
+ // ===========================================================================
3551
+ // Events
3552
+ // ===========================================================================
3553
+ bhSortChange;
3554
+ bhFilterChange;
3555
+ bhSelectionChange;
3556
+ bhPageChange;
3557
+ bhRowClick;
3558
+ bhCellClick;
3559
+ bhExpandChange;
3560
+ bhGroupToggle;
3561
+ bhEditStart;
3562
+ bhEditCancel;
3563
+ bhEditSave;
3564
+ bhCellChange;
3565
+ bhValidationError;
3566
+ // ===========================================================================
3567
+ // Watchers
3568
+ // ===========================================================================
3569
+ handleDataChange() {
3570
+ this.initializeTable();
3571
+ }
3572
+ handleSortStateChange(newValue) {
3573
+ if (this.table) {
3574
+ this.table.setSorting(newValue);
3575
+ }
3576
+ }
3577
+ handleFilterStateChange(newValue) {
3578
+ if (this.table) {
3579
+ this.table.setColumnFilters(newValue);
3580
+ }
3581
+ }
3582
+ handleSelectedRowIdsChange(newValue) {
3583
+ if (this.table) {
3584
+ const selection = {};
3585
+ newValue.forEach(id => { selection[id] = true; });
3586
+ this.table.setRowSelection(selection);
3587
+ }
3588
+ }
3589
+ handlePaginationPropChange() {
3590
+ if (this.table) {
3591
+ this.table.setPagination({
3592
+ pageIndex: this.page - 1,
3593
+ pageSize: this.pageSize,
3594
+ });
3595
+ }
3596
+ }
3597
+ handleExpandedRowIdsChange(newValue) {
3598
+ if (this.table) {
3599
+ const expanded = {};
3600
+ newValue.forEach(id => { expanded[id] = true; });
3601
+ this.table.setExpanded(expanded);
3602
+ }
3603
+ }
3604
+ handleGroupByChange(newValue) {
3605
+ if (this.table) {
3606
+ this.table.setGrouping(newValue);
3607
+ }
3608
+ }
3609
+ // ===========================================================================
3610
+ // Lifecycle
3611
+ // ===========================================================================
3612
+ componentWillLoad() {
3613
+ this.initializeTable();
3614
+ }
3615
+ // ===========================================================================
3616
+ // Table Initialization
3617
+ // ===========================================================================
3618
+ initializeTable() {
3619
+ // Build initial state
3620
+ const initialState = {
3621
+ sorting: this.sortState,
3622
+ columnFilters: this.filterState,
3623
+ globalFilter: this.globalFilter,
3624
+ rowSelection: this.buildRowSelection(),
3625
+ expanded: this.buildExpanded(),
3626
+ pagination: {
3627
+ pageIndex: this.page - 1,
3628
+ pageSize: this.pageSize,
3629
+ },
3630
+ grouping: this.groupBy,
3631
+ columnVisibility: this.buildColumnVisibility(),
3632
+ columnPinning: { left: [], right: [] },
3633
+ columnSizing: {},
3634
+ };
3635
+ this.tableState = initialState;
3636
+ // Create table instance
3637
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3638
+ this.table = createTable({
3639
+ data: this.data,
3640
+ columns: this.columns,
3641
+ state: this.tableState,
3642
+ onStateChange: (updater) => {
3643
+ const newState = typeof updater === 'function'
3644
+ ? updater(this.tableState)
3645
+ : updater;
3646
+ this.handleStateChange(newState);
3647
+ },
3648
+ getCoreRowModel: getCoreRowModel(),
3649
+ getSortedRowModel: this.enableSorting ? getSortedRowModel() : undefined,
3650
+ getFilteredRowModel: this.enableFiltering || this.enableGlobalFilter ? getFilteredRowModel() : undefined,
3651
+ getPaginationRowModel: this.enablePagination ? getPaginationRowModel() : undefined,
3652
+ getExpandedRowModel: this.enableExpansion || this.enableGrouping ? getExpandedRowModel() : undefined,
3653
+ getGroupedRowModel: this.enableGrouping ? getGroupedRowModel() : undefined,
3654
+ getRowId: this.getRowId || ((row, index) => String(row.id ?? index)),
3655
+ getSubRows: this.getSubRows,
3656
+ enableRowSelection: this.selectionMode !== 'none',
3657
+ enableMultiRowSelection: this.selectionMode === 'multiple-click' || this.selectionMode === 'multiple-checkbox',
3658
+ enableSorting: this.enableSorting,
3659
+ enableFilters: this.enableFiltering || this.enableGlobalFilter,
3660
+ enableExpanding: this.enableExpansion || this.enableGrouping,
3661
+ enableGrouping: this.enableGrouping,
3662
+ manualPagination: false,
3663
+ autoResetExpanded: false,
3664
+ renderFallbackValue: null,
3665
+ });
3666
+ // Force update after table creation
3667
+ index.forceUpdate(this.el);
3668
+ }
3669
+ handleStateChange(newState) {
3670
+ const oldState = this.tableState;
3671
+ this.tableState = newState;
3672
+ // Update table options with new state
3673
+ if (this.table) {
3674
+ this.table.setOptions(prev => ({
3675
+ ...prev,
3676
+ state: newState,
3677
+ }));
3678
+ }
3679
+ // Emit events for state changes
3680
+ if (JSON.stringify(oldState.sorting) !== JSON.stringify(newState.sorting)) {
3681
+ this.sortState = newState.sorting;
3682
+ this.bhSortChange.emit({ sorting: newState.sorting });
3683
+ }
3684
+ if (JSON.stringify(oldState.columnFilters) !== JSON.stringify(newState.columnFilters) ||
3685
+ oldState.globalFilter !== newState.globalFilter) {
3686
+ this.filterState = newState.columnFilters;
3687
+ this.globalFilter = newState.globalFilter;
3688
+ this.bhFilterChange.emit({
3689
+ columnFilters: newState.columnFilters,
3690
+ globalFilter: newState.globalFilter,
3691
+ });
3692
+ }
3693
+ if (JSON.stringify(oldState.rowSelection) !== JSON.stringify(newState.rowSelection)) {
3694
+ const selectedIds = Object.keys(newState.rowSelection).filter(id => newState.rowSelection[id]);
3695
+ this.selectedRowIds = selectedIds;
3696
+ const selectedRows = this.table?.getSelectedRowModel().rows.map(r => r.original) ?? [];
3697
+ this.bhSelectionChange.emit({
3698
+ selectedRowIds: selectedIds,
3699
+ selectedRows,
3700
+ });
3701
+ }
3702
+ if (oldState.pagination?.pageIndex !== newState.pagination?.pageIndex ||
3703
+ oldState.pagination?.pageSize !== newState.pagination?.pageSize) {
3704
+ this.page = newState.pagination.pageIndex + 1;
3705
+ this.pageSize = newState.pagination.pageSize;
3706
+ this.bhPageChange.emit({
3707
+ page: this.page,
3708
+ pageSize: this.pageSize,
3709
+ });
3710
+ }
3711
+ // Force re-render
3712
+ index.forceUpdate(this.el);
3713
+ }
3714
+ buildRowSelection() {
3715
+ const selection = {};
3716
+ this.selectedRowIds.forEach(id => { selection[id] = true; });
3717
+ return selection;
3718
+ }
3719
+ buildExpanded() {
3720
+ const expanded = {};
3721
+ this.expandedRowIds.forEach(id => { expanded[id] = true; });
3722
+ return expanded;
3723
+ }
3724
+ buildColumnVisibility() {
3725
+ // Hide grouped columns
3726
+ const visibility = {};
3727
+ if (this.enableGrouping) {
3728
+ this.groupBy.forEach(colId => { visibility[colId] = false; });
3729
+ }
3730
+ return visibility;
3731
+ }
3732
+ // ===========================================================================
3733
+ // Event Handlers
3734
+ // ===========================================================================
3735
+ handleRowClick = (row) => {
3736
+ const rowId = row.id;
3737
+ // Handle click-based selection
3738
+ if (this.selectionMode === 'single-click') {
3739
+ const isSelected = row.getIsSelected();
3740
+ this.table?.resetRowSelection();
3741
+ if (!isSelected) {
3742
+ row.toggleSelected(true);
3743
+ }
3744
+ }
3745
+ else if (this.selectionMode === 'multiple-click') {
3746
+ row.toggleSelected();
3747
+ }
3748
+ this.bhRowClick.emit({
3749
+ row: row.original,
3750
+ rowId,
3751
+ rowIndex: row.index,
3752
+ });
3753
+ };
3754
+ handleCellClick = (row, cell) => {
3755
+ this.bhCellClick.emit({
3756
+ row: row.original,
3757
+ rowId: row.id,
3758
+ rowIndex: row.index,
3759
+ columnId: cell.column.id,
3760
+ value: cell.getValue(),
3761
+ });
3762
+ };
3763
+ handleHeaderClick = (header) => {
3764
+ if (this.enableSorting && header.column.getCanSort()) {
3765
+ header.column.toggleSorting(undefined, this.enableMultiSort);
3766
+ }
3767
+ };
3768
+ handleRowExpand = (row) => {
3769
+ const wasExpanded = row.getIsExpanded();
3770
+ row.toggleExpanded();
3771
+ this.bhExpandChange.emit({
3772
+ rowId: row.id,
3773
+ expanded: !wasExpanded,
3774
+ });
3775
+ };
3776
+ handleGroupToggle = (row) => {
3777
+ const wasExpanded = row.getIsExpanded();
3778
+ row.toggleExpanded();
3779
+ this.bhGroupToggle.emit({
3780
+ groupId: row.id,
3781
+ expanded: !wasExpanded,
3782
+ });
3783
+ };
3784
+ handleGlobalFilterChange = (event) => {
3785
+ const input = event.target;
3786
+ this.table?.setGlobalFilter(input.value);
3787
+ };
3788
+ handleColumnFilterChange = (columnId, value) => {
3789
+ const column = this.table?.getColumn(columnId);
3790
+ if (column) {
3791
+ column.setFilterValue(value || undefined);
3792
+ }
3793
+ };
3794
+ handlePaginationChange = (event) => {
3795
+ const { page, pageSize } = event.detail;
3796
+ this.table?.setPagination({
3797
+ pageIndex: page - 1,
3798
+ pageSize,
3799
+ });
3800
+ };
3801
+ // ===========================================================================
3802
+ // Editing Handlers
3803
+ // ===========================================================================
3804
+ startEditing = (row, columnId) => {
3805
+ if (!this.enableEditing)
3806
+ return;
3807
+ this.editingRowId = row.id;
3808
+ this.editingColumnId = this.editMode === 'cell' ? (columnId || null) : null;
3809
+ // Initialize editing values from current row
3810
+ const values = {};
3811
+ this.columns.forEach(col => {
3812
+ const colId = col.accessorKey || col.id;
3813
+ if (colId) {
3814
+ values[colId] = row.original[colId];
3815
+ }
3816
+ });
3817
+ this.editingValues = values;
3818
+ this.validationErrors = {};
3819
+ this.bhEditStart.emit({
3820
+ rowId: row.id,
3821
+ row: row.original,
3822
+ columnId,
3823
+ });
3824
+ };
3825
+ cancelEditing = () => {
3826
+ if (!this.editingRowId)
3827
+ return;
3828
+ const row = this.table?.getRow(this.editingRowId);
3829
+ if (row) {
3830
+ this.bhEditCancel.emit({
3831
+ rowId: this.editingRowId,
3832
+ row: row.original,
3833
+ });
3834
+ }
3835
+ this.editingRowId = null;
3836
+ this.editingColumnId = null;
3837
+ this.editingValues = {};
3838
+ this.validationErrors = {};
3839
+ };
3840
+ saveEditing = () => {
3841
+ if (!this.editingRowId || !this.table)
3842
+ return;
3843
+ const row = this.table.getRow(this.editingRowId);
3844
+ if (!row)
3845
+ return;
3846
+ // Validate all edited values
3847
+ const errors = {};
3848
+ for (const [columnId, value] of Object.entries(this.editingValues)) {
3849
+ const column = this.table.getColumn(columnId);
3850
+ const validate = column?.columnDef.meta?.validate;
3851
+ if (validate) {
3852
+ const error = validate(value, row.original);
3853
+ if (error) {
3854
+ errors[columnId] = error;
3855
+ this.bhValidationError.emit({
3856
+ rowId: this.editingRowId,
3857
+ columnId,
3858
+ value,
3859
+ error,
3860
+ });
3861
+ }
3862
+ }
3863
+ }
3864
+ if (Object.keys(errors).length > 0) {
3865
+ this.validationErrors = errors;
3866
+ return;
3867
+ }
3868
+ // Determine changes
3869
+ const changes = {};
3870
+ for (const [columnId, newValue] of Object.entries(this.editingValues)) {
3871
+ const originalValue = row.original[columnId];
3872
+ if (originalValue !== newValue) {
3873
+ changes[columnId] = newValue;
3874
+ }
3875
+ }
3876
+ // Build new row
3877
+ const newRow = { ...row.original, ...changes };
3878
+ this.bhEditSave.emit({
3879
+ rowId: this.editingRowId,
3880
+ rowIndex: row.index,
3881
+ originalRow: row.original,
3882
+ changes,
3883
+ newRow,
3884
+ });
3885
+ this.editingRowId = null;
3886
+ this.editingColumnId = null;
3887
+ this.editingValues = {};
3888
+ this.validationErrors = {};
3889
+ };
3890
+ handleEditValueChange = (columnId, newValue) => {
3891
+ const oldValue = this.editingValues[columnId];
3892
+ this.editingValues = { ...this.editingValues, [columnId]: newValue };
3893
+ // Clear validation error for this column
3894
+ if (this.validationErrors[columnId]) {
3895
+ const { [columnId]: _, ...rest } = this.validationErrors;
3896
+ this.validationErrors = rest;
3897
+ }
3898
+ if (this.editingRowId) {
3899
+ this.bhCellChange.emit({
3900
+ rowId: this.editingRowId,
3901
+ columnId,
3902
+ oldValue,
3903
+ newValue,
3904
+ });
3905
+ }
3906
+ };
3907
+ handleEditKeyDown = (event, columnId) => {
3908
+ if (event.key === 'Enter') {
3909
+ event.preventDefault();
3910
+ this.saveEditing();
3911
+ }
3912
+ else if (event.key === 'Escape') {
3913
+ event.preventDefault();
3914
+ this.cancelEditing();
3915
+ }
3916
+ else if (event.key === 'Tab' && this.editMode === 'cell') {
3917
+ event.preventDefault();
3918
+ this.moveToNextEditableCell(columnId, event.shiftKey);
3919
+ }
3920
+ };
3921
+ moveToNextEditableCell = (currentColumnId, reverse) => {
3922
+ const editableColumns = this.columns.filter(col => col.meta?.editable !== false);
3923
+ const currentIndex = editableColumns.findIndex(col => {
3924
+ const colId = col.accessorKey || col.id;
3925
+ return colId === currentColumnId;
3926
+ });
3927
+ if (currentIndex === -1)
3928
+ return;
3929
+ const nextIndex = reverse ? currentIndex - 1 : currentIndex + 1;
3930
+ if (nextIndex >= 0 && nextIndex < editableColumns.length) {
3931
+ const nextCol = editableColumns[nextIndex];
3932
+ const nextColId = nextCol.accessorKey || nextCol.id;
3933
+ this.editingColumnId = nextColId || null;
3934
+ }
3935
+ else {
3936
+ this.saveEditing();
3937
+ }
3938
+ };
3939
+ isEditing(rowId, columnId) {
3940
+ if (this.editingRowId !== rowId)
3941
+ return false;
3942
+ if (this.editMode === 'cell') {
3943
+ return columnId ? this.editingColumnId === columnId : false;
3944
+ }
3945
+ return true;
3946
+ }
3947
+ handleCellDoubleClick = (row, cell) => {
3948
+ if (!this.enableEditing || cell.column.columnDef.meta?.editable === false)
3949
+ return;
3950
+ if (this.editMode === 'cell') {
3951
+ this.startEditing(row, cell.column.id);
3952
+ }
3953
+ };
3954
+ // ===========================================================================
3955
+ // Render Helpers
3956
+ // ===========================================================================
3957
+ flexRender(renderer, context) {
3958
+ if (typeof renderer === 'function') {
3959
+ return renderer(context);
3960
+ }
3961
+ return renderer;
3962
+ }
3963
+ formatCellValue(value, meta) {
3964
+ if (value === null || value === undefined)
3965
+ return '';
3966
+ switch (meta?.type) {
3967
+ case 'number':
3968
+ return typeof value === 'number'
3969
+ ? value.toLocaleString(undefined, meta.numberFormat)
3970
+ : String(value);
3971
+ case 'date':
3972
+ return value instanceof Date
3973
+ ? value.toLocaleDateString(undefined, meta.dateFormat)
3974
+ : new Date(value).toLocaleDateString(undefined, meta.dateFormat);
3975
+ case 'boolean':
3976
+ return value ? 'Yes' : 'No';
3977
+ default:
3978
+ return String(value);
3979
+ }
3980
+ }
3981
+ // ===========================================================================
3982
+ // Render Methods
3983
+ // ===========================================================================
3984
+ renderCaption() {
3985
+ if (!this.caption)
3986
+ return null;
3987
+ const captionClasses = {
3988
+ 'data-grid-caption': true,
3989
+ [`data-grid-caption-${this.captionPosition}`]: true,
3990
+ };
3991
+ return (index.h("div", { class: captionClasses }, index.h("slot", { name: "caption" }, this.caption)));
3992
+ }
3993
+ renderGlobalFilter() {
3994
+ if (!this.enableGlobalFilter)
3995
+ return null;
3996
+ return (index.h("div", { class: "data-grid-global-filter" }, index.h("span", { class: "data-grid-search-icon material-symbols-outlined" }, "search"), index.h("input", { type: "text", class: "data-grid-global-filter-input", placeholder: this.globalFilterPlaceholder, value: this.globalFilter, onInput: this.handleGlobalFilterChange })));
3997
+ }
3998
+ renderHeader() {
3999
+ if (!this.table)
4000
+ return null;
4001
+ const headerGroups = this.table.getHeaderGroups();
4002
+ return (index.h("div", { class: { 'data-grid-header': true, 'data-grid-header-sticky': this.stickyHeader } }, headerGroups.map(headerGroup => (index.h("div", { class: "data-grid-header-row", role: "row", key: headerGroup.id }, this.renderSelectionHeader(), this.enableExpansion && !this.enableGrouping && (index.h("div", { class: "data-grid-header-cell data-grid-cell-expand", role: "columnheader" })), headerGroup.headers.map(header => this.renderHeaderCell(header)), this.enableEditing && this.showEditActions && this.editMode === 'row' && (index.h("div", { class: "data-grid-header-cell data-grid-cell-actions", role: "columnheader" }))))), this.showFilterRow && this.renderFilterRow()));
4003
+ }
4004
+ renderSelectionHeader() {
4005
+ if (this.selectionMode === 'none' || this.selectionMode === 'single-click' || this.selectionMode === 'multiple-click') {
4006
+ return null;
4007
+ }
4008
+ if (this.selectionMode === 'single-radio') {
4009
+ return index.h("div", { class: "data-grid-header-cell data-grid-cell-select", role: "columnheader" });
4010
+ }
4011
+ // Multiple checkbox - show select all
4012
+ const isAllSelected = this.table?.getIsAllRowsSelected();
4013
+ const isSomeSelected = this.table?.getIsSomeRowsSelected();
4014
+ return (index.h("div", { class: "data-grid-header-cell data-grid-cell-select", role: "columnheader" }, index.h("bh-checkbox", { size: "sm", checked: isAllSelected, indeterminate: isSomeSelected && !isAllSelected, onBhChange: () => this.table?.toggleAllRowsSelected() })));
4015
+ }
4016
+ renderHeaderCell(header) {
4017
+ if (header.isPlaceholder) {
4018
+ return index.h("div", { class: "data-grid-header-cell", role: "columnheader", key: header.id });
4019
+ }
4020
+ const canSort = header.column.getCanSort();
4021
+ const sortDirection = header.column.getIsSorted();
4022
+ const meta = header.column.columnDef.meta;
4023
+ const cellClasses = {
4024
+ 'data-grid-header-cell': true,
4025
+ 'data-grid-header-cell-sortable': canSort,
4026
+ 'data-grid-header-cell-sorted': !!sortDirection,
4027
+ [`data-grid-cell-align-${meta?.align || 'left'}`]: true,
4028
+ };
4029
+ const style = header.column.getSize()
4030
+ ? { width: `${header.column.getSize()}px` }
4031
+ : {};
4032
+ return (index.h("div", { class: cellClasses, style: style, role: "columnheader", "aria-sort": sortDirection === 'asc' ? 'ascending' : sortDirection === 'desc' ? 'descending' : 'none', onClick: () => canSort && this.handleHeaderClick(header), key: header.id }, index.h("span", { class: "data-grid-header-text" }, this.flexRender(header.column.columnDef.header, header.getContext())), canSort && sortDirection && (index.h("span", { class: "data-grid-sort-icon material-symbols-outlined" }, sortDirection === 'asc' ? 'arrow_upward' : 'arrow_downward'))));
4033
+ }
4034
+ renderFilterRow() {
4035
+ if (!this.table)
4036
+ return null;
4037
+ const headers = this.table.getHeaderGroups()[0]?.headers || [];
4038
+ return (index.h("div", { class: "data-grid-filter-row", role: "row" }, (this.selectionMode === 'single-radio' || this.selectionMode === 'multiple-checkbox') && (index.h("div", { class: "data-grid-filter-cell data-grid-cell-select", role: "cell" })), this.enableExpansion && !this.enableGrouping && (index.h("div", { class: "data-grid-filter-cell data-grid-cell-expand", role: "cell" })), headers.map(header => {
4039
+ const canFilter = header.column.getCanFilter();
4040
+ const meta = header.column.columnDef.meta;
4041
+ if (!canFilter || meta?.filterable === false) {
4042
+ return index.h("div", { class: "data-grid-filter-cell", role: "cell", key: header.id });
4043
+ }
4044
+ const filterValue = header.column.getFilterValue() ?? '';
4045
+ return (index.h("div", { class: "data-grid-filter-cell", role: "cell", key: header.id }, index.h("input", { type: meta?.type === 'number' ? 'number' : meta?.type === 'date' ? 'date' : 'text', class: "data-grid-filter-input", placeholder: `Filter...`, value: filterValue, onInput: (e) => this.handleColumnFilterChange(header.column.id, e.target.value) })));
4046
+ }), this.enableEditing && this.showEditActions && this.editMode === 'row' && (index.h("div", { class: "data-grid-filter-cell data-grid-cell-actions", role: "cell" }))));
4047
+ }
4048
+ renderBody() {
4049
+ if (!this.table)
4050
+ return null;
4051
+ // Loading skeleton
4052
+ if (this.loading && this.loadingType === 'skeleton') {
4053
+ return this.renderSkeleton();
4054
+ }
4055
+ const rows = this.table.getRowModel().rows;
4056
+ // Empty state
4057
+ if (rows.length === 0) {
4058
+ return this.renderEmptyState();
4059
+ }
4060
+ return (index.h("div", { class: "data-grid-body", role: "rowgroup" }, rows.map(row => {
4061
+ if (row.getIsGrouped()) {
4062
+ return this.renderGroupRow(row);
4063
+ }
4064
+ return this.renderDataRow(row);
4065
+ })));
4066
+ }
4067
+ renderDataRow(row) {
4068
+ const isSelected = row.getIsSelected();
4069
+ const isExpanded = row.getIsExpanded();
4070
+ const isRowEditing = this.editingRowId === row.id;
4071
+ const rowClasses = {
4072
+ 'data-grid-row': true,
4073
+ 'data-grid-row-selected': isSelected,
4074
+ 'data-grid-row-expanded': isExpanded,
4075
+ 'data-grid-row-editing': isRowEditing,
4076
+ 'data-grid-row-hover': this.hoveredRowId === row.id,
4077
+ 'data-grid-row-striped': this.striped && row.index % 2 === 1,
4078
+ 'data-grid-row-clickable': this.selectionMode === 'single-click' || this.selectionMode === 'multiple-click',
4079
+ };
4080
+ return [
4081
+ index.h("div", { class: rowClasses, role: "row", "aria-selected": isSelected ? 'true' : 'false', key: row.id, onClick: () => this.handleRowClick(row), onMouseEnter: () => { this.hoveredRowId = row.id; }, onMouseLeave: () => { this.hoveredRowId = null; } }, this.renderSelectionCell(row), this.enableExpansion && !this.enableGrouping && (index.h("div", { class: "data-grid-cell data-grid-cell-expand", role: "cell", onClick: (e) => { e.stopPropagation(); } }, row.getCanExpand() && (index.h("button", { class: "data-grid-expand-btn", onClick: () => this.handleRowExpand(row), "aria-label": isExpanded ? 'Collapse row' : 'Expand row' }, index.h("span", { class: "material-symbols-outlined" }, isExpanded ? 'expand_more' : 'chevron_right'))))), row.getVisibleCells().map(cell => this.renderCell(row, cell)), this.enableEditing && this.showEditActions && this.editMode === 'row' && (index.h("div", { class: "data-grid-cell data-grid-cell-actions", role: "cell", onClick: (e) => e.stopPropagation() }, isRowEditing ? (index.h("div", { class: "data-grid-edit-actions" }, index.h("button", { class: "data-grid-action-btn", onClick: () => this.saveEditing(), title: "Save" }, index.h("span", { class: "material-symbols-outlined" }, "check")), index.h("button", { class: "data-grid-action-btn", onClick: () => this.cancelEditing(), title: "Cancel" }, index.h("span", { class: "material-symbols-outlined" }, "close")))) : (index.h("button", { class: "data-grid-action-btn", onClick: () => this.startEditing(row), title: "Edit" }, index.h("span", { class: "material-symbols-outlined" }, "edit")))))),
4082
+ // Expanded content
4083
+ isExpanded && this.enableExpansion && !this.enableGrouping && (index.h("div", { class: "data-grid-row-expansion", key: `${row.id}-expansion` }, index.h("slot", { name: "expanded-row" }))),
4084
+ ];
4085
+ }
4086
+ renderSelectionCell(row) {
4087
+ if (this.selectionMode === 'none' || this.selectionMode === 'single-click' || this.selectionMode === 'multiple-click') {
4088
+ return null;
4089
+ }
4090
+ const isSelected = row.getIsSelected();
4091
+ if (this.selectionMode === 'single-radio') {
4092
+ return (index.h("div", { class: "data-grid-cell data-grid-cell-select", role: "cell", onClick: (e) => e.stopPropagation() }, index.h("bh-radio-button", { selected: isSelected, onBhChange: () => {
4093
+ this.table?.resetRowSelection();
4094
+ row.toggleSelected(true);
4095
+ } })));
4096
+ }
4097
+ // Multiple checkbox
4098
+ return (index.h("div", { class: "data-grid-cell data-grid-cell-select", role: "cell", onClick: (e) => e.stopPropagation() }, index.h("bh-checkbox", { size: "sm", checked: isSelected, onBhChange: () => row.toggleSelected() })));
4099
+ }
4100
+ renderCell(row, cell) {
4101
+ const meta = cell.column.columnDef.meta;
4102
+ const columnId = cell.column.id;
4103
+ const isCellEditing = this.isEditing(row.id, columnId);
4104
+ const canEdit = this.enableEditing && meta?.editable !== false;
4105
+ const hasError = !!this.validationErrors[columnId];
4106
+ const cellClasses = {
4107
+ 'data-grid-cell': true,
4108
+ [`data-grid-cell-align-${meta?.align || (meta?.type === 'number' ? 'right' : 'left')}`]: true,
4109
+ [`data-grid-cell-type-${meta?.type || 'text'}`]: true,
4110
+ 'data-grid-cell-editing': isCellEditing,
4111
+ 'data-grid-cell-editable': canEdit && !isCellEditing,
4112
+ 'data-grid-cell-error': hasError,
4113
+ };
4114
+ const style = cell.column.getSize()
4115
+ ? { width: `${cell.column.getSize()}px` }
4116
+ : {};
4117
+ return (index.h("div", { class: cellClasses, style: style, role: "cell", key: cell.id, onClick: (e) => {
4118
+ e.stopPropagation();
4119
+ this.handleCellClick(row, cell);
4120
+ }, onDblClick: (e) => {
4121
+ e.stopPropagation();
4122
+ this.handleCellDoubleClick(row, cell);
4123
+ } }, isCellEditing ? this.renderEditInput(cell) : this.renderCellContent(cell), hasError && (index.h("span", { class: "data-grid-cell-error-text" }, this.validationErrors[columnId]))));
4124
+ }
4125
+ renderCellContent(cell) {
4126
+ const rendered = this.flexRender(cell.column.columnDef.cell, cell.getContext());
4127
+ // If custom cell renderer returns something, use it
4128
+ if (rendered !== undefined && rendered !== null && rendered !== cell.getValue()) {
4129
+ return rendered;
4130
+ }
4131
+ // Default formatting
4132
+ return this.formatCellValue(cell.getValue(), cell.column.columnDef.meta);
4133
+ }
4134
+ renderEditInput(cell) {
4135
+ const columnId = cell.column.id;
4136
+ const meta = cell.column.columnDef.meta;
4137
+ const currentValue = this.editingValues[columnId] ?? cell.getValue();
4138
+ const inputType = meta?.type === 'number' ? 'number'
4139
+ : meta?.type === 'date' ? 'date'
4140
+ : meta?.type === 'boolean' ? 'checkbox'
4141
+ : 'text';
4142
+ if (meta?.type === 'boolean') {
4143
+ return (index.h("bh-checkbox", { size: "sm", checked: Boolean(currentValue), onBhChange: (e) => this.handleEditValueChange(columnId, e.detail.checked) }));
4144
+ }
4145
+ return (index.h("input", { type: inputType, class: "data-grid-edit-input", value: currentValue != null ? String(currentValue) : '', onInput: (e) => {
4146
+ const input = e.target;
4147
+ const newValue = meta?.type === 'number' ? Number(input.value) : input.value;
4148
+ this.handleEditValueChange(columnId, newValue);
4149
+ }, onKeyDown: (e) => this.handleEditKeyDown(e, columnId), ref: (el) => el && requestAnimationFrame(() => el.focus()) }));
4150
+ }
4151
+ renderGroupRow(row) {
4152
+ const isExpanded = row.getIsExpanded();
4153
+ const groupingColumnId = row.groupingColumnId;
4154
+ const groupValue = row.groupingValue;
4155
+ const leafRows = row.getLeafRows();
4156
+ // Check if all leaf rows are selected for group selection
4157
+ const allSelected = leafRows.every(r => r.getIsSelected());
4158
+ const someSelected = leafRows.some(r => r.getIsSelected());
4159
+ const rowClasses = {
4160
+ 'data-grid-row': true,
4161
+ 'data-grid-row-group': true,
4162
+ 'data-grid-row-group-expanded': isExpanded,
4163
+ };
4164
+ return [
4165
+ index.h("div", { class: rowClasses, role: "row", "aria-expanded": isExpanded ? 'true' : 'false', key: row.id, onClick: () => this.handleGroupToggle(row) }, this.selectionMode === 'multiple-checkbox' && (index.h("div", { class: "data-grid-cell data-grid-cell-select", role: "cell", onClick: (e) => e.stopPropagation() }, index.h("bh-checkbox", { size: "sm", checked: allSelected, indeterminate: someSelected && !allSelected, onBhChange: () => {
4166
+ leafRows.forEach(r => r.toggleSelected(!allSelected));
4167
+ } }))), index.h("div", { class: "data-grid-cell data-grid-cell-group-label", role: "cell" }, index.h("button", { class: "data-grid-group-toggle", "aria-label": isExpanded ? 'Collapse group' : 'Expand group' }, index.h("span", { class: "material-symbols-outlined" }, isExpanded ? 'expand_more' : 'chevron_right')), index.h("span", { class: "data-grid-group-label" }, index.h("span", { class: "data-grid-group-column" }, groupingColumnId, ": "), index.h("span", { class: "data-grid-group-value" }, String(groupValue))), index.h("span", { class: "data-grid-group-count" }, "(", leafRows.length, " ", leafRows.length === 1 ? 'item' : 'items', ")"))),
4168
+ // Render child rows if expanded
4169
+ isExpanded && row.subRows.map(subRow => {
4170
+ if (subRow.getIsGrouped()) {
4171
+ return this.renderGroupRow(subRow);
4172
+ }
4173
+ return this.renderDataRow(subRow);
4174
+ }),
4175
+ ];
4176
+ }
4177
+ renderEmptyState() {
4178
+ return (index.h("div", { class: "data-grid-empty" }, index.h("bh-empty-state", { emptyTitle: this.emptyTitle, description: this.emptyDescription })));
4179
+ }
4180
+ renderSkeleton() {
4181
+ const skeletonRows = Array.from({ length: this.skeletonRowCount }, (_, i) => i);
4182
+ const columnCount = this.columns.length +
4183
+ (this.selectionMode === 'single-radio' || this.selectionMode === 'multiple-checkbox' ? 1 : 0) +
4184
+ (this.enableExpansion && !this.enableGrouping ? 1 : 0) +
4185
+ (this.enableEditing && this.showEditActions && this.editMode === 'row' ? 1 : 0);
4186
+ return (index.h("div", { class: "data-grid-body data-grid-skeleton", role: "rowgroup" }, skeletonRows.map(i => (index.h("div", { class: "data-grid-row data-grid-row-skeleton", role: "row", key: i }, Array.from({ length: columnCount }, (_, j) => (index.h("div", { class: "data-grid-cell", role: "cell", key: j }, index.h("bh-skeleton-loader", { width: "80%", height: "16px" })))))))));
4187
+ }
4188
+ renderLoadingOverlay() {
4189
+ if (!this.loading || this.loadingType !== 'spinner')
4190
+ return null;
4191
+ return (index.h("div", { class: "data-grid-loading-overlay" }, index.h("bh-loader-spinner", { size: "lg" })));
4192
+ }
4193
+ renderPagination() {
4194
+ if (!this.enablePagination || !this.table)
4195
+ return null;
4196
+ const rowCount = this.table.getFilteredRowModel().rows.length;
4197
+ return (index.h("bh-pagination", { page: this.page, totalItems: rowCount, pageSize: this.pageSize, pageSizeOptions: this.pageSizeOptions, onBhPageChange: this.handlePaginationChange, onBhPageSizeChange: this.handlePaginationChange }));
4198
+ }
4199
+ // ===========================================================================
4200
+ // Main Render
4201
+ // ===========================================================================
4202
+ render() {
4203
+ const gridClasses = {
4204
+ 'data-grid': true,
4205
+ [`data-grid-${this.size}`]: true,
4206
+ 'data-grid-bordered': this.bordered,
4207
+ 'data-grid-striped': this.striped,
4208
+ 'data-grid-loading': this.loading,
4209
+ };
4210
+ const containerStyle = this.maxHeight
4211
+ ? { maxHeight: this.maxHeight, overflowY: 'auto' }
4212
+ : {};
4213
+ return (index.h("div", { key: 'aa7f1e09699fb99be7625f90b3b94fa9e6927498', class: gridClasses, role: "grid", "aria-busy": this.loading ? 'true' : 'false' }, this.captionPosition === 'top' && this.renderCaption(), this.renderGlobalFilter(), index.h("div", { key: '2929257ae04c88f8d225edac899fe7ec5f195fb2', class: "data-grid-container", style: containerStyle }, index.h("div", { key: '66bfba27da2199fbb1735229ea07e522b0f83dd1', class: "data-grid-table" }, this.renderHeader(), this.renderBody()), this.renderLoadingOverlay()), this.captionPosition === 'bottom' && this.renderCaption(), this.renderPagination()));
4214
+ }
4215
+ static get watchers() { return {
4216
+ "data": ["handleDataChange"],
4217
+ "columns": ["handleDataChange"],
4218
+ "sortState": ["handleSortStateChange"],
4219
+ "filterState": ["handleFilterStateChange"],
4220
+ "selectedRowIds": ["handleSelectedRowIdsChange"],
4221
+ "page": ["handlePaginationPropChange"],
4222
+ "pageSize": ["handlePaginationPropChange"],
4223
+ "expandedRowIds": ["handleExpandedRowIdsChange"],
4224
+ "groupBy": ["handleGroupByChange"]
4225
+ }; }
4226
+ };
4227
+ BhDataGrid.style = bhDataGridCss;
4228
+
4229
+ exports.bh_data_grid = BhDataGrid;
4230
+ //# sourceMappingURL=bh-data-grid.entry.cjs.js.map