@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,12 +0,0 @@
1
- /**
2
- * Hold a caller's function behind one stable identity.
3
- *
4
- * A table prop written as a lambda is a new function on every render, and
5
- * every memoised row and cell below it would re-render for that alone. The
6
- * latest one is always called, so the caller's API is unchanged; what it
7
- * loses is a re-render caused by the function's identity, which is the
8
- * point. A caller that changes what its function does therefore sees the
9
- * change wherever the value is next read, not through a render of its own.
10
- */
11
- export default function useStableCallback<TArgs extends readonly unknown[], TResult>(callback: (...args: TArgs) => TResult): (...args: TArgs) => TResult;
12
- //# sourceMappingURL=useStableCallback.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useStableCallback.d.ts","sourceRoot":"","sources":["../../../../../src/lib/DataTable/hooks/useStableCallback.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CACvC,KAAK,SAAS,SAAS,OAAO,EAAE,EAChC,OAAO,EACP,QAAQ,EAAE,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,OAAO,GAAG,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,OAAO,CAIpE"}
@@ -1,11 +0,0 @@
1
- /**
2
- * Hold a value rebuilt every render at one stable reference.
3
- *
4
- * The package's answer to referential stability, and the router's:
5
- * `useRouterState` keeps its selection the same way. The previously held
6
- * reference is returned for as long as the new value equals it, so a memo,
7
- * a subscription or a memoised child keyed on the value is not rebuilt
8
- * because a caller wrote an array literal in its own render.
9
- */
10
- export default function useStableValue<TValue>(value: TValue, equals: (held: TValue, next: TValue) => boolean): TValue;
11
- //# sourceMappingURL=useStableValue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useStableValue.d.ts","sourceRoot":"","sources":["../../../../../src/lib/DataTable/hooks/useStableValue.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,MAAM,EAC3C,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,OAAO,GAC9C,MAAM,CAMR"}
@@ -1,21 +0,0 @@
1
- import type { GridInteraction, Presentation } from "@canonical/dataviews-core";
2
- import type { TableGeometry } from "./types.js";
3
- /**
4
- * Resolve one mounted table's geometry.
5
- *
6
- * Widths are published once, as the container's track list, rather than
7
- * written onto every cell. Before the container is measured the tracks are
8
- * declarative, so the baseline is aligned and server output deterministic;
9
- * afterwards the solver's pixel vector is published, which is what capping
10
- * and resizing need. The authoritative presentation is untouched while a
11
- * resize previews: the preview only replaces its own column's track.
12
- *
13
- * The columns are resolved against the container's content width less the
14
- * selection track, whose width is the stylesheet's: it is read back from the
15
- * cell that track sizes, observed for as long as that cell is there.
16
- *
17
- * Two tables sharing one presentation therefore share user arrangement while
18
- * resolving their own widths against their own container.
19
- */
20
- export default function useTableGeometry(presentation: Presentation, interaction: GridInteraction, columnIds: readonly string[]): TableGeometry;
21
- //# sourceMappingURL=useTableGeometry.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useTableGeometry.d.ts","sourceRoot":"","sources":["../../../../../src/lib/DataTable/hooks/useTableGeometry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,eAAe,EACf,YAAY,EAEb,MAAM,2BAA2B,CAAC;AAKnC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AA+ChD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CACtC,YAAY,EAAE,YAAY,EAC1B,WAAW,EAAE,eAAe,EAC5B,SAAS,EAAE,SAAS,MAAM,EAAE,GAC3B,aAAa,CAwFf"}
@@ -1,3 +0,0 @@
1
- export { default as DataTable } from "./DataTable.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/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACtD,mBAAmB,YAAY,CAAC"}
@@ -1,15 +0,0 @@
1
- import type { CollectionCoordinatorState } from "@canonical/dataviews-core";
2
- import type { DataTableStatus } from "./types.js";
3
- /**
4
- * What the table says instead of its rows or beside them, or null when the
5
- * rows speak for themselves.
6
- *
7
- * The cases stay distinct so the table never says "no results" about a
8
- * collection it failed to read, or "no data" about a query that simply
9
- * matched nothing. Retained rows keep rendering: rows an earlier query
10
- * produced are shown as such beside the reason the current one failed,
11
- * while rows kept through a failed refresh of the same query still answer
12
- * it, so they are shown as they are and the error stays in `lastError`.
13
- */
14
- export default function tableStatus(state: CollectionCoordinatorState<object>): DataTableStatus | null;
15
- //# sourceMappingURL=tableStatus.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tableStatus.d.ts","sourceRoot":"","sources":["../../../../src/lib/DataTable/tableStatus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAC5E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD;;;;;;;;;;GAUG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CACjC,KAAK,EAAE,0BAA0B,CAAC,MAAM,CAAC,GACxC,eAAe,GAAG,IAAI,CAexB"}
@@ -1,119 +0,0 @@
1
- import type { ColumnSizing, DataViewsProvider, Presentation, SchemaFieldDefinition } from "@canonical/dataviews-core";
2
- import type { ComponentProps, ComponentType, ReactNode } from "react";
3
- /** The props one column's cell renderer receives. */
4
- export type DataTableCellProps = {
5
- /** The cell's current field value. */
6
- readonly value: unknown;
7
- /** The row's stable identity. */
8
- readonly rowId: string;
9
- /** The column's identity. */
10
- readonly columnId: string;
11
- };
12
- /**
13
- * One rendered column. Field meaning supplies the default content; `cell`
14
- * supplies the exceptional content — a badge, a link, an action menu — for
15
- * the one column that needs it, without making the caller author every
16
- * header, row and cell.
17
- */
18
- export type DataTableColumn = {
19
- /** The column's identity, unique within the table. */
20
- readonly id: string;
21
- /** The column's heading. */
22
- readonly header: ReactNode;
23
- /** The record field this column shows. Defaults to the column's id. */
24
- readonly field?: string;
25
- /**
26
- * Column-specific content. Rendered inside the cell's scope, so it may
27
- * call `useDataViewsCell` for the row's channels. Without one, primitive
28
- * values render as text and every other value renders nothing.
29
- */
30
- readonly cell?: ComponentType<DataTableCellProps>;
31
- /** Declared sizing. Defaults to a flexible column with a 96px minimum. */
32
- readonly sizing?: ColumnSizing;
33
- /**
34
- * Offer sorting on this column's field. Honoured only when the provider's
35
- * capabilities declare the field sortable and allow at least one sort
36
- * term, so the table never offers an ordering the source would refuse. On
37
- * a provider created without capabilities, a sortable column throws.
38
- */
39
- readonly sortable?: boolean;
40
- /**
41
- * Offer resizing of this column from its trailing edge, by pointer or
42
- * keyboard, held to the declared bounds of its sizing every time.
43
- *
44
- * The last column never offers it, whatever this says: its trailing edge is
45
- * the table's own edge, with nothing beyond it to resize against. It takes
46
- * whatever width the columns before it leave — past its own `maxPx` or
47
- * fixed width when there is room to spare — so it grows and shrinks as they
48
- * are resized, and keeps its resolved width once they no longer fit and the
49
- * table scrolls.
50
- */
51
- readonly resizable?: boolean;
52
- };
53
- /**
54
- * What the table says in place of its rows, or beside them. The four no-rows
55
- * cases stay distinct: an unfiltered collection with nothing in it is not a
56
- * query that matched nothing, and neither is an error. `loading` covers a
57
- * collection nothing displayable has arrived for yet, requested or not.
58
- * `stale` is shown above rows kept from an earlier query, because the
59
- * current one failed for `reason`.
60
- */
61
- export type DataTableStatus = {
62
- readonly kind: "loading";
63
- } | {
64
- readonly kind: "error";
65
- readonly reason: string;
66
- } | {
67
- readonly kind: "stale";
68
- readonly reason: string;
69
- } | {
70
- readonly kind: "no-data";
71
- } | {
72
- readonly kind: "no-results";
73
- };
74
- type OwnProps<TFields extends readonly SchemaFieldDefinition[], TRow extends object> = {
75
- /** The provider owning this collection's query, result and selection. */
76
- readonly provider: DataViewsProvider<TFields, TRow>;
77
- /** The rendered columns, in display order. */
78
- readonly columns: readonly DataTableColumn[];
79
- /** The table's accessible name. */
80
- readonly label: string;
81
- /**
82
- * The presentation record holding declared sizing and user overrides.
83
- * Supply one to share user arrangement between two tables on the same
84
- * provider; omitted, the table keeps its own. On a provider with views,
85
- * the widths follow the collection's presentation and a resize is saved
86
- * to it; without views they last for the record's lifetime.
87
- */
88
- readonly presentation?: Presentation;
89
- /** Render a leading selection column backed by the provider's selection. */
90
- readonly selectable?: boolean;
91
- /**
92
- * Names one record, for its selection checkbox. Defaults to its
93
- * identity. Written as a lambda it costs nothing: the table always calls
94
- * the latest one and never re-renders a row because the function is new.
95
- */
96
- readonly rowLabel?: (row: TRow, rowId: string) => string;
97
- /**
98
- * Replaces the default text of a status: no rows to render, or rows that
99
- * no longer answer the current query. Held the same way as `rowLabel`:
100
- * the latest one is always called, and its identity alone never
101
- * re-renders the body.
102
- */
103
- readonly renderStatus?: (status: DataTableStatus) => ReactNode;
104
- };
105
- /**
106
- * DataTable props. The root is a `div` carrying the table role, so it
107
- * extends native div props. `children` is excluded — the table's content is
108
- * its rows, which it renders itself — and so is `role`, which the table owns.
109
- * `className`, `style` and `ref` are merged with the table's own rather than
110
- * clobbered by either side.
111
- *
112
- * `ref` is honoured in both React forms: a callback ref that returns a
113
- * cleanup has that cleanup called on detach, and one that returns nothing is
114
- * called with `null` instead. A callback ref rebuilt on every render costs
115
- * nothing — the table holds the latest rather than re-attaching.
116
- */
117
- export type DataTableProps<TFields extends readonly SchemaFieldDefinition[], TRow extends object> = OwnProps<TFields, TRow> & Omit<ComponentProps<"div">, keyof OwnProps<TFields, TRow> | "children" | "role">;
118
- export {};
119
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/DataTable/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,iBAAiB,EACjB,YAAY,EACZ,qBAAqB,EACtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtE,qDAAqD;AACrD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,sCAAsC;IACtC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,iCAAiC;IACjC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,6BAA6B;IAC7B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,sDAAsD;IACtD,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,4BAA4B;IAC5B,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC;IAC3B,uEAAuE;IACvE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,aAAa,CAAC,kBAAkB,CAAC,CAAC;IAClD,0EAA0E;IAC1E,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC;IAC/B;;;;;OAKG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,eAAe,GACvB;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAA;CAAE,GAC5B;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GACnD;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GACnD;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAA;CAAE,GAC5B;IAAE,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAA;CAAE,CAAC;AAEpC,KAAK,QAAQ,CACX,OAAO,SAAS,SAAS,qBAAqB,EAAE,EAChD,IAAI,SAAS,MAAM,IACjB;IACF,yEAAyE;IACzE,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACpD,8CAA8C;IAC9C,QAAQ,CAAC,OAAO,EAAE,SAAS,eAAe,EAAE,CAAC;IAC7C,mCAAmC;IACnC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB;;;;;;OAMG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,YAAY,CAAC;IACrC,4EAA4E;IAC5E,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACzD;;;;;OAKG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,SAAS,CAAC;CAChE,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,cAAc,CACxB,OAAO,SAAS,SAAS,qBAAqB,EAAE,EAChD,IAAI,SAAS,MAAM,IACjB,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,GACzB,IAAI,CACF,cAAc,CAAC,KAAK,CAAC,EACrB,MAAM,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,GAAG,UAAU,GAAG,MAAM,CACpD,CAAC"}
@@ -1,29 +0,0 @@
1
- import type { Identity, ReadonlyChannel } from "@canonical/dataviews-core";
2
- /**
3
- * The value installed per rendered cell by the table renderer: the owning
4
- * provider, stable row and column identifiers, and the cell's observable
5
- * channels. The channels are read-only: a cell scope is a projection, not
6
- * another place to publish from.
7
- *
8
- * The provider is held as what its one consumer uses it for — a witness
9
- * compared by reference. Typing it as the whole provider would fix a field
10
- * list the table cannot know, and every table would cast its own provider
11
- * to satisfy it.
12
- */
13
- export type CellScopeValue = {
14
- readonly provider: {
15
- readonly identity: Identity;
16
- };
17
- readonly rowId: string;
18
- readonly columnId: string;
19
- readonly row: ReadonlyChannel<unknown>;
20
- readonly fields: Readonly<Record<string, ReadonlyChannel<unknown>>>;
21
- readonly selected: ReadonlyChannel<boolean>;
22
- };
23
- /**
24
- * React context carrying the current cell scope, installed by the table
25
- * renderer per cell. `useDataViewsCell()` reads from it.
26
- */
27
- declare const CellScopeContext: import("react").Context<CellScopeValue | null>;
28
- export default CellScopeContext;
29
- //# sourceMappingURL=CellScopeContext.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CellScopeContext.d.ts","sourceRoot":"","sources":["../../../../src/lib/DataViews/CellScopeContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAG3E;;;;;;;;;;GAUG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,QAAQ,EAAE;QAAE,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAA;KAAE,CAAC;IACnD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,GAAG,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;IACvC,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACpE,QAAQ,CAAC,QAAQ,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;CAC7C,CAAC;AAEF;;;GAGG;AACH,QAAA,MAAM,gBAAgB,gDAA6C,CAAC;AAEpE,eAAe,gBAAgB,CAAC"}
@@ -1,9 +0,0 @@
1
- import type { DataViewsProvider, SchemaFieldDefinition } from "@canonical/dataviews-core";
2
- /**
3
- * React context carrying the active DataViews provider for a root.
4
- *
5
- * `DataViews` writes to this context and `useDataViews()` reads from it.
6
- */
7
- declare const DataViewsContext: import("react").Context<DataViewsProvider<readonly SchemaFieldDefinition[]> | null>;
8
- export default DataViewsContext;
9
- //# sourceMappingURL=Context.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../../src/lib/DataViews/Context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,2BAA2B,CAAC;AAGnC;;;;GAIG;AACH,QAAA,MAAM,gBAAgB,qFAEP,CAAC;AAEhB,eAAe,gBAAgB,CAAC"}
@@ -1,19 +0,0 @@
1
- import type { RowRecord, SchemaFieldDefinition } from "@canonical/dataviews-core";
2
- import type { ReactElement } from "react";
3
- import type { DataViewsProps } from "./types.js";
4
- /**
5
- * The DataViews root: mounts the collection provider's context for the
6
- * hooks and connected parts of the composition.
7
- *
8
- * Pure composition — no single root element (AGENTS.md rule 6): the root is
9
- * a context mount, not a DOM node.
10
- */
11
- declare function DataViews<TFields extends readonly SchemaFieldDefinition[], TRow extends object = RowRecord>({ provider, children }: DataViewsProps<TFields, TRow>): ReactElement;
12
- declare namespace DataViews {
13
- var Actions: typeof import("./common/index.js").Actions;
14
- var Filters: typeof import("./common/index.js").Filters;
15
- var Pagination: typeof import("./common/index.js").Pagination;
16
- var Views: typeof import("./common/index.js").Views;
17
- }
18
- export default DataViews;
19
- //# sourceMappingURL=Provider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/lib/DataViews/Provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,SAAS,EACT,qBAAqB,EACtB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAG1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD;;;;;;GAMG;AACH,iBAAS,SAAS,CAChB,OAAO,SAAS,SAAS,qBAAqB,EAAE,EAChD,IAAI,SAAS,MAAM,GAAG,SAAS,EAC/B,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,cAAc,CAAC,OAAO,EAAE,IAAI,CAAC,GAAG,YAAY,CAcrE;kBAjBQ,SAAS;;;;;;AA4BlB,eAAe,SAAS,CAAC"}
@@ -1,19 +0,0 @@
1
- import type { ReactElement } from "react";
2
- import type { ActionsProps } from "./types.js";
3
- import "./styles.css";
4
- /**
5
- * What can be done with the current selection: how much is selected, the
6
- * actions a caller places, and a button that clears it.
7
- *
8
- * The bar reads the enclosing root's selection and takes no copy of it. It
9
- * is absent while nothing is selected. The count is the whole selection,
10
- * across pages, not the rows on screen.
11
- *
12
- * When the bar leaves with the focus inside it — the selection cleared, or
13
- * every target of an action succeeded — the focus returns to the control it
14
- * entered the bar from, rather than to the document.
15
- *
16
- * @implements ds:apps.subcomponent.data_table-action_bar
17
- */
18
- export default function Actions({ label, indicator, children, className, onFocus, ...rest }: ActionsProps): ReactElement | null;
19
- //# sourceMappingURL=Actions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Actions.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/DataViews/common/Actions/Actions.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAK1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,cAAc,CAAC;AAStB;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAC9B,KAA2B,EAC3B,SAAS,EACT,QAAQ,EACR,SAAS,EACT,OAAO,EACP,GAAG,IAAI,EACR,EAAE,YAAY,GAAG,YAAY,GAAG,IAAI,CA6DpC"}
@@ -1,3 +0,0 @@
1
- export { default as Actions } from "./Actions.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/DataViews/common/Actions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC;AAClD,mBAAmB,YAAY,CAAC"}
@@ -1,27 +0,0 @@
1
- import type { ComponentProps, ReactNode } from "react";
2
- type OwnProps = {
3
- /** The group's accessible name. Defaults to "Selection actions". */
4
- readonly label?: string;
5
- /**
6
- * The selection indicator: the count of selected items by default. A
7
- * caller's own indicator — a menu opening the selection, say — replaces it;
8
- * `null` shows none.
9
- */
10
- readonly indicator?: ReactNode;
11
- /**
12
- * The actions that apply to the selection. Each reads the selection when it
13
- * is activated, through `useDataViews`, so the bar takes no second copy of
14
- * it.
15
- */
16
- readonly children?: ReactNode;
17
- };
18
- /**
19
- * Props of the connected action bar. The root is a `div` grouping the
20
- * selection's commands, so it extends native div props. `role` is excluded,
21
- * since the group role is the bar's own, and so are `aria-label` and
22
- * `aria-labelledby`, which would override the name it takes from `label`.
23
- * So is `ref`: the bar holds its root to hand the focus back when it leaves.
24
- */
25
- export type ActionsProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps | "role" | "aria-label" | "aria-labelledby" | "ref">;
26
- export {};
27
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/DataViews/common/Actions/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd,oEAAoE;IACpE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC;CAC/B,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,GAAG,QAAQ,GACjC,IAAI,CACF,cAAc,CAAC,KAAK,CAAC,EACrB,MAAM,QAAQ,GAAG,MAAM,GAAG,YAAY,GAAG,iBAAiB,GAAG,KAAK,CACnE,CAAC"}
@@ -1,14 +0,0 @@
1
- import type { ReactElement } from "react";
2
- import type { FiltersProps } from "./types.js";
3
- /**
4
- * The collection's query-editing controls.
5
- *
6
- * Which fields are on offer and which operators each accepts come from the
7
- * provider — its schema, and what its source declares it can execute — not
8
- * from props: a restriction the source would refuse is never offered, and
9
- * there is no second query to keep in step with the applied one. Edits go
10
- * straight to the applied query — an invalid or incomplete edit keeps the
11
- * restriction that is already in force and says so beside the control.
12
- */
13
- export default function Filters({ label, labels, className, ...rest }: FiltersProps): ReactElement;
14
- //# sourceMappingURL=Filters.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Filters.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/DataViews/common/Filters/Filters.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAK1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAI/C;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAC9B,KAAiB,EACjB,MAAM,EACN,SAAS,EACT,GAAG,IAAI,EACR,EAAE,YAAY,GAAG,YAAY,CAoE7B"}
@@ -1,12 +0,0 @@
1
- import type { ReactElement } from "react";
2
- import type { BoundFilterProps } from "./types.js";
3
- /**
4
- * One bound of a number or date field.
5
- *
6
- * Emptying the input is incomplete, not a removal: the applied bound stays
7
- * until it is explicitly cleared, which is what the clear control is for.
8
- * A number is typed as text, so what the user typed is what is validated
9
- * and shown — a number input would hand over an empty value instead.
10
- */
11
- export default function BoundFilter({ handle, label, bound, kind, declared, }: BoundFilterProps): ReactElement | null;
12
- //# sourceMappingURL=BoundFilter.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BoundFilter.d.ts","sourceRoot":"","sources":["../../../../../../../../src/lib/DataViews/common/Filters/common/BoundFilter/BoundFilter.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAI1C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAkCnD;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,MAAM,EACN,KAAK,EACL,KAAK,EACL,IAAI,EACJ,QAAQ,GACT,EAAE,gBAAgB,GAAG,YAAY,GAAG,IAAI,CA8CxC"}
@@ -1,3 +0,0 @@
1
- export { default as BoundFilter } from "./BoundFilter.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/DataViews/common/Filters/common/BoundFilter/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC1D,mBAAmB,YAAY,CAAC"}
@@ -1,24 +0,0 @@
1
- import type { PredicateOperator, ProviderFieldHandle, SchemaFieldDefinition } from "@canonical/dataviews-core";
2
- /**
3
- * Props of one bound filter.
4
- *
5
- * Exempt from the native-prop extension convention: an internal renderer
6
- * deriving its root from the schema field it was built for, not forwarding
7
- * a caller's native props.
8
- */
9
- export type BoundFilterProps = {
10
- /** The provider handle for this field's lower or upper bound. */
11
- readonly handle: ProviderFieldHandle<number | string>;
12
- /** The field's visible name; the bound's own wording is added to it. */
13
- readonly label: string;
14
- /** Which bound this control edits. */
15
- readonly bound: Extract<PredicateOperator, "gte" | "lte">;
16
- /** The field's kind, which decides the control. */
17
- readonly kind: Extract<SchemaFieldDefinition["kind"], "number" | "date">;
18
- /**
19
- * Whether the source declares this bound. An undeclared one is offered
20
- * only while it stands, and only for removal.
21
- */
22
- readonly declared: boolean;
23
- };
24
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../src/lib/DataViews/common/Filters/common/BoundFilter/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,2BAA2B,CAAC;AAEnC;;;;;;GAMG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,iEAAiE;IACjE,QAAQ,CAAC,MAAM,EAAE,mBAAmB,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IACtD,wEAAwE;IACxE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,sCAAsC;IACtC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,iBAAiB,EAAE,KAAK,GAAG,KAAK,CAAC,CAAC;IAC1D,mDAAmD;IACnD,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,qBAAqB,CAAC,MAAM,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC,CAAC;IACzE;;;OAGG;IACH,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;CAC5B,CAAC"}
@@ -1,10 +0,0 @@
1
- import type { ReactElement } from "react";
2
- import type { ChoicesFilterProps } from "./types.js";
3
- /**
4
- * One closed-set filter: a checkbox per option, so the applied set is
5
- * visible and reachable without opening anything. Membership is the whole
6
- * state — the last option cleared removes the predicate rather than
7
- * applying an empty restriction that matches nothing.
8
- */
9
- export default function ChoicesFilter({ options, handle, label, declared, }: ChoicesFilterProps): ReactElement | null;
10
- //# sourceMappingURL=ChoicesFilter.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChoicesFilter.d.ts","sourceRoot":"","sources":["../../../../../../../../src/lib/DataViews/common/Filters/common/ChoicesFilter/ChoicesFilter.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAMrD;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACpC,OAAO,EACP,MAAM,EACN,KAAK,EACL,QAAQ,GACT,EAAE,kBAAkB,GAAG,YAAY,GAAG,IAAI,CAoC1C"}
@@ -1,3 +0,0 @@
1
- export { default as ChoicesFilter } from "./ChoicesFilter.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/DataViews/common/Filters/common/ChoicesFilter/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC9D,mBAAmB,YAAY,CAAC"}
@@ -1,22 +0,0 @@
1
- import type { PredicateOperand, ProviderFieldHandle } from "@canonical/dataviews-core";
2
- /**
3
- * Props of one closed-set filter.
4
- *
5
- * Exempt from the native-prop extension convention: an internal renderer
6
- * deriving its root from the schema field it was built for, not forwarding
7
- * a caller's native props.
8
- */
9
- export type ChoicesFilterProps = {
10
- /** The field's option values, in schema order. */
11
- readonly options: readonly (string | number)[];
12
- /** The provider handle for this field's equality predicate. */
13
- readonly handle: ProviderFieldHandle<ReadonlySet<PredicateOperand>>;
14
- /** The group's visible name. */
15
- readonly label: string;
16
- /**
17
- * Whether the source declares this field's equality predicate. An undeclared
18
- * one is offered only while it stands, and only for removal.
19
- */
20
- readonly declared: boolean;
21
- };
22
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../src/lib/DataViews/common/Filters/common/ChoicesFilter/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,mBAAmB,EACpB,MAAM,2BAA2B,CAAC;AAEnC;;;;;;GAMG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,kDAAkD;IAClD,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IAC/C,+DAA+D;IAC/D,QAAQ,CAAC,MAAM,EAAE,mBAAmB,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC,CAAC;IACpE,gCAAgC;IAChC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;CAC5B,CAAC"}
@@ -1,9 +0,0 @@
1
- import type { ReactElement } from "react";
2
- import type { FlagFilterProps } from "./types.js";
3
- /**
4
- * One presence filter: the predicate is either applied or absent, so the
5
- * checkbox applies it and unchecking removes it. There is no third state
6
- * asserting the field is unset — the grammar has no operator for that.
7
- */
8
- export default function FlagFilter({ handle, label, declared, }: FlagFilterProps): ReactElement | null;
9
- //# sourceMappingURL=FlagFilter.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FlagFilter.d.ts","sourceRoot":"","sources":["../../../../../../../../src/lib/DataViews/common/Filters/common/FlagFilter/FlagFilter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAIlD;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,MAAM,EACN,KAAK,EACL,QAAQ,GACT,EAAE,eAAe,GAAG,YAAY,GAAG,IAAI,CAwBvC"}
@@ -1,3 +0,0 @@
1
- export { default as FlagFilter } from "./FlagFilter.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/DataViews/common/Filters/common/FlagFilter/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACxD,mBAAmB,YAAY,CAAC"}
@@ -1,20 +0,0 @@
1
- import type { ProviderFieldHandle } from "@canonical/dataviews-core";
2
- /**
3
- * Props of one presence filter.
4
- *
5
- * Exempt from the native-prop extension convention: an internal renderer
6
- * deriving its root from the schema field it was built for, not forwarding
7
- * a caller's native props.
8
- */
9
- export type FlagFilterProps = {
10
- /** The provider handle for this field's presence predicate. */
11
- readonly handle: ProviderFieldHandle<boolean>;
12
- /** The field's visible name. */
13
- readonly label: string;
14
- /**
15
- * Whether the source declares this field's presence predicate. An undeclared
16
- * one is offered only while it stands, and only for removal.
17
- */
18
- readonly declared: boolean;
19
- };
20
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../src/lib/DataViews/common/Filters/common/FlagFilter/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAErE;;;;;;GAMG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,+DAA+D;IAC/D,QAAQ,CAAC,MAAM,EAAE,mBAAmB,CAAC,OAAO,CAAC,CAAC;IAC9C,gCAAgC;IAChC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;CAC5B,CAAC"}
@@ -1,4 +0,0 @@
1
- export * from "./BoundFilter/index.js";
2
- export * from "./ChoicesFilter/index.js";
3
- export * from "./FlagFilter/index.js";
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/DataViews/common/Filters/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC"}
@@ -1,11 +0,0 @@
1
- import type { DataViewsProvider, PredicateOperator, ProviderFieldHandle, SchemaFieldDefinition } from "@canonical/dataviews-core";
2
- /**
3
- * Read one field handle off a provider by its address.
4
- *
5
- * The context stores the widest provider shape, whose field map is keyed by
6
- * an open string rather than the literal field names of one schema. The
7
- * caller reaches this by walking that same schema, and names the applied
8
- * type that field's kind publishes; nothing here checks it.
9
- */
10
- export default function handleFor<TApplied>(provider: DataViewsProvider<readonly SchemaFieldDefinition[]>, field: string, operator: PredicateOperator): ProviderFieldHandle<TApplied>;
11
- //# sourceMappingURL=handleFor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"handleFor.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/DataViews/common/Filters/handleFor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,2BAA2B,CAAC;AAEnC;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,QAAQ,EACxC,QAAQ,EAAE,iBAAiB,CAAC,SAAS,qBAAqB,EAAE,CAAC,EAC7D,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,iBAAiB,GAC1B,mBAAmB,CAAC,QAAQ,CAAC,CAK/B"}
@@ -1,3 +0,0 @@
1
- export { default as Filters } from "./Filters.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/DataViews/common/Filters/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC;AAClD,mBAAmB,YAAY,CAAC"}
@@ -1,23 +0,0 @@
1
- import type { ComponentProps } from "react";
2
- type OwnProps = {
3
- /** The group's legend, which names it. Defaults to "Filters". */
4
- readonly label?: string;
5
- /**
6
- * Visible names for fields, keyed by field name. A field with no entry is
7
- * named by its own field name. Presentation only: the fields on offer and
8
- * the operators they accept come from the provider's schema and its
9
- * source's declared capabilities.
10
- */
11
- readonly labels?: Readonly<Partial<Record<string, string>>>;
12
- };
13
- /**
14
- * Props of the connected filters part. The root is a `fieldset` naming the
15
- * group, so it extends native fieldset props — `disabled` reaches every
16
- * control for free. `children` is excluded: the controls are derived from
17
- * the provider, not composed by hand. So are `role`, which would override
18
- * the fieldset's `group` role, and `aria-label` and `aria-labelledby`,
19
- * which would override the name it takes from `label`.
20
- */
21
- export type FiltersProps = OwnProps & Omit<ComponentProps<"fieldset">, keyof OwnProps | "children" | "role" | "aria-label" | "aria-labelledby">;
22
- export {};
23
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/DataViews/common/Filters/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,KAAK,QAAQ,GAAG;IACd,iEAAiE;IACjE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;CAC7D,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,YAAY,GAAG,QAAQ,GACjC,IAAI,CACF,cAAc,CAAC,UAAU,CAAC,EAC1B,MAAM,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,YAAY,GAAG,iBAAiB,CACxE,CAAC"}
@@ -1,12 +0,0 @@
1
- import type { ReactElement } from "react";
2
- import type { PaginationProps } from "./types.js";
3
- /**
4
- * Window navigation for the collection: the pagination bar, bound to the
5
- * enclosing root's provider.
6
- *
7
- * It renders exactly what `PaginationBar` renders for that provider. The one
8
- * difference is where the provider comes from: this part reads the root it
9
- * is placed in, and throws outside one, rather than taking a provider prop.
10
- */
11
- export default function Pagination(props: PaginationProps): ReactElement;
12
- //# sourceMappingURL=Pagination.d.ts.map