@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 +0,0 @@
1
- {"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/DataViews/common/Pagination/Pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAI1C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,eAAe,GAAG,YAAY,CAQvE"}
@@ -1,3 +0,0 @@
1
- export { default as Pagination } from "./Pagination.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/Pagination/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACxD,mBAAmB,YAAY,CAAC"}
@@ -1,8 +0,0 @@
1
- import type { SchemaFieldDefinition } from "@canonical/dataviews-core";
2
- import type { PaginationBarProps } from "../../../PaginationBar/types.js";
3
- /**
4
- * Props of the connected pagination part: the pagination bar's, less the
5
- * provider, which comes from the enclosing root.
6
- */
7
- export type PaginationProps = Omit<PaginationBarProps<readonly SchemaFieldDefinition[]>, "provider">;
8
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/DataViews/common/Pagination/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAE1E;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,IAAI,CAChC,kBAAkB,CAAC,SAAS,qBAAqB,EAAE,CAAC,EACpD,UAAU,CACX,CAAC"}
@@ -1,25 +0,0 @@
1
- import type { ReactElement } from "react";
2
- import type { ViewsProps } from "./types.js";
3
- import "./styles.css";
4
- /**
5
- * The collection's saved views: which view is open, whether the query has
6
- * moved from it, and the way to switch, save, save as, rename and delete.
7
- *
8
- * It reads the views of the enclosing root's provider, over the store the
9
- * application gave it, and throws without one: there are no views kept in
10
- * memory instead. Views live in the browser, so without JavaScript the
11
- * control says only that they are unavailable; a link to a query still
12
- * works, since the query is in the URL.
13
- *
14
- * Every outcome is said in a polite status, a conflict or a failure never as
15
- * saved. After a conflict the stored view is the open one: Save overwrites
16
- * it and Reset discards the changes. Deleting asks first. A name that is
17
- * empty or another view's is refused before anything is written, beside the
18
- * input.
19
- *
20
- * The focus is never stranded: a panel returns it to the command that opened
21
- * it, and a control that becomes unavailable under it hands it to the view
22
- * select, or to Try again while the views are unavailable.
23
- */
24
- export default function Views({ label, className, onFocus, onBlur, ...rest }: ViewsProps): ReactElement;
25
- //# sourceMappingURL=Views.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Views.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/DataViews/common/Views/Views.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAc1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,OAAO,cAAc,CAAC;AAOtB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,EAC5B,KAAqB,EACrB,SAAS,EACT,OAAO,EACP,MAAM,EACN,GAAG,IAAI,EACR,EAAE,UAAU,GAAG,YAAY,CAqQ3B"}
@@ -1,8 +0,0 @@
1
- import type { ReactElement } from "react";
2
- import type { DeleteConfirmProps } from "./types.js";
3
- /**
4
- * The question deleting a view asks first, naming the view. The focus starts
5
- * on Cancel, so a stray Enter deletes nothing. Escape cancels.
6
- */
7
- export default function DeleteConfirm({ name, pending, onConfirm, onCancel, }: DeleteConfirmProps): ReactElement;
8
- //# sourceMappingURL=DeleteConfirm.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeleteConfirm.d.ts","sourceRoot":"","sources":["../../../../../../../../src/lib/DataViews/common/Views/common/DeleteConfirm/DeleteConfirm.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,EACpC,IAAI,EACJ,OAAO,EACP,SAAS,EACT,QAAQ,GACT,EAAE,kBAAkB,GAAG,YAAY,CAmCnC"}
@@ -1,3 +0,0 @@
1
- export { default as DeleteConfirm } from "./DeleteConfirm.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/Views/common/DeleteConfirm/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC9D,mBAAmB,YAAY,CAAC"}
@@ -1,14 +0,0 @@
1
- /**
2
- * Exempt from the native-prop extension convention: an internal renderer of
3
- * the views control, never rendered by a caller, whose root the control
4
- * places.
5
- */
6
- export type DeleteConfirmProps = {
7
- /** The name of the view to delete. */
8
- readonly name: string;
9
- /** Whether an operation is in flight; deleting waits for it. */
10
- readonly pending: boolean;
11
- readonly onConfirm: () => void;
12
- readonly onCancel: () => void;
13
- };
14
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../src/lib/DataViews/common/Views/common/DeleteConfirm/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,sCAAsC;IACtC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,gEAAgE;IAChE,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,SAAS,EAAE,MAAM,IAAI,CAAC;IAC/B,QAAQ,CAAC,QAAQ,EAAE,MAAM,IAAI,CAAC;CAC/B,CAAC"}
@@ -1,11 +0,0 @@
1
- import type { ReactElement } from "react";
2
- import type { NameFormProps } from "./types.js";
3
- /**
4
- * The name for a new view, or a view's new name.
5
- *
6
- * It takes the focus when it opens, and takes it back when a name is
7
- * refused, so the error beside the input is where the user already is.
8
- * Escape cancels.
9
- */
10
- export default function NameForm({ label, submit, initial, pending, onSubmit, onCancel, }: NameFormProps): ReactElement;
11
- //# sourceMappingURL=NameForm.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NameForm.d.ts","sourceRoot":"","sources":["../../../../../../../../src/lib/DataViews/common/Views/common/NameForm/NameForm.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAIhD;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAC/B,KAAK,EACL,MAAM,EACN,OAAO,EACP,OAAO,EACP,QAAQ,EACR,QAAQ,GACT,EAAE,aAAa,GAAG,YAAY,CA0D9B"}
@@ -1,3 +0,0 @@
1
- export { default as NameForm } from "./NameForm.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/Views/common/NameForm/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpD,mBAAmB,YAAY,CAAC"}
@@ -1,22 +0,0 @@
1
- /**
2
- * Exempt from the native-prop extension convention: an internal renderer of
3
- * the views control, never rendered by a caller, whose root the control
4
- * places.
5
- */
6
- export type NameFormProps = {
7
- /** The form's accessible name: what the name is for. */
8
- readonly label: string;
9
- /** The submit button's text. */
10
- readonly submit: string;
11
- /** The name the input starts with. */
12
- readonly initial: string;
13
- /** Whether an operation is in flight; the form cannot submit meanwhile. */
14
- readonly pending: boolean;
15
- /**
16
- * Submit a name. Resolves with why it was refused, as a sentence, or null
17
- * once it is taken.
18
- */
19
- readonly onSubmit: (name: string) => Promise<string | null>;
20
- readonly onCancel: () => void;
21
- };
22
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../src/lib/DataViews/common/Views/common/NameForm/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,wDAAwD;IACxD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,gCAAgC;IAChC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,sCAAsC;IACtC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,2EAA2E;IAC3E,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B;;;OAGG;IACH,QAAQ,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC5D,QAAQ,CAAC,QAAQ,EAAE,MAAM,IAAI,CAAC;CAC/B,CAAC"}
@@ -1,3 +0,0 @@
1
- export * from "./DeleteConfirm/index.js";
2
- export * from "./NameForm/index.js";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/DataViews/common/Views/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC"}
@@ -1,3 +0,0 @@
1
- export type * from "./types.js";
2
- export { default as Views } from "./Views.js";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/DataViews/common/Views/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,YAAY,CAAC;AAChC,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,YAAY,CAAC"}
@@ -1,16 +0,0 @@
1
- import type { ComponentProps } from "react";
2
- type OwnProps = {
3
- /** The group's accessible name. Defaults to "Saved views". */
4
- readonly label?: string;
5
- };
6
- /**
7
- * Props of the connected views control. The root is a `div` grouping the
8
- * collection's saved-view controls, so it extends native div props.
9
- * `children` is excluded, since the control renders its own contents, and so
10
- * is `role`, the group role being the control's own, and so are `aria-label`
11
- * and `aria-labelledby`, which would override the name it takes from
12
- * `label`.
13
- */
14
- export type ViewsProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps | "children" | "role" | "aria-label" | "aria-labelledby">;
15
- export {};
16
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/DataViews/common/Views/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,KAAK,QAAQ,GAAG;IACd,8DAA8D;IAC9D,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,UAAU,GAAG,QAAQ,GAC/B,IAAI,CACF,cAAc,CAAC,KAAK,CAAC,EACrB,MAAM,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,YAAY,GAAG,iBAAiB,CACxE,CAAC"}
@@ -1,9 +0,0 @@
1
- import type { ViewOperation } from "@canonical/dataviews-core/views";
2
- /**
3
- * What the views control says about its latest operation: what is in flight,
4
- * then what happened. A conflict or a failure never reads as saved, and a
5
- * confirmation that the query was opened or saved is withdrawn once the query
6
- * moves from it, where it would no longer be true.
7
- */
8
- export default function viewStatusText(operation: ViewOperation | null, modified: boolean): string;
9
- //# sourceMappingURL=viewStatusText.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"viewStatusText.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/DataViews/common/Views/viewStatusText.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAqBrE;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,CACpC,SAAS,EAAE,aAAa,GAAG,IAAI,EAC/B,QAAQ,EAAE,OAAO,GAChB,MAAM,CAsCR"}
@@ -1,5 +0,0 @@
1
- export * from "./Actions/index.js";
2
- export * from "./Filters/index.js";
3
- export * from "./Pagination/index.js";
4
- export * from "./Views/index.js";
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/DataViews/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC"}
@@ -1,6 +0,0 @@
1
- export type { UseDataViewsCellResult, UseDataViewsFieldResult, UseDataViewsResult, } from "./types.js";
2
- export { default as useDataViews } from "./useDataViews.js";
3
- export { default as useDataViewsCell } from "./useDataViewsCell.js";
4
- export { default as useDataViewsField } from "./useDataViewsField.js";
5
- export { default as useDataViewsValue } from "./useDataViewsValue.js";
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/DataViews/hooks/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,sBAAsB,EACtB,uBAAuB,EACvB,kBAAkB,GACnB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,wBAAwB,CAAC"}
@@ -1,48 +0,0 @@
1
- /**
2
- * Hook domain types for the DataViews domain. Each hook declares its result
3
- * type here; hook props types live beside them when a hook takes config.
4
- */
5
- import type { Channel, CollectionCoordinatorState, EmptyOr, FieldFeedback, Operation, PredicateOperand, ProviderFields, ReadonlyChannel, ResultWindow, RowModel, RowRecord, SchemaFieldDefinition, Selection, Slice, SortTerm } from "@canonical/dataviews-core";
6
- /**
7
- * A core record publishing its own immutable state. `Selection`,
8
- * `Presentation` and `GridInteraction` expose a `state` getter and a
9
- * `subscribe` rather than a channel, so `useDataViewsState` observes them
10
- * through this shape while channels go through `useDataViewsValue`.
11
- */
12
- export type StateRecord<T> = {
13
- readonly state: T;
14
- readonly subscribe: (listener: () => void) => () => void;
15
- };
16
- /** The typed collection scope returned by useDataViews. */
17
- export type UseDataViewsResult<TFields extends readonly SchemaFieldDefinition[], TRow extends object = RowRecord> = {
18
- /** The coordinator snapshot channel (result, query and window). */
19
- readonly result: Channel<CollectionCoordinatorState<TRow>>;
20
- /** The displayed rows as one shared model, keyed by stable identity. */
21
- readonly rows: Channel<RowModel<TRow>>;
22
- readonly selection: Selection;
23
- readonly fields: ProviderFields<TFields>;
24
- readonly navigateWindow: (page?: number, size?: number) => void;
25
- readonly setSort: (sort: readonly SortTerm[]) => void;
26
- readonly setSearch: (search: string) => void;
27
- readonly refresh: () => string | null;
28
- readonly adopt: (slice: Slice, window: ResultWindow) => string | null;
29
- readonly invokeAction: (targets: readonly string[], payload?: unknown) => Operation;
30
- };
31
- /** The binding returned by useDataViewsField. */
32
- export type UseDataViewsFieldResult<TApplied> = {
33
- readonly input: string;
34
- readonly applied: EmptyOr<TApplied>;
35
- readonly feedback: FieldFeedback;
36
- readonly edit: (buffer: string) => void;
37
- readonly set: (operands: readonly PredicateOperand[]) => void;
38
- readonly clear: () => void;
39
- };
40
- /** The cell scope returned by useDataViewsCell. Its channels are read-only. */
41
- export type UseDataViewsCellResult = {
42
- readonly rowId: string;
43
- readonly columnId: string;
44
- readonly row: ReadonlyChannel<unknown>;
45
- readonly fields: Readonly<Record<string, ReadonlyChannel<unknown>>>;
46
- readonly selected: ReadonlyChannel<boolean>;
47
- };
48
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/DataViews/hooks/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EACV,OAAO,EACP,0BAA0B,EAC1B,OAAO,EACP,aAAa,EACb,SAAS,EACT,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,YAAY,EACZ,QAAQ,EACR,SAAS,EACT,qBAAqB,EACrB,SAAS,EACT,KAAK,EACL,QAAQ,EACT,MAAM,2BAA2B,CAAC;AAEnC;;;;;GAKG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;IAC3B,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC;IAClB,QAAQ,CAAC,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,IAAI,KAAK,MAAM,IAAI,CAAC;CAC1D,CAAC;AAEF,2DAA2D;AAC3D,MAAM,MAAM,kBAAkB,CAC5B,OAAO,SAAS,SAAS,qBAAqB,EAAE,EAChD,IAAI,SAAS,MAAM,GAAG,SAAS,IAC7B;IACF,mEAAmE;IACnE,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC,0BAA0B,CAAC,IAAI,CAAC,CAAC,CAAC;IAC3D,wEAAwE;IACxE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;IACvC,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;IACzC,QAAQ,CAAC,cAAc,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAChE,QAAQ,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,SAAS,QAAQ,EAAE,KAAK,IAAI,CAAC;IACtD,QAAQ,CAAC,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,QAAQ,CAAC,OAAO,EAAE,MAAM,MAAM,GAAG,IAAI,CAAC;IACtC,QAAQ,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,KAAK,MAAM,GAAG,IAAI,CAAC;IACtE,QAAQ,CAAC,YAAY,EAAE,CACrB,OAAO,EAAE,SAAS,MAAM,EAAE,EAC1B,OAAO,CAAC,EAAE,OAAO,KACd,SAAS,CAAC;CAChB,CAAC;AAEF,iDAAiD;AACjD,MAAM,MAAM,uBAAuB,CAAC,QAAQ,IAAI;IAC9C,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IACpC,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC;IACjC,QAAQ,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,QAAQ,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,SAAS,gBAAgB,EAAE,KAAK,IAAI,CAAC;IAC9D,QAAQ,CAAC,KAAK,EAAE,MAAM,IAAI,CAAC;CAC5B,CAAC;AAEF,+EAA+E;AAC/E,MAAM,MAAM,sBAAsB,GAAG;IACnC,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"}
@@ -1,11 +0,0 @@
1
- import type { DataViewsProvider, RowRecord, SchemaFieldDefinition } from "@canonical/dataviews-core";
2
- import type { UseDataViewsResult } from "./types.js";
3
- /**
4
- * Read the enclosing DataViews root's typed collection scope.
5
- *
6
- * The passed provider is an identity witness: it must be the exact provider
7
- * the enclosing root mounts. The returned scope is stable across renders for
8
- * the provider's lifetime.
9
- */
10
- export default function useDataViews<TFields extends readonly SchemaFieldDefinition[], TRow extends object = RowRecord>(provider: DataViewsProvider<TFields, TRow>): UseDataViewsResult<TFields, TRow>;
11
- //# sourceMappingURL=useDataViews.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useDataViews.d.ts","sourceRoot":"","sources":["../../../../../src/lib/DataViews/hooks/useDataViews.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,SAAS,EACT,qBAAqB,EACtB,MAAM,2BAA2B,CAAC;AAInC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAErD;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,OAAO,SAAS,SAAS,qBAAqB,EAAE,EAChD,IAAI,SAAS,MAAM,GAAG,SAAS,EAE/B,QAAQ,EAAE,iBAAiB,CAAC,OAAO,EAAE,IAAI,CAAC,GACzC,kBAAkB,CAAC,OAAO,EAAE,IAAI,CAAC,CA8BnC"}
@@ -1,11 +0,0 @@
1
- import type { DataViewsProvider, RowRecord, SchemaFieldDefinition } from "@canonical/dataviews-core";
2
- import type { UseDataViewsCellResult } from "./types.js";
3
- /**
4
- * Read the current cell's scope, installed by the table renderer.
5
- *
6
- * The passed provider is an identity witness: it must be the exact provider
7
- * the enclosing DataViews root mounts, and the hook must run inside a
8
- * component returned by a column's `render` — not in an arbitrary callback.
9
- */
10
- export default function useDataViewsCell<TFields extends readonly SchemaFieldDefinition[], TRow extends object = RowRecord>(provider: DataViewsProvider<TFields, TRow>): UseDataViewsCellResult;
11
- //# sourceMappingURL=useDataViewsCell.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useDataViewsCell.d.ts","sourceRoot":"","sources":["../../../../../src/lib/DataViews/hooks/useDataViewsCell.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,SAAS,EACT,qBAAqB,EACtB,MAAM,2BAA2B,CAAC;AAInC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAEzD;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CACtC,OAAO,SAAS,SAAS,qBAAqB,EAAE,EAChD,IAAI,SAAS,MAAM,GAAG,SAAS,EAC/B,QAAQ,EAAE,iBAAiB,CAAC,OAAO,EAAE,IAAI,CAAC,GAAG,sBAAsB,CAmBpE"}
@@ -1,8 +0,0 @@
1
- import type { ProviderFieldHandle } from "@canonical/dataviews-core";
2
- import type { UseDataViewsFieldResult } from "./types.js";
3
- /**
4
- * Bind to one field handle: its input buffer, applied semantic value and
5
- * feedback, with edit and clear routed through the provider.
6
- */
7
- export default function useDataViewsField<TApplied>(handle: ProviderFieldHandle<TApplied>): UseDataViewsFieldResult<TApplied>;
8
- //# sourceMappingURL=useDataViewsField.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useDataViewsField.d.ts","sourceRoot":"","sources":["../../../../../src/lib/DataViews/hooks/useDataViewsField.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAErE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAE1D;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,QAAQ,EAChD,MAAM,EAAE,mBAAmB,CAAC,QAAQ,CAAC,GACpC,uBAAuB,CAAC,QAAQ,CAAC,CAsBnC"}
@@ -1,11 +0,0 @@
1
- import type { StateRecord } from "./types.js";
2
- /**
3
- * Observe one core record's state and re-render only when it publishes.
4
- *
5
- * The companion to `useDataViewsValue` for the records that expose a `state`
6
- * getter and a `subscribe` rather than a channel. Deliberately absent from
7
- * the hooks barrel: it exists so the table has one answer to that shape
8
- * instead of an inlined `useSyncExternalStore` triple per call site.
9
- */
10
- export default function useDataViewsState<T>(record: StateRecord<T>): T;
11
- //# sourceMappingURL=useDataViewsState.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useDataViewsState.d.ts","sourceRoot":"","sources":["../../../../../src/lib/DataViews/hooks/useDataViewsState.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAGtE"}
@@ -1,7 +0,0 @@
1
- import type { ReadonlyChannel } from "@canonical/dataviews-core";
2
- /**
3
- * Observe one provider channel and re-render only when it publishes. The
4
- * value is the channel's immutable snapshot.
5
- */
6
- export default function useDataViewsValue<T>(channel: ReadonlyChannel<T>): T;
7
- //# sourceMappingURL=useDataViewsValue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useDataViewsValue.d.ts","sourceRoot":"","sources":["../../../../../src/lib/DataViews/hooks/useDataViewsValue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAGjE;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,CAAC,EAAE,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG,CAAC,CAE3E"}
@@ -1,9 +0,0 @@
1
- export type { CellScopeValue } from "./CellScopeContext.js";
2
- export type { ActionsProps } from "./common/Actions/index.js";
3
- export type { FiltersProps } from "./common/Filters/index.js";
4
- export type { PaginationProps } from "./common/Pagination/index.js";
5
- export type { ViewsProps } from "./common/Views/index.js";
6
- export * from "./hooks/index.js";
7
- export { default as DataViews } from "./Provider.js";
8
- export type { DataViewsProps } from "./types.js";
9
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/DataViews/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,YAAY,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,YAAY,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,YAAY,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,YAAY,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,eAAe,CAAC;AACrD,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC"}
@@ -1,3 +0,0 @@
1
- /** A noun for a count: singular for one, plural for any other number. */
2
- export default function plural(count: number, noun: string): string;
3
- //# sourceMappingURL=plural.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plural.d.ts","sourceRoot":"","sources":["../../../../src/lib/DataViews/plural.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAElE"}
@@ -1,6 +0,0 @@
1
- /**
2
- * A core reason — a lowercase fragment, as schema and store reasons are — as
3
- * a sentence of its own.
4
- */
5
- export default function sentenceOf(reason: string): string;
6
- //# sourceMappingURL=sentenceOf.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sentenceOf.d.ts","sourceRoot":"","sources":["../../../../src/lib/DataViews/sentenceOf.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEzD"}
@@ -1,18 +0,0 @@
1
- import type { DataViewsProvider, RowRecord, SchemaFieldDefinition } from "@canonical/dataviews-core";
2
- import type { ReactNode } from "react";
3
- type OwnProps<TFields extends readonly SchemaFieldDefinition[], TRow extends object> = {
4
- /** The provider created by `createDataViewsProvider` for this collection. */
5
- readonly provider: DataViewsProvider<TFields, TRow>;
6
- /** The composition's children; optional for host-specific shells. */
7
- readonly children?: ReactNode;
8
- };
9
- /**
10
- * Props of the DataViews root. A context mount, not a DOM element.
11
- *
12
- * The record type travels with the provider: a provider built for a row
13
- * type mounts as itself rather than as the widest record shape, which the
14
- * channel's own invariance would otherwise refuse.
15
- */
16
- export type DataViewsProps<TFields extends readonly SchemaFieldDefinition[], TRow extends object = RowRecord> = OwnProps<TFields, TRow>;
17
- export {};
18
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/DataViews/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;AAEvC,KAAK,QAAQ,CACX,OAAO,SAAS,SAAS,qBAAqB,EAAE,EAChD,IAAI,SAAS,MAAM,IACjB;IACF,6EAA6E;IAC7E,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACpD,qEAAqE;IACrE,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC;CAC/B,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,cAAc,CACxB,OAAO,SAAS,SAAS,qBAAqB,EAAE,EAChD,IAAI,SAAS,MAAM,GAAG,SAAS,IAC7B,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC"}
@@ -1,17 +0,0 @@
1
- import type { RowRecord, SchemaFieldDefinition } from "@canonical/dataviews-core";
2
- import type { ReactElement } from "react";
3
- import type { PaginationBarProps } from "./types.js";
4
- import "./styles.css";
5
- /**
6
- * The bar beneath a collection's rows: the page size, which items are on
7
- * screen out of how many, and the way to every other page.
8
- *
9
- * It takes its provider explicitly, as DataTable does, so a standalone table
10
- * gets the same footer as a composed one. It offers only pages the
11
- * collection can reach, and a focused button that becomes unavailable hands
12
- * the focus to the page select.
13
- *
14
- * @implements ds:apps.subcomponent.data_table-pagination_bar
15
- */
16
- export default function PaginationBar<TFields extends readonly SchemaFieldDefinition[], TRow extends object = RowRecord>({ provider, label, sizes, className, ...rest }: PaginationBarProps<TFields, TRow>): ReactElement;
17
- //# sourceMappingURL=PaginationBar.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PaginationBar.d.ts","sourceRoot":"","sources":["../../../../src/lib/PaginationBar/PaginationBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,SAAS,EACT,qBAAqB,EAEtB,MAAM,2BAA2B,CAAC;AAInC,OAAO,KAAK,EAAc,YAAY,EAAE,MAAM,OAAO,CAAC;AAMtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,cAAc,CAAC;AAsCtB;;;;;;;;;;GAUG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CACnC,OAAO,SAAS,SAAS,qBAAqB,EAAE,EAChD,IAAI,SAAS,MAAM,GAAG,SAAS,EAC/B,EACA,QAAQ,EACR,KAAoB,EACpB,KAAqB,EACrB,SAAS,EACT,GAAG,IAAI,EACR,EAAE,kBAAkB,CAAC,OAAO,EAAE,IAAI,CAAC,GAAG,YAAY,CAoJlD"}
@@ -1,3 +0,0 @@
1
- export { default as PaginationBar } from "./PaginationBar.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/PaginationBar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC9D,mBAAmB,YAAY,CAAC"}
@@ -1,37 +0,0 @@
1
- import type { CollectionCoordinatorState } from "@canonical/dataviews-core";
2
- /** What the pagination bar shows and offers for one collection snapshot. */
3
- export type PaginationState = {
4
- /** The window's page, counted from one. */
5
- readonly page: number;
6
- /** How many rows a page holds. */
7
- readonly size: number;
8
- /**
9
- * How many rows are on screen, or null while those rows do not answer the
10
- * current query: nothing has arrived yet, a replacement is in flight, or it
11
- * failed and left an earlier query's rows in view.
12
- */
13
- readonly shown: number | null;
14
- /** The filtered total, when the source publishes one for this query. */
15
- readonly total: number | null;
16
- /** How many pages the total makes, when there is a total. */
17
- readonly pages: number | null;
18
- /** Whether a later page is known to exist. */
19
- readonly hasNext: boolean;
20
- /**
21
- * Where Previous goes. A page past the last — an old link, a shrunken
22
- * result — steps back to the last page there is, not one page at a time.
23
- */
24
- readonly back: number;
25
- /** The page sizes offered, each once, always including the applied one. */
26
- readonly sizes: readonly number[];
27
- };
28
- /**
29
- * Derive the bar's state from the provider's snapshot.
30
- *
31
- * The destinations are the ones the collection can actually reach. A source
32
- * that publishes a filtered total gets a last page; one that publishes no
33
- * count gets a Next offered only while the page is full, and no invented
34
- * last page. A total that belongs to an earlier query is not this one's.
35
- */
36
- export default function paginationState(snapshot: CollectionCoordinatorState<object>, sizes: readonly number[]): PaginationState;
37
- //# sourceMappingURL=paginationState.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"paginationState.d.ts","sourceRoot":"","sources":["../../../../src/lib/PaginationBar/paginationState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAE5E,4EAA4E;AAC5E,MAAM,MAAM,eAAe,GAAG;IAC5B,2CAA2C;IAC3C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,kCAAkC;IAClC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,wEAAwE;IACxE,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,6DAA6D;IAC7D,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,8CAA8C;IAC9C,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B;;;OAGG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,2EAA2E;IAC3E,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;CACnC,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,eAAe,CACrC,QAAQ,EAAE,0BAA0B,CAAC,MAAM,CAAC,EAC5C,KAAK,EAAE,SAAS,MAAM,EAAE,GACvB,eAAe,CAsBjB"}
@@ -1,24 +0,0 @@
1
- import type { DataViewsProvider, RowRecord, SchemaFieldDefinition } from "@canonical/dataviews-core";
2
- import type { ComponentProps } from "react";
3
- type OwnProps<TFields extends readonly SchemaFieldDefinition[], TRow extends object> = {
4
- /** The provider created by `createDataViewsProvider` whose window the bar pages. */
5
- readonly provider: DataViewsProvider<TFields, TRow>;
6
- /** The navigation's accessible name. Defaults to "Pagination". */
7
- readonly label?: string;
8
- /**
9
- * The page sizes offered; 50, 75 and 100 by default. The applied size is
10
- * always among them, so the control can never misreport the window it is
11
- * describing.
12
- */
13
- readonly sizes?: readonly number[];
14
- };
15
- /**
16
- * Props of the pagination bar. The root is a `nav`, so it extends native nav
17
- * props. `children` is excluded: the bar's contents are derived from the
18
- * window and what the source can count. So are `role`, which would override
19
- * the nav's `navigation` role, and `aria-label` and `aria-labelledby`, which
20
- * would override the name it takes from `label`.
21
- */
22
- export type PaginationBarProps<TFields extends readonly SchemaFieldDefinition[], TRow extends object = RowRecord> = OwnProps<TFields, TRow> & Omit<ComponentProps<"nav">, keyof OwnProps<TFields, TRow> | "children" | "role" | "aria-label" | "aria-labelledby">;
23
- export {};
24
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/PaginationBar/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,SAAS,EACT,qBAAqB,EACtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,KAAK,QAAQ,CACX,OAAO,SAAS,SAAS,qBAAqB,EAAE,EAChD,IAAI,SAAS,MAAM,IACjB;IACF,oFAAoF;IACpF,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACpD,kEAAkE;IAClE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACpC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,kBAAkB,CAC5B,OAAO,SAAS,SAAS,qBAAqB,EAAE,EAChD,IAAI,SAAS,MAAM,GAAG,SAAS,IAC7B,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,GACzB,IAAI,CACF,cAAc,CAAC,KAAK,CAAC,EACnB,MAAM,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,GAC7B,UAAU,GACV,MAAM,GACN,YAAY,GACZ,iBAAiB,CACpB,CAAC"}