@canonical/dataviews-react 0.45.0 → 0.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (346) hide show
  1. package/LICENSE +166 -0
  2. package/package.json +11 -10
  3. package/dist/esm/lib/DataTable/DataTable.js +0 -128
  4. package/dist/esm/lib/DataTable/DataTable.js.map +0 -1
  5. package/dist/esm/lib/DataTable/columnKeys.js +0 -64
  6. package/dist/esm/lib/DataTable/columnKeys.js.map +0 -1
  7. package/dist/esm/lib/DataTable/common/BodyCell/BodyCell.js +0 -45
  8. package/dist/esm/lib/DataTable/common/BodyCell/BodyCell.js.map +0 -1
  9. package/dist/esm/lib/DataTable/common/BodyCell/index.js +0 -2
  10. package/dist/esm/lib/DataTable/common/BodyCell/index.js.map +0 -1
  11. package/dist/esm/lib/DataTable/common/BodyCell/types.js +0 -2
  12. package/dist/esm/lib/DataTable/common/BodyCell/types.js.map +0 -1
  13. package/dist/esm/lib/DataTable/common/HeaderCell/HeaderCell.js +0 -47
  14. package/dist/esm/lib/DataTable/common/HeaderCell/HeaderCell.js.map +0 -1
  15. package/dist/esm/lib/DataTable/common/HeaderCell/index.js +0 -2
  16. package/dist/esm/lib/DataTable/common/HeaderCell/index.js.map +0 -1
  17. package/dist/esm/lib/DataTable/common/HeaderCell/types.js +0 -2
  18. package/dist/esm/lib/DataTable/common/HeaderCell/types.js.map +0 -1
  19. package/dist/esm/lib/DataTable/common/ResizeHandle/ResizeHandle.js +0 -142
  20. package/dist/esm/lib/DataTable/common/ResizeHandle/ResizeHandle.js.map +0 -1
  21. package/dist/esm/lib/DataTable/common/ResizeHandle/index.js +0 -2
  22. package/dist/esm/lib/DataTable/common/ResizeHandle/index.js.map +0 -1
  23. package/dist/esm/lib/DataTable/common/ResizeHandle/types.js +0 -2
  24. package/dist/esm/lib/DataTable/common/ResizeHandle/types.js.map +0 -1
  25. package/dist/esm/lib/DataTable/common/Row/Row.js +0 -28
  26. package/dist/esm/lib/DataTable/common/Row/Row.js.map +0 -1
  27. package/dist/esm/lib/DataTable/common/Row/index.js +0 -2
  28. package/dist/esm/lib/DataTable/common/Row/index.js.map +0 -1
  29. package/dist/esm/lib/DataTable/common/Row/types.js +0 -2
  30. package/dist/esm/lib/DataTable/common/Row/types.js.map +0 -1
  31. package/dist/esm/lib/DataTable/common/SelectAllCell/SelectAllCell.js +0 -45
  32. package/dist/esm/lib/DataTable/common/SelectAllCell/SelectAllCell.js.map +0 -1
  33. package/dist/esm/lib/DataTable/common/SelectAllCell/index.js +0 -2
  34. package/dist/esm/lib/DataTable/common/SelectAllCell/index.js.map +0 -1
  35. package/dist/esm/lib/DataTable/common/SelectAllCell/types.js +0 -2
  36. package/dist/esm/lib/DataTable/common/SelectAllCell/types.js.map +0 -1
  37. package/dist/esm/lib/DataTable/common/SelectionCell/SelectionCell.js +0 -17
  38. package/dist/esm/lib/DataTable/common/SelectionCell/SelectionCell.js.map +0 -1
  39. package/dist/esm/lib/DataTable/common/SelectionCell/index.js +0 -2
  40. package/dist/esm/lib/DataTable/common/SelectionCell/index.js.map +0 -1
  41. package/dist/esm/lib/DataTable/common/SelectionCell/types.js +0 -2
  42. package/dist/esm/lib/DataTable/common/SelectionCell/types.js.map +0 -1
  43. package/dist/esm/lib/DataTable/common/TableBody/TableBody.js +0 -30
  44. package/dist/esm/lib/DataTable/common/TableBody/TableBody.js.map +0 -1
  45. package/dist/esm/lib/DataTable/common/TableBody/index.js +0 -2
  46. package/dist/esm/lib/DataTable/common/TableBody/index.js.map +0 -1
  47. package/dist/esm/lib/DataTable/common/TableBody/types.js +0 -2
  48. package/dist/esm/lib/DataTable/common/TableBody/types.js.map +0 -1
  49. package/dist/esm/lib/DataTable/common/index.js +0 -8
  50. package/dist/esm/lib/DataTable/common/index.js.map +0 -1
  51. package/dist/esm/lib/DataTable/defaultStatusText.js +0 -16
  52. package/dist/esm/lib/DataTable/defaultStatusText.js.map +0 -1
  53. package/dist/esm/lib/DataTable/hooks/index.js +0 -6
  54. package/dist/esm/lib/DataTable/hooks/index.js.map +0 -1
  55. package/dist/esm/lib/DataTable/hooks/types.js +0 -6
  56. package/dist/esm/lib/DataTable/hooks/types.js.map +0 -1
  57. package/dist/esm/lib/DataTable/hooks/usePreferredWidths.js +0 -95
  58. package/dist/esm/lib/DataTable/hooks/usePreferredWidths.js.map +0 -1
  59. package/dist/esm/lib/DataTable/hooks/useRowScopes.js +0 -25
  60. package/dist/esm/lib/DataTable/hooks/useRowScopes.js.map +0 -1
  61. package/dist/esm/lib/DataTable/hooks/useStableCallback.js +0 -17
  62. package/dist/esm/lib/DataTable/hooks/useStableCallback.js.map +0 -1
  63. package/dist/esm/lib/DataTable/hooks/useStableValue.js +0 -18
  64. package/dist/esm/lib/DataTable/hooks/useStableValue.js.map +0 -1
  65. package/dist/esm/lib/DataTable/hooks/useTableGeometry.js +0 -124
  66. package/dist/esm/lib/DataTable/hooks/useTableGeometry.js.map +0 -1
  67. package/dist/esm/lib/DataTable/index.js +0 -2
  68. package/dist/esm/lib/DataTable/index.js.map +0 -1
  69. package/dist/esm/lib/DataTable/styles.css +0 -261
  70. package/dist/esm/lib/DataTable/tableStatus.js +0 -28
  71. package/dist/esm/lib/DataTable/tableStatus.js.map +0 -1
  72. package/dist/esm/lib/DataTable/types.js +0 -2
  73. package/dist/esm/lib/DataTable/types.js.map +0 -1
  74. package/dist/esm/lib/DataViews/CellScopeContext.js +0 -8
  75. package/dist/esm/lib/DataViews/CellScopeContext.js.map +0 -1
  76. package/dist/esm/lib/DataViews/Context.js +0 -9
  77. package/dist/esm/lib/DataViews/Context.js.map +0 -1
  78. package/dist/esm/lib/DataViews/Provider.js +0 -30
  79. package/dist/esm/lib/DataViews/Provider.js.map +0 -1
  80. package/dist/esm/lib/DataViews/common/Actions/Actions.js +0 -60
  81. package/dist/esm/lib/DataViews/common/Actions/Actions.js.map +0 -1
  82. package/dist/esm/lib/DataViews/common/Actions/index.js +0 -2
  83. package/dist/esm/lib/DataViews/common/Actions/index.js.map +0 -1
  84. package/dist/esm/lib/DataViews/common/Actions/styles.css +0 -42
  85. package/dist/esm/lib/DataViews/common/Actions/types.js +0 -2
  86. package/dist/esm/lib/DataViews/common/Actions/types.js.map +0 -1
  87. package/dist/esm/lib/DataViews/common/Filters/Filters.js +0 -39
  88. package/dist/esm/lib/DataViews/common/Filters/Filters.js.map +0 -1
  89. package/dist/esm/lib/DataViews/common/Filters/common/BoundFilter/BoundFilter.js +0 -56
  90. package/dist/esm/lib/DataViews/common/Filters/common/BoundFilter/BoundFilter.js.map +0 -1
  91. package/dist/esm/lib/DataViews/common/Filters/common/BoundFilter/index.js +0 -2
  92. package/dist/esm/lib/DataViews/common/Filters/common/BoundFilter/index.js.map +0 -1
  93. package/dist/esm/lib/DataViews/common/Filters/common/BoundFilter/types.js +0 -2
  94. package/dist/esm/lib/DataViews/common/Filters/common/BoundFilter/types.js.map +0 -1
  95. package/dist/esm/lib/DataViews/common/Filters/common/ChoicesFilter/ChoicesFilter.js +0 -31
  96. package/dist/esm/lib/DataViews/common/Filters/common/ChoicesFilter/ChoicesFilter.js.map +0 -1
  97. package/dist/esm/lib/DataViews/common/Filters/common/ChoicesFilter/index.js +0 -2
  98. package/dist/esm/lib/DataViews/common/Filters/common/ChoicesFilter/index.js.map +0 -1
  99. package/dist/esm/lib/DataViews/common/Filters/common/ChoicesFilter/types.js +0 -2
  100. package/dist/esm/lib/DataViews/common/Filters/common/ChoicesFilter/types.js.map +0 -1
  101. package/dist/esm/lib/DataViews/common/Filters/common/FlagFilter/FlagFilter.js +0 -23
  102. package/dist/esm/lib/DataViews/common/Filters/common/FlagFilter/FlagFilter.js.map +0 -1
  103. package/dist/esm/lib/DataViews/common/Filters/common/FlagFilter/index.js +0 -2
  104. package/dist/esm/lib/DataViews/common/Filters/common/FlagFilter/index.js.map +0 -1
  105. package/dist/esm/lib/DataViews/common/Filters/common/FlagFilter/types.js +0 -2
  106. package/dist/esm/lib/DataViews/common/Filters/common/FlagFilter/types.js.map +0 -1
  107. package/dist/esm/lib/DataViews/common/Filters/common/index.js +0 -4
  108. package/dist/esm/lib/DataViews/common/Filters/common/index.js.map +0 -1
  109. package/dist/esm/lib/DataViews/common/Filters/handleFor.js +0 -13
  110. package/dist/esm/lib/DataViews/common/Filters/handleFor.js.map +0 -1
  111. package/dist/esm/lib/DataViews/common/Filters/index.js +0 -2
  112. package/dist/esm/lib/DataViews/common/Filters/index.js.map +0 -1
  113. package/dist/esm/lib/DataViews/common/Filters/types.js +0 -2
  114. package/dist/esm/lib/DataViews/common/Filters/types.js.map +0 -1
  115. package/dist/esm/lib/DataViews/common/Pagination/Pagination.js +0 -20
  116. package/dist/esm/lib/DataViews/common/Pagination/Pagination.js.map +0 -1
  117. package/dist/esm/lib/DataViews/common/Pagination/index.js +0 -2
  118. package/dist/esm/lib/DataViews/common/Pagination/index.js.map +0 -1
  119. package/dist/esm/lib/DataViews/common/Pagination/types.js +0 -2
  120. package/dist/esm/lib/DataViews/common/Pagination/types.js.map +0 -1
  121. package/dist/esm/lib/DataViews/common/Views/Views.js +0 -157
  122. package/dist/esm/lib/DataViews/common/Views/Views.js.map +0 -1
  123. package/dist/esm/lib/DataViews/common/Views/common/DeleteConfirm/DeleteConfirm.js +0 -24
  124. package/dist/esm/lib/DataViews/common/Views/common/DeleteConfirm/DeleteConfirm.js.map +0 -1
  125. package/dist/esm/lib/DataViews/common/Views/common/DeleteConfirm/index.js +0 -2
  126. package/dist/esm/lib/DataViews/common/Views/common/DeleteConfirm/index.js.map +0 -1
  127. package/dist/esm/lib/DataViews/common/Views/common/DeleteConfirm/types.js +0 -2
  128. package/dist/esm/lib/DataViews/common/Views/common/DeleteConfirm/types.js.map +0 -1
  129. package/dist/esm/lib/DataViews/common/Views/common/NameForm/NameForm.js +0 -40
  130. package/dist/esm/lib/DataViews/common/Views/common/NameForm/NameForm.js.map +0 -1
  131. package/dist/esm/lib/DataViews/common/Views/common/NameForm/index.js +0 -2
  132. package/dist/esm/lib/DataViews/common/Views/common/NameForm/index.js.map +0 -1
  133. package/dist/esm/lib/DataViews/common/Views/common/NameForm/types.js +0 -2
  134. package/dist/esm/lib/DataViews/common/Views/common/NameForm/types.js.map +0 -1
  135. package/dist/esm/lib/DataViews/common/Views/common/index.js +0 -3
  136. package/dist/esm/lib/DataViews/common/Views/common/index.js.map +0 -1
  137. package/dist/esm/lib/DataViews/common/Views/index.js +0 -2
  138. package/dist/esm/lib/DataViews/common/Views/index.js.map +0 -1
  139. package/dist/esm/lib/DataViews/common/Views/styles.css +0 -57
  140. package/dist/esm/lib/DataViews/common/Views/types.js +0 -2
  141. package/dist/esm/lib/DataViews/common/Views/types.js.map +0 -1
  142. package/dist/esm/lib/DataViews/common/Views/viewStatusText.js +0 -61
  143. package/dist/esm/lib/DataViews/common/Views/viewStatusText.js.map +0 -1
  144. package/dist/esm/lib/DataViews/common/index.js +0 -5
  145. package/dist/esm/lib/DataViews/common/index.js.map +0 -1
  146. package/dist/esm/lib/DataViews/hooks/index.js +0 -5
  147. package/dist/esm/lib/DataViews/hooks/index.js.map +0 -1
  148. package/dist/esm/lib/DataViews/hooks/types.js +0 -2
  149. package/dist/esm/lib/DataViews/hooks/types.js.map +0 -1
  150. package/dist/esm/lib/DataViews/hooks/useDataViews.js +0 -35
  151. package/dist/esm/lib/DataViews/hooks/useDataViews.js.map +0 -1
  152. package/dist/esm/lib/DataViews/hooks/useDataViewsCell.js +0 -25
  153. package/dist/esm/lib/DataViews/hooks/useDataViewsCell.js.map +0 -1
  154. package/dist/esm/lib/DataViews/hooks/useDataViewsField.js +0 -18
  155. package/dist/esm/lib/DataViews/hooks/useDataViewsField.js.map +0 -1
  156. package/dist/esm/lib/DataViews/hooks/useDataViewsState.js +0 -14
  157. package/dist/esm/lib/DataViews/hooks/useDataViewsState.js.map +0 -1
  158. package/dist/esm/lib/DataViews/hooks/useDataViewsValue.js +0 -9
  159. package/dist/esm/lib/DataViews/hooks/useDataViewsValue.js.map +0 -1
  160. package/dist/esm/lib/DataViews/index.js +0 -3
  161. package/dist/esm/lib/DataViews/index.js.map +0 -1
  162. package/dist/esm/lib/DataViews/plural.js +0 -5
  163. package/dist/esm/lib/DataViews/plural.js.map +0 -1
  164. package/dist/esm/lib/DataViews/sentenceOf.js +0 -8
  165. package/dist/esm/lib/DataViews/sentenceOf.js.map +0 -1
  166. package/dist/esm/lib/DataViews/types.js +0 -2
  167. package/dist/esm/lib/DataViews/types.js.map +0 -1
  168. package/dist/esm/lib/PaginationBar/PaginationBar.js +0 -104
  169. package/dist/esm/lib/PaginationBar/PaginationBar.js.map +0 -1
  170. package/dist/esm/lib/PaginationBar/index.js +0 -2
  171. package/dist/esm/lib/PaginationBar/index.js.map +0 -1
  172. package/dist/esm/lib/PaginationBar/paginationState.js +0 -32
  173. package/dist/esm/lib/PaginationBar/paginationState.js.map +0 -1
  174. package/dist/esm/lib/PaginationBar/styles.css +0 -105
  175. package/dist/esm/lib/PaginationBar/types.js +0 -2
  176. package/dist/esm/lib/PaginationBar/types.js.map +0 -1
  177. package/dist/types/lib/DataTable/DataTable.d.ts +0 -24
  178. package/dist/types/lib/DataTable/DataTable.d.ts.map +0 -1
  179. package/dist/types/lib/DataTable/columnKeys.d.ts +0 -45
  180. package/dist/types/lib/DataTable/columnKeys.d.ts.map +0 -1
  181. package/dist/types/lib/DataTable/common/BodyCell/BodyCell.d.ts +0 -17
  182. package/dist/types/lib/DataTable/common/BodyCell/BodyCell.d.ts.map +0 -1
  183. package/dist/types/lib/DataTable/common/BodyCell/index.d.ts +0 -3
  184. package/dist/types/lib/DataTable/common/BodyCell/index.d.ts.map +0 -1
  185. package/dist/types/lib/DataTable/common/BodyCell/types.d.ts +0 -16
  186. package/dist/types/lib/DataTable/common/BodyCell/types.d.ts.map +0 -1
  187. package/dist/types/lib/DataTable/common/HeaderCell/HeaderCell.d.ts +0 -12
  188. package/dist/types/lib/DataTable/common/HeaderCell/HeaderCell.d.ts.map +0 -1
  189. package/dist/types/lib/DataTable/common/HeaderCell/index.d.ts +0 -3
  190. package/dist/types/lib/DataTable/common/HeaderCell/index.d.ts.map +0 -1
  191. package/dist/types/lib/DataTable/common/HeaderCell/types.d.ts +0 -44
  192. package/dist/types/lib/DataTable/common/HeaderCell/types.d.ts.map +0 -1
  193. package/dist/types/lib/DataTable/common/ResizeHandle/ResizeHandle.d.ts +0 -14
  194. package/dist/types/lib/DataTable/common/ResizeHandle/ResizeHandle.d.ts.map +0 -1
  195. package/dist/types/lib/DataTable/common/ResizeHandle/index.d.ts +0 -3
  196. package/dist/types/lib/DataTable/common/ResizeHandle/index.d.ts.map +0 -1
  197. package/dist/types/lib/DataTable/common/ResizeHandle/types.d.ts +0 -21
  198. package/dist/types/lib/DataTable/common/ResizeHandle/types.d.ts.map +0 -1
  199. package/dist/types/lib/DataTable/common/Row/Row.d.ts +0 -15
  200. package/dist/types/lib/DataTable/common/Row/Row.d.ts.map +0 -1
  201. package/dist/types/lib/DataTable/common/Row/index.d.ts +0 -3
  202. package/dist/types/lib/DataTable/common/Row/index.d.ts.map +0 -1
  203. package/dist/types/lib/DataTable/common/Row/types.d.ts +0 -18
  204. package/dist/types/lib/DataTable/common/Row/types.d.ts.map +0 -1
  205. package/dist/types/lib/DataTable/common/SelectAllCell/SelectAllCell.d.ts +0 -9
  206. package/dist/types/lib/DataTable/common/SelectAllCell/SelectAllCell.d.ts.map +0 -1
  207. package/dist/types/lib/DataTable/common/SelectAllCell/index.d.ts +0 -3
  208. package/dist/types/lib/DataTable/common/SelectAllCell/index.d.ts.map +0 -1
  209. package/dist/types/lib/DataTable/common/SelectAllCell/types.d.ts +0 -23
  210. package/dist/types/lib/DataTable/common/SelectAllCell/types.d.ts.map +0 -1
  211. package/dist/types/lib/DataTable/common/SelectionCell/SelectionCell.d.ts +0 -8
  212. package/dist/types/lib/DataTable/common/SelectionCell/SelectionCell.d.ts.map +0 -1
  213. package/dist/types/lib/DataTable/common/SelectionCell/index.d.ts +0 -3
  214. package/dist/types/lib/DataTable/common/SelectionCell/index.d.ts.map +0 -1
  215. package/dist/types/lib/DataTable/common/SelectionCell/types.d.ts +0 -15
  216. package/dist/types/lib/DataTable/common/SelectionCell/types.d.ts.map +0 -1
  217. package/dist/types/lib/DataTable/common/TableBody/TableBody.d.ts +0 -15
  218. package/dist/types/lib/DataTable/common/TableBody/TableBody.d.ts.map +0 -1
  219. package/dist/types/lib/DataTable/common/TableBody/index.d.ts +0 -3
  220. package/dist/types/lib/DataTable/common/TableBody/index.d.ts.map +0 -1
  221. package/dist/types/lib/DataTable/common/TableBody/types.d.ts +0 -27
  222. package/dist/types/lib/DataTable/common/TableBody/types.d.ts.map +0 -1
  223. package/dist/types/lib/DataTable/common/index.d.ts +0 -8
  224. package/dist/types/lib/DataTable/common/index.d.ts.map +0 -1
  225. package/dist/types/lib/DataTable/defaultStatusText.d.ts +0 -4
  226. package/dist/types/lib/DataTable/defaultStatusText.d.ts.map +0 -1
  227. package/dist/types/lib/DataTable/hooks/index.d.ts +0 -7
  228. package/dist/types/lib/DataTable/hooks/index.d.ts.map +0 -1
  229. package/dist/types/lib/DataTable/hooks/types.d.ts +0 -27
  230. package/dist/types/lib/DataTable/hooks/types.d.ts.map +0 -1
  231. package/dist/types/lib/DataTable/hooks/usePreferredWidths.d.ts +0 -25
  232. package/dist/types/lib/DataTable/hooks/usePreferredWidths.d.ts.map +0 -1
  233. package/dist/types/lib/DataTable/hooks/useRowScopes.d.ts +0 -12
  234. package/dist/types/lib/DataTable/hooks/useRowScopes.d.ts.map +0 -1
  235. package/dist/types/lib/DataTable/hooks/useStableCallback.d.ts +0 -12
  236. package/dist/types/lib/DataTable/hooks/useStableCallback.d.ts.map +0 -1
  237. package/dist/types/lib/DataTable/hooks/useStableValue.d.ts +0 -11
  238. package/dist/types/lib/DataTable/hooks/useStableValue.d.ts.map +0 -1
  239. package/dist/types/lib/DataTable/hooks/useTableGeometry.d.ts +0 -21
  240. package/dist/types/lib/DataTable/hooks/useTableGeometry.d.ts.map +0 -1
  241. package/dist/types/lib/DataTable/index.d.ts +0 -3
  242. package/dist/types/lib/DataTable/index.d.ts.map +0 -1
  243. package/dist/types/lib/DataTable/tableStatus.d.ts +0 -15
  244. package/dist/types/lib/DataTable/tableStatus.d.ts.map +0 -1
  245. package/dist/types/lib/DataTable/types.d.ts +0 -119
  246. package/dist/types/lib/DataTable/types.d.ts.map +0 -1
  247. package/dist/types/lib/DataViews/CellScopeContext.d.ts +0 -29
  248. package/dist/types/lib/DataViews/CellScopeContext.d.ts.map +0 -1
  249. package/dist/types/lib/DataViews/Context.d.ts +0 -9
  250. package/dist/types/lib/DataViews/Context.d.ts.map +0 -1
  251. package/dist/types/lib/DataViews/Provider.d.ts +0 -19
  252. package/dist/types/lib/DataViews/Provider.d.ts.map +0 -1
  253. package/dist/types/lib/DataViews/common/Actions/Actions.d.ts +0 -19
  254. package/dist/types/lib/DataViews/common/Actions/Actions.d.ts.map +0 -1
  255. package/dist/types/lib/DataViews/common/Actions/index.d.ts +0 -3
  256. package/dist/types/lib/DataViews/common/Actions/index.d.ts.map +0 -1
  257. package/dist/types/lib/DataViews/common/Actions/types.d.ts +0 -27
  258. package/dist/types/lib/DataViews/common/Actions/types.d.ts.map +0 -1
  259. package/dist/types/lib/DataViews/common/Filters/Filters.d.ts +0 -14
  260. package/dist/types/lib/DataViews/common/Filters/Filters.d.ts.map +0 -1
  261. package/dist/types/lib/DataViews/common/Filters/common/BoundFilter/BoundFilter.d.ts +0 -12
  262. package/dist/types/lib/DataViews/common/Filters/common/BoundFilter/BoundFilter.d.ts.map +0 -1
  263. package/dist/types/lib/DataViews/common/Filters/common/BoundFilter/index.d.ts +0 -3
  264. package/dist/types/lib/DataViews/common/Filters/common/BoundFilter/index.d.ts.map +0 -1
  265. package/dist/types/lib/DataViews/common/Filters/common/BoundFilter/types.d.ts +0 -24
  266. package/dist/types/lib/DataViews/common/Filters/common/BoundFilter/types.d.ts.map +0 -1
  267. package/dist/types/lib/DataViews/common/Filters/common/ChoicesFilter/ChoicesFilter.d.ts +0 -10
  268. package/dist/types/lib/DataViews/common/Filters/common/ChoicesFilter/ChoicesFilter.d.ts.map +0 -1
  269. package/dist/types/lib/DataViews/common/Filters/common/ChoicesFilter/index.d.ts +0 -3
  270. package/dist/types/lib/DataViews/common/Filters/common/ChoicesFilter/index.d.ts.map +0 -1
  271. package/dist/types/lib/DataViews/common/Filters/common/ChoicesFilter/types.d.ts +0 -22
  272. package/dist/types/lib/DataViews/common/Filters/common/ChoicesFilter/types.d.ts.map +0 -1
  273. package/dist/types/lib/DataViews/common/Filters/common/FlagFilter/FlagFilter.d.ts +0 -9
  274. package/dist/types/lib/DataViews/common/Filters/common/FlagFilter/FlagFilter.d.ts.map +0 -1
  275. package/dist/types/lib/DataViews/common/Filters/common/FlagFilter/index.d.ts +0 -3
  276. package/dist/types/lib/DataViews/common/Filters/common/FlagFilter/index.d.ts.map +0 -1
  277. package/dist/types/lib/DataViews/common/Filters/common/FlagFilter/types.d.ts +0 -20
  278. package/dist/types/lib/DataViews/common/Filters/common/FlagFilter/types.d.ts.map +0 -1
  279. package/dist/types/lib/DataViews/common/Filters/common/index.d.ts +0 -4
  280. package/dist/types/lib/DataViews/common/Filters/common/index.d.ts.map +0 -1
  281. package/dist/types/lib/DataViews/common/Filters/handleFor.d.ts +0 -11
  282. package/dist/types/lib/DataViews/common/Filters/handleFor.d.ts.map +0 -1
  283. package/dist/types/lib/DataViews/common/Filters/index.d.ts +0 -3
  284. package/dist/types/lib/DataViews/common/Filters/index.d.ts.map +0 -1
  285. package/dist/types/lib/DataViews/common/Filters/types.d.ts +0 -23
  286. package/dist/types/lib/DataViews/common/Filters/types.d.ts.map +0 -1
  287. package/dist/types/lib/DataViews/common/Pagination/Pagination.d.ts +0 -12
  288. package/dist/types/lib/DataViews/common/Pagination/Pagination.d.ts.map +0 -1
  289. package/dist/types/lib/DataViews/common/Pagination/index.d.ts +0 -3
  290. package/dist/types/lib/DataViews/common/Pagination/index.d.ts.map +0 -1
  291. package/dist/types/lib/DataViews/common/Pagination/types.d.ts +0 -8
  292. package/dist/types/lib/DataViews/common/Pagination/types.d.ts.map +0 -1
  293. package/dist/types/lib/DataViews/common/Views/Views.d.ts +0 -25
  294. package/dist/types/lib/DataViews/common/Views/Views.d.ts.map +0 -1
  295. package/dist/types/lib/DataViews/common/Views/common/DeleteConfirm/DeleteConfirm.d.ts +0 -8
  296. package/dist/types/lib/DataViews/common/Views/common/DeleteConfirm/DeleteConfirm.d.ts.map +0 -1
  297. package/dist/types/lib/DataViews/common/Views/common/DeleteConfirm/index.d.ts +0 -3
  298. package/dist/types/lib/DataViews/common/Views/common/DeleteConfirm/index.d.ts.map +0 -1
  299. package/dist/types/lib/DataViews/common/Views/common/DeleteConfirm/types.d.ts +0 -14
  300. package/dist/types/lib/DataViews/common/Views/common/DeleteConfirm/types.d.ts.map +0 -1
  301. package/dist/types/lib/DataViews/common/Views/common/NameForm/NameForm.d.ts +0 -11
  302. package/dist/types/lib/DataViews/common/Views/common/NameForm/NameForm.d.ts.map +0 -1
  303. package/dist/types/lib/DataViews/common/Views/common/NameForm/index.d.ts +0 -3
  304. package/dist/types/lib/DataViews/common/Views/common/NameForm/index.d.ts.map +0 -1
  305. package/dist/types/lib/DataViews/common/Views/common/NameForm/types.d.ts +0 -22
  306. package/dist/types/lib/DataViews/common/Views/common/NameForm/types.d.ts.map +0 -1
  307. package/dist/types/lib/DataViews/common/Views/common/index.d.ts +0 -3
  308. package/dist/types/lib/DataViews/common/Views/common/index.d.ts.map +0 -1
  309. package/dist/types/lib/DataViews/common/Views/index.d.ts +0 -3
  310. package/dist/types/lib/DataViews/common/Views/index.d.ts.map +0 -1
  311. package/dist/types/lib/DataViews/common/Views/types.d.ts +0 -16
  312. package/dist/types/lib/DataViews/common/Views/types.d.ts.map +0 -1
  313. package/dist/types/lib/DataViews/common/Views/viewStatusText.d.ts +0 -9
  314. package/dist/types/lib/DataViews/common/Views/viewStatusText.d.ts.map +0 -1
  315. package/dist/types/lib/DataViews/common/index.d.ts +0 -5
  316. package/dist/types/lib/DataViews/common/index.d.ts.map +0 -1
  317. package/dist/types/lib/DataViews/hooks/index.d.ts +0 -6
  318. package/dist/types/lib/DataViews/hooks/index.d.ts.map +0 -1
  319. package/dist/types/lib/DataViews/hooks/types.d.ts +0 -48
  320. package/dist/types/lib/DataViews/hooks/types.d.ts.map +0 -1
  321. package/dist/types/lib/DataViews/hooks/useDataViews.d.ts +0 -11
  322. package/dist/types/lib/DataViews/hooks/useDataViews.d.ts.map +0 -1
  323. package/dist/types/lib/DataViews/hooks/useDataViewsCell.d.ts +0 -11
  324. package/dist/types/lib/DataViews/hooks/useDataViewsCell.d.ts.map +0 -1
  325. package/dist/types/lib/DataViews/hooks/useDataViewsField.d.ts +0 -8
  326. package/dist/types/lib/DataViews/hooks/useDataViewsField.d.ts.map +0 -1
  327. package/dist/types/lib/DataViews/hooks/useDataViewsState.d.ts +0 -11
  328. package/dist/types/lib/DataViews/hooks/useDataViewsState.d.ts.map +0 -1
  329. package/dist/types/lib/DataViews/hooks/useDataViewsValue.d.ts +0 -7
  330. package/dist/types/lib/DataViews/hooks/useDataViewsValue.d.ts.map +0 -1
  331. package/dist/types/lib/DataViews/index.d.ts +0 -9
  332. package/dist/types/lib/DataViews/index.d.ts.map +0 -1
  333. package/dist/types/lib/DataViews/plural.d.ts +0 -3
  334. package/dist/types/lib/DataViews/plural.d.ts.map +0 -1
  335. package/dist/types/lib/DataViews/sentenceOf.d.ts +0 -6
  336. package/dist/types/lib/DataViews/sentenceOf.d.ts.map +0 -1
  337. package/dist/types/lib/DataViews/types.d.ts +0 -18
  338. package/dist/types/lib/DataViews/types.d.ts.map +0 -1
  339. package/dist/types/lib/PaginationBar/PaginationBar.d.ts +0 -17
  340. package/dist/types/lib/PaginationBar/PaginationBar.d.ts.map +0 -1
  341. package/dist/types/lib/PaginationBar/index.d.ts +0 -3
  342. package/dist/types/lib/PaginationBar/index.d.ts.map +0 -1
  343. package/dist/types/lib/PaginationBar/paginationState.d.ts +0 -37
  344. package/dist/types/lib/PaginationBar/paginationState.d.ts.map +0 -1
  345. package/dist/types/lib/PaginationBar/types.d.ts +0 -24
  346. package/dist/types/lib/PaginationBar/types.d.ts.map +0 -1
