@actabldesign/bellhop-core 0.0.3 → 0.0.4

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