@citizenplane/pimp 8.10.0 → 8.11.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citizenplane/pimp",
3
- "version": "8.10.0",
3
+ "version": "8.11.0",
4
4
  "scripts": {
5
5
  "dev": "vite --host",
6
6
  "build": "vite build",
@@ -389,6 +389,10 @@ const getTabindex = (rowData) => (isFullWidthRow(rowData) ? -1 : 0)
389
389
  const isFullWidthRow = (rowData) => CpTableConfig.RESERVED_KEYS.FULL_WIDTH in rowData
390
390
  const isRowSelected = (rowIndex) => rawVisibleRows.value[rowIndex][CpTableConfig.RESERVED_KEYS.IS_SELECTED]
391
391
  const areRowOptionsEnabled = (rowData) => props.enableRowOptions && !isFullWidthRow(rowData)
392
+
393
+ const resetPagination = () => (pageNumber.value = 0)
394
+
395
+ defineExpose({ resetPagination })
392
396
  </script>
393
397
 
394
398
  <style lang="scss">