@@ -1,24 +0,0 @@
1
- import type { SchemaFieldDefinition } from "@canonical/dataviews-core";
2
- import type { ReactElement } from "react";
3
- import type { DataTableProps } from "./types.js";
4
- import "./styles.css";
5
- /**
6
- * DataTable renders the rows of one collection.
7
- *
8
- * It renders rows and nothing else: it does not fetch, own the URL or decide
9
- * where views persist. The provider is explicit, so the same table works
10
- * standalone and inside a DataViews root, and never changes behaviour
11
- * because some optional context happened to be present.
12
- *
13
- * Its rows are divs consuming one shared track list, published once on the
14
- * container as a custom property. Fixed columns keep their declared width,
15
- * flexible ones compress within their bounds, the last column takes whatever
16
- * width the others leave, and the container scrolls when the remainder no
17
- * longer fits — there is no automatic hiding, pairing or renderer switching.
18
- * The selection column is not among them: its width is the stylesheet's,
19
- * and the columns share what it leaves.
20
- *
21
- * @implements ds:apps.pattern.data_table
22
- */
23
- export default function DataTable<TFields extends readonly SchemaFieldDefinition[], TRow extends object>({ provider, columns, label, presentation, selectable, rowLabel, renderStatus, className, style, ref, ...rest }: DataTableProps<TFields, TRow>): ReactElement;
24
- //# sourceMappingURL=DataTable.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../../../src/lib/DataTable/DataTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,qBAAqB,EACtB,MAAM,2BAA2B,CAAC;AAMnC,OAAO,KAAK,EAAiB,YAAY,EAAO,MAAM,OAAO,CAAC;AAmB9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,cAAc,CAAC;AAgCtB;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,CAC/B,OAAO,SAAS,SAAS,qBAAqB,EAAE,EAChD,IAAI,SAAS,MAAM,EACnB,EACA,QAAQ,EACR,OAAO,EACP,KAAK,EACL,YAAY,EACZ,UAAkB,EAClB,QAA0B,EAC1B,YAAgC,EAChC,SAAS,EACT,KAAK,EACL,GAAG,EACH,GAAG,IAAI,EACR,EAAE,cAAc,CAAC,OAAO,EAAE,IAAI,CAAC,GAAG,YAAY,CAgK9C"}
@@ -1,45 +0,0 @@
1
- import type { ColumnSizing, ColumnToSize } from "@canonical/dataviews-core";
2
- import type { DataTableColumn } from "./types.js";
3
- /**
4
- * How a table decides two column arrays say the same thing.
5
- *
6
- * A caller writing its columns as a literal rebuilds the array on every
7
- * render, and none of the table's machinery may notice: re-minting the
8
- * presentation would drop every user-resized width, and a new array
9
- * reference alone would re-render every cell of every row. So the table
10
- * keys on content — and on two different readings of it, because an inline
11
- * `header` node must not cost anyone a new presentation.
12
- */
13
- /** Declared sizing when a column names none: flexible, with a 96px floor. */
14
- export declare const defaultSizing: ColumnSizing;
15
- /** One column's declared sizing, defaulted. */
16
- export declare const sizingOf: (column: DataTableColumn) => ColumnSizing;
17
- /**
18
- * The widths a resize may leave a column at, from its declared sizing —
19
- * never from a user override, so a column resized once is held to the same
20
- * bounds the next time. A flexible column is held to its minimum and
21
- * maximum; a fixed one may go anywhere from zero.
22
- */
23
- export declare const boundsOf: (sizing: ColumnSizing) => {
24
- readonly min: number;
25
- readonly max: number;
26
- };
27
- /**
28
- * The column facts everything below the rendered tree is derived from: the
29
- * presentation's declared tracks, the observed field names, the solved
30
- * geometry and one row scope per identity.
31
- */
32
- export declare const sameColumnModel: (a: readonly DataTableColumn[], b: readonly DataTableColumn[]) => boolean;
33
- /**
34
- * Everything the rendered tree reads, the model included. `header` and
35
- * `cell` are compared by reference: one is a node and the other a
36
- * component, and neither has content this could compare.
37
- */
38
- export declare const sameColumns: (a: readonly DataTableColumn[], b: readonly DataTableColumn[]) => boolean;
39
- /**
40
- * Two solved track lists say the same thing. The tracks are read through
41
- * the presentation record on every render, so this is what keeps the
42
- * solver from running again for an unchanged arrangement.
43
- */
44
- export declare const sameTracks: (a: readonly ColumnToSize[], b: readonly ColumnToSize[]) => boolean;
45
- //# sourceMappingURL=columnKeys.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"columnKeys.d.ts","sourceRoot":"","sources":["../../../../src/lib/DataTable/columnKeys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE5E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD;;;;;;;;;GASG;AAEH,6EAA6E;AAC7E,eAAO,MAAM,aAAa,EAAE,YAI3B,CAAC;AAEF,+CAA+C;AAC/C,eAAO,MAAM,QAAQ,GAAI,QAAQ,eAAe,KAAG,YACnB,CAAC;AAEjC;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,GACnB,QAAQ,YAAY,KACnB;IAAE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;CAGA,CAAC;AAEhD;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAC1B,GAAG,SAAS,eAAe,EAAE,EAC7B,GAAG,SAAS,eAAe,EAAE,KAC5B,OASC,CAAC;AAEL;;;;GAIG;AACH,eAAO,MAAM,WAAW,GACtB,GAAG,SAAS,eAAe,EAAE,EAC7B,GAAG,SAAS,eAAe,EAAE,KAC5B,OAUC,CAAC;AAEL;;;;GAIG;AACH,eAAO,MAAM,UAAU,GACrB,GAAG,SAAS,YAAY,EAAE,EAC1B,GAAG,SAAS,YAAY,EAAE,KACzB,OAKC,CAAC"}
@@ -1,17 +0,0 @@
1
- import type { ReactElement } from "react";
2
- import type { BodyCellProps } from "./types.js";
3
- declare function BodyCell<TRow extends object>({ provider, scope, column, field, }: BodyCellProps<TRow>): ReactElement;
4
- /**
5
- * One body cell. It subscribes to its own field's channel, so a record
6
- * update re-renders only the cells whose values actually changed, and it
7
- * installs the cell scope its column's own renderer reads.
8
- *
9
- * Memoised: without it the claim above would hold for the channel and be
10
- * undone by the row, which would re-render every cell it has whenever it
11
- * rendered at all.
12
- *
13
- * @implements ds:apps.subcomponent.data_table-body_cell
14
- */
15
- declare const _default: typeof BodyCell;
16
- export default _default;
17
- //# sourceMappingURL=BodyCell.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BodyCell.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/DataTable/common/BodyCell/BodyCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAa,MAAM,OAAO,CAAC;AAKrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAkBhD,iBAAS,QAAQ,CAAC,IAAI,SAAS,MAAM,EAAE,EACrC,QAAQ,EACR,KAAK,EACL,MAAM,EACN,KAAK,GACN,EAAE,aAAa,CAAC,IAAI,CAAC,GAAG,YAAY,CA2BpC;AAED;;;;;;;;;;GAUG;wBAC8B,OAAO,QAAQ;AAAhD,wBAAiD"}
@@ -1,3 +0,0 @@
1
- export { default as BodyCell } from "./BodyCell.js";
2
- export type * from "./types.js";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/DataTable/common/BodyCell/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpD,mBAAmB,YAAY,CAAC"}
@@ -1,16 +0,0 @@
1
- import type { DataViewsProvider, RowScope, SchemaFieldDefinition } from "@canonical/dataviews-core";
2
- import type { DataTableColumn } from "../../types.js";
3
- /**
4
- * Props of one rendered body cell.
5
- *
6
- * Exempt from the native-prop extension convention: an internal renderer
7
- * deriving its root from the row scope and column model, not forwarding a
8
- * caller's native props.
9
- */
10
- export type BodyCellProps<TRow extends object> = {
11
- readonly provider: DataViewsProvider<readonly SchemaFieldDefinition[], TRow>;
12
- readonly scope: RowScope<TRow>;
13
- readonly column: DataTableColumn;
14
- readonly field: string;
15
- };
16
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/DataTable/common/BodyCell/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,QAAQ,EACR,qBAAqB,EACtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEtD;;;;;;GAMG;AACH,MAAM,MAAM,aAAa,CAAC,IAAI,SAAS,MAAM,IAAI;IAC/C,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,CAAC,SAAS,qBAAqB,EAAE,EAAE,IAAI,CAAC,CAAC;IAC7E,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAC;IACjC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB,CAAC"}
@@ -1,12 +0,0 @@
1
- import type { ReactElement } from "react";
2
- import type { HeaderCellProps } from "./types.js";
3
- /**
4
- * One header cell. `aria-sort` describes the applied ordering, so it is
5
- * absent on a column that does not offer sorting rather than claiming
6
- * "none" about an ordering it cannot change. The chevron beside the label
7
- * repeats it for the eye and is hidden from assistive technology.
8
- *
9
- * @implements ds:apps.subcomponent.data_table-header_cell
10
- */
11
- export default function HeaderCell({ column, field, sortable, sort, setSort, interaction, resizable, bounds, width, labelId, }: HeaderCellProps): ReactElement;
12
- //# sourceMappingURL=HeaderCell.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HeaderCell.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/DataTable/common/HeaderCell/HeaderCell.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AA4BlD;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,MAAM,EACN,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,OAAO,EACP,WAAW,EACX,SAAS,EACT,MAAM,EACN,KAAK,EACL,OAAO,GACR,EAAE,eAAe,GAAG,YAAY,CA4ChC"}
@@ -1,3 +0,0 @@
1
- export { default as HeaderCell } from "./HeaderCell.js";
2
- export type * from "./types.js";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/DataTable/common/HeaderCell/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACxD,mBAAmB,YAAY,CAAC"}
@@ -1,44 +0,0 @@
1
- import type { GridInteraction, SortTerm } from "@canonical/dataviews-core";
2
- import type { DataTableColumn } from "../../types.js";
3
- /**
4
- * Props of one header cell.
5
- *
6
- * Exempt from the native-prop extension convention: an internal renderer
7
- * deriving its root from the column model and the applied ordering, not
8
- * forwarding a caller's native props.
9
- */
10
- export type HeaderCellProps = {
11
- readonly column: DataTableColumn;
12
- /** The record field this column shows and sorts on. */
13
- readonly field: string;
14
- /**
15
- * Whether this header offers sorting: the column asks for it and the
16
- * provider's capabilities declare its field sortable and allow at least
17
- * one sort term.
18
- */
19
- readonly sortable: boolean;
20
- /** This column's term in the applied ordering, if it has one. */
21
- readonly sort: SortTerm | undefined;
22
- /** Replace the applied ordering. */
23
- readonly setSort: (sort: readonly SortTerm[]) => void;
24
- readonly interaction: GridInteraction;
25
- /**
26
- * Offer a resize handle at this header cell's trailing edge. False for the
27
- * last column whatever it declares: its trailing edge is the table's own
28
- * edge.
29
- */
30
- readonly resizable: boolean;
31
- /**
32
- * The widths a resize may leave this column at, from the declared sizing
33
- * the table's widths are solved from.
34
- */
35
- readonly bounds: {
36
- readonly min: number;
37
- readonly max: number;
38
- };
39
- /** The column's resolved width, for a resize capture. */
40
- readonly width: number;
41
- /** The id this header's label carries, for the resize handle's name. */
42
- readonly labelId: string;
43
- };
44
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/DataTable/common/HeaderCell/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEtD;;;;;;GAMG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAC;IACjC,uDAAuD;IACvD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,iEAAiE;IACjE,QAAQ,CAAC,IAAI,EAAE,QAAQ,GAAG,SAAS,CAAC;IACpC,oCAAoC;IACpC,QAAQ,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,SAAS,QAAQ,EAAE,KAAK,IAAI,CAAC;IACtD,QAAQ,CAAC,WAAW,EAAE,eAAe,CAAC;IACtC;;;;OAIG;IACH,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B;;;OAGG;IACH,QAAQ,CAAC,MAAM,EAAE;QAAE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IAChE,yDAAyD;IACzD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,wEAAwE;IACxE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B,CAAC"}
@@ -1,14 +0,0 @@
1
- import type { ReactElement } from "react";
2
- import type { ResizeHandleProps } from "./types.js";
3
- /**
4
- * One column's resize handle.
5
- *
6
- * Pointer dragging and the keyboard drive the same commands and the same
7
- * clamping, so resizing never requires a drag: arrow keys step the edge and
8
- * Escape abandons a drag in progress, as a cancelled pointer does. Every path
9
- * is held to the column's declared bounds, however often the column has been
10
- * resized before, and every move keeps the control in view. Pointer previews
11
- * are coalesced to one geometry publication per animation frame.
12
- */
13
- export default function ResizeHandle({ interaction, columnId, width, min, max, labelledBy, }: ResizeHandleProps): ReactElement;
14
- //# sourceMappingURL=ResizeHandle.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ResizeHandle.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/DataTable/common/ResizeHandle/ResizeHandle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AA4BpD;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,WAAW,EACX,QAAQ,EACR,KAAK,EACL,GAAG,EACH,GAAG,EACH,UAAU,GACX,EAAE,iBAAiB,GAAG,YAAY,CA8HlC"}
@@ -1,3 +0,0 @@
1
- export { default as ResizeHandle } from "./ResizeHandle.js";
2
- export type * from "./types.js";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/DataTable/common/ResizeHandle/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC5D,mBAAmB,YAAY,CAAC"}
@@ -1,21 +0,0 @@
1
- import type { GridInteraction } from "@canonical/dataviews-core";
2
- /**
3
- * Props of one column's resize handle.
4
- *
5
- * Exempt from the native-prop extension convention: an internal renderer
6
- * deriving its root from the interaction model and the column's resolved
7
- * width, not forwarding a caller's native props.
8
- */
9
- export type ResizeHandleProps = {
10
- readonly interaction: GridInteraction;
11
- readonly columnId: string;
12
- /** The column's currently resolved width, captured when a resize begins. */
13
- readonly width: number;
14
- /** The narrowest width a resize may leave, from the column's declared sizing. */
15
- readonly min: number;
16
- /** The widest width a resize may leave; infinite when the column has no maximum. */
17
- readonly max: number;
18
- /** The id of the element naming this column. */
19
- readonly labelledBy: string;
20
- };
21
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/DataTable/common/ResizeHandle/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAEjE;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,CAAC,WAAW,EAAE,eAAe,CAAC;IACtC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,4EAA4E;IAC5E,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,iFAAiF;IACjF,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,oFAAoF;IACpF,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,gDAAgD;IAChD,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B,CAAC"}
@@ -1,15 +0,0 @@
1
- import type { ReactElement } from "react";
2
- import type { RowProps } from "./types.js";
3
- declare function Row<TRow extends object>({ provider, scope, columns, fields, selectable, rowLabel, }: RowProps<TRow>): ReactElement;
4
- /**
5
- * One data row. It observes its own selection membership — a selection
6
- * change reaches only the rows whose membership moved — and consumes the
7
- * table's shared track list rather than a width per cell.
8
- *
9
- * Memoised: every prop it takes is held at a stable reference by the
10
- * table, so a row re-renders for its own selection channel and for a
11
- * column model that actually changed, and for nothing else.
12
- */
13
- declare const _default: typeof Row;
14
- export default _default;
15
- //# sourceMappingURL=Row.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Row.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/DataTable/common/Row/Row.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAK1C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAI3C,iBAAS,GAAG,CAAC,IAAI,SAAS,MAAM,EAAE,EAChC,QAAQ,EACR,KAAK,EACL,OAAO,EACP,MAAM,EACN,UAAU,EACV,QAAQ,GACT,EAAE,QAAQ,CAAC,IAAI,CAAC,GAAG,YAAY,CAiC/B;AAED;;;;;;;;GAQG;wBACyB,OAAO,GAAG;AAAtC,wBAAuC"}
@@ -1,3 +0,0 @@
1
- export { default as Row } from "./Row.js";
2
- export type * from "./types.js";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/DataTable/common/Row/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,UAAU,CAAC;AAC1C,mBAAmB,YAAY,CAAC"}
@@ -1,18 +0,0 @@
1
- import type { DataViewsProvider, RowScope, SchemaFieldDefinition } from "@canonical/dataviews-core";
2
- import type { DataTableColumn } from "../../types.js";
3
- /**
4
- * Props of one rendered data row.
5
- *
6
- * Exempt from the native-prop extension convention: an internal renderer
7
- * deriving its root from the row scope and column model, not forwarding a
8
- * caller's native props.
9
- */
10
- export type RowProps<TRow extends object> = {
11
- readonly provider: DataViewsProvider<readonly SchemaFieldDefinition[], TRow>;
12
- readonly scope: RowScope<TRow>;
13
- readonly columns: readonly DataTableColumn[];
14
- readonly fields: readonly string[];
15
- readonly selectable: boolean;
16
- readonly rowLabel: (row: TRow, rowId: string) => string;
17
- };
18
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/DataTable/common/Row/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,QAAQ,EACR,qBAAqB,EACtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEtD;;;;;;GAMG;AACH,MAAM,MAAM,QAAQ,CAAC,IAAI,SAAS,MAAM,IAAI;IAC1C,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,CAAC,SAAS,qBAAqB,EAAE,EAAE,IAAI,CAAC,CAAC;IAC7E,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC/B,QAAQ,CAAC,OAAO,EAAE,SAAS,eAAe,EAAE,CAAC;IAC7C,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;CACzD,CAAC"}
@@ -1,9 +0,0 @@
1
- import type { ReactElement } from "react";
2
- import type { SelectAllCellProps } from "./types.js";
3
- /**
4
- * The select-all checkbox. Its scope is the displayed rows, which its name
5
- * says: it adds and removes exactly those identities and leaves a selection
6
- * made elsewhere in the collection alone.
7
- */
8
- export default function SelectAllCell({ selection, ids: displayed, reserve, }: SelectAllCellProps): ReactElement;
9
- //# sourceMappingURL=SelectAllCell.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SelectAllCell.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/DataTable/common/SelectAllCell/SelectAllCell.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAI1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAIrD;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACpC,SAAS,EACT,GAAG,EAAE,SAAS,EACd,OAAO,GACR,EAAE,kBAAkB,GAAG,YAAY,CAuCnC"}
@@ -1,3 +0,0 @@
1
- export { default as SelectAllCell } from "./SelectAllCell.js";
2
- export type * from "./types.js";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/DataTable/common/SelectAllCell/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC9D,mBAAmB,YAAY,CAAC"}
@@ -1,23 +0,0 @@
1
- import type { ReadonlyChannel, Selection } from "@canonical/dataviews-core";
2
- /**
3
- * Props of the select-all header cell.
4
- *
5
- * Exempt from the native-prop extension convention: an internal renderer
6
- * deriving its root from the selection model and the displayed identities,
7
- * not forwarding a caller's native props.
8
- */
9
- export type SelectAllCellProps = {
10
- readonly selection: Selection;
11
- /**
12
- * The displayed row identities — the scope this control acts on. Passed
13
- * as the channel, not its value: this is the only consumer of it, so a
14
- * table rendering no selection column must not re-render for it.
15
- */
16
- readonly ids: ReadonlyChannel<readonly string[]>;
17
- /**
18
- * Attaches this cell to the table's geometry. The stylesheet sizes the
19
- * selection track, and the columns share whatever width it leaves.
20
- */
21
- readonly reserve: (cell: HTMLDivElement) => () => void;
22
- };
23
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/DataTable/common/SelectAllCell/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAE5E;;;;;;GAMG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,GAAG,EAAE,eAAe,CAAC,SAAS,MAAM,EAAE,CAAC,CAAC;IACjD;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,MAAM,IAAI,CAAC;CACxD,CAAC"}
@@ -1,8 +0,0 @@
1
- import type { ReactElement } from "react";
2
- import type { SelectionCellProps } from "./types.js";
3
- /**
4
- * One row's selection checkbox: the design system's checkbox backed by the
5
- * provider's selection, named after the record rather than its position.
6
- */
7
- export default function SelectionCell<TRow extends object>({ provider, scope, selected, rowLabel, }: SelectionCellProps<TRow>): ReactElement;
8
- //# sourceMappingURL=SelectionCell.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SelectionCell.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/DataTable/common/SelectionCell/SelectionCell.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAIrD;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,IAAI,SAAS,MAAM,EAAE,EACzD,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,QAAQ,GACT,EAAE,kBAAkB,CAAC,IAAI,CAAC,GAAG,YAAY,CAczC"}
@@ -1,3 +0,0 @@
1
- export { default as SelectionCell } from "./SelectionCell.js";
2
- export type * from "./types.js";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/DataTable/common/SelectionCell/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC9D,mBAAmB,YAAY,CAAC"}
@@ -1,15 +0,0 @@
1
- import type { DataViewsProvider, RowScope, SchemaFieldDefinition } from "@canonical/dataviews-core";
2
- /**
3
- * Props of one row's selection cell.
4
- *
5
- * Exempt from the native-prop extension convention: an internal renderer
6
- * deriving its root from the row scope, not forwarding a caller's native
7
- * props.
8
- */
9
- export type SelectionCellProps<TRow extends object> = {
10
- readonly provider: DataViewsProvider<readonly SchemaFieldDefinition[], TRow>;
11
- readonly scope: RowScope<TRow>;
12
- readonly selected: boolean;
13
- readonly rowLabel: (row: TRow, rowId: string) => string;
14
- };
15
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/DataTable/common/SelectionCell/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,QAAQ,EACR,qBAAqB,EACtB,MAAM,2BAA2B,CAAC;AAEnC;;;;;;GAMG;AACH,MAAM,MAAM,kBAAkB,CAAC,IAAI,SAAS,MAAM,IAAI;IACpD,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,CAAC,SAAS,qBAAqB,EAAE,EAAE,IAAI,CAAC,CAAC;IAC7E,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC/B,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;CACzD,CAAC"}
@@ -1,15 +0,0 @@
1
- import type { ReactElement } from "react";
2
- import type { TableBodyProps } from "./types.js";
3
- declare function TableBody<TRow extends object>({ provider, scopes, columns, fields, selectable, rowLabel, status, renderStatus, }: TableBodyProps<TRow>): ReactElement;
4
- /**
5
- * The body observes the row identities itself, so a republication that
6
- * changes only the query, the ordering or the request status re-renders the
7
- * header and stops there — the rows go on watching their own channels. The
8
- * memo holds because the table hands it stable props: a caller's rebuilt
9
- * column array, `rowLabel` and `renderStatus` are all held at one identity.
10
- * A body showing a status re-renders with the table, which costs the status
11
- * row and, beside stale rows, one pass over memoised rows that bail out.
12
- */
13
- declare const _default: typeof TableBody;
14
- export default _default;
15
- //# sourceMappingURL=TableBody.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TableBody.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/DataTable/common/TableBody/TableBody.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAI1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAIjD,iBAAS,SAAS,CAAC,IAAI,SAAS,MAAM,EAAE,EACtC,QAAQ,EACR,MAAM,EACN,OAAO,EACP,MAAM,EACN,UAAU,EACV,QAAQ,EACR,MAAM,EACN,YAAY,GACb,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,YAAY,CAuCrC;AAED;;;;;;;;GAQG;wBAC+B,OAAO,SAAS;AAAlD,wBAAmD"}
@@ -1,3 +0,0 @@
1
- export { default as TableBody } from "./TableBody.js";
2
- export type * from "./types.js";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/DataTable/common/TableBody/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACtD,mBAAmB,YAAY,CAAC"}
@@ -1,27 +0,0 @@
1
- import type { DataViewsProvider, RowScopes, SchemaFieldDefinition } from "@canonical/dataviews-core";
2
- import type { ReactNode } from "react";
3
- import type { DataTableColumn, DataTableStatus } from "../../types.js";
4
- /**
5
- * Props of the table's body row group.
6
- *
7
- * Exempt from the native-prop extension convention: an internal renderer
8
- * deriving its root from the row-scope registry, not forwarding a caller's
9
- * native props.
10
- */
11
- export type TableBodyProps<TRow extends object> = {
12
- readonly provider: DataViewsProvider<readonly SchemaFieldDefinition[], TRow>;
13
- readonly scopes: RowScopes<TRow>;
14
- readonly columns: readonly DataTableColumn[];
15
- readonly fields: readonly string[];
16
- readonly selectable: boolean;
17
- readonly rowLabel: (row: TRow, rowId: string) => string;
18
- /**
19
- * Why there are no rows, or why the rows shown are an earlier query's
20
- * after the current one failed; null while the rows shown answer the
21
- * current query, or while they await its replacement (which the table
22
- * marks busy).
23
- */
24
- readonly status: DataTableStatus | null;
25
- readonly renderStatus: (status: DataTableStatus) => ReactNode;
26
- };
27
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/DataTable/common/TableBody/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,SAAS,EACT,qBAAqB,EACtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEvE;;;;;;GAMG;AACH,MAAM,MAAM,cAAc,CAAC,IAAI,SAAS,MAAM,IAAI;IAChD,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,CAAC,SAAS,qBAAqB,EAAE,EAAE,IAAI,CAAC,CAAC;IAC7E,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC;IACjC,QAAQ,CAAC,OAAO,EAAE,SAAS,eAAe,EAAE,CAAC;IAC7C,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACxD;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,EAAE,eAAe,GAAG,IAAI,CAAC;IACxC,QAAQ,CAAC,YAAY,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,SAAS,CAAC;CAC/D,CAAC"}
@@ -1,8 +0,0 @@
1
- export * from "./BodyCell/index.js";
2
- export * from "./HeaderCell/index.js";
3
- export * from "./ResizeHandle/index.js";
4
- export * from "./Row/index.js";
5
- export * from "./SelectAllCell/index.js";
6
- export * from "./SelectionCell/index.js";
7
- export * from "./TableBody/index.js";
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/DataTable/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC"}
@@ -1,4 +0,0 @@
1
- import type { DataTableStatus } from "./types.js";
2
- /** The text shown for each status when no renderer is supplied. */
3
- export default function defaultStatusText(status: DataTableStatus): string;
4
- //# sourceMappingURL=defaultStatusText.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"defaultStatusText.d.ts","sourceRoot":"","sources":["../../../../src/lib/DataTable/defaultStatusText.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,mEAAmE;AACnE,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,MAAM,EAAE,eAAe,GAAG,MAAM,CAazE"}
@@ -1,7 +0,0 @@
1
- export type { TableGeometry } from "./types.js";
2
- export { default as usePreferredWidths } from "./usePreferredWidths.js";
3
- export { default as useRowScopes } from "./useRowScopes.js";
4
- export { default as useStableCallback } from "./useStableCallback.js";
5
- export { default as useStableValue } from "./useStableValue.js";
6
- export { default as useTableGeometry } from "./useTableGeometry.js";
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/DataTable/hooks/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,uBAAuB,CAAC"}
@@ -1,27 +0,0 @@
1
- /**
2
- * Hook domain types for the DataTable domain. Each hook declares its result
3
- * type here; hook props types live beside them when a hook takes config.
4
- */
5
- /** One table's resolved geometry. */
6
- export type TableGeometry = {
7
- /**
8
- * Attaches the container whose inline size the solver resolves against,
9
- * returning the detach when there is an observer to disconnect. A React 19
10
- * ref callback that returns a cleanup is never called with `null`, so the
11
- * node is always a real one.
12
- */
13
- readonly attach: (node: HTMLDivElement) => (() => void) | undefined;
14
- /**
15
- * Attaches the cell the stylesheet's selection track sizes, whose width
16
- * the columns leave; the cleanup gives it back.
17
- */
18
- readonly reserve: (cell: HTMLDivElement) => () => void;
19
- /**
20
- * The shared track list every row of this table consumes; undefined with
21
- * no columns, where there is no track to publish.
22
- */
23
- readonly template: string | undefined;
24
- /** The resolved widths, positionally aligned with the column ids. */
25
- readonly widths: readonly number[];
26
- };
27
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/DataTable/hooks/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,qCAAqC;AACrC,MAAM,MAAM,aAAa,GAAG;IAC1B;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;IACpE;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,MAAM,IAAI,CAAC;IACvD;;;OAGG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,qEAAqE;IACrE,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;CACpC,CAAC"}
@@ -1,25 +0,0 @@
1
- import type { Presentation, ProviderViews } from "@canonical/dataviews-core";
2
- /**
3
- * The key a column's width is kept under in the collection's presentation.
4
- * Named for the renderer, so another renderer's arrangement never reads a
5
- * table's widths as its own.
6
- */
7
- export declare const widthKey: (id: string) => string;
8
- /**
9
- * Keep a table's column widths in its collection's presentation, when the
10
- * provider has views.
11
- *
12
- * A width the presentation holds becomes the column's fixed width, held to
13
- * the bounds its declared sizing sets; a column it holds none for keeps its
14
- * declared sizing. A column width the table's presentation record changes to
15
- * something the collection's presentation does not already imply is a
16
- * resize the user made, saved back as the viewer's arrangement — of the
17
- * open view, or the default one — so two tables sharing a record never save
18
- * each other's.
19
- *
20
- * The hook observes the views itself: a table restores its widths with no
21
- * views control on the page. Without views the table keeps its widths for
22
- * its own lifetime.
23
- */
24
- export default function usePreferredWidths(presentation: Presentation, views: ProviderViews | null): void;
25
- //# sourceMappingURL=usePreferredWidths.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"usePreferredWidths.d.ts","sourceRoot":"","sources":["../../../../../src/lib/DataTable/hooks/usePreferredWidths.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,YAAY,EACZ,aAAa,EACd,MAAM,2BAA2B,CAAC;AAKnC;;;;GAIG;AACH,eAAO,MAAM,QAAQ,GAAI,IAAI,MAAM,KAAG,MAA6B,CAAC;AAEpE;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CACxC,YAAY,EAAE,YAAY,EAC1B,KAAK,EAAE,aAAa,GAAG,IAAI,GAC1B,IAAI,CAuEN"}
@@ -1,12 +0,0 @@
1
- import type { DataViewsProvider, RowScopes, SchemaFieldDefinition } from "@canonical/dataviews-core";
2
- /**
3
- * The row-scope registry of one mounted table.
4
- *
5
- * The registry is minted per provider and observed field list. The caller
6
- * holds that list at a stable reference — a caller who rebuilds its column
7
- * array on every render must not re-mint one scope, one channel or one
8
- * subscription. Scopes live for as long as their row is modelled and the
9
- * registry dies with the table.
10
- */
11
- export default function useRowScopes<TFields extends readonly SchemaFieldDefinition[], TRow extends object>(provider: DataViewsProvider<TFields, TRow>, fields: readonly string[]): RowScopes<TRow>;
12
- //# sourceMappingURL=useRowScopes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useRowScopes.d.ts","sourceRoot":"","sources":["../../../../../src/lib/DataTable/hooks/useRowScopes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,SAAS,EACT,qBAAqB,EACtB,MAAM,2BAA2B,CAAC;AAInC;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,OAAO,SAAS,SAAS,qBAAqB,EAAE,EAChD,IAAI,SAAS,MAAM,EAEnB,QAAQ,EAAE,iBAAiB,CAAC,OAAO,EAAE,IAAI,CAAC,EAC1C,MAAM,EAAE,SAAS,MAAM,EAAE,GACxB,SAAS,CAAC,IAAI,CAAC,CAgBjB"